gdbserver: turn target ops 'thread_name' and 'thread_handle' into methods
[deliverable/binutils-gdb.git] / gdbserver / ChangeLog
1 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn process_stratum_target's thread_name and thread_handle ops
4 into methods of process_target.
5
6 * target.h (struct process_stratum_target): Remove the target ops.
7 (class process_target): Add the target ops.
8 (target_thread_name): Update the macro.
9 (target_thread_handle): Update the macro.
10 * target.cc (process_target::thread_name): Define.
11 (process_target::thread_handle): Define.
12
13 Update the derived classes and callers below.
14
15 * linux-low.cc (linux_target_ops): Update.
16 (linux_process_target::thread_name): Define.
17 (linux_process_target::thread_handle): Define.
18 * linux-low.h (class linux_process_target): Update.
19 * lynx-low.cc (lynx_target_ops): Update.
20 * nto-low.cc (nto_target_ops): Update.
21 * win32-low.cc (win32_target_ops): Update.
22
23 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
24
25 Turn process_stratum_target's breakpoint_kind_from_pc,
26 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
27 ops into methods of process_target.
28
29 * target.h (struct process_stratum_target): Remove the target op.
30 (class process_target): Add the target op.
31 (target_breakpoint_kind_from_pc): Update the macro.
32 (target_breakpoint_kind_from_current_state): Update the macro.
33 (default_breakpoint_kind_from_pc): Remove declaration.
34 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
35 (process_target::breakpoint_kind_from_pc): ... this.
36 (process_target::breakpoint_kind_from_current_state): Define.
37
38 Update the derived classes and callers below.
39
40 * mem-break.cc (bp_size): Update.
41 (bp_opcode): Update.
42 * linux-low.cc (linux_target_ops): Update.
43 (linux_wait_1): Update.
44 (linux_breakpoint_kind_from_pc): Turn into ...
45 (linux_process_target::breakpoint_kind_from_pc): ... this.
46 (linux_sw_breakpoint_from_kind): Turn into ...
47 (linux_process_target::sw_breakpoint_from_kind): ... this.
48 (linux_breakpoint_kind_from_current_state): Turn into ...
49 (linux_process_target::breakpoint_kind_from_current_state): ... this.
50 * linux-low.h (class linux_process_target): Update.
51 * lynx-low.cc (lynx_target_ops): Update.
52 (lynx_process_target::sw_breakpoint_from_kind): Define.
53 * lynx-low.h (class lynx_process_target): Update.
54 * nto-low.cc (nto_target_ops): Update.
55 (nto_sw_breakpoint_from_kind): Turn into ...
56 (nto_process_target::sw_breakpoint_from_kind): ... this.
57 * nto-low.h (class nto_process_target): Update.
58 * win32-low.cc (win32_target_ops): Update.
59 (win32_sw_breakpoint_from_kind): Turn into ...
60 (win32_process_target::sw_breakpoint_from_kind): ... this.
61 * win32-low.h (class win32_process_target): Update.
62
63 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
64
65 Turn process_stratum_target's multifs_open, multifs_readlink,
66 multifs_unlink ops into methods of process_target.
67
68 * target.h (struct process_stratum_target): Remove the target ops.
69 (class process_target): Add the target ops. Also add
70 'supports_multifs'.
71 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
72 "sys/stat.h".
73 (process_target::supports_multifs): Define.
74 (process_target::multifs_open): Define.
75 (process_target::multifs_readlink): Define.
76 (process_target::multifs_unlink): Define.
77
78 Update the derived classes and callers below.
79
80 * hostio.cc (handle_setfs): Update.
81 (handle_open): Update.
82 (handle_unlink): Update.
83 (handle_readlink): Update.
84 * linux-low.cc (linux_target_ops): Update.
85 (linux_process_target::supports_multifs): Define.
86 (linux_process_target::multifs_open): Define.
87 (linux_process_target::multifs_readlink): Define.
88 (linux_process_target::multifs_unlink): Define.
89 * linux-low.h (class linux_process_target): Update.
90 * lynx-low.cc (lynx_target_ops): Update.
91 * nto-low.cc (nto_target_ops): Update.
92 * win32-low.cc (win32_target_ops): Update.
93
94 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
95
96 Turn process_stratum_target's pid_to_exec_file op into a method
97 of process_target.
98
99 * target.h (struct process_stratum_target): Remove the target op.
100 (class process_target): Add the target op. Also add
101 'supports_pid_to_exec_file'.
102 * target.cc (process_target::pid_to_exec_file): Define.
103 (process_target::supports_pid_to_exec_file): Define.
104
105 Update the derived classes and callers below.
106
107 * server.cc (handle_qxfer_exec_file): Update.
108 (handle_query): Update.
109 * linux-low.cc (linux_target_ops): Update.
110 (linux_process_target::supports_pid_to_exec_file): Define.
111 (linux_process_target::pid_to_exec_file): Define.
112 * linux-low.h (class linux_process_target): Update.
113 * lynx-low.cc (lynx_target_ops): Update.
114 * nto-low.cc (nto_target_ops): Update.
115 * win32-low.cc (win32_target_ops): Update.
116
117 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
118
119 Turn process_stratum_target's supports_range_stepping op into a
120 method of process_target.
121
122 * target.h (struct process_stratum_target): Remove the target op.
123 (class process_target): Add the target op.
124 (target_supports_range_stepping): Update the macro.
125 * target.cc (process_target::supports_range_stepping): Define.
126
127 Update the derived classes and callers below.
128
129 * linux-low.cc (linux_target_ops): Update.
130 (linux_supports_range_stepping): Turn into ...
131 (linux_process_target::supports_range_stepping): ... this.
132 * linux-low.h (class linux_process_target): Update.
133 * lynx-low.cc (lynx_target_ops): Update.
134 * nto-low.cc (nto_target_ops): Update.
135 * win32-low.cc (win32_target_ops): Update.
136
137 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
138
139 Turn process_stratum_target's btrace-related ops (enable_btrace,
140 disable_btrace, read_btrace, read_btrace_conf) into methods of
141 process_target.
142
143 * target.h (struct process_stratum_target): Remove the target ops.
144 (class process_target): Add the target ops.
145 (target_enable_btrace): Update.
146 (target_disable_btrace): Update.
147 (target_read_btrace): Update.
148 (target_read_btrace_conf): Update.
149 * target.cc (process_target::enable_btrace): Define.
150 (process_target::disable_btrace): Define.
151 (process_target::read_btrace): Define.
152 (process_target::read_btrace_conf): Define.
153
154 Update the derived classes and callers below.
155
156 * linux-low.cc (linux_target_ops): Update.
157 (linux_process_target:enable_btrace): Define as a wrapper around
158 linux_enable_btrace.
159 (linux_low_disable_btrace): Turn into ...
160 (linux_process_target::disable_btrace): ... this.
161 (linux_low_read_btrace): Turn into ...
162 (linux_process_target::read_btrace): ... this.
163 (linux_low_btrace_conf): Turn into ...
164 (linux_process_target::read_btrace_conf): ... this.
165 * linux-low.h (class linux_process_target): Update.
166 * lynx-low.cc (lynx_target_ops): Update.
167 * nto-low.cc (nto_target_ops): Update.
168 * win32-low.cc (win32_target_ops): Update.
169
170 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
171
172 Turn process_stratum_target's supports_agent op into a method of
173 process_target.
174
175 * target.h (struct process_stratum_target): Remove the target op.
176 (class process_target): Add the target op.
177 (target_supports_agent): Update the macro.
178 * target.cc (process_target::supports_agent): Define.
179
180 Update the derived classes and callers below.
181
182 * linux-low.cc (linux_target_ops): Update.
183 (linux_supports_agent): Turn into ...
184 (linux_process_target::supports_agent): ... this.
185 * linux-low.h (class linux_process_target): Update.
186 * lynx-low.cc (lynx_target_ops): Update.
187 * nto-low.cc (nto_target_ops): Update.
188 * win32-low.cc (win32_target_ops): Update.
189
190 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
191
192 Turn process_stratum_target's qxfer_libraries_svr4 op into a
193 method of process_target.
194
195 * target.h (struct process_stratum_target): Remove the target op.
196 (class process_target): Add the target op. Also add
197 'supports_qxfer_libraries_svr4'.
198 * target.cc (process_target::qxfer_libraries_svr4): Define.
199 (process_target::supports_qxfer_libraries_svr4): Define.
200
201 Update the derived classes and callers below.
202
203 * server.cc (handle_qxfer_libraries_svr4): Update.
204 (handle_query): Update.
205 * linux-low.cc (linux_target_ops): Update.
206 (linux_process_target::supports_qxfer_libraries_svr4): Define.
207 (linux_qxfer_libraries_svr4): Turn into ...
208 (linux_process_target::qxfer_libraries_svr4): ... this.
209 * linux-low.h (class linux_process_target): Update.
210 * lynx-low.cc (lynx_target_ops): Update.
211 * nto-low.cc (nto_target_ops): Update.
212 * win32-low.cc (win32_target_ops): Update.
213
214 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
215
216 Turn process_stratum_target's supports_disable_randomization op
217 into a method of process_target.
218
219 * target.h (struct process_stratum_target): Remove the target op.
220 (class process_target): Add the target op.
221 (target_supports_disable_randomization): Update the macro.
222 * target.cc (process_target::supports_disable_randomization): Define.
223
224 Update the derived classes and callers below.
225
226 * linux-low.cc (linux_target_ops): Update.
227 (linux_supports_disable_randomization): Turn into ...
228 (linux_process_target::supports_disable_randomization): ... this.
229 * linux-low.h (class linux_process_target): Update.
230 * lynx-low.cc (lynx_target_ops): Update.
231 * nto-low.cc (nto_target_ops): Update.
232 * win32-low.cc (win32_target_ops): Update.
233
234 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
235
236 Turn process_stratum_target's emit_ops op into a method of
237 process_target.
238
239 * target.h (struct process_stratum_target): Remove the target op.
240 (class process_target): Add the target op.
241 (target_emit_ops): Update the macro.
242 * target.cc (process_target::emit_ops): Define.
243
244 Update the derived classes and callers below.
245
246 * linux-low.cc (linux_target_ops): Update.
247 (linux_emit_ops): Turn into ...
248 (linux_process_target::emit_ops): ... 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
254 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
255
256 Turn process_stratum_target's install_fast_tracepoint_jump_pad
257 and get_min_fast_tracepoint_insn_len ops into methods of
258 process_target.
259
260 * target.h (struct process_stratum_target): Remove the target ops.
261 (class process_target): Add the target ops. Also add
262 'supports_fast_tracepoints'.
263 (target_supports_fast_tracepoints): Update the macro.
264 (target_get_min_fast_tracepoint_insn_len): Update the macro.
265 (install_fast_tracepoint_jump_pad): Update and rename the macro
266 to ...
267 (target_install_fast_tracepoint_jump_pad): ... this.
268 * target.cc (process_target::supports_fast_tracepoints): Define.
269 (process_target::install_fast_tracepoint_jump_pad): Define.
270 (process_target::get_min_fast_tracepoint_insn_len): Define.
271
272 Update the derived classes and callers below.
273
274 * tracepoint.cc (install_fast_tracepoint): Update.
275 * linux-low.cc (linux_target_ops): Update.
276 (linux_process_target::supports_fast_tracepoints): Define.
277 (linux_install_fast_tracepoint_jump_pad): Turn into ...
278 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
279 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
280 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
281 * linux-low.h (class linux_process_target): Update.
282 * lynx-low.cc (lynx_target_ops): Update.
283 * nto-low.cc (nto_target_ops): Update.
284 * win32-low.cc (win32_target_ops): Update.
285
286 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
287
288 Turn process_stratum_target's stabilize_threads op into a
289 method of process_target.
290
291 * target.h (struct process_stratum_target): Remove the target op.
292 (class process_target): Add the target op.
293 (target_stabilize_threads): Update the macro.
294 * target.cc (process_target::stabilize_threads): Define.
295
296 Update the derived classes and callers below.
297
298 * server.cc (handle_status): Update.
299 * tracepoint.cc (cmd_qtdp): Update.
300 (cmd_qtstart): Update.
301 * linux-low.cc (linux_target_ops): Update.
302 (linux_stabilize_threads): Turn into ...
303 (linux_process_target::stabilize_threads): ... this.
304 (linux_wait_1): Update.
305 * linux-low.h (class linux_process_target): Update.
306 * lynx-low.cc (lynx_target_ops): Update.
307 * nto-low.cc (nto_target_ops): Update.
308 * win32-low.cc (win32_target_ops): Update.
309
310 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
311
312 Turn process_stratum_target's pause_all and unpause_all ops
313 into methods of process_target.
314
315 * target.h (struct process_stratum_target): Remove the target ops.
316 (class process_target): Add the target ops.
317 (pause_all): Update the macro and rename to...
318 (target_pause_all): ... this.
319 (unpause_all): Update the macro and rename to...
320 (target_unpause_all): ... this.
321 * target.cc (process_target::pause_all): Define.
322 (process_target::unpause_all): Define.
323
324 Update the derived classes and callers below.
325
326 * server.cc (handle_status): Update.
327 * tracepoint.cc (clear_installed_tracepoints): Update.
328 (cmd_qtdp): Update.
329 (cmd_qtstart): Update.
330 (stop_tracing): Update.
331 (cmd_qtstatus): Update.
332 (upload_fast_traceframes): Update.
333 (run_inferior_command): Update.
334 * linux-low.cc (linux_target_ops): Update.
335 (linux_pause_all): Turn into ...
336 (linux_process_target::pause_all): ... this.
337 (linux_unpause_all): Turn into ...
338 (linux_process_target::unpause_all): ... this.
339 (linux_process_target::prepare_to_access_memory): Update.
340 (linux_process_target::done_accessing_memory): Update.
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
346 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
347
348 Turn process_stratum_target's get_tib_address op into a method of
349 process_target.
350
351 * target.h (struct process_stratum_target): Remove the target op.
352 (class process_target): Add the target op. Also add
353 'supports_get_tib_address'.
354 * target.cc (process_target::get_tib_address): Define.
355 (process_target::supports_get_tib_address): Define.
356
357 Update the derived classes and callers below.
358
359 * server.cc (handle_query): Update.
360 * linux-low.cc (win32_target_ops): Update.
361 * lynx-low.cc (lynx_target_ops): Update.
362 * nto-low.cc (nto_target_ops): Update.
363 * win32-low.cc (win32_target_ops): Update.
364 (win32_process_target::supports_get_tib_address): Define.
365 (win32_get_tib_address): Turn into ...
366 (win32_process_target::get_tib_address): ... this.
367 * win32-low.h (class win32_process_target): Update.
368
369 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
370
371 Turn process_stratum_target's thread_stopped op into a method of
372 process_target.
373
374 * target.h (struct process_stratum_target): Remove the target op.
375 (class process_target): Add the target op. Also add
376 'supports_thread_stopped'.
377 (target_thread_stopped): Update the macro.
378 * target.cc (process_target::thread_stopped): Define.
379 (process_target::supports_thread_stopped): Define.
380 (prepare_to_access_memory): Update.
381
382 Update the derived classes and callers below.
383
384 * server.cc (queue_stop_reply_callback): Update.
385 * linux-low.cc (linux_target_ops): Update.
386 (linux_process_target::supports_thread_stopped): Define.
387 (linux_thread_stopped): Turn into ...
388 (linux_process_target::thread_stopped): ... this.
389 * linux-low.h (class linux_process_target): Update.
390 * lynx-low.cc (lynx_target_ops): Update.
391 * nto-low.cc (nto_target_ops): Update.
392 * win32-low.cc (win32_target_ops): Update.
393
394 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
395
396 Turn process_stratum_target's read_pc and write_pc ops into
397 methods of process_target.
398
399 * target.h (struct process_stratum_target): Remove the target ops.
400 (class process_target): Add the target ops.
401 * target.cc (process_target::read_pc): Define.
402 (process_target::write_pc): Define.
403
404 Update the derived classes and callers below.
405
406 * regcache.cc (regcache_read_pc): Update.
407 (regcache_write_pc): Update.
408 * linux-low.cc (linux_target_ops): Update.
409 (linux_read_pc): Turn into ...
410 (linux_process_target::read_pc): ... this.
411 (linux_write_pc): Turn into ...
412 (linux_process_target::write_pc): ... this.
413 * linux-low.h (class linux_process_target): Update.
414 * lynx-low.cc (lynx_target_ops): Update.
415 * nto-low.cc (nto_target_ops): Update.
416 * win32-low.cc (win32_target_ops): Update.
417
418 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
419
420 Turn process_stratum_target's supports_tracepoints op into a
421 method of process_target.
422
423 * target.h (struct process_stratum_target): Remove the target op.
424 (class process_target): Add the target op.
425 (target_supports_tracepoints): Update the macro.
426 * target.cc (process_target::supports_tracepoints): Define.
427
428 Update the derived classes and callers below.
429
430 * linux-low.cc (linux_target_ops): Update.
431 (linux_supports_tracepoints): Turn into ...
432 (linux_process_target::supports_tracepoints): ... this.
433 * linux-low.h (class linux_process_target): Update.
434 * lynx-low.cc (lynx_target_ops): Update.
435 * nto-low.cc (nto_target_ops): Update.
436 * win32-low.cc (win32_target_ops): Update.
437
438 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
439
440 Turn process_stratum_target's process_qsupported op into a method
441 of process_target.
442
443 * target.h (struct process_stratum_target): Remove the target op.
444 (class process_target): Add the target op.
445 (target_process_qsupported): Update the macro.
446 * target.cc (process_target::process_qsupported): Define.
447
448 Update the derived classes and callers below.
449
450 * linux-low.cc (linux_target_ops): Update.
451 (linux_process_qsupported): Turn into ...
452 (linux_process_target::process_qsupported): ... this.
453 * linux-low.h (class linux_process_target): Update.
454 * lynx-low.cc (lynx_target_ops): Update.
455 * nto-low.cc (nto_target_ops): Update.
456 * win32-low.cc (win32_target_ops): Update.
457
458 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
459
460 Turn process_stratum_target's read_loadmap op into a method of
461 process_target.
462
463 * target.h (struct process_stratum_target): Remove the target op.
464 (class process_target): Add the target op. Also add
465 'supports_read_loadmap'.
466 * target.cc (process_target::read_loadmap): Define.
467 (process_target::supports_read_loadmap): Define.
468
469 Update the derived classes and callers below.
470
471 * server.cc (handle_qxfer_fdpic): Update.
472 (handle_query): Update.
473 * linux-low.cc (linux_target_ops): Update.
474 (linux_process_target::supports_read_loadmap): Define.
475 (linux_read_loadmap): Turn into ...
476 (linux_process_target::read_loadmap): ... this.
477 * linux-low.h (class linux_process_target): Update.
478 * lynx-low.cc (lynx_target_ops): Update.
479 * nto-low.cc (nto_target_ops): Update.
480 * win32-low.cc (win32_target_ops): Update.
481
482 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
483
484 Turn process_stratum_target's core_of_thread op into a method of
485 process_target.
486
487 * target.h (struct process_stratum_target): Remove the target op.
488 (class process_target): Add the target op.
489 (target_core_of_thread): Update the macro.
490 * target.cc (process_target::core_of_thread): Define.
491
492 Update the derived classes and callers below.
493
494 * linux-low.cc (linux_target_ops): Update.
495 (linux_process_target::core_of_thread): Define.
496 * linux-low.h (class linux_process_target): Update.
497 * lynx-low.cc (lynx_target_ops): Update.
498 * nto-low.cc (nto_target_ops): Update.
499 * win32-low.cc (win32_target_ops): Update.
500
501 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
502
503 Turn process_stratum_target's handle_monitor_command op into a
504 method of process_target.
505
506 * target.h (struct process_stratum_target): Remove the target op.
507 (class process_target): Add the target op.
508 (target_handle_monitor_command): Update the macro.
509 * target.cc (process_target::handle_monitor_command): Define.
510
511 Update the derived classes and callers below.
512
513 * server.cc (handle_query): Update.
514 * linux-low.cc (linux_target_ops): Update.
515 (linux_process_target::handle_monitor_command): Define.
516 * linux-low.h (class linux_process_target): Update.
517 * lynx-low.cc (lynx_target_ops): Update.
518 * nto-low.cc (nto_target_ops): Update.
519 * win32-low.cc (win32_target_ops): Update.
520
521 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
522
523 Turn process_stratum_target's handle_new_gdb_connection op into a
524 method of process_target.
525
526 * target.h (struct process_stratum_target): Remove the target op.
527 (class process_target): Add the target op.
528 (target_handle_new_gdb_connection): Update the macro.
529 * target.cc (process_target::handle_new_gdb_connection): Define.
530
531 Update the derived classes and callers below.
532
533 * linux-low.cc (linux_target_ops): Update.
534 (linux_handle_new_gdb_connection): Turn into ...
535 (linux_process_target::handle_new_gdb_connection): ... 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 * win32-low.cc (win32_target_ops): Update.
540
541 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
542
543 Turn process_stratum_target's supports_fork_events,
544 supports_vfork_events, and supports_exec_events ops into methods
545 of process_target.
546
547 * target.h (struct process_stratum_target): Remove the target ops.
548 (class process_target): Add the target ops.
549 (target_supports_fork_events): Update the macro.
550 (target_supports_vfork_events): Update the macro.
551 (target_supports_exec_events): Update the macro.
552 * target.cc (process_target::supports_fork_events): Define.
553 (process_target::supports_vfork_events): Define.
554 (process_target::supports_exec_events): Define.
555
556 Update the derived classes and callers below.
557
558 * linux-low.cc (linux_target_ops): Update.
559 (linux_supports_fork_events): Turn into ...
560 (linux_process_target::supports_fork_events): ... this.
561 (linux_supports_vfork_events): Turn into ...
562 (linux_process_target::supports_vfork_events): ... this.
563 (linux_supports_exec_events): Turn into ...
564 (linux_process_target::supports_exec_events): ... this.
565 * linux-low.h (class linux_process_target): Update.
566 * lynx-low.cc (lynx_target_ops): Update.
567 * nto-low.cc (nto_target_ops): Update.
568 * win32-low.cc (win32_target_ops): Update.
569
570 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
571
572 Turn process_stratum_target's supports_multi_process op into a
573 method of process_target.
574
575 * target.h (struct process_stratum_target): Remove the target op.
576 (class process_target): Add the target op.
577 * target.cc (process_target::supports_multi_process): Define.
578 (target_supports_multi_process): Update.
579
580 Update the derived classes and callers below.
581
582 * linux-low.cc (linux_target_ops): Update.
583 (linux_supports_multi_process): Turn into ...
584 (linux_process_target::supports_multi_process): ... this.
585 * linux-low.h (class linux_process_target): Update.
586 * lynx-low.cc (lynx_target_ops): Update.
587 * nto-low.cc (nto_target_ops): Update.
588 * win32-low.cc (win32_target_ops): Update.
589
590 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
591
592 Turn process_stratum_target's supports_non_stop, async, and
593 start_non_stop ops into methods of process_target.
594
595 * target.h (struct process_stratum_target): Remove the target ops.
596 (class process_target): Add the target ops.
597 (target_supports_non_stop): Update the macro.
598 (target_async): Update the macro.
599 (start_non_stop): Remove declaration.
600 * target.cc (process_target::supports_non_stop): Define.
601 (process_target::async): Define.
602 (process_target::start_non_stop): Define.
603 (start_non_stop): Remove.
604
605 Update the derived classes and callers below.
606
607 * server.cc (handle_qxfer_siginfo): Update.
608 (handle_query): Update.
609 * linux-low.cc (linux_target_ops): Update.
610 (linux_supports_non_stop): Turn into ...
611 (linux_process_target::supports_non_stop): ... this.
612 (linux_async): Turn into ...
613 (linux_process_target::async): ... this.
614 (linux_start_non_stop): Turn into ...
615 (linux_process_target::start_non_stop): ... this.
616 * linux-low.h (class linux_process_target): Update.
617 * lynx-low.cc (lynx_target_ops): Update.
618 * nto-low.cc (nto_target_ops): Update.
619 (nto_supports_non_stop): Remove; rely on the default behavior
620 instead.
621 * win32-low.cc (win32_target_ops): Update.
622
623 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
624
625 Turn process_stratum_target's qxfer_siginfo op into a method of
626 process_target.
627
628 * target.h (struct process_stratum_target): Remove the target op.
629 (class process_target): Add the target op. Also add
630 'supports_qxfer_siginfo'.
631 * target.cc (process_target::qxfer_siginfo): Define.
632 (process_target::supports_qxfer_siginfo): Define.
633
634 Update the derived classes and callers below.
635
636 * server.cc (handle_qxfer_siginfo): Update.
637 (handle_query): Update.
638 * linux-low.cc (linux_target_ops): Update.
639 (linux_process_target::supports_qxfer_siginfo): Define.
640 (linux_xfer_siginfo): Turn into ...
641 (linux_process_target::qxfer_siginfo): ... this.
642 * linux-low.h (class linux_process_target): Update.
643 * lynx-low.cc (lynx_target_ops): Update.
644 * nto-low.cc (nto_target_ops): Update.
645 * win32-low.cc (win32_target_ops): Update.
646
647 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
648
649 Turn process_stratum_target's qxfer_osdata op into a method of
650 process_target.
651
652 * target.h (struct process_stratum_target): Remove the target op.
653 (class process_target): Add the target op. Also add
654 'supports_qxfer_osdata'.
655 * target.cc (process_target::qxfer_osdata): Define.
656 (process_target::supports_qxfer_osdata): Define.
657
658 Update the derived classes and callers below.
659
660 * server.cc (handle_qxfer_osdata): Update.
661 (handle_query): Update.
662 * linux-low.cc (linux_target_ops): Update.
663 (linux_process_target::supports_qxfer_osdata): Define.
664 (linux_qxfer_osdata): Turn into ...
665 (linux_process_target::qxfer_osdata): ... this.
666 * linux-low.h (class linux_process_target): Update.
667 * lynx-low.cc (lynx_target_ops): Update.
668 * nto-low.cc (nto_target_ops): Update.
669 * win32-low.cc (win32_target_ops): Update.
670
671 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
672
673 Turn process_stratum_target's hostio_last_error op into a
674 method of process_target.
675
676 * target.h (struct process_stratum_target): Remove the target op.
677 (class process_target): Add the target op.
678 * target.cc: Add "hostio.h" to includes.
679 (process_target::hostio_last_error): Define.
680
681 Update the derived classes and callers below.
682
683 * hostio.cc (hostio_error): Update.
684 * linux-low.cc: Remove "hostio.h" from includes.
685 (linux_target_ops): Update.
686 * lynx-low.cc (lynx_target_ops): Update.
687 * nto-low.cc (nto_target_ops): Update.
688 * win32-low.h (class win32_process_target): Update.
689 * win32-low.cc (win32_target_ops): Update.
690 (wince_hostio_last_error): Turn into ...
691 (win32_process_target::hostio_last_error): ... this.
692
693 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
694
695 Turn process_stratum_target's get_tls_address op into a method of
696 process_target.
697
698 * target.h (struct process_stratum_target): Remove the target op.
699 (class process_target): Add the target op. Also add
700 'supports_get_tls_address'.
701 * target.cc (process_target::get_tls_address): Define.
702 (process_target::supports_get_tls_address): Define.
703
704 Update the derived classes and callers below.
705
706 * server.cc (handle_query): Update.
707 * linux-low.cc (linux_target_ops): Update.
708 (linux_process_target::supports_get_tls_address): Define.
709 (linux_process_target::get_tls_address): Define.
710 * linux-low.h (class linux_process_target): Update.
711 * lynx-low.cc (lynx_target_ops): Update.
712 * nto-low.cc (nto_target_ops): Update.
713 * win32-low.cc (win32_target_ops): Update.
714
715 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
716
717 Turn process_stratum_target's read_offsets 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. Also add
722 'supports_read_offsets'.
723 * target.cc (process_target::read_offsets): Define.
724 (process_target::supports_read_offsets): Define.
725
726 Update the derived classes and callers below.
727
728 * server.cc (handle_query): Update.
729 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
730 (linux_target_ops): Update.
731 (linux_process_target::supports_read_offsets): Define.
732 (linux_read_offsets): Turn into ...
733 (linux_process_target::read_offsets): ... this.
734 * linux-low.h (class linux_process_target): Update.
735 * lynx-low.cc (lynx_target_ops): Update.
736 * nto-low.cc (nto_target_ops): Update.
737 * win32-low.cc (win32_target_ops): Update.
738
739 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
740
741 Turn process_stratum_target's stopped_by_watchpoint and
742 stopped_data_address ops into methods of process_target.
743
744 * target.h (struct process_stratum_target): Remove the target ops.
745 (class process_target): Add the target ops.
746 * target.cc (process_target::stopped_by_watchpoint): Define.
747 (process_target::stopped_data_address): Define.
748
749 Update the derived classes and callers below.
750
751 * remote-utils.cc (prepare_resume_reply): Update.
752 * linux-low.cc (linux_target_ops): Update.
753 (linux_stopped_by_watchpoint): Turn into ...
754 (linux_process_target::stopped_by_watchpoint): ... this.
755 (linux_stopped_data_address): Turn into ...
756 (linux_process_target::stopped_data_address): ... this.
757 * linux-low.h (class linux_process_target): Update.
758 * lynx-low.cc (lynx_target_ops): Update.
759 * nto-low.cc (nto_target_ops): Update.
760 (nto_stopped_by_watchpoint): Turn into ...
761 (nto_process_target::stopped_by_watchpoint): ... this.
762 (nto_stopped_data_address): Turn into ...
763 (nto_process_target::stopped_data_address): ... this.
764 * nto-low.h (class nto_process_target): Update.
765 * win32-low.cc (win32_target_ops): Update.
766 (win32_stopped_by_watchpoint): Turn into ...
767 (win32_process_target::stopped_by_watchpoint): ... this.
768 (win32_stopped_data_address): Turn into ...
769 (win32_process_target::stopped_data_address): ... this.
770 * win32-low.h (class win32_process_target): Update.
771
772 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
773
774 Turn process_stratum_target's supports_hardware_single_step op into
775 a method of process_target.
776
777 * target.h (struct process_stratum_target): Remove the target op.
778 (class process_target): Add the target op.
779 (target_supports_hardware_single_step): Update the macro.
780 (target_can_do_hardware_single_step): Remove declaration.
781 * target.cc (process_target::supports_hardware_single_step): Define.
782 (target_can_do_hardware_single_step): Remove.
783
784 Update the derived classes and callers below.
785
786 * linux-low.h (class linux_process_target): Update.
787 * linux-low.cc (linux_target_ops): Update.
788 (linux_supports_hardware_single_step): Turn into ...
789 (linux_process_target::supports_hardware_single_step): ... this.
790 * lynx-low.h (class lynx_process_target): Update.
791 * lynx-low.cc (lynx_target_ops): Update.
792 (lynx_process_target::supports_hardware_single_step): Define.
793 * nto-low.h (class nto_process_target): Update.
794 * nto-low.cc (nto_target_ops): Update.
795 (nto_process_target::supports_hardware_single_step): Define.
796 * win32-low.h (class win32_process_target): Update.
797 * win32-low.cc (win32_target_ops): Update.
798 (win32_process_target::supports_hardware_single_step): Define.
799
800 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
801
802 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
803 ops into methods of process_target.
804
805 * target.h (struct process_stratum_target): Remove the target ops.
806 (class process_target): Add the target ops.
807 (target_stopped_by_hw_breakpoint): Update the macro.
808 (target_supports_stopped_by_hw_breakpoint): Update the macro.
809 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
810 (process_target::supports_stopped_by_hw_breakpoint): Define.
811
812 Update the derived classes and callers below.
813
814 * linux-low.cc (linux_target_ops): Update.
815 (linux_stopped_by_hw_breakpoint): Turn into ...
816 (linux_process_target::stopped_by_hw_breakpoint): ... this.
817 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
818 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
819 * linux-low.h (class linux_process_target): Update.
820 * lynx-low.cc (lynx_target_ops): Update.
821 * nto-low.cc (nto_target_ops): Update.
822 * win32-low.cc (win32_target_ops): Update.
823
824 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
825
826 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
827 ops into methods of process_target.
828
829 * target.h (struct process_stratum_target): Remove the target ops.
830 (class process_target): Add the target ops.
831 (target_stopped_by_sw_breakpoint): Update the macro.
832 (target_supports_stopped_by_sw_breakpoint): Update the macro.
833 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
834 (process_target::supports_stopped_by_sw_breakpoint): Define.
835
836 Update the derived classes and callers below.
837
838 * linux-low.cc (linux_target_ops): Update.
839 (linux_stopped_by_sw_breakpoint): Turn into ...
840 (linux_process_target::stopped_by_sw_breakpoint): ... this.
841 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
842 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
843 * linux-low.h (class linux_process_target): Update.
844 * lynx-low.cc (lynx_target_ops): Update.
845 * nto-low.cc (nto_target_ops): Update.
846 * win32-low.cc (win32_target_ops): Update.
847
848 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
849
850 Turn process_stratum_target's insert_point and remove_point ops
851 into methods of process_target.
852
853 * target.h (struct process_stratum_target): Remove the target ops.
854 (class process_target): Add the target ops.
855 * target.cc (process_target::insert_point): Define.
856 (process_target::remove_point): Define.
857
858 Update the derived classes and callers below.
859
860 * mem-break.cc (set_raw_breakpoint_at): Update.
861 (delete_raw_breakpoint): Update.
862 (uninsert_raw_breakpoint): Update.
863 (reinsert_raw_breakpoint): Update.
864 * linux-low.cc (linux_target_ops): Update.
865 (linux_insert_point): Turn into ...
866 (linux_process_target::insert_point): ... this.
867 (linux_remove_point): Turn into ...
868 (linux_process_target::remove_point): ... this.
869 * linux-low.h (class linux_process_target): Update.
870 * lynx-low.cc (lynx_target_ops): Update.
871 * nto-low.cc (nto_target_ops): Update.
872 (nto_insert_point): Turn into ...
873 (nto_process_target::insert_point): ... this.
874 (nto_remove_point): Turn into ...
875 (nto_process_target::remove_point): ... this.
876 * nto-low.h (class nto_process_target): Update.
877 * win32-low.cc (win32_target_ops): Update.
878 (win32_insert_point): Turn into ...
879 (win32_process_target::insert_point): ... this.
880 (win32_remove_point): Turn into ...
881 (win32_process_target::remove_point): ... this.
882 * win32-low.h (class win32_process_target): Update.
883
884 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
885
886 Turn process_stratum_target's supports_z_point_type op into a
887 method of process_target.
888
889 * target.h (struct process_stratum_target): Remove the target op.
890 (class process_target): Add the target op.
891 * target.cc (process_target::supports_z_point_type): Define.
892
893 Update the derived classes and callers below.
894
895 * mem-break.cc (z_type_supported): Update.
896 * linux-low.cc (linux_target_ops): Update.
897 (linux_supports_z_point_type): Turn into ...
898 (linux_process_target::supports_z_point_type): ... this.
899 * linux-low.h (class linux_process_target): Update.
900 * lynx-low.cc (lynx_target_ops): Update.
901 * nto-low.cc (nto_target_ops): Update.
902 (nto_supports_z_point_type): Turn into ...
903 (nto_process_target::supports_z_point_type): ... this.
904 * nto-low.h (class nto_process_target): Update.
905 * win32-low.cc (win32_target_ops): Update.
906 (win32_supports_z_point_type): Turn into ...
907 (win32_process_target::supports_z_point_type): ... this.
908 * win32-low.h (class win32_process_target): Update.
909
910 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
911
912 Turn process_stratum_target's read_auxv op into a method of
913 process_target.
914
915 * target.h (class process_stratum_target): Remove the target op.
916 (struct process_target): Add the target op. Also add
917 'supports_read_auxv'.
918 * target.cc (process_target::read_auxv): Define.
919 (process_target::supports_read_auxv): Define.
920
921 Update the derived classes and callers below.
922
923 * server.cc (handle_qxfer_auxv): Update.
924 (handle_query): Update.
925 * linux-low.cc (linux_target_ops): Update.
926 (linux_process_target::supports_read_auxv): Define.
927 (linux_read_auxv): Turn into ...
928 (linux_process_target::read_auxv): ... this.
929 * linux-low.h (class linux_process_target): Update.
930 * lynx-low.cc (lynx_target_ops): Update.
931 * nto-low.cc (nto_target_ops): Update.
932 (nto_process_target::supports_read_auxv): Define.
933 (nto_read_auxv): Turn into ...
934 (nto_process_target::read_auxv): ... this.
935 * nto-low.h (class nto_process_target): Update.
936 * win32-low.cc (win32_target_ops): Update.
937
938 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
939
940 Turn process_stratum_target's request_interrupt op into a method of
941 process_target.
942
943 * target.h (struct process_stratum_target): Remove the target op.
944 (class process_target): Add the target op.
945
946 Update the derived classes and callers below.
947
948 * remote-utils.cc (putpkt_binary_1): Update.
949 (input_interrupt): Update.
950 (getpkt): Update.
951 * server.cc (handle_v_requests): Update.
952 * linux-low.cc (linux_target_ops): Update.
953 (linux_request_interrupt): Turn into ...
954 (linux_process_target::request_interrupt): ... this.
955 * linux-low.h (class linux_process_target): Update.
956 * lynx-low.cc (lynx_target_ops): Update.
957 (lynx_request_interrupt): Turn into ...
958 (lynx_process_target::request_interrupt): ... this.
959 * lynx-low.h (class lynx_process_target): Update.
960 * nto-low.cc (nto_target_ops): Update.
961 (nto_request_interrupt): Turn into ...
962 (nto_process_target::request_interrupt): ... this.
963 * nto-low.h (class nto_process_target): Update.
964 * win32-low.cc (win32_target_ops): Update.
965 (win32_request_interrupt): Turn into ...
966 (win32_process_target::request_interrupt): ... this.
967 * win32-low.h (class win32_process_target): Update.
968
969 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
970
971 Turn process_stratum_target's look_up_symbols op into a method of
972 process_target.
973
974 * target.h (struct process_stratum_target): Remove the target op.
975 (class process_target): Add the target op.
976 * target.cc (process_target::look_up_symbols): Define.
977
978 Update the derived classes and callers below.
979
980 * server.cc (handle_query): Update.
981 * linux-low.cc (linux_target_ops): Update.
982 (linux_look_up_symbols): Turn into ...
983 (linux_process_target::look_up_symbols): ... this.
984 * linux-low.h (class linux_process_target): Update.
985 * lynx-low.cc (lynx_target_ops): Update.
986 * nto-low.cc (nto_target_ops): Update.
987 * win32-low.cc (win32_target_ops): Update.
988
989 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
990
991 Turn process_stratum_target's read_memory and write_memory
992 ops into methods of process_target.
993
994 * target.h (struct process_stratum_target): Remove the target ops.
995 (class process_target): Add the target ops.
996
997 Update the derived classes and callers below.
998
999 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1000 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1001 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1002 (arm_get_syscall_trapinfo): Update.
1003 * linux-cris-low.cc (cris_breakpoint_at): Update.
1004 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1005 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1006 * linux-mips-low.cc (mips_breakpoint_at): Update.
1007 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1008 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1009 * linux-sh-low.cc (sh_breakpoint_at): Update.
1010 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1011 (sparc_store_gregset_from_stack): Update.
1012 (sparc_breakpoint_at): Update.
1013 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1014 * linux-tile-low.cc (tile_breakpoint_at): Update.
1015 * linux-x86-low.cc (x86_breakpoint_at): Update.
1016 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1017 * mem-brea.cc (insert_memory_breakpoint): Update.
1018 (validate_inserted_breakpoint): Update.
1019 * target.cc (read_inferior_memory): Update.
1020 (target_write_memory): Update.
1021 * linux-low.cc (linux_target_ops): Update.
1022 (linux_read_memory): Make a wrapper around the read_memory target
1023 op call.
1024 (linux_process_target::read_memory): Rename from linux_read_memory.
1025 (linux_write_memory): Turn into ...
1026 (linux_process_target::write_memory): ... this.
1027 * linux-low.h (class linux_process_target): Update.
1028 * lynx-low.cc (lynx_target_ops): Update.
1029 (lynx_read_memory): Turn into ...
1030 (lynx_process_target::read_memory): ... this.
1031 (lynx_write_memory): Turn into ...
1032 (lynx_process_target::write_memory): ... this.
1033 * lynx-low.h (class lynx_process_target): Update.
1034 * nto-low.cc (nto_target_ops): Update.
1035 (nto_read_memory): Turn into ...
1036 (nto_process_target::read_memory): ... this.
1037 (nto_write_memory): Turn into ...
1038 (nto_process_target::write_memory): ... this.
1039 * nto-low.h (class nto_process_target): Update.
1040 * win32-low.cc (win32_target_ops): Update.
1041 (win32_read_inferior_memory): Turn into ...
1042 (win32_process_target::read_memory): ... this.
1043 (win32_write_inferior_memory): Turn into ...
1044 (win32_process_target::write_memory): ... this.
1045 * win32-low.h (class win32_process_target): Update.
1046
1047 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1048
1049 Turn process_stratum_target's prepare_to_access_memory and
1050 done_accessing_memory ops into methods of process_target.
1051
1052 * target.h (struct process_stratum_target): Remove the target ops.
1053 (class process_target): Add the target ops.
1054 * target.cc (process_target::prepare_to_access_memory): Define.
1055 (process_target::done_accessing_memory): Define.
1056 (prepare_to_access_memory): Update.
1057 (done_accessing_memory): Update.
1058
1059 Update the derived classes and callers below.
1060
1061 * linux-low.cc (linux_target_ops): Update.
1062 (linux_prepare_to_access_memory): Turn into ...
1063 (linux_process_target::prepare_to_access_memory): ... this.
1064 (linux_done_accessing_memory): Turn into ...
1065 (linux_process_target::done_accessing_memory): ... this.
1066 * linux-low.h (class linux_process_target): Update.
1067 * lynx-low.cc (lynx_target_ops): Update.
1068 * nto-low.cc (nto_target_ops): Update.
1069 * win32-low.cc (win32_target_ops): Update.
1070
1071 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1072
1073 Turn process_stratum_target's fetch_registers and store_registers
1074 ops into methods of process_target.
1075
1076 * target.h (struct process_stratum_target): Remove the target ops.
1077 (class process_target): Add the target ops.
1078 (fetch_inferior_registers): Update the macro.
1079 (store_inferior_registers): Update the macro.
1080
1081 Update the derived classes and callers below.
1082
1083 * linux-low.cc (linux_target_ops): Update.
1084 (linux_fetch_registers): Turn into ...
1085 (linux_process_target::fetch_registers): ... this.
1086 (linux_store_registers): Turn into ...
1087 (linux_process_target::store_registers): ... this.
1088 * linux-low.h (class linux_process_target): Update.
1089 * lynx-low.cc (lynx_target_ops): Update.
1090 (lynx_fetch_registers): Turn into ...
1091 (lynx_process_target::fetch_registers): ... this.
1092 (lynx_store_registers): Turn into ...
1093 (lynx_process_target::store_registers): ... this.
1094 * lynx-low.h (class lynx_process_target): Update.
1095 * nto-low.cc (nto_target_ops): Update.
1096 (nto_fetch_registers): Turn into ...
1097 (nto_process_target::fetch_registers): ... this.
1098 (nto_store_registers): Turn into ...
1099 (nto_process_target::store_registers): ... this.
1100 * nto-low.h (class nto_process_target): Update.
1101 * win32-low.cc (win32_target_ops): Update.
1102 (win32_fetch_inferior_registers): Turn into ...
1103 (win32_process_target::fetch_registers): ... this.
1104 (win32_store_inferior_registers): Turn into ...
1105 (win32_process_target::store_registers): ... this.
1106 * win32-low.h (class win32_process_target): Update.
1107
1108 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1109
1110 Turn process_stratum_target's wait op into a method of
1111 process_target.
1112
1113 * target.h (struct process_stratum_target): Remove the target op.
1114 (class process_target): Add the target op.
1115
1116 Update the derived classes and callers below.
1117
1118 * target.cc (target_wait): Update.
1119 * linux-low.cc (linux_target_ops): Update.
1120 (linux_wait): Turn into ...
1121 (linux_process_target::wait): ... this.
1122 * linux-low.h (class linux_process_target): Update.
1123 * lynx-low.cc (lynx_target_ops): Update.
1124 (lynx_wait): Turn into ...
1125 (lynx_process_target::wait): ... this.
1126 * lynx-low.h (class lynx_process_target): Update.
1127 * nto-low.cc (nto_target_ops): Update.
1128 (nto_wait): Turn into ...
1129 (nto_process_target::wait): ... this.
1130 * nto-low.h (class nto_process_target): Update.
1131 * win32-low.cc (win32_target_ops): Update.
1132 (win32_wait): Turn into ...
1133 (win32_process_target::wait): ... this.
1134 (do_initial_child_stuff): Update.
1135 * win32-low.h (class win32_process_target): Update.
1136
1137 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1138
1139 Turn process_stratum_target's resume op into a method of
1140 process_target.
1141
1142 * target.h (struct process_stratum_target): Remove the target op.
1143 (class process_target): Add the target op.
1144
1145 Update the derived classes and callers below.
1146
1147 * server.cc (resume): Update.
1148 * target.cc (target_stop_and_wait): Update.
1149 (target_continue_no_signal): Update.
1150 (target_continue): Update.
1151 * linux-low.cc (linux_target_ops): Update.
1152 (linux_resume): Turn into ...
1153 (linux_process_target::resume): ... this.
1154 * linux-low.h (class linux_process_target): Update.
1155 * lynx-low.cc (lynx_target_ops): Update.
1156 (lynx_resume): Turn into ...
1157 (lynx_process_target::resume): ... this.
1158 * lynx-low.h (class lynx_process_target): Update.
1159 * nto-low.cc (nto_target_ops): Update.
1160 (nto_resume): Turn into ...
1161 (nto_process_target::resume): ... this.
1162 * nto-low.h (class nto_process_target): Update.
1163 * win32-low.cc (win32_target_ops): Update.
1164 (win32_resume): Turn into ...
1165 (win32_process_target::resume): ... this.
1166 (win32_process_target::detach): Update.
1167 (do_initial_child_stuff): Update.
1168 * win32-low.h (class win32_process_target): Update.
1169
1170 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1171
1172 Turn process_stratum_target's thread_alive op into a method of
1173 process_target.
1174
1175 * target.h (struct process_stratum_target): Remove the target op.
1176 (class process_target): Add the target op.
1177 (mythread_alive): Update the macro.
1178
1179 Update the derived classes and callers below.
1180
1181 * linux-low.cc (linux_target_ops): Update.
1182 (linux_thread_alive): Turn into ...
1183 (linux_process_target::thread_alive): ... this.
1184 (wait_for_sigstop): Update.
1185 * linux-low.h (class linux_process_target): Update.
1186 * lynx-low.cc (lynx_target_ops): Update.
1187 (lynx_thread_alive): Turn into ...
1188 (lynx_process_target::thread_alive): ... this.
1189 * lynx-low.h (class lynx_process_target): Update.
1190 * nto-low.cc (nto_target_ops): Update.
1191 (nto_thread_alive): Turn into ...
1192 (nto_process_target::thread_alive): ... this.
1193 * nto-low.h (class nto_process_target): Update.
1194 * win32-low.cc (win32_target_ops): Update.
1195 (win32_thread_alive): Turn into ...
1196 (win32_process_target::thread_alive): ... this.
1197 * win32-low.h (class win32_process_target): Update.
1198
1199 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1200
1201 Turn process_stratum_target's join op into a method of
1202 process_target.
1203
1204 * target.h (struct process_stratum_target): Remove the target op.
1205 (class process_target): Add the target op.
1206 (join_inferior): Update the macro.
1207
1208 Update the derived classes and callers below.
1209
1210 * linux-low.cc (linux_target_ops): Update.
1211 (linux_join): Turn into ...
1212 (linux_process_target::join): ... this.
1213 * linux-low.h (class linux_process_target): Update.
1214 * lynx-low.cc (lynx_target_ops): Update.
1215 (lynx_join): Turn into ...
1216 (lynx_process_target::join): ... this.
1217 * lynx-low.h (class lynx_process_target): Update.
1218 * nto-low.cc (nto_target_ops): Update.
1219 (nto_process_target::join): Define.
1220 * nto-low.h (class nto_process_target): Update.
1221 * win32-low.cc (win32_target_ops): Update.
1222 (win32_join): Turn into ...
1223 (win32_process_target::join): ... this.
1224 * win32-low.h (class win32_process_target): Update.
1225
1226 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1227
1228 Turn process_stratum_target's mourn op into a method of
1229 process_target.
1230
1231 * target.h (struct process_stratum_target): Remove the target op.
1232 (class process_target): Add the target op.
1233
1234 Update the derived classes and callers below.
1235
1236 * target.cc (target_mourn_inferior): Update.
1237 * linux-low.cc (linux_target_ops): Update.
1238 (linux_mourn): Turn into ...
1239 (linux_process_target::mourn): ... this.
1240 (handle_extended_wait): Update.
1241 (linux_process_target::kill): Update.
1242 (linux_process_target::detach): Update.
1243 * linux-low.h (class linux_process_target): Update.
1244 * lynx-low.cc (lynx_target_ops): Update.
1245 (lynx_mourn): Turn into ...
1246 (lynx_process_target::mourn): ... this.
1247 * lynx-low.h (class lynx_process_target): Update.
1248 * nto-low.cc (nto_target_ops): Update.
1249 (nto_mourn): Turn into ...
1250 (nto_process_target::mourn): ... this.
1251 * nto-low.h (class nto_process_target): Update.
1252 * win32-low.cc (win32_target_ops): Update.
1253 (win32_mourn): Turn into ...
1254 (win32_process_target::mourn): ... this.
1255 * win32-low.h (class win32_process_target): Update.
1256
1257 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1258
1259 Turn process_stratum_target's detach op into a method of
1260 process_target.
1261
1262 * target.h (struct process_stratum_target): Remove the target op.
1263 (class process_target): Add the target op.
1264 (detach_inferior): Update the macro.
1265
1266 Update the derived classes and callers below.
1267
1268 * linux-low.cc (linux_target_ops): Update.
1269 (linux_detach): Turn into ...
1270 (linux_process_target::detach): ... this.
1271 * linux-low.h (class linux_process_target): Update.
1272 * lynx-low.cc (lynx_target_ops): Update.
1273 (lynx_detach): Turn into ...
1274 (lynx_process_target::detach): ... this.
1275 * lynx-low.h (class lynx_process_target): Update.
1276 * nto-low.cc (nto_target_ops): Update.
1277 (nto_detach): Turn into ...
1278 (nto_process_target::detach): ... this.
1279 * nto-low.h (class nto_process_target): Update.
1280 * win32-low.cc (win32_target_ops): Update.
1281 (win32_detach): Turn into ...
1282 (win32_process_target::detach): ... this.
1283 * win32-low.h (class win32_process_target): Update.
1284
1285 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1286
1287 Turn process_stratum_target's kill op into a method of
1288 process_target.
1289
1290 * target.h (struct process_stratum_target): Remove the target op.
1291 (class process_target): Add the target op.
1292
1293 Update the derived classes and callers below.
1294
1295 * target.cc (kill_inferior): Update.
1296 * linux-low.cc (linux_target_ops): Update.
1297 (linux_kill): Turn into ...
1298 (linux_process_target::kill): ... this.
1299 * linux-low.h (class linux_process_target): Update.
1300 * lynx-low.cc (lynx_target_ops): Update.
1301 (lynx_kill): Turn into ...
1302 (lynx_process_target::kill): ... this.
1303 * lynx-low.h (class lynx_process_target): Update.
1304 * nto-low.cc (nto_target_ops): Update.
1305 (nto_kill): Turn into ...
1306 (nto_process_target::kill): ... this.
1307 * nto-low.h (class nto_process_target): Update.
1308 * win32-low.cc (win32_target_ops): Update.
1309 (win32_kill): Turn into ...
1310 (win32_process_target::kill): ... this.
1311 * win32-low.h (class win32_process_target): Update.
1312
1313 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1314
1315 Turn process_stratum_target's attach op into a method of
1316 process_target.
1317
1318 * target.h (struct process_stratum_target): Remove the target op.
1319 (class process_target): Add the target op.
1320 (myattach): Update the macro.
1321
1322 Update the derived classes and callers below.
1323
1324 * linux-low.cc (linux_target_ops): Update.
1325 (linux_attach): Turn into ...
1326 (linux_process_target::attach): ... this.
1327 * linux-low.h (class linux_process_target): Update.
1328 * lynx-low.cc (lynx_target_ops): Update.
1329 (lynx_attach): Turn into ...
1330 (lynx_process_target::attach): ... this.
1331 * lynx-low.h (class lynx_process_target): Update.
1332 * nto-low.cc (nto_target_ops): Update.
1333 (nto_attach): Turn into ...
1334 (nto_process_target::attach): ... this.
1335 * nto-low.h (class nto_process_target): Update.
1336 * win32-low.cc (win32_target_ops): Update.
1337 (win32_attach): Turn into ...
1338 (win32_process_target::attach): ... this.
1339 * win32-low.h (class win32_process_target): Update.
1340
1341 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1342
1343 Turn process_stratum_target's post_create_inferior op into a method
1344 of process_target.
1345
1346 * target.h (struct process_stratum_target): Remove the target op.
1347 (class process_target): Add the target op.
1348 (target_post_create_inferior): Update the macro.
1349 * target.cc (process_target::post_create_inferior): Define.
1350
1351 Update the derived classes and callers below.
1352
1353 * linux-low.cc (linux_target_ops): Update.
1354 (linux_post_create_inferior): Turn into ...
1355 (linux_process_target::post_create_inferior): ... this.
1356 * linux-low.h (class linux_process_target): Update.
1357 * lynx-low.cc (lynx_target_ops): Update.
1358 * nto-low.cc (nto_target_ops): Update.
1359 * win32-low.cc (win32_target_ops): Update.
1360
1361 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1362
1363 Turn process_stratum_target's create_inferior op into a method of
1364 process_target.
1365
1366 * target.h (struct process_stratum_target): Remove the target op.
1367 (class process_target): Add the target op.
1368 (create_inferior): Rename the macro to ...
1369 (target_create_inferior): ... this.
1370
1371 Update the derived classes and callers below.
1372
1373 * server.cc (handle_v_run): Update.
1374 (captured_main): Update.
1375 (process_serial_event): Update.
1376 * linux-low.cc (linux_target_ops): Update.
1377 (linux_create_inferior): Turn into ...
1378 (linux_process_target::create_inferior): ... this.
1379 * linux-low.h (class linux_process_target): Update.
1380 * lynx-low.cc (lynx_target_ops): Update.
1381 (lynx_create_inferior): Turn into ...
1382 (lynx_process_target::create_inferior): ... this.
1383 * lynx-low.h (class lynx_process_target): Update.
1384 * nto-low.cc (nto_target_ops): Update.
1385 (nto_create_inferior): Turn into ...
1386 (nto_process_target::create_inferior): ... this.
1387 * nto-low.h (class nto_process_target): Update.
1388 * win32-low.cc (win32_target_ops): Update.
1389 (win32_create_inferior): Turn into ...
1390 (win32_process_target::create_inferior): ... this.
1391 * win32-low.h (class win32_process_target): Update.
1392
1393 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1394
1395 * target.h (class process_target): New class definition.
1396 (struct process_stratum_target) <pt>: New field with type
1397 'process_target*'.
1398 * linux-low.h (class linux_process_target): Define as a derived
1399 class of 'process_target'.
1400 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1401 as the 'pt' field.
1402 * lynx-low.h (class lynx_process_target): Define as a derived
1403 class of 'process_target'.
1404 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1405 as the 'pt' field.
1406 * nto-low.h (class nto_process_target): Define as a derived
1407 class of 'process_target'.
1408 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1409 as the 'pt' field.
1410 * win32-low.h (class win32_process_target): Define as a derived
1411 class of 'process_target'.
1412 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1413 as the 'pt' field.
1414
1415 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1416
1417 * configure: Regenerate.
1418
1419 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
1420 Andrew Burgess <andrew.burgess@embecosm.com>
1421
1422 * linux-riscv-low.cc: New file.
1423 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1424 and nat/riscv-linux-tdesc.c.
1425 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1426 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1427 Define.
1428
1429 2020-02-14 Tom Tromey <tom@tromey.com>
1430
1431 * acinclude.m4: Don't include acx_configure_dir.m4.
1432 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1433 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1434 (all, install-only, uninstall, clean-info, clean)
1435 (maintainer-clean): Don't recurse.
1436 (subdir_do, all-lib): Remove.
1437 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1438 (GNULIB_H): Remove.
1439 (generated_files): Update.
1440 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1441 * configure: Rebuild.
1442 * configure.ac: Don't configure gnulib or libiberty.
1443 (GNULIB): Update.
1444
1445 2020-02-14 Eli Zaretskii <eliz@gnu.org>
1446
1447 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1448 preparing the command line for CreateProcess.
1449 (win32_create_inferior): Reflect the program name in debugging
1450 output that shows the process and its command line.
1451
1452 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1453
1454 * Makefile.in: Rename source files from .c to .cc.
1455 * %.c: Rename to %.cc.
1456 * configure.ac: Rename server.c to server.cc.
1457 * configure: Re-generate.
1458
1459 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1460
1461 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1462
1463 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
1464
1465 * win32-low.c (win32_create_inferior): Set signal_pid.
1466
1467 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
1468 Pedro Alves <palves@redhat.com>
1469
1470 Skip building gdbserver in a cross-configuration.
1471 * configure.srv: Set $gdbserver_host depending on whether $target
1472 is $host. Use $gdbserver_host instead of $host.
1473
1474 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1475
1476 * configure: Re-generate.
1477
1478 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1479
1480 * configure: Re-generate.
1481
1482 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1483
1484 * acinclude.m4: Update warning.m4 path.
1485
1486 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
1487
1488 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1489 (handle_exception): Set siginfo_er.
1490 (win32_xfer_siginfo): New function.
1491
1492 2020-02-07 Tom Tromey <tom@tromey.com>
1493 Pedro Alves <palves@redhat.com>
1494
1495 * README: Update build documentation.
1496 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1497 host, not target.
1498 * configure.ac: Update paths.
1499 * configure: Rebuild.
1500 * acinclude.m4: Update paths.
1501 * Makefile.in: Update include paths.
1502 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1503 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1504 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1505 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1506 (%-generated.c): Update paths.
1507 * Move entire directory from ../gdb/gdbserver.
1508
1509 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
1510
1511 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1512
1513 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1514
1515 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1516 assignment instead of srv_linux_obj.
1517
1518 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
1519
1520 * server.c (handle_qxfer_libraries): Write segment-address with
1521 paddress.
1522
1523 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
1524
1525 * Makefile.in (install-strip): New target.
1526 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1527 * aclocal.m4: Regenerate.
1528 * configure: Regenerate.
1529 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1530
1531 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1532
1533 * Makefile.in (SFILES): Adjust paths to point to real files.
1534 (OBS): Move waitstatus.o to target/waitstatus.o.
1535 (TAGS): Transform paths appropriately.
1536 (%.o): Rename to...
1537 (nat/%.o): ... this pattern rule.
1538 (%.o): Rename to...
1539 (target/%.o): ... this pattern rule.
1540 * configure.srv: Adjust paths throughout to include nat/ prefix
1541 with the revant files.
1542 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1543 * configure: Regenerate.
1544
1545 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1546
1547 * Makefile.in (TAGS): Remove config files from the recipe.
1548
1549 2020-01-14 Tom Tromey <tom@tromey.com>
1550
1551 * configure: Rebuild.
1552 * configure.ac: Remove any checks that were added to common.m4.
1553 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1554 lib-link.m4.
1555
1556 2020-01-14 Tom Tromey <tom@tromey.com>
1557
1558 * server.h: Include config.h.
1559 * gdbreplay.c: Include config.h.
1560 * configure: Rebuild.
1561 * configure.ac: Don't source common.host.
1562 * acinclude.m4: Update path.
1563 * Makefile.in (INCSUPPORT): New variable.
1564 (INCLUDE_CFLAGS): Add INCSUPPORT.
1565 (SFILES): Update paths.
1566 (version-generated.c): Update path to create-version.sh.
1567 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1568
1569 2020-01-14 Tom Tromey <tom@tromey.com>
1570
1571 * configure.ac (LIBS): Use WIN32APILIBS.
1572 (USE_WIN32API): Don't define.
1573 * configure: Rebuild.
1574
1575 2020-01-14 Tom Tromey <tom@tromey.com>
1576
1577 * configure: Rebuild.
1578
1579 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1580
1581 * Makefile.in (%-generated.c): Remove rule for files from
1582 regformats/i386.
1583
1584 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1585
1586 * configure: Re-generate.
1587
1588 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1589
1590 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1591 Define to static.
1592 * tracepoint.c (stop_tracing, flush_trace_buffer,
1593 about_to_request_buffer_space, get_trace_state_variable_value,
1594 set_trace_state_variable_value, gdb_collect): Add declaration.
1595
1596 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1597
1598 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
1599 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
1600 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
1601 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
1602 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
1603 static.
1604
1605 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1606
1607 * inferiors.c: Include gdbsupport/common-inferior.h.
1608
1609 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1610
1611 * hostio-errno.c: Include hostio.h.
1612
1613 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1614
1615 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
1616 prerequisite.
1617
1618 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1619
1620 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
1621 * linux-arm-tdesc.h: Include arch/arm.h.
1622
1623 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1624
1625 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
1626
1627 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1628
1629 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
1630 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
1631
1632 2020-01-10 Pedro Alves <palves@redhat.com>
1633
1634 * fork-child.c (post_fork_inferior): Pass target down to
1635 startup_inferior.
1636 * inferiors.c (switch_to_thread): Add process_stratum_target
1637 parameter.
1638 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
1639 * nto-low.c (nto_target_ops): Now a process_stratum_target.
1640 * linux-low.c (linux_target_ops): Now a process_stratum_target.
1641 * remote-utils.c (prepare_resume_reply): Pass the target to
1642 switch_to_thread.
1643 * target.c (the_target): Now a process_stratum_target.
1644 (done_accessing_memory): Pass the target to switch_to_thread.
1645 (set_target_ops): Ajust to use process_stratum_target.
1646 * target.h (struct target_ops): Rename to ...
1647 (struct process_stratum_target): ... this.
1648 (the_target, set_target_ops): Adjust.
1649 (prepare_to_access_memory): Adjust comment.
1650 * win32-low.c (child_xfer_memory): Adjust to use
1651 process_stratum_target.
1652 (win32_target_ops): Now a process_stratum_target.
1653
1654 2020-01-06 Eli Zaretskii <eliz@gnu.org>
1655 Pedro Alves <palves@redhat.com>
1656
1657 * win32-low.c (get_child_debug_event): Extract the fatal exception
1658 from the exit status and convert to the equivalent Posix signal
1659 number.
1660 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
1661 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
1662
1663 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
1664
1665 * Makefile.in: Use INSTALL_PROGRAM_ENV.
1666
1667 2020-01-01 Joel Brobecker <brobecker@adacore.com>
1668
1669 * server.c (gdbserver_version): Change copyright year to 2020.
1670 * gdbreplay.c (gdbreplay_version): Likewise.
1671
1672 2019-12-19 Christian Biesinger <cbiesinger@google.com>
1673
1674 * configure: Regenerate.
1675 * configure.ac: Quote variable arguments of test.
1676
1677 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1678
1679 * Makefile.in: Fix build with GNU Make 3.81
1680
1681 2019-12-16 Tom Tromey <tromey@adacore.com>
1682
1683 * server.c (get_exec_file): Constify result.
1684
1685 2019-12-10 Christian Biesinger <cbiesinger@google.com>
1686
1687 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
1688 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
1689 * config.in: Regenerate.
1690 * configure: Regenerate.
1691 * configure.ac: Don't check for strerror.
1692 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
1693 Call safe_strerror instead of strerror.
1694 * server.h (strerror): Remove this now-unnecessary declaration.
1695 * tracepoint.c (init_named_socket): Call safe_strerror instead of
1696 strerror.
1697 (gdb_agent_helper_thread): Likewise.
1698 * utils.c (perror_with_name): Likewise.
1699
1700 2019-11-26 Tom Tromey <tom@tromey.com>
1701
1702 * configure, config.in: Rebuild.
1703
1704 2019-11-26 Tom Tromey <tom@tromey.com>
1705
1706 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
1707 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
1708 gdb_sigmask.
1709 * configure, config.in: Rebuild.
1710
1711 2019-11-26 Tom Tromey <tom@tromey.com>
1712
1713 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1714 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1715 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
1716 * acinclude.m4: Include ax_pthread.m4.
1717 * config.in, configure: Rebuild.
1718
1719 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1720
1721 * debug.c (debug_set_output): Call safe_strerror instead of
1722 strerror.
1723 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
1724 (linux_kill_one_lwp): Likewise.
1725 (linux_detach_one_lwp): Likewise.
1726 (linux_wait_for_event_filtered): Likewise.
1727 (store_register): Likewise.
1728 * lynx-low.c (lynx_attach): Likewise.
1729 * mem-break.c (insert_memory_breakpoint): Likewise.
1730 (remove_memory_breakpoint): Likewise.
1731 (delete_fast_tracepoint_jump): Likewise.
1732 (set_fast_tracepoint_jump): Likewise.
1733 (uninsert_fast_tracepoint_jumps_at): Likewise.
1734 (reinsert_fast_tracepoint_jumps_at): Likewise.
1735 * nto-low.c (nto_xfer_memory): Likewise.
1736 (nto_resume): Likewise.
1737
1738 2019-11-20 Luis Machado <luis.machado@linaro.org>
1739
1740 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
1741 instead of register count.
1742 * tdesc.c (tdesc_contains_feature): New function.
1743 * tdesc.h (tdesc_contains_feature): New prototype.
1744
1745 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1746
1747 * Makefile.in: Add safe-strerror.c.
1748 * configure: Regenerate.
1749 * configure.ac: Don't source common.host.
1750
1751 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1752
1753 * config.in: Regenerate.
1754 * configure: Regenerate.
1755
1756 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1757
1758 * ax.c (ax_printf): Handle size_t_arg.
1759
1760 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1761
1762 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1763 * mi/mi-main.c (output_cores): Likewise.
1764 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1765 (linux_xfer_osdata_modules): Likewise.
1766 * remote.c (register_remote_support_xml): Likewise.
1767 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1768 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1769
1770 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1771
1772 * configure: Regenerate.
1773 * configure.ac: Remove check for strerror_r.
1774
1775 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1776
1777 * config.in: Regenerate.
1778 * configure: Regenerate.
1779 * configure.ac: Also check for strerror_r.
1780
1781 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1782
1783 * ax.h (debug_agent): Remove duplicate declaration.
1784
1785 2019-10-26 Tom de Vries <tdevries@suse.de>
1786
1787 * linux-aarch64-low.c: Fix typos in comments.
1788 * linux-arm-low.c: Same.
1789 * linux-low.c: Same.
1790 * linux-ppc-low.c: Same.
1791 * proc-service.c: Same.
1792 * regcache.h: Same.
1793 * server.c: Same.
1794 * tracepoint.c: Same.
1795 * win32-low.c: Same.
1796
1797 2019-10-25 Tom Tromey <tromey@adacore.com>
1798
1799 * utils.c (xstrdup): Remove.
1800
1801 2019-10-23 Tom Tromey <tom@tromey.com>
1802
1803 * configure, config.in: Rebuild.
1804
1805 2019-10-23 Tom Tromey <tom@tromey.com>
1806
1807 * configure: Rebuild.
1808 * acinclude.m4: Use m4_include, not sinclude.
1809
1810 2019-10-17 Tom Tromey <tromey@adacore.com>
1811
1812 * configure: Rebuild.
1813 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1814 in AC_CONFIG_FILES invocation.
1815 * Makefile.in (stamp-h, Makefile): Use new-style config.status
1816 invocation.
1817
1818 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1819
1820 * server.c: Include xml-builtin.h.
1821 (get_xml_features): Don't declare xml_builtins here.
1822
1823 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * Makefile.in: Remove references to vec-ipa.o.
1826
1827 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1828
1829 * Makefile.in: Remove references to vec.c.
1830
1831 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1832
1833 * server.c (server_waiting): Change to bool.
1834 (extended_protocol): Likewise.
1835 (response_needed): Likewise.
1836 (exit_requested): Likewise.
1837 (run_once): Likewise.
1838 (report_no_resumed): Likewise.
1839 (non_stop): Likewise.
1840 (disable_packet_vCont): Likewise.
1841 (disable_packet_Tthread): Likewise.
1842 (disable_packet_qC): Likewise.
1843 (disable_packet_qfThreadInfo): Likewise.
1844 (handle_general_set): Update.
1845 (handle_detach): Update.
1846 (handle_monitor_command): Update.
1847 (handle_query): Update.
1848 (captured_main): Update.
1849 (process_serial_event): Update.
1850 * server.h (server_waiting): Change to bool.
1851 (disable_packet_vCont): Likewise.
1852 (disable_packet_Tthread): Likewise.
1853 (disable_packet_qC): Likewise.
1854 (disable_packet_qfThreadInfo): Likewise.
1855 (run_once): Likewise.
1856 (non_stop): Likewise.
1857 * target.c (target_stop_and_wait): Update.
1858
1859 2019-10-02 Tom Tromey <tromey@adacore.com>
1860
1861 * Makefile.in (SFILES): Add common-inferior.c.
1862 (OBS): Add common-inferior.o.
1863 * server.c (startup_with_shell): Don't define.
1864
1865 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1866
1867 * linux-low.c (linux_low_read_btrace): Update for change to
1868 std::vector.
1869
1870 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1871
1872 * debug.c (debug_threads): Remove comment in favor of the header.
1873 * debug.h (using_threads): Add declaration.
1874 (debug_threads): Add comment.
1875 * linux-aarch64-low.c: Include debug.h and remove declaration of
1876 debug_threads.
1877 * nto-low.c: Likewise.
1878 * remote-utils.c: Likewise.
1879 * thread-db.c: Likewise.
1880
1881 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1882
1883 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
1884 and powerpc-cell64l-ipa.o.
1885 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
1886 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
1887 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
1888 (spu*-*-*): Remove.
1889
1890 * spu-low.c: Remove file.
1891
1892 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
1893 (parse_spufs_run): Remove.
1894 (ppc_get_pc): Remove Cell/B.E. support.
1895 (ppc_set_pc): Likewise.
1896 (ppc_breakpoint_at): Likewise.
1897 (ppc_arch_setup): Likewise.
1898 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
1899 tdesc_powerpc_cell32l.
1900 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
1901 or init_registers_powerpc_cell32l.
1902 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
1903 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
1904 or init_registers_powerpc_cell32l.
1905 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
1906 (init_registers_powerpc_cell32l): Remove prototype.
1907 (init_registers_powerpc_cell64l): Likewise.
1908
1909 * target.h (struct target_ops): Remove qxfer_spu member.
1910 * server.c (handle_qxfer_spu): Remove.
1911 (qxfer_packets): Remove entry for "spu".
1912 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
1913 * linux-low.c (SPUFS_MAGIC): Remove.
1914 (spu_enumerate_spu_ids): Remove.
1915 (linux_qxfer_spu): Remove.
1916 (linux_target_ops): Remove qxfer_spu member.
1917 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
1918 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
1919 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
1920
1921 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1922
1923 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
1924 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
1925 * config.in: Regenerate.
1926 * configure: Regenerate.
1927
1928 2019-08-15 Tom Tromey <tromey@adacore.com>
1929
1930 * target.c (target_write_memory): Use gdb::byte_vector.
1931
1932 2019-08-15 Tom Tromey <tromey@adacore.com>
1933
1934 * tracepoint.c (write_inferior_data_pointer)
1935 (write_inferior_integer, write_inferior_int8)
1936 (write_inferior_uinteger, m_tracepoint_action_download)
1937 (r_tracepoint_action_download, x_tracepoint_action_download)
1938 (l_tracepoint_action_download, clear_inferior_trace_buffer)
1939 (download_agent_expr, download_tracepoint_1)
1940 (download_trace_state_variables, upload_fast_traceframes): Update.
1941 * server.c (gdb_write_memory): Update.
1942 * remote-utils.c (relocate_instruction): Update.
1943 * proc-service.c (ps_pdwrite): Update.
1944 * mem-break.c (remove_memory_breakpoint)
1945 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
1946 (uninsert_fast_tracepoint_jumps_at)
1947 (reinsert_fast_tracepoint_jumps_at): Update.
1948 * linux-x86-low.c (append_insns)
1949 (i386_install_fast_tracepoint_jump_pad)
1950 (amd64_write_goto_address, i386_write_goto_address): Update.
1951 * linux-s390-low.c (append_insns, s390_write_goto_address):
1952 Update.
1953 * linux-ppc-low.c (ppc_relocate_instruction)
1954 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
1955 (ppc_write_goto_address): Update.
1956 * linux-aarch64-low.c (append_insns): Update.
1957 * target.h (struct target_ops): Update.
1958 (write_inferior_memory): Don't declare.
1959 * target.c (target_write_memory): Rename from
1960 write_inferior_memory. Remove old target_write_memory.
1961
1962 2019-08-15 Tom Tromey <tromey@adacore.com>
1963
1964 * target.c (write_inferior_memory): Use std::vector.
1965
1966 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
1967
1968 PR build/24886
1969 * configure.ac: Drop enable-libmcheck support.
1970 * configure, config.in: Rebuild.
1971 * acinclude.m4: Don't include it.
1972
1973 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1974
1975 * configure.srv: Remove Arm xml files.
1976
1977 2019-07-19 Alan Hayward <alan.hayward@arm.com>
1978
1979 * configure.srv: Add new files. Remove xml generated files.
1980 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
1981 registers.
1982 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
1983 * linux-aarch32-tdesc.c: New file.
1984 * linux-aarch32-tdesc.h: New file.
1985 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
1986 * linux-arm-low.c (init_registers_arm, tdesc_arm)
1987 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
1988 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
1989 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
1990 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
1991 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
1992 (arm_read_description): Call arm_linux_read_description.
1993 (initialize_low_arch): Don't init registers.
1994 * linux-arm-tdesc.c: New file.
1995 * linux-arm-tdesc.h: New file.
1996
1997 2019-07-10 Alan Hayward <alan.hayward@arm.com>
1998
1999 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2000 Move counter inside for.
2001 (arm_read_description): Check ptrace earlier.
2002 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2003
2004 2019-07-09 Tom Tromey <tom@tromey.com>
2005
2006 * configure: Rebuild.
2007 * configure.ac: Change common to gdbsupport.
2008 * acinclude.m4: Change common to gdbsupport.
2009 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2010 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2011 common to gdbsupport.
2012 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2013 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2014 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2015 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2016 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2017 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2018 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2019 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2020 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2021 common to gdbsupport.
2022
2023 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2024
2025 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2026 defines.
2027 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2028
2029 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2030
2031 * configure.srv: Remove legacy xml.
2032 * linux-aarch64-low.c (initialize_low_arch): Remove
2033 initialize_low_tdesc call.
2034 * linux-aarch64-tdesc-selftest.c: Remove file.
2035 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2036 * linux-x86-low.c (initialize_low_arch): Remove
2037 initialize_low_tdesc call.
2038 * linux-x86-tdesc-selftest.c: Remove file.
2039 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2040
2041 2019-06-20 Tom de Vries <tdevries@suse.de>
2042
2043 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2044 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2045
2046 2019-06-19 Tom de Vries <tdevries@suse.de>
2047
2048 * debug.h (debug_write): Change return type to ssize_t.
2049 * debug.c (debug_write): Same.
2050
2051 2019-06-14 Tom Tromey <tom@tromey.com>
2052
2053 * configure.ac: Use new path to gnulib.
2054 * configure: Rebuild.
2055 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2056 to gnulib.
2057
2058 2019-06-11 Tom Tromey <tom@tromey.com>
2059
2060 * Makefile.in (SFILES): Add alloc.c.
2061 (OBS): Add alloc.o.
2062 (IPA_OBJS): Add alloc-ipa.o.
2063 (alloc-ipa.o): New target.
2064 (%.o: ../%.c): New pattern rule.
2065
2066 2019-06-10 Tom Tromey <tromey@adacore.com>
2067
2068 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
2069 end warning with a newline.
2070 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
2071 newline.
2072 * thread-db.c (attach_thread): Don't end warning with a newline.
2073 (thread_db_notice_clone): Likewise.
2074 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
2075 newline.
2076 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2077 end warning with a newline.
2078
2079 2019-06-04 Pedro Alves <palves@redhat.com>
2080
2081 * server.c (captured_main): Use make_unique_xstrdup.
2082
2083 2019-06-02 Tom Tromey <tom@tromey.com>
2084
2085 * gdbreplay.c (fromhex): Remove.
2086 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2087
2088 2019-05-29 Tom Tromey <tromey@adacore.com>
2089
2090 * configure: Rebuild.
2091
2092 2019-05-06 Kevin Buettner <kevinb@redhat.com>
2093
2094 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2095 sign extension code on 32-bit builds.
2096
2097 2019-05-03 Eli Zaretskii <eliz@gnu.org>
2098
2099 * remote-utils.c:
2100 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2101
2102 2019-04-19 Tom Tromey <tom@tromey.com>
2103
2104 * server.c (struct vstop_notif): Derive from notif_event.
2105 <base>: Remove.
2106 (queue_stop_reply): Update.
2107 (remove_all_on_match_ptid): Change type. Rewrite.
2108 (discard_queued_stop_replies): Rewrite.
2109 (in_queued_stop_replies_ptid): Change type.
2110 (in_queued_stop_replies): Rewrite.
2111 (notif_stop): Update.
2112 (queue_stop_reply_callback): Update.
2113 (captured_main): Don't call initialize_notif.
2114 (push_stop_notification): Update.
2115 * notif.c (notif_write_event, handle_notif_ack)
2116 (notif_event_enque, notif_push): Update.
2117 (notif_event_xfree, initialize_notif): Remove.
2118 * notif.h (struct notif_event): Include <list>, not
2119 "common/queue.h".
2120 (struct notif_server) <queue>: Now a std::list.
2121 (notif_event_p): Remove typedef.
2122 (initialize_notif): Don't declare.
2123 (struct notif_event): Add virtual destructor.
2124
2125 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2126
2127 * ax.c (ax_vdebug): Call debug_printf.
2128 * debug.c (debug_write): New function.
2129 * debug.h (debug_write): New declaration.
2130 * linux-low.c (sigchld_handler): Call debug_write.
2131
2132 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2133
2134 * debug.c (debug_set_output): New function.
2135 (debug_vprintf): Send output to debug_file.
2136 (debug_flush): Likewise.
2137 * debug.h (debug_set_output): New declaration.
2138 * server.c (handle_monitor_command): Add debug-file option.
2139 (captured_main): Likewise.
2140
2141 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2142
2143 * debug.c (remote_debug): Add definition.
2144 * debug.h (remote_debug): Add declaration.
2145 * hostio.c (remote_debug): Remove declaration.
2146 * remote-utils.c (struct ui_file): Likewise.
2147 (remote_debug): Likewise.
2148 * remote-utils.h (remote_debug): Likewise,
2149 * server.c (remote_debug): Remove definition.
2150
2151 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2152
2153 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2154 when using a 64-bit gdbserver.
2155
2156 2019-04-09 Tom Tromey <tromey@adacore.com>
2157
2158 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2159
2160 2019-04-08 Tom Tromey <tom@tromey.com>
2161
2162 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2163 throw.
2164 (linux_resume_one_lwp): Likewise.
2165
2166 2019-04-08 Tom Tromey <tom@tromey.com>
2167
2168 * gdbreplay.c: Update.
2169 * linux-low.c: Update.
2170 * server.c: Update.
2171
2172 2019-04-08 Tom Tromey <tom@tromey.com>
2173
2174 * server.c: Use C++ exception handling.
2175 * linux-low.c: Use C++ exception handling.
2176 * gdbreplay.c: Use C++ exception handling.
2177
2178 2019-04-08 Tom Tromey <tom@tromey.com>
2179
2180 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
2181 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
2182 (captured_main, main): Update.
2183 * gdbreplay.c (main): Update.
2184
2185 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2186
2187 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
2188 value in argument pointer, return 1 if the entry is found and 0
2189 otherwise. Move comment.
2190 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
2191 * linux-low.h (linux_get_auxv): Declare.
2192 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
2193
2194 2019-04-05 Tom Tromey <tromey@adacore.com>
2195
2196 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2197 variables.
2198
2199 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2200
2201 * linux-low.c (AT_HWCAP2): Add define if not already included.
2202
2203 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2204
2205 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
2206 (aarch64_arch_setup): Call linux_get_hwcap.
2207 * linux-arm-low.c (arm_get_hwcap): Remove function.
2208 (arm_read_description): Call linux_get_hwcap.
2209 * linux-low.c (linux_get_auxv): New function.
2210 (linux_get_hwcap): Likewise.
2211 (linux_get_hwcap2): Likewise.
2212 * linux-low.h (linux_get_hwcap): New declaration.
2213 (linux_get_hwcap2): Likewise.
2214 * linux-ppc-low.c (ppc_get_auxv): Remove function.
2215 (ppc_arch_setup): Call linux_get_hwcap.
2216 * linux-s390-low.c (s390_get_hwcap): Remove function.
2217 (s390_arch_setup): Call linux_get_hwcap.
2218
2219 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2220 Jiong Wang <jiong.wang@arm.com>
2221
2222 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2223 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2224 to fail.
2225 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2226
2227 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2228 Jiong Wang <jiong.wang@arm.com>
2229
2230 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2231 (aarch64_get_hwcap): New function.
2232 (aarch64_arch_setup): Read APIA hwcap.
2233
2234 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2235 Jiong Wang <jiong.wang@arm.com>
2236
2237 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
2238 (initialize_low_tracepoint): Likewise.
2239 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
2240 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
2241 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
2242 (aarch64_linux_read_description): Likewise.
2243 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
2244
2245 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2246
2247 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
2248 i386_create_target_description for 'segments' parameter.
2249 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
2250 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2251 * win32-i386-low.c (i386_arch_setup): Likewise.
2252
2253 2019-03-12 Tom Tromey <tromey@adacore.com>
2254
2255 * linux-low.c (iterate_over_lwps): Update.
2256
2257 2019-03-06 Tom Tromey <tom@tromey.com>
2258
2259 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2260 (captured_main): Use SCOPE_EXIT.
2261
2262 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2263
2264 * configure.srv: Use '$enable_unittest' instead of '$development'
2265 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2266 case.
2267
2268 2019-02-27 Tom Tromey <tromey@adacore.com>
2269
2270 * gdbreplay.c (logchar): Handle \r\n.
2271
2272 2019-02-07 Alan Hayward <alan.hayward@arm.com>
2273
2274 * linux-low.c (linux_attach): Add process before lwp.
2275 * server.c (attach_inferior): Check if already attached.
2276
2277 2019-02-07 Tom Tromey <tom@tromey.com>
2278
2279 * x86-tdesc.h: Rename include guard.
2280 * x86-low.h: Add include guard.
2281 * wincecompat.h: Rename include guard.
2282 * win32-low.h: Add include guard.
2283 * utils.h: Rename include guard.
2284 * tracepoint.h: Rename include guard.
2285 * tdesc.h: Rename include guard.
2286 * target.h: Rename include guard.
2287 * server.h: Rename include guard.
2288 * remote-utils.h: Rename include guard.
2289 * regcache.h: Rename include guard.
2290 * nto-low.h: Rename include guard.
2291 * notif.h: Add include guard.
2292 * mem-break.h: Rename include guard.
2293 * lynx-low.h: Add include guard.
2294 * linux-x86-tdesc.h: Add include guard.
2295 * linux-s390-tdesc.h: Add include guard.
2296 * linux-ppc-tdesc-init.h: Add include guard.
2297 * linux-low.h: Add include guard.
2298 * linux-aarch64-tdesc.h: Add include guard.
2299 * linux-aarch32-low.h: Add include guard.
2300 * inferiors.h: Rename include guard.
2301 * i387-fp.h: Rename include guard.
2302 * hostio.h: Rename include guard.
2303 * gdbthread.h: Rename include guard.
2304 * gdb_proc_service.h: Rename include guard.
2305 * event-loop.h: Rename include guard.
2306 * dll.h: Rename include guard.
2307 * debug.h: Rename include guard.
2308 * ax.h: Rename include guard.
2309
2310 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2311
2312 PR gdb/23985
2313 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2314 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2315
2316 2019-01-25 Tom Tromey <tom@tromey.com>
2317
2318 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2319
2320 2019-01-25 Tom Tromey <tom@tromey.com>
2321
2322 * win32-low.c: Fix common/ includes.
2323 * win32-i386-low.c: Fix common/ includes.
2324 * tracepoint.c: Fix common/ includes.
2325 * thread-db.c: Fix common/ includes.
2326 * target.h: Fix common/ includes.
2327 * symbol.c: Fix common/ includes.
2328 * spu-low.c: Fix common/ includes.
2329 * server.h: Fix common/ includes.
2330 * server.c: Fix common/ includes.
2331 * remote-utils.c: Fix common/ includes.
2332 * regcache.h: Fix common/ includes.
2333 * regcache.c: Fix common/ includes.
2334 * nto-x86-low.c: Fix common/ includes.
2335 * notif.h: Fix common/ includes.
2336 * mem-break.h: Fix common/ includes.
2337 * lynx-low.c: Fix common/ includes.
2338 * lynx-i386-low.c: Fix common/ includes.
2339 * linux-x86-tdesc-selftest.c: Fix common/ includes.
2340 * linux-x86-low.c: Fix common/ includes.
2341 * linux-low.c: Fix common/ includes.
2342 * inferiors.h: Fix common/ includes.
2343 * i387-fp.c: Fix common/ includes.
2344 * hostio.c: Fix common/ includes.
2345 * hostio-errno.c: Fix common/ includes.
2346 * gdbthread.h: Fix common/ includes.
2347 * gdbreplay.c: Fix common/ includes.
2348 * fork-child.c: Fix common/ includes.
2349 * event-loop.c: Fix common/ includes.
2350 * ax.c:
2351 (enum gdb_agent_op): Fix common/ includes.
2352
2353 2019-01-21 Tom Tromey <tom@tromey.com>
2354
2355 * tracepoint.c: Fix includes.
2356 * remote-utils.c: Fix includes.
2357 * linux-x86-low.c: Fix includes.
2358
2359 2019-01-01 Joel Brobecker <brobecker@adacore.com>
2360
2361 * gdbreplay.c (gdbreplay_version): Update copyright year in
2362 version message.
2363 * server.c (gdbserver_version): Likewise.
2364
2365 2018-12-05 Alan Hayward <alan.hayward@arm.com>
2366
2367 * linux-low.c (add_lwp): Switch ordering.
2368
2369 2018-11-29 Tom Tromey <tom@tromey.com>
2370
2371 * win32-low.c (win32_join): Take pid, not process.
2372 * target.h (struct target_ops) <join>: Change argument type.
2373 (join_inferior): Change argument name.
2374 * spu-low.c (spu_join): Take pid, not process.
2375 * server.c (handle_detach): Preserve pid before destroying
2376 process.
2377 * lynx-low.c (lynx_join): Take pid, not process.
2378 * linux-low.c (linux_join): Take pid, not process.
2379
2380 2018-11-23 Alan Hayward <alan.hayward@arm.com>
2381
2382 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2383 (aarch64_cannot_fetch_register): Likewise.
2384 (struct linux_target_ops): Update references.
2385
2386 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2387
2388 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2389
2390 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2391
2392 * configure.srv (ipa_ppc_linux_regobj): Add
2393 powerpc-isa207-htm-vsx32l-ipa.o and
2394 powerpc-isa207-htm-vsx64l-ipa.o.
2395 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2396 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2397 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2398 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2399 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2400 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2401 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2402 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2403 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2404 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2405 (init_registers_powerpc_isa207_htm_vsx32l)
2406 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2407 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2408 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2409 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2410 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2411 (ppc_store_tm_ctarregset): New functions.
2412 (ppc_regsets): Add entries for HTM regsets.
2413 (ppc_arch_setup): Set htm in features struct when needed. Set
2414 sizes for the HTM regsets.
2415 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2416 (initialize_low_arch): Call
2417 init_registers_powerpc_isa207_htm_vsx32l and
2418 init_registers_powerpc_isa207_htm_vsx64l.
2419 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2420 PPC_TDESC_ISA207_HTM_VSX.
2421 (initialize_low_tracepoint): Call
2422 init_registers_powerpc_isa207_htm_vsx32l and
2423 init_registers_powerpc_isa207_htm_vsx64l.
2424
2425 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2426
2427 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2428 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2429 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2430 (ppc_store_pmuregset): New functions.
2431 (ppc_regsets): Add entries for ebb and pmu regsets.
2432 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2433 pmu regsets are available. Set sizes for these regsets.
2434
2435 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2436
2437 * configure.srv (ipa_ppc_linux_regobj): Add
2438 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2439 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2440 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2441 rs6000/powerpc-isa207-vsx32l.xml, and
2442 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2443 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2444 <PPC_TDESC_ISA207_VSX>: New enum value.
2445 (init_registers_powerpc_isa207_vsx32l): Declare.
2446 (init_registers_powerpc_isa207_vsx64l): Declare.
2447 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2448 (ppc_store_tarregset): New function.
2449 (ppc_regsets): Add entry for the TAR regset.
2450 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2451 size for the TAR regsets.
2452 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2453 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2454 and init_registers_powerpc_isa207_vsx64l.
2455 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2456 (initialize_low_tracepoint): Call
2457 init_registers_powerpc_isa207_vsx32l and
2458 init_registers_powerpc_isa207_vsx64l.
2459
2460 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2461 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2462
2463 * configure.srv (ipa_ppc_linux_regobj): Add
2464 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2465 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2466 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2467 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2468 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2469 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2470 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2471 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2472 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2473 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2474 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2475 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2476 (ppc_hwcap): Add comment.
2477 (ppc_hwcap2): New global.
2478 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2479 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2480 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2481 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2482 when needed. Set sizes for the the DSCR and PPR regsets.
2483 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2484 (initialize_low_arch): Call
2485 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2486 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2487 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2488 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2489 (initialize_low_tracepoint): Call
2490 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2491 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2492
2493 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2494
2495 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2496
2497 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2498 Simon Marchi <simark@simark.ca>
2499
2500 * acinclude.m4: Include "../selftest.m4".
2501 * configure: Regenerate.
2502 * configure.ac: Use "GDB_AC_SELFTEST".
2503 * configure.srv: Use "$enable_unittests" instead of
2504 "$development" when checking whether unit tests have been
2505 enabled.
2506 * server.c (captured_main): Update message informing that
2507 selftests have been disabled.
2508
2509 2018-10-04 Tom Tromey <tom@tromey.com>
2510
2511 * configure: Rebuild.
2512
2513 2018-10-04 Tom Tromey <tom@tromey.com>
2514
2515 * server.c (handle_status): Rename inner "thread".
2516 (process_serial_event): Declare "res" in 'm' case.
2517 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
2518 (iterate_over_lwps): Rename inner "thread".
2519 (linux_qxfer_libraries_svr4): Rename inner "len".
2520 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2521
2522 2018-10-01 Gary Benson <gbenson@redhat.com>
2523
2524 * gdb_proc_service.h: Moved common code to
2525 common/gdb_proc_service.h.
2526
2527 2018-10-01 Gary Benson <gbenson@redhat.com>
2528
2529 * gdb_proc_service.h: Synchronize comments and whitespace with
2530 GDB's version of this file.
2531
2532 2018-09-25 Tom Tromey <tom@tromey.com>
2533
2534 * configure: Rebuild.
2535 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2536
2537 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2538
2539 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2540 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2541 ($(IPA_LIB)): Sort IPA_OBJS.
2542
2543 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2544
2545 * Makefile.in: Remove references to $(ADD_DEPS).
2546
2547 2018-09-16 Tom Tromey <tom@tromey.com>
2548
2549 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2550 variables.
2551 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2552 variables.
2553
2554 2018-09-05 Tom Tromey <tom@tromey.com>
2555
2556 * configure: Rebuild.
2557
2558 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2559
2560 PR build/23399
2561 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2562
2563 2018-08-27 Tom Tromey <tom@tromey.com>
2564
2565 PR build/23087:
2566 * configure: Rebuild.
2567
2568 2018-08-27 Tom Tromey <tom@tromey.com>
2569
2570 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2571 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2572 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2573 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2574 (s390x_emit_stack_adjust): Add casts to unsigned char.
2575
2576 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2577
2578 PR gdb/23374
2579 PR gdb/23375
2580 * server.h (struct client_state) <disable_randomization>:
2581 Initialize to 1.
2582
2583 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2584
2585 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2586 variable.
2587 (mips_supply_ptrace_register): Likewise.
2588
2589 2018-07-22 Tom Tromey <tom@tromey.com>
2590
2591 * configure: Rebuild.
2592
2593 2018-07-22 Tom Tromey <tom@tromey.com>
2594
2595 * win32-low.c (win32_create_inferior): Remove unused variables.
2596 * gdbreplay.c (remote_open): Remove unused variable.
2597 * remote-utils.c (remote_prepare): Remove unused variable.
2598 * x86-tdesc.h (X86_TDESC_H): Define.
2599 (amd64_expedite_regs): Define conditionally.
2600 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
2601 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
2602 * remote-utils.c (readchar): Remove unused variable.
2603
2604 2018-07-13 Pedro Alves <palves@redhat.com>
2605
2606 * linux-low.c (linux_kill): Change parameter to process_info
2607 pointer instead of pid. Adjust.
2608 * lynx-low.c (lynx_kill): Likewise.
2609 * nto-low.c (nto_kill): Likewise.
2610 * spu-low.c (spu_kill): Likewise.
2611 * win32-low.c (win32_kill): Likewise.
2612 * server.c (handle_v_kill, kill_inferior_callback)
2613 (detach_or_kill_for_exit): Adjust.
2614 * target.c (kill_inferior): Change parameter to process_info
2615 pointer instead of pid. Adjust.
2616 * target.h (struct target_ops) <kill>: Change parameter to
2617 process_info pointer instead of pid. Adjust all implementations
2618 and callers.
2619 (kill_inferior): Likewise.
2620
2621 2018-07-13 Pedro Alves <palves@redhat.com>
2622
2623 * linux-low.c (linux_detach, linux_join): Change parameter to
2624 process_info pointer instead of pid. Adjust.
2625 * lynx-low.c (lynx_detach, lynx_join): Likewise.
2626 * nto-low.c (nto_detach): Likewise.
2627 * spu-low.c (spu_detach, spu_join): Likewise.
2628 * win32-low.c (win32_detach, win32_join): Likewise.
2629 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
2630 * target.h (struct target_ops) <detach, join>: Change parameter to
2631 process_info pointer instead of pid. Adjust all implementations
2632 and callers.
2633 (detach_inferior, join_inferior): Rename 'pid' parameter to
2634 'proc'.
2635
2636 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2637 Jan Kratochvil <jan.kratochvil@redhat.com>
2638 Paul Fertser <fercerpav@gmail.com>
2639 Tsutomu Seki <sekiriki@gmail.com>
2640
2641 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
2642 (OBS): Add 'common/netstuff.o'.
2643 (GDBREPLAY_OBS): Likewise.
2644 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
2645 (remote_open): Implement support for IPv6
2646 connections.
2647 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
2648 and 'wspiapi.h'.
2649 (handle_accept_event): Accept connections from IPv6 sources.
2650 (remote_prepare): Handle IPv6-style hostnames; implement
2651 support for IPv6 connections.
2652 (remote_open): Implement support for printing connections from
2653 IPv6 sources.
2654
2655 2018-07-11 Pedro Alves <palves@redhat.com>
2656
2657 PR gdb/23377
2658 * mem-break.c (any_persistent_commands): Add process_info
2659 parameter and use it instead of relying on the current process.
2660 Change return type to bool.
2661 * mem-break.h (any_persistent_commands): Add process_info
2662 parameter and change return type to bool.
2663 * server.c (handle_detach): Remove require_running_or_return call.
2664 Look up the process_info for the process we're about to detach.
2665 If not found, return back error to GDB. Adjust
2666 any_persistent_commands call to pass down a process pointer.
2667
2668 2018-07-11 Pedro Alves <palves@redhat.com>
2669
2670 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
2671 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
2672 instead of collect_register_by_name.
2673 * regcache.c (regcache_raw_get_unsigned_by_name): New.
2674 * regcache.h (regcache_raw_get_unsigned_by_name): New.
2675
2676 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2677 Pedro Alves <palves@redhat.com>
2678
2679 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
2680
2681 2018-07-03 Tom Tromey <tom@tromey.com>
2682
2683 * linux-low.c: Update.
2684 * lynx-low.c: Update.
2685 * mem-break.c: Update.
2686 * nto-low.c: Update.
2687 * remote-utils.c: Update.
2688 * server.c: Update.
2689 * spu-low.c: Update.
2690 * target.c: Update.
2691 * win32-low.c: Update.
2692
2693 2018-07-03 Tom Tromey <tom@tromey.com>
2694
2695 * server.c: Update.
2696
2697 2018-07-03 Tom Tromey <tom@tromey.com>
2698
2699 * linux-low.c: Update.
2700
2701 2018-07-03 Tom Tromey <tom@tromey.com>
2702
2703 * target.c: Update.
2704
2705 2018-07-03 Tom Tromey <tom@tromey.com>
2706
2707 * linux-low.c: Update.
2708 * linux-mips-low.c: Update.
2709 * lynx-low.c: Update.
2710 * nto-low.c: Update.
2711 * remote-utils.c: Update.
2712 * server.c: Update.
2713 * spu-low.c: Update.
2714 * target.c: Update.
2715 * thread-db.c: Update.
2716
2717 2018-07-03 Tom Tromey <tom@tromey.com>
2718
2719 * linux-low.c: Update.
2720 * linux-mips-low.c: Update.
2721 * lynx-low.c: Update.
2722 * mem-break.c: Update.
2723 * nto-low.c: Update.
2724 * remote-utils.c: Update.
2725 * server.c: Update.
2726 * spu-low.c: Update.
2727 * target.c: Update.
2728 * tracepoint.c: Update.
2729
2730 2018-07-03 Tom Tromey <tom@tromey.com>
2731
2732 * linux-low.c: Update.
2733 * linux-ppc-low.c: Update.
2734 * linux-x86-low.c: Update.
2735 * proc-service.c: Update.
2736 * server.c: Update.
2737 * spu-low.c: Update.
2738 * thread-db.c: Update.
2739 * win32-low.c: Update.
2740
2741 2018-07-03 Tom Tromey <tom@tromey.com>
2742
2743 * linux-low.c: Update.
2744 * lynx-low.c: Update.
2745 * nto-low.c: Update.
2746 * remote-utils.c: Update.
2747 * spu-low.c: Update.
2748 * thread-db.c: Update.
2749 * win32-low.c: Update.
2750
2751 2018-06-29 Joel Brobecker <brobecker@adacore.com>
2752
2753 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
2754 parameter in call to 'amd64_create_target_description'.
2755
2756 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2757
2758 * x86-tdesc.h: Remove executable permission flag.
2759
2760 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
2761
2762 * configure.ac: Remove AC_PREREQ, add missing quoting.
2763 * configure: Re-generate.
2764 * config.in: Re-generate.
2765 * aclocal.m4: Re-generate.
2766
2767 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
2768
2769 * tracepoint.h (current_traceframe): Remove declaration.
2770
2771 2018-06-18 Alan Hayward <alan.hayward@arm.com>
2772
2773 * linux-aarch64-low.c (is_sve_tdesc): New function.
2774 (aarch64_sve_regs_copy_to_regcache): Likewise.
2775 (aarch64_sve_regs_copy_from_regcache): Likewise.
2776 (aarch64_regs_info): Add SVE checks.
2777 (initialize_low_arch): Initialize SVE.
2778
2779 2018-06-18 Alan Hayward <alan.hayward@arm.com>
2780
2781 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
2782
2783 2018-06-11 Alan Hayward <alan.hayward@arm.com>
2784
2785 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
2786 (initialize_low_tracepoint): Likewise
2787 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
2788 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
2789 param.
2790 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
2791 checks.
2792 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
2793
2794 2018-06-11 Alan Hayward <alan.hayward@arm.com>
2795
2796 * server.h (PBUFSIZ): Increase size
2797
2798 2018-06-11 Alan Hayward <alan.hayward@arm.com>
2799
2800 * regcache.c (regcache::raw_compare): New function.
2801 * regcache.h (regcache::raw_compare): New declaration.
2802
2803 2018-06-11 Alan Hayward <alan.hayward@arm.com>
2804
2805 * regcache.c (new_register_cache): Use new.
2806 (free_register_cache): Use delete.
2807 (register_data): Use const.
2808 (supply_register): Move body inside regcache.
2809 (regcache::raw_supply): New override function.
2810 (collect_register): Move body inside regcache.
2811 (regcache::raw_collect): New override function.
2812 (regcache::get_register_status): New override function.
2813 * regcache.h (struct regcache): Inherit from reg_buffer_common.
2814
2815 2018-06-09 Tom Tromey <tom@tromey.com>
2816
2817 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
2818 declare queue.
2819 (event_queue): Use std::queue.
2820 (gdb_event_xfree): Remove.
2821 (initialize_event_loop, process_event, wait_for_event): Update.
2822
2823 2018-06-08 Stan Cox <scox@redhat.com>
2824
2825 * win32-low.c (win32_create_inferior): last_ptid and last_status
2826 moved to client_state.
2827
2828 2018-06-08 Pedro Alves <palves@redhat.com>
2829
2830 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
2831 common/common-exceptions.o, common/common-utils.o,
2832 common/errors.o, common/print-utils.o and utils.o.
2833 * gdbreplay.c: Include "common-defs.h" instead of the two
2834 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
2835 string.h or alloca.h.
2836 (perror_with_name): Delete.
2837 (remote_open): Use xstrdup instead of strdup.
2838 (main): Rename to ...
2839 (captured_main): ... this.
2840 (main): New.
2841
2842 2018-06-08 Tom Tromey <tom@tromey.com>
2843
2844 * linux-low.c (linux_low_read_btrace): Update.
2845
2846 2018-06-04 Stan Cox <scox@redhat.com>
2847
2848 * server.h (struct client_state): New.
2849 * server.c (cont_thread, general_thread, multi_process)
2850 (report_fork_events, report_vfork_events, report_exec_events)
2851 (report_thread_events, swbreak_feature, hwbreak_feature)
2852 (vCont_supported, disable_randomization, pass_signals)
2853 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
2854 Moved to client_state.
2855 * remote-utils.c (remote_debug, noack_mode)
2856 (transport_is_reliable): Moved to client_state.
2857 * tracepoint.c (current_traceframe): Moved to client_state.
2858
2859 Update all callers.
2860 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
2861 linux-low.c, remote-utils.h, target.c: Use client_state.
2862
2863 2018-05-31 Alan Hayward <alan.hayward@arm.com>
2864
2865 * configure.srv: Add new c/h file.
2866
2867 2018-05-31 Alan Hayward <alan.hayward@arm.com>
2868
2869 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
2870 null VQ.
2871
2872 2018-05-25 Maciej W. Rozycki <macro@mips.com>
2873
2874 * gdb.arch/mips-fpregset-core.exp: New test.
2875 * gdb.arch/mips-fpregset-core.c: New test source.
2876
2877 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
2878
2879 PR server/23198
2880 * hostio.c (require_int): Do not report overflow for integers
2881 between 0xfffffff and 0x7fffffff.
2882
2883 2018-05-22 Maciej W. Rozycki <macro@mips.com>
2884
2885 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
2886 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
2887 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
2888 functions.
2889 (the_low_target): Wire them.
2890
2891 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2892
2893 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
2894 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
2895 mode. Call collect_register_by_name with vscr using
2896 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
2897 (ppc_store_vrregset): Add and set vscr_offset variable as in
2898 ppc_fill_vrregset. Call supply_register_by_name with vscr using
2899 vscr_offset.
2900
2901 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2902
2903 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
2904 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
2905 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
2906
2907 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2908
2909 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
2910 (ppc_store_vsxregset): Likewise.
2911 (ppc_fill_vrregset): Likewise.
2912 (ppc_store_vrregset): Likewise.
2913 (ppc_fill_evrregset): Likewise.
2914 (ppc_store_evrregset): Likewise.
2915 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
2916 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
2917 needed.
2918
2919 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2920
2921 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
2922 wordsize of the inferior. Call ppc_linux_target_wordsize.
2923
2924 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2925
2926 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
2927 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
2928 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
2929 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
2930 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
2931 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
2932 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
2933 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
2934 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
2935 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
2936 (tdesc_powerpc_e500l): Remove.
2937 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
2938 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
2939 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
2940 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
2941 linux-ppc-tdesc.h.
2942 (ppc_arch_setup): Remove target description matching code. Fill a
2943 ppc_linux_features struct and call ppc_linux_match_description
2944 with it.
2945
2946 2018-05-22 Maciej W. Rozycki <macro@mips.com>
2947
2948 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
2949 width of the requested register exceeds the width of the
2950 `ptrace' data type.
2951 (mips_cannot_store_register): Likewise.
2952
2953 2018-05-21 Maciej W. Rozycki <macro@mips.com>
2954
2955 * linux-mips-low.c (mips_fetch_register): New function. Update
2956 preceding comment.
2957 (mips_store_gregset): Supply 0 rather than $restart for $zero.
2958 (the_low_target): Wire `mips_fetch_register'.
2959
2960 2018-05-10 Joel Brobecker <brobecker@adacore.com>
2961
2962 * lynx-i386-low.c (LYNXOS_178): New macro.
2963 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
2964 the layout on LynxOS-178.
2965 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
2966 handle floating point registers that are not supported by
2967 LynxOS-178.
2968
2969 2018-05-10 Tom Tromey <tom@tromey.com>
2970
2971 * configure: Rebuild.
2972
2973 2018-05-10 Joel Brobecker <brobecker@adacore.com>
2974
2975 PR server/23158:
2976 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
2977 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
2978 Use it to set the expedite_regs field in the given tdesc.
2979 * x86-tdesc.h: New file.
2980 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
2981 Adjust following the addition of the new expedite_regs parameter
2982 to init_target_desc.
2983 * linux-tic6x-low.c (tic6x_read_description): Likewise.
2984 * linux-x86-tdesc.c: #include "x86-tdesc.h".
2985 (i386_linux_read_description, amd64_linux_read_description):
2986 Adjust following the addition of the new expedite_regs parameter
2987 to init_target_desc.
2988 * lynx-i386-low.c: #include "x86-tdesc.h".
2989 (lynx_i386_arch_setup): Adjust following the addition of the new
2990 expedite_regs parameter to init_target_desc.
2991 * nto-x86-low.c: #include "x86-tdesc.h".
2992 (nto_x86_arch_setup): Adjust following the addition of the new
2993 expedite_regs parameter to init_target_desc.
2994 * win32-i386-low.c: #include "x86-tdesc.h".
2995 (i386_arch_setup): Adjust following the addition of the new
2996 expedite_regs parameter to init_target_desc.
2997
2998 2018-05-10 Joel Brobecker <brobecker@adacore.com>
2999
3000 PR server/23158:
3001 * win32-low.c (win32_create_inferior): Add call to my_wait
3002 setting last_status global.
3003
3004 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3005
3006 PR server/23158:
3007 * win32-low.c (create_process): Only call gdb_tilde_expand if
3008 inferior_cwd is not NULL.
3009
3010 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3011
3012 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3013 registers to the cache if their values have changed.
3014 (i387_xsave_to_cache): Provide default values for x87 control
3015 registers when these features are available, but disabled.
3016 * regcache.c (supply_register_by_name_zeroed): New function.
3017 * regcache.h (supply_register_by_name_zeroed): Declare new
3018 function.
3019
3020 2018-05-07 Tom Tromey <tom@tromey.com>
3021
3022 * configure: Rebuild.
3023
3024 2018-05-04 Tom Tromey <tom@tromey.com>
3025
3026 * configure: Rebuild.
3027
3028 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3029 Pedro Alves <palves@redhat.com>
3030
3031 * linux-aarch64-low.c (aarch64_stopped_data_address):
3032 Likewise.
3033
3034 2018-04-27 Tom Tromey <tom@tromey.com>
3035
3036 * configure: Rebuild.
3037
3038 2018-04-23 Tom Tromey <tom@tromey.com>
3039
3040 * configure: Rebuild.
3041
3042 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3043
3044 * Makefile.in (depcomp): Add "..".
3045 (all_deps_files): New and use it.
3046
3047 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3048
3049 * configure.srv (aarch64*-*-linux*): Don't include xml.
3050 (i[34567]86-*-cygwin*): Likewise.
3051 (i[34567]86-*-linux*): Likewise.
3052 (i[34567]86-*-lynxos*): Likewise.
3053 (i[34567]86-*-mingw32ce*): Likewise.
3054 (i[34567]86-*-mingw*): Likewise.
3055 (i[34567]86-*-nto*): Likewise.
3056 (tic6x-*-uclinux): Likewise.
3057 (x86_64-*-linux*): Likewise.
3058 (x86_64-*-mingw*): Likewise.
3059 (x86_64-*-cygwin*): Likewise.
3060
3061 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3062
3063 * tdesc.c: Remove xml parameter.
3064
3065 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3066
3067 * server.c (get_features_xml): Remove cast.
3068 * tdesc.c (void target_desc::accept): Fill in function.
3069 (tdesc_get_features_xml): Remove old xml creation.
3070 (print_xml_feature::visit_pre): Add xml vistor.
3071 * tdesc.h (struct target_desc): Make xmltarget mutable.
3072 (tdesc_get_features_xml): Remove declaration.
3073
3074 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3075
3076 * tdesc.c (tdesc_architecture_name): Add new function.
3077 (tdesc_osabi_name): Likewise.
3078 (tdesc_get_features_xml): Use new functions.
3079
3080 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3081
3082 * tdesc.c (tdesc_create_flags): Remove.
3083 (tdesc_add_flag): Likewise.
3084 (tdesc_named_type): Likewise.
3085 (tdesc_create_union): Likewise.
3086 (tdesc_create_struct): Likewise.
3087 (tdesc_create_vector): Likewise.
3088 (tdesc_add_bitfield): Likewise.
3089 (tdesc_add_field): Likewise.
3090 (tdesc_set_struct_size): Likewise.
3091
3092 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3093
3094 * tdesc.c (~target_desc): Remove implictly deleted items.
3095 (init_target_desc): Iterate all features.
3096 (tdesc_get_features_xml): Use vector.
3097 (tdesc_create_feature): Create feature.
3098 * tdesc.h (tdesc_feature) Remove
3099 (target_desc): Add features.
3100
3101 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3102
3103 * Makefile.in: Add common/tdesc.c
3104 * tdesc.c (init_target_desc): init all reg_defs from register
3105 vector.
3106 (tdesc_create_reg): Create tdesc_reg.
3107 * tdesc.h (tdesc_feature): Add register vector.
3108
3109 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3110
3111 * tdesc.h (struct target_desc) <features>: Change type to
3112 std::vector<std::string>.
3113 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
3114 changes.
3115 (tdesc_get_features_xml): Likewise.
3116 (tdesc_create_feature): Likewise.
3117
3118 2018-03-26 Alan Hayward <alan.hayward@arm.com>
3119
3120 * regcache.c (find_register_by_number): Return a ref.
3121 (find_regno): Use references.
3122 (register_size): Likewise.
3123 (register_data): Likewise.
3124 * tdesc.c (target_desc::~target_desc): Remove free calls.
3125 (target_desc::operator==): Use std::vector compare.
3126 (init_target_desc): Use reference.
3127 (tdesc_create_reg): Use reg constructors.
3128 * tdesc.h (struct target_desc): Replace pointer with object.
3129
3130 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3131
3132 * regcache.c (find_register_by_number): Make static.
3133 (find_regno): Use find_register_by_number
3134 * regcache.h (struct reg): Remove declaration.
3135
3136 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3137
3138 * tdesc.c (target_desc::~target_desc): Move to here.
3139 (target_desc::operator==): Likewise.
3140 * tdesc.h (target_desc::~target_desc): Move from here.
3141 (target_desc::operator==): Likewise.
3142
3143 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3144
3145 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3146
3147 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3148
3149 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3150 S390_TDESC_GS.
3151 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
3152 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
3153 and init_registers_s390_gs_linux64.
3154
3155 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3156
3157 * linux-s390-low.c (s390_fill_gs): Remove function.
3158 (s390_fill_gsbc): Remove function.
3159 (s390_regsets): Set fill functions for the guarded storage regsets
3160 to NULL.
3161
3162 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3163
3164 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
3165 the word size. Add comment.
3166 (s390_get_wordsize): New function.
3167 (s390_arch_setup): No longer select a temporary tdesc to fetch the
3168 pswm with it. Instead, use s390_get_wordsize to determine the
3169 word size first and derive the correct tdesc from that directly.
3170
3171 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3172
3173 * Makefile.in: Include silent-rules.mk.
3174 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
3175 (COMPILE): Add ECHO_CXX.
3176 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3177 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3178 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
3179 (version-generated.c): Add ECHO_GEN.
3180 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
3181 (IPAGENT_COMPILE): Add ECHO_CXX.
3182 (%-generated.c): Add ECHO_REGDAT.
3183
3184 2018-03-14 Tom Tromey <tom@tromey.com>
3185
3186 PR cli/14977:
3187 * ax.c (ax_printf): Special case for NULL.
3188
3189 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3190
3191 * linux-low.c (linux_qxfer_libraries_svr4): Use
3192 xml_escape_text_append.
3193
3194 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3195
3196 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3197
3198 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3199
3200 * server.c (handle_general_set): Remove unnecessary xstrdup.
3201
3202 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3203
3204 * server.c (parse_debug_format_options): Adjust to
3205 delim_string_to_char_ptr_vec changes.
3206 * thread-db.c (thread_db_load_search): Adjust to
3207 dirnames_to_char_ptr_vec changes.
3208
3209 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3210
3211 * target.h (target_enable_btrace, target_disable_btrace)
3212 (target_read_btrace, target_read_btrace_conf): Turn macro into
3213 inline function. Throw error if target method is not defined.
3214 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
3215 check for btrace target method. Be prepared to handle exceptions
3216 from btrace target methods.
3217
3218 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3219
3220 * server.c (captured_main): Change order of error message printed
3221 when the current working directory cannot be found.
3222
3223 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3224
3225 * server.c: Include "filenames.h" and "pathstuff.h".
3226 (program_name): Delete variable.
3227 (program_path): New anonymous class.
3228 (get_exec_wrapper): Use "program_path" instead of
3229 "program_name".
3230 (handle_v_run): Likewise.
3231 (captured_main): Likewise.
3232 (process_serial_event): Likewise.
3233
3234 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3235
3236 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
3237 (OBJS): Add "pathstuff.o".
3238 * server.c (current_directory): New global variable.
3239 (captured_main): Initialize "current_directory".
3240
3241 2018-02-26 Alan Hayward <alan.hayward@arm.com>
3242
3243 * tdesc.c: Use common/tdesc.h.
3244 * tdesc.h: Likewise.
3245
3246 2018-02-20 Alan Hayward <alan.hayward@arm.com>
3247 Simon Marchi <simon.marchi@ericsson.com>
3248
3249 * Makefile.in: Switch order of make rules.
3250
3251 2018-02-19 Alan Hayward <alan.hayward@arm.com>
3252
3253 * Makefile.in: Add common directory in build.
3254 * configure.ac: Add common reference.
3255 * configure: Regenerate.
3256
3257 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3258
3259 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
3260 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
3261 * spu-low.c (spu_target_ops): Likewise.
3262 * win32-low.c (win32_target_ops): Likewise.
3263 * server.c (supported_btrace_packets): Report packets unconditionally.
3264 * target.h (target_ops) <supports_btrace>: Remove.
3265 (target_supports_btrace): Remove.
3266
3267 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3268
3269 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3270 (handle_btrace_disable): Change return type to void. Use exceptions
3271 to report errors.
3272 (handle_btrace_general_set): Catch exception and copy message to
3273 return message.
3274
3275 2018-02-08 Tom Tromey <tom@tromey.com>
3276
3277 * linux-low.c (install_software_single_step_breakpoints): Use
3278 make_scoped_restore.
3279 * inferiors.c (make_cleanup_restore_current_thread): Remove.
3280 (do_restore_current_thread_cleanup): Remove.
3281 * gdbthread.h (make_cleanup_restore_current_thread): Don't
3282 declare.
3283
3284 2018-02-08 Tom Tromey <tom@tromey.com>
3285
3286 * mem-break.c (set_raw_breakpoint_at): Use
3287 gdb::unique_xmalloc_ptr.
3288
3289 2018-01-30 Pedro Alves <palves@redhat.com>
3290
3291 PR gdb/13211
3292 * target.c (target_terminal::terminal_state): Rename to ...
3293 (target_terminal::m_terminal_state): ... this.
3294
3295 2018-01-19 James Clarke <jrtc27@jrtc27.com>
3296
3297 * linux-low.c (handle_extended_wait): Surround call to
3298 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3299
3300 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3301
3302 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3303 linux_ptrace_attach_fail_reason_string now returning an
3304 std::string.
3305 (linux_attach): Likewise.
3306 * thread-db.c (attach_thread): Likewise.
3307
3308 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3309
3310 PR gdb/21559
3311 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3312 checking for fs_base/gs_base fields in struct user_regs_struct.
3313 * configure: Regenerate.
3314
3315 2018-01-16 Yao Qi <yao.qi@linaro.org>
3316
3317 PR gdb/18749
3318 * linux-low.c (fetch_register): Call supply_register instead of
3319 error.
3320
3321 2018-01-08 Yao Qi <yao.qi@linaro.org>
3322 Simon Marchi <simon.marchi@ericsson.com>
3323
3324 * Makefile.in (OBS): Remove selftest.o.
3325 * configure.ac: Set srv_selftest_objs if $development is true.
3326 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
3327 * configure: Re-generated.
3328 * server.c (captured_main): Wrap variable selftest_filter with
3329 GDB_SELF_TEST.
3330
3331 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3332
3333 * server.c (parse_debug_format_options): Return std::string.
3334 (handle_monitor_command, captured_main): Adjust.
3335
3336 2018-01-05 Pedro Alves <palves@redhat.com>
3337
3338 PR gdb/18653
3339 * server.c (captured_main): Pass quiet=false to
3340 save_original_signals_state.
3341
3342 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3343
3344 * gdbreplay.c (gdbreplay_version): Update copyright year in
3345 version message.
3346 * server.c (gdbserver_version): Likewise.
3347
3348 2017-12-08 Tom Tromey <tom@tromey.com>
3349
3350 * ax.c (ax_printf): Update.
3351
3352 2017-12-07 Yao Qi <yao.qi@linaro.org>
3353
3354 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
3355 aarch64_linux_read_description.
3356 * linux-amd64-ipa.c (idx2mask): New array.
3357 (get_ipa_tdesc): Move idx2mask out.
3358 (initialize_low_tracepoint): Initialize target descriptions.
3359 * linux-i386-ipa.c (idx2mask): New array.
3360 (get_ipa_tdesc): Move idx2mask out.
3361 (initialize_low_tracepoint): Initialize target descriptions.
3362
3363 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3364
3365 * tdesc.c (struct tdesc_type): Change return type.
3366 (tdesc_add_flag): Change parameter type.
3367 (tdesc_add_bitfield): Likewise.
3368 (tdesc_add_field): Likewise.
3369 (tdesc_set_struct_size): Likewise.
3370
3371 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3372
3373 * regcache.c (registers_to_string): Remove unused variable.
3374
3375 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3376
3377 * inferiors.c (for_each_inferior_with_data): Remove.
3378 * inferiors.h (for_each_inferior_with_data): Remove.
3379 * server.c (handle_qxfer_threads_worker): Change parameter type.
3380 (handle_qxfer_threads_proper): Use for_each_thread.
3381
3382 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3383
3384 * inferiors.c (for_each_inferior): Remove.
3385 (clear_inferiors): Use for_each_thread.
3386 * inferiors.h (for_each_inferior): Remove.
3387 * linux-low.c (linux_wait_for_event_filtered): Use
3388 for_each_thread.
3389 (linux_stabilize_threads): Likewise.
3390 * regcache.c (regcache_release): Likewise.
3391 * server.c (gdb_wants_all_threads_stopped): Likewise.
3392 (clear_pending_status_callback): Remove.
3393 (handle_status): Use for_each_thread.
3394 (captured_main): Likewise.
3395 * win32-low.c (child_init_thread_list): Likewise.
3396 (win32_clear_inferiors): Likewise.
3397 (fake_breakpoint_event): Likewise.
3398
3399 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3400
3401 * inferiors.h (find_inferior): Remove.
3402 * inferiors.c (find_inferior): Remove.
3403
3404 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3405
3406 * linux-low.c (resume_status_pending_p): Update comment.
3407 (need_step_over_p): Update comment.
3408
3409 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3410
3411 * linux-low.c (proceed_one_lwp): Return void, change parameter
3412 type.
3413 (unsuspend_and_proceed_one_lwp): Likewise.
3414 (proceed_all_lwps): Use for_each_thread.
3415 (unstop_all_lwps): Likewise.
3416
3417 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3418
3419 * linux-low.c (linux_resume_one_thread): Return void, take
3420 parameter directly.
3421 (linux_resume): Use for_each_thread.
3422
3423 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3424
3425 * linux-low.c (send_sigstop_callback): Return void, change
3426 parameter type. Rename to...
3427 (send_sigstop): ... this.
3428 (suspend_and_send_sigstop_callback): Return void, change parameter
3429 type. Rename to...
3430 (suspend_and_send_sigstop): ... this.
3431 (stop_all_lwps): Use for_each_thread.
3432
3433 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3434
3435 * linux-low.c (lwp_running): Return bool, remove unused
3436 argument.
3437 (linux_stabilize_threads): Use find_thread.
3438
3439 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3440
3441 * linux-low.c (select_singlestep_lwp_callback): Remove.
3442 (count_events_callback): Remove.
3443 (select_event_lwp_callback): Remove.
3444 (select_event_lwp): Use find_thread/for_each_thread.
3445
3446 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3447
3448 * linux-low.c (not_stopped_callback): Return bool, take filter
3449 argument directly.
3450 (linux_wait_for_event_filtered): Use find_thread.
3451 (linux_wait_1): Likewise.
3452
3453 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3454
3455 * linux-low.c (same_lwp): Remove.
3456 (find_lwp_pid): Use find_thread.
3457
3458 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3459
3460 * linux-low.c (delete_lwp_callback): Remove.
3461 (linux_mourn): Use for_each_thread.
3462
3463 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3464
3465 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3466 args parameter, don't check for pid.
3467 (linux_detach): Use for_each_thread.
3468
3469 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3470
3471 * linux-low.c (struct counter): Remove.
3472 (second_thread_of_pid_p): Remove.
3473 (last_thread_of_process_p): Use find_thread.
3474
3475 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3476
3477 * inferiors.c (find_inferior_in_random): Remove.
3478 * inferiors.h (find_inferior_in_random): Remove.
3479 * linux-low.c (status_pending_p_callback): Return bool, accept
3480 parameter ptid directly.
3481 (linux_wait_for_event_filtered): Use find_thread_in_random.
3482 (linux_wait_1): Likewise.
3483
3484 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3485
3486 * inferiors.c (find_inferior_id): Remove.
3487 (find_thread_ptid): Move implemention from find_inferior_id to
3488 here.
3489 * inferiors.h (find_inferior_id): Remove.
3490 * server.c (handle_status): Use find_thread_ptid.
3491 (process_serial_event): Likewise.
3492 * thread-db.c (find_one_thread): Likewise.
3493 (thread_db_thread_handle): Likewise.
3494 * win32-low.c (thread_rec): Likewise.
3495 (child_delete_thread): Likewise.
3496 (win32_thread_alive): Likewise.
3497 (get_child_debug_event): Likewise.
3498
3499 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3500
3501 * linux-mips-low.c (update_watch_registers_callback): Return
3502 void, remove pid_p parameter, don't check for pid.
3503 (mips_insert_point, mips_remove_point): Use for_each_thread.
3504
3505 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3506
3507 * lynx.low (lynx_delete_thread_callback): Remove.
3508 (lynx_mourn): Use for_each_thread.
3509
3510 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3511
3512 * regcache.c (regcache_invalidate_one): Remove.
3513 (regcache_invalidate_pid): use for_each_thread.
3514
3515 2017-11-26 Tom Tromey <tom@tromey.com>
3516
3517 * linux-low.c (linux_create_inferior): Update.
3518
3519 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3520
3521 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3522
3523 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3524
3525 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3526 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3527 * linux-aarch64-tdesc-selftest.c: New file.
3528 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3529
3530 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3531
3532 * configure.srv: Add new file.
3533 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3534 * linux-aarch64-tdesc-selftest.c: New file.
3535 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3536
3537 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3538
3539 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3540 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3541 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3542
3543 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3544
3545 * configure.srv: Add new files.
3546 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3547 aarch64_linux_read_description.
3548 * linux-aarch64-low.c (aarch64_linux_read_description):
3549 Merge with aarch64_arch_setup.
3550 (aarch64_arch_setup): Call aarch64_linux_read_description.
3551 * linux-aarch64-tdesc.c: New file.
3552 * linux-aarch64-tdesc.h: New file.
3553
3554 2017-11-24 Yao Qi <yao.qi@linaro.org>
3555
3556 * configure.srv: Set $srv_regobj for tic6x-linux.
3557 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3558 (tic6x_read_description): Move some code to tic6x_arch_setup.
3559 (tic6x_tdesc_test): New function.
3560 (initialize_low_arch): Call selftests::register_test.
3561
3562 2017-11-22 Yao Qi <yao.qi@linaro.org>
3563
3564 * remote-utils.c (prepare_resume_reply): Use memcpy.
3565
3566 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3567
3568 * linux-low.c (kill_one_lwp_callback): Return void, take
3569 argument directly, don't filter on pid.
3570 (linux_kill): Use for_each_thread.
3571
3572 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3573
3574 * linux-low.c (need_step_over_p): Return bool, remove dummy
3575 argument.
3576 (linux_resume, proceed_all_lwps): Use find_thread.
3577
3578 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3579
3580 * linux-low.c (resume_status_pending_p): Return bool, remove
3581 flag_p argument.
3582 (linux_resume): Use find_thread.
3583
3584 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3585
3586 * linux-low.c (struct thread_resume_array): Remove.
3587 (linux_set_resume_request): Return void, take arguments
3588 directly.
3589 (linux_resume): Use for_each_thread.
3590
3591 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3592
3593 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3594 return bool, remove data argument.
3595 (linux_stabilize_threads): Use find_thread.
3596
3597 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3598
3599 * linux-low.c (unsuspend_one_lwp): Remove.
3600 (unsuspend_all_lwps): Use for_each_thread, inline code from
3601 unsuspend_one_lwp.
3602
3603 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3604
3605 * gdbthread.h (find_thread): Add overload with ptid_t filter.
3606 * linux-low.c (struct iterate_over_lwps_args): Remove.
3607 (iterate_over_lwps_filter): Remove.
3608 (iterate_over_lwps): Use find_thread.
3609
3610 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3611
3612 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
3613 (linux_handle_new_gdb_connection): Use for_each_thread, inline
3614 code from reset_lwp_ptrace_options_callback.
3615
3616 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3617
3618 * linux-arm-low.c (struct update_registers_data): Remove.
3619 (update_registers_callback): Return void, take arguments
3620 directly, don't check thread's pid.
3621 (arm_insert_point, arm_remove_point): Use for_each_thread.
3622
3623 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3624
3625 * win32-low.c (continue_one_thread): Return void, take argument
3626 directly.
3627 (child_continue): Use for_each_thread.
3628
3629 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3630
3631 * win32-i386-low.c (update_debug_registers_callback): Rename
3632 to ...
3633 (update_debug_registers): ... this, return void, remove pid_p arg.
3634 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
3635
3636 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3637
3638 * inferiors.h (struct process_info): Add constructor, initialize
3639 fields..
3640 <syscalls_to_catch>: Change type to std::vector<int>.
3641 * inferiors.c (add_process): Allocate process_info with new.
3642 (remove_process): Free process_info with delete.
3643 * linux-low.c (handle_extended_wait): Adjust.
3644 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
3645 * server.c (handle_general_set): Adjust.
3646
3647 2017-11-16 Pedro Alves <palves@redhat.com>
3648
3649 * remote-utils.c (remote_close): Block SIGIO signals instead of
3650 uninstalling the SIGIO handler.
3651
3652 2017-11-16 Alan Hayward <alan.hayward@arm.com>
3653
3654 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
3655
3656 2017-11-16 Yao Qi <yao.qi@linaro.org>
3657
3658 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
3659 (tic6x_store_gregset): Likewise.
3660 (tic6x_usrregs_info): Move it up.
3661
3662 2017-11-15 Alan Hayward <alan.hayward@arm.com>
3663
3664 * Makefile.in: Update arch rules.
3665 * configure.srv: Explicitly mark arch/ files.
3666
3667 2017-11-13 Andreas Schwab <schwab@suse.de>
3668
3669 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
3670 function.
3671 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3672
3673 2017-11-06 Pedro Alves <palves@redhat.com>
3674
3675 * config.in, configure: Regenerate.
3676
3677 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3678
3679 * target.c (struct thread_search): Remove.
3680 (thread_search_callback): Remove.
3681 (prepare_to_access_memory): Use for_each_thread instead of
3682 find_inferior. Inline code from thread_search_callback.
3683
3684 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3685
3686 * server.c (struct visit_actioned_threads_data): Remove.
3687 (visit_actioned_threads): Change prototype to take arguments
3688 directly.
3689 (resume): Use find_thread instead of find_inferior.
3690
3691 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3692
3693 * server.c (queue_stop_reply_callback): Change prototype, return
3694 void.
3695 (find_status_pending_thread_callback): Remove.
3696 (handle_status): Replace find_inferior with find_thread and
3697 for_each_thread.
3698
3699 2017-10-25 Alan Hayward <alan.hayward@arm.com>
3700
3701 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
3702 with REGNO.
3703 (aarch64_store_gregset): Likewise.
3704 (aarch64_fill_fpregset): Likewise.
3705 (aarch64_store_fpregset): Likewise.
3706
3707 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3708
3709 * gdbthread.h (find_thread, for_each_thread): New functions.
3710 * inferiors.c (thread_of_pid): Remove.
3711 (find_any_thread_of_pid): Use find_thread.
3712 * linux-low.c (num_lwps): Use for_each_thread.
3713
3714 2017-10-17 Yao Qi <yao.qi@linaro.org>
3715
3716 * Makefile.in: Remove one rule.
3717 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
3718
3719 2017-10-17 Yao Qi <yao.qi@linaro.org>
3720
3721 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
3722 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
3723
3724 2017-10-17 Yao Qi <yao.qi@linaro.org>
3725
3726 * configure.srv: Rename arm.o with arch/arm.o.
3727
3728 2017-10-17 Yao Qi <yao.qi@linaro.org>
3729
3730 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
3731 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
3732 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
3733 (arch-i386.o, arch-amd64.o): Remove rules.
3734 (arch/%.o): New rule.
3735 Update POSTCOMPILE and COMPILE.pre.
3736 * configure.ac: Invoke AC_CONFIG_COMMANDS.
3737 * configure: Re-generated.
3738 * configure.srv: Replace arch-i386.o with arch/i386.o.
3739 Replace arch-amd64.o with arch/amd64.o.
3740
3741 2017-10-16 Yao Qi <yao.qi@linaro.org>
3742
3743 * configure: Regenerated.
3744
3745 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3746
3747 * inferiors.h: (struct inferior_list): Remove.
3748 (struct inferior_list_entry); Remove.
3749 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
3750 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
3751 get_first_inferior): Remove.
3752 (for_each_inferior, for_each_inferior_with_data, find_inferior,
3753 find_inferior_id, find_inferior_in_random): Change signature.
3754 * inferiors.c (all_threads): Change type to
3755 std::list<thread_info *>.
3756 (get_thread): Remove macro.
3757 (find_inferior, find_inferior_id): Change signature, implement
3758 using find_thread.
3759 (find_inferior_in_random): Change signature, implement using
3760 find_thread_in_random.
3761 (for_each_inferior, for_each_inferior_with_data): Change
3762 signature, implement using for_each_thread.
3763 (add_inferior_to_list, remove_inferior): Remove.
3764 (add_thread, get_first_thread, thread_of_pid,
3765 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
3766 (get_first_inferior, one_inferior_p, clear_inferior_list):
3767 Remove.
3768 (clear_inferiors, get_thread_process): Update.
3769 * gdbthread.h: Include <list>.
3770 (struct thread_info) <entry>: Remove field.
3771 <id>: New field.
3772 (all_threads): Change type to std::list<thread_info *>.
3773 (get_first_inferior): Add doc.
3774 (find_thread, for_each_thread, find_thread_in_random): New
3775 functions.
3776 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
3777 * linux-arm-low.c (update_registers_callback): Update.
3778 * linux-low.c (second_thread_of_pid_p): Update.
3779 (kill_one_lwp_callback, linux_detach_lwp_callback,
3780 delete_lwp_callback, status_pending_p_callback, same_lwp,
3781 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
3782 iterate_over_lwps, not_stopped_callback,
3783 resume_stopped_resumed_lwps, count_events_callback,
3784 select_singlestep_lwp_callback, select_event_lwp_callback,
3785 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
3786 suspend_and_send_sigstop_callback, wait_for_sigstop,
3787 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
3788 lwp_running, linux_set_resume_request, resume_status_pending_p,
3789 need_step_over_p, start_step_over, linux_resume_one_thread,
3790 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
3791 reset_lwp_ptrace_options_callback): Update.
3792 * linux-mips-low.c (update_watch_registers_callback): Update.
3793 * regcache.c (regcache_invalidate_one, regcache_invalidate):
3794 Update.
3795 (free_register_cache_thread_one): Remove.
3796 (regcache_release): Update.
3797 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
3798 handle_qxfer_threads_worker): Update.
3799 (handle_query): Update, use list iterator.
3800 (visit_actioned_threads, handle_pending_status,
3801 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
3802 clear_pending_status_callback, set_pending_status_callback,
3803 find_status_pending_thread_callback, handle_status,
3804 process_serial_event): Update.
3805 * target.c (thread_search_callback): Update.
3806 * thread-db.c (thread_db_get_tls_address): Update.
3807 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
3808 Update.
3809 * win32-i386-low.c (update_debug_registers_callback): Update.
3810 * win32-low.c (delete_thread_info, child_delete_thread,
3811 continue_one_thread, suspend_one_thread,
3812 get_child_debug_event): Adjust.
3813
3814 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3815
3816 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
3817 * inferiors.h: Include <list>.
3818 (struct process_info) <entry>: Remove field.
3819 <pid>: New field.
3820 (pid_of): Change macro to function.
3821 (ptid_of, lwpid_of): Remove macro.
3822 (all_processes): Change type to std::list<process_info *>.
3823 (ALL_PROCESSES): Remove macro.
3824 (for_each_process, find_process): New function.
3825 * inferiors.c (all_processes): Change type to
3826 std::list<process_info *>.
3827 (find_thread_process): Adjust.
3828 (add_process): Likewise.
3829 (remove_process): Likewise.
3830 (find_process_pid): Likewise.
3831 (get_first_process): Likewise.
3832 (started_inferior_callback): Remove.
3833 (have_started_inferiors_p): Adjust.
3834 (attached_inferior_callback): Remove.
3835 (have_attached_inferiors_p): Adjust.
3836 * linux-low.c (check_zombie_leaders): Likewise.
3837 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
3838 (x86_linux_update_xmltarget): Adjust.
3839 * server.c (handle_query): Likewise.
3840 (gdb_reattached_process): Remove.
3841 (handle_status): Adjust.
3842 (kill_inferior_callback): Likewise.
3843 (detach_or_kill_inferior): Remove.
3844 (print_started_pid): Likewise.
3845 (print_attached_pid): Likewise.
3846 (detach_or_kill_for_exit): Update.
3847 (process_serial_event): Likewise.
3848 * linux-arm-low.c (arm_new_fork): Likewise.
3849
3850 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3851
3852 * dll.h: Include <list>.
3853 (struct dll_info): Add constructor.
3854 <entry>: Remove field.
3855 (all_dlls): Change type to std::list<dll_info>.
3856 * dll.c: Include <algorithm>.
3857 (get_dll): Remove macro.
3858 (all_dlls): Change type to std::list<dll_info *>.
3859 (free_one_dll): Remove.
3860 (match_dll): Likewise.
3861 (loaded_dll): Adjust.
3862 (unloaded_dll): Adjust to all_dlls type change, use
3863 std::find_if. Inline code from match_dll.
3864 (clear_dlls): Adjust to all_dlls type change.
3865 * server.c (emit_dll_description): Remove.
3866 (handle_qxfer_libraries): Adjust to all_dlls type change,
3867 integrate emit_dll_description's functionality.
3868
3869 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3870
3871 * linux-low.h (struct linux_target_ops) <delete_process>: New
3872 field.
3873 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
3874 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
3875 (struct linux_target_ops): Add delete_process callback.
3876 * linux-arm-low.c (arm_delete_process): New.
3877 (struct linux_target_ops): Add delete_process callback.
3878 * linux-bfin-low.c (struct linux_target_ops): Likewise.
3879 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
3880 * linux-m32r-low.c (struct linux_target_ops): Likewise.
3881 * linux-mips-low.c (mips_linux_delete_process): New.
3882 (struct linux_target_ops): Add delete_process callback.
3883 * linux-ppc-low.c (struct linux_target_ops): Likewise.
3884 * linux-s390-low.c (struct linux_target_ops): Likewise.
3885 * linux-sh-low.c (struct linux_target_ops): Likewise.
3886 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
3887 * linux-tile-low.c (struct linux_target_ops): Likewise.
3888 * linux-x86-low.c (x86_linux_delete_process): New.
3889 (struct linux_target_ops): Add delete_process callback.
3890 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
3891
3892 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3893
3894 * linux-aarch64-low.c (the_low_target): Add thread delete
3895 callback.
3896 * linux-arm-low.c (arm_delete_thread): New function.
3897 (the_low_target): Add thread delete callback.
3898 * linux-bfin-low.c (the_low_target): Likewise.
3899 * linux-crisv32-low.c (the_low_target): Likewise.
3900 * linux-low.c (delete_lwp): Invoke delete_thread callback if
3901 set.
3902 * linux-low.h (struct linux_target_ops) <delete_thread>: New
3903 field.
3904 * linux-m32r-low.c (the_low_target): Add thread delete callback.
3905 * linux-mips-low.c (mips_linux_delete_thread): New function.
3906 (the_low_target): Add thread delete callback.
3907 * linux-ppc-low.c (the_low_target): Likewise.
3908 * linux-s390-low.c (the_low_target): Likewise.
3909 * linux-sh-low.c (the_low_target): Likewise.
3910 * linux-tic6x-low.c (the_low_target): Likewise.
3911 * linux-tile-low.c (the_low_target): Likewise.
3912 * linux-x86-low.c (the_low_target): Likewise.
3913 * linux-xtensa-low.c (the_low_target): Likewise.
3914
3915 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
3916
3917 * win32-low.c: Include "common-inferior.h".
3918
3919 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3920
3921 * inferiors.c (set_inferior_cwd): New function.
3922 * server.c (handle_general_set): Handle QSetWorkingDir packet.
3923 (handle_query): Inform that QSetWorkingDir is supported.
3924 * win32-low.c (create_process): Pass the inferior's cwd to
3925 CreateProcess.
3926
3927 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3928
3929 * inferiors.c (current_inferior_cwd): New global variable.
3930 (get_inferior_cwd): New function.
3931 * inferiors.h (struct process_info) <cwd>: New field.
3932
3933 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3934
3935 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
3936 (OBS): Add gdb_tilde_expand.o.
3937
3938 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
3939
3940 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
3941 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3942
3943 2017-09-29 Pedro Alves <palves@redhat.com>
3944
3945 * ax.c (gdb_parse_agent_expr): Constify.
3946 * ax.h (gdb_parse_agent_expr): Constify.
3947 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3948 Constify.
3949 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
3950 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
3951 * remote-utils.h (read_ptid): Constify.
3952 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
3953 (process_point_options, process_serial_event): Constify.
3954 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
3955 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
3956 (cmd_qtbuffer): Constify.
3957
3958 2017-09-29 Pedro Alves <palves@redhat.com>
3959
3960 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
3961 fails.
3962
3963 2017-09-29 Pedro Alves <palves@redhat.com>
3964
3965 * linux-low.c (handle_extended_wait): Pass parent thread instead
3966 of process to thread_db_notice_clone.
3967 * linux-low.h (thread_db_notice_clone): Replace parent process
3968 parameter with parent thread parameter.
3969 * thread-db.c (find_one_thread): Add comment.
3970 (thread_db_notice_clone): Replace parent process parameter with
3971 parent thread parameter. Temporarily switch to the parent thread.
3972
3973 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
3974
3975 * gdbthread.h: Include "common-gdbthread.h".
3976 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
3977 "if" when validating the ptid.
3978 * remote-utils.c: Include "gdbthread.h".
3979 (prepare_resume_reply): Use "switch_to_thread".
3980 * target.c (done_accessing_memory): Likewise.
3981
3982 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3983
3984 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
3985 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
3986 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
3987 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
3988 s390x-gs-linux64-ipa.o to ipa_obj.
3989 * linux-s390-low.c (HWCAP_S390_GS): New define.
3990 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
3991 New functions.
3992 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
3993 (s390_arch_setup): Check for guarded-storage support and choose
3994 appropriate tdesc.
3995 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
3996 init_registers_s390x_gs_linux64.
3997 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
3998 enum value.
3999 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4000 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4001
4002 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4003
4004 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4005
4006 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4007
4008 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4009 (thread_db_thread_handle): Declare.
4010 * linux-low.c (linux_target_ops): Initialize thread_handle.
4011 * server.c (handle_qxfer_threads_worker): Add support for
4012 "handle" attribute.
4013 * target.h (struct target_ops): Add new function pointer,
4014 thread_handle.
4015 (target_thread_handle): Define.
4016 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4017 field in lwp.
4018 (thread_db_thread_handle): New function.
4019
4020 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4021
4022 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4023 * linux-low.h (thread_db_notice_clone): Declare.
4024 * thread-db.c (thread_db_notice_clone): New function.
4025
4026 2017-09-21 Pedro Alves <palves@redhat.com>
4027
4028 * server.c (gdb_read_memory, handle_status, process_serial_event)
4029 (handle_serial_event, handle_target_event): Adjust to
4030 set_desired_thread prototype change.
4031 * target.c (set_desired_thread): Remove 'use_general' parameter
4032 and adjust.
4033 * target.h (set_desired_thread): Remove 'use_general' parameter.
4034
4035 2017-09-20 Tom Tromey <tom@tromey.com>
4036
4037 * target.c (target_terminal::terminal_state): Define.
4038 (target_terminal::init): Rename from target_terminal_init.
4039 (target_terminal::inferior): Rename from
4040 target_terminal_inferior.
4041 (target_terminal::ours): Rename from target_terminal_ours.
4042 (target_terminal::ours_for_output, target_terminal::info): New.
4043
4044 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4045
4046 * server.c (accumulate_file_name_length): Remove.
4047 (emit_dll_description): Adjust to std::string change.
4048 (handle_qxfer_libraries): Use std::string to hold document.
4049
4050 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4051
4052 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4053 return type of xml_escape_text.
4054 * server.c (emit_dll_description): Likewise.
4055
4056 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4057
4058 * server.c (captured_main): Accept argument for --selftest.
4059 Update run_tests call.
4060 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
4061 when registering selftests.
4062
4063 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4064
4065 * regcache.c (get_thread_regcache): Update code to use "std::vector"
4066 instead of "VEC" for "target_desc.reg_defs".
4067 (regcache_cpy): Likewise.
4068 (registers_to_string): Likewise.
4069 (registers_from_string): Likewise.
4070 (find_regno): Likewise.
4071 (supply_regblock): Likewise.
4072 (regcache_raw_read_unsigned): Likewise.
4073 * tdesc.c (init_target_desc): Likewise.
4074 (tdesc_create_reg): Likewise.
4075 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
4076 (struct target_desc) <reg_defs>: Convert to "std::vector".
4077 (target_desc): Do not initialize "reg_defs".
4078 (~target_desc): Update code to use "std::vector" instead of "VEC"
4079 for "target_desc.reg_defs".
4080 (operator==): Likewise.
4081
4082 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4083
4084 * inferiors.h (thread_to_gdb_id): Remove.
4085 * inferiors.c (thread_to_gdb_id): Remove.
4086 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
4087 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
4088 lynx_store_registers, lynx_read_memory, lynx_write_memory):
4089 Likewise.
4090 * nto-low.c (nto_fetch_registers, nto_store_registers,
4091 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4092
4093 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4094
4095 * inferiors.h (gdb_id_to_thread_id): Remove.
4096 * inferiors.c (gdb_id_to_thread_id): Remove.
4097 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
4098 removal. Move pid declaration closer to where it's used.
4099
4100 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4101
4102 * server.c (handle_detach): New function.
4103 (process_serial_event): Move code out, call handle_detach.
4104
4105 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4106
4107 * server.c (require_running): Rename to ...
4108 (require_running_or_return): ... this ...
4109 (require_running_or_break): ... and this.
4110 (handle_query, process_serial_event): Adjust.
4111
4112 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4113
4114 * linux-low.c (linux_set_resume_request): Remove unused
4115 variables.
4116
4117 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4118
4119 * server.c (first_thread_of): Remove.
4120 (process_serial_event): Replace usage of first_thread_of with
4121 find_any_thread_of_pid.
4122 * tracepoint.c (same_process_p): Remove.
4123 (gdb_agent_about_to_close): Replace usage of same_process_p with
4124 find_any_thread_of_pid.
4125 * linux-x86-low.c (same_process_callback): Remove.
4126 (x86_arch_setup_process_callback): Replace usage of
4127 same_process_callback with find_any_thread_of_pid.
4128 * thread-db.c (any_thread_of): Remove.
4129 (switch_to_process): Replace usage of any_thread_of with
4130 find_any_thread_of_pid.
4131 * inferiors.c (thread_pid_matches_callback): Remove.
4132 (find_thread_process): Adjust to use find_any_thread_of_pid.
4133
4134 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4135
4136 * regcache.c (get_thread_regcache): Guard calls to "memset"
4137 with "!VEC_empty".
4138
4139 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4140
4141 * linux-low.c (handle_extended_wait): Use
4142 "allocate_target_description" instead of "XNEW".
4143 * linux-x86-low.c (initialize_low_arch): Likewise.
4144
4145 2017-09-05 Yao Qi <yao.qi@linaro.org>
4146
4147 * configure.srv (srv_i386_regobj): Remove.
4148 (srv_amd64_regobj): Remove.
4149 (srv_regobj): Set it to "" for x86 non-linux targets.
4150 * linux-x86-tdesc.c (i386_linux_read_description):
4151 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
4152 (init_registers_i386): Remove the declaration.
4153 (tdesc_i386): Remove the declaration.
4154 (lynx_i386_arch_setup): Call i386_create_target_description.
4155 * nto-x86-low.c: Likewise.
4156 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
4157 [!__x86_64__]: include arch/i386.h.
4158 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
4159
4160 2017-09-05 Yao Qi <yao.qi@linaro.org>
4161
4162 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4163 i386/amd64-XXX-linux from it.
4164
4165 2017-09-05 Yao Qi <yao.qi@linaro.org>
4166
4167 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4168 false.
4169 (ipa_amd64_linux_regobj): Remove.
4170 (ipa_x32_linux_regobj): Remove.
4171
4172 2017-09-05 Yao Qi <yao.qi@linaro.org>
4173
4174 * Makefile.in (arch-amd64.o): New rule.
4175 * configure.srv: Append arch-amd64.o.
4176 * linux-amd64-ipa.c: Include common/x86-xstate.h.
4177 (get_ipa_tdesc): Call amd64_linux_read_description.
4178 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
4179 and init_registers_amd64_XXX.
4180 * linux-x86-low.c (x86_linux_read_description): Call
4181 amd64_linux_read_description.
4182 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
4183 (initialize_low_arch): Don't call init_registers_x32_XXX and
4184 init_registers_amd64_XXX.
4185 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
4186 and tdesc_amd64_XXX.
4187 [__x86_64__] (amd64_tdesc_test): New function.
4188 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
4189 and init_registers_amd64_XXX.
4190 * linux-x86-tdesc.c: Include arch/amd64.h.
4191 (xcr0_to_tdesc_idx): New function.
4192 (i386_linux_read_description): New function.
4193 (amd64_get_ipa_tdesc_idx): New function.
4194 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
4195 (amd64_get_ipa_tdesc): Declare.
4196
4197 2017-09-05 Yao Qi <yao.qi@linaro.org>
4198
4199 * configure.srv (srv_i386_linux_xmlfiles): Remove
4200 i386/i386-XXX-linux.xml from it.
4201
4202 2017-09-05 Yao Qi <yao.qi@linaro.org>
4203
4204 * configure.srv: Set srv_i386_linux_regobj empty if $development
4205 is false.
4206 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
4207 initialize_low_tdesc.
4208 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
4209 with #if initialize_low_tdesc.
4210 * linux-x86-tdesc-selftest.c: New file.
4211 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
4212
4213 2017-09-05 Yao Qi <yao.qi@linaro.org>
4214
4215 * Makefile.in (arch-i386.o): New rule.
4216 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
4217 (x86_64-*-linux*): Likewise.
4218 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
4219 include arch/i386.h.
4220 (i386_linux_read_description): Remove code and call
4221 i386_create_target_description.
4222 * tdesc.c (allocate_target_description): New function.
4223 * tdesc.h (set_tdesc_architecture): Remove declaration.
4224 (set_tdesc_osabi): Likewise.
4225
4226 2017-09-05 Yao Qi <yao.qi@linaro.org>
4227
4228 * linux-x86-tdesc.c: Don't include <inttypes.h>.
4229 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
4230 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
4231 .xmltarget.
4232 * server.c (get_features_xml): Call tdesc_get_features_xml.
4233 * tdesc.c (set_tdesc_architecture): New function.
4234 (set_tdesc_osabi): New function.
4235 (tdesc_get_features_xml): New function.
4236 (tdesc_create_feature): Add an argument.
4237 * tdesc.h (struct target_desc) <features>: New field.
4238 <arch, osabi>: New field.
4239 (~target_desc): xfree features, arch, and osabi.
4240 (target_desc::oerator==): Don't compare .xmltarget.
4241 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
4242 (set_tdesc_osabi): Likewise.
4243 (tdesc_get_features_xml): Likewise.
4244
4245 2017-09-05 Yao Qi <yao.qi@linaro.org>
4246
4247 * linux-x86-tdesc.c: Include selftest.h.
4248 (i386_tdesc_test): New function.
4249 (initialize_low_tdesc): Call selftests::register_test.
4250 * tdesc.h: Include regdef.h.
4251 (target_desc): Override operator == and !=.
4252
4253 2017-09-05 Yao Qi <yao.qi@linaro.org>
4254
4255 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
4256 (ipa_obj): Likewise.
4257 * linux-i386-ipa.c: Include common/x86-xstate.h
4258 (get_ipa_tdesc): Call i386_linux_read_description.
4259 (initialize_low_tracepoint): Don't call init_registers_XXX
4260 functions, call initialize_low_tdesc instead.
4261 * linux-x86-low.c (x86_linux_read_description): Call
4262 i386_linux_read_description.
4263 (initialize_low_arch): Don't call init_registers_i386_XXX
4264 functions, call initialize_low_tdesc.
4265 * linux-x86-tdesc.c: New file.
4266 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
4267 (i386_get_ipa_tdesc_idx): Declare.
4268 (i386_get_ipa_tdesc): Declare.
4269 (initialize_low_tdesc): Declare.
4270
4271 2017-09-05 Yao Qi <yao.qi@linaro.org>
4272
4273 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4274 instead of 0.
4275
4276 2017-09-05 Yao Qi <yao.qi@linaro.org>
4277
4278 * Makefile.in (IPA_OBJS): Add vec-ipa.o
4279 * regcache.c (get_thread_regcache): Use VEC_length.
4280 (init_register_cache): Likewise.
4281 (regcache_cpy): Likewise.
4282 (registers_to_string): Iterate reg_defs via VEC_iterate.
4283 (find_regno): Likewise.
4284 (find_register_by_number): Use VEC_index.
4285 (register_size): Call find_register_by_number.
4286 (register_data): Call find_register_by_number.
4287 (supply_regblock): Use VEC_length.
4288 (regcache_raw_read_unsigned): Likewise.
4289 * tdesc.c (init_target_desc): Iterate reg_defs via
4290 VEC_iterate.
4291 (default_description): Update initializer.
4292 (copy_target_description): Don't update field num_registers.
4293 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
4294 <num_registers>: Remove.
4295
4296 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4297
4298 * Makefile.in (.SECONDARY): Define target.
4299
4300 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4301
4302 * linux-low.c (linux_wait_1): Adjust.
4303 * server.c (queue_stop_reply_callback): Adjust.
4304
4305 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4306
4307 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
4308 QEnvironmentUnset and QEnvironmentReset packets.
4309 (handle_query): Inform remote that QEnvironmentHexEncoded,
4310 QEnvironmentUnset and QEnvironmentReset are supported.
4311
4312 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4313
4314 * inferiors.h (inferior_target_data): Rename to ...
4315 (thread_target_data): ... this.
4316 (inferior_regcache_data): Rename to ...
4317 (thread_regcache_data): ... this.
4318 (set_inferior_regcache_data): Rename to ...
4319 (set_thread_regcache_data): ... this.
4320 * inferiors.c (inferior_target_data): Rename to ...
4321 (thread_target_data): ... this.
4322 (inferior_regcache_data): Rename to ...
4323 (thread_regcache_data): ... this.
4324 (set_inferior_regcache_data): Rename to ...
4325 (set_thread_regcache_data): ... this.
4326 (free_one_thread): Update.
4327 * linux-low.h (get_thread_lwp): Update.
4328 * regcache.c (get_thread_regcache): Update.
4329 (regcache_invalidate_thread): Update.
4330 (free_register_cache_thread): Update.
4331 * win32-i386-low.c (update_debug_registers_callback): Update.
4332 (win32_get_current_dr): Update.
4333 * win32-low.c (thread_rec): Update.
4334 (delete_thread_info): Update.
4335 (continue_one_thread): Update.
4336 (suspend_one_thread): Update.
4337
4338 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4339
4340 * inferiors.c (set_inferior_target_data): Remove.
4341 * inferiors.h (set_inferior_target_data): Remove.
4342
4343 2017-08-18 Yao Qi <yao.qi@linaro.org>
4344
4345 * Makefile.in (OBS): Add selftest.o.
4346 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
4347 * configure, config.in: Re-generated.
4348 * server.c: Include common/sefltest.h.
4349 (captured_main): Handle option --selftest.
4350
4351 2017-08-09 Yao Qi <yao.qi@linaro.org>
4352
4353 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
4354 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
4355 i386-avx-mpx.o and i386-mmx.o.
4356 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
4357 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
4358 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
4359 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
4360 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
4361 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
4362 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
4363 i386/amd64-avx-mpx.xml.
4364
4365 2017-08-09 Yao Qi <yao.qi@linaro.org>
4366
4367 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
4368 and x32-avx-avx512.o.
4369 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
4370 i386/x32-avx-avx512.xml.
4371
4372 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4373
4374 * tracepoint.h (enum class fast_tpoint_collect_result): New
4375 enumeration.
4376 (fast_tracepoint_collecting): Change return type to
4377 fast_tpoint_collect_result.
4378 * tracepoint.c (fast_tracepoint_collecting): Likewise.
4379 * linux-low.h: Include tracepoint.h.
4380 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
4381 fast_tpoint_collect_result.
4382 * linux-low.c (handle_tracepoints): Adjust.
4383 (linux_fast_tracepoint_collecting): Change return type to
4384 fast_tpoint_collect_result.
4385 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
4386 linux_wait_1, stuck_in_jump_pad_callback,
4387 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
4388 proceed_one_lwp): Adjust to type change.
4389
4390 2017-07-10 Yao Qi <yao.qi@linaro.org>
4391
4392 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4393
4394 2017-06-29 Yao Qi <yao.qi@linaro.org>
4395
4396 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4397 Remove.
4398 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4399
4400 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4401
4402 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4403
4404 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4405
4406 * linux-low.c (linux_create_inferior): Adjust code to access the
4407 environment information via 'gdb_environ' class.
4408 * lynx-low.c (lynx_create_inferior): Likewise.
4409 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4410 (get_environ): Return a pointer to 'our_environ'.
4411 (captured_main): Initialize 'our_environ'.
4412 * server.h (get_environ): Adjust prototype.
4413 * spu-low.c (spu_create_inferior): Adjust code to access the
4414 environment information via 'gdb_environ' class.
4415
4416 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4417
4418 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4419 usage of "register" keyword.
4420
4421 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4422
4423 * configure: Re-generate.
4424
4425 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4426
4427 * configure: Re-generate.
4428
4429 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4430
4431 * Makefile.in (COMPILE.pre): Add "-x c++".
4432
4433 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4434
4435 * fork-child.c: Conditionally include <signal.h>.
4436
4437 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4438
4439 * server.c (handle_general_set): Handle new packet
4440 "QStartupWithShell".
4441 (handle_query): Add "QStartupWithShell" to the list of supported
4442 packets.
4443 (gdbserver_usage): Add help text explaining the
4444 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4445 options.
4446 (captured_main): Recognize and act upon the presence of the new
4447 CLI options.
4448
4449 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4450 Pedro Alves <palves@redhat.com>
4451
4452 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4453 * configure: Regenerate.
4454 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4455 "fork-inferior.o".
4456 (i[34567]86-*-lynxos*): Likewise.
4457 (spu*-*-*): Likewise.
4458 * fork-child.c: New file.
4459 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4460 and "environ.h".
4461 (linux_ptrace_fun): New function.
4462 (linux_create_inferior): Adjust function prototype to reflect
4463 change on "target.h". Adjust function code to use
4464 "fork_inferior".
4465 (linux_request_interrupt): Delete "signal_pid".
4466 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4467 (lynx_ptrace_fun): New function.
4468 (lynx_create_inferior): Adjust function prototype to reflect
4469 change on "target.h". Adjust function code to use
4470 "fork_inferior".
4471 * nto-low.c (nto_create_inferior): Adjust function prototype and
4472 code to reflect change on "target.h". Update comments.
4473 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4474 "common-terminal.h" and "environ.h".
4475 (terminal_fd): Moved to fork-child.c.
4476 (old_foreground_pgrp): Likewise.
4477 (restore_old_foreground_pgrp): Likewise.
4478 (last_status): Make it global.
4479 (last_ptid): Likewise.
4480 (our_environ): New variable.
4481 (startup_with_shell): Likewise.
4482 (program_name): Likewise.
4483 (program_argv): Rename to...
4484 (program_args): ...this.
4485 (wrapper_argv): New variable.
4486 (start_inferior): Delete function.
4487 (get_exec_wrapper): New function.
4488 (get_exec_file): Likewise.
4489 (get_environ): Likewise.
4490 (prefork_hook): Likewise.
4491 (post_fork_inferior): Likewise.
4492 (postfork_hook): Likewise.
4493 (postfork_child_hook): Likewise.
4494 (handle_v_run): Update code to deal with arguments coming from the
4495 remote host. Update calls from "start_inferior" to
4496 "create_inferior".
4497 (captured_main): Likewise. Initialize environment variable. Call
4498 "have_job_control".
4499 * server.h (post_fork_inferior): New prototype.
4500 (get_environ): Likewise.
4501 (last_status): Declare.
4502 (last_ptid): Likewise.
4503 (signal_pid): Likewise.
4504 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4505 (spu_ptrace_fun): New function.
4506 (spu_create_inferior): Adjust function prototype to reflect change
4507 on "target.h". Adjust function code to use "fork_inferior".
4508 * target.c (target_terminal_init): New function.
4509 (target_terminal_inferior): Likewise.
4510 (target_terminal_ours): Likewise.
4511 * target.h: Include <vector>.
4512 (struct target_ops) <create_inferior>: Update prototype.
4513 (create_inferior): Update macro.
4514 * utils.c (gdb_flush_out_err): New function.
4515 * win32-low.c (win32_create_inferior): Adjust function prototype
4516 and code to reflect change on "target.h".
4517
4518 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4519
4520 * inferiors.c (switch_to_thread): New function.
4521
4522 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4523
4524 * Makefile.in (SFILE): Add "common/job-control.c".
4525 (OBS): Add "job-control.o".
4526
4527 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4528
4529 * Makefile: Remove "@host_makefile_frag@".
4530
4531 2017-05-05 Pedro Alves <palves@redhat.com>
4532
4533 * configure: Regenerate.
4534
4535 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4536
4537 * configure: Regenerate.
4538
4539 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4540
4541 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4542 software_single_step change of return type to
4543 std::vector<CORE_ADDR>.
4544 * linux-low.c (install_software_single_step_breakpoints):
4545 Likewise.
4546 * linux-low.h (install_software_single_step_breakpoints):
4547 Likewise.
4548
4549 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4550
4551 * remote-utils.c: Include "gdb_termios.h" instead of
4552 "terminal.h".
4553 * terminal.h: Delete file.
4554
4555 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4556
4557 * server.c: Include <vector>.
4558 <program_argv, wrapper_argv>: Convert to std::vector.
4559 (start_inferior): Rewrite function to use C++.
4560 (handle_v_run): Likewise. Update code that calculates the argv
4561 based on the vRun packet; use C++.
4562 (captured_main): Likewise.
4563
4564 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4565
4566 * server.c (handle_v_cont): Initialize thread_resume::thread
4567 with null_ptid.
4568
4569 2017-04-05 Pedro Alves <palves@redhat.com>
4570
4571 * configure: Regenerate.
4572
4573 2017-04-05 Pedro Alves <palves@redhat.com>
4574
4575 * gdbreplay.c (sync_error): Constify.
4576 * linux-x86-low.c (push_opcode): Constify.
4577
4578 2017-04-05 Pedro Alves <palves@redhat.com>
4579
4580 * win32-low.c (get_child_debug_event)
4581 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
4582 Report TARGET_WAITKIND_SPURIOUS instead.
4583
4584 2017-04-05 Pedro Alves <palves@redhat.com>
4585
4586 * remote-utils.c (remote_prepare, remote_open): Constify.
4587 * remote-utils.h (remote_prepare, remote_open): Constify.
4588 * server.c (captured_main): Constify 'port' handling.
4589
4590 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4591
4592 * Makefile.in (clean): Clear .deps.
4593
4594 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4595
4596 * .gitignore: Remove generated files, replace with wildcard.
4597 * (clean): Replace removal of generated files with wildcard.
4598 (version.c): Replace with...
4599 (version-generated.c): ...this.
4600 (xml-builtin.c): Replace with...
4601 (xml-builtin-generated.c): ...this.
4602 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
4603 (%.c: *regformats*): Replace with...
4604 (%-generated.c: *regformats*): ...this.
4605
4606 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4607
4608 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
4609 (xtensa_fill_gregset): Call collect_register_by_name for
4610 threadptr register.
4611 (xtensa_store_gregset): Call supply_register_by_name for
4612 threadptr register.
4613
4614 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4615
4616 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
4617 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
4618 (xtensa_store_gregset): Call supply_register for all registers in
4619 a0_regnum..a0_regnum + C0_NREGS range.
4620
4621 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4622
4623 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
4624 (ax-ipa.o: ax.c): Remove.
4625 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
4626 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
4627 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
4628 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
4629 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
4630
4631 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4632
4633 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
4634 (print-utils-ipa.o: ../common/print-utils.c): Remove.
4635 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
4636 (errors-ipa.o: ../common/errors.c): Remove.
4637 (format-ipa.o: ../common/format.c): Remove.
4638 (common-utils-ipa.o: ../common/common-utils.c): Remove.
4639
4640 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4641
4642 * Makefile.in (%-ipa.o: %.c): New rule.
4643 (tracepoint-ipa.o: tracepoint.c): Remove.
4644 (utils-ipa.o: utils.c): Remove.
4645 (remote-utils-ipa.o: remote-utils.c): Remove.
4646 (regcache-ipa.o: regcache.c): Remove.
4647 (i386-linux-ipa.o: i386-linux.c): Remove.
4648 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
4649 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
4650 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
4651 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
4652 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
4653 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
4654 (amd64-linux-ipa.o: amd64-linux.c): Remove.
4655 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
4656 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
4657 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
4658 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
4659 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
4660 (aarch64-ipa.o: aarch64.c): Remove.
4661 (s390-linux32-ipa.o: s390-linux32.c): Remove.
4662 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
4663 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
4664 (s390-linux64-ipa.o: s390-linux64.c): Remove.
4665 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
4666 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
4667 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
4668 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
4669 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
4670 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
4671 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
4672 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
4673 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
4674 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
4675 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
4676 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
4677 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
4678 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
4679 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
4680 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
4681 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
4682 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
4683 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
4684 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
4685 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
4686 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
4687 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
4688 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
4689 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
4690 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
4691 (tdesc-ipa.o: tdesc.c): Remove.
4692 (x32-linux-ipa.o: x32-linux.c): Remove.
4693 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
4694 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
4695
4696 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4697
4698 * Makefile.in (%.o: ../arch/%.c): New rule.
4699 (arm.o: ../arch/arm.c): Remove.
4700 (arm-linux.o: ../arch/arm-linux.c): Remove.
4701 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
4702 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
4703
4704 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4705
4706 * Makefile.in (%.o: ../nat/%.c): New rule.
4707 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
4708 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
4709 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
4710 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
4711 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
4712 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
4713 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
4714 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
4715 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
4716 (linux-personality.o: ../nat/linux-personality.c): Remove.
4717 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
4718 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
4719 (x86-linux.o: ../nat/x86-linux.c): Remove.
4720 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
4721 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
4722
4723 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4724
4725 * Makefile.in (%.o: ../common/%.c): New rule.
4726 (signals.o: ../common/signals.c): Remove.
4727 (print-utils.o: ../common/print-utils.c): Remove.
4728 (rsp-low.o: ../common/rsp-low.c): Remove.
4729 (common-utils.o: ../common/common-utils.c): Remove.
4730 (posix-strerror.o: ../common/posix-strerror.c): Remove.
4731 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
4732 (vec.o: ../common/vec.c): Remove.
4733 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
4734 (xml-utils.o: ../common/xml-utils.c): Remove.
4735 (ptid.o: ../common/ptid.c): Remove.
4736 (buffer.o: ../common/buffer.c): Remove.
4737 (format.o: ../common/format.c): Remove.
4738 (filestuff.o: ../common/filestuff.c): Remove.
4739 (agent.o: ../common/agent.c): Remove.
4740 (errors.o: ../common/errors.c): Remove.
4741 (environ.o: ../common/environ.c): Remove.
4742 (common-debug.o: ../common/common-debug.c): Remove.
4743 (cleanups.o: ../common/cleanups.c): Remove.
4744 (common-exceptions.o: ../common/common-exceptions.c): Remove.
4745 (fileio.o: ../common/fileio.c): Remove.
4746 (common-regcache.o: ../common/common-regcache.c): Remove.
4747 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
4748 (new-op.o: ../common/new-op.c): Remove.
4749 (btrace-common.o: ../common/btrace-common.c): Remove.
4750
4751 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4752
4753 * Makefile.in (%.o: ../target/%.c): New rule.
4754 (waitstatus.o: ../target/waitstatus.c): Remove.
4755
4756 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4757
4758 * Makefile.in
4759 (%.c: ../regformats/%.dat,
4760 (%.c: ../regformats/arm/%.dat,
4761 (%.c: ../regformats/i386/%.dat,
4762 (%.c: ../regformats/rs6000/%.dat): New rules.
4763 (aarch64.c): Remove.
4764 (reg-arm.c): Remove.
4765 (arm-with-iwmmxt.c): Remove.
4766 (arm-with-vfpv2.c): Remove.
4767 (arm-with-vfpv3.c): Remove.
4768 (arm-with-neon.c): Remove.
4769 (reg-bfin.c): Remove.
4770 (reg-cris.c): Remove.
4771 (reg-crisv32.c): Remove.
4772 (i386.c): Remove.
4773 (i386-linux.c): Remove.
4774 (i386-avx.c): Remove.
4775 (i386-avx-linux.c): Remove.
4776 (i386-avx-avx512.c): Remove.
4777 (i386-avx-avx512-linux.c): Remove.
4778 (i386-mpx.c): Remove.
4779 (i386-mpx-linux.c): Remove.
4780 (i386-avx-mpx-avx512-pku.c): Remove.
4781 (i386-avx-mpx-avx512-pku-linux.c): Remove.
4782 (i386-avx-mpx.c): Remove.
4783 (i386-avx-mpx-linux.c): Remove.
4784 (i386-mmx.c): Remove.
4785 (i386-mmx-linux.c): Remove.
4786 (reg-ia64.c): Remove.
4787 (reg-m32r.c): Remove.
4788 (reg-m68k.c): Remove.
4789 (reg-cf.c): Remove.
4790 (mips-linux.c): Remove.
4791 (mips-dsp-linux.c): Remove.
4792 (mips64-linux.c): Remove.
4793 (mips64-dsp-linux.c): Remove.
4794 (nios2-linux.c): Remove.
4795 (powerpc-32.c): Remove.
4796 (powerpc-32l.c): Remove.
4797 (powerpc-altivec32l.c): Remove.
4798 (powerpc-cell32l.c): Remove.
4799 (powerpc-vsx32l.c): Remove.
4800 (powerpc-isa205-32l.c): Remove.
4801 (powerpc-isa205-altivec32l.c): Remove.
4802 (powerpc-isa205-vsx32l.c): Remove.
4803 (powerpc-e500l.c): Remove.
4804 (powerpc-64l.c): Remove.
4805 (powerpc-altivec64l.c): Remove.
4806 (powerpc-cell64l.c): Remove.
4807 (powerpc-vsx64l.c): Remove.
4808 (powerpc-isa205-64l.c): Remove.
4809 (powerpc-isa205-altivec64l.c): Remove.
4810 (powerpc-isa205-vsx64l.c): Remove.
4811 (s390-linux32.c): Remove.
4812 (s390-linux32v1.c): Remove.
4813 (s390-linux32v2.c): Remove.
4814 (s390-linux64.c): Remove.
4815 (s390-linux64v1.c): Remove.
4816 (s390-linux64v2.c): Remove.
4817 (s390-te-linux64.c): Remove.
4818 (s390-vx-linux64.c): Remove.
4819 (s390-tevx-linux64.c): Remove.
4820 (s390x-linux64.c): Remove.
4821 (s390x-linux64v1.c): Remove.
4822 (s390x-linux64v2.c): Remove.
4823 (s390x-te-linux64.c): Remove.
4824 (s390x-vx-linux64.c): Remove.
4825 (s390x-tevx-linux64.c): Remove.
4826 (tic6x-c64xp-linux.c): Remove.
4827 (tic6x-c64x-linux.c): Remove.
4828 (tic6x-c62x-linux.c): Remove.
4829 (reg-sh.c): Remove.
4830 (reg-sparc64.c): Remove.
4831 (reg-spu.c): Remove.
4832 (amd64.c): Remove.
4833 (amd64-linux.c): Remove.
4834 (amd64-avx.c): Remove.
4835 (amd64-avx-linux.c): Remove.
4836 (amd64-avx-avx512.c): Remove.
4837 (amd64-avx-avx512-linux.c): Remove.
4838 (amd64-mpx.c): Remove.
4839 (amd64-mpx-linux.c): Remove.
4840 (amd64-avx-mpx-avx512-pku.c): Remove.
4841 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
4842 (amd64-avx-mpx.c): Remove.
4843 (amd64-avx-mpx-linux.c): Remove.
4844 (x32.c): Remove.
4845 (x32-linux.c): Remove.
4846 (x32-avx.c): Remove.
4847 (x32-avx-linux.c): Remove.
4848 (x32-avx-avx512.c): Remove.
4849 (x32-avx-avx512-linux.c): Remove.
4850 (reg-xtensa.c): Remove.
4851 (reg-tilegx.c): Remove.
4852 (reg-tilegx32.c): Remove.
4853
4854 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
4855
4856 * Makefile.in (SFILES): Add "common/environ.c".
4857 (OBJS): Add "common/environ.h".
4858
4859 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4860
4861 * configure.ac: Check if the fs_base and gs_base members of
4862 `struct user_regs_struct' exist.
4863 * config.in: Regenerated.
4864 * configure: Likewise.
4865
4866 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
4867
4868 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
4869 target_read_memory.
4870 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
4871 (get_next_pcs_syscall_next_pc): Likewise.
4872
4873 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
4874
4875 * win32-i386-low.c: Fix incorrect reference to a couple source files.
4876 * nto-x86-low.c: Likewise.
4877
4878 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
4879
4880 * Makefile.in: Include disable-implicit-rules.mk.
4881
4882 2016-11-23 Pedro Alves <palves@redhat.com>
4883
4884 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
4885 (debug_vprintf): Use std::chrono::steady_clock instead of
4886 gettimeofday. Use '.' instead of ':'.
4887 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
4888 (get_timestamp): Use std::chrono::steady_clock instead of
4889 gettimeofday.
4890
4891 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4892
4893 * Makefile.in: Fix whitespace formatting.
4894
4895 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4896
4897 * Makefile.in (SFILES, OBS): Flatten list and order
4898 alphabetically.
4899
4900 2016-11-23 Pedro Alves <palves@redhat.com>
4901
4902 * event-loop.c (handle_file_event): Use warning.
4903 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
4904 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4905 Use warning.
4906
4907 2016-11-23 Pedro Alves <palves@redhat.com>
4908
4909 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
4910 output.
4911 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
4912 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
4913 debug_printf and debug_flush for debug output.
4914 * server.c (handle_general_set): Likewise.
4915 * thread-db.c (try_thread_db_load): Use debug_printf for debug
4916 output.
4917
4918 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4919
4920 * Makefile.in (.c.o): Replace rule with ...
4921 (%.o: %.c): ... this one.
4922
4923 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4924
4925 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
4926 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
4927 make.
4928 * configure.ac: Remove checks for the make program.
4929 * configure: Re-generate.
4930
4931 2016-10-28 Pedro Alves <palves@redhat.com>
4932
4933 * Makefile.in (CXX_DIALECT): Get from configure.
4934 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
4935 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
4936 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
4937 * config.in: Regenerate.
4938 * configure: Regenerate.
4939
4940 2016-10-27 Yao Qi <yao.qi@linaro.org>
4941
4942 * linux-low.c (linux_supports_range_stepping): Return true if
4943 can_software_single_step return true.
4944
4945 2016-10-27 Yao Qi <yao.qi@linaro.org>
4946
4947 * inferiors.c (find_inferior_in_random): New function.
4948 * inferiors.h (find_inferior_in_random): Declare.
4949 * linux-low.c (linux_wait_for_event_filtered): Call
4950 find_inferior_in_random instead of find_inferior.
4951
4952 2016-10-27 Yao Qi <yao.qi@linaro.org>
4953
4954 * linux-low.c (linux_wait_1): If single-step breakpoints are
4955 inserted, remove them.
4956
4957 2016-10-26 Pedro Alves <palves@redhat.com>
4958
4959 * linux-low.c (handle_extended_wait): Link parent/child fork
4960 threads.
4961 (linux_wait_1): Unlink them.
4962 (linux_set_resume_request): Ignore resume requests for
4963 already-resumed and unhandled fork child threads.
4964 * linux-low.h (struct lwp_info) <fork_relative>: New field.
4965 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
4966 New functions.
4967 (handle_v_requests) <vCont>: Don't call require_running.
4968 * server.h (in_queued_stop_replies): New declaration.
4969
4970 2016-10-24 Yao Qi <yao.qi@linaro.org>
4971
4972 PR server/20733
4973 * linux-aarch64-low.c (append_insns): Cast the return value to
4974 'uint32_t *'.
4975
4976 2016-10-10 Yao Qi <yao.qi@linaro.org>
4977
4978 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
4979
4980 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
4981
4982 * target.c (target_supports_multi_process): New function, moved
4983 from...
4984 * target.h (target_supports_multi_process): ... here. Remove
4985 macro.
4986
4987 2016-10-05 Tom Tromey <tom@tromey.com>
4988
4989 PR remote/20655:
4990 * tracepoint.c (handle_tracepoint_bkpts): Check
4991 ipa_error_tracepoint, not ipa_stopping_tracepoint.
4992
4993 2016-10-05 Yao Qi <yao.qi@linaro.org>
4994
4995 * configure.srv: Update the path of arm-*.xml files.
4996
4997 2016-10-05 Terry Guo <terry.guo@arm.com>
4998 Yao Qi <yao.qi@linaro.org>
4999
5000 * Makefile.in: Adjust the path of rules.
5001 * configure.srv: Update the path of xml files.
5002 * regformats/arm-with-iwmmxt.dat: Regenerated.
5003 * regformats/arm-with-neon.dat: Likewise.
5004 * regformats/arm-with-vfpv2.dat: Likewise.
5005 * regformats/arm-with-vfpv3.dat Likewise.
5006
5007 2016-09-30 Yao Qi <yao.qi@linaro.org>
5008
5009 PR gdbserver/20627
5010 * target.c (target_stop_and_wait): Don't call
5011 target_continue_no_signal, use resume_stop instead.
5012
5013 2016-09-26 Yao Qi <yao.qi@linaro.org>
5014
5015 * linux-low.c (linux_wait_1): Call debug_exit.
5016
5017 2016-09-23 Pedro Alves <palves@redhat.com>
5018
5019 * Makefile.in (SFILES): Add common/new-op.c.
5020 (OBS): Add common/new-op.o.
5021 (new-op.o): New rule.
5022
5023 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5024
5025 * .gitinore: Ignore more files.
5026
5027 2016-09-21 Yao Qi <yao.qi@linaro.org>
5028
5029 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5030 23.
5031
5032 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5033
5034 * server.c (start_inferior): Call target_mourn_inferior instead of
5035 mourn_inferior; pass ptid_t argument to it.
5036 (resume): Likewise.
5037 (handle_target_event): Likewise.
5038 * target.c (target_mourn_inferior): New function.
5039 * target.h (mourn_inferior): Delete macro.
5040
5041 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5042
5043 * linux-low.c (lwp_is_stepping): New function.
5044
5045 2016-09-06 Carl Love <cel@us.ibm.com>
5046
5047 * server.c (start_inferior): Fixed comment, requested comment change
5048 didn't get updated correctly. Removed reference to ptrace () call as
5049 it is only true on Linux systems.
5050
5051 2016-09-06 Carl Love <cel@us.ibm.com>
5052
5053 * server.c (start_inferior): Do not call
5054 function target_post_create_inferior () if the
5055 inferior process has already exited.
5056
5057 2016-09-05 Pedro Alves <palves@redhat.com>
5058
5059 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
5060 (COMPILE.pre, CC_LD): Use CXX directly.
5061 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
5062 * acinclude.m4: Don't include build-with-cxx.m4.
5063 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
5064 * configure: Regenerate.
5065
5066 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5067
5068 PR gdb/19495
5069 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5070 call writing data to own_buf.
5071
5072 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5073
5074 * target.c (mywait): Call target_wait instead of
5075 the_target->wait.
5076 (target_wait): New function.
5077
5078 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5079
5080 * server.c (start_inferior): New variable 'ptid'. Replace calls
5081 to the_target->resume by target_continue{,_no_signal}, depending
5082 on the case.
5083 * target.c (target_stop_and_wait): Call target_continue_no_signal
5084 instead of the_target->resume.
5085 (target_continue): New function.
5086
5087 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5088
5089 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5090
5091 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5092
5093 PR server/20491
5094 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5095 ps_prochandle.
5096 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
5097 * linux-arm-low.c (ps_get_thread_area): Likewise.
5098 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
5099 * linux-m68k-low.c (ps_get_thread_area): Likewise.
5100 * linux-mips-low.c (ps_get_thread_area): Likewise.
5101 * linux-nios2-low.c (ps_get_thread_area): Likewise.
5102 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
5103 * linux-x86-low.c (ps_get_thread_area): Likewise.
5104 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
5105
5106 2016-08-19 Pedro Alves <palves@redhat.com>
5107
5108 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5109
5110 2016-08-19 Pedro Alves <palves@redhat.com>
5111
5112 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5113 comment. Use memcpy instead of casting through unsigned long.
5114
5115 2016-08-19 Pedro Alves <palves@redhat.com>
5116
5117 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5118 allocating around 0x80000000.
5119
5120 2016-08-19 Pedro Alves <palves@redhat.com>
5121
5122 PR gdb/20415
5123 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
5124 (x32-avx512-linux-ipa.o): New rules.
5125 * configure.ac (x86_64-*-linux*): New x32 check.
5126 * configure.srv (ipa_x32_linux_regobj): New.
5127 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
5128 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
5129 descriptions.
5130 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5131 descriptions.
5132 * configure: Regenerate.
5133
5134 2016-08-09 Pedro Alves <palves@redhat.com>
5135
5136 PR gdb/18653
5137 * Makefile.in (OBS): Add signals-state-save-restore.o.
5138 (signals-state-save-restore.o): New rule.
5139 * config.in: Regenerate.
5140 * configure: Regenerate.
5141 * linux-low.c: Include "signals-state-save-restore.h".
5142 (linux_create_inferior): Call
5143 restore_original_signals_state.
5144 * server.c: Include "dispositions-save-restore.h".
5145 (captured_main): Call save_original_signals_state.
5146
5147 2016-08-05 Pedro Alves <palves@redhat.com>
5148
5149 * configure: Regenerate.
5150
5151 2016-08-04 Yao Qi <yao.qi@linaro.org>
5152
5153 * linux-low.c (regsets_fetch_inferior_registers): Check
5154 errno is ESRCH or not.
5155
5156 2016-08-02 Yao Qi <yao.qi@linaro.org>
5157
5158 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
5159 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
5160 (thread_db_load_search): Update.
5161 (try_thread_db_load_1): Don't look for td_ta_event_addr,
5162 td_ta_set_event and td_ta_event_getmsg.
5163
5164 2016-07-26 Pedro Alves <palves@redhat.com>
5165
5166 PR server/20414
5167 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
5168 of unsigned long for 64-bit registers and use uint32_t instead of
5169 unsigned int for 32-bit registers.
5170
5171 2016-07-26 Pedro Alves <palves@redhat.com>
5172
5173 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5174 to 'ptrace'.
5175
5176 2016-07-21 Tom Tromey <tom@tromey.com>
5177
5178 * configure: Rebuild.
5179
5180 2016-07-21 Yao Qi <yao.qi@linaro.org>
5181
5182 * mem-break.c (find_gdb_breakpoint): Cast bp to
5183 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5184
5185 2016-07-21 Yao Qi <yao.qi@linaro.org>
5186
5187 * server.c (handle_v_requests): Support s and S actions
5188 if target_supports_software_single_step return true.
5189
5190 2016-07-21 Yao Qi <yao.qi@linaro.org>
5191
5192 * linux-low.c (resume_stopped_resumed_lwps): If resume request
5193 is resume_step, call maybe_hw_step.
5194 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
5195 and unstop them.
5196 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5197 breakpoints or not.
5198 (proceed_one_lwp): If resume request is resume_step, install
5199 reinsert breakpoints and call maybe_hw_step.
5200
5201 2016-07-21 Yao Qi <yao.qi@linaro.org>
5202
5203 * linux-low.c (proceed_one_lwp): Declare.
5204 (linux_resume_one_thread): Remove local variable 'step'.
5205 Lift code enqueue signal. Call proceed_one_lwp instead of
5206 linux_resume_one_lwp.
5207
5208 2016-07-21 Yao Qi <yao.qi@linaro.org>
5209
5210 * linux-low.c (linux_resume_one_thread): Call
5211 enqueue_pending_signal.
5212
5213 2016-07-21 Yao Qi <yao.qi@linaro.org>
5214
5215 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5216 * inferiors.c (do_restore_current_thread_cleanup): New function.
5217 (make_cleanup_restore_current_thread): Likewise.
5218 * linux-low.c (install_software_single_step_breakpoints): Call
5219 make_cleanup_restore_current_thread. Switch current_thread to
5220 thread.
5221
5222 2016-07-21 Yao Qi <yao.qi@linaro.org>
5223
5224 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
5225 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
5226 (clone_one_breakpoint): Likewise.
5227 (delete_reinsert_breakpoints): Change parameter to thread.
5228 Callers updated.
5229 (has_reinsert_breakpoints): Likewise.
5230 (uninsert_reinsert_breakpoints): Likewise.
5231 (reinsert_reinsert_breakpoints): Likewise.
5232 * mem-break.h (set_reinsert_breakpoint): Update declaration.
5233 (delete_reinsert_breakpoints): Likewise.
5234 (reinsert_reinsert_breakpoints): Likewise.
5235 (uninsert_reinsert_breakpoints): Likewise.
5236 (has_reinsert_breakpoints): Likewise.
5237
5238 2016-07-21 Yao Qi <yao.qi@linaro.org>
5239
5240 * inferiors.c (get_thread_process): Make parameter const.
5241 * inferiors.h (get_thread_process): Update declaration.
5242 * mem-break.c (clone_all_breakpoints): Remove all parameters.
5243 Add new parameters child_thread and parent_thread. Callers
5244 updated.
5245 * mem-break.h (clone_all_breakpoints): Update declaration.
5246
5247 2016-07-21 Yao Qi <yao.qi@linaro.org>
5248
5249 * mem-break.c (struct breakpoint) <cond_list>: Remove.
5250 <command_list, handler>: Remove.
5251 (struct gdb_breakpoint): New.
5252 (struct other_breakpoint): New.
5253 (struct reinsert_breakpoint): New.
5254 (is_gdb_breakpoint): New function.
5255 (any_persistent_commands): Update command_list if
5256 is_gdb_breakpoint returns true.
5257 (set_breakpoint): Create breakpoints according to their types.
5258 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
5259 (set_gdb_breakpoint_1): Likewise.
5260 (set_gdb_breakpoint): Likewise.
5261 (clear_breakpoint_conditions): Change parameter type to
5262 'struct gdb_breakpoint *'.
5263 (clear_breakpoint_commands): Likewise.
5264 (clear_breakpoint_conditions_and_commands): Likewise.
5265 (add_condition_to_breakpoint): Likewise.
5266 (add_breakpoint_condition): Likewise.
5267 (add_commands_to_breakpoint): Likewise.
5268 (check_breakpoints): Check other_breakpoint.
5269 (clone_one_breakpoint): Clone breakpopint according to its type.
5270 * mem-break.h (struct gdb_breakpoint): Declare.
5271 (set_gdb_breakpoint): Update declaration.
5272 (clear_breakpoint_conditions_and_commands): Likewise.
5273 (add_breakpoint_condition): Likewise.
5274 (add_breakpoint_commands): Likewise.
5275 * server.c (process_point_options): Change parameter type to
5276 'struct gdb_breakpoint *'.
5277
5278 2016-07-21 Yao Qi <yao.qi@linaro.org>
5279
5280 * mem-break.c (set_breakpoint_at): Rename it to ...
5281 (set_breakpoint_type_at): ... it.
5282 (set_breakpoint_at): Call set_breakpoint_type_at.
5283 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
5284 * mem-break.h (set_breakpoint_at): Update comments.
5285
5286 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5287
5288 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5289 to buf parameter.
5290 (nios2_store_gregset): Likewise.
5291
5292 2016-07-01 Pedro Alves <palves@redhat.com>
5293 Antoine Tremblay <antoine.tremblay@ericsson.com>
5294
5295 * linux-low.c: Change interface to take the target lwp_info
5296 pointer directly and return void. Handle detaching from a zombie
5297 thread.
5298 (linux_detach_lwp_callback): New function.
5299 (linux_detach): Detach from the leader thread after detaching from
5300 the clone threads.
5301
5302 2016-06-28 Yao Qi <yao.qi@linaro.org>
5303
5304 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
5305 for variable new_offset.
5306 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5307 (aarch64_ftrace_insn_reloc_cb): Likewise.
5308 (aarch64_ftrace_insn_reloc_tb): Likewise.
5309 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5310 PRIx64 instead of PRIx32.
5311
5312 2016-06-28 Yao Qi <yao.qi@linaro.org>
5313
5314 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5315 (the_low_target): Install arm_get_syscall_trapinfo.
5316
5317 2016-06-28 Yao Qi <yao.qi@linaro.org>
5318
5319 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5320 function.
5321 (the_low_target): Install aarch64_get_syscall_trapinfo.
5322
5323 2016-06-28 Yao Qi <yao.qi@linaro.org>
5324
5325 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5326 Callers updated.
5327 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
5328 Remove parameter sysno.
5329 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
5330 sysret.
5331
5332 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5333
5334 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
5335 (s390_emit_ne_goto): Likewise.
5336 (s390_emit_lt_goto): Likewise.
5337 (s390_emit_le_goto): Likewise.
5338 (s390_emit_gt_goto): Likewise.
5339 (s390_emit_ge_goto): Likewise.
5340 (s390x_emit_eq_goto): Likewise.
5341 (s390x_emit_ne_goto): Likewise.
5342 (s390x_emit_lt_goto): Likewise.
5343 (s390x_emit_le_goto): Likewise.
5344 (s390x_emit_gt_goto): Likewise.
5345 (s390x_emit_ge_goto): Likewise.
5346 (s390_emit_ops_impl): Mark variable static.
5347 (s390x_emit_ops): Likewise.
5348
5349 2016-06-17 Yao Qi <yao.qi@linaro.org>
5350
5351 * linux-low.c (handle_extended_wait): Call
5352 uninsert_reinsert_breakpoints for the parent process. Remove
5353 reinsert breakpoints from the child process. Reinsert them to
5354 the parent process when vfork is done.
5355 * mem-break.c (uninsert_reinsert_breakpoints): New function.
5356 (reinsert_reinsert_breakpoints): New function.
5357 * mem-break.h (uninsert_reinsert_breakpoints): Declare
5358 (reinsert_reinsert_breakpoints): Declare.
5359
5360 2016-06-17 Yao Qi <yao.qi@linaro.org>
5361
5362 * linux-low.c (handle_extended_wait): If the parent is doing
5363 step-over, remove the reinsert breakpoints from the forked child.
5364
5365 2016-06-17 Yao Qi <yao.qi@linaro.org>
5366
5367 * linux-low.c (unsuspend_all_lwps): Declare.
5368 (linux_low_filter_event): If thread exited, call finish_step_over.
5369 If step-over is finished, unsuspend other threads.
5370
5371 2016-06-17 Yao Qi <yao.qi@linaro.org>
5372
5373 * linux-low.c (linux_resume_one_lwp_throw): Assert
5374 has_reinsert_breakpoints returns false.
5375 * mem-break.c (delete_disabled_breakpoints): Assert
5376 bp type isn't reinsert_breakpoint.
5377
5378 2016-06-17 Yao Qi <yao.qi@linaro.org>
5379
5380 * linux-low.c (maybe_hw_step): New function.
5381 (linux_resume_one_lwp_throw): Call maybe_hw_step.
5382 (finish_step_over): Switch current_thread to lwp temporarily,
5383 and assert has_reinsert_breakpoints returns true.
5384 (proceed_one_lwp): Call maybe_hw_step.
5385 * mem-break.c (has_reinsert_breakpoints): New function.
5386 * mem-break.h (has_reinsert_breakpoints): Declare.
5387
5388 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5389
5390 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5391
5392 2016-05-17 Yao Qi <yao.qi@linaro.org>
5393
5394 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5395 instead of find_inferior.
5396
5397 2016-05-05 Yao Qi <yao.qi@linaro.org>
5398
5399 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5400 Initialize res to zero.
5401
5402 2016-05-05 Yao Qi <yao.qi@linaro.org>
5403
5404 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5405 to uint32_t.
5406
5407 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5408
5409 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5410 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5411 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5412
5413 2016-04-28 Par Olsson <par.olsson@windriver.com>
5414 Simon Marchi <simon.marchi@ericsson.com>
5415
5416 * tracepoint.c (write_inferior_int8): New function.
5417 (cmd_qtenable_disable): Write enable flag using
5418 write_inferior_int8.
5419
5420 2016-04-25 Yao Qi <yao.qi@linaro.org>
5421
5422 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5423 (need_step_over_p): Return zero if the LWP has pending signals
5424 can be delivered on software single step target.
5425
5426 2016-04-25 Yao Qi <yao.qi@linaro.org>
5427
5428 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5429 return instead of error.
5430
5431 2016-04-22 Yao Qi <yao.qi@linaro.org>
5432
5433 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5434 to 23.
5435
5436 2016-04-22 Yao Qi <yao.qi@linaro.org>
5437
5438 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5439 signal when stepping over breakpoint with software single
5440 step.
5441
5442 2016-04-21 Pedro Alves <palves@redhat.com>
5443
5444 * linux-s390-low.c (s390_collect_ptrace_register)
5445 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5446 add casts.
5447 (s390_check_regset): Use void * instead of gdb_byte *.
5448
5449 2016-04-20 Pedro Alves <palves@redhat.com>
5450
5451 * configure: Renegerate.
5452
5453 2016-04-20 Yao Qi <yao.qi@linaro.org>
5454
5455 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5456 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5457 number 16.
5458 (arm_store_gregset): Likewise.
5459
5460 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5461
5462 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5463 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5464 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5465 (amd64-avx-mpx-linux.c): New rules.
5466 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5467 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5468 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5469 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5470 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5471 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5472 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5473 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5474 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5475 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5476 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5477 * linux-x86-low.c (x86_linux_read_description): Add case for
5478 X86_XSTATE_AVX_MPX_MASK.
5479 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5480 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5481 init_registers_i386_avx_mpx_linux.
5482 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5483 (initialize_low_tracepoint): Call
5484 init_registers_i386_avx_mpx_linux.
5485 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5486 (initialize_low_tracepoint): Call
5487 init_registers_amd64_avx_mpx_linux.
5488 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5489 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5490 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5491 declarations.
5492
5493 2016-04-18 Pedro Alves <palves@redhat.com>
5494
5495 * configure: Regenerate.
5496
5497 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5498
5499 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5500 (aarch64_emit_sub): Likewise.
5501
5502 2016-04-12 Pedro Alves <palves@redhat.com>
5503
5504 * utils.c (prepare_to_throw_exception): Delete.
5505
5506 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5507
5508 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5509
5510 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5511
5512 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5513
5514 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5515
5516 * linux-aarch64-ipa.c: Add <elf.h> include.
5517 * linux-ppc-ipa.c: Add <elf.h> include.
5518 * linux-s390-ipa.c: Add <elf.h> include.
5519
5520 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5521
5522 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5523 (get_raw_reg_ptr): Likewise.
5524 (get_trace_state_variable_value_ptr): Likewise.
5525 (set_trace_state_variable_value_ptr): Likewise.
5526 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5527 char *.
5528
5529 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
5530 Marcin Kościelnicki <koriakin@0x04.net>
5531
5532 PR/17221
5533 * linux-ppc-low.c (emit_insns): New function.
5534 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5535 (ppc_emit_prologue): New function.
5536 (ppc_emit_epilogue): New function.
5537 (ppc_emit_add): New function.
5538 (ppc_emit_sub): New function.
5539 (ppc_emit_mul): New function.
5540 (ppc_emit_lsh): New function.
5541 (ppc_emit_rsh_signed): New function.
5542 (ppc_emit_rsh_unsigned): New function.
5543 (ppc_emit_ext): New function.
5544 (ppc_emit_zero_ext): New function.
5545 (ppc_emit_log_not): New function.
5546 (ppc_emit_bit_and): New function.
5547 (ppc_emit_bit_or): New function.
5548 (ppc_emit_bit_xor): New function.
5549 (ppc_emit_bit_not): New function.
5550 (ppc_emit_equal): New function.
5551 (ppc_emit_less_signed): New function.
5552 (ppc_emit_less_unsigned): New function.
5553 (ppc_emit_ref): New function.
5554 (ppc_emit_const): New function.
5555 (ppc_emit_reg): New function.
5556 (ppc_emit_pop): New function.
5557 (ppc_emit_stack_flush): New function.
5558 (ppc_emit_swap): New function.
5559 (ppc_emit_stack_adjust): New function.
5560 (ppc_emit_call): New function.
5561 (ppc_emit_int_call_1): New function.
5562 (ppc_emit_void_call_2): New function.
5563 (ppc_emit_if_goto): New function.
5564 (ppc_emit_goto): New function.
5565 (ppc_emit_eq_goto): New function.
5566 (ppc_emit_ne_goto): New function.
5567 (ppc_emit_lt_goto): New function.
5568 (ppc_emit_le_goto): New function.
5569 (ppc_emit_gt_goto): New function.
5570 (ppc_emit_ge_goto): New function.
5571 (ppc_write_goto_address): New function.
5572 (ppc_emit_ops_impl): New static variable.
5573 (ppc64v1_emit_prologue): New function.
5574 (ppc64v2_emit_prologue): New function.
5575 (ppc64_emit_epilogue): New function.
5576 (ppc64_emit_add): New function.
5577 (ppc64_emit_sub): New function.
5578 (ppc64_emit_mul): New function.
5579 (ppc64_emit_lsh): New function.
5580 (ppc64_emit_rsh_signed): New function.
5581 (ppc64_emit_rsh_unsigned): New function.
5582 (ppc64_emit_ext): New function.
5583 (ppc64_emit_zero_ext): New function.
5584 (ppc64_emit_log_not): New function.
5585 (ppc64_emit_bit_and): New function.
5586 (ppc64_emit_bit_or): New function.
5587 (ppc64_emit_bit_xor): New function.
5588 (ppc64_emit_bit_not): New function.
5589 (ppc64_emit_equal): New function.
5590 (ppc64_emit_less_signed): New function.
5591 (ppc64_emit_less_unsigned): New function.
5592 (ppc64_emit_ref): New function.
5593 (ppc64_emit_const): New function.
5594 (ppc64v1_emit_reg): New function.
5595 (ppc64v2_emit_reg): New function.
5596 (ppc64_emit_pop): New function.
5597 (ppc64_emit_stack_flush): New function.
5598 (ppc64_emit_swap): New function.
5599 (ppc64v1_emit_call): New function.
5600 (ppc64v2_emit_call): New function.
5601 (ppc64v1_emit_int_call_1): New function.
5602 (ppc64v2_emit_int_call_1): New function.
5603 (ppc64v1_emit_void_call_2): New function.
5604 (ppc64v2_emit_void_call_2): New function.
5605 (ppc64_emit_if_goto): New function.
5606 (ppc64_emit_eq_goto): New function.
5607 (ppc64_emit_ne_goto): New function.
5608 (ppc64_emit_lt_goto): New function.
5609 (ppc64_emit_le_goto): New function.
5610 (ppc64_emit_gt_goto): New function.
5611 (ppc64_emit_ge_goto): New function.
5612 (ppc64v1_emit_ops_impl): New static variable.
5613 (ppc64v2_emit_ops_impl): New static variable.
5614 (ppc_emit_ops): New function.
5615 (linux_low_target): Wire in ppc_emit_ops.
5616
5617 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
5618 Marcin Kościelnicki <koriakin@0x04.net>
5619
5620 PR/17221
5621 * Makefile.in: Add powerpc-*-ipa.o
5622 * configure.srv: Add ipa_obj for powerpc*-linux.
5623 * linux-ppc-ipa.c: New file.
5624 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
5625 includes.
5626 (PPC_FIELD): New macro.
5627 (PPC_SEXT): New macro.
5628 (PPC_OP6): New macro.
5629 (PPC_BO): New macro.
5630 (PPC_LI): New macro.
5631 (PPC_BD): New macro.
5632 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
5633 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
5634 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
5635 (ppc_get_thread_area): New function.
5636 (is_elfv2_inferior): New function.
5637 (gen_ds_form): New function.
5638 (GEN_STD): New macro.
5639 (GEN_STDU): New macro.
5640 (GEN_LD): New macro.
5641 (GEN_LDU): New macro.
5642 (gen_d_form): New function.
5643 (GEN_ADDI): New macro.
5644 (GEN_ADDIS): New macro.
5645 (GEN_LI): New macro.
5646 (GEN_LIS): New macro.
5647 (GEN_ORI): New macro.
5648 (GEN_ORIS): New macro.
5649 (GEN_LWZ): New macro.
5650 (GEN_STW): New macro.
5651 (GEN_STWU): New macro.
5652 (gen_xfx_form): New function.
5653 (GEN_MFSPR): New macro.
5654 (GEN_MTSPR): New macro.
5655 (GEN_MFCR): New macro.
5656 (GEN_MTCR): New macro.
5657 (GEN_SYNC): New macro.
5658 (GEN_LWSYNC): New macro.
5659 (gen_x_form): New function.
5660 (GEN_OR): New macro.
5661 (GEN_MR): New macro.
5662 (GEN_LWARX): New macro.
5663 (GEN_STWCX): New macro.
5664 (GEN_CMPW): New macro.
5665 (gen_md_form): New function.
5666 (GEN_RLDICL): New macro.
5667 (GEN_RLDICR): New macro.
5668 (gen_i_form): New function.
5669 (GEN_B): New macro.
5670 (GEN_BL): New macro.
5671 (gen_b_form): New function.
5672 (GEN_BNE): New macro.
5673 (GEN_LOAD): New macro.
5674 (GEN_STORE): New macro.
5675 (gen_limm): New function.
5676 (gen_atomic_xchg): New function.
5677 (gen_call): New function.
5678 (ppc_relocate_instruction): New function.
5679 (ppc_install_fast_tracepoint_jump_pad): New function.
5680 (ppc_get_min_fast_tracepoint_insn_len): New function.
5681 (ppc_get_ipa_tdesc_idx): New function.
5682 (the_low_target): Wire in the new functions.
5683 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
5684 tdescs.
5685 * linux-ppc-tdesc.h: New file.
5686
5687 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5688
5689 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5690 (alloc_jump_pad_buffer): New function.
5691 * linux-amd64-ipa.c: Add <sys/mman.h> include.
5692 (alloc_jump_pad_buffer): New function.
5693 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
5694 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5695 (alloc_jump_pad_buffer): New function.
5696 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
5697 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
5698 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
5699 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
5700
5701 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5702
5703 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
5704 * linux-amd64-ipa.c: Likewise.
5705 * linux-i386-ipa.c: Likewise.
5706 * linux-s390-ipa.c: Likewise.
5707 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
5708 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
5709 set_trace_state_variable_value_ptr.
5710 (struct ipa_sym_addresses): Likewise.
5711 (symbol_list): Likewise.
5712 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
5713 accessing gdb_collect directly.
5714 (gdb_collect_ptr_type): New typedef.
5715 (get_raw_reg_ptr_type): New typedef.
5716 (get_trace_state_variable_value_ptr_type): New typedef.
5717 (set_trace_state_variable_value_ptr_type): New typedef.
5718 (gdb_collect_ptr): New global.
5719 (get_raw_reg_ptr): New global.
5720 (get_trace_state_variable_value_ptr): New global.
5721 (set_trace_state_variable_value_ptr): New global.
5722 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
5723 accessing get_raw_reg directly.
5724 (get_get_tsv_func_addr): Likewise for
5725 get_trace_state_variable_value_ptr.
5726 (get_set_tsv_func_addr): Likewise for
5727 set_trace_state_variable_value_ptr.
5728 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
5729
5730 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
5731
5732 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
5733
5734 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5735
5736 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
5737 packets.
5738 (relocate_instruction): Remove own_buf.
5739 * server.c (own_buf): Make global.
5740 (handle_v_requests): Make global.
5741 * server.h (own_buf): New declaration.
5742 (handle_v_requests): New prototype.
5743
5744 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5745
5746 PR 18377
5747 * linux-s390-low.c (add_insns): New function.
5748 (s390_emit_prologue): New function.
5749 (s390_emit_epilogue): New function.
5750 (s390_emit_add): New function.
5751 (s390_emit_sub): New function.
5752 (s390_emit_mul): New function.
5753 (s390_emit_lsh): New function.
5754 (s390_emit_rsh_signed): New function.
5755 (s390_emit_rsh_unsigned): New function.
5756 (s390_emit_ext): New function.
5757 (s390_emit_log_not): New function.
5758 (s390_emit_bit_and): New function.
5759 (s390_emit_bit_or): New function.
5760 (s390_emit_bit_xor): New function.
5761 (s390_emit_bit_not): New function.
5762 (s390_emit_equal): New function.
5763 (s390_emit_less_signed): New function.
5764 (s390_emit_less_unsigned): New function.
5765 (s390_emit_ref): New function.
5766 (s390_emit_if_goto): New function.
5767 (s390_emit_goto): New function.
5768 (s390_write_goto_address): New function.
5769 (s390_emit_litpool): New function.
5770 (s390_emit_const): New function.
5771 (s390_emit_call): New function.
5772 (s390_emit_reg): New function.
5773 (s390_emit_pop): New function.
5774 (s390_emit_stack_flush): New function.
5775 (s390_emit_zero_ext): New function.
5776 (s390_emit_swap): New function.
5777 (s390_emit_stack_adjust): New function.
5778 (s390_emit_set_r2): New function.
5779 (s390_emit_int_call_1): New function.
5780 (s390_emit_void_call_2): New function.
5781 (s390_emit_eq_goto): New function.
5782 (s390_emit_ne_goto): New function.
5783 (s390_emit_lt_goto): New function.
5784 (s390_emit_le_goto): New function.
5785 (s390_emit_gt_goto): New function.
5786 (s390_emit_ge_goto): New function.
5787 (s390x_emit_prologue): New function.
5788 (s390x_emit_epilogue): New function.
5789 (s390x_emit_add): New function.
5790 (s390x_emit_sub): New function.
5791 (s390x_emit_mul): New function.
5792 (s390x_emit_lsh): New function.
5793 (s390x_emit_rsh_signed): New function.
5794 (s390x_emit_rsh_unsigned): New function.
5795 (s390x_emit_ext): New function.
5796 (s390x_emit_log_not): New function.
5797 (s390x_emit_bit_and): New function.
5798 (s390x_emit_bit_or): New function.
5799 (s390x_emit_bit_xor): New function.
5800 (s390x_emit_bit_not): New function.
5801 (s390x_emit_equal): New function.
5802 (s390x_emit_less_signed): New function.
5803 (s390x_emit_less_unsigned): New function.
5804 (s390x_emit_ref): New function.
5805 (s390x_emit_if_goto): New function.
5806 (s390x_emit_const): New function.
5807 (s390x_emit_call): New function.
5808 (s390x_emit_reg): New function.
5809 (s390x_emit_pop): New function.
5810 (s390x_emit_stack_flush): New function.
5811 (s390x_emit_zero_ext): New function.
5812 (s390x_emit_swap): New function.
5813 (s390x_emit_stack_adjust): New function.
5814 (s390x_emit_int_call_1): New function.
5815 (s390x_emit_void_call_2): New function.
5816 (s390x_emit_eq_goto): New function.
5817 (s390x_emit_ne_goto): New function.
5818 (s390x_emit_lt_goto): New function.
5819 (s390x_emit_le_goto): New function.
5820 (s390x_emit_gt_goto): New function.
5821 (s390x_emit_ge_goto): New function.
5822 (s390_emit_ops): New function.
5823 (struct linux_target_ops): Fill in emit_ops hook.
5824
5825 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5826
5827 PR 18377
5828 * Makefile.in: Add s390 IPA files.
5829 * configure.srv: Build IPA for s390.
5830 * linux-s390-ipa.c: New file.
5831 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
5832 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
5833 (tdesc_s390_linux32): Likewise.
5834 (init_registers_s390_linux32v1): Likewise.
5835 (tdesc_s390_linux32v1): Likewise.
5836 (init_registers_s390_linux32v2): Likewise.
5837 (tdesc_s390_linux32v2): Likewise.
5838 (init_registers_s390_linux64): Likewise.
5839 (tdesc_s390_linux64): Likewise.
5840 (init_registers_s390_linux64v1): Likewise.
5841 (tdesc_s390_linux64v1): Likewise.
5842 (init_registers_s390_linux64v2): Likewise.
5843 (tdesc_s390_linux64v2): Likewise.
5844 (init_registers_s390_te_linux64): Likewise.
5845 (tdesc_s390_te_linux64): Likewise.
5846 (init_registers_s390_vx_linux64): Likewise.
5847 (tdesc_s390_vx_linux64): Likewise.
5848 (init_registers_s390_tevx_linux64): Likewise.
5849 (tdesc_s390_tevx_linux64): Likewise.
5850 (init_registers_s390x_linux64): Likewise.
5851 (tdesc_s390x_linux64): Likewise.
5852 (init_registers_s390x_linux64v1): Likewise.
5853 (tdesc_s390x_linux64v1): Likewise.
5854 (init_registers_s390x_linux64v2): Likewise.
5855 (tdesc_s390x_linux64v2): Likewise.
5856 (init_registers_s390x_te_linux64): Likewise.
5857 (tdesc_s390x_te_linux64): Likewise.
5858 (init_registers_s390x_vx_linux64): Likewise.
5859 (tdesc_s390x_vx_linux64): Likewise.
5860 (init_registers_s390x_tevx_linux64): Likewise.
5861 (tdesc_s390x_tevx_linux64): Likewise.
5862 (have_hwcap_s390_vx): New static variable.
5863 (s390_arch_setup): Fill have_hwcap_s390_vx.
5864 (s390_get_thread_area): New function.
5865 (s390_ft_entry_gpr_esa): New const.
5866 (s390_ft_entry_gpr_zarch): New const.
5867 (s390_ft_entry_misc): New const.
5868 (s390_ft_entry_fr): New const.
5869 (s390_ft_entry_vr): New const.
5870 (s390_ft_main_31): New const.
5871 (s390_ft_main_64): New const.
5872 (s390_ft_exit_fr): New const.
5873 (s390_ft_exit_vr): New const.
5874 (s390_ft_exit_misc): New const.
5875 (s390_ft_exit_gpr_esa): New const.
5876 (s390_ft_exit_gpr_zarch): New const.
5877 (append_insns): New function.
5878 (s390_relocate_instruction): New function.
5879 (s390_install_fast_tracepoint_jump_pad): New function.
5880 (s390_get_min_fast_tracepoint_insn_len): New function.
5881 (s390_get_ipa_tdesc_idx): New function.
5882 (struct linux_target_ops): Wire in the above functions.
5883 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
5884 * linux-s390-tdesc.h: New file.
5885
5886 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5887
5888 * linux-s390-low.c (s390_supports_tracepoints): New function.
5889 (struct linux_target_ops): Fill supports_tracepoints hook.
5890
5891 2016-03-18 Yao Qi <yao.qi@linaro.org>
5892
5893 * linux-low.c (lwp_signal_can_be_delivered): New function.
5894 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
5895
5896 2016-03-18 Yao Qi <yao.qi@linaro.org>
5897
5898 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
5899 0 if signal is enqueued. Remove 'signal' from one debugging
5900 message. Move one debugging message to some lines below.
5901 Remove code setting 'signal' to 0.
5902
5903 2016-03-18 Yao Qi <yao.qi@linaro.org>
5904
5905 * linux-low.c (linux_low_filter_event): Remove redundant
5906 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
5907
5908 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5909
5910 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
5911 (struct linux_target_ops): Wire in the above.
5912
5913 2016-03-03 Yao Qi <yao.qi@linaro.org>
5914
5915 * linux-low.c: Update comments to start_step_over.
5916
5917 2016-03-03 Yao Qi <yao.qi@linaro.org>
5918
5919 PR server/19736
5920 * linux-low.c (handle_extended_wait): Set child suspended
5921 if event_lwp->bp_reinsert isn't zero.
5922
5923 2016-03-02 Yao Qi <yao.qi@linaro.org>
5924
5925 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
5926 enqueue_pending_signal.
5927
5928 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
5929
5930 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
5931 is actually loaded.
5932
5933 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5934
5935 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
5936 (s390_regmap_3264) [!__s390x__]: New global.
5937 (s390_collect_ptrace_register): Skip map entries containing -1.
5938 (s390_supply_ptrace_register): Ditto.
5939 (s390_fill_gprs_high): New function.
5940 (s390_store_gprs_high): New function.
5941 (s390_regsets): Add NT_S390_HIGH_GPRS.
5942 (s390_get_hwcap): Enable on 31-bit.
5943 (have_hwcap_s390_high_gprs): Enable on 31-bit.
5944 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
5945 Detect NT_S390_HIGH_GPRS.
5946 (s390_usrregs_info_3264): Enable on 31-bit.
5947 (s390_regs_info): Enable regs_info_3264 on 31-bit.
5948 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
5949
5950 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5951
5952 PR gdb/13808
5953 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
5954 * configure.srv: Ditto.
5955 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
5956 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
5957 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
5958 (init_registers_amd64_linux): Remove prototype.
5959 (tdesc_amd64_linux): Remove declaration.
5960 (get_ipa_tdesc): New function.
5961 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5962 initialize remaining tdescs.
5963 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
5964 (init_registers_i386_linux): Remove prototype.
5965 (tdesc_i386_linux): Remove declaration.
5966 (get_ipa_tdesc): New function.
5967 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5968 initialize remaining tdescs.
5969 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
5970 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
5971 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
5972 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
5973 (x86_get_ipa_tdesc_idx): New function.
5974 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
5975 * linux-x86-tdesc.h: New file.
5976 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
5977 (target_get_ipa_tdesc_idx): New macro.
5978 * tracepoint.c (ipa_tdesc_idx): New macro.
5979 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
5980 (symbol_list): Add ipa_tdesc_idx.
5981 (cmd_qtstart): Write ipa_tdesc_idx in the target.
5982 (ipa_tdesc): Remove.
5983 (ipa_tdesc_idx): New variable.
5984 (get_context_regcache): Use get_ipa_tdesc.
5985 (gdb_collect): Ditto.
5986 (gdb_probe): Ditto.
5987 * tracepoint.h (get_ipa_tdesc): New prototype.
5988 (ipa_tdesc): Remove.
5989
5990 2016-02-24 Pedro Alves <palves@redhat.com>
5991
5992 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
5993 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
5994 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
5995 Factor out common code between the USE_SIGTRAP_SIGINFO and
5996 !USE_SIGTRAP_SIGINFO blocks.
5997 (linux_low_filter_event): Call save_stop_reason instead of
5998 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
5999 Update comments.
6000 (linux_wait_1): Update comments.
6001
6002 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
6003
6004 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6005 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6006 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6007 ppc_insert_point, ppc_remove_point.
6008
6009 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6010
6011 * linux-s390-low.c (s390_supports_z_point_type): New function.
6012 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6013
6014 2016-02-16 Yao Qi <yao.qi@linaro.org>
6015
6016 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6017 PC. Get pc from regcache_read_pc.
6018
6019 2016-02-12 Yao Qi <yao.qi@linaro.org>
6020
6021 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6022 or linux_get_pc_32bit.
6023 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6024
6025 2016-02-12 Yao Qi <yao.qi@linaro.org>
6026
6027 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6028 arm_linux_get_next_pcs_fixup.
6029
6030 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6031
6032 * tracepoint.c (x_tracepoint_action_download): Change
6033 write_inferior_data_ptr to write_inferior_data_pointer.
6034 (cmd_qtstart): Likewise.
6035 (write_inferior_data_ptr): Remove.
6036 (download_agent_expr): Change write_inferior_data_ptr to
6037 write_inferior_data_pointer.
6038 (download_tracepoint_1): Likewise.
6039 (download_tracepoint): Likewise.
6040 (download_trace_state_variables): Likewise.
6041
6042 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
6043 Marcin Kościelnicki <koriakin@0x04.net>
6044
6045 * tracepoint.c (struct tracepoint_action_ops): Remove.
6046 (struct tracepoint_action): Remove ops.
6047 (m_tracepoint_action_download, r_tracepoint_action_download)
6048 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6049 size and offset accordingly.
6050 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6051 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6052 (tracepoint_action_send, tracepoint_action_download): New functions.
6053 Helpers for trace action handlers.
6054 (add_tracepoint_action): Remove setup actions ops.
6055 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6056
6057 2016-02-10 Yao Qi <yao.qi@linaro.org>
6058
6059 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6060
6061 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6062
6063 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6064 to AC_OUTPUT.
6065 * configure: Regenerate.
6066
6067 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6068
6069 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
6070 void * to gdb_byte *.
6071 * linux-low.c (siginfo_fixup): Likewise.
6072 (linux_xfer_siginfo): Likewise.
6073 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
6074 Likewise.
6075 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6076
6077 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6078
6079 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6080 to srv_tgtobj.
6081 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6082 to srv_tgtobj.
6083 * linux-x86-low.c [__x86_64__]: Include
6084 "nat/amd64-linux-siginfo.h".
6085 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6086 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6087 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6088 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6089 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6090 (cpt_si_fd, si_timerid, si_overrun): Move from
6091 nat/amd64-linux-siginfo.c.
6092 * Makefile.in (amd64-linux-siginfo.o:): New rule.
6093
6094 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6095
6096 * server.c (skip_to_semicolon): Remove.
6097 (process_point_options): Use strchrnul instead of
6098 skip_to_semicolon.
6099
6100 2016-01-26 Yao Qi <yao.qi@linaro.org>
6101
6102 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
6103 * linux-low.c (install_software_single_step_breakpoints): Don't
6104 call regcache_read_pc.
6105 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
6106 argument pc.
6107
6108 2016-01-26 Yao Qi <yao.qi@linaro.org>
6109
6110 * linux-low.c (install_software_single_step_breakpoints): Call
6111 regcache_read_pc instead of get_pc.
6112
6113 2016-01-26 Yao Qi <yao.qi@linaro.org>
6114
6115 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
6116 (unblock_async_io): Rename to ...
6117 (block_unblock_async_io): ... it. New function.
6118 (enable_async_io): Don't install SIGIO handler. Unblock it
6119 instead.
6120 (disable_async_io): Don't ignore SIGIO. Block it instead.
6121 (initialize_async_io): Install SIGIO handler. Don't call
6122 unblock_async_io.
6123
6124 2016-01-26 Yao Qi <yao.qi@linaro.org>
6125
6126 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6127 first character is '\003', call *the_target->request_interrupt.
6128
6129 2016-01-25 Yao Qi <yao.qi@linaro.org>
6130
6131 * remote-utils.c (new_thread_notify): Remove.
6132 (dead_thread_notify): Likewise.
6133 * remote-utils.h (new_thread_notify): Remove declaration.
6134 (dead_thread_notify): Likewise.
6135
6136 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6137
6138 * gdb.trace/pending.exp: Fix expected message on continue.
6139
6140 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6141
6142 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
6143 it works properly on big-endian machines where sizeof (CORE_ADDR)
6144 != sizeof (void *).
6145
6146 2016-01-21 Pedro Alves <palves@redhat.com>
6147
6148 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6149 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6150 * configure: Regenerate.
6151
6152 2016-01-21 Yao Qi <yao.qi@linaro.org>
6153
6154 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
6155 is_thumb and set it according to CPSR saved on the stack.
6156 (get_next_pcs_syscall_next_pc): Pass is_thumb to
6157 arm_sigreturn_next_pc.
6158
6159 2016-01-18 Yao Qi <yao.qi@linaro.org>
6160
6161 * linux-low.c (linux_set_pc_64bit): New function.
6162 (linux_get_pc_64bit): New function.
6163 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
6164 Declare.
6165 * linux-sparc-low.c (debug_threads): Remove declaration.
6166 (sparc_get_pc): Remove.
6167 (the_low_target): Use linux_get_pc_64bit instead of
6168 sparc_get_pc.
6169 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6170 (the_low_target): Use linux_get_pc_64bit and
6171 linux_set_pc_64bit.
6172
6173 2016-01-18 Yao Qi <yao.qi@linaro.org>
6174
6175 * linux-arm-low.c (debug_threads): Remove declaration.
6176 (arm_get_pc, arm_set_pc): Remove.
6177 (the_low_target): Use linux_get_pc_32bit and
6178 linux_set_pc_32bit.
6179 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6180 (the_low_target): Use linux_get_pc_32bit and
6181 linux_set_pc_32bit.
6182 * linux-cris-low.c (debug_threads): Remove declaration.
6183 (cris_get_pc, cris_set_pc,): Remove.
6184 (the_low_target): Use linux_get_pc_32bit and
6185 linux_set_pc_32bit.
6186 * linux-crisv32-low.c (debug_threads): Remove declaration.
6187 (cris_get_pc, cris_set_pc): Remove.
6188 (the_low_target): Use linux_get_pc_32bit and
6189 linux_set_pc_32bit.
6190 * linux-low.c: Include inttypes.h.
6191 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
6192 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
6193 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
6194 (the_low_target): Use linux_get_pc_32bit and
6195 linux_set_pc_32bit.
6196 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6197 (the_low_target): Use linux_get_pc_32bit and
6198 linux_set_pc_32bit.
6199 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6200 (the_low_target): Use linux_get_pc_32bit and
6201 linux_set_pc_32bit.
6202 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6203 (the_low_target): Use linux_get_pc_32bit and
6204 linux_set_pc_32bit.
6205 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6206 (the_low_target): Use linux_get_pc_32bit and
6207 linux_set_pc_32bit.
6208
6209 2016-01-18 Gary Benson <gbenson@redhat.com>
6210
6211 * configure.ac (AC_FUNC_FORK): New check.
6212 * config.in: Regenerate.
6213 * configure: Likewise.
6214
6215 2016-01-14 Yao Qi <yao.qi@linaro.org>
6216
6217 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
6218 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
6219 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
6220 arm_get_next_pcs_ctor.
6221
6222 2016-01-12 Josh Stone <jistone@redhat.com>
6223 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6224
6225 * inferiors.h: Include "gdb_vecs.h".
6226 (struct process_info): Add syscalls_to_catch.
6227 * inferiors.c (remove_process): Free syscalls_to_catch.
6228 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
6229 syscall_return stops.
6230 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
6231 * server.c (handle_general_set): Handle QCatchSyscalls.
6232 (handle_query): Report support for QCatchSyscalls.
6233 * target.h (struct target_ops): Add supports_catch_syscall.
6234 (target_supports_catch_syscall): New macro.
6235 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
6236 (struct lwp_info): Add syscall_state.
6237 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
6238 Maintain syscall_state and syscalls_to_catch across exec.
6239 (get_syscall_trapinfo): New function, proxy to the_low_target.
6240 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
6241 (linux_low_filter_event): Toggle syscall_state entry/return for
6242 syscall traps, and set it ignored for all others.
6243 (gdb_catching_syscalls_p): New function.
6244 (gdb_catch_this_syscall_p): New function.
6245 (linux_wait_1): Handle SYSCALL_SIGTRAP.
6246 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
6247 (linux_supports_catch_syscall): New function.
6248 (linux_target_ops): Install it.
6249 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
6250 (the_low_target): Install it.
6251
6252 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6253
6254 * acinclude.m4: Include new ../warning.m4 file.
6255 * configure: Regenerated.
6256 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6257
6258 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6259
6260 * ax.c (is_goto_target): Mark static.
6261 * linux-low.c (register_addr): Likewise.
6262 (linux_fetch_registers, linux_store_registers): Likewise.
6263 * mem-break.c (any_persistent_commands): Fix old prototype.
6264 (add_commands_to_breakpoint): Mark static.
6265 * regcache.c (find_register_by_name): Delete unused func.
6266 * remote-utils.c (hex_or_minus_one): Mark static.
6267 * server.c (monitor_show_help): Mark static.
6268 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
6269 handle_v_requests): Likewise.
6270
6271 2016-01-12 Pedro Alves <palves@redhat.com>
6272
6273 Remove use of the registered trademark symbol throughout.
6274
6275 2016-01-08 Yao Qi <yao.qi@linaro.org>
6276
6277 * remote-utils.c (getpkt): If c is '\003', call target hook
6278 request_interrupt.
6279
6280 2016-01-06 Yao Qi <yao.qi@linaro.org>
6281
6282 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
6283 linux-aarch32-low.c.
6284 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6285 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6286 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6287 (thumb2_breakpoint): Declare.
6288 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
6289 linux-aarch32-low.h.
6290 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6291 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6292 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6293
6294 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6295
6296 * gdbreplay.c (gdbreplay_version): Change copyright year in
6297 version message.
6298 * server.c (gdbserver_version): Likewise.
6299
6300 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6301
6302 * server.c (crc32_table): Delete.
6303 (crc32): Use libiberty's xcrc32 function.
6304
6305 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6306
6307 * lynx-low.c (lynx_delete_thread_callback): New function.
6308 (lynx_mourn): Properly delete our process and all of its
6309 threads. Remove call to clear_inferiors.
6310
6311 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6312
6313 * target.c (thread_search_callback): Add check that
6314 the thread_stopped target callback is not NULL before
6315 calling it.
6316
6317 2015-12-21 Yao Qi <yao.qi@linaro.org>
6318
6319 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6320 arm breakpoint.
6321
6322 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6323
6324 * server.c (handle_query): Call target_supports_software_single_step.
6325
6326 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6327
6328 * linux-low.c (single_step): New function.
6329 (linux_resume_one_lwp_throw): Call single_step.
6330 (start_step_over): Likewise.
6331
6332 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6333
6334 * Makefile.in (SFILES): Append arch/arm-linux.c,
6335 arch/arm-get-next-pcs.c.
6336 (arm-linux.o): New rule.
6337 (arm-get-next-pcs.o): New rule.
6338 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
6339 arm-linux.o.
6340 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
6341 to linux-aarch32-low.c.
6342 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6343 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6344 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6345 (thumb2_breakpoint_len): Likewise.
6346 (arm_is_thumb_mode): Make non-static.
6347 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
6348 from linux-aarch32-low.c.
6349 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6350 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6351 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6352 (thumb2_breakpoint_len): Likewise.
6353 (arm_is_thumb_mode): New declaration.
6354 * linux-arm-low.c: Include arch/arm-linux.h
6355 aarch/arm-get-next-pcs.h, sys/syscall.h.
6356 (get_next_pcs_ops): New struct.
6357 (get_next_pcs_addr_bits_remove): New function.
6358 (get_next_pcs_is_thumb): New function.
6359 (get_next_pcs_read_memory_unsigned_integer): Likewise.
6360 (arm_sigreturn_next_pc): Likewise.
6361 (get_next_pcs_syscall_next_pc): Likewise.
6362 (arm_gdbserver_get_next_pcs): Likewise.
6363 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
6364 Initialize.
6365 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6366 * server.h: Include gdb_vecs.h.
6367
6368 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6369
6370 * Makefile.in (SFILES): Append common/common-regcache.c.
6371 (OBS): Append common-regcache.o.
6372 (common-regcache.o): New rule.
6373 * regcache.c (init_register_cache): Initialize cache to
6374 REG_UNAVAILABLE.
6375 (regcache_raw_read_unsigned): New function.
6376 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6377 register_status enum.
6378
6379 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6380
6381 * linux-aarch64-low.c (the_low_targets): Rename
6382 breakpoint_reinsert_addr to get_next_pcs.
6383 * linux-arm-low.c (the_low_targets): Likewise.
6384 * linux-bfin-low.c (the_low_targets): Likewise.
6385 * linux-cris-low.c (the_low_targets): Likewise.
6386 * linux-crisv32-low.c (the_low_targets): Likewise.
6387 * linux-low.c (can_software_single_step): Likewise.
6388 (install_software_single_step_breakpoints): New function.
6389 (start_step_over): Use install_software_single_step_breakpoints.
6390 * linux-low.h: New CORE_ADDR vector.
6391 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
6392 get_next_pcs.
6393 * linux-mips-low.c (the_low_targets): Likewise.
6394 * linux-nios2-low.c (the_low_targets): Likewise.
6395 * linux-sparc-low.c (the_low_targets): Likewise.
6396
6397 2015-12-17 Pedro Alves <palves@redhat.com>
6398
6399 * linux-low.c (linux_kill_one_lwp): Remove references to
6400 LinuxThreads.
6401 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6402 to 'kill'.
6403 (linux_init_signals): Delete.
6404 (initialize_low): Adjust.
6405 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6406
6407 2015-12-16 Pedro Alves <palves@redhat.com>
6408
6409 * configure.ac (compiler warning flags): When testing a
6410 -Wno-foo option, check whether -Wfoo works instead.
6411 * configure: Regenerate.
6412
6413 2015-12-11 Don Breazeal <donb@codesourcery.com>
6414
6415 * server.c (process_serial_event): Don't exit from gdbserver
6416 in remote mode if there are still active inferiors.
6417
6418 2015-12-11 Yao Qi <yao.qi@linaro.org>
6419
6420 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6421 arm_breakpoint_at if the process is 32-bit.
6422
6423 2015-12-11 Yao Qi <yao.qi@linaro.org>
6424
6425 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6426 arm breakpoint.
6427
6428 2015-12-07 Yao Qi <yao.qi@linaro.org>
6429
6430 * configure.srv: Append arm.o to srv_tgtobj for
6431 aarch64*-*-linux* target.
6432 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6433 from linux-arm-low.c.
6434 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6435 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6436 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6437 (thumb2_breakpoint_len): Likewise.
6438 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6439 (arm_breakpoint_kinds): Likewise.
6440 (arm_breakpoint_kind_from_pc): Likewise.
6441 (arm_sw_breakpoint_from_kind): Likewise.
6442 (arm_breakpoint_kind_from_current_state): Likewise.
6443 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6444 (arm_sw_breakpoint_from_kind): Declare.
6445 (arm_breakpoint_kind_from_current_state): Declare.
6446 (arm_breakpoint_at): Declare.
6447 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6448 arm_sw_breakpoint_from_kind if process is 32-bit.
6449 (aarch64_breakpoint_kind_from_pc): New function.
6450 (aarch64_breakpoint_kind_from_current_state): New function.
6451 (the_low_target): Initialize fields breakpoint_kind_from_pc
6452 and breakpoint_kind_from_current_state.
6453 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6454 linux-aarch32-low.c.
6455 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6456 (arm_breakpoint, arm_breakpoint_len): Likewise.
6457 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6458 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6459 (arm_is_thumb_mode): Likewise.
6460 (arm_breakpoint_at): Likewise.
6461 (arm_breakpoint_kind_from_pc): Likewise.
6462 (arm_sw_breakpoint_from_kind): Likewise.
6463 (arm_breakpoint_kind_from_current_state): Likewise.
6464
6465 Revert:
6466 2015-08-04 Yao Qi <yao.qi@linaro.org>
6467
6468 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6469 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6470 * server.c (extended_protocol): Remove "static".
6471 * server.h (extended_protocol): Declare it.
6472
6473 2015-12-04 Josh Stone <jistone@redhat.com>
6474
6475 * target.h (struct target_ops) <arch_setup>: Rename to ...
6476 (struct target_ops) <post_create_inferior>: ... this.
6477 (target_arch_setup): Rename to ...
6478 (target_post_create_inferior): ... this, calling post_create_inferior.
6479 * server.c (start_inferior): Update target_arch_setup calls to
6480 target_post_create_inferior.
6481 * linux-low.c (linux_low_ptrace_options): Forward declare.
6482 (linux_arch_setup): Update its comment for general use.
6483 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6484 (struct linux_target_ops): Use linux_post_create_inferior.
6485 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6486 to post_create_inferior.
6487 * nto-low.c (struct nto_target_ops): Likewise.
6488 * spu-low.c (struct spu_target_ops): Likewise.
6489 * win32-low.c (struct win32_target_ops): Likewise.
6490
6491 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6492
6493 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6494
6495 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6496
6497 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6498 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6499 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6500 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6501 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6502 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6503 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6504 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6505 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6506 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6507 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
6508 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6509
6510 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6511
6512 * linux-low.c (linux_look_up_symbols): Don't call
6513 linux_supports_traceclone.
6514 * linux-low.h (thread_db_init): Remove use_events argument.
6515 * thread-db.c (thread_db_use_event): Remove global variable.
6516 (struct thread_db) <td_thr_event_enable_p>: Remove field.
6517 (struct thread_db) <td_create_bp>: Remove field.
6518 (thread_db_create_event): Remove function.
6519 (thread_db_enable_reporting): Likewise.
6520 (find_one_thread): Don't check for thread_db_use_events.
6521 (attach_thread): Likewise.
6522 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6523 (try_thread_db_load_1): Don't check for thread_db_use_events.
6524 (thread_db_init): Remove use_events argument and thread events
6525 handling.
6526 (remove_thread_event_breakpoints): Remove function.
6527 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6528
6529 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6530
6531 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6532 New function.
6533 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6534 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6535 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6536 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6537 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6538 Initialize.
6539 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6540 New function.
6541 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6542 * linux-low.c (can_hardware_single_step): Use
6543 supports_hardware_single_step.
6544 (can_software_single_step): New function.
6545 (start_step_over): Call can_software_single_step.
6546 (linux_supports_hardware_single_step): New function.
6547 (struct target_ops) <supports_software_single_step>: Initialize.
6548 * linux-low.h (struct linux_target_ops)
6549 <supports_hardware_single_step>: Initialize.
6550 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6551 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6552 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6553 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6554 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6555 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6556 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6557 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6558 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6559 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6560 Initialize.
6561 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6562 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6563 Initialize.
6564 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6565 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6566 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6567 New function.
6568 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6569 * target.h (struct target_ops): <supports_software_single_step>:
6570 New field.
6571 (target_supports_software_single_step): New macro.
6572
6573 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6574
6575 * linux-low.c (linux_wait_1): Fix pc advance condition.
6576 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6577 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6578
6579 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6580
6581 * linux-arm-low.c (arm_is_thumb_mode): New function.
6582 (arm_breakpoint_at): Use arm_is_thumb_mode.
6583 (arm_breakpoint_kind_from_current_state): New function.
6584 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
6585 Initialize.
6586 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
6587 (linux_breakpoint_kind_from_current_state): New function.
6588 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
6589 * linux-low.h (struct linux_target_ops)
6590 <breakpoint_kind_from_current_state>: New field.
6591 * target.h (struct target_ops): Likewise.
6592 (target_breakpoint_kind_from_current_state): New macro.
6593
6594 2015-11-30 Pedro Alves <palves@redhat.com>
6595
6596 * linux-low.c (linux_resume): Wake up the event loop before
6597 returning.
6598
6599 2015-11-30 Pedro Alves <palves@redhat.com>
6600
6601 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6602 check.
6603 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
6604 to -1.
6605 * target.c (struct thread_search): New structure.
6606 (thread_search_callback): New function.
6607 (prev_general_thread): New global.
6608 (prepare_to_access_memory, done_accessing_memory): New functions.
6609 * target.h (prepare_to_access_memory, done_accessing_memory):
6610 Replace macros with function declarations.
6611
6612 2015-11-30 Pedro Alves <palves@redhat.com>
6613
6614 PR 14618
6615 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
6616 report TARGET_WAITKIND_NO_RESUMED.
6617 * remote-utils.c (prepare_resume_reply): Handle
6618 TARGET_WAITKIND_NO_RESUMED.
6619 * server.c (report_no_resumed): New global.
6620 (handle_query) <qSupported>: Handle "no-resumed+". Report
6621 "no-resumed+" support.
6622 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
6623 return error if the client doesn't support no-resumed events.
6624 (push_stop_notification): New function.
6625 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
6626 events if the client supports them.
6627
6628 2015-11-30 Pedro Alves <palves@redhat.com>
6629
6630 * linux-low.c (thread_still_has_status_pending_p): Don't check
6631 vCont;t here.
6632 (lwp_resumed): New function.
6633 (status_pending_p_callback): Return early if the LWP is not
6634 supposed to be resumed.
6635
6636 2015-11-30 Pedro Alves <palves@redhat.com>
6637
6638 * linux-low.c (handle_extended_wait): Assert that the LWP's
6639 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
6640 thread create events, leave the new child's status pending.
6641 (linux_low_filter_event): If GDB wants to hear about thread exit
6642 events, leave the LWP marked dead and don't delete it.
6643 (linux_wait_for_event_filtered): Don't check for thread exit.
6644 (filter_exit_event): New function.
6645 (linux_wait_1): Use it, when returning an exit event.
6646 (linux_resume_one_lwp_throw): Assert that the LWP's
6647 waitstatus is TARGET_WAITKIND_IGNORE.
6648 * remote-utils.c (prepare_resume_reply): Handle
6649 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
6650 * server.c (report_thread_events): New global.
6651 (handle_general_set): Handle QThreadEvents.
6652 (handle_query) <qSupported>: Handle and report QThreadEvents+;
6653 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
6654 TARGET_WAITKIND_THREAD_EXITED.
6655 * server.h (report_thread_events): Declare.
6656
6657 2015-11-30 Pedro Alves <palves@redhat.com>
6658
6659 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
6660 the thread's last_resume_kind was resume_stop.
6661
6662 2015-11-30 Pedro Alves <palves@redhat.com>
6663
6664 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
6665 before returning.
6666
6667 2015-11-30 Pedro Alves <palves@redhat.com>
6668
6669 * server.c (handle_v_requests): Handle vCtrlC.
6670
6671 2015-11-30 Pedro Alves <palves@redhat.com>
6672
6673 * gdbthread.h (find_any_thread_of_pid): Declare.
6674 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
6675 functions.
6676 * server.c (handle_query): If current_thread is NULL, look for
6677 another thread of the selected process.
6678
6679 2015-11-26 Daniel Colascione <dancol@dancol.org>
6680 Simon Marchi <simon.marchi@ericsson.com>
6681
6682 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
6683 * server.c (handle_qxfer_threads_worker): Refactor to include thread
6684 name in reply.
6685 * target.h (struct target_ops) <thread_name>: New field.
6686 (target_thread_name): New macro.
6687
6688 2015-11-23 Joel Brobecker <brobecker@adacore.com>
6689
6690 * regcache.h (regcache_invalidate_pid): Add declaration.
6691 * regcache.c (regcache_invalidate_pid): New function, extracted
6692 from regcache_invalidate.
6693 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
6694 Add trivial documentation comment.
6695 * lynx-low.c: Use regcache_invalidate_pid instead of
6696 regcache_invalidate.
6697
6698 2015-11-23 Joel Brobecker <brobecker@adacore.com>
6699
6700 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
6701 and Elf64_auxv_t if the target is Android.
6702
6703 2015-11-22 Doug Evans <xdje42@gmail.com>
6704
6705 * target.h: #include <sys/types.h>.
6706
6707 2015-11-19 Pedro Alves <palves@redhat.com>
6708
6709 * linux-low.c (linux_process_qsupported): Change prototype.
6710 Adjust.
6711 * linux-low.h (struct linux_target_ops) <process_qsupported>:
6712 Change prototype.
6713 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
6714 and adjust to loop over all features.
6715 * server.c (handle_query) <qSupported>: Adjust to call
6716 target_process_qsupported once, passing it a vector of unprocessed
6717 features.
6718 * target.h (struct target_ops) <process_qsupported>: Change
6719 prototype.
6720 (target_process_qsupported): Adjust.
6721
6722 2015-11-19 Pedro Alves <palves@redhat.com>
6723
6724 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
6725 mode.
6726 * configure: Regenerate.
6727
6728 2015-11-19 Pedro Alves <palves@redhat.com>
6729
6730 * configure: Regenerate.
6731
6732 2015-11-19 Yao Qi <yao.qi@linaro.org>
6733
6734 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
6735 type to uint32_t.
6736
6737 2015-11-19 Yao Qi <yao.qi@linaro.org>
6738
6739 * linux-aarch64-low.c (enum aarch64_operand_type): New.
6740 (struct aarch64_operand): Move enum out.
6741
6742 2015-11-19 Yao Qi <yao.qi@linaro.org>
6743
6744 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
6745 struct user_fpsimd_state *.
6746 (aarch64_store_fpregset): Likewise.
6747
6748 2015-11-19 Yao Qi <yao.qi@linaro.org>
6749
6750 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
6751 struct user_pt_regs *.
6752 (aarch64_store_gregset): Likewise.
6753
6754 2015-11-18 Pedro Alves <palves@redhat.com>
6755
6756 * Makefile.in (all_object_files): Add $IPA_OBJS.
6757
6758 2015-11-17 Pedro Alves <palves@redhat.com>
6759
6760 * win32-low.c (win32_resume): Use gdb_signal_from_host,
6761 GDB_SIGNAL_0 and gdb_signal_to_string.
6762
6763 2015-11-17 Pedro Alves <palves@redhat.com>
6764
6765 * win32-low.c (handle_output_debug_string): Remove parameter.
6766 (win32_kill): Remove our_status local and adjust call to
6767 handle_output_debug_string.
6768 (get_child_debug_event): Adjust call to
6769 handle_output_debug_string.
6770
6771 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6772
6773 * linux-mips-low.c (mips_fill_gregset): Add cast.
6774 (mips_store_gregset): Likewise.
6775 (mips_fill_fpregset): Likewise.
6776 (mips_store_fpregset): Likewise.
6777
6778 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6779
6780 * linux-mips-low.c (mips_add_watchpoint): Rename private to
6781 priv.
6782
6783 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6784
6785 * linux-mips-low.c (mips_linux_new_thread): Change type of
6786 watch_type to enum target_hw_bp_type.
6787
6788 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6789
6790 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
6791 Change return type to arm_hwbp_type.
6792
6793 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6794
6795 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
6796 (arm_store_gregset): Likewise.
6797 * linux-arm-low.c (arm_get_hwcap): Likewise.
6798 (arm_read_description): Likewise.
6799
6800 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6801
6802 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
6803
6804 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6805
6806 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
6807 (ppc_fill_vsxregset): Likewise.
6808 (ppc_store_vsxregset): Likewise.
6809 (ppc_fill_vrregset): Likewise.
6810 (ppc_store_vrregset): Likewise.
6811 (ppc_fill_evrregset): Likewise.
6812 (ppc_store_evrregset): Likewise.
6813
6814 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6815
6816 * linux-ppc-low.c (ppc_usrregs_info): Remove
6817 forward-declaration.
6818 (ppc_arch_setup): Move lower in file.
6819
6820 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
6821
6822 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
6823 (ps_pdwrite): Likewise.
6824
6825 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
6826
6827 * linux-arm-low.c (arm_new_thread): Move pointer dereference
6828 to after assert checks.
6829
6830 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
6831
6832 * proc-service.c (ps_pdread): Add/adjust casts.
6833 (ps_pdwrite): Add/adjust casts.
6834
6835 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6836
6837 * server.c (handle_search_memory_1): Cast return value of
6838 memmem.
6839
6840 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6841
6842 * server.c (write_qxfer_response): Change type of data to
6843 gdb_byte *.
6844
6845 2015-10-29 Pedro Alves <palves@redhat.com>
6846
6847 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
6848
6849 2015-10-29 Pedro Alves <palves@redhat.com>
6850
6851 * tracepoint.c (clear_installed_tracepoints): Add casts.
6852
6853 2015-10-29 Pedro Alves <palves@redhat.com>
6854
6855 * server.c (handle_v_cont, process_serial_event): Add enum
6856 gdb_signal casts to signal parsing code.
6857
6858 2015-10-29 Pedro Alves <palves@redhat.com>
6859
6860 * linux-low.h (NULL_REGSET): Define.
6861 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6862 * linux-arm-low.c (arm_regsets): Likewise.
6863 * linux-crisv32-low.c (cris_regsets): Likewise.
6864 * linux-m68k-low.c (m68k_regsets): Likewise.
6865 * linux-mips-low.c (mips_regsets): Likewise.
6866 * linux-nios2-low.c (nios2_regsets): Likewise.
6867 * linux-ppc-low.c (ppc_regsets): Likewise.
6868 * linux-s390-low.c (s390_regsets): Likewise.
6869 * linux-sh-low.c (sh_regsets): Likewise.
6870 * linux-sparc-low.c (sparc_regsets): Likewise.
6871 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6872 * linux-tile-low.c (tile_regsets): Likewise.
6873 * linux-x86-low.c (x86_regsets): Likewise.
6874 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6875
6876 2015-10-29 Pedro Alves <palves@redhat.com>
6877
6878 * linux-low.h (NULL_REGSET): Define.
6879 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6880 * linux-arm-low.c (arm_regsets): Likewise.
6881 * linux-crisv32-low.c (cris_regsets): Likewise.
6882 * linux-m68k-low.c (m68k_regsets): Likewise.
6883 * linux-mips-low.c (mips_regsets): Likewise.
6884 * linux-nios2-low.c (nios2_regsets): Likewise.
6885 * linux-ppc-low.c (ppc_regsets): Likewise.
6886 * linux-s390-low.c (s390_regsets): Likewise.
6887 * linux-sh-low.c (sh_regsets): Likewise.
6888 * linux-sparc-low.c (sparc_regsets): Likewise.
6889 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6890 * linux-tile-low.c (tile_regsets): Likewise.
6891 * linux-x86-low.c (x86_regsets): Likewise.
6892 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6893
6894 2015-10-26 Doug Evans <dje@google.com>
6895
6896 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
6897
6898 2015-10-26 Doug Evans <dje@google.com>
6899
6900 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
6901
6902 2015-10-26 Doug Evans <dje@google.com>
6903
6904 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
6905 for debug_printf.
6906 (attach_thread, find_new_threads_callback): Ditto.
6907
6908 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6909
6910 * mem-break.h (set_breakpoint_data): Remove.
6911
6912 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6913
6914 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
6915 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6916 (initialize_low): Remove set_breakpoint_data call.
6917 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
6918 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
6919 (initialize_low): Remove set_breakpoint_data call.
6920 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
6921 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6922 (initialize_low): Remove set_breakpoint_data call.
6923
6924 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6925
6926 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
6927 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
6928 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
6929 * target.h (target_breakpoint_kind_from_pc): New macro.
6930
6931 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
6932
6933 * linux-low.c (default_breakpoint_kind_from_pc): New function.
6934 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
6935 the default breakpoint kind.
6936
6937 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6938
6939 * linux-arm-low.c (arm_supports_z_point_type): Add software
6940 breakpoint support.
6941
6942 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6943
6944 * linux-arm-low.c: Refactor breakpoint definitions.
6945 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
6946 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
6947
6948 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6949
6950 * Makefile.in: Add arm.c/o.
6951 * configure.srv: Likewise.
6952 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
6953 (arm_breakpoint_kind_from_pc): New function.
6954 (arm_sw_breakpoint_from_kind): Return proper kind.
6955 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
6956
6957 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6958
6959 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
6960 removal.
6961 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
6962 (struct raw_breakpoint) <size>: Remove.
6963 (struct raw_breakpoint) <kind>: Add.
6964 (bp_size): New function.
6965 (bp_opcode): Likewise.
6966 (find_raw_breakpoint_at): Adjust for kind.
6967 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
6968 (remove_memory_breakpoint): Adjust for kind call bp_size.
6969 (set_raw_breakpoint_at): Adjust for kind.
6970 (set_breakpoint): Likewise.
6971 (set_breakpoint_at): Call breakpoint_kind_from_pc.
6972 (delete_raw_breakpoint): Adjust for kind.
6973 (delete_breakpoint): Likewise.
6974 (find_gdb_breakpoint): Likewise.
6975 (set_gdb_breakpoint_1): Likewise.
6976 (set_gdb_breakpoint): Likewise.
6977 (delete_gdb_breakpoint_1): Likewise.
6978 (delete_gdb_breakpoint): Likewise.
6979 (uninsert_raw_breakpoint): Likewise.
6980 (reinsert_raw_breakpoint): Likewise.
6981 (set_breakpoint_data): Remove.
6982 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
6983 (check_mem_read): Adjust for kind call bp_size.
6984 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
6985 (clone_one_breakpoint): Adjust for kind.
6986 * mem-break.h (set_gdb_breakpoint): Likewise.
6987 (delete_gdb_breakpoint): Likewise.
6988 * server.c (process_serial_event): Likewise.
6989
6990 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6991
6992 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
6993 (struct linux_target_ops) <breakpoint>: Remove.
6994 (struct linux_target_ops) <breakpoint_len>: Remove.
6995 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6996 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6997 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
6998 (arm_sw_breakpoint_from_kind): New function.
6999 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7000 (struct linux_target_ops) <breakpoint>: Remove.
7001 (struct linux_target_ops) <breakpoint_len>: Remove.
7002 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7003 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7004 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7005 (struct linux_target_ops) <breakpoint>: Remove.
7006 (struct linux_target_ops) <breakpoint_len>: Remove.
7007 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7008 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7009 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7010 (struct linux_target_ops) <breakpoint>: Remove.
7011 (struct linux_target_ops) <breakpoint_len>: Remove.
7012 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7013 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7014 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7015 and sw_breakpoint_from_kind to increment the pc.
7016 (linux_breakpoint_kind_from_pc): New function.
7017 (linux_sw_breakpoint_from_kind): New function.
7018 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7019 (initialize_low): Call breakpoint_kind_from_pc and
7020 sw_breakpoint_from_kind to replace breakpoint_data/len.
7021 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7022 New field.
7023 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7024 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
7025 (struct linux_target_ops) <breakpoint>: Remove.
7026 (struct linux_target_ops) <breakpoint_len>: Remove.
7027 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7028 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7029 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7030 (struct linux_target_ops) <breakpoint>: Remove.
7031 (struct linux_target_ops) <breakpoint_len>: Remove.
7032 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7033 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7034 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
7035 (struct linux_target_ops) <breakpoint>: Remove.
7036 (struct linux_target_ops) <breakpoint_len>: Remove.
7037 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7038 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7039 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7040 (struct linux_target_ops) <breakpoint>: Remove.
7041 (struct linux_target_ops) <breakpoint_len>: Remove.
7042 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7043 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7044 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7045 (struct linux_target_ops) <breakpoint>: Remove.
7046 (struct linux_target_ops) <breakpoint_len>: Remove.
7047 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7048 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7049 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7050 (struct linux_target_ops) <breakpoint>: Remove.
7051 (struct linux_target_ops) <breakpoint_len>: Remove.
7052 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7053 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7054 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7055 (struct linux_target_ops) <breakpoint>: Remove.
7056 (struct linux_target_ops) <breakpoint_len>: Remove.
7057 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7058 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7059 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
7060 (struct linux_target_ops) <breakpoint>: Remove.
7061 (struct linux_target_ops) <breakpoint_len>: Remove.
7062 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7063 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7064 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
7065 (struct linux_target_ops) <breakpoint>: Remove.
7066 (struct linux_target_ops) <breakpoint_len>: Remove.
7067 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7068 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7069 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
7070 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
7071 (struct linux_target_ops) <breakpoint>: Remove.
7072 (struct linux_target_ops) <breakpoint_len>: Remove.
7073 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7074 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7075 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
7076 (struct linux_target_ops) <breakpoint>: Remove.
7077 (struct linux_target_ops) <breakpoint_len>: Remove.
7078 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7079 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7080
7081 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7082
7083 * linux-cris-low.c (cris_get_pc): Remove void arg.
7084
7085 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7086
7087 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7088 variable name.
7089
7090 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7091
7092 * inferiors.c (thread_pid_matches_callback): New function.
7093 (find_thread_process): New function.
7094 (remove_thread): Reset current_thread.
7095 (remove_process): Assert threads have been removed first.
7096
7097 2015-10-15 Yao Qi <yao.qi@linaro.org>
7098
7099 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7100 if it is 3.
7101 (aarch64_remove_point): Likewise.
7102 * regcache.c (regcache_register_size): New function.
7103
7104 2015-10-12 Yao Qi <yao.qi@linaro.org>
7105
7106 * linux-aarch64-low.c: Update all callers as emit_load_store
7107 is renamed to aarch64_emit_load_store.
7108
7109 2015-10-12 Yao Qi <yao.qi@linaro.org>
7110
7111 * linux-aarch64-low.c: Update all callers of function renaming
7112 from emit_insn to aarch64_emit_insn.
7113
7114 2015-10-12 Yao Qi <yao.qi@linaro.org>
7115
7116 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7117 arch/aarch64-insn.h.
7118 (struct aarch64_memory_operand): Likewise.
7119 (ENCODE): Likewise.
7120 (emit_insn): Move to arch/aarch64-insn.c.
7121 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
7122 (emit_load_store): Move to arch/aarch64-insn.c.
7123 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
7124 (can_encode_int32): Remove.
7125
7126 2015-10-12 Yao Qi <yao.qi@linaro.org>
7127
7128 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
7129 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
7130 (aarch64_relocate_instruction): Likewise.
7131 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
7132 (struct aarch64_insn_visitor): Likewise.
7133
7134 2015-10-12 Yao Qi <yao.qi@linaro.org>
7135
7136 * linux-aarch64-low.c (struct aarch64_insn_data): New.
7137 (struct aarch64_insn_visitor): New.
7138 (struct aarch64_insn_relocation_data): New.
7139 (aarch64_ftrace_insn_reloc_b): New function.
7140 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7141 (aarch64_ftrace_insn_reloc_cb): Likewise.
7142 (aarch64_ftrace_insn_reloc_tb): Likewise.
7143 (aarch64_ftrace_insn_reloc_adr): Likewise.
7144 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
7145 (aarch64_ftrace_insn_reloc_others): Likewise.
7146 (visitor): New.
7147 (aarch64_relocate_instruction): Use visitor.
7148
7149 2015-10-12 Yao Qi <yao.qi@linaro.org>
7150
7151 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
7152 int. Add argument buf.
7153 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
7154 aarch64_relocate_instruction.
7155
7156 2015-10-12 Yao Qi <yao.qi@linaro.org>
7157
7158 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7159 argument insn. Remove local variable insn. Don't call
7160 target_read_uint32.
7161 (aarch64_install_fast_tracepoint_jump_pad): Call
7162 target_read_uint32.
7163
7164 2015-09-30 Yao Qi <yao.qi@linaro.org>
7165
7166 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7167 (emit_load_store_pair): Likewise.
7168
7169 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7170
7171 * dll.c (match_dll): Add cast(s).
7172 (unloaded_dll): Likewise.
7173 * linux-low.c (second_thread_of_pid_p): Likewise.
7174 (delete_lwp_callback): Likewise.
7175 (count_events_callback): Likewise.
7176 (select_event_lwp_callback): Likewise.
7177 (linux_set_resume_request): Likewise.
7178 * server.c (accumulate_file_name_length): Likewise.
7179 (emit_dll_description): Likewise.
7180 (handle_qxfer_threads_worker): Likewise.
7181 (visit_actioned_threads): Likewise.
7182 * thread-db.c (any_thread_of): Likewise.
7183 * tracepoint.c (same_process_p): Likewise.
7184 (match_blocktype): Likewise.
7185 (build_traceframe_info_xml): Likewise.
7186
7187 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7188
7189 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7190 assignment.
7191 (gdb_unparse_agent_expr): Likewise.
7192 * hostio.c (require_data): Likewise.
7193 (handle_pread): Likewise.
7194 * linux-low.c (disable_regset): Likewise.
7195 (fetch_register): Likewise.
7196 (store_register): Likewise.
7197 (get_dynamic): Likewise.
7198 (linux_qxfer_libraries_svr4): Likewise.
7199 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
7200 (set_fast_tracepoint_jump): Likewise.
7201 (uninsert_fast_tracepoint_jumps_at): Likewise.
7202 (reinsert_fast_tracepoint_jumps_at): Likewise.
7203 (validate_inserted_breakpoint): Likewise.
7204 (clone_agent_expr): Likewise.
7205 * regcache.c (init_register_cache): Likewise.
7206 * remote-utils.c (putpkt_binary_1): Likewise.
7207 (decode_M_packet): Likewise.
7208 (decode_X_packet): Likewise.
7209 (look_up_one_symbol): Likewise.
7210 (relocate_instruction): Likewise.
7211 (monitor_output): Likewise.
7212 * server.c (handle_search_memory): Likewise.
7213 (handle_qxfer_exec_file): Likewise.
7214 (handle_qxfer_libraries): Likewise.
7215 (handle_qxfer): Likewise.
7216 (handle_query): Likewise.
7217 (handle_v_cont): Likewise.
7218 (handle_v_run): Likewise.
7219 (captured_main): Likewise.
7220 * target.c (write_inferior_memory): Likewise.
7221 * thread-db.c (try_thread_db_load_from_dir): Likewise.
7222 * tracepoint.c (init_trace_buffer): Likewise.
7223 (add_tracepoint_action): Likewise.
7224 (add_traceframe): Likewise.
7225 (add_traceframe_block): Likewise.
7226 (cmd_qtdpsrc): Likewise.
7227 (cmd_qtdv): Likewise.
7228 (cmd_qtstatus): Likewise.
7229 (response_source): Likewise.
7230 (response_tsv): Likewise.
7231 (cmd_qtnotes): Likewise.
7232 (gdb_collect): Likewise.
7233 (initialize_tracepoint): Likewise.
7234
7235 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7236
7237 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
7238 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
7239 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
7240 <NOP>: New.
7241 (enum aarch64_condition_codes): New enum.
7242 (w0): New static global.
7243 (fp): Likewise.
7244 (lr): Likewise.
7245 (struct aarch64_memory_operand) <type>: New
7246 MEMORY_OPERAND_POSTINDEX type.
7247 (postindex_memory_operand): New helper function.
7248 (emit_ret): New function.
7249 (emit_load_store_pair): New function, factored out of emit_stp
7250 with support for MEMORY_OPERAND_POSTINDEX.
7251 (emit_stp): Rewrite using emit_load_store_pair.
7252 (emit_ldp): New function.
7253 (emit_load_store): Likewise.
7254 (emit_ldr): Mention post-index instruction in comment.
7255 (emit_ldrh): New function.
7256 (emit_ldrb): New function.
7257 (emit_ldrsw): Mention post-index instruction in comment.
7258 (emit_str): Likewise.
7259 (emit_subs): New function.
7260 (emit_cmp): Likewise.
7261 (emit_and): Likewise.
7262 (emit_orr): Likewise.
7263 (emit_orn): Likewise.
7264 (emit_eor): Likewise.
7265 (emit_mvn): Likewise.
7266 (emit_lslv): Likewise.
7267 (emit_lsrv): Likewise.
7268 (emit_asrv): Likewise.
7269 (emit_mul): Likewise.
7270 (emit_sbfm): Likewise.
7271 (emit_sbfx): Likewise.
7272 (emit_ubfm): Likewise.
7273 (emit_ubfx): Likewise.
7274 (emit_csinc): Likewise.
7275 (emit_cset): Likewise.
7276 (emit_nop): Likewise.
7277 (emit_ops_insns): New helper function.
7278 (emit_pop): Likewise.
7279 (emit_push): Likewise.
7280 (aarch64_emit_prologue): New function.
7281 (aarch64_emit_epilogue): Likewise.
7282 (aarch64_emit_add): Likewise.
7283 (aarch64_emit_sub): Likewise.
7284 (aarch64_emit_mul): Likewise.
7285 (aarch64_emit_lsh): Likewise.
7286 (aarch64_emit_rsh_signed): Likewise.
7287 (aarch64_emit_rsh_unsigned): Likewise.
7288 (aarch64_emit_ext): Likewise.
7289 (aarch64_emit_log_not): Likewise.
7290 (aarch64_emit_bit_and): Likewise.
7291 (aarch64_emit_bit_or): Likewise.
7292 (aarch64_emit_bit_xor): Likewise.
7293 (aarch64_emit_bit_not): Likewise.
7294 (aarch64_emit_equal): Likewise.
7295 (aarch64_emit_less_signed): Likewise.
7296 (aarch64_emit_less_unsigned): Likewise.
7297 (aarch64_emit_ref): Likewise.
7298 (aarch64_emit_if_goto): Likewise.
7299 (aarch64_emit_goto): Likewise.
7300 (aarch64_write_goto_address): Likewise.
7301 (aarch64_emit_const): Likewise.
7302 (aarch64_emit_call): Likewise.
7303 (aarch64_emit_reg): Likewise.
7304 (aarch64_emit_pop): Likewise.
7305 (aarch64_emit_stack_flush): Likewise.
7306 (aarch64_emit_zero_ext): Likewise.
7307 (aarch64_emit_swap): Likewise.
7308 (aarch64_emit_stack_adjust): Likewise.
7309 (aarch64_emit_int_call_1): Likewise.
7310 (aarch64_emit_void_call_2): Likewise.
7311 (aarch64_emit_eq_goto): Likewise.
7312 (aarch64_emit_ne_goto): Likewise.
7313 (aarch64_emit_lt_goto): Likewise.
7314 (aarch64_emit_le_goto): Likewise.
7315 (aarch64_emit_gt_goto): Likewise.
7316 (aarch64_emit_ge_got): Likewise.
7317 (aarch64_emit_ops_impl): New static global variable.
7318 (aarch64_emit_ops): New target function, return
7319 &aarch64_emit_ops_impl.
7320 (struct linux_target_ops): Install it.
7321
7322 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7323
7324 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7325 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7326 aarch64-ipa.o.
7327 * linux-aarch64-ipa.c: New file.
7328 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7329 and endian.h.
7330 (aarch64_get_thread_area): New target method.
7331 (extract_signed_bitfield): New helper function.
7332 (aarch64_decode_ldr_literal): New function.
7333 (enum aarch64_opcodes): New enum.
7334 (struct aarch64_register): New struct.
7335 (struct aarch64_operand): New struct.
7336 (x0): New static global.
7337 (x1): Likewise.
7338 (x2): Likewise.
7339 (x3): Likewise.
7340 (x4): Likewise.
7341 (w2): Likewise.
7342 (ip0): Likewise.
7343 (sp): Likewise.
7344 (xzr): Likewise.
7345 (aarch64_register): New helper function.
7346 (register_operand): Likewise.
7347 (immediate_operand): Likewise.
7348 (struct aarch64_memory_operand): New struct.
7349 (offset_memory_operand): New helper function.
7350 (preindex_memory_operand): Likewise.
7351 (enum aarch64_system_control_registers): New enum.
7352 (ENCODE): New macro.
7353 (emit_insn): New helper function.
7354 (emit_b): New function.
7355 (emit_bcond): Likewise.
7356 (emit_cb): Likewise.
7357 (emit_tb): Likewise.
7358 (emit_blr): Likewise.
7359 (emit_stp): Likewise.
7360 (emit_ldp_q_offset): Likewise.
7361 (emit_stp_q_offset): Likewise.
7362 (emit_load_store): Likewise.
7363 (emit_ldr): Likewise.
7364 (emit_ldrsw): Likewise.
7365 (emit_str): Likewise.
7366 (emit_ldaxr): Likewise.
7367 (emit_stxr): Likewise.
7368 (emit_stlr): Likewise.
7369 (emit_data_processing_reg): Likewise.
7370 (emit_data_processing): Likewise.
7371 (emit_add): Likewise.
7372 (emit_sub): Likewise.
7373 (emit_mov): Likewise.
7374 (emit_movk): Likewise.
7375 (emit_mov_addr): Likewise.
7376 (emit_mrs): Likewise.
7377 (emit_msr): Likewise.
7378 (emit_sevl): Likewise.
7379 (emit_wfe): Likewise.
7380 (append_insns): Likewise.
7381 (can_encode_int32_in): New helper function.
7382 (aarch64_relocate_instruction): New function.
7383 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
7384 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
7385 (struct linux_target_ops): Install aarch64_get_thread_area,
7386 aarch64_install_fast_tracepoint_jump_pad and
7387 aarch64_get_min_fast_tracepoint_insn_len.
7388
7389 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7390
7391 * Makefile.in (aarch64-insn.o): New rule.
7392 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7393
7394 2015-09-21 Yao Qi <yao.qi@linaro.org>
7395
7396 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7397
7398 2015-09-21 Yao Qi <yao.qi@linaro.org>
7399
7400 * tracepoint.c (max_jump_pad_size): Remove.
7401
7402 2015-09-18 Yao Qi <yao.qi@linaro.org>
7403
7404 * linux-aarch64-low.c: Don't include sys/uio.h.
7405 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7406
7407 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
7408
7409 * tracepoint.c (eval_result_type): Change prototype.
7410 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7411
7412 2015-09-15 Pedro Alves <palves@redhat.com>
7413
7414 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7415 Check whether to report exec events instead of checking whether
7416 multiprocess is enabled.
7417
7418 2015-09-15 Pedro Alves <palves@redhat.com>
7419
7420 PR remote/18965
7421 * remote-utils.c (prepare_resume_reply): Merge
7422 TARGET_WAITKIND_VFORK_DONE switch case with the
7423 TARGET_WAITKIND_FORKED case.
7424
7425 2015-09-15 Yao Qi <yao.qi@linaro.org>
7426
7427 * server.c (handle_query): Check string comparison using
7428 "else if" instead of "if".
7429
7430 2015-09-15 Yao Qi <yao.qi@linaro.org>
7431
7432 * server.c (vCont_supported): New global variable.
7433 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7434 matches. Append ";vContSupported+" to own_buf.
7435 (handle_v_requests): Append ";s;S" to own_buf if target supports
7436 hardware single step or vCont_supported is false.
7437 (capture_main): Set vCont_supported to zero.
7438
7439 2015-09-15 Yao Qi <yao.qi@linaro.org>
7440
7441 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7442 it to ...
7443 (linux_supports_hardware_single_step): ... New function.
7444 (linux_target_ops): Update.
7445 * lynx-low.c (lynx_target_ops): Set field
7446 supports_hardware_single_step to target_can_do_hardware_single_step.
7447 * nto-low.c (nto_target_ops): Likewise.
7448 * spu-low.c (spu_target_ops): Likewise.
7449 * win32-low.c (win32_target_ops): Likewise.
7450 * target.c (target_can_do_hardware_single_step): New function.
7451 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7452 Remove. <supports_hardware_single_step>: New field.
7453 (target_supports_conditional_breakpoints): Remove.
7454 (target_supports_hardware_single_step): New macro.
7455 (target_can_do_hardware_single_step): Declare.
7456 * server.c (handle_query): Use target_supports_hardware_single_step
7457 instead of target_supports_conditional_breakpoints.
7458
7459 2015-09-15 Yao Qi <yao.qi@linaro.org>
7460
7461 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7462 function.
7463 (struct linux_target_ops the_low_target): Install
7464 aarch64_linux_siginfo_fixup.
7465
7466 2015-09-11 Don Breazeal <donb@codesourcery.com>
7467 Luis Machado <lgustavo@codesourcery.com>
7468
7469 * linux-low.c (linux_mourn): Static declaration.
7470 (linux_arch_setup): Move in front of
7471 handle_extended_wait.
7472 (linux_arch_setup_thread): New function.
7473 (handle_extended_wait): Handle exec events. Call
7474 linux_arch_setup_thread. Make event_lwp argument a
7475 pointer-to-a-pointer.
7476 (check_zombie_leaders): Do not check stopped threads.
7477 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7478 (linux_low_filter_event): Add lwp and thread for exec'ing
7479 non-leader thread if leader thread has been deleted.
7480 Refactor code into linux_arch_setup_thread and call it.
7481 Pass child lwp pointer by reference to handle_extended_wait.
7482 (linux_wait_for_event_filtered): Update comment.
7483 (linux_wait_1): Prevent clobbering exec event status.
7484 (linux_supports_exec_events): New function.
7485 (linux_target_ops) <supports_exec_events>: Initialize new member.
7486 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7487 new member.
7488 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7489 * server.c (report_exec_events): New global variable.
7490 (handle_query): Handle qSupported query for exec-events feature.
7491 (captured_main): Initialize report_exec_events.
7492 * server.h (report_exec_events): Declare new global variable.
7493 * target.h (struct target_ops) <supports_exec_events>: New
7494 member.
7495 (target_supports_exec_events): New macro.
7496 * win32-low.c (win32_target_ops) <supports_exec_events>:
7497 Initialize new member.
7498
7499 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7500
7501 * linux-low.c (linux_low_enable_btrace): Remove.
7502 (linux_target_ops): Replace linux_low_enable_btrace with
7503 linux_enable_btrace.
7504
7505 2015-09-03 Yao Qi <yao.qi@linaro.org>
7506
7507 * linux-aarch64-low.c (aarch64_insert_point): Call
7508 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7509 returns true.
7510
7511 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7512
7513 * linux-low.c (check_stopped_by_breakpoint): Use
7514 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7515
7516 2015-08-27 Pedro Alves <palves@redhat.com>
7517
7518 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7519
7520 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7521
7522 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7523 the XNEW-family equivalent.
7524 (compile_bytecodes): Likewise.
7525 * dll.c (loaded_dll): Likewise.
7526 * event-loop.c (append_callback_event): Likewise.
7527 (create_file_handler): Likewise.
7528 (create_file_event): Likewise.
7529 * hostio.c (handle_open): Likewise.
7530 * inferiors.c (add_thread): Likewise.
7531 (add_process): Likewise.
7532 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7533 * linux-arm-low.c (arm_new_process): Likewise.
7534 (arm_new_thread): Likewise.
7535 * linux-low.c (add_to_pid_list): Likewise.
7536 (linux_add_process): Likewise.
7537 (handle_extended_wait): Likewise.
7538 (add_lwp): Likewise.
7539 (enqueue_one_deferred_signal): Likewise.
7540 (enqueue_pending_signal): Likewise.
7541 (linux_resume_one_lwp_throw): Likewise.
7542 (linux_resume_one_thread): Likewise.
7543 (linux_read_memory): Likewise.
7544 (linux_write_memory): Likewise.
7545 * linux-mips-low.c (mips_linux_new_process): Likewise.
7546 (mips_linux_new_thread): Likewise.
7547 (mips_add_watchpoint): Likewise.
7548 * linux-x86-low.c (initialize_low_arch): Likewise.
7549 * lynx-low.c (lynx_add_process): Likewise.
7550 * mem-break.c (set_raw_breakpoint_at): Likewise.
7551 (set_breakpoint): Likewise.
7552 (add_condition_to_breakpoint): Likewise.
7553 (add_commands_to_breakpoint): Likewise.
7554 (clone_agent_expr): Likewise.
7555 (clone_one_breakpoint): Likewise.
7556 * regcache.c (new_register_cache): Likewise.
7557 * remote-utils.c (look_up_one_symbol): Likewise.
7558 * server.c (queue_stop_reply): Likewise.
7559 (start_inferior): Likewise.
7560 (queue_stop_reply_callback): Likewise.
7561 (handle_target_event): Likewise.
7562 * spu-low.c (fetch_ppc_memory): Likewise.
7563 (store_ppc_memory): Likewise.
7564 * target.c (set_target_ops): Likewise.
7565 * thread-db.c (thread_db_load_search): Likewise.
7566 (try_thread_db_load_1): Likewise.
7567 * tracepoint.c (add_tracepoint): Likewise.
7568 (add_tracepoint_action): Likewise.
7569 (create_trace_state_variable): Likewise.
7570 (cmd_qtdpsrc): Likewise.
7571 (cmd_qtro): Likewise.
7572 (add_while_stepping_state): Likewise.
7573 * win32-low.c (child_add_thread): Likewise.
7574 (get_image_name): Likewise.
7575
7576 2015-08-25 Yao Qi <yao.qi@linaro.org>
7577
7578 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7579
7580 2015-08-25 Yao Qi <yao.qi@linaro.org>
7581
7582 * Makefile.in (aarch64-linux.o): New rule.
7583 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7584 srv_tgtobj.
7585 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
7586 (aarch64_init_debug_reg_state): Make it extern.
7587 (aarch64_linux_prepare_to_resume): Remove.
7588
7589 2015-08-25 Yao Qi <yao.qi@linaro.org>
7590
7591 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7592 lwp_arch_private_info and ptid_of_lwp.
7593
7594 2015-08-25 Yao Qi <yao.qi@linaro.org>
7595
7596 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7597 Find proc_info by find_process_pid. All callers updated.
7598
7599 2015-08-25 Yao Qi <yao.qi@linaro.org>
7600
7601 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7602 Remove.
7603 (debug_reg_change_callback): Remove.
7604 (aarch64_notify_debug_reg_change): Remove.
7605
7606 2015-08-25 Yao Qi <yao.qi@linaro.org>
7607
7608 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
7609 Call current_lwp_ptid.
7610
7611 2015-08-25 Yao Qi <yao.qi@linaro.org>
7612
7613 * linux-aarch64-low.c (debug_reg_change_callback): Use
7614 debug_printf.
7615
7616 2015-08-25 Yao Qi <yao.qi@linaro.org>
7617
7618 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
7619
7620 2015-08-25 Yao Qi <yao.qi@linaro.org>
7621
7622 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
7623
7624 2015-08-25 Yao Qi <yao.qi@linaro.org>
7625
7626 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
7627 the code.
7628
7629 2015-08-25 Yao Qi <yao.qi@linaro.org>
7630
7631 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
7632 Remove.
7633 (debug_reg_change_callback): Remove argument entry and add argument
7634 lwp. Remove local variable thread. Don't print thread id in the
7635 debugging output. Don't check whether pid of thread equals to pid.
7636 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
7637 iterate_over_lwps instead find_inferior.
7638
7639 2015-08-24 Pedro Alves <palves@redhat.com>
7640
7641 * inferiors.c (get_first_process): New function.
7642 * inferiors.h (get_first_process): New declaration.
7643 * remote-utils.c (read_ptid): Default to the first process in the
7644 list, instead of to the current thread's process.
7645
7646 2015-08-24 Pedro Alves <palves@redhat.com>
7647
7648 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
7649 * event-loop.c: Likewise.
7650 * remote-utils.c: Likewise.
7651 * tracepoint.c: Likewise.
7652
7653 2015-08-24 Pedro Alves <palves@redhat.com>
7654
7655 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
7656 ptid_get_lwp.
7657
7658 2015-08-21 Pedro Alves <palves@redhat.com>
7659
7660 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
7661 instead of literal 1.
7662
7663 2015-08-21 Pedro Alves <palves@redhat.com>
7664
7665 * tdesc.c (default_description): Explicitly zero-initialize.
7666
7667 2015-08-21 Pedro Alves <palves@redhat.com>
7668
7669 PR gdb/18749
7670 * inferiors.c (remove_thread): Discard any pending stop reply for
7671 this thread.
7672 * server.c (remove_all_on_match_pid): Rename to ...
7673 (remove_all_on_match_ptid): ... this. Work with a filter ptid
7674 instead of a pid.
7675 (discard_queued_stop_replies): Change parameter to a ptid. Now
7676 extern.
7677 (handle_v_kill, kill_inferior_callback, captured_main)
7678 (process_serial_event): Adjust.
7679 * server.h (discard_queued_stop_replies): Declare.
7680
7681 2015-08-21 Pedro Alves <palves@redhat.com>
7682
7683 * linux-low.c (wait_for_sigstop): Always switch to no thread
7684 selected if the previously current thread dies.
7685 * lynx-low.c (lynx_request_interrupt): Use the first thread's
7686 process instead of the current thread's.
7687 * remote-utils.c (input_interrupt): Don't check if there's no
7688 current thread.
7689 * server.c (gdb_read_memory, gdb_write_memory): If setting the
7690 current thread to the general thread fails, error out.
7691 (handle_qxfer_auxv, handle_qxfer_libraries)
7692 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
7693 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
7694 (handle_query): Check if there's a thread selected instead of
7695 checking whether there's any thread in the thread list.
7696 (handle_qxfer_threads, handle_qxfer_btrace)
7697 (handle_qxfer_btrace_conf): Don't error out early if there's no
7698 thread in the thread list.
7699 (handle_v_cont, myresume): Don't set the current thread to the
7700 continue thread.
7701 (process_serial_event) <Hg handling>: Also set thread_id if the
7702 previous general thread is still alive.
7703 (process_serial_event) <g/G handling>: If setting the current
7704 thread to the general thread fails, error out.
7705 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
7706 thread's lwp instead of the current thread's.
7707 * target.c (set_desired_thread): If the desired thread was not
7708 found, leave the current thread pointing to NULL. Return an int
7709 (boolean) indicating success.
7710 * target.h (set_desired_thread): Change return type to int.
7711
7712 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
7713
7714 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
7715 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
7716 #includes.
7717 (ps_get_thread_area): New function.
7718
7719 2015-08-19 Gary Benson <gbenson@redhat.com>
7720
7721 * hostio.c (handle_pread): Do not attempt to read more data
7722 than hostio_reply_with_data can fit in a packet.
7723
7724 2015-08-18 Joel Brobecker <brobecker@adacore.com>
7725
7726 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
7727
7728 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
7729
7730 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
7731
7732 2015-08-06 Pedro Alves <palves@redhat.com>
7733
7734 * tracepoint.c (expr_eval_result): Now an int.
7735
7736 2015-08-06 Pedro Alves <palves@redhat.com>
7737
7738 * gdbthread.h (struct regcache): Forward declare.
7739 (struct thread_info) <regcache_data>: Now a struct regcache
7740 pointer.
7741 * inferiors.c (inferior_regcache_data)
7742 (set_inferior_regcache_data): Now work with struct regcache
7743 pointers.
7744 * inferiors.h (struct regcache): Forward declare.
7745 (inferior_regcache_data, set_inferior_regcache_data): Now work
7746 with struct regcache pointers.
7747 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
7748 (free_register_cache_thread): Remove struct regcache pointer
7749 casts.
7750
7751 2015-08-06 Pedro Alves <palves@redhat.com>
7752
7753 * server.c (captured_main): On error, print the exception message
7754 to stderr, and if run_once is set, throw a quit.
7755
7756 2015-08-06 Pedro Alves <palves@redhat.com>
7757
7758 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
7759 the current thread.
7760
7761 2015-08-06 Pedro Alves <palves@redhat.com>
7762
7763 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
7764 reading beyond the passed in buffer length.
7765
7766 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
7767
7768 * tracepoint.c (symbol_list) <required>: Remove.
7769
7770 2015-08-06 Pedro Alves <palves@redhat.com>
7771
7772 * linux-low.c (handle_extended_wait): Set the fork child's suspend
7773 count if stopping and suspending threads.
7774 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
7775 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
7776 (linux_detach): Complete an ongoing step-over.
7777 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
7778 throughout.
7779 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
7780 (linux_wait_1): If passing a signal to the inferior after
7781 finishing a step-over, unsuspend and re-resume all lwps. If we
7782 see a single-step event but the thread should be continuing, don't
7783 pass the trap to gdb.
7784 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
7785 internal_error instead of gdb_assert.
7786 (enqueue_pending_signal): New function.
7787 (check_ptrace_stopped_lwp_gone): Add debug output.
7788 (start_step_over): Use internal_error instead of gdb_assert.
7789 (complete_ongoing_step_over): New function.
7790 (linux_resume_one_thread): Don't resume a suspended thread.
7791 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
7792 it stepping.
7793
7794 2015-08-06 Pedro Alves <palves@redhat.com>
7795
7796 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
7797 (linux_thread_alive): Use lwp_is_marked_dead.
7798 (extended_event_reported): Delete.
7799 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
7800 instead of extended_event_reported.
7801 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
7802 as well.
7803 (lwp_is_marked_dead): New function.
7804 (lwp_running): Use lwp_is_marked_dead.
7805 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
7806 comment.
7807
7808 2015-08-06 Pedro Alves <palves@redhat.com>
7809
7810 * linux-low.c (linux_wait_1): Move fork event output out of the
7811 !report_to_gdb check. Pass event_child->waitstatus to
7812 target_waitstatus_to_string instead of ourstatus.
7813
7814 2015-08-04 Yao Qi <yao.qi@linaro.org>
7815
7816 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
7817 if current_thread is 32 bit.
7818
7819 2015-08-04 Yao Qi <yao.qi@linaro.org>
7820
7821 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7822 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7823 * server.c (extended_protocol): Remove "static".
7824 * server.h (extended_protocol): Declare it.
7825
7826 2015-08-04 Yao Qi <yao.qi@linaro.org>
7827
7828 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
7829 both aarch64 and aarch32.
7830 (aarch64_set_pc): Likewise.
7831
7832 2015-08-04 Yao Qi <yao.qi@linaro.org>
7833
7834 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
7835 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
7836 arm-with-neon.xml to srv_xmlfiles.
7837 * linux-aarch64-low.c: Include linux-aarch32-low.h.
7838 (is_64bit_tdesc): New function.
7839 (aarch64_linux_read_description): New function.
7840 (aarch64_arch_setup): Call aarch64_linux_read_description.
7841 (regs_info): Rename to regs_info_aarch64.
7842 (aarch64_regs_info): Return right regs_info.
7843 (initialize_low_arch): Call initialize_low_arch_aarch32.
7844
7845 2015-08-04 Yao Qi <yao.qi@linaro.org>
7846
7847 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
7848 * linux-aarch32-low.c: New file.
7849 * linux-aarch32-low.h: New file.
7850 * linux-arm-low.c (arm_fill_gregset): Move it to
7851 linux-aarch32-low.c.
7852 (arm_store_gregset): Likewise.
7853 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
7854 (arm_store_vfpregset): Call arm_store_vfpregset_num.
7855 (arm_arch_setup): Check if PTRACE_GETREGSET works.
7856 (regs_info): Rename to regs_info_arm.
7857 (arm_regs_info): Return regs_info_aarch32 if
7858 have_ptrace_getregset is 1 and target description is
7859 arm_with_neon or arm_with_vfpv3.
7860 (initialize_low_arch): Don't call init_registers_arm_with_neon.
7861 Call initialize_low_arch_aarch32 instead.
7862
7863 2015-08-04 Yao Qi <yao.qi@linaro.org>
7864
7865 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
7866 * linux-low.c: ... here.
7867 * linux-low.h (have_ptrace_getregset): Declare it.
7868
7869 2015-08-04 Pedro Alves <palves@redhat.com>
7870
7871 * thread-db.c (struct thread_db): Use new typedefs.
7872 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
7873 CHK calls.
7874 (disable_thread_event_reporting): Cast result of dlsym to
7875 destination function pointer type.
7876 (thread_db_mourn): Use td_ta_delete_ftype.
7877
7878 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
7879
7880 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
7881 arch variant.
7882 (CDX_BREAKPOINT): Define for R2.
7883 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
7884 (the_low_target): Add comments.
7885
7886 2015-07-30 Yao Qi <yao.qi@linaro.org>
7887
7888 * linux-arm-low.c (arm_hwcap): Remove it.
7889 (arm_read_description): New local variable arm_hwcap. Don't
7890 set arm_hwcap to zero.
7891
7892 2015-07-30 Yao Qi <yao.qi@linaro.org>
7893
7894 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
7895 Use regcache->tdesc instead.
7896 (arm_store_wmmxregset): Likewise.
7897 (arm_fill_vfpregset): Likewise.
7898 (arm_store_vfpregset): Likewise.
7899
7900 2015-07-30 Yao Qi <yao.qi@linaro.org>
7901
7902 * linux-arm-low.c: Include arch/arm.h.
7903 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
7904 (arm_store_gregset): Likewise.
7905
7906 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7907
7908 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
7909 ptrace's 4th parameter.
7910
7911 2015-07-27 Yao Qi <yao.qi@linaro.org>
7912
7913 * configure.srv (case aarch64*-*-linux*): Don't set
7914 srv_linux_usrregs.
7915
7916 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
7917
7918 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
7919 sys/ptrace.h.
7920 * linux-arm-low.c: Likewise.
7921 * linux-cris-low.c: Likewise.
7922 * linux-crisv32-low.c: Likewise.
7923 * linux-low.c: Likewise.
7924 * linux-m68k-low.c: Likewise.
7925 * linux-mips-low.c: Likewise.
7926 * linux-nios2-low.c: Likewise.
7927 * linux-s390-low.c: Likewise.
7928 * linux-sparc-low.c: Likewise.
7929 * linux-tic6x-low.c: Likewise.
7930 * linux-tile-low.c: Likewise.
7931 * linux-x86-low.c: Likewise.
7932
7933 2015-07-24 Pedro Alves <palves@redhat.com>
7934
7935 * config.in: Regenerate.
7936 * configure: Regenerate.
7937
7938 2015-07-24 Pedro Alves <palves@redhat.com>
7939
7940 * acinclude.m4: Include ../ptrace.m4.
7941 * configure.ac: Call GDB_AC_PTRACE.
7942 * config.in, configure: Regenerate.
7943
7944 2015-07-24 Yao Qi <yao.qi@linaro.org>
7945
7946 * linux-low.c (linux_create_inferior): Remove setting to
7947 proc->priv->new_inferior.
7948 (linux_attach): Likewise.
7949 (linux_low_filter_event): Likewise.
7950 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
7951
7952 2015-07-24 Yao Qi <yao.qi@linaro.org>
7953
7954 * linux-low.c (linux_arch_setup): New function.
7955 (linux_low_filter_event): If proc->tdesc is NULL and
7956 proc->attached is true, call the_low_target.arch_setup.
7957 Otherwise, keep status pending, and return.
7958 (linux_resume_one_lwp_throw): Don't call get_pc if
7959 thread->while_stepping isn't NULL. Don't call
7960 get_thread_regcache if proc->tdesc is NULL.
7961 (need_step_over_p): Return 0 if proc->tdesc is NULL.
7962 (linux_target_ops): Install arch_setup.
7963 * server.c (start_inferior): Call the_target->arch_setup.
7964 * target.h (struct target_ops) <arch_setup>: New field.
7965 (target_arch_setup): New marco.
7966 * lynx-low.c (lynx_target_ops): Update.
7967 * nto-low.c (nto_target_ops): Update.
7968 * spu-low.c (spu_target_ops): Update.
7969 * win32-low.c (win32_target_ops): Update.
7970
7971 2015-07-24 Yao Qi <yao.qi@linaro.org>
7972
7973 * linux-low.c (linux_add_process): Don't set
7974 proc->priv->new_inferior.
7975 (linux_create_inferior): Set proc->priv->new_inferior to 1.
7976 (linux_attach): Likewise.
7977
7978 2015-07-24 Yao Qi <yao.qi@linaro.org>
7979
7980 * server.c (start_inferior): Code refactor.
7981
7982 2015-07-24 Yao Qi <yao.qi@linaro.org>
7983
7984 * server.c (process_serial_event): Set general_thread.
7985
7986 2015-07-21 Yao Qi <yao.qi@linaro.org>
7987
7988 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
7989 aarch64_linux_get_debug_reg_capacity.
7990
7991 2015-07-17 Yao Qi <yao.qi@linaro.org>
7992
7993 * Makefile.in (aarch64-linux-hw-point.o): New rule.
7994 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
7995 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
7996 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7997 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7998 (AARCH64_HWP_ALIGNMENT): Likewise.
7999 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8000 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8001 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8002 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8003 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8004 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8005 (struct aarch64_debug_reg_state): Likewise.
8006 (struct arch_lwp_info): Likewise.
8007 (aarch64_align_watchpoint): Likewise.
8008 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8009 (aarch64_watchpoint_length): Likewise.
8010 (aarch64_point_encode_ctrl_reg): Likewise
8011 (aarch64_point_is_aligned): Likewise.
8012 (aarch64_align_watchpoint): Likewise.
8013 (aarch64_linux_set_debug_regs):
8014 (aarch64_dr_state_insert_one_point): Likewise.
8015 (aarch64_dr_state_remove_one_point): Likewise.
8016 (aarch64_handle_breakpoint): Likewise.
8017 (aarch64_handle_aligned_watchpoint): Likewise.
8018 (aarch64_handle_unaligned_watchpoint): Likewise.
8019 (aarch64_handle_watchpoint): Likewise.
8020
8021 2015-07-17 Yao Qi <yao.qi@linaro.org>
8022
8023 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8024 and don't aarch64_get_debug_reg_state. All callers update.
8025 (aarch64_handle_aligned_watchpoint): Likewise.
8026 (aarch64_handle_unaligned_watchpoint): Likewise.
8027 (aarch64_handle_watchpoint): Likewise.
8028 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8029 (aarch64_remove_point): Likewise.
8030
8031 2015-07-17 Yao Qi <yao.qi@linaro.org>
8032
8033 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8034 debug_printf.
8035 (aarch64_handle_unaligned_watchpoint): Likewise.
8036
8037 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8038
8039 Revert the previous 3 commits:
8040 Move gdb_regex* to common/
8041 Move linux_find_memory_regions_full & co.
8042 gdbserver build-id attribute generator
8043
8044 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8045 Jan Kratochvil <jan.kratochvil@redhat.com>
8046
8047 gdbserver build-id attribute generator.
8048 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8049 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8050 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8051 (find_phdr): New.
8052 (get_dynamic): Use find_pdhr to traverse program headers.
8053 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8054 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8055 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8056 (get_hex_build_id): New.
8057 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8058 to reply XML document.
8059
8060 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8061 Jan Kratochvil <jan.kratochvil@redhat.com>
8062
8063 * target.c: Include target/target-utils.h and fcntl.h.
8064 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
8065 (target_fileio_read_stralloc): New functions.
8066
8067 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8068
8069 * Makefile.in (OBS): Add gdb_regex.o.
8070 (gdb_regex.o): New.
8071 * config.in: Rebuilt.
8072 * configure: Rebuilt.
8073
8074 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8075 Jan Kratochvil <jan.kratochvil@redhat.com>
8076
8077 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
8078 * Makefile.in (OBS): Add target-utils.o.
8079 (linux-maps.o, target-utils.o): New.
8080 * configure.srv (srv_linux_obj): Add linux-maps.o.
8081
8082 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8083
8084 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8085 function, return 1.
8086 (the_low_target): Install it.
8087
8088 2015-07-14 Pedro Alves <palves@redhat.com>
8089
8090 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8091 Instead, ignore ECHILD, and throw an error for other errnos.
8092
8093 2015-07-10 Pedro Alves <palves@redhat.com>
8094
8095 * event-loop.c (struct callback_event) <data>: Change type to
8096 gdb_client_data instance instead of gdb_client_data pointer.
8097 (append_callback_event): Adjust.
8098
8099 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8100
8101 * linux-aarch64-low.c: Add comments for each linux_target_ops
8102 method. Remove comments already covered in target_ops and
8103 linux_target_ops definitions.
8104 (the_low_target): Add comments for each unimplemented method.
8105
8106 2015-07-09 Yao Qi <yao.qi@linaro.org>
8107
8108 * linux-aarch64-low.c (aarch64_regmap): Remove.
8109 (aarch64_usrregs_info): Remove.
8110 (regs_info): Set field usrregs to NULL.
8111
8112 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8113
8114 * linux-low.c: Include "rsp-low.h"
8115 (linux_low_encode_pt_config, linux_low_encode_raw): New.
8116 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
8117 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
8118 (handle_btrace_enable_pt): New.
8119 (handle_btrace_general_set): Support "pt".
8120 (handle_btrace_conf_general_set): Support "pt:size".
8121
8122 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8123
8124 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8125 Z_PACKET_SW_BP.
8126
8127 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8128
8129 * linux-aarch64-low.c: Remove comment about endianness.
8130 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
8131 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
8132 memcmp.
8133
8134 2015-06-24 Gary Benson <gbenson@redhat.com>
8135
8136 * linux-i386-ipa.c (stdint.h): Do not include.
8137 * lynx-i386-low.c (stdint.h): Likewise.
8138 * lynx-ppc-low.c (stdint.h): Likewise.
8139 * mem-break.c (stdint.h): Likewise.
8140 * thread-db.c (stdint.h): Likewise.
8141 * tracepoint.c (stdint.h): Likewise.
8142 * win32-low.c (stdint.h): Likewise.
8143
8144 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8145
8146 * server.c (write_qxfer_response): Update call to
8147 remote_escape_output.
8148
8149 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8150 Jan Kratochvil <jan.kratochvil@redhat.com>
8151
8152 Merge multiple hex conversions.
8153 * gdbreplay.c (tohex): Rename to 'fromhex'.
8154 (logchar): Use fromhex.
8155
8156 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8157
8158 * server.c (handle_qxfer_libraries): Set `version' attribute for
8159 <library-list>.
8160
8161 2015-06-10 Gary Benson <gbenson@redhat.com>
8162
8163 * target.h (struct target_ops) <multifs_open>: New field.
8164 <multifs_unlink>: Likewise.
8165 <multifs_readlink>: Likewise.
8166 * linux-low.c (nat/linux-namespaces.h): New include.
8167 (linux_target_ops): Initialize the_target->multifs_open,
8168 the_target->multifs_unlink and the_target->multifs_readlink.
8169 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
8170 * hostio.c (hostio_fs_pid): New static variable.
8171 (hostio_handle_new_gdb_connection): New function.
8172 (handle_setfs): Likewise.
8173 (handle_open): Use the_target->multifs_open as appropriate.
8174 (handle_unlink): Use the_target->multifs_unlink as appropriate.
8175 (handle_readlink): Use the_target->multifs_readlink as
8176 appropriate.
8177 (handle_vFile): Handle vFile:setfs packets.
8178 * server.c (handle_query): Call hostio_handle_new_gdb_connection
8179 after target_handle_new_gdb_connection.
8180
8181 2015-06-10 Gary Benson <gbenson@redhat.com>
8182
8183 * configure.ac (AC_CHECK_FUNCS): Add setns.
8184 * config.in: Regenerate.
8185 * configure: Likewise.
8186 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
8187 (linux-namespaces.o): New rule.
8188 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
8189
8190 2015-06-09 Gary Benson <gbenson@redhat.com>
8191
8192 * hostio.c (handle_open): Process mode argument with
8193 fileio_to_host_mode.
8194
8195 2015-06-01 Yao Qi <yao.qi@linaro.org>
8196
8197 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8198 * linux-x86-low.c: Likewise.
8199
8200 2015-05-28 Don Breazeal <donb@codesourcery.com>
8201
8202 * linux-low.c (handle_extended_wait): Initialize
8203 thread_info.last_resume_kind for new fork children.
8204
8205 2015-05-15 Pedro Alves <palves@redhat.com>
8206
8207 * target.h (target_handle_new_gdb_connection): Rewrite using if
8208 wrapped in do/while.
8209
8210 2015-05-14 Joel Brobecker <brobecker@adacore.com>
8211
8212 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
8213 * configure, config.in: Regenerate.
8214 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
8215 Declare typedef.
8216
8217 2015-05-12 Don Breazeal <donb@codesourcery.com>
8218
8219 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
8220 PTRACE_EVENT_VFORK_DONE.
8221 (linux_low_ptrace_options, extended_event_reported): Add vfork
8222 events.
8223 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
8224 and "vforkdone" for RSP 'T' Stop Reply Packet.
8225 * server.h (report_vfork_events): Declare
8226 global variable.
8227
8228 2015-05-12 Don Breazeal <donb@codesourcery.com>
8229
8230 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
8231 (the_low_target) <new_fork>: Initialize new member.
8232 * linux-arm-low.c (arm_new_fork): New function.
8233 (the_low_target) <new_fork>: Initialize new member.
8234 * linux-low.c (handle_extended_wait): Call new target function
8235 new_fork.
8236 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
8237 * linux-mips-low.c (mips_add_watchpoint): New function
8238 extracted from mips_insert_point.
8239 (the_low_target) <new_fork>: Initialize new member.
8240 (mips_linux_new_fork): New function.
8241 (mips_insert_point): Call mips_add_watchpoint.
8242 * linux-x86-low.c (x86_linux_new_fork): New function.
8243 (the_low_target) <new_fork>: Initialize new member.
8244
8245 2015-05-12 Don Breazeal <donb@codesourcery.com>
8246
8247 * linux-low.c (handle_extended_wait): Implement return value,
8248 rename argument 'event_child' to 'event_lwp', handle
8249 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
8250 (linux_low_ptrace_options): New function.
8251 (linux_low_filter_event): Call linux_low_ptrace_options,
8252 use different argument fo linux_enable_event_reporting,
8253 use return value from handle_extended_wait.
8254 (extended_event_reported): New function.
8255 (linux_wait_1): Call extended_event_reported and set
8256 status to report fork events.
8257 (linux_write_memory): Add pid to debug message.
8258 (reset_lwp_ptrace_options_callback): New function.
8259 (linux_handle_new_gdb_connection): New function.
8260 (linux_target_ops): Initialize new structure member.
8261 * linux-low.h (struct lwp_info) <waitstatus>: New member.
8262 * lynx-low.c: Initialize new structure member.
8263 * remote-utils.c (prepare_resume_reply): Implement stop reason
8264 "fork" for "T" stop message.
8265 * server.c (handle_query): Call handle_new_gdb_connection.
8266 * server.h (report_fork_events): Declare global flag.
8267 * target.h (struct target_ops) <handle_new_gdb_connection>:
8268 New member.
8269 (target_handle_new_gdb_connection): New macro.
8270 * win32-low.c: Initialize new structure member.
8271
8272 2015-05-12 Don Breazeal <donb@codesourcery.com>
8273
8274 * mem-break.c (APPEND_TO_LIST): Define macro.
8275 (clone_agent_expr): New function.
8276 (clone_one_breakpoint): New function.
8277 (clone_all_breakpoints): New function.
8278 * mem-break.h: Declare new functions.
8279
8280 2015-05-12 Don Breazeal <donb@codesourcery.com>
8281
8282 * linux-low.c (linux_supports_fork_events): New function.
8283 (linux_supports_vfork_events): New function.
8284 (linux_target_ops): Initialize new structure members.
8285 (initialize_low): Call linux_check_ptrace_features.
8286 * lynx-low.c (lynx_target_ops): Initialize new structure
8287 members.
8288 * server.c (report_fork_events, report_vfork_events):
8289 New global flags.
8290 (handle_query): Add new features to qSupported packet and
8291 response.
8292 (captured_main): Initialize new global variables.
8293 * target.h (struct target_ops) <supports_fork_events>:
8294 New member.
8295 <supports_vfork_events>: New member.
8296 (target_supports_fork_events): New macro.
8297 (target_supports_vfork_events): New macro.
8298 * win32-low.c (win32_target_ops): Initialize new structure
8299 members.
8300
8301 2015-05-12 Gary Benson <gbenson@redhat.com>
8302
8303 * server.c (handle_qxfer_exec_file): Use current process
8304 if annex is empty.
8305
8306 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8307
8308 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8309 Remove HAVE_PTRACE_GETREGS conditionals.
8310 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8311 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8312
8313 2015-05-08 Yao Qi <yao.qi@linaro.org>
8314
8315 * linux-low.c (linux_supports_conditional_breakpoints): New
8316 function.
8317 (linux_target_ops): Install new target method.
8318 * lynx-low.c (lynx_target_ops): Install NULL hook for
8319 supports_conditional_breakpoints.
8320 * nto-low.c (nto_target_ops): Likewise.
8321 * spu-low.c (spu_target_ops): Likewise.
8322 * win32-low.c (win32_target_ops): Likewise.
8323 * server.c (handle_query): Check
8324 target_supports_conditional_breakpoints.
8325 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8326 New field.
8327 (target_supports_conditional_breakpoints): New macro.
8328
8329 2015-05-06 Pedro Alves <palves@redhat.com>
8330
8331 PR server/18081
8332 * server.c (start_inferior): If the process exits, mourn it.
8333
8334 2015-04-21 Gary Benson <gbenson@redhat.com>
8335
8336 * hostio.c (fileio_open_flags_to_host): Factored out to
8337 fileio_to_host_openflags in common/fileio.c. Single use
8338 updated.
8339
8340 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8341
8342 * linux-xtensa-low.c (xtensa_fill_gregset)
8343 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8344 XCHAL_HAVE_LOOP.
8345
8346 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8347
8348 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8349 (regs_info): Replace usrregs pointer with NULL.
8350
8351 2015-04-17 Gary Benson <gbenson@redhat.com>
8352
8353 * target.h (struct target_ops) <pid_to_exec_file>: New field.
8354 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
8355 * server.c (handle_qxfer_exec_file): New function.
8356 (qxfer_packets): Add exec-file entry.
8357 (handle_query): Report qXfer:exec-file:read as supported packet.
8358
8359 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8360
8361 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8362
8363 2015-04-09 Gary Benson <gbenson@redhat.com>
8364
8365 * hostio-errno.c (errno_to_fileio_error): Remove function.
8366 Update caller to use remote_fileio_to_fio_error.
8367
8368 2015-04-09 Yao Qi <yao.qi@linaro.org>
8369
8370 * linux-low.c (linux_insert_point): Call
8371 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
8372 (linux_remove_point): Call remove_memory_breakpoint if type is
8373 raw_bkpt_type_sw.
8374 * linux-x86-low.c (x86_insert_point): Don't call
8375 insert_memory_breakpoint.
8376 (x86_remove_point): Don't call remove_memory_breakpoint.
8377
8378 2015-04-01 Pedro Alves <palves@redhat.com>
8379 Cleber Rosa <crosa@redhat.com>
8380
8381 * server.c (gdbserver_usage): Reorganize and extend the usage
8382 message.
8383
8384 2015-03-24 Pedro Alves <palves@redhat.com>
8385
8386 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
8387 output. Also dump TRAP_TRACE.
8388 (linux_low_filter_event): In debug output, distinguish a
8389 resume_stop SIGSTOP from a delayed SIGSTOP.
8390
8391 2015-03-24 Gary Benson <gbenson@redhat.com>
8392
8393 * linux-x86-low.c (x86_linux_new_thread): Moved to
8394 nat/x86-linux.c.
8395 (x86_linux_prepare_to_resume): Likewise.
8396
8397 2015-03-24 Gary Benson <gbenson@redhat.com>
8398
8399 * Makefile.in (x86-linux-dregs.o): New rule.
8400 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8401 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8402 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8403 (x86_linux_dr_get): Likewise.
8404 (x86_linux_dr_set): Likewise.
8405 (update_debug_registers_callback): Likewise.
8406 (x86_linux_dr_set_addr): Likewise.
8407 (x86_linux_dr_get_addr): Likewise.
8408 (x86_linux_dr_set_control): Likewise.
8409 (x86_linux_dr_get_control): Likewise.
8410 (x86_linux_dr_get_status): Likewise.
8411 (x86_linux_update_debug_registers): Likewise.
8412
8413 2015-03-24 Gary Benson <gbenson@redhat.com>
8414
8415 * linux-x86-low.c (x86_linux_update_debug_registers):
8416 New function, factored out from...
8417 (x86_linux_prepare_to_resume): ...this.
8418
8419 2015-03-24 Gary Benson <gbenson@redhat.com>
8420
8421 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8422 (x86_linux_dr_set): Likewise.
8423 (update_debug_registers_callback): Likewise.
8424 (x86_linux_dr_set_addr): Likewise.
8425 (x86_linux_dr_get_addr): Likewise.
8426 (x86_linux_dr_set_control): Likewise.
8427 (x86_linux_dr_get_control): Likewise.
8428 (x86_linux_dr_get_status): Likewise.
8429 (x86_linux_prepare_to_resume): Likewise.
8430
8431 2015-03-24 Gary Benson <gbenson@redhat.com>
8432
8433 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8434 Use perror_with_name. Pass string through gettext.
8435 (x86_linux_dr_set): Likewise.
8436
8437 2015-03-24 Gary Benson <gbenson@redhat.com>
8438
8439 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8440 (x86_linux_dr_set_addr): ...this.
8441 (x86_dr_low_get_addr): Rename to...
8442 (x86_linux_dr_get_addr): ...this.
8443 (x86_dr_low_set_control): Rename to...
8444 (x86_linux_dr_set_control): ...this.
8445 (x86_dr_low_get_control): Rename to...
8446 (x86_linux_dr_get_control): ...this.
8447 (x86_dr_low_get_status): Rename to...
8448 (x86_linux_dr_get_status): ...this.
8449 (x86_dr_low): Update with new function names.
8450
8451 2015-03-24 Gary Benson <gbenson@redhat.com>
8452
8453 * Makefile.in (x86-linux.o): New rule.
8454 * configure.srv: Add x86-linux.o to relevant targets.
8455 * linux-low.c (lwp_set_arch_private_info): New function.
8456 (lwp_arch_private_info): Likewise.
8457 * linux-x86-low.c: Include nat/x86-linux.h.
8458 (arch_lwp_info): Removed structure.
8459 (update_debug_registers_callback):
8460 Use lwp_set_debug_registers_changed.
8461 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8462 and lwp_set_debug_registers_changed.
8463 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8464
8465 2015-03-24 Gary Benson <gbenson@redhat.com>
8466
8467 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8468 * linux-arm-low.c (arm_new_thread): Likewise.
8469 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8470 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8471 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8472 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8473
8474 2015-03-24 Gary Benson <gbenson@redhat.com>
8475
8476 * linux-low.c (ptid_of_lwp): New function.
8477 (lwp_is_stopped): Likewise.
8478 (lwp_stop_reason): Likewise.
8479 * linux-x86-low.c (update_debug_registers_callback):
8480 Use lwp_is_stopped.
8481 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8482 lwp_stop_reason.
8483
8484 2015-03-24 Gary Benson <gbenson@redhat.com>
8485
8486 * linux-low.h (linux_stop_lwp): Remove declaration.
8487
8488 2015-03-24 Gary Benson <gbenson@redhat.com>
8489
8490 * linux-low.h: Include nat/linux-nat.h.
8491 * linux-low.c (iterate_over_lwps_args): New structure.
8492 (iterate_over_lwps_filter): New function.
8493 (iterate_over_lwps): Likewise.
8494 * linux-x86-low.c (update_debug_registers_callback):
8495 Update signature to what iterate_over_lwps expects.
8496 Remove PID check that iterate_over_lwps now performs.
8497 (x86_dr_low_set_addr): Use iterate_over_lwps.
8498 (x86_dr_low_set_control): Likewise.
8499
8500 2015-03-24 Gary Benson <gbenson@redhat.com>
8501
8502 * linux-x86-low.c (x86_debug_reg_state): New function.
8503 (x86_linux_prepare_to_resume): Use the above.
8504
8505 2015-03-24 Gary Benson <gbenson@redhat.com>
8506
8507 * linux-low.c (current_lwp_ptid): New function.
8508 * linux-x86-low.c: Include nat/linux-nat.h.
8509 (x86_dr_low_get_addr): Use current_lwp_ptid.
8510 (x86_dr_low_get_control): Likewise.
8511 (x86_dr_low_get_status): Likewise.
8512
8513 2015-03-20 Pedro Alves <palves@redhat.com>
8514
8515 * tracepoint.c (cmd_qtstatus): Make "str" const.
8516
8517 2015-03-20 Pedro Alves <palves@redhat.com>
8518
8519 * server.c (handle_general_set): Make "req_str" const.
8520
8521 2015-03-19 Pedro Alves <palves@redhat.com>
8522
8523 * linux-low.c (linux_resume_one_lwp): Rename to ...
8524 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8525 instead call perror_with_name.
8526 (check_ptrace_stopped_lwp_gone): New function.
8527 (linux_resume_one_lwp): Reimplement as wrapper around
8528 linux_resume_one_lwp_throw that swallows errors if the LWP is
8529 gone.
8530
8531 2015-03-19 Pedro Alves <palves@redhat.com>
8532
8533 * linux-low.c (count_events_callback, select_event_lwp_callback):
8534 No longer check whether the thread has resume_stop as last resume
8535 kind.
8536
8537 2015-03-19 Pedro Alves <palves@redhat.com>
8538
8539 * linux-low.c (count_events_callback, select_event_lwp_callback):
8540 Use the lwp's status_pending_p field, not the thread's.
8541
8542 2015-03-19 Pedro Alves <palves@redhat.com>
8543
8544 * linux-low.c (select_event_lwp_callback): Update comments to
8545 no longer mention SIGTRAP.
8546
8547 2015-03-18 Gary Benson <gbenson@redhat.com>
8548
8549 * server.c (handle_query): Do not report vFile:fstat as supported.
8550
8551 2015-03-11 Gary Benson <gbenson@redhat.com>
8552
8553 * hostio.c (sys/types.h): New include.
8554 (sys/stat.h): Likewise.
8555 (common-remote-fileio.h): Likewise.
8556 (handle_fstat): New function.
8557 (handle_vFile): Handle vFile:fstat packets.
8558
8559 2015-03-11 Gary Benson <gbenson@redhat.com>
8560
8561 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8562 struct stat.st_blocks and struct stat.st_blksize.
8563 * configure: Regenerate.
8564 * config.in: Likewise.
8565 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8566 (OBS): Add common-remote-fileio.o.
8567 (common-remote-fileio.o): New rule.
8568
8569 2015-03-09 Pedro Alves <palves@redhat.com>
8570
8571 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8572 'struct sockaddr' pointer in 'accept' call.
8573
8574 2015-03-09 Pedro Alves <palves@redhat.com>
8575
8576 Revert:
8577 2015-03-07 Pedro Alves <palves@redhat.com>
8578 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8579 or <winsock2.h> here. Instead include "gdb_socket.h".
8580 (remote_open): Use union gdb_sockaddr_u.
8581 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8582 or <winsock2.h> here. Instead include "gdb_socket.h".
8583 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8584 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8585 or <sys/un.h>.
8586 (init_named_socket, gdb_agent_helper_thread): Use union
8587 gdb_sockaddr_u.
8588
8589 2015-03-07 Pedro Alves <palves@redhat.com>
8590
8591 * configure.ac (build_warnings): Move
8592 -Wdeclaration-after-statement to the C-specific set.
8593 * configure: Regenerate.
8594
8595 2015-03-07 Pedro Alves <palves@redhat.com>
8596
8597 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8598 or <winsock2.h> here. Instead include "gdb_socket.h".
8599 (remote_open): Use union gdb_sockaddr_u.
8600 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8601 or <winsock2.h> here. Instead include "gdb_socket.h".
8602 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8603 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8604 or <sys/un.h>.
8605 (init_named_socket, gdb_agent_helper_thread): Use union
8606 gdb_sockaddr_u.
8607
8608 2015-03-07 Pedro Alves <palves@redhat.com>
8609
8610 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
8611 instead.
8612
8613 2015-03-06 Yao Qi <yao.qi@linaro.org>
8614
8615 * linux-aarch64-low.c (aarch64_insert_point): Use
8616 show_debug_regs as a boolean.
8617 (aarch64_remove_point): Likewise.
8618
8619 2015-03-05 Pedro Alves <palves@redhat.com>
8620
8621 * lynx-low.c (lynx_target_ops): Install NULL hooks for
8622 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8623 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
8624 * nto-low.c (nto_target_ops): Likewise.
8625 * spu-low.c (spu_target_ops): Likewise.
8626 * win32-low.c (win32_target_ops): Likewise.
8627
8628 2015-03-04 Pedro Alves <palves@redhat.com>
8629
8630 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
8631 Decide whether a breakpoint triggered based on the SIGTRAP's
8632 siginfo.si_code.
8633 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8634 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
8635 (linux_low_filter_event): Check for breakpoints before checking
8636 watchpoints.
8637 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
8638 siginfo.si_code.
8639 (linux_stopped_by_sw_breakpoint)
8640 (linux_supports_stopped_by_sw_breakpoint)
8641 (linux_stopped_by_hw_breakpoint)
8642 (linux_supports_stopped_by_hw_breakpoint): New functions.
8643 (linux_target_ops): Install new target methods.
8644
8645 2015-03-04 Pedro Alves <palves@redhat.com>
8646
8647 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
8648 * server.c (swbreak_feature, hwbreak_feature): New globals.
8649 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
8650 (captured_main): Clear swbreak_feature and hwbreak_feature.
8651 * server.h (swbreak_feature, hwbreak_feature): Declare.
8652 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
8653 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
8654 supports_stopped_by_hw_breakpoint>: New fields.
8655 (target_supports_stopped_by_sw_breakpoint)
8656 (target_stopped_by_sw_breakpoint)
8657 (target_supports_stopped_by_hw_breakpoint)
8658 (target_stopped_by_hw_breakpoint): Declare.
8659
8660 2015-03-04 Pedro Alves <palves@redhat.com>
8661
8662 enum lwp_stop_reason -> enum target_stop_reason
8663 * linux-low.c (check_stopped_by_breakpoint): Adjust.
8664 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
8665 (linux_wait_1, stuck_in_jump_pad_callback)
8666 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
8667 (linux_stopped_by_watchpoint):
8668 * linux-low.h (enum lwp_stop_reason): Delete.
8669 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8670 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8671
8672 2015-03-04 Yao Qi <yao.qi@linaro.org>
8673
8674 * Makefile.in (SFILES): Add linux-aarch64-low.c.
8675
8676 2015-03-03 Gary Benson <gbenson@redhat.com>
8677
8678 * hostio.c (handle_vFile): Fix prefix lengths.
8679
8680 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8681
8682 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
8683 ptr_bits.
8684
8685 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8686
8687 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
8688 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
8689 (clean): Add "rm -f" for above C files.
8690 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
8691 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
8692 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
8693 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
8694 * linux-s390-low.c (HWCAP_S390_VX): New macro.
8695 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
8696 (init_registers_s390x_vx_linux64)
8697 (init_registers_s390x_tevx_linux64)
8698 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8699 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
8700 declarations.
8701 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
8702 (s390_store_vxrs_high): New functions.
8703 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
8704 NT_S390_VXRS_HIGH.
8705 (s390_arch_setup): Add logic for selecting one of the new target
8706 descriptions. Activate the new vector regsets if applicable.
8707 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
8708 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
8709 and init_registers_s390x_tevx_linux64.
8710
8711 2015-03-01 Pedro Alves <palves@redhat.com>
8712
8713 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
8714 parameter.
8715
8716 2015-02-27 Pedro Alves <palves@redhat.com>
8717
8718 * linux-x86-low.c (u_debugreg_offset): New function.
8719 (x86_linux_dr_get, x86_linux_dr_set): Use it.
8720
8721 2015-02-27 Pedro Alves <palves@redhat.com>
8722
8723 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8724 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
8725 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8726 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8727 (ps_lsetfpregs, ps_getpid)
8728 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
8729 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
8730 (ps_lsetxregs, ps_plog): Declare.
8731
8732 2015-02-27 Pedro Alves <palves@redhat.com>
8733
8734 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
8735 IP_AGENT_EXPORT_FUNC.
8736 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
8737 IP_AGENT_EXPORT_FUNC.
8738 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
8739 (IP_AGENT_EXPORT): Delete.
8740 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8741 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8742 (gdb_trampoline_buffer_error, collecting, gdb_collect)
8743 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
8744 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
8745 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
8746 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
8747 (traceframe_read_count, traceframe_write_count)
8748 (traceframes_created, trace_state_variables, get_raw_reg)
8749 (get_trace_state_variable_value, set_trace_state_variable_value)
8750 (ust_loaded, helper_thread_id, cmd_buf): Use
8751 IPA_SYM_EXPORTED_NAME.
8752 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
8753 (tracepoints) Use IP_AGENT_EXPORT_VAR.
8754 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
8755 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8756 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
8757 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
8758 EXTERN_C_PUSH/EXTERN_C_POP.
8759 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
8760 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
8761 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8762 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
8763 (traceframe_write_count, traceframe_read_count)
8764 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
8765 (about_to_request_buffer_space, get_trace_state_variable_value)
8766 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
8767 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
8768 EXTERN_C_PUSH/EXTERN_C_POP.
8769 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
8770 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
8771 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
8772 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8773 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8774 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8775 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
8776 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
8777 Define.
8778 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
8779 (IP_AGENT_EXPORT_VAR_DECL): Define.
8780 (tracing): Declare.
8781 (gdb_agent_get_raw_reg): Declare.
8782
8783 2015-02-27 Tom Tromey <tromey@redhat.com>
8784 Pedro Alves <palves@redhat.com>
8785
8786 Rename symbols whose names are reserved C++ keywords throughout.
8787
8788 2015-02-27 Pedro Alves <palves@redhat.com>
8789
8790 * Makefile.in (COMPILER): New, get it from autoconf.
8791 (CXX): Get from autoconf instead.
8792 (COMPILE.pre): Use COMPILER.
8793 (CC-LD): Rename to ...
8794 (CC_LD): ... this. Use COMPILER.
8795 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
8796 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8797 * acinclude.m4: Include build-with-cxx.m4.
8798 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8799 Disable -Werror by default if building in C++ mode.
8800 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8801 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
8802 the C++ compiler. Save/restore CXXFLAGS too.
8803 * configure: Regenerate.
8804
8805 2015-02-27 Pedro Alves <palves@redhat.com>
8806
8807 * acinclude.m4: Include libiberty.m4.
8808 * configure.ac: Call libiberty_INIT.
8809 * config.in, configure: Regenerate.
8810
8811 2015-02-26 Pedro Alves <palves@redhat.com>
8812
8813 * linux-low.c (linux_wait_1): When incrementing the PC past a
8814 program breakpoint always use the_low_target.breakpoint_len as
8815 increment, rather than the maximum between that and
8816 the_low_target.decr_pc_after_break.
8817
8818 2015-02-23 Pedro Alves <palves@redhat.com>
8819
8820 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
8821 thread was doing a step-over; always adjust the PC if
8822 we stepped over a permanent breakpoint.
8823 (linux_wait_1): If we stepped over breakpoint that was on top of a
8824 permanent breakpoint, manually advance the PC past it.
8825
8826 2015-02-23 Pedro Alves <palves@redhat.com>
8827
8828 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
8829 modes.
8830 (x86_fill_gregset, x86_store_gregset): Use it when handling
8831 $orig_eax.
8832
8833 2015-02-20 Pedro Alves <palves@redhat.com>
8834
8835 * thread-db.c: Include "nat/linux-procfs.h".
8836 (thread_db_init): Skip listing new threads if the kernel supports
8837 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
8838
8839 2015-02-20 Pedro Alves <palves@redhat.com>
8840
8841 * linux-low.c (status_pending_p_callback): Use ptid_match.
8842
8843 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8844
8845 PR breakpoints/16812
8846 * linux-low.c (wstatus_maybe_breakpoint): Remove.
8847 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
8848 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
8849
8850 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8851
8852 PR breakpoints/15956
8853 * tracepoint.c (cmd_qtinit): Add check for current_thread.
8854
8855 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8856
8857 * linux-low.c (linux_low_btrace_conf): Print size.
8858 * server.c (handle_btrace_conf_general_set): New.
8859 (hanle_general_set): Call handle_btrace_conf_general_set.
8860 (handle_query): Report Qbtrace-conf:bts:size as supported.
8861
8862 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8863
8864 * linux-low.c (linux_low_enable_btrace): Update parameters.
8865 (linux_low_btrace_conf): New.
8866 (linux_target_ops)<to_btrace_conf>: Initialize.
8867 * server.c (current_btrace_conf): New.
8868 (handle_btrace_enable): Rename to ...
8869 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
8870 to target_enable_btrace. Update comment. Update users.
8871 (handle_qxfer_btrace_conf): New.
8872 (qxfer_packets): Add btrace-conf entry.
8873 (handle_query): Report qXfer:btrace-conf:read as supported packet.
8874 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
8875 (target_ops)<read_btrace_conf>: New.
8876 (target_enable_btrace): Update parameters.
8877 (target_read_btrace_conf): New.
8878
8879 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8880
8881 * server.c (handle_btrace_general_set): Remove call to
8882 target_supports_btrace.
8883 (supported_btrace_packets): New.
8884 (handle_query): Call supported_btrace_packets.
8885 * target.h: include btrace-common.h.
8886 (btrace_target_info): Removed.
8887 (supports_btrace, target_supports_btrace): Update parameters.
8888
8889 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8890
8891 * Makefile.in (SFILES): Add common/btrace-common.c.
8892 (OBS): Add common/btrace-common.o.
8893 (btrace-common.o): Add build rules.
8894 * linux-low: Include btrace-common.h.
8895 (linux_low_read_btrace): Use struct btrace_data. Call
8896 btrace_data_init and btrace_data_fini.
8897
8898 2015-02-06 Pedro Alves <palves@redhat.com>
8899
8900 * thread-db.c (find_new_threads_callback): Add debug output.
8901
8902 2015-02-04 Pedro Alves <palves@redhat.com>
8903
8904 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
8905 (resume_stopped_resumed_lwps): New function.
8906 (linux_wait_for_event_filtered): Use it.
8907
8908 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8909
8910 * Makefile.in (SFILES): Add linux-personality.c.
8911 (linux-personality.o): New rule.
8912 * configure.srv (srv_linux_obj): Add linux-personality.o to the
8913 list of objects to be built.
8914 * linux-low.c: Include nat/linux-personality.h.
8915 (linux_create_inferior): Remove code to disable address space
8916 randomization (moved to ../nat/linux-personality.c). Create
8917 cleanup to disable address space randomization.
8918
8919 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8920
8921 * Makefile.in (posix-strerror.o): New rule.
8922 (mingw-strerror.o): Likewise.
8923 * configure: Regenerated.
8924 * configure.ac: Source file ../common/common.host. Initialize new
8925 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
8926
8927 2015-01-14 Yao Qi <yao@codesourcery.com>
8928
8929 * Makefile.in (SFILES): Add nat/ppc-linux.c.
8930 (ppc-linux.o): New rule.
8931 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
8932 * configure.ac: AC_CHECK_FUNCS(getauxval).
8933 * config.in: Re-generated.
8934 * configure: Re-generated.
8935 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
8936 ppc64_64bit_inferior_p
8937
8938 2015-01-14 Yao Qi <yao@codesourcery.com>
8939
8940 * linux-ppc-low.c: Include "nat/ppc-linux.h".
8941 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
8942 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
8943 (PT_ORIG_R3, PT_TRAP): Likewise.
8944 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
8945 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
8946 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
8947
8948 2015-01-10 Joel Brobecker <brobecker@adacore.com>
8949
8950 * i387-fp.c (i387_cache_to_xsave): In look over
8951 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
8952 zmmh_low_space field by use of zmmh_high_space.
8953
8954 2015-01-09 Pedro Alves <palves@redhat.com>
8955
8956 * linux-low.c (step_over_bkpt): Move higher up in the file.
8957 (handle_extended_wait): Don't store the stop_pc here.
8958 (get_stop_pc): Adjust comments and rename to ...
8959 (check_stopped_by_breakpoint): ... this. Record whether the LWP
8960 stopped for a software breakpoint or hardware breakpoint.
8961 (thread_still_has_status_pending_p): New function.
8962 (status_pending_p_callback): Use
8963 thread_still_has_status_pending_p. If the event is no longer
8964 interesting, resume the LWP.
8965 (handle_tracepoints): Add assert.
8966 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
8967 (wstatus_maybe_breakpoint): New function.
8968 (cancel_breakpoint): Delete function.
8969 (check_stopped_by_watchpoint): New function, factored out from
8970 linux_low_filter_event.
8971 (lp_status_maybe_breakpoint): Delete function.
8972 (linux_low_filter_event): Remove filter_ptid argument.
8973 Leave thread group exits pending here. Store the LWP's stop PC.
8974 Always leave events pending.
8975 (linux_wait_for_event_filtered): Pull all events out of the
8976 kernel, and leave them all pending.
8977 (count_events_callback, select_event_lwp_callback): Consider all
8978 events.
8979 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
8980 (select_event_lwp): Only give preference to the stepping LWP in
8981 all-stop mode. Adjust comments.
8982 (ignore_event): New function.
8983 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
8984 references to cancel_breakpoints. Adjust to renames. Also give
8985 equal priority to all LWPs that have had events in non-stop mode.
8986 If reporting a software breakpoint event, unadjust the LWP's PC.
8987 (linux_wait): If linux_wait_1 returned an ignored event, retry.
8988 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
8989 Adjust.
8990 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
8991 (resume_status_pending_p): Use thread_still_has_status_pending_p.
8992 (linux_stopped_by_watchpoint): Adjust.
8993 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
8994 * linux-low.h (enum lwp_stop_reason): New.
8995 (struct lwp_info) <stop_pc>: Adjust comment.
8996 <stopped_by_watchpoint>: Delete field.
8997 <stop_reason>: New field.
8998 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8999 * mem-break.c (software_breakpoint_inserted_here)
9000 (hardware_breakpoint_inserted_here): New function.
9001 * mem-break.h (software_breakpoint_inserted_here)
9002 (hardware_breakpoint_inserted_here): Declare.
9003 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9004 (cancel_breakpoints): Delete.
9005 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9006 (upload_fast_traceframes): Remove references to
9007 cancel_breakpoints.
9008
9009 2015-01-09 Pedro Alves <palves@redhat.com>
9010
9011 * thread-db.c (find_new_threads_callback): Ignore thread if the
9012 kernel thread ID is -1.
9013
9014 2015-01-09 Pedro Alves <palves@redhat.com>
9015
9016 * linux-low.c (linux_attach_fail_reason_string): Move to
9017 nat/linux-ptrace.c, and rename.
9018 (linux_attach_lwp): Update comment.
9019 (attach_proc_task_lwp_callback): New function.
9020 (linux_attach): Adjust to rename and use
9021 linux_proc_attach_tgid_threads.
9022 (linux_attach_fail_reason_string): Delete declaration.
9023
9024 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9025
9026 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9027 * server.c (gdbserver_version): Likewise.
9028
9029 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9030
9031 * remote-utils.c: Include ctype.h.
9032 (input_interrupt): Explicitly handle the case when the char
9033 received is the NUL byte. Improve the printing of non-ASCII
9034 characters.
9035
9036 2014-12-16 Joel Brobecker <brobecker@adacore.com>
9037
9038 * linux-low.c (linux_low_filter_event): Update call to
9039 linux_enable_event_reporting following the addition of
9040 a new parameter to that function.
9041
9042 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
9043
9044 PR server/17457
9045 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9046 (AARCH64_FPCR_REGNO): Likewise.
9047 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9048 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9049 (aarch64_store_fpregset): Likewise.
9050
9051 2014-12-15 Joel Brobecker <brobecker@adacore.com>
9052
9053 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9054 Remove FIXME comment about assumption about N.
9055
9056 2014-12-13 Joel Brobecker <brobecker@adacore.com>
9057
9058 * configure.ac: If large-file support is disabled in GDBserver,
9059 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
9060 * configure: Regenerate.
9061
9062 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9063
9064 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
9065 warning upon ENODATA from ptrace.
9066 * linux-s390-low.c (s390_store_tdb): New.
9067 (s390_regsets): Add regset for NT_S390_TDB.
9068
9069 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9070
9071 * linux-low.c (regsets_store_inferior_registers): Skip regsets
9072 without a fill_function.
9073 * linux-s390-low.c (s390_fill_last_break): Remove.
9074 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
9075 (s390_arch_setup): Use regset's size instead of fill_function for
9076 loop end condition.
9077
9078 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9079
9080 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
9081 the regset's store function when ptrace returned an error.
9082 * regcache.c (get_thread_regcache): Invalidate register cache
9083 before fetching inferior's registers.
9084
9085 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9086
9087 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9088 while-loop as for-loop.
9089 (regsets_store_inferior_registers): Likewise.
9090
9091 2014-11-28 Yao Qi <yao@codesourcery.com>
9092
9093 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9094 * config.in, configure: Re-generate.
9095 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9096 is defined.
9097
9098 2014-11-21 Yao Qi <yao@codesourcery.com>
9099
9100 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
9101 (AC_CHECK_HEADERS): Remove malloc.h.
9102 * configure: Re-generated.
9103 * config.in: Re-generated.
9104 * server.h: Don't include alloca.h and malloc.h.
9105 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
9106 Don't include malloc.h.
9107
9108 2014-11-17 Joel Brobecker <brobecker@adacore.com>
9109
9110 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9111 corresponding ERRNO check in same block.
9112
9113 2014-11-12 Pedro Alves <palves@redhat.com>
9114
9115 * server.c (cont_thread): Update comment.
9116 (start_inferior, attach_inferior): No longer clear cont_thread.
9117 (handle_v_cont): No longer set cont_thread.
9118 (captured_main): Clear cont_thread each time a GDB connects.
9119
9120 2014-11-12 Pedro Alves <palves@redhat.com>
9121
9122 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
9123 thread, and don't resume all threads if the Hc thread has exited.
9124
9125 2014-11-12 Pedro Alves <palves@redhat.com>
9126
9127 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9128 the process group instead of to a specific LWP.
9129
9130 2014-10-15 Pedro Alves <palves@redhat.com>
9131
9132 PR server/17487
9133 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9134 parameter.
9135 (arm_set_thread_context): Delete.
9136 (the_low_target): Adjust.
9137 * win32-i386-low.c (debug_registers_changed)
9138 (debug_registers_used): Delete.
9139 (update_debug_registers_callback): New function.
9140 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
9141 needing to update their debug registers.
9142 (win32_get_current_dr): New function.
9143 (x86_dr_low_get_addr, x86_dr_low_get_control)
9144 (x86_dr_low_get_status): Fetch the debug register from the thread
9145 record's context.
9146 (i386_initial_stuff): Adjust.
9147 (i386_get_thread_context): Remove current_event parameter. Don't
9148 clear debug_registers_changed nor copy DR values to
9149 debug_reg_state.
9150 (i386_set_thread_context): Delete.
9151 (i386_prepare_to_resume): New function.
9152 (i386_thread_added): Mark the thread as needing to update irs
9153 debug registers.
9154 (the_low_target): Remove i386_set_thread_context and install
9155 i386_prepare_to_resume.
9156 * win32-low.c (win32_get_thread_context): Adjust.
9157 (win32_set_thread_context): Use SetThreadContext
9158 directly.
9159 (win32_prepare_to_resume): New function.
9160 (win32_require_context): New function, factored out from ...
9161 (thread_rec): ... this.
9162 (continue_one_thread): Call win32_prepare_to_resume on each thread
9163 we're about to continue.
9164 (win32_resume): Call win32_prepare_to_resume on the event thread.
9165 * win32-low.h (struct win32_thread_info)
9166 <debug_registers_changed>: New field.
9167 (struct win32_target_ops): Change prototype of set_thread_context,
9168 delete set_thread_context and add prepare_to_resume.
9169 (win32_require_context): New declaration.
9170
9171 2014-10-08 Gary Benson <gbenson@redhat.com>
9172
9173 * server.h: Do not include common-exceptions.h.
9174
9175 2014-10-08 Gary Benson <gbenson@redhat.com>
9176
9177 * server.h: Do not include cleanups.h.
9178
9179 2014-09-30 James Hogan <james.hogan@imgtec.com>
9180
9181 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9182 mips64-dsp-linux.c.
9183
9184 2014-09-23 Yao Qi <yao@codesourcery.com>
9185
9186 * linux-low.c (lp_status_maybe_breakpoint): New function.
9187 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
9188 (count_events_callback): Likewise.
9189 (select_event_lwp_callback): Likewise.
9190 (cancel_breakpoints_callback): Likewise.
9191
9192 2014-09-19 Don Breazeal <donb@codesourcery.com>
9193
9194 * linux-low.c (handle_extended_wait): Call
9195 linux_ptrace_get_extended_event.
9196 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
9197 linux_is_extended_waitstatus.
9198
9199 2014-09-16 Joel Brobecker <brobecker@adacore.com>
9200
9201 * Makefile.in (CPPFLAGS): Define.
9202 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9203 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9204
9205 2014-09-16 Gary Benson <gbenson@redhat.com>
9206
9207 * inferiors.h (current_inferior): Renamed as...
9208 (current_thread): New variable. All uses updated.
9209 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
9210 (maybe_move_out_of_jump_pad): Likewise.
9211 (cancel_breakpoint): Likewise.
9212 (linux_low_filter_event): Likewise.
9213 (wait_for_sigstop): Likewise.
9214 (linux_resume_one_lwp): Likewise.
9215 (need_step_over_p): Likewise.
9216 (start_step_over): Likewise.
9217 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
9218 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
9219 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
9220 and save_inferior as saved_thread.
9221 * regcache.c (get_thread_regcache): Renamed saved_inferior as
9222 saved_thread.
9223 (regcache_invalidate_thread): Likewise.
9224 * remote-utils.c (prepare_resume_reply): Likewise.
9225 * thread-db.c (thread_db_get_tls_address): Likewise.
9226 (disable_thread_event_reporting): Likewise.
9227 (remove_thread_event_breakpoints): Likewise.
9228 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
9229 as saved_thread.
9230 * target.h (set_desired_inferior): Renamed as...
9231 (set_desired_thread): New declaration. All uses updated.
9232 * server.c (myresume): Updated comment to reference thread instead
9233 of inferior.
9234 (handle_serial_event): Likewise.
9235 (handle_target_event): Likewise.
9236
9237 2014-09-12 Tom Tromey <tromey@redhat.com>
9238 Gary Benson <gbenson@redhat.com>
9239
9240 * regcache.h: Include common-regcache.h.
9241 (regcache_read_pc): Don't declare.
9242 * regcache.c (get_thread_regcache_for_ptid): New function.
9243
9244 2014-09-11 Tom Tromey <tromey@redhat.com>
9245 Gary Benson <gbenson@redhat.com>
9246
9247 * symbol.c: New file.
9248 * Makefile.in (SFILES): Add symbol.c.
9249 (OBS): Add symbol.o.
9250
9251 2014-09-11 Gary Benson <gbenson@redhat.com>
9252
9253 * target.c (target_stop_ptid, target_continue_ptid): New
9254 functions.
9255
9256 2014-09-11 Tom Tromey <tromey@redhat.com>
9257 Gary Benson <gbenson@redhat.com>
9258
9259 * target.h: Include target/target.h.
9260 * target.c (target_read_memory, target_read_uint32)
9261 (target_write_memory): New functions.
9262
9263 2014-09-11 Gary Benson <gbenson@redhat.com>
9264
9265 * server.h (debug_hw_points): Don't declare.
9266 * server.c (debug_hw_points): Don't define. Replace all uses
9267 with show_debug_regs.
9268 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
9269 all uses with show_debug_regs.
9270
9271 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9272
9273 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9274 endianness into account.
9275 (ppc_supply_ptrace_register): Likewise.
9276
9277 2014-09-03 James Hogan <james.hogan@imgtec.com>
9278
9279 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9280 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9281
9282 2014-09-03 Gary Benson <gbenson@redhat.com>
9283
9284 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9285 ALL_DEBUG_ADDRESS_REGISTERS.
9286
9287 2014-09-02 Gary Benson <gbenson@redhat.com>
9288
9289 * i386-low.h: Renamed as...
9290 * x86-low.h: New file. All type, function and variable name
9291 prefixes changed from "i386_" to "x86_". All references updated.
9292 * i386-low.c: Renamed as...
9293 * x86-low.c: New file. All type, function and variable name
9294 prefixes changed from "i386_" to "x86_". All references updated.
9295
9296 2014-09-02 Gary Benson <gbenson@redhat.com>
9297
9298 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9299 (x86_linux_new_thread): Likewise.
9300
9301 2014-08-29 Gary Benson <gbenson@redhat.com>
9302
9303 * server.h (setjmp.h): Do not include.
9304 (toplevel): Do not declare.
9305 (common-exceptions.h): Include.
9306 (cleanups.h): Likewise.
9307 * server.c (toplevel): Do not define.
9308 (exit_code): New static global.
9309 (detach_or_kill_for_exit_cleanup): New function.
9310 (main): New function. Original main renamed to...
9311 (captured_main): New function.
9312 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9313
9314 2014-08-29 Gary Benson <gbenson@redhat.com>
9315
9316 * Makefile.in (SFILES): Add common/common-exceptions.c.
9317 (OBS): Add common-exceptions.o.
9318 (common-exceptions.o): New rule.
9319 * utils.c (prepare_to_throw_exception): New function.
9320
9321 2014-08-29 Gary Benson <gbenson@redhat.com>
9322
9323 * config.in: Regenerate.
9324 * configure: Likewise.
9325
9326 2014-08-29 Gary Benson <gbenson@redhat.com>
9327
9328 * Makefile.in (SFILES): Add common/cleanups.c.
9329 (OBS): cleanups.o.
9330 (cleanups.o): New rule.
9331
9332 2014-08-29 Gary Benson <gbenson@redhat.com>
9333
9334 * utils.c (internal_vwarning): New function.
9335
9336 2014-08-28 Gary Benson <gbenson@redhat.com>
9337
9338 * utils.h (fatal): Remove declaration.
9339 * utils.c (fatal): Remove function.
9340
9341 2014-08-28 Gary Benson <gbenson@redhat.com>
9342
9343 * tracepoint.c (gdb_agent_init): Replace fatal with
9344 perror_with_name.
9345 (initialize_tracepoint): Likewise.
9346
9347 2014-08-28 Gary Benson <gbenson@redhat.com>
9348
9349 * remote-utils.c (remote_prepare): Replace fatal with error.
9350
9351 2014-08-28 Gary Benson <gbenson@redhat.com>
9352
9353 * linux-low.c (linux_async): Replace fatal with warning.
9354 Tidy up and return.
9355 (linux_start_non_stop): Return -1 if linux_async failed.
9356
9357 2014-08-28 Gary Benson <gbenson@redhat.com>
9358
9359 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9360 gdb_assert.
9361 (i386_dr_low_get_addr): Remove vague comment.
9362 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9363 gdb_assert.
9364
9365 2014-08-28 Gary Benson <gbenson@redhat.com>
9366
9367 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9368 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9369 internal_error.
9370 (linux_resume_one_lwp): Likewise.
9371 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9372 gdb_assert.
9373 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
9374 with internal_error.
9375 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
9376 (init_register_cache): Replace fatal with gdb_assert_not_reached.
9377 (find_register_by_name): Replace fatal with internal_error.
9378 (find_regno): Likewise.
9379 * tdesc.c (init_target_desc): Replace check with gdb_assert.
9380 * thread-db.c (thread_db_create_event): Likewise.
9381 (thread_db_load_search): Likewise.
9382 (try_thread_db_load_1): Likewise.
9383 * tracepoint.c (get_jump_space_head): Replace fatal with
9384 internal_error.
9385 (claim_trampoline_space): Likewise.
9386 (have_fast_tracepoint_trampoline_buffer): Likewise.
9387 (cmd_qtstart): Likewise.
9388 (stop_tracing): Likewise.
9389 (fast_tracepoint_collecting): Likewise.
9390 (target_malloc): Likewise.
9391 (download_tracepoint): Likewise.
9392 (download_trace_state_variables): Replace check with gdb_assert.
9393 (upload_fast_traceframes): Replace fatal with internal_error.
9394
9395 2014-08-19 Tom Tromey <tromey@redhat.com>
9396 Gary Benson <gbenson@redhat.com>
9397
9398 * Makefile.in (SFILES): Add common/common-debug.c.
9399 (OBS): Add common-debug.o.
9400 (common-debug.o): New rule.
9401 * debug.h (debug_printf): Don't declare.
9402 * debug.c (debug_printf): Renamed and rewritten as...
9403 (debug_vprintf): New function.
9404
9405 2014-08-19 Gary Benson <gbenson@redhat.com>
9406
9407 * utils.h: Do not include print-utils.h.
9408
9409 2014-08-19 Tom Tromey <tromey@redhat.com>
9410 Gary Benson <gbenson@redhat.com>
9411
9412 * server.h: Add static assertion.
9413 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9414
9415 2014-08-19 Tom Tromey <tromey@redhat.com>
9416 Gary Benson <gbenson@redhat.com>
9417
9418 * Makefile.in (SFILES): Add common/errors.c.
9419 (OBS): Add errors.o.
9420 (IPA_OBS): Add errors-ipa.o.
9421 (errors.o): New rule.
9422 (errors-ipa.o): Likewise.
9423 * utils.h (perror_with_name, error, warning): Don't declare.
9424 * utils.c (warning): Renamed and rewritten as...
9425 (vwarning): New function.
9426 (error): Renamed and rewritten as...
9427 (verror): New function.
9428 (internal_error): Renamed and rewritten as...
9429 (internal_verror): New function.
9430
9431 2014-08-07 Gary Benson <gbenson@redhat.com>
9432
9433 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9434 * configure: Regenerate.
9435 * config.in: Likewise.
9436 * server.h: Do not include errno.h.
9437 * event-loop.c: Likewise.
9438 * hostio-errno.c: Likewise.
9439 * linux-low.c: Likewise.
9440 * remote-utils.c: Likewise.
9441 * spu-low.c: Likewise.
9442 * utils.c: Likewise.
9443 * gdbreplay.c: Unconditionally include errno.h.
9444
9445 2014-08-07 Gary Benson <gbenson@redhat.com>
9446
9447 * server.h: Do not include string.h.
9448 * event-loop.c: Likewise.
9449 * linux-low.c: Likewise.
9450 * regcache.c: Likewise.
9451 * remote-utils.c: Likewise.
9452 * spu-low.c: Likewise.
9453 * utils.c: Likewise.
9454
9455 2014-08-07 Gary Benson <gbenson@redhat.com>
9456
9457 * server.h: Do not include gdb_assert.h.
9458
9459 2014-08-07 Gary Benson <gbenson@redhat.com>
9460
9461 * server.h: Do not include common-utils.h.
9462
9463 2014-08-07 Gary Benson <gbenson@redhat.com>
9464
9465 * server.h: Do not include ptid.h.
9466 * notif.h: Likewise.
9467
9468 2014-08-07 Gary Benson <gbenson@redhat.com>
9469
9470 * server.h: Do not include gdb_locale.h.
9471
9472 2014-08-07 Gary Benson <gbenson@redhat.com>
9473
9474 * server.h: Do not include gdb/signals.h.
9475 * win32-low.c: Likewise.
9476
9477 2014-08-07 Gary Benson <gbenson@redhat.com>
9478
9479 * server.h: Do not include pathmax.h.
9480
9481 2014-08-07 Gary Benson <gbenson@redhat.com>
9482
9483 * server.h: Do not include libiberty.h.
9484 * linux-bfin-low.c: Likewise.
9485
9486 2014-08-07 Gary Benson <gbenson@redhat.com>
9487
9488 * server.h: Do not include ansidecl.h.
9489
9490 2014-08-07 Gary Benson <gbenson@redhat.com>
9491
9492 * linux-x86-low.c: Do not include stddef.h.
9493 * lynx-ppc-low.c: Likewise.
9494 * tracepoint.c: Likewise.
9495
9496 2014-08-07 Gary Benson <gbenson@redhat.com>
9497
9498 * server.h: Do not include stdarg.h.
9499 * nto-low.c: Likewise.
9500
9501 2014-08-07 Gary Benson <gbenson@redhat.com>
9502
9503 * server.h: Do not include stdlib.h.
9504 * inferiors.c: Likewise.
9505 * linux-low.c: Likewise.
9506 * regcache.c: Likewise.
9507 * spu-low.c: Likewise.
9508 * tracepoint.c: Likewise.
9509 * utils.c: Likewise.
9510
9511 2014-08-07 Gary Benson <gbenson@redhat.com>
9512
9513 * server.h: Do not include stdio.h.
9514 * linux-low.c: Likewise.
9515 * remote-utils.c: Likewise.
9516 * spu-low.c: Likewise.
9517 * utils.c: Likewise.
9518 * wincecompat.c: Likewise.
9519
9520 2014-08-06 Gary Benson <gbenson@redhat.com>
9521
9522 * regcache.c (init_register_cache): Move conditionals inside if.
9523
9524 2014-08-06 Gary Benson <gbenson@redhat.com>
9525
9526 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9527
9528 2014-07-31 Gary Benson <gbenson@redhat.com>
9529
9530 * ax.h: Do not include server.h.
9531 * gdbthread.h: Likewise.
9532 * lynx-low.h: Likewise.
9533 * notif.h: Likewise.
9534
9535 2014-07-30 Gary Benson <gbenson@redhat.com>
9536
9537 * server.h: Include common-defs.h.
9538 Do not include config.h or build-gnulib-gdbserver/config.h.
9539
9540 2014-07-30 Gary Benson <gbenson@redhat.com>
9541
9542 * hostio-errno.c: Move server.h to top of includes list.
9543 * inferiors.c: Likewise.
9544 * linux-x86-low.c: Likewise.
9545 * notif.c: Include server.h.
9546
9547 2014-07-24 Tom Tromey <tromey@redhat.com>
9548 Gary Benson <gbenson@redhat.com>
9549
9550 * server.h (CORE_ADDR): Now unsigned.
9551
9552 2014-07-16 Pedro Alves <palves@redhat.com>
9553
9554 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9555
9556 2014-07-15 Pedro Alves <palves@redhat.com>
9557
9558 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9559 copy.
9560
9561 2014-07-11 Pedro Alves <palves@redhat.com>
9562
9563 * linux-low.c (kill_wait_lwp): New function, based on
9564 kill_one_lwp_callback, but use my_waitpid directly.
9565 (kill_one_lwp_callback, linux_kill): Use it.
9566
9567 2014-06-23 Pedro Alves <palves@redhat.com>
9568
9569 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9570 before setting DR0..DR3.
9571
9572 2014-06-20 Gary Benson <gbenson@redhat.com>
9573
9574 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9575 * configure: Regenerated.
9576 * config.in: Likewise.
9577
9578 2014-06-20 Gary Benson <gbenson@redhat.com>
9579
9580 * Makefile.in (SFILES): Update locations for files moved
9581 from common to nat.
9582 (object file files): Reordered.
9583
9584 2014-06-20 Gary Benson <gbenson@redhat.com>
9585
9586 * i386-low.h (i386_dr_low_can_set_addr): Removed.
9587 (i386_dr_low_set_addr): Likewise.
9588 (i386_dr_low_get_addr): Likewise.
9589 (i386_dr_low_can_set_control): Likewise.
9590 (i386_dr_low_set_control): Likewise.
9591 (i386_dr_low_get_control): Likewise.
9592 (i386_dr_low_get_status): Likewise.
9593 (i386_get_debug_register_length): Likewise.
9594 * linux-x86-low.c (i386_dr_low_set_addr):
9595 Changed signature. Made static.
9596 (i386_dr_low_get_addr): Likewise.
9597 (i386_dr_low_set_control): Likewise.
9598 (i386_dr_low_get_control): Likewise.
9599 (i386_dr_low_get_status): Likewise.
9600 (i386_dr_low): New global variable.
9601 * win32-i386-low.c (i386_dr_low_set_addr):
9602 Changed signature. Made static.
9603 (i386_dr_low_get_addr): Likewise.
9604 (i386_dr_low_set_control): Likewise.
9605 (i386_dr_low_get_control): Likewise.
9606 (i386_dr_low_get_status): Likewise.
9607 (i386_dr_low): New global variable.
9608
9609 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
9610
9611 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
9612 * Makefile.in (AR, AR_FLAGS): Define.
9613 * configure: Regenerate.
9614
9615 2014-06-19 Gary Benson <gbenson@redhat.com>
9616
9617 * Makefile.in (i386-dregs.o): New rule.
9618 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
9619 * i386-low.c (target.h): Remove include.
9620 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
9621 (DR_CONTROL_SHIFT): Likewise.
9622 (DR_CONTROL_SIZE): Likewise.
9623 (DR_RW_EXECUTE): Likewise.
9624 (DR_RW_WRITE): Likewise.
9625 (DR_RW_READ): Likewise.
9626 (DR_RW_IORW): Likewise.
9627 (DR_LEN_1): Likewise.
9628 (DR_LEN_2): Likewise.
9629 (DR_LEN_4): Likewise.
9630 (DR_LEN_8): Likewise.
9631 (DR_LOCAL_ENABLE_SHIFT): Likewise.
9632 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
9633 (DR_ENABLE_SIZE): Likewise.
9634 (DR_LOCAL_SLOWDOWN): Likewise.
9635 (DR_GLOBAL_SLOWDOWN): Likewise.
9636 (DR_CONTROL_RESERVED): Likewise.
9637 (I386_DR_CONTROL_MASK): Likewise.
9638 (I386_DR_VACANT): Likewise.
9639 (I386_DR_LOCAL_ENABLE): Likewise.
9640 (I386_DR_GLOBAL_ENABLE): Likewise.
9641 (I386_DR_DISABLE): Likewise.
9642 (I386_DR_SET_RW_LEN): Likewise.
9643 (I386_DR_GET_RW_LEN): Likewise.
9644 (I386_DR_WATCH_HIT): Likewise.
9645 (i386_wp_op_t): Likewise.
9646 (i386_show_dr): Likewise.
9647 (i386_length_and_rw_bits): Likewise.
9648 (i386_insert_aligned_watchpoint): Likewise.
9649 (i386_remove_aligned_watchpoint): Likewise.
9650 (i386_handle_nonaligned_watchpoint): Likewise.
9651 i386_update_inferior_debug_regs(): Likewise.
9652 (i386_dr_insert_watchpoint): Likewise.
9653 (i386_dr_remove_watchpoint): Likewise.
9654 (i386_dr_region_ok_for_watchpoint): Likewise.
9655 (i386_dr_stopped_data_address): Likewise.
9656 (i386_dr_stopped_by_watchpoint): Likewise.
9657
9658 2014-06-19 Gary Benson <gbenson@redhat.com>
9659
9660 * i386-low.c (i386_dr_show): Renamed to
9661 i386_show_dr and made static. All uses updated.
9662 (i386_dr_length_and_rw_bits): Renamed to
9663 i386_length_and_rw_bits and made static.
9664 All uses updated.
9665 (i386_dr_insert_aligned_watchpoint): Renamed to
9666 i386_insert_aligned_watchpoint and made static.
9667 All uses updated.
9668 (i386_dr_remove_aligned_watchpoint): Renamed to
9669 i386_remove_aligned_watchpoint and made static.
9670 All uses updated.
9671 (i386_dr_update_inferior_debug_regs): Renamed to
9672 i386_update_inferior_debug_regs and made static.
9673 All uses updated.
9674
9675 2014-06-18 Gary Benson <gbenson@redhat.com>
9676
9677 * i386-low.h (i386_dr_low_can_set_addr): New macro.
9678 (i386_dr_low_can_set_control): Likewise.
9679 (i386_get_debug_register_length): Likewise.
9680 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
9681 (i386_dr_low_can_set_control): Likewise.
9682 (i386_get_debug_register_length): Likewise.
9683
9684 2014-06-17 Gary Benson <gbenson@redhat.com>
9685
9686 * i386-low.h (i386-dregs.h): New include.
9687 (DR_FIRSTADDR): Now in i386-dregs.h.
9688 (DR_LASTADDR): Likewise.
9689 (DR_NADDR): Likewise.
9690 (DR_STATUS): Likewise.
9691 (DR_CONTROL): Likewise.
9692 (i386_debug_reg_state): Likewise.
9693 (i386_dr_insert_watchpoint): Likewise.
9694 (i386_dr_remove_watchpoint): Likewise.
9695 (i386_dr_region_ok_for_watchpoint): Likewise.
9696 (i386_dr_stopped_data_address): Likewise.
9697 (i386_dr_stopped_by_watchpoint): Likewise.
9698 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
9699
9700 2014-06-18 Gary Benson <gbenson@redhat.com>
9701
9702 * i386-low.h (i386_low_insert_watchpoint): Renamed to
9703 i386_dr_insert_watchpoint.
9704 (i386_low_remove_watchpoint): Renamed to
9705 i386_dr_remove_watchpoint.
9706 (i386_low_region_ok_for_watchpoint): Renamed to
9707 i386_dr_region_ok_for_watchpoint.
9708 (i386_low_stopped_data_address): Renamed to
9709 i386_dr_stopped_data_address.
9710 (i386_low_stopped_by_watchpoint): Renamed to
9711 i386_dr_stopped_by_watchpoint.
9712 * i386-low.c (i386_show_dr): Renamed to
9713 i386_dr_show and made nonstatic. All uses updated.
9714 (i386_length_and_rw_bits): Renamed to
9715 i386_dr_length_and_rw_bits and made nonstatic.
9716 All uses updated.
9717 (i386_insert_aligned_watchpoint): Renamed to
9718 i386_dr_insert_aligned_watchpoint and made nonstatic.
9719 All uses updated.
9720 (i386_remove_aligned_watchpoint): Renamed to
9721 i386_dr_remove_aligned_watchpoint and made nonstatic.
9722 All uses updated.
9723 (i386_update_inferior_debug_regs): Renamed to
9724 i386_dr_update_inferior_debug_regs and made nonstatic.
9725 All uses updated.
9726 (i386_low_insert_watchpoint): Renamed to
9727 i386_dr_insert_watchpoint. All uses updated.
9728 (i386_low_remove_watchpoint): Renamed to
9729 i386_dr_remove_watchpoint. All uses updated.
9730 (i386_low_region_ok_for_watchpoint): Renamed to
9731 i386_dr_region_ok_for_watchpoint. All uses updated.
9732 (i386_low_stopped_data_address): Renamed to
9733 i386_dr_stopped_data_address. All uses updated.
9734 (i386_low_stopped_by_watchpoint): Renamed to
9735 i386_dr_stopped_by_watchpoint. All uses updated.
9736
9737 2014-06-18 Gary Benson <gbenson@redhat.com>
9738
9739 * i386-low.c (i386_dr_low_can_set_addr): New macro.
9740 (i386_dr_low_can_set_control): Likewise.
9741 (i386_insert_aligned_watchpoint): New check.
9742
9743 2014-06-18 Gary Benson <gbenson@redhat.com>
9744
9745 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
9746 Renamed to state.
9747
9748 2014-06-18 Gary Benson <gbenson@redhat.com>
9749
9750 * i386-low.c (i386_length_and_rw_bits): Use internal_error
9751 instead of fatal and error.
9752 (i386_handle_nonaligned_watchpoint): Likewise.
9753
9754 2014-06-18 Gary Benson <gbenson@redhat.com>
9755
9756 * i386-low.c (i386_get_debug_register_length): New macro.
9757 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
9758 (i386_show_dr): Use debug_printf instead of fprintf. Use
9759 phex to format values.
9760
9761 2014-06-18 Gary Benson <gbenson@redhat.com>
9762
9763 * i386-low.h: Comment changes.
9764 * i386-low.c: Likewise.
9765
9766 2014-06-18 Gary Benson <gbenson@redhat.com>
9767
9768 * i386-low.c: Whitespace changes.
9769
9770 2014-06-12 Tom Tromey <tromey@redhat.com>
9771
9772 * utils.c (freeargv): Remove.
9773
9774 2014-06-12 Tom Tromey <tromey@redhat.com>
9775
9776 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
9777 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
9778 (parse_debug_format_options): Likewise.
9779 (gdbserver_usage): Likewise.
9780 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
9781 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
9782 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
9783 against libiberty.
9784 ($(LIBGNU)): Depend on libiberty.
9785 (all-lib): Recurse into all subdirs.
9786 (install-only): Invoke "install" target in subdirs.
9787 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
9788 targets.
9789 * configure: Rebuild.
9790 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
9791 for vasprintf, vsnprintf, or gettimeofday.
9792 * configure.srv: Don't add safe-ctype.o or lbasename.o to
9793 srv_tgtobj.
9794
9795 2014-06-05 Joel Brobecker <brobecker@adacore.com>
9796
9797 * development.sh: Delete.
9798 * Makefile.in (config.status): Adjust dependency on development.sh.
9799 * configure.ac: Adjust development.sh source call.
9800 * configure: Regenerate.
9801
9802 2014-06-02 Pedro Alves <palves@redhat.com>
9803
9804 * ax.c (gdb_free_agent_expr): New function.
9805 * ax.h (gdb_free_agent_expr): New declaration.
9806 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
9807 list.
9808 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
9809 static.
9810 (clear_breakpoint_conditions_and_commands): New function.
9811 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
9812 (clear_breakpoint_conditions_and_commands): New declaration.
9813
9814 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9815
9816 * linux-aarch64-low.c (asm/ptrace.h): Include.
9817
9818 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9819
9820 Fix TLS access for -static -pthread.
9821 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
9822 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
9823 (thread_db_load_search, try_thread_db_load_1): Initialize it.
9824
9825 2014-05-20 Pedro Alves <palves@redhat.com>
9826
9827 * linux-aarch64-low.c (aarch64_insert_point)
9828 (aarch64_remove_point): No longer check whether the type is
9829 supported here. Adjust to new interface.
9830 (the_low_target): Install aarch64_supports_z_point_type as
9831 supports_z_point_type method.
9832 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
9833 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
9834 instead of a Z packet char. Adjust.
9835 (arm_supports_z_point_type): New function.
9836 (arm_insert_point, arm_remove_point): Adjust to new interface.
9837 (the_low_target): Install arm_supports_z_point_type.
9838 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
9839 (cris_insert_point, cris_remove_point): Adjust to new interface.
9840 Don't check whether the type is supported here.
9841 (the_low_target): Install cris_supports_z_point_type.
9842 * linux-low.c (linux_supports_z_point_type): New function.
9843 (linux_insert_point, linux_remove_point): Adjust to new interface.
9844 * linux-low.h (struct linux_target_ops) <insert_point,
9845 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
9846 raw_breakpoint pointer parameter.
9847 <supports_z_point_type>: New method.
9848 * linux-mips-low.c (mips_supports_z_point_type): New function.
9849 (mips_insert_point, mips_remove_point): Adjust to new interface.
9850 Use mips_supports_z_point_type.
9851 (the_low_target): Install mips_supports_z_point_type.
9852 * linux-ppc-low.c (the_low_target): Install NULL as
9853 supports_z_point_type method.
9854 * linux-s390-low.c (the_low_target): Install NULL as
9855 supports_z_point_type method.
9856 * linux-sparc-low.c (the_low_target): Install NULL as
9857 supports_z_point_type method.
9858 * linux-x86-low.c (x86_supports_z_point_type): New function.
9859 (x86_insert_point): Adjust to new insert_point interface. Use
9860 insert_memory_breakpoint. Adjust to new
9861 i386_low_insert_watchpoint interface.
9862 (x86_remove_point): Adjust to remove_point interface. Use
9863 remove_memory_breakpoint. Adjust to new
9864 i386_low_remove_watchpoint interface.
9865 (the_low_target): Install x86_supports_z_point_type.
9866 * lynx-low.c (lynx_target_ops): Install NULL as
9867 supports_z_point_type callback.
9868 * nto-low.c (nto_supports_z_point_type): New.
9869 (nto_insert_point, nto_remove_point): Adjust to new interface.
9870 (nto_target_ops): Install nto_supports_z_point_type.
9871 * mem-break.c: Adjust intro comment.
9872 (struct raw_breakpoint) <raw_type, size>: New fields.
9873 <inserted>: Update comment.
9874 <shlib_disabled>: Delete field.
9875 (enum bkpt_type) <gdb_breakpoint>: Delete value.
9876 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
9877 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
9878 (raw_bkpt_type_to_target_hw_bp_type): New function.
9879 (find_enabled_raw_code_breakpoint_at): New function.
9880 (find_raw_breakpoint_at): New type and size parameters. Use them.
9881 (insert_memory_breakpoint): New function, based off
9882 set_raw_breakpoint_at.
9883 (remove_memory_breakpoint): New function.
9884 (set_raw_breakpoint_at): Reimplement.
9885 (set_breakpoint): New, based on set_breakpoint_at.
9886 (set_breakpoint_at): Reimplement.
9887 (delete_raw_breakpoint): Go through the_target->remove_point
9888 instead of assuming memory breakpoints.
9889 (find_gdb_breakpoint_at): Delete.
9890 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
9891 (find_gdb_breakpoint): New function.
9892 (set_gdb_breakpoint_at): Delete.
9893 (z_type_supported): New function.
9894 (set_gdb_breakpoint_1): New function, loosely based off
9895 set_gdb_breakpoint_at.
9896 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
9897 (delete_gdb_breakpoint_at): Delete.
9898 (delete_gdb_breakpoint_1): New function, loosely based off
9899 delete_gdb_breakpoint_at.
9900 (delete_gdb_breakpoint): New function.
9901 (clear_gdb_breakpoint_conditions): Rename to ...
9902 (clear_breakpoint_conditions): ... this. Don't handle a NULL
9903 breakpoint.
9904 (add_condition_to_breakpoint): Make static.
9905 (add_breakpoint_condition): Take a struct breakpoint pointer
9906 instead of an address. Adjust.
9907 (gdb_condition_true_at_breakpoint): Rename to ...
9908 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
9909 z_type parameter.
9910 (gdb_condition_true_at_breakpoint): Reimplement.
9911 (add_breakpoint_commands): Take a struct breakpoint pointer
9912 instead of an address. Adjust.
9913 (gdb_no_commands_at_breakpoint): Rename to ...
9914 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
9915 parameter. Return true if no breakpoint was found. Change debug
9916 output.
9917 (gdb_no_commands_at_breakpoint): Reimplement.
9918 (run_breakpoint_commands): Rename to ...
9919 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
9920 and change return type to boolean.
9921 (run_breakpoint_commands): New function.
9922 (gdb_breakpoint_here): Also check for Z1 breakpoints.
9923 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
9924 breakpoint. Go through the_target->remove_point instead of
9925 assuming memory breakpoint.
9926 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
9927 software and hardware breakpoints.
9928 (reinsert_raw_breakpoint): Go through the_target->insert_point
9929 instead of assuming memory breakpoint.
9930 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
9931 software and hardware breakpoints.
9932 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
9933 Check both software and hardware breakpoints.
9934 (validate_inserted_breakpoint): Assert the breakpoint is a
9935 software breakpoint. Set the inserted flag to -1 instead of
9936 setting shlib_disabled.
9937 (delete_disabled_breakpoints): Adjust.
9938 (validate_breakpoints): Only validate software breakpoints.
9939 Adjust to inserted flag change.
9940 (check_mem_read, check_mem_write): Skip breakpoint types other
9941 than software breakpoints. Adjust to inserted flag change.
9942 * mem-break.h (enum raw_bkpt_type): New enum.
9943 (raw_breakpoint, struct process_info): Forward declare.
9944 (Z_packet_to_target_hw_bp_type): Delete declaration.
9945 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
9946 (set_gdb_breakpoint, delete_gdb_breakpoint)
9947 (clear_breakpoint_conditions): New declarations.
9948 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
9949 (breakpoint_inserted_here): Update comment.
9950 (add_breakpoint_condition, add_breakpoint_commands): Replace
9951 address parameter with a breakpoint pointer parameter.
9952 (gdb_breakpoint_here): Update comment.
9953 (delete_gdb_breakpoint_at): Delete.
9954 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
9955 * server.c (process_point_options): Take a struct breakpoint
9956 pointer instead of an address. Adjust.
9957 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
9958 delete_gdb_breakpoint.
9959 * spu-low.c (spu_target_ops): Install NULL as
9960 supports_z_point_type method.
9961 * target.h: Include mem-break.h.
9962 (struct target_ops) <prepare_to_access_memory>: Update comment.
9963 <supports_z_point_type>: New field.
9964 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9965 instead of a char. Also take a raw breakpoint pointer.
9966 * win32-arm-low.c (the_low_target): Install NULL as
9967 supports_z_point_type.
9968 * win32-i386-low.c (i386_supports_z_point_type): New function.
9969 (i386_insert_point, i386_remove_point): Adjust to new interface.
9970 (the_low_target): Install i386_supports_z_point_type.
9971 * win32-low.c (win32_supports_z_point_type): New function.
9972 (win32_insert_point, win32_remove_point): Adjust to new interface.
9973 (win32_target_ops): Install win32_supports_z_point_type.
9974 * win32-low.h (struct win32_target_ops):
9975 <supports_z_point_type>: New method.
9976 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9977 instead of a char. Also take a raw breakpoint pointer.
9978
9979 2014-05-20 Pedro Alves <palves@redhat.com>
9980
9981 * mem-break.h: Include break-common.h.
9982 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9983 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
9984 (Z_packet_to_target_hw_bp_type): New declaration.
9985 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
9986 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
9987 (Z_PACKET_ACCESS_WP): Delete macros.
9988 (Z_packet_to_hw_type): Delete function.
9989 * i386-low.h: Don't include break-common.h here.
9990 (Z_packet_to_hw_type): Delete declaration.
9991 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
9992 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9993 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
9994 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9995 * linux-aarch64-low.c: Don't include break-common.h here.
9996 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9997 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
9998 (Z_packet_to_target_hw_bp_type): Delete function.
9999 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10000 function.
10001 (mips_insert_point, mips_remove_point): Use
10002 Z_packet_to_target_hw_bp_type.
10003
10004 2014-05-20 Pedro Alves <palves@redhat.com>
10005
10006 * linux-aarch64-low.c: Include break-common.h.
10007 (enum target_point_type): Delete.
10008 (Z_packet_to_point_type): Rename to ...
10009 (Z_packet_to_target_hw_bp_type): ... this, and return a
10010 target_hw_bp_type instead.
10011 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10012 instead of an enum target_point_type.
10013 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10014 breakpoint type.
10015 (aarch64_dr_state_insert_one_point)
10016 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10017 (aarch64_handle_aligned_watchpoint)
10018 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10019 Take an enum target_hw_bp_type instead of an enum
10020 target_point_type.
10021 (aarch64_supports_z_point_type): New function.
10022 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10023 use Z_packet_to_target_hw_bp_type.
10024
10025 2014-05-20 Joel Brobecker <brobecker@adacore.com>
10026
10027 * configure.ac: Only use -Werror by default when DEVELOPMENT
10028 is true.
10029 * configure: Regenerate.
10030
10031 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10032
10033 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10034 * linux-x86-low.c (X86_64_USER_REGS): New.
10035 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10036
10037 2014-04-28 Yao Qi <yao@codesourcery.com>
10038
10039 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10040 name.
10041
10042 2014-04-25 Pedro Alves <palves@redhat.com>
10043
10044 PR server/16255
10045 * linux-low.c (linux_attach_fail_reason_string): New function.
10046 (linux_attach_lwp): Delete.
10047 (linux_attach_lwp_1): Rename to ...
10048 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10049 argument. Remove "initial" parameter. Return int instead of
10050 void. Don't error or warn here.
10051 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10052 failure to attach to the tgid. Call warning when failing to
10053 attach to an lwp.
10054 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10055 argument. Remove "initial" parameter. Return int instead of
10056 void. Don't error or warn here.
10057 (linux_attach_fail_reason_string): New declaration.
10058 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10059 interface change. Use linux_attach_fail_reason_string.
10060
10061 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
10062 Walfred Tedeschi <walfred.tedeschi@intel.com>
10063
10064 * Makefile.in: Added rules to handle new files
10065 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
10066 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
10067 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
10068 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
10069 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
10070 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
10071 x32-avx512-linux.o.
10072 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
10073 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
10074 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
10075 i386/x32-avx512.xml.
10076 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
10077 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
10078 i386/x32-avx512-linux.xml.
10079 * i387-fp.c (num_avx512_k_registers): New constant for number
10080 of K registers.
10081 (num_avx512_zmmh_low_registers): New constant for number of
10082 lower ZMM registers (0-15).
10083 (num_avx512_zmmh_high_registers): New constant for number of
10084 higher ZMM registers (16-31).
10085 (num_avx512_ymmh_registers): New contant for number of higher
10086 YMM registers (ymm16-31 added by avx521 on x86_64).
10087 (num_avx512_xmm_registers): New constant for number of higher
10088 XMM registers (xmm16-31 added by AVX512 on x86_64).
10089 (struct i387_xsave): Add space for AVX512 registers.
10090 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
10091 Add code to handle AVX512 registers.
10092 (i387_xsave_to_cache): Add code to handle AVX512 registers.
10093 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
10094 prototypei from generated file.
10095 (tdesc_amd64_avx512_linux): Likewise.
10096 (init_registers_x32_avx512_linux): Likewise.
10097 (tdesc_x32_avx512_linux): Likewise.
10098 (init_registers_i386_avx512_linux): Likewise.
10099 (tdesc_i386_avx512_linux): Likewise.
10100 (x86_64_regmap): Add AVX512 registers.
10101 (x86_linux_read_description): Add code to handle AVX512 XSTATE
10102 mask.
10103 (initialize_low_arch): Add code to initialize AVX512 registers.
10104
10105 2014-04-23 Pedro Alves <palves@redhat.com>
10106
10107 * mem-break.c (find_gdb_breakpoint_at): Make static.
10108 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10109
10110 2014-04-23 Pedro Alves <palves@redhat.com>
10111
10112 * i386-low.c: Don't include break-common.h here.
10113 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10114 prototype to take target_hw_bp_type as argument instead of a Z
10115 packet char.
10116 * i386-low.h: Include break-common.h here.
10117 (Z_packet_to_hw_type): Declare.
10118 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10119 prototypes.
10120 * linux-x86-low.c (x86_insert_point): Convert the packet number to
10121 a target_hw_bp_type before calling i386_low_insert_watchpoint.
10122 (x86_remove_point): Convert the packet number to a
10123 target_hw_bp_type before calling i386_low_remove_watchpoint.
10124 * win32-i386-low.c (i386_insert_point): Convert the packet number
10125 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
10126 (i386_remove_point): Convert the packet number to a
10127 target_hw_bp_type before calling i386_low_remove_watchpoint.
10128
10129 2014-04-23 Pedro Alves <palves@redhat.com>
10130
10131 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10132
10133 2014-04-10 Pedro Alves <palves@redhat.com>
10134
10135 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
10136 Check if the condition or command is NULL before checking if the
10137 breakpoint is known. On success, return true.
10138 * mem-break.h (add_breakpoint_condition): Document return.
10139 (add_breakpoint_commands): Add describing comment.
10140 * server.c (skip_to_semicolon): New function.
10141 (process_point_options): Use it.
10142
10143 2014-04-09 Pedro Alves <palves@redhat.com>
10144
10145 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10146 to lwpid_of.
10147
10148 2014-02-27 Pedro Alves <palves@redhat.com>
10149
10150 PR 12702
10151 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10152 macros.
10153 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10154 output.
10155 (last_thread_of_process_p): Take a PID argument instead of a
10156 thread pointer.
10157 (linux_wait_for_lwp): Delete.
10158 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10159 functions.
10160 (linux_low_filter_event): New function, party factored out from
10161 linux_wait_for_event.
10162 (linux_wait_for_event): Rename to ...
10163 (linux_wait_for_event_filtered): ... this. Add new filter ptid
10164 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
10165 sigsuspend. Check for zombie leaders.
10166 (linux_wait_for_event): Reimplement as wrapper around
10167 linux_wait_for_event_filtered.
10168 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
10169 a normal or signal exit is seen, it's the whole process exiting.
10170 (wait_for_sigstop): No longer a for_each_inferior callback.
10171 Rewrite on top of linux_wait_for_event_filtered.
10172 (stop_all_lwps): Call wait_for_sigstop directly.
10173 * server.c (resume, handle_target_event): Handle
10174 TARGET_WAITKIND_NO_RESUMED.
10175
10176 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10177
10178 * win32-low.c (psapi_get_dll_name,
10179 * win32_CreateToolhelp32Snapshot): Delete.
10180 (win32_CreateToolhelp32Snapshot, win32_Module32First)
10181 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
10182 Delete.
10183 (handle_load_dll): Add function description.
10184 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10185
10186 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10187
10188 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10189 Add comment.
10190 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
10191 base address when calling win32_add_one_solib.
10192 (handle_load_dll): Delete local variable load_addr.
10193 Remove 0x1000 offset applied to DLL base address when calling
10194 win32_add_one_solib.
10195 (handle_unload_dll): Add comment.
10196
10197 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10198
10199 * win32-low.c (win32_add_all_dlls): Renames
10200 win32_ensure_ntdll_loaded. Rewrite function documentation.
10201 Adjust implementation to always load all DLLs.
10202 Add 0x1000 offset to DLL base address when calling
10203 win32_add_one_solib.
10204 (child_initialization_done): New static global.
10205 (do_initial_child_stuff): Set child_initialization_done to
10206 zero during child initialization, and 1 after. Replace call
10207 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
10208 Add comment.
10209 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
10210 (handle_unload_dll): Add function documentation.
10211 (get_child_debug_event): Ignore load and unload DLL events
10212 during child initialization.
10213
10214 2014-02-20 Doug Evans <dje@google.com>
10215
10216 Remove global all_lwps.
10217 * inferiors.h (ptid_of): Move here from linux-low.h.
10218 (pid_of, lwpid_of): Ditto.
10219 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
10220 parameter is a struct thread_info * now.
10221 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
10222 directly. Pass &all_threads to find_inferior instead of &all_lwps.
10223 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
10224 directly.
10225 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
10226 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
10227 * linux-arm-low.c (update_registers_callback): Update, "entry"
10228 parameter is a struct thread_info * now.
10229 Fetch lwpid from current_inferior directly.
10230 (arm_insert_point): Pass &all_threads to find_inferior instead of
10231 &all_lwps.
10232 (arm_remove_point): Ditto.
10233 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
10234 (arm_prepare_to_resume): Fetch pid from thread.
10235 (arm_read_description): Fetch lwpid from current_inferior directly.
10236 * linux-low.c (all_lwps): Delete.
10237 (delete_lwp): Delete call to remove_inferior.
10238 (handle_extended_wait): Fetch lwpid from thread.
10239 (add_lwp): Don't set lwp->entry.id. Remove call to
10240 add_inferior_to_list.
10241 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
10242 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
10243 (kill_one_lwp_callback): Ditto.
10244 (linux_kill): Don't dereference NULL pointer.
10245 Fetch ptid,lwpid from thread.
10246 (get_detach_signal): Fetch ptid from thread.
10247 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
10248 Simplify call to regcache_invalidate_thread.
10249 (delete_lwp_callback): Update, "entry" parameter is a
10250 struct thread_info * now. Fetch pid from thread.
10251 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
10252 (status_pending_p_callback): Update, "entry" parameter is a
10253 struct thread_info * now. Fetch ptid from thread.
10254 (find_lwp_pid): Update, "entry" parameter is a
10255 struct thread_info * now.
10256 (linux_wait_for_lwp): Fetch pid from thread.
10257 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
10258 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
10259 (enqueue_one_deferred_signal): Fetch lwpid from thread.
10260 (dequeue_one_deferred_signal): Ditto.
10261 (cancel_breakpoint): Fetch ptid from current_inferior.
10262 (linux_wait_for_event): Pass &all_threads to find_inferior,
10263 not &all_lwps. Fetch ptid, lwpid from thread.
10264 (count_events_callback): Update, "entry" parameter is a
10265 struct thread_info * now.
10266 (select_singlestep_lwp_callback): Ditto.
10267 (select_event_lwp_callback): Ditto.
10268 (cancel_breakpoints_callback): Ditto.
10269 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
10270 not &all_lwps.
10271 (select_event_lwp): Ditto. Fetch ptid from event_thread.
10272 (unsuspend_one_lwp): Update, "entry" parameter is a
10273 struct thread_info * now.
10274 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
10275 not &all_lwps.
10276 (linux_stabilize_threads): Ditto. And for for_each_inferior.
10277 Fetch lwpid from thread, not lwp.
10278 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
10279 Pass &all_threads to find_inferior, not &all_lwps.
10280 (send_sigstop): Fetch lwpid from thread, not lwp.
10281 (send_sigstop_callback): Update, "entry" parameter is a
10282 struct thread_info * now.
10283 (suspend_and_send_sigstop_callback): Ditto.
10284 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
10285 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
10286 struct thread_info * now.
10287 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
10288 from thread, lwp.
10289 (lwp_running): Update, "entry" parameter is a
10290 struct thread_info * now.
10291 (stop_all_lwps): Fetch ptid from thread.
10292 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
10293 (linux_resume_one_lwp): Fetch lwpid from thread.
10294 (linux_set_resume_request): Update, "entry" parameter is a
10295 struct thread_info * now. Fetch pid, lwpid from thread.
10296 (resume_status_pending_p): Update, "entry" parameter is a
10297 struct thread_info * now.
10298 (need_step_over_p): Ditto. Fetch lwpid from thread.
10299 (start_step_over): Fetch lwpid from thread.
10300 (linux_resume_one_thread): Update, "entry" parameter is a
10301 struct thread_info * now. Fetch lwpid from thread.
10302 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
10303 (proceed_one_lwp): Update, "entry" parameter is a
10304 struct thread_info * now. Fetch lwpid from thread.
10305 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
10306 struct thread_info * now.
10307 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
10308 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10309 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10310 directly.
10311 (regsets_store_inferior_registers): Ditto.
10312 (fetch_register, store_register): Ditto.
10313 (linux_read_memory, linux_write_memory): Ditto.
10314 (linux_request_interrupt): Ditto.
10315 (linux_read_auxv): Ditto.
10316 (linux_xfer_siginfo): Ditto.
10317 (linux_qxfer_spu): Ditto.
10318 (linux_qxfer_libraries_svr4): Ditto.
10319 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10320 moved to inferiors.h.
10321 (get_lwp): Delete.
10322 (get_thread_lwp): Update.
10323 (struct lwp_info): Delete member "entry". Simplify comment for
10324 member "thread".
10325 (all_lwps): Delete.
10326 * linux-mips-low.c (mips_read_description): Fetch lwpid from
10327 current_inferior directly.
10328 (update_watch_registers_callback): Update, "entry" parameter is a
10329 struct thread_info * now. Fetch pid from thread.
10330 (mips_linux_prepare_to_resume): Fetch ptid from thread.
10331 (mips_insert_point): Fetch lwpid from current_inferior.
10332 Pass &all_threads to find_inferior, not &all_lwps.
10333 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
10334 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
10335 directly.
10336 (mips_stopped_data_address): Ditto.
10337 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10338 directly.
10339 * linux-tile-low.c (tile_arch_setup): Ditto.
10340 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
10341 (update_debug_registers_callback): Update, "entry" parameter is a
10342 struct thread_info * now. Fetch pid from thread.
10343 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
10344 Pass &all_threads to find_inferior, not &all_lwps.
10345 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
10346 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
10347 Pass &all_threads to find_inferior, not &all_lwps.
10348 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
10349 (i386_dr_low_get_status): Ditto.
10350 (x86_linux_prepare_to_resume): Fetch ptid from thread.
10351 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
10352 (x86_linux_read_description): Ditto.
10353 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
10354
10355 2014-02-20 Doug Evans <dje@google.com>
10356
10357 * inferiors.c (get_first_inferior): Fix buglet.
10358
10359 2014-02-19 Doug Evans <dje@google.com>
10360
10361 * gdbthread.h (add_thread): Change result type to struct thread_info *.
10362 * inferiors.c (add_thread): Change result type to struct thread_info *.
10363 All callers updated.
10364 (add_lwp): Call add_thread here instead of in callers.
10365 All callers updated.
10366 * linux-low.h (get_lwp_thread): Rewrite.
10367 (struct lwp_info): New member "thread".
10368
10369 2014-02-19 Doug Evans <dje@google.com>
10370
10371 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10372 All callers updated.
10373
10374 2014-02-19 Doug Evans <dje@google.com>
10375
10376 * inferiors.c (add_thread): Fix whitespace.
10377
10378 2014-02-19 Doug Evans <dje@google.com>
10379
10380 * dll.c (clear_dlls): Replace accessing list implemention details
10381 with API function.
10382 * gdbthread.h (get_first_thread): Declare.
10383 * inferiors.c (for_each_inferior_with_data): New function.
10384 (get_first_thread): New function.
10385 (find_thread_ptid): Simplify.
10386 (get_first_inferior): New function.
10387 (clear_list): Delete.
10388 (one_inferior_p): New function.
10389 (clear_inferior_list): New function.
10390 (clear_inferiors): Update.
10391 * inferiors.h (for_each_inferior_with_data): Declare.
10392 (clear_inferior_list): Declare.
10393 (one_inferior_p): Declare.
10394 (get_first_inferior): Declare.
10395 * linux-low.c (linux_wait_for_event): Replace accessing list
10396 implemention details with API function.
10397 * server.c (target_running): Ditto.
10398 (accumulate_file_name_length): New function.
10399 (emit_dll_description): New function.
10400 (handle_qxfer_libraries): Replace accessing list implemention
10401 details with API function.
10402 (handle_qxfer_threads_worker): New function.
10403 (handle_qxfer_threads_proper): Replace accessing list implemention
10404 details with API function.
10405 (handle_query): Ditto.
10406 (visit_actioned_threads_callback_ftype): New typedef.
10407 (visit_actioned_threads_data): New struct.
10408 (visit_actioned_threads): Rewrite to be find_inferior callback.
10409 (resume): Call find_inferior.
10410 (handle_status): Replace accessing list implemention
10411 details with API function.
10412 (process_serial_event): Replace accessing list implemention details
10413 with API function.
10414 * target.c (set_desired_inferior): Replace accessing list implemention
10415 details with API function.
10416 * tracepoint.c (same_process_p): New function.
10417 (gdb_agent_about_to_close): Replace accessing list implemention
10418 details with API function.
10419 * win32-low.c (child_delete_thread): Replace accessing list
10420 implemention details with API function.
10421 (match_dll_by_basename): New function.
10422 (dll_is_loaded_by_basename): New function.
10423 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10424 details call to dll_is_loaded_by_basename.
10425
10426 2014-02-19 Doug Evans <dje@google.com>
10427
10428 * dll.h (struct dll_info): Add comment.
10429 * gdbthread.h (struct thread_info): Add comment.
10430 (current_ptid): Simplify.
10431 * inferiors.c (add_process): Update.
10432 (remove_process): Update.
10433 * inferiors.h (struct process_info): Rename member "head" to "entry".
10434 * linux-low.c (delete_lwp): Update.
10435 (add_lwp): Update.
10436 (last_thread_of_process_p): Update.
10437 (kill_one_lwp_callback, linux_kill): Update.
10438 (status_pending_p_callback): Update.
10439 (wait_for_sigstop): Update. Simplify read of ptid.
10440 (start_step_over): Update.
10441 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10442 (get_lwp_thread): Update.
10443 (struct lwp_info): Rename member "head" to "entry".
10444 * regcache.h (inferior_list_entry): Delete.
10445 * server.c (kill_inferior_callback): Update.
10446 (detach_or_kill_inferior_callback): Update.
10447 (print_started_pid): Update.
10448 (print_attached_pid): Update.
10449 (process_serial_event): Simplify read of ptid.
10450 * thread-db.c (thread_db_create_event): Update.
10451 (thread_db_get_tls_address): Update.
10452 * win32-low.c (current_inferior_ptid): Simplify.
10453
10454 2014-02-19 Tom Tromey <tromey@redhat.com>
10455
10456 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10457 argument.
10458 (target_supports_btrace): Update.
10459
10460 2014-02-14 Yao Qi <yao@codesourcery.com>
10461
10462 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10463 (rsp-low-ipa.o): New target.
10464
10465 2014-02-12 Tom Tromey <tromey@redhat.com>
10466
10467 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10468 convert_ascii_to_int.
10469 * regcache.c (registers_to_string): Likewise.
10470 * remote-utils.c (decode_M_packet): Likewise.
10471 * server.c (process_serial_event): Likewise.
10472
10473 2014-02-12 Tom Tromey <tromey@redhat.com>
10474
10475 * server.c (handle_query, handle_v_run): Use hex2bin, not
10476 unhexify.
10477 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10478
10479 2014-02-12 Tom Tromey <tromey@redhat.com>
10480
10481 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10482 convert_int_to_ascii.
10483 * regcache.c (registers_to_string, collect_register_as_string):
10484 Likewise.
10485 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10486 Likewise.
10487 * server.c (process_serial_event): Likewise.
10488 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10489 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10490
10491 2014-02-12 Tom Tromey <tromey@redhat.com>
10492
10493 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10494 bin2hex, not hexify.
10495 * tracepoint.c (cmd_qtstatus): Likewise.
10496
10497 2014-02-12 Tom Tromey <tromey@redhat.com>
10498
10499 * remote-utils.c (monitor_output): Pass explicit length to
10500 hexify.
10501
10502 2014-02-12 Tom Tromey <tromey@redhat.com>
10503
10504 * tracepoint.c: Include rsp-low.h.
10505 * server.c: Include rsp-low.h.
10506 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10507 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
10508 declare.
10509 * remote-utils.c: Include rsp-low.h.
10510 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
10511 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
10512 (convert_int_to_ascii, convert_ascii_to_int): Move to
10513 common/rsp-low.c.
10514 * regcache.c: Include rsp-low.h.
10515 * ax.c: Include rsp-low.h.
10516 * Makefile.in (SFILES): Add common/rsp-low.c.
10517 (OBS): Add rsp-low.o.
10518 (rsp-low.o): New target.
10519
10520 2014-02-12 Tom Tromey <tromey@redhat.com>
10521
10522 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10523 Include print-utils.h.
10524 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10525 (plongest, thirty_two, phex_nz): Remove.
10526 * Makefile.in (SFILES): Add common/print-utils.c.
10527 (OBS): Add print-utils.o.
10528 (print-utils-ipa.o): New target.
10529 (print-utils.o): New target.
10530 (IPA_OBJS): Add print-utils-ipa.o.
10531
10532 2014-02-06 Tom Tromey <tromey@redhat.com>
10533
10534 * Makefile.in (SFILES): Fix indentation.
10535
10536 2014-02-05 Doug Evans <dje@google.com>
10537
10538 * linux-low.c (linux_wait_for_event): Improve comment.
10539 (linux_wait_1): Keep current_inferior in sync with event_child.
10540
10541 2014-01-22 Doug Evans <dje@google.com>
10542
10543 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10544
10545 2014-01-22 Doug Evans <dje@google.com>
10546
10547 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10548 * configure: Regenerate.
10549 * config.in: Regenerate.
10550 * Makefile.in (SFILES): Add debug.c.
10551 (OBS): Add debug.o.
10552 * debug.c: New file.
10553 * debug.h: New file.
10554 * linux-aarch64-low.c (*): Update all debugging printfs to use
10555 debug_printf instead of fprintf.
10556 * linux-arm-low.c (*): Ditto.
10557 * linux-cris-low.c (*): Ditto.
10558 * linux-crisv32-low.c (*): Ditto.
10559 * linux-m32r-low.c (*): Ditto.
10560 * linux-sparc-low.c (*): Ditto.
10561 * linux-x86.c (*): Ditto.
10562 * linux-low.c (*): Ditto.
10563 (linux_wait_1): Add calls to debug_enter, debug_exit.
10564 (linux_wait): Remove redundant debugging printf.
10565 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10566 (linux_resume, unstop_all_lwps): Ditto.
10567 * mem-break.c (*): Update all debugging printfs to use
10568 debug_printf instead of fprintf.
10569 * remote-utils.c (*): Ditto.
10570 * thread-db.c (*): Ditto.
10571 * server.c #include <ctype.h>, "gdb_vecs.h".
10572 (debug_threads): Moved to debug.c.
10573 (*): Update all debugging printfs to use debug_printf instead of
10574 fprintf.
10575 (start_inferior): Replace call to fflush with call to debug_flush.
10576 (monitor_show_help): Mention set debug-format.
10577 (parse_debug_format_options): New function.
10578 (handle_monitor_command): Handle "monitor set debug-format".
10579 (gdbserver_usage): Mention --debug-format.
10580 (main): Parse --debug-format.
10581 * server.h (debug_threads): Declaration moved to debug.h.
10582 #include "debug.h".
10583 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
10584 trace_debug_1 that uses debug_printf.
10585 (tracepoint_look_up_symbols): Update all debugging printfs to use
10586 debug_printf instead of fprintf.
10587
10588 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10589
10590 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10591 sys/ptrace.h.
10592
10593 2014-01-17 Pedro Alves <palves@redhat.com>
10594
10595 PR build/16445
10596 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10597 defined after including gdb_proc_service.h.
10598
10599 2014-01-16 Doug Evans <dje@google.com>
10600
10601 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10602 (match_dll): Use it.
10603
10604 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10605
10606 * target.h (target_ops) <read_btrace>: Change parameters and
10607 return type to allow error reporting.
10608 * server.c (handle_qxfer_btrace): Support delta reads. Pass
10609 trace reading errors on.
10610 * linux-low.c (linux_low_read_btrace): Pass trace reading
10611 errors on.
10612 (linux_low_disable_btrace): New.
10613
10614 2014-01-15 Doug Evans <dje@google.com>
10615
10616 * inferiors.c (thread_id_to_gdb_id): Delete.
10617 * inferiors.h (thread_id_to_gdb_id): Delete.
10618
10619 2014-01-13 Eli Zaretskii <eliz@gnu.org>
10620
10621 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
10622 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
10623 versions.
10624
10625 2014-01-08 Pedro Alves <palves@redhat.com>
10626
10627 * server.c (handle_status): Don't discard previous queued stop
10628 replies or thread's pending status here.
10629 (main) <disconnection>: Do it here instead.
10630
10631 2014-01-08 Pedro Alves <palves@redhat.com>
10632
10633 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
10634 * server.c (visit_actioned_threads, handle_pending_status): New
10635 function.
10636 (handle_v_cont): Factor out parts to ...
10637 (resume): ... this new function. If in all-stop, and a thread
10638 being resumed has a pending status, report it without actually
10639 resuming.
10640 (myresume): Adjust to use the new 'resume' function.
10641 (clear_pending_status_callback, set_pending_status_callback)
10642 (find_status_pending_thread_callback): New functions.
10643 (handle_status): Handle the case of multiple threads having
10644 interesting statuses to report. Report threads' real last signal
10645 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
10646 with an interesting thread to report the status for, instead of
10647 always reporting the status of the first thread.
10648
10649 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10650
10651 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
10652 * gdbreplay.c (gdbreplay_version): Likewise.
10653
10654 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
10655
10656 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
10657 iov.iov_len with the real length in use.
10658
10659 2013-12-13 Joel Brobecker <brobecker@adacore.com>
10660
10661 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
10662 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
10663 for all targets that use win32-low.c.
10664 * win32-low.c (win32_ensure_ntdll_loaded): New function.
10665 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
10666
10667 2013-12-13 Pedro Alves <palves@redhat.com>
10668
10669 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
10670 if equal to TARGET_WAITKIND_LOADED.
10671 * win32-low.c (cached_status): New static global.
10672 (win32_wait): Add declaration.
10673 (do_initial_child_stuff): Flush all initial pending debug events
10674 up to the initial breakpoint.
10675 (win32_wait): If CACHED_STATUS was set, return that instead
10676 of doing a real wait. Remove the code resuming the execution
10677 of the inferior after receiving a TARGET_WAITKIND_LOADED event
10678 during the initial phase. Also remove the code changing
10679 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
10680 TARGET_WAITKIND_STOPPED.
10681
10682 2013-12-11 Yao Qi <yao@codesourcery.com>
10683
10684 * notif.c (handle_notif_ack): Return 0 if no notification
10685 matches.
10686
10687 2013-11-20 Doug Evans <dje@google.com>
10688
10689 * linux-low.c (linux_set_resume_request): Fix comment.
10690
10691 2013-11-20 Doug Evans <dje@google.com>
10692
10693 * linux-low.c (resume_status_pending_p): Tweak comment.
10694
10695 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
10696
10697 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
10698 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
10699 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
10700 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
10701 (srv_amd64_regobj): Add amd64-mpx.o.
10702 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
10703 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
10704 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
10705 * i387-fp.c (num_pl_bnd_register) Added constant.
10706 (num_pl_bnd_cfg_registers) Added constant.
10707 (struct i387_xsave) Added reserved area and MPX fields.
10708 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
10709 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
10710 function.
10711 (tdesc_i386_mpx_linux): Add MPX amd64 target.
10712 (init_registers_amd64_mpx_linux): Declare new function.
10713 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
10714 (x86_64_regmap): Add MPX registers.
10715 (x86_linux_read_description): Add MPX case.
10716 (initialize_low_arch): Initialize MPX targets.
10717
10718 2013-11-18 Tom Tromey <tromey@redhat.com>
10719
10720 * configure: Rebuild.
10721 * configure.ac: Don't check for stdlib.h.
10722 * gdbreplay.c: Unconditionally include stdlib.h.
10723
10724 2013-11-18 Tom Tromey <tromey@redhat.com>
10725
10726 * config.in: Rebuild.
10727 * configure: Rebuild.
10728 * configure.ac: Don't use AC_HEADER_DIRENT.
10729
10730 2013-11-18 Tom Tromey <tromey@redhat.com>
10731
10732 * server.h: Don't check HAVE_STRING_H.
10733 * gdbreplay.c: Don't check HAVE_STRING_H.
10734 * configure: Rebuild.
10735
10736 2013-11-18 Tom Tromey <tromey@redhat.com>
10737
10738 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
10739 LIBGNU.
10740
10741 2013-11-08 Tom Tromey <tromey@redhat.com>
10742
10743 * configure, config.in: Rebuild.
10744 * configure.ac: Remove unused configury.
10745
10746 2013-11-08 Tom Tromey <tromey@redhat.com>
10747
10748 * acinclude.m4: Include common.m4, codeset.m4.
10749 * configure, config.in: Rebuild.
10750 * configure.ac: Use GDB_AC_COMMON.
10751
10752 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
10753
10754 * linux-s390-low.c (HWCAP_S390_TE): New define.
10755 (s390_arch_setup): Consider the TE field in the HWCAP for
10756 determining 'have_regset_tdb'.
10757
10758 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
10759
10760 PR gdb/16014
10761 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
10762 call to sizeof.
10763
10764 2013-10-02 Pedro Alves <palves@redhat.com>
10765
10766 * server.c (process_serial_event): Don't output "GDBserver
10767 exiting" if GDB is connected through stdio.
10768 * target.c (mywait): Likewise, be silent if GDB is connected
10769 through stdio.
10770
10771 2013-10-01 Joel Brobecker <brobecker@adacore.com>
10772
10773 * lynx-low.c (lynx_add_threads_after_attach): New function.
10774 (lynx_attach): Remove call to add_thread. Add call to
10775 lynx_add_threads_after_attach instead.
10776
10777 2013-09-28 Mike Frysinger <vapier@gentoo.org>
10778
10779 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
10780 * config.in, configure: Regenerated.
10781
10782 2013-09-18 Yao Qi <yao@codesourcery.com>
10783
10784 PR server/15959
10785 * server.c (start_inferior): Clear 'resume_info'.
10786
10787 2013-09-16 Jiong Wang <jiwang@tilera.com>
10788
10789 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
10790 for each register.
10791
10792 2013-09-16 Jiong Wang <jiwang@tilera.com>
10793
10794 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
10795 linux-tile-low.o to srv_tgtobj.
10796
10797 2013-09-16 Will Newton <will.newton@linaro.org>
10798
10799 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
10800 out regs.
10801
10802 2013-09-06 Pedro Alves <palves@redhat.com>
10803
10804 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
10805 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
10806 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
10807 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
10808 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
10809 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
10810
10811 2013-09-06 Pedro Alves <palves@redhat.com>
10812
10813 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
10814 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
10815
10816 2013-09-06 Pedro Alves <palves@redhat.com>
10817
10818 * linux-amd64-ipa.c: Include tracepoint.h.
10819 * linux-i386-ipa.c: Include tracepoint.h.
10820
10821 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
10822
10823 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
10824 (ps_get_thread_area): New function.
10825
10826 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
10827
10828 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
10829 (initialize_low_arch): Call init_registers_crisv32 rather than
10830 init_register_crisv32.
10831
10832 2013-09-05 Pedro Alves <palves@redhat.com>
10833
10834 * server.h (handle_vFile, hostio_last_error_from_errno): Move
10835 to ...
10836 * hostio.h: ... this new file.
10837 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
10838 win32-low.c: Include hostio.h.
10839
10840 2013-09-05 Pedro Alves <palves@redhat.com>
10841
10842 * server.h (gdb_client_data, handler_func, callback_handler_func)
10843 (delete_file_handler, add_file_handler, append_callback_event)
10844 (delete_callback_event, start_event_loop, initialize_event_loop):
10845 Move to event-loop.h and include it.
10846 * event-loop.h: New file.
10847
10848 2013-09-05 Pedro Alves <palves@redhat.com>
10849
10850 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
10851 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
10852 (loaded_dll, unloaded_dll): Move to ...
10853 * dll.h: ... this new file.
10854 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
10855
10856 2013-09-05 Pedro Alves <palves@redhat.com>
10857
10858 * server.h (current_process, get_thread_process, all_processes)
10859 (add_inferior_to_list, for_each_inferior, current_inferior)
10860 (remove_inferior, add_process, remove_process, find_process_pid)
10861 (have_started_inferiors_p, have_attached_inferiors_p)
10862 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
10863 (clear_inferiors, find_inferior, find_inferior_id)
10864 (inferior_target_data, set_inferior_target_data)
10865 (inferior_regcache_data, set_inferior_regcache_data): Move to
10866 inferiors.h, and include it.
10867 * inferiors.h: New file.
10868
10869 2013-09-05 Pedro Alves <palves@redhat.com>
10870
10871 * server.h (struct emit_ops, current_insn_ptr, emit_error):
10872 Move ...
10873 * ax.h: ... here.
10874
10875 2013-09-05 Pedro Alves <palves@redhat.com>
10876
10877 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
10878 tracepoint.h.
10879 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
10880 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
10881 (handle_tracepoint_general_set, handle_tracepoint_query)
10882 (tracepoint_finished_step, tracepoint_was_hit)
10883 (release_while_stepping_state_list, current_traceframe)
10884 (in_readonly_region, traceframe_read_mem)
10885 (fetch_traceframe_registers, traceframe_read_sdata)
10886 (traceframe_read_info, struct fast_tpoint_collect_status)
10887 (fast_tracepoint_collecting, force_unlock_trace_buffer)
10888 (handle_tracepoit_bkpts, initialize_low_tracepoint)
10889 (supply_fast_tracepoint_registers)
10890 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
10891 (ipa_tdesc, claim_trampoline_space)
10892 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
10893 (agent_mem_read, agent_get_trace_state_variable_value)
10894 (agent_set_trace_state_variable_value, agent_tsv_read)
10895 (agent_mem_read_string, get_raw_reg_func_addr)
10896 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
10897 * tracepoint.h: ... this new file.
10898
10899 2013-09-05 Pedro Alves <palves@redhat.com>
10900
10901 * server.h (perror_with_name, error, fatal, warning, paddress)
10902 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
10903 include it.
10904 * utils.h: New file.
10905
10906 2013-09-05 Pedro Alves <palves@redhat.com>
10907
10908 * server.h (remote_debug, noack_mode, transport_is_reliable)
10909 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
10910 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
10911 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
10912 (write_enn, initialize_async_io, enable_async_io)
10913 (disable_async_io, check_remote_input_interrupt_request)
10914 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
10915 (dead_thread_notify, prepare_resume_reply)
10916 (decode_address_to_semicolon, decode_address, decode_m_packet)
10917 (decode_M_packet, decode_X_packet, decode_xfer_write)
10918 (decode_search_memory_packet, unhexify, hexify)
10919 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
10920 (look_up_one_symbol, relocate_instruction)
10921 (monitor_output): Move to remote-utils.h, and include it.
10922 * remote-utils.h: New file.
10923
10924 2013-09-05 Pedro Alves <palves@redhat.com>
10925
10926 * server.h (_): Delete.
10927
10928 2013-09-02 Pedro Alves <palves@redhat.com>
10929
10930 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
10931 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
10932 allocated.
10933 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
10934
10935 2013-09-02 Pierre Muller <muller@sourceware.org>
10936
10937 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
10938 or WriteProcessMemory complete successfully and handle
10939 ERROR_PARTIAL_COPY error.
10940
10941 2013-09-02 Pedro Alves <palves@redhat.com>
10942
10943 * server.c (gdb_read_memory): Return -1 on traceframe memory read
10944 error instead of EIO.
10945
10946 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10947
10948 PR server/15604
10949 * linux-low.c: Include filestuff.h.
10950 (linux_create_inferior) <pid == 0>: Call close_most_fds.
10951 * lynx-low.c: Include filestuff.h.
10952 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
10953 * server.c: Include filestuff.h.
10954 (main): Call notice_open_fds.
10955 * spu-low.c: Include filestuff.h.
10956 (spu_create_inferior) <pid == 0>: Call close_most_fds.
10957
10958 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
10959
10960 * Makefile.in: Explain why ../target and ../nat are not
10961 listed as include file search paths.
10962 (linux-waitpid.o): New object file rule.
10963 * configure.srv (srv_native_linux_obj): New variable.
10964 Replace all occurrences of linux native object files with
10965 $srv_native_linux_obj.
10966 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
10967 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
10968 (linux_enable_event_reporting): Remove declaration.
10969 (my_waitpid): Moved to common/linux-waitpid.c.
10970 (linux_wait_for_event): Pass ptid when calling
10971 linux_enable_event_reporting.
10972 (linux_supports_tracefork_flag): Remove.
10973 (linux_enable_event_reporting): Likewise.
10974 (linux_tracefork_grandchild): Remove.
10975 (STACK_SIZE): Moved to common/linux-ptrace.c.
10976 (linux_tracefork_child): Remove.
10977 (linux_test_for_tracefork): Remove.
10978 (linux_look_up_symbols): Call linux_supports_traceclone.
10979 (initialize_low): Remove call to linux_test_for_tracefork.
10980 * linux-low.h (PTRACE_TYPE_ARG3): Move to
10981 common/linux-ptrace.h.
10982 (PTRACE_TYPE_ARG4): Likewise.
10983 Include linux-ptrace.h.
10984
10985 2013-08-21 Pedro Alves <palves@redhat.com>
10986
10987 * config.in: Renegerate.
10988
10989 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
10990
10991 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
10992 (SFILES): Remove $(srcdir)/common/target-common.c and
10993 add $(srcdir)/target/waitstatus.c.
10994 (OBS): Remove target-common.o and add waitstatus.o.
10995 (server_h): Remove $(srcdir)/../common/target-common.h and
10996 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
10997 and $(srcdir)/../target/waitstatus.h.
10998 (target-common.o): Remove.
10999 (waitstatus.o): New target object file.
11000 * target.h: Do not include target-common.h and
11001 include target/resume.h, target/wait.h and
11002 target/waitstatus.h.
11003
11004 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
11005
11006 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11007 to PTRACE_TYPE_ARG3.
11008 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11009 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11010 PTRACE_TYPE_ARG4.
11011 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11012 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11013
11014 2013-07-27 Jie Zhang <jie@codesourcery.com>
11015 Daniel Jacobowitz <dan@codesourcery.com>
11016 Yao Qi <yao@codesourcery.com>
11017
11018 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11019 (mips-linux-watch.o): New rule.
11020 (mips_linux_watch_h): New variable.
11021 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11022 srv_tgtobj.
11023 * linux-mips-low.c: Include mips-linux-watch.h.
11024 (struct arch_process_info, struct arch_lwp_info): New.
11025 (update_watch_registers_callback): New function.
11026 (mips_linux_new_process, mips_linux_new_thread) New functions.
11027 (mips_linux_prepare_to_resume, mips_insert_point): New
11028 functions.
11029 (mips_remove_point, mips_stopped_by_watchpoint): New
11030 functions.
11031 (rsp_bp_type_to_target_hw_bp_type): New function.
11032 (mips_stopped_data_address): New function.
11033 (the_low_target): Add watchpoint support functions.
11034
11035 2013-07-27 Yao Qi <yao@codesourcery.com>
11036
11037 * i386-low.c: Include break-common.h.
11038 (enum target_hw_bp_type): Remove.
11039
11040 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
11041
11042 * Makefile.in (SFILES): /common/target-common.c.
11043 (OBS): Add target-common.o.
11044 (server_h): Add $(srcdir)/../common/target-common.h.
11045 (target-common.o): New target.
11046 * server.c (queue_stop_reply_callback): Free
11047 status string after use.
11048 * target.c (target_waitstatus_to_string): Remove.
11049 * target.h: Include target-common.h.
11050 (resume_kind): Likewise.
11051 (target_waitkind): Likewise.
11052 (target_waitstatus): Likewise.
11053 (TARGET_WNOHANG): Likewise.
11054
11055 2013-07-04 Yao Qi <yao@codesourcery.com>
11056
11057 * Makefile.in (host_alias): Use @host_noncanonical@.
11058 (target_alias): Use @target_noncanonical@.
11059 * configure.ac: Use ACX_NONCANONICAL_TARGET and
11060 ACX_NONCANONICAL_HOST.
11061 * configure: Regenerated.
11062
11063 Revert:
11064 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11065
11066 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11067 * configure: Rebuild.
11068 * Makefile.in (version_host, version_target): Get from configure.
11069 (version.c): Use $(version_host) and $(version_target).
11070
11071 2013-07-03 Pedro Alves <palves@redhat.com>
11072
11073 * Makefile.in (config.status): Depend on development.sh.
11074 * acinclude.m4: Include libmcheck.m4.
11075 * configure: Regenerate.
11076
11077 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11078
11079 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
11080 attribute inside the parentheses.
11081 (winapi_DebugSetProcessKillOnExit): Ditto.
11082 (winapi_DebugBreakProcess): Ditto.
11083 (winapi_GenerateConsoleCtrlEvent): Ditto.
11084
11085 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11086
11087 * notif.h (notif_event): Add a dummy member to avoid compiler
11088 errors.
11089
11090 2013-07-01 Pedro Alves <palves@redhat.com>
11091
11092 * hostio.c (HOSTIO_PATH_MAX): Define.
11093 (require_filename, handle_open, handle_unlink, handle_readlink):
11094 Use it.
11095
11096 2013-07-01 Pedro Alves <palves@redhat.com>
11097
11098 * server.h: Include "pathmax.h".
11099 * linux-low.c: Don't include sys/param.h.
11100 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
11101 MAXPATHLEN.
11102 * win32-low.c: Don't include sys/param.h.
11103 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11104
11105 2013-07-01 Pedro Alves <palves@redhat.com>
11106
11107 * event-loop.c: Don't check HAVE_UNISTD_H before including
11108 <unistd.h>.
11109 * gdbreplay.c: Likewise.
11110 * remote-utils.c: Likewise.
11111 * server.c: Likewise.
11112 * configure.ac: Don't check for unistd.h.
11113 * configure: Regenerate.
11114
11115 2013-06-28 Tom Tromey <tromey@redhat.com>
11116
11117 * Makefile.in (version.c): Use version.in, not
11118 common/version.in.
11119
11120 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11121
11122 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11123 * configure: Rebuild.
11124 * Makefile.in (version_host, version_target): Get from configure.
11125 (version.c): Use $(version_host) and $(version_target).
11126
11127 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11128
11129 Fix trace-status to output user name without trailing colon.
11130 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11131
11132 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11133
11134 Fix trace-status to output proper start-time and stop-time.
11135 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
11136 output start time and stop time in hex as gdb expects.
11137
11138 2013-06-26 Pedro Alves <pedro@codesourcery.com>
11139
11140 * tracepoint.c (build_traceframe_info_xml): Output trace state
11141 variables present in the trace buffer.
11142
11143 2013-06-24 Tom Tromey <tromey@redhat.com>
11144
11145 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11146 create-version.sh.
11147 (version.o): Remove.
11148 * gdbreplay.c: Include version.h.
11149 (version, host_name): Don't declare.
11150 * server.h: Include version.h.
11151 (version, host_name): Don't declare.
11152
11153 2013-06-12 Pedro Alves <palves@redhat.com>
11154
11155 * linux-x86-low.c (linux_is_elf64): Delete global.
11156 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
11157 with local linux_pid_exe_is_elf_64_file use.
11158
11159 2013-06-11 Pedro Alves <palves@redhat.com>
11160
11161 * linux-low.c (regset_disabled, disable_regset): New functions.
11162 (regsets_fetch_inferior_registers)
11163 (regsets_store_inferior_registers): Use them.
11164 (initialize_regsets_info); Don't allocate the disabled_regsets
11165 array here.
11166 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11167 comment.
11168
11169 2013-06-11 Pedro Alves <palves@redhat.com>
11170
11171 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11172 xmalloc.
11173
11174 2013-06-11 Pedro Alves <palves@redhat.com>
11175
11176 * linux-x86-low.c (initialize_low_arch): Call
11177 init_registers_x32_avx_linux.
11178
11179 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11180
11181 Fix compatibility with Android Bionic.
11182 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11183 it is not empty.
11184
11185 2013-06-07 Pedro Alves <palves@redhat.com>
11186
11187 PR server/14823
11188 * Makefile.in (OBS): Add tdesc.o.
11189 (IPA_OBJS): Add tdesc-ipa.o.
11190 (tdesc-ipa.o): New rule.
11191 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
11192 interface.
11193 * linux-low.c (new_inferior): Delete.
11194 (disabled_regsets, num_regsets): Delete.
11195 (linux_add_process): Adjust to set the new per-process
11196 new_inferior flag.
11197 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
11198 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
11199 was a stop. When calling arch_setup, switch the current inferior
11200 to the thread that got an event.
11201 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
11202 (regsets_fetch_inferior_registers)
11203 (regsets_store_inferior_registers): New regsets_info parameter.
11204 Adjust to use it.
11205 (linux_register_in_regsets): New regs_info parameter. Adjust to
11206 use it.
11207 (register_addr, fetch_register, store_register): New usrregs_info
11208 parameter. Adjust to use it.
11209 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
11210 parameter regs_info. Adjust to use it.
11211 (linux_fetch_registers): Get the current inferior's regs_info, and
11212 adjust to use it.
11213 (linux_store_registers): Ditto.
11214 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
11215 (initialize_low): Don't initialize the target_regsets here. Call
11216 initialize_low_arch.
11217 * linux-low.h (target_regsets): Delete declaration.
11218 (struct regsets_info): New.
11219 (struct usrregs_info): New.
11220 (struct regs_info): New.
11221 (struct process_info_private) <new_inferior>: New field.
11222 (struct linux_target_ops): Delete the num_regs, regmap, and
11223 regset_bitmap fields. New field regs_info.
11224 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
11225 * i387-fp.c (num_xmm_registers): Delete.
11226 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
11227 calls to new interface.
11228 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
11229 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
11230 Infer the number of xmm registers from the regcache's target
11231 description.
11232 * i387-fp.h (num_xmm_registers): Delete.
11233 * inferiors.c (add_thread): Don't install the thread's regcache
11234 here.
11235 * proc-service.c (gregset_info): Fetch the current inferior's
11236 regs_info. Adjust to use it.
11237 * regcache.c: Include tdesc.h.
11238 (register_bytes, reg_defs, num_registers)
11239 (gdbserver_expedite_regs): Delete.
11240 (get_thread_regcache): If the thread doesn't have a regcache yet,
11241 create one, instead of aborting gdbserver.
11242 (regcache_invalidate_one): Rename to ...
11243 (regcache_invalidate_thread): ... this.
11244 (regcache_invalidate_one): New.
11245 (regcache_invalidate): Only invalidate registers of the current
11246 process.
11247 (init_register_cache): Add target_desc parameter, and use it.
11248 (new_register_cache): Ditto. Assert the target description has a
11249 non zero registers_size.
11250 (regcache_cpy): Add assertions. Adjust.
11251 (realloc_register_cache, set_register_cache): Delete.
11252 (registers_to_string, registers_from_string): Adjust.
11253 (find_register_by_name, find_regno, find_register_by_number)
11254 (register_cache_size): Add target_desc parameter, and use it.
11255 (free_register_cache_thread, free_register_cache_thread_one)
11256 (regcache_release, register_cache_size): New.
11257 (register_size): Add target_desc parameter, and use it.
11258 (register_data, supply_register, supply_register_zeroed)
11259 (supply_regblock, supply_register_by_name, collect_register)
11260 (collect_register_as_string, collect_register_by_name): Adjust.
11261 * regcache.h (struct target_desc): Forward declare.
11262 (struct regcache) <tdesc>: New field.
11263 (init_register_cache, new_register_cache): Add target_desc
11264 parameter.
11265 (regcache_invalidate_thread): Declare.
11266 (regcache_invalidate_one): Delete declaration.
11267 (regcache_release): Declare.
11268 (find_register_by_number, register_cache_size, register_size)
11269 (find_regno): Add target_desc parameter.
11270 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
11271 declarations.
11272 * remote-utils.c: Include tdesc.h.
11273 (outreg, prepare_resume_reply): Adjust.
11274 * server.c: Include tdesc.h.
11275 (gdbserver_xmltarget): Delete declaration.
11276 (get_features_xml, process_serial_event): Adjust.
11277 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
11278 declare.
11279 (struct process_info) <tdesc>: New field.
11280 (ipa_tdesc): Declare.
11281 * tdesc.c: New file.
11282 * tdesc.h: New file.
11283 * tracepoint.c: Include tdesc.h.
11284 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
11285 (get_context_regcache): Adjust to pass ipa_tdesc down.
11286 (do_action_at_tracepoint): Adjust to get the register cache size
11287 from the context regcache's description.
11288 (traceframe_walk_blocks): Adjust to get the register cache size
11289 from the current trace frame's description.
11290 (traceframe_get_pc): Adjust to get current trace frame's
11291 description and pass it down.
11292 (gdb_collect): Adjust to get the register cache size from the
11293 IPA's description.
11294 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
11295 (gdbserver_xmltarget): Delete.
11296 (initialize_low_tracepoint): Set the ipa's target description.
11297 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
11298 (initialize_low_tracepoint): Set the ipa's target description.
11299 * linux-x86-low.c: Include tdesc.h.
11300 [__x86_64__] (is_64bit_tdesc): New.
11301 (ps_get_thread_area, x86_get_thread_area): Use it.
11302 (i386_cannot_store_register): Rename to ...
11303 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
11304 (i386_cannot_fetch_register): Rename to ...
11305 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
11306 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
11307 to new interface.
11308 (target_regsets): Rename to ...
11309 (x86_regsets): ... this.
11310 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11311 interface.
11312 (x86_siginfo_fixup): Use is_64bit_tdesc.
11313 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11314 (tdesc_x32_avx_linux, tdesc_x32_linux)
11315 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11316 Declare.
11317 (x86_linux_update_xmltarget): Delete.
11318 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11319 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11320 (AMD64_LINUX_USER64_CS): New.
11321 (x86_linux_read_description): New, based on
11322 x86_linux_update_xmltarget.
11323 (same_process_callback): New.
11324 (x86_arch_setup_process_callback): New.
11325 (x86_linux_update_xmltarget): New.
11326 (x86_regsets_info): New.
11327 (amd64_linux_regs_info): New.
11328 (i386_linux_usrregs_info): New.
11329 (i386_linux_regs_info): New.
11330 (x86_linux_regs_info): New.
11331 (x86_arch_setup): Reimplement.
11332 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
11333 (x86_emit_ops): Ditto.
11334 (the_low_target): Adjust. Install x86_linux_regs_info,
11335 x86_cannot_fetch_register, and x86_cannot_store_register.
11336 (initialize_low_arch): New.
11337 * linux-ia64-low.c (tdesc_ia64): Declare.
11338 (ia64_fetch_register): Adjust.
11339 (ia64_usrregs_info, regs_info): New globals.
11340 (ia64_regs_info): New function.
11341 (the_low_target): Adjust.
11342 (initialize_low_arch): New function.
11343 * linux-sparc-low.c (tdesc_sparc64): Declare.
11344 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
11345 Adjust.
11346 (sparc_arch_setup): New function.
11347 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
11348 (the_low_target): Adjust.
11349 (initialize_low_arch): New function.
11350 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
11351 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
11352 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
11353 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
11354 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
11355 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
11356 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
11357 (tdesc_powerpc_isa205_vsx64l): Declare.
11358 (ppc_cannot_store_register, ppc_collect_ptrace_register)
11359 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
11360 (ppc_set_pc, ppc_get_hwcap): Adjust.
11361 (ppc_usrregs_info): Forward declare.
11362 (!__powerpc64__) ppc_regmap_adjusted: New global.
11363 (ppc_arch_setup): Adjust to the current process'es target
11364 description.
11365 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
11366 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
11367 (ppc_store_evrregset): Adjust.
11368 (target_regsets): Rename to ...
11369 (ppc_regsets): ... this, and make static.
11370 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
11371 (ppc_regs_info): New function.
11372 (the_low_target): Adjust.
11373 (initialize_low_arch): New function.
11374 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
11375 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
11376 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
11377 (tdesc_s390x_linux64v2): Declare.
11378 (s390_collect_ptrace_register, s390_supply_ptrace_register)
11379 (s390_fill_gregset, s390_store_last_break): Adjust.
11380 (target_regsets): Rename to ...
11381 (s390_regsets): ... this, and make static.
11382 (s390_get_pc, s390_set_pc): Adjust.
11383 (s390_get_hwcap): New target_desc parameter, and use it.
11384 [__s390x__] (have_hwcap_s390_high_gprs): New global.
11385 (s390_arch_setup): Adjust to set the current process'es target
11386 description. Don't adjust the regmap.
11387 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
11388 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
11389 (regs_info_3264): New globals.
11390 (s390_regs_info): New function.
11391 (the_low_target): Adjust.
11392 (initialize_low_arch): New function.
11393 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11394 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11395 [__mips64] (init_registers_mips_linux)
11396 (init_registers_mips_dsp_linux): Delete defines.
11397 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11398 (have_dsp): New global.
11399 (mips_read_description): New, based on mips_arch_setup.
11400 (mips_arch_setup): Reimplement.
11401 (get_usrregs_info): New function.
11402 (mips_cannot_fetch_register, mips_cannot_store_register)
11403 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11404 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11405 (target_regsets): Rename to ...
11406 (mips_regsets): ... this, and make static.
11407 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11408 (dsp_regs_info, regs_info): New globals.
11409 (mips_regs_info): New function.
11410 (the_low_target): Adjust.
11411 (initialize_low_arch): New function.
11412 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11413 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11414 Declare.
11415 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11416 (arm_read_description): New, with bits factored from
11417 arm_arch_setup.
11418 (arm_arch_setup): Reimplement.
11419 (target_regsets): Rename to ...
11420 (arm_regsets): ... this, and make static.
11421 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11422 (arm_regs_info): New function.
11423 (the_low_target): Adjust.
11424 (initialize_low_arch): New function.
11425 * linux-m68k-low.c (tdesc_m68k): Declare.
11426 (target_regsets): Rename to ...
11427 (m68k_regsets): ... this, and make static.
11428 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11429 (m68k_regs_info): New function.
11430 (m68k_arch_setup): New function.
11431 (the_low_target): Adjust.
11432 (initialize_low_arch): New function.
11433 * linux-sh-low.c (tdesc_sharch): Declare.
11434 (target_regsets): Rename to ...
11435 (sh_regsets): ... this, and make static.
11436 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11437 (sh_regs_info, sh_arch_setup): New functions.
11438 (the_low_target): Adjust.
11439 (initialize_low_arch): New function.
11440 * linux-bfin-low.c (tdesc_bfin): Declare.
11441 (bfin_arch_setup): New function.
11442 (bfin_usrregs_info, regs_info): New globals.
11443 (bfin_regs_info): New function.
11444 (the_low_target): Adjust.
11445 (initialize_low_arch): New function.
11446 * linux-cris-low.c (tdesc_cris): Declare.
11447 (cris_arch_setup): New function.
11448 (cris_usrregs_info, regs_info): New globals.
11449 (cris_regs_info): New function.
11450 (the_low_target): Adjust.
11451 (initialize_low_arch): New function.
11452 * linux-cris-low.c (tdesc_crisv32): Declare.
11453 (cris_arch_setup): New function.
11454 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11455 (cris_regs_info): New function.
11456 (the_low_target): Adjust.
11457 (initialize_low_arch): New function.
11458 * linux-m32r-low.c (tdesc_m32r): Declare.
11459 (m32r_arch_setup): New function.
11460 (m32r_usrregs_info, regs_info): New globals.
11461 (m32r_regs_info): Adjust.
11462 (initialize_low_arch): New function.
11463 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11464 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11465 (tic6x_usrregs_info): Forward declare.
11466 (tic6x_read_description): New function, based on ...
11467 (tic6x_arch_setup): ... this. Reimplement.
11468 (target_regsets): Rename to ...
11469 (tic6x_regsets): ... this, and make static.
11470 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11471 (tic6x_regs_info): New function.
11472 (the_low_target): Adjust.
11473 (initialize_low_arch): New function.
11474 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11475 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11476 (target_regsets): Rename to ...
11477 (xtensa_regsets): ... this, and make static.
11478 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11479 globals.
11480 (xtensa_arch_setup, xtensa_regs_info): New functions.
11481 (the_low_target): Adjust.
11482 (initialize_low_arch): New function.
11483 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11484 (nios2_arch_setup): Set the current process'es tdesc.
11485 (target_regsets): Rename to ...
11486 (nios2_regsets): ... this.
11487 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11488 (nios2_regs_info): New function.
11489 (the_low_target): Adjust.
11490 (initialize_low_arch): New function.
11491 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11492 (aarch64_arch_setup): Set the current process'es tdesc.
11493 (target_regsets): Rename to ...
11494 (aarch64_regsets): ... this.
11495 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11496 (aarch64_regs_info): New function.
11497 (the_low_target): Adjust.
11498 (initialize_low_arch): New function.
11499 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11500 globals.
11501 (target_regsets): Rename to ...
11502 (tile_regsets): ... this.
11503 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11504 (tile_regs_info): New function.
11505 (tile_arch_setup): Set the current process'es tdesc.
11506 (the_low_target): Adjust.
11507 (initialize_low_arch): New function.
11508 * spu-low.c (tdesc_spu): Declare.
11509 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
11510 * win32-arm-low.c (tdesc_arm): Declare.
11511 (arm_arch_setup): New function.
11512 (the_low_target): Install arm_arch_setup instead of
11513 init_registers_arm.
11514 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
11515 (init_windows_x86): Rename to ...
11516 (i386_arch_setup): ... this. Set `win32_tdesc'.
11517 (the_low_target): Adjust.
11518 * win32-low.c (win32_tdesc): New global.
11519 (child_add_thread): Don't create the thread cache here.
11520 (do_initial_child_stuff): Set the new process'es tdesc.
11521 * win32-low.h (struct target_desc): Forward declare.
11522 (win32_tdesc): Declare.
11523 * lynx-i386-low.c (tdesc_i386): Declare global.
11524 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11525 * lynx-low.c (lynx_tdesc): New global.
11526 (lynx_add_process): Set the new process'es tdesc.
11527 * lynx-low.h (struct target_desc): Forward declare.
11528 (lynx_tdesc): Declare global.
11529 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11530 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11531 * nto-low.c (nto_tdesc): New global.
11532 (do_attach): Set the new process'es tdesc.
11533 * nto-low.h (struct target_desc): Forward declare.
11534 (nto_tdesc): Declare.
11535 * nto-x86-low.c (tdesc_i386): Declare.
11536 (nto_x86_arch_setup): Set `nto_tdesc'.
11537
11538 2013-06-04 Gary Benson <gbenson@redhat.com>
11539
11540 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11541 to qSupported response when appropriate.
11542 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11543 with nonzero-length annex.
11544 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11545 arguments supplied in annex.
11546
11547 2013-05-31 Doug Evans <dje@google.com>
11548
11549 PR server/15594
11550 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11551 64 bits in 64-cross-32 environment.
11552
11553 2013-05-28 Pedro Alves <palves@redhat.com>
11554
11555 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11556 (aarch64-without-fpu.c): Delete rule.
11557 * configure.srv (aarch64*-*-linux*): Remove references to
11558 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11559 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11560 declaration.
11561
11562 2013-05-24 Pedro Alves <palves@redhat.com>
11563
11564 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11565 instead of strchr/decode_address. Error if the range isn't split
11566 with a ','. Don't assume there's be a ':' in the action.
11567
11568 2013-05-23 Yao Qi <yao@codesourcery.com>
11569 Pedro Alves <palves@redhat.com>
11570
11571 * linux-low.c (lwp_in_step_range): New function.
11572 (linux_wait_1): If the thread was range stepping and stopped
11573 outside the stepping range, report the stop to GDB. Otherwise,
11574 continue stepping. Add range stepping debug output.
11575 (linux_set_resume_request): Copy the step range from the resume
11576 request to the lwp.
11577 (linux_supports_range_stepping): New.
11578 (linux_target_ops) <supports_range_stepping>: Set to
11579 linux_supports_range_stepping.
11580 * linux-low.h (struct linux_target_ops)
11581 <supports_range_stepping>: New field.
11582 (struct lwp_info) <step_range_start, step_range_end>: New fields.
11583 * linux-x86-low.c (x86_supports_range_stepping): New.
11584 (the_low_target) <supports_range_stepping>: Set to
11585 x86_supports_range_stepping.
11586 * server.c (handle_v_cont): Handle 'r' action.
11587 (handle_v_requests): Append ";r" if the target supports range
11588 stepping.
11589 * target.h (struct thread_resume) <step_range_start,
11590 step_range_end>: New fields.
11591 (struct target_ops) <supports_range_stepping>:
11592 New field.
11593 (target_supports_range_stepping): New macro.
11594
11595 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11596
11597 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11598 confusion in comment.
11599
11600 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11601
11602 * lynx-low.c (struct process_info_private): New type.
11603 (lynx_add_process): New function.
11604 (lynx_create_inferior, lynx_attach): Replace calls to
11605 add_process by calls to lynx_add_process.
11606 (lynx_resume): If PTID is null, then try using
11607 current_process()->private->last_wait_event_ptid.
11608 Add comments.
11609 (lynx_clear_inferiors): Delete. The contents of that function
11610 has been inlined in lynx_mourn;
11611 (lynx_wait_1): Save the ptid in the process's private data.
11612 (lynx_mourn): Free the process' private data. Replace call
11613 to lynx_clear_inferiors by call to clear_inferiors.
11614
11615 2013-05-17 Yao Qi <yao@codesourcery.com>
11616
11617 * i386-low.c (i386_length_and_rw_bits): Move the comment to
11618 the right place.
11619
11620 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
11621
11622 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
11623 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
11624 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
11625 PT_TEXT_END_ADDR guards. Update comments.
11626 (linux_target_op) <read_offsets>: Conditionally define to
11627 linux_read_offsets if the target is UCLIBC and if it defines
11628 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
11629
11630 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
11631 Andrew Jenner <andrew@codesourcery.com>
11632
11633 * Makefile.in (SFILES): Add linux-nios2-low.c.
11634 (clean): Add action to delete nios2-linux.c.
11635 (nios2-linux.c): New rule.
11636 * configure.srv: Add nios2*-*-linux*.
11637 * linux-nios2-low.c: New.
11638
11639 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
11640
11641 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
11642
11643 2013-04-25 Hui Zhu <hui@codesourcery.com>
11644
11645 PR gdb/15186
11646 * ax.c (ax_printf): Add fflush.
11647
11648 2013-04-22 Tom Tromey <tromey@redhat.com>
11649
11650 * Makefile.in (SFILES): Add filestuff.c.
11651 (OBS): Add filestuff.o.
11652 (filestuff.o): New target.
11653 * config.in, configure: Rebuild.
11654 * configure.ac: Check for fdwalk, pipe2.
11655
11656 2013-04-17 Pedro Alves <palves@redhat.com>
11657
11658 * configure.ac (USE_THREAD_DB): Delete variable.
11659 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
11660 Don't AC_SUBST USE_THREAD_DB.
11661 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
11662 * config.in, configure: Regenerate.
11663
11664 2013-04-16 Pedro Alves <palves@redhat.com>
11665
11666 * linux-low.h (struct lwp_info) <thread_known>: Move under
11667 the USE_THREAD_DB #ifdef.
11668
11669 2013-04-16 Pedro Alves <palves@redhat.com>
11670
11671 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
11672 (linux-low.o): Delete rule.
11673 * linux-low.h: Always include "gdb_thread_db.h" instead of
11674 conditionally including thread_db.h.
11675 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
11676 HAVE_THREAD_DB_H.
11677
11678 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11679
11680 * Makefile.in (install-only): Fix make install regression.
11681
11682 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11683
11684 Convert man pages to texinfo, new gdbinit.5 texinfo page.
11685 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
11686 installation.
11687 * gdbserver.1: Remove.
11688
11689 2013-03-22 Pedro Alves <palves@redhat.com>
11690
11691 * linux-low.c (handle_extended_wait): Don't call
11692 linux_enable_event_reporting.
11693
11694 2013-03-15 Tony Theodore <tonyt@logyst.com>
11695
11696 PR build/9098:
11697 * Makefile.in (SHELL): Use @SHELL@.
11698
11699 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
11700
11701 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
11702 compiler warning.
11703
11704 2013-03-13 Joel Brobecker <brobecker@adacore.com>
11705
11706 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
11707 Remove extraneous NULL element.
11708
11709 2013-03-13 Yao Qi <yao@codesourcery.com>
11710
11711 * tracepoint.c (traceframe_read_tsv): Look for the last matched
11712 'V' block in trace frame.
11713
11714 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11715
11716 * target.h (struct target_ops): Add btrace ops.
11717 (target_supports_btrace): New macro.
11718 (target_enable_btrace): New macro.
11719 (target_disable_btrace): New macro.
11720 (target_read_btrace): New macro.
11721 * gdbthread.h (struct thread_info): Add btrace field.
11722 * server.c: Include btrace-common.h.
11723 (handle_btrace_general_set): New function.
11724 (handle_btrace_enable): New function.
11725 (handle_btrace_disable): New function.
11726 (handle_general_set): Call handle_btrace_general_set.
11727 (handle_qxfer_btrace): New function.
11728 (struct qxfer qxfer_packets[]): Add btrace entry.
11729 * inferiors.c (remove_thread): Disable btrace.
11730 * linux-low: Include linux-btrace.h.
11731 (linux_low_enable_btrace): New function.
11732 (linux_low_read_btrace): New function.
11733 (linux_target_ops): Add btrace ops.
11734 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
11735 Add srv_linux_btrace=yes.
11736 (x86_64-*-linux*): Add linux-btrace.o.
11737 Add srv_linux_btrace=yes.
11738 * configure.ac: Define HAVE_LINUX_BTRACE.
11739 * config.in: Regenerated.
11740 * configure: Regenerated.
11741
11742 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11743
11744 * server.c (handle_qxfer): Preserve error message if -3 is
11745 returned.
11746 (qxfer): Document the -3 return value.
11747
11748 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11749
11750 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
11751 (linux_btrace_h): New variable.
11752 (linux-btrace.o): New rule.
11753
11754 2013-03-08 Stan Shebs <stan@codesourcery.com>
11755 Hafiz Abid Qadeer <abidh@codesourcery.com>
11756
11757 * tracepoint.c (trace_buffer_size): New global.
11758 (DEFAULT_TRACE_BUFFER_SIZE): New define.
11759 (init_trace_buffer): Change to one-argument function. Allocate
11760 trace buffer memory.
11761 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
11762 handle QTBuffer:size packet.
11763 (cmd_bigqtbuffer_size): New function.
11764 (initialize_tracepoint): Call init_trace_buffer with
11765 DEFAULT_TRACE_BUFFER_SIZE.
11766 * server.c (handle_query): Add QTBuffer:size in the
11767 supported packets.
11768
11769 2013-03-07 Yao Qi <yao@codesourcery.com>
11770
11771 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
11772 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
11773 of -1.
11774 (cmd_qtsp): Adjust condition. Do post increment.
11775 Set cur_action and cur_step_action back to 0.
11776
11777 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
11778
11779 PR server/15236
11780 * linux-low.c (linux_write_memory): Return early success if LEN is
11781 zero.
11782
11783 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11784
11785 * configure.srv: Add x86_64-*-cygwin* as target.
11786
11787 2013-02-28 Tom Tromey <tromey@redhat.com>
11788
11789 * configure.ac: Invoke AC_SYS_LARGEFILE.
11790 * configure, config.in: Rebuild.
11791
11792 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
11793
11794 * win32-low.c: Throughout, fix format strings and casts of
11795 printf-like functions to avoid type related warnings on all
11796 platforms.
11797 (get_child_debug_event): Print dwDebugEventCode as hex since
11798 that's how it's usually documented.
11799
11800 2013-02-28 Yao Qi <yao@codesourcery.com>
11801
11802 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
11803 pulongest.
11804
11805 2013-02-27 Jiong Wang <jiwang@tilera.com>
11806
11807 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
11808 (reg-tilegx32.c): New rule.
11809 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
11810 * linux-tile-low.c (tile_arch_setup): New function. Invoke
11811 different register info initializer according to elf class.
11812 (init_registers_tilgx32): New function. The tilegx32 register info
11813 initializer.
11814 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
11815 (tile_store_gregset): Likewise.
11816
11817 2013-02-27 Yao Qi <yao@codesourcery.com>
11818
11819 * server.c (process_point_options): Print debug message when
11820 debug_threads is true.
11821
11822 2013-02-26 Yao Qi <yao@codesourcery.com>
11823
11824 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
11825
11826 2013-02-19 Pedro Alves <palves@redhat.com>
11827 Kai Tietz <ktietz@redhat.com>
11828
11829 PR gdb/15161
11830
11831 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
11832 instead of strtoul to extract address from packet.
11833 (process_serial_event) <'z'>: Likewise.
11834
11835 2013-02-18 Yao Qi <yao@codesourcery.com>
11836
11837 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
11838
11839 2013-02-14 Pedro Alves <palves@redhat.com>
11840
11841 Plug memory leak.
11842
11843 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
11844 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
11845
11846 2013-02-14 Pedro Alves <palves@redhat.com>
11847
11848 * tracepoint.c (cmd_qtdpsrc): Use savestring.
11849
11850 2013-02-14 Pedro Alves <palves@redhat.com>
11851
11852 * tracepoint.c (save_string): Delete.
11853 (add_tracepoint_action): Use savestring instead of save_string.
11854
11855 2013-02-12 Pedro Alves <palves@redhat.com>
11856
11857 * linux-xtensa-low.c: Ditto.
11858 * xtensa-xtregs.c: Ditto.
11859
11860 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11861
11862 * thread-db.c (thread_db_get_tls_address): NULL pointer check
11863 thread_db.
11864
11865 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11866
11867 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
11868 aarch64_num_wp_regs and aarch64_num_bp_regs to
11869 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
11870
11871 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11872
11873 * linux-aarch64-low.c (ps_get_thread_area): Replace
11874 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
11875
11876 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11877 Marcus Shawcroft <marcus.shawcroft@arm.com>
11878 Nigel Stephens <nigel.stephens@arm.com>
11879 Yufeng Zhang <yufeng.zhang@arm.com>
11880
11881 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
11882 (aarch64.c, aarch64-without-fpu.c): New targets.
11883 * configure.srv (aarch64*-*-linux*): New.
11884 * linux-aarch64-low.c: New file.
11885
11886 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
11887
11888 * linux-low.c (handle_extended_wait, linux_create_inferior)
11889 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
11890 (dequeue_one_deferred_signal, linux_resume_one_thread)
11891 (fetch_register, linux_write_memory, linux_enable_event_reporting)
11892 (linux_tracefork_grandchild, linux_test_for_tracefork)
11893 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
11894 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
11895 where the argument is 0.
11896
11897 2013-01-25 Yao Qi <yao@codesourcery.com>
11898
11899 * event-loop.c: Include "queue.h".
11900 (gdb_event_p): New typedef.
11901 (struct gdb_event) <next_event>: Remove.
11902 (event_queue): Change to QUEUE(gdb_event_p).
11903 (async_queue_event): Remove.
11904 (gdb_event_xfree): New.
11905 (initialize_event_loop): New.
11906 (process_event): Use API from QUEUE.
11907 (wait_for_event): Likewise.
11908 * server.c (main): Call initialize_event_loop.
11909 * server.h (initialize_event_loop): Declare.
11910
11911 2013-01-18 Yao Qi <yao@codesourcery.com>
11912
11913 * ax.h (struct eval_agent_expr_context): New.
11914 (gdb_eval_agent_expr): Update declaration.
11915 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
11916 TFRAME. Add new argument CTX.
11917 * server.h (struct eval_agent_expr_context): Declare.
11918 (agent_mem_read, agent_tsv_read): Update declaration.
11919 (agent_mem_read_string): Likewise.
11920 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
11921 (add_traceframe_block): Add new argument TPOINT.
11922 Increase TPOINT->traceframe_usage.
11923 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
11924 eval_tracepoint_agent_expr.
11925 (condition_true_at_tracepoint): Likewise.
11926 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
11927 (agent_mem_read_string, agent_tsv_read): Likewise.
11928
11929 2013-01-16 Yao Qi <yao@codesourcery.com>
11930
11931 * linux-low.c (linux_resume_one_lwp): Don't check
11932 'lwp->bp_reinsert != 0'.
11933
11934 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11935 Pedro Alves <palves@redhat.com>
11936
11937 * lynx-low.c (ptrace_request_to_str): Define a temporary
11938 macro and use it to simplify this function's implementation.
11939
11940 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11941
11942 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
11943 sets errno.
11944
11945 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11946
11947 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
11948
11949 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11950
11951 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
11952
11953 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11954
11955 * lynx-low.c (lynx_resume): Use the resume_info parameter
11956 to determine the ptid for the lynx_ptrace call, unless
11957 it is equal to minus_one_ptid, in which case we use the
11958 ptid of the current_inferior.
11959 (lynx_wait_1): After having received a thread create/exit
11960 event, resume the inferior's execution using the signaling
11961 thread's ptid, rather than the old ptid.
11962
11963 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11964
11965 * lynx-low.c (lynx_resume): Delete variable ret.
11966
11967 2013-01-01 Joel Brobecker <brobecker@adacore.com>
11968
11969 * gdbreplay.c (gdbreplay_version): Update copyright year.
11970 * server.c (gdbserver_version): Likewise.
11971
11972 2012-12-17 Joel Brobecker <brobecker@adacore.com>
11973
11974 * lynx-low.c (lynx_wait_1): Add debug trace before adding
11975 new thread.
11976
11977 2012-12-17 Joel Brobecker <brobecker@adacore.com>
11978
11979 * lynx-low.c (ptrace_request_to_str): Add handling for
11980 PTRACE_GETTRACESIG.
11981
11982 2012-12-17 Joel Brobecker <brobecker@adacore.com>
11983
11984 * lynx-low.c (lynx_attach): Delete variable new_process.
11985
11986 2012-12-17 Joel Brobecker <brobecker@adacore.com>
11987
11988 * lynx-low.c (lynx_create_inferior): Delete variable
11989 new_process.
11990
11991 2012-12-17 Joel Brobecker <brobecker@adacore.com>
11992
11993 * lynx-low.c (ptrace_request_to_str): Do not handle
11994 PTRACE_GETTHREADLIST if this macro does not exist.
11995
11996 2012-12-15 Yao Qi <yao@codesourcery.com>
11997
11998 * Makefile.in (OBS): Add notif.o.
11999 * notif.c, notif.h: New.
12000 * server.c: Include "notif.h".
12001 (struct vstop_notif) <next>: Remove.
12002 <base>: New field.
12003 (queue_stop_reply): Update.
12004 (push_event, send_next_stop_reply): Remove.
12005 (discard_queued_stop_replies): Update.
12006 (notif_stop): New variable.
12007 (handle_v_stopped): Remove.
12008 (handle_v_requests): Don't call handle_v_stopped. Call
12009 handle_ack_notif instead.
12010 (queue_stop_reply_callback): Call notif_event_enque instead
12011 of queue_stop_reply.
12012 (handle_status): Don't call send_next_stop_reply, call
12013 notif_write_event instead.
12014 (kill_inferior_callback): Likewise.
12015 (detach_or_kill_inferior_callback): Likewise.
12016 (main): Call initialize_notif.
12017 (process_serial_event): Call QUEUE_is_empty.
12018 (handle_target_event): Call notif_push instead of push event.
12019 * server.h (push_event): Remove declaration.
12020
12021 2012-12-10 Tom Tromey <tromey@redhat.com>
12022
12023 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12024 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12025 macros.
12026 (.c.o): Rewrite.
12027 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12028 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12029 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12030 (amd64-linux-ipa.o, ax.o): Rewrite.
12031 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12032 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12033 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12034 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12035 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12036 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12037 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12038 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12039 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12040 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12041 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12042 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12043 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12044 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12045 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12046 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12047 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12048 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12049 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12050 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12051 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12052 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12053 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12054 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12055 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12056 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12057 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12058 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12059 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
12060 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
12061 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
12062 (reg-tilegx.o): Remove.
12063 (all_object_files): New macro.
12064 Include .deps files.
12065 * aclocal.m4, configure: Rebuild.
12066 * acinclude.m4: Include depstand.m4, lead-dot.m4.
12067 * configure.ac: Invoke ZW_CREATE_DEPDIR,
12068 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
12069
12070 2012-12-05 Tom Tromey <tromey@redhat.com>
12071
12072 PR gdb/14917:
12073 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12074
12075 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
12076
12077 * configure.ac: Check for linux/perf_event.h.
12078 * config.in: Regenerated.
12079 * configure: Regenerated.
12080
12081 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12082
12083 * hostio.c (handle_readlink): Decrease buffer size
12084 parameter passed to readlink by one byte.
12085
12086 2012-11-26 Yao Qi <yao@codesourcery.com>
12087
12088 * configure.ac (build_warnings): Append '-Wempty-body'.
12089 * configure: Regenerated.
12090 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12091 body.
12092
12093 2012-11-15 Pierre Muller <muller@sourceware.org>
12094
12095 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
12096 * config.in: Regenerate.
12097 * configure: Regenerate.
12098 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
12099 Use "gdb_wait.h" header instead of <sys/wait.h> header.
12100 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12101 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
12102 header.
12103 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
12104 instead of <sys/wait.h> header.
12105 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12106
12107 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
12108
12109 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12110 (various make rules): Remove -DGDBSERVER
12111
12112 2012-11-09 Yao Qi <yao@codesourcery.com>
12113
12114 * spu-low.c (current_ptid): Move it to ..
12115 * gdbthread.h: ... here. New.
12116 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
12117 * server.c (myresume, process_serial_event): Likewise.
12118 * thread-db.c (thread_db_find_new_threads): Likewise.
12119 * tracepoint.c (run_inferior_command): Likewise.
12120
12121 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
12122
12123 * server.c (handle_search_memory_1): Include access length in
12124 warning message.
12125
12126 2012-09-05 Michael Brandt <michael.brandt@axis.com>
12127
12128 * linux-crisv32-low.c: Fix compile errors.
12129
12130 2012-09-04 Yao Qi <yao@codesourcery.com>
12131
12132 * tracepoint.c (cmd_qtsv): Adjust debug message.
12133 Don't check CUR_TPOINT.
12134
12135 2012-08-28 Yao Qi <yao@codesourcery.com>
12136
12137 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
12138 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
12139 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
12140 Remove declarations of xmalloc, xreallloc, xstrdup and
12141 freeargv.
12142 * Makefile.in (libiberty_h): New.
12143 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
12144 (linux-bfin-low.o): Append dependency 'libiberty.h'.
12145
12146 2012-08-23 Yao Qi <yao@codesourcery.com>
12147
12148 * server.h: Remove declaration of 'xsnprintf'.
12149
12150 2012-08-22 Keith Seitz <keiths@redhat.com>
12151
12152 * server.h: Include build-gnulib-gbserver/config.h.
12153 * gdbreplay.c: Likewise.
12154
12155 2012-08-08 Doug Evans <dje@google.com>
12156
12157 * Makefile.in (SFILES): Add gdb_vecs.c.
12158 (OBS): Add gdb_vecs.o.
12159 (gdb_vecs_h, host_defs_h): New variables.
12160 (thread-db.o): Add $(gdb_vecs_h) dependency.
12161 (gdb_vecs.o): New rule.
12162 * thread-db.c: #include "gdb_vecs.h".
12163 (thread_db_load_search): Use a vector to iterate over path elements.
12164 Handle text appearing after "$pdir".
12165
12166 * configure.ac: Add check for strstr.
12167 * config.in: Regenerate.
12168 * configure: Regenerate.
12169
12170 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12171
12172 * hostio.c (handle_pread): If pread fails, fall back to attempting
12173 lseek/read.
12174 (handle_pwrite): Likewise for pwrite.
12175
12176 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12177
12178 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
12179 between unsupported TYPE and unimplementable ADDR/LEN combination.
12180 (arm_insert_point): Act on new return value.
12181
12182 2012-07-31 Pedro Alves <palves@redhat.com>
12183
12184 * server.c (process_point_options): Only skip tokens if we find
12185 one that is unrecognized. Don't treat 'X' specially while
12186 skipping unrecognized tokens.
12187
12188 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12189
12190 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12191 to 4-byte-align HW breakpoint addresses for Thumb.
12192
12193 2012-07-27 Yao Qi <yao@codesourcery.com>
12194
12195 PR remote/14161.
12196
12197 * server.h: Declare gdb_agent_about_to_close.
12198 * target.c (kill_inferior): Include "agent.h".
12199 New. Send command 'kill'.
12200 * target.h (kill_inferior): Removed macro.
12201 * tracepoint.c (gdb_agent_about_to_close): New.
12202 (gdb_agent_helper_thread): Handle command 'close'.
12203 Wait endlessly until the inferior stops.
12204 Install gdb_agent_remove_socket to atexit hook.
12205 (agent_socket_name): New static variable.
12206 (gdb_agent_socket_init): Replace local variable 'name' with
12207 'agent_socket_name'.
12208 (gdb_agent_remove_socket): New.
12209
12210 2012-07-27 Yao Qi <yao@codesourcery.com>
12211
12212 * server.c (process_point_options): Stop at 'X' when parsing.
12213
12214 2012-07-19 Michael Eager <eager@eagercon.com>
12215
12216 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
12217 to hw_execute.
12218 * linux-x86-low.c (x86_insert_point, x86_remove_point):
12219 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
12220 hardware breakpoint.
12221
12222 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12223
12224 * gdbserver/linux-low.c (initialize_low): Call
12225 linux_ptrace_init_warnings.
12226
12227 2012-07-02 Doug Evans <dje@google.com>
12228
12229 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12230 pointer to int.
12231
12232 2012-07-02 Stan Shebs <stan@codesourcery.com>
12233
12234 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12235 (ax.o): Add it to build rule.
12236 (ax-ipa.o): Ditto.
12237 (OBS): Add format.o.
12238 (IPA_OBS): Add format.o.
12239 * server.c (handle_query): Claim support for breakpoint commands.
12240 (process_point_options): Add command case.
12241 (process_serial_event): Leave running if there are printfs in
12242 effect.
12243 * mem-break.h (any_persistent_commands): Declare.
12244 (add_breakpoint_commands): Declare.
12245 (gdb_no_commands_at_breakpoint): Declare.
12246 (run_breakpoint_commands): Declare.
12247 * mem-break.c (struct point_command_list): New struct.
12248 (struct breakpoint): New field command_list.
12249 (any_persistent_commands): New function.
12250 (add_commands_to_breakpoint): New function.
12251 (add_breakpoint_commands): New function.
12252 (gdb_no_commands_at_breakpoint): New function.
12253 (run_breakpoint_commands): New function.
12254 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
12255 locally.
12256 * ax.c: Include format.h.
12257 (ax_printf): New function.
12258 (gdb_eval_agent_expr): Add printf opcode.
12259
12260 2012-06-13 Yao Qi <yao@codesourcery.com>
12261
12262 * server.c (start_inferior): Remove duplicated writes to fields
12263 'last_resume_kind' and 'last_status' of 'current_inferior'.
12264
12265 2012-06-12 Yao Qi <yao@codesourcery.com>
12266 Pedro Alves <palves@redhat.com>
12267
12268 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12269 comment.
12270 * server.c (handle_v_cont): Extend comment.
12271
12272 2012-06-11 Yao Qi <yao@codesourcery.com>
12273
12274 * linux-low.c (linux_attach): Add 'static'.
12275
12276 2012-06-06 Yao Qi <yao@codesourcery.com>
12277
12278 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12279
12280 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12281
12282 Fix gcc -flto compilation warning.
12283 * server.c (main): Make variable multi_mode and attach volatile.
12284
12285 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12286
12287 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12288 if the platform doesn't know about it.
12289
12290 2012-05-30 Jeff Kenton <jkenton@tilera.com>
12291
12292 * Makefile.in (SFILES): Add linux-tile-low.c.
12293 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
12294 * configure.srv: Handle tilegx-*-linux*.
12295 * linux-tile-low.c: New file.
12296
12297 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12298
12299 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12300
12301 2012-05-24 Pedro Alves <palves@redhat.com>
12302
12303 PR gdb/7205
12304
12305 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
12306
12307 2012-05-24 Pedro Alves <palves@redhat.com>
12308
12309 PR gdb/7205
12310
12311 Replace target_signal with gdb_signal throughout.
12312
12313 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12314
12315 * linux-low.c (linux_store_registers): Avoid the copying sequence
12316 when no data has been retrieved by ptrace.
12317
12318 2012-05-22 Will Deacon <will.deacon@arm.com>
12319
12320 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12321 Include asm/ptrace.h.
12322 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12323 already defined.
12324
12325 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12326
12327 * linux-low.c (linux_store_registers): Don't re-retrieve data
12328 with ptrace that has already been obtained from /proc. Always
12329 copy any data retrieved with ptrace to the buffer supplied.
12330
12331 2012-05-11 Yao Qi <yao@codesourcery.com>
12332 Pedro Alves <palves@redhat.com>
12333
12334 * linux-low.c (enum stopping_threads_kind): New.
12335 (stopping_threads): Change type to `enum stopping_threads_kind'.
12336 (handle_extended_wait): If stopping and suspending threads, leave
12337 the new_lwp suspended too.
12338 (linux_wait_for_event): Adjust.
12339 (stop_all_lwps): Set `stopping_threads' to
12340 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
12341 whether we're suspending threads or just stopping them. Assert no
12342 recursion happens.
12343
12344 2012-04-29 Yao Qi <yao@codesourcery.com>
12345
12346 * server.h: Move some code to ...
12347 * gdbthread.h: ... here. New.
12348 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
12349 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
12350 (nto-low.o, win32-low.o): Likewise.
12351 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
12352 * regcache.c, remote-utils.c, server.c: Likewise.
12353 * target.c, tracepoint.c, win32-low.c: Likewise.
12354
12355 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12356
12357 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
12358 (PTRACE_ARG4_TYPE): Likewise.
12359 (PTRACE_XFER_TYPE): Likewise.
12360 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
12361 ptrace to PTRACE_ARG3_TYPE.
12362 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
12363 (PTRACE_ARG4_TYPE): Likewise.
12364 (PTRACE_XFER_TYPE): Likewise.
12365 (linux_detach_one_lwp): Cast fourth argument of
12366 ptrace to long then PTRACE_ARG4_TYPE.
12367 (regsets_fetch_inferior_registers): Cast third argument of
12368 ptrace to long then PTRACE_ARG3_TYPE.
12369 (regsets_store_inferior_registers): Likewise.
12370
12371 2012-04-20 Pedro Alves <palves@redhat.com>
12372
12373 * configure: Regenerate.
12374
12375 2012-04-19 Pedro Alves <palves@redhat.com>
12376
12377 * Makefile.in (GNULIB_BUILDDIR): New.
12378 (LIBGNU, INCGNU, GNULIB_H): Adjust.
12379 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
12380 (all, install-only, uninstall, clean-info, all-lib, clean): No
12381 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
12382 (maintainer-clean realclean distclean): Use subdir_do.
12383 (subdir_do): New.
12384 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
12385 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
12386 * acinclude.m4: Include acx_configure_dir.m4.
12387 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
12388 calls. Call AC_PROG_RANLIB. Configure gnulib using
12389 ACX_CONFIGURE_DIR.
12390 (GNULIB): New.
12391 (GNULIB_STDINT_H): Adjust.
12392 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12393 * gdbreplay.c: Include build-gnulib/config.h.
12394 * server.h: Likewise.
12395 * aclocal.m4: Regenerate.
12396 * config.in: Regenerate.
12397 * configure: Regenerate.
12398
12399 2012-04-19 Pedro Alves <palves@redhat.com>
12400
12401 * Makefile.in (LIBGNU, INCGNU): Adjust.
12402 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12403 (all, install-only, uninstall, clean-info, all-lib, clean)
12404 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12405 * configure.ac: Adjust AC_OUTPUT output.
12406 * aclocal.m4: Regenerate.
12407 * configure: Regenerate.
12408
12409 2012-04-19 Pedro Alves <palves@redhat.com>
12410
12411 * Makefile.in (generated_files): New.
12412 (server_h): Remove the explicit dependency on config.h, and depend
12413 on $generated_files.
12414
12415 2012-04-19 Pedro Alves <palves@redhat.com>
12416
12417 * Makefile.in (INCGNU): Add -Ignulib.
12418
12419 2012-04-19 Pedro Alves <palves@redhat.com>
12420
12421 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12422 (INCGNU): ... this, and spell out -I here.
12423 (GNULIB_LIB): Rename to ...
12424 (LIBGNU): ... this.
12425 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12426
12427 2012-04-19 Pedro Alves <palves@redhat.com>
12428
12429 * config.in: Regenerate.
12430
12431 2012-04-19 Pedro Alves <palves@redhat.com>
12432
12433 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12434 * server.h (memmem): Remove declaration.
12435 * config.in: Regenerate.
12436 * configure: Regenerate.
12437
12438 2012-04-19 Yao Qi <yao@codesourcery.com>
12439
12440 * Makefile.in (SFILES): Add common/vec.c.
12441 (OBS): Add vec.o.
12442 (vec.o): New rule.
12443
12444 2012-04-19 Yao Qi <yao@codesourcery.com>
12445
12446 * remote-utils.c (prepare_resume_reply): Replace with macro
12447 target_core_of_thread.
12448 * server.c (handle_qxfer_threads_proper): Likewise.
12449 * target.h (traget_core_of_thread): New macro.
12450
12451 2012-04-18 Pedro Alves <palves@redhat.com>
12452
12453 * aclocal.m4: Regenerate.
12454 * configure: Regenerate.
12455
12456 2012-04-16 Yao Qi <yao@codesourcery.com>
12457
12458 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12459 duplicated on address.
12460
12461 2012-04-16 Yao Qi <yao@codesourcery.com>
12462
12463 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12464 (struct tracepoint_action_ops) <send>: New field.
12465 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12466 (agent_expr_send, x_tracepoint_action_send): New.
12467 (l_tracepoint_action_send): New.
12468 (cmd_qtdp): Download and install tracepoint
12469 according to `use_agent'.
12470 (run_inferior_command): Add one more parameter `len'.
12471 Update callers.
12472 (tracepoint_send_agent): New.
12473 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12474
12475 2012-04-16 Yao Qi <yao@codesourcery.com>
12476
12477 * tracepoint.c (download_tracepoints): Moved to ...
12478 (cmd_qtstart): ... here.
12479
12480 2012-04-14 Yao Qi <yao@codesourcery.com>
12481
12482 * tracepoint.c: Include inttypes.h.
12483 (struct collect_memory_action): Use sized types.
12484 (struct tracepoint): Likewise.
12485 (cmd_qtdp, stop_tracing): Update print specifiers.
12486 (cmd_qtp, response_tracepoint): Likewise.
12487 (collect_data_at_tracepoint): Likewise.
12488 (collect_data_at_step): Likewise.
12489
12490 2012-04-14 Yao Qi <yao@codesourcery.com>
12491
12492 Import gnulib module inttypes.
12493 * aclocal.m4, config.in, configure: Regenerated.
12494
12495 2012-04-14 Yao Qi <yao@codesourcery.com>
12496
12497 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12498 Makefile and config.status at last.
12499
12500 2012-04-13 Yao Qi <yao@codesourcery.com>
12501
12502 * tracepoint.c: Include stdint.h unconditionally.
12503
12504 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12505
12506 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12507 on BFD_HAVE_SYS_PROCFS_TYPE.
12508 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
12509 * configure: Regenerate.
12510 * config.in: Likewise.
12511
12512 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12513
12514 * Makefile.in (clean): Also remove x32.c x32-linux.c
12515 x32-avx.c x32-avx-linux.c.
12516 (x32.o): New target.
12517 (x32.c): Likewise.
12518 (x32-linux.o): Likewise.
12519 (x32-linux.c): Likewise.
12520 (x32-avx.o): Likewise.
12521 (x32-avx.c): Likewise.
12522 (x32-avx-linux.o): Likewise.
12523 (x32-avx-linux.c): Likewise.
12524
12525 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12526 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12527 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12528 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12529 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12530 i386/x32-avx-linux.xml.
12531
12532 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12533 (init_registers_x32_avx_linux): Likwise.
12534 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12535 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12536
12537 2012-04-13 Pedro Alves <palves@redhat.com>
12538
12539 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12540 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12541 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12542 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12543 the sub-make.
12544
12545 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12546
12547 * linux-x86-low.c (compat_x32_clock_t): New.
12548 (compat_x32_siginfo_t): Likewise.
12549 (compat_x32_siginfo_from_siginfo): Likewise.
12550 (siginfo_from_compat_x32_siginfo): Likewise.
12551 (linux_is_elf64): Likewise.
12552 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12553 and siginfo_from_compat_x32_siginfo for x32.
12554 (x86_arch_setup): Set linux_is_elf64.
12555
12556 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12557
12558 PR gdb/13969
12559 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12560 e_machine field.
12561 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12562 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12563 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12564 compatible with process.
12565
12566 2012-04-12 Yao Qi <yao@codesourcery.com>
12567
12568 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12569 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12570 (install-only, install-info, clean): Handle sub dir gnulib.
12571 (all-lib, am--refresh): New targets.
12572 (memmem.o): Remove target.
12573 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12574 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12575 (AC_REPLACE_FUNCS): Remove memmem.
12576 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12577 (AC_OUTPUT): Generate Makefile in gnulib/.
12578 * aclocal.m4, config.in, configure: Regenerated.
12579
12580 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12581
12582 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12583
12584 2012-04-05 Pedro Alves <palves@redhat.com>
12585
12586 -Werror=strict-aliasing
12587
12588 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12589 pointer.
12590
12591 2012-04-04 Pedro Alves <palves@redhat.com>
12592
12593 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
12594 (sparc_store_gregset_from_stack, sparc_store_gregset)
12595 (sparc_breakpoint_at): Fix formatting.
12596
12597 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12598
12599 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12600 are available.
12601 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
12602 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
12603 * config.in: Regenerate.
12604 * configure: Likewise.
12605
12606 2012-03-29 Pedro Alves <palves@redhat.com>
12607
12608 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
12609 Correct ptrace arguments.
12610
12611 2012-03-28 Pedro Alves <palves@redhat.com>
12612
12613 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
12614 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
12615 (IA64_FR1_REGNUM): New defines.
12616 (ia64_fetch_register): New.
12617 (the_low_target): Install it.
12618 * linux-low.h (struct linux_target_ops) <fetch_register>: New
12619 field.
12620 * linux-low.c (linux_fetch_registers): Try the
12621 the_low_target.fetch_register hook first.
12622
12623 * linux-arm-low.c (the_low_target): Adjust.
12624 * linux-bfin-low.c (the_low_target): Adjust.
12625 * linux-cris-low.c (the_low_target): Adjust.
12626 * linux-crisv32-low.c (the_low_target): Adjust.
12627 * linux-m32r-low.c (the_low_target): Adjust.
12628 * linux-m68k-low.c (the_low_target): Adjust.
12629 * linux-mips-low.c (the_low_target): Adjust.
12630 * linux-ppc-low.c (the_low_target): Adjust.
12631 * linux-s390-low.c (the_low_target): Adjust.
12632 * linux-sh-low.c (the_low_target): Adjust.
12633 * linux-sparc-low.c (the_low_target): Adjust.
12634 * linux-tic6x-low.c (the_low_target): Adjust.
12635 * linux-x86-low.c (the_low_target): Adjust.
12636 * linux-xtensa-low.c (the_low_target): Adjust.
12637
12638 2012-03-26 Pedro Alves <palves@redhat.com>
12639
12640 * server.c (handle_qxfer_libraries): Don't bail early if
12641 the_target->qxfer_libraries_svr4 is not NULL.
12642
12643 2012-03-26 Pedro Alves <palves@redhat.com>
12644
12645 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
12646
12647 2012-03-23 Pedro Alves <palves@redhat.com>
12648
12649 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
12650 "library-list-svr4" element's start tag when the the DSO list is
12651 empty.
12652
12653 2012-03-23 Pedro Alves <palves@redhat.com>
12654
12655 * linux-low.c (read_one_ptr): Read the inferior's pointer through
12656 a variable whose type size is the same as the inferior's pointer
12657 size.
12658
12659 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
12660
12661 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
12662 struct siginfo.
12663 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
12664 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
12665 * linux-low.h: Include <signal.h>.
12666 (struct siginfo): Remove forward declaration.
12667 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
12668 struct siginfo.
12669
12670 2012-03-21 Mike Frysinger <vapier@gentoo.org>
12671
12672 * .gitignore: Ignore more files.
12673
12674 2012-03-19 Pedro Alves <palves@redhat.com>
12675 Jan Kratochvil <jan.kratochvil@redhat.com>
12676
12677 * server.c (cont_thread, general_thread): Add describing comments.
12678 (start_inferior): Clear `cont_thread'.
12679 (handle_v_cont): Don't set `cont_thread' if resuming all threads
12680 of a process.
12681
12682 2012-03-15 Yao Qi <yao@codesourcery.com>
12683
12684 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
12685 handling to ...
12686 (cmd_qtdp): ... here.
12687
12688 2012-03-15 Yao Qi <yao@codesourcery.com>
12689
12690 * tracepoint.c (struct tracepoint_action_ops): New.
12691 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
12692 (m_tracepoint_action_download): New.
12693 (r_tracepoint_action_download): New.
12694 (x_tracepoint_action_download): New.
12695 (l_tracepoint_action_download): New.
12696 (add_tracepoint_action): Install `action->ops' according type.
12697 (download_tracepoint_1): Move code `download' function pointer
12698 of various tracepoint_action_ops.
12699
12700 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12701
12702 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
12703 linux_ptrace_attach_warnings.
12704
12705 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12706
12707 * Makefile.in (linux-ptrace.o): New.
12708 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
12709 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
12710 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
12711 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
12712 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
12713 of these targets.
12714 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
12715
12716 2012-03-08 Yao Qi <yao@codesourcery.com>
12717 Pedro Alves <palves@redhat.com>
12718
12719 Fix PR server/13392.
12720 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
12721 offset of JMP insn.
12722 * tracepoint.c (remove_tracepoint): New.
12723 (cmd_qtdp): Call remove_tracepoint when failed to install.
12724
12725 2012-03-07 Pedro Alves <palves@redhat.com>
12726
12727 * linux-low.c (get_detach_signal): New.
12728 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
12729 Pass on pending signals to PTRACE_DETACH. Check the result of the
12730 ptrace call.
12731 * server.c (program_signals, program_signals_p): New.
12732 (handle_general_set): Handle QProgramSignals.
12733 * server.h (program_signals, program_signals_p): Declare.
12734
12735 2012-03-05 Pedro Alves <palves@redhat.com>
12736 Jan Kratochvil <jan.kratochvil@redhat.com>
12737
12738 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
12739 New comment why.
12740
12741 2012-03-03 Yao Qi <yao@codesourcery.com>
12742
12743 * tracepoint.c (tracepoint_look_up_symbols): Update call to
12744 agent_look_up_symbols.
12745
12746 2012-03-03 Yao Qi <yao@codesourcery.com>
12747
12748 * Makefile.in (linux-low.o): Keep dependence on agent.h.
12749 (linux-x86-low.o): Likewise.
12750 * server.h: Remove in_process_agent_loaded.
12751 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
12752 common/agent.c.
12753 Update callers.
12754
12755 2012-03-03 Yao Qi <yao@codesourcery.com>
12756
12757 * tracepoint.c (gdb_agent_capability): New global.
12758 (in_process_agent_loaded_ust): Renamed to
12759 `in_process_agent_supports_ust'.
12760 Update callers.
12761 (in_process_agent_supports_ust): Call agent_capability_check.
12762 (clear_installed_tracepoints): Assert that agent supports
12763 agent.
12764
12765 2012-03-03 Yao Qi <yao@codesourcery.com>
12766
12767 * linux-low.c (linux_supports_agent): New.
12768 (linux_target_ops): Initialize field `supports_agent' with
12769 linux_supports_agent.
12770 * target.h (struct target_ops) <supports_agent>: New.
12771 (target_supports_agent): New macro.
12772 * server.c (handle_general_set): Handle packet 'QAgent'.
12773 (handle_query): Send `QAgent+'.
12774 * Makefile.in (server.o): Depends on agent.h.
12775
12776 2012-03-03 Yao Qi <yao@codesourcery.com>
12777
12778 * Makefile.in (OBS): Add agent.o.
12779 Add new rule for agent.o.
12780 Track dependence of tracepoint.c on agent.h.
12781 * tracepoint.c (run_inferior_command_1):
12782 (run_inferior_command): Call agent_run_command.
12783 (gdb_ust_connect_sync_socket): Deleted. Move it to
12784 common/agent.c.
12785 (resume_thread, stop_thread): Likewise.
12786 (gdb_ust_socket_init): Renamed to ...
12787 (gdb_agent_socket_init): ... New.
12788 (gdb_ust_thread): Renamed to ...
12789 (gdb_agent_helper_thread): ... New.
12790 (gdb_ust_init): Move some code to ...
12791 (gdb_agent_init): ... here. New.
12792 [HAVE_UST]: Call gdb_ust_init.
12793 (initialize_tracepoint_ftlib): Call gdb_agent_init.
12794 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
12795 * config.in, configure: Regenerated.
12796
12797 2012-03-02 Pedro Alves <palves@redhat.com>
12798
12799 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
12800 * linux-low.c (struct simple_pid_list): New.
12801 (stopped_pids): New a struct simple_pid_list pointer.
12802 (add_to_pid_list, pull_pid_from_list): New.
12803 (handle_extended_wait): Don't assume the first signal new children
12804 report is SIGSTOP. Adjust call to pull_pid_from_list.
12805 (linux_wait_for_lwp): Adjust.
12806
12807 2012-03-02 Yao Qi <yao@codesourcery.com>
12808
12809 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
12810 debug log.
12811
12812 2012-03-02 Yao Qi <yao@codesourcery.com>
12813
12814 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
12815 `stop_pc' and `tpoint'. Update caller.
12816
12817 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
12818
12819 * linux-low.h (linux_target_ops): Add regset_bitmap member.
12820 * linux-low.c (use_linux_regsets): New macro.
12821 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
12822 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
12823 (linux_register_in_regsets): New function.
12824 (usr_fetch_inferior_registers): Skip registers covered by
12825 regsets.
12826 (usr_store_inferior_registers): Likewise.
12827 (usr_fetch_inferior_registers): New macro.
12828 (usr_store_inferior_registers): Likewise.
12829 (linux_fetch_registers): Handle mixed regset/non-regset targets.
12830 (linux_store_registers): Likewise.
12831 * linux-mips-low.c (init_registers_mips_dsp_linux): New
12832 prototype.
12833 (init_registers_mips64_dsp_linux): Likewise.
12834 (init_registers_mips_linux): New macro.
12835 (init_registers_mips_dsp_linux): Likewise.
12836 (mips_dsp_num_regs): Likewise.
12837 (DSP_BASE, DSP_CONTROL): New fallback macros.
12838 (mips_base_regs): New macro.
12839 (mips_regmap): Use it. Fix the size.
12840 (mips_dsp_regmap): New variable.
12841 (mips_dsp_regset_bitmap): Likewise.
12842 (mips_arch_setup): New function.
12843 (mips_cannot_fetch_register): Use the_low_target.regmap rather
12844 than mips_regmap.
12845 (mips_cannot_store_register): Likewise.
12846 (the_low_target): Update .arch_setup, .num_regs and .regmap
12847 initializers. Add .regset_bitmap initializer.
12848 * linux-arm-low.c (the_low_target): Add .regset_bitmap
12849 initializer.
12850 * linux-bfin-low.c (the_low_target): Likewise.
12851 * linux-cris-low.c (the_low_target): Likewise.
12852 * linux-crisv32-low.c (the_low_target): Likewise.
12853 * linux-ia64-low.c (the_low_target): Likewise.
12854 * linux-m32r-low.c (the_low_target): Likewise.
12855 * linux-m68k-low.c (the_low_target): Likewise.
12856 * linux-ppc-low.c (the_low_target): Likewise.
12857 * linux-s390-low.c (the_low_target): Likewise.
12858 * linux-sh-low.c (the_low_target): Likewise.
12859 * linux-sparc-low.c (the_low_target): Likewise.
12860 * linux-tic6x-low.c (the_low_target): Likewise.
12861 * linux-x86-low.c (the_low_target): Likewise.
12862 * linux-xtensa-low.c (the_low_target): Likewise.
12863 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
12864 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
12865 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
12866 srv_xmlfiles.
12867 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
12868 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
12869
12870 2012-02-29 Yao Qi <yao@codesourcery.com>
12871 Pedro Alves <palves@redhat.com>
12872
12873 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
12874 `step_over_finished' is true.
12875
12876 2012-02-27 Pedro Alves <palves@redhat.com>
12877
12878 * linux-low.c (pid_is_stopped): Delete, moved to common/.
12879 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
12880
12881 2012-02-27 Pedro Alves <palves@redhat.com>
12882
12883 PR server/9684
12884 * linux-low.c (pid_is_stopped): New.
12885 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
12886
12887 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
12888
12889 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
12890 of conditions.
12891
12892 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
12893
12894 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
12895
12896 2012-02-24 Luis Machado <lgustavo@codesourcery>
12897
12898 * server.c (handle_query): Advertise support for target-side
12899 breakpoint condition evaluation.
12900 (process_point_options): New function.
12901 (process_serial_event): When inserting a breakpoint, check for
12902 a target-side condition that should be evaluated.
12903
12904 * mem-break.c: Include regcache.h and ax.h.
12905 (point_cond_list_t): New data structure.
12906 (breakpoint) <cond_list>: New field.
12907 (find_gdb_breakpoint_at): Make non-static.
12908 (delete_gdb_breakpoint_at): Clear any target-side
12909 conditions.
12910 (clear_gdb_breakpoint_conditions): New function.
12911 (add_condition_to_breakpoint): Likewise.
12912 (add_breakpoint_condition): Likewise.
12913 (gdb_condition_true_at_breakpoint): Likewise.
12914 (gdb_breakpoint_here): Return result directly instead
12915 of going through a local variable.
12916
12917 * mem-break.h (find_gdb_breakpoint_at): New prototype.
12918 (clear_gdb_breakpoint_conditions): Likewise.
12919 (add_breakpoint_condition): Likewise.
12920 (gdb_condition_true_at_breakpoint): Likewise.
12921
12922 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
12923 (need_step_over_p): Take target-side breakpoint condition into
12924 consideration.
12925
12926 2012-02-24 Luis Machado <lgustavo@codesourcery>
12927
12928 * server.h: Include tracepoint.h.
12929 (agent_mem_read, agent_get_trace_state_variable_value,
12930 agent_set_trace_state_variable_value,
12931 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
12932 get_set_tsv_func_addr): New prototypes.
12933
12934 * ax.h: New include file.
12935 * ax.c: New source file.
12936
12937 * tracepoint.c: Include ax.h.
12938 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
12939 agent_expr, eval_result_type): Move to ax.h.
12940 (parse_agent_expr): Rename to ...
12941 (gdb_parse_agent_expr): ... this, make it non-static and move
12942 to ax.h.
12943 (unparse_agent_expr) Rename to ...
12944 (gdb_unparse_agent_expr): ... this, make it non-static and move
12945 to ax.h.
12946 (eval_agent_expr): Rename to ...
12947 (eval_tracepoint_agent_expr): ... this.
12948 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
12949 forward declarations.
12950 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
12951 (agent_get_trace_state_variable_value): New function.
12952 (agent_set_trace_state_variable_value): New function.
12953 (cmd_qtdp): Call gdb_parse_agent_expr (...).
12954 (response_tracepoint): Call gdb_unparse_agent_expr (...).
12955 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
12956 (condition_true_at_tracepoint): Likewise.
12957 (parse_agent_expr): Rename to ...
12958 (gdb_parse_agent_expr): ... this and move to ax.c.
12959 (unparse_agent_expr): Rename to ...
12960 (gdb_unparse_agent_expr): ... this and move to ax.c.
12961 (gdb_agent_op_name): Move to ax.c.
12962 (eval_agent_expr): Rename to ...
12963 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
12964 and move to ax.c.
12965 (eval_tracepoint_agent_expr): New function.
12966 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
12967 non-static.
12968 (current_insn_ptr, emit_error, struct bytecode_address): Move to
12969 ax.c.
12970 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
12971 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
12972 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
12973 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
12974 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
12975 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
12976 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
12977 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
12978 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
12979 (compile_bytecodes): Remove forward declaration.
12980 (is_goto_target): Move to ax.c.
12981 (compile_bytecodes): Move to ax.c and call
12982 agent_get_trace_state_variable_value (...) and
12983 agent_set_trace_state_variable_value (...).
12984
12985 * Makefile.in: Update ax.c and IPA dependencies.
12986
12987 2012-02-24 Pedro Alves <palves@redhat.com>
12988
12989 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
12990 (cmd_bigqtbuffer_circular): ... this. Only handle
12991 'QTBuffer:circular:'.
12992 (handle_tracepoint_general_set): Adjust.
12993
12994 2012-02-16 Yao Qi <yao@codesourcery.com>
12995
12996 * inferiors.c: Move code to ...
12997 * dll.c: .... here. New.
12998 * server.h: Declare clear_dlls.
12999 * Makefile.in (SFILES): Add dll.c.
13000 (OBS): Add dll.o
13001 (dll.o): New rule.
13002
13003 2012-02-11 Yao Qi <yao@codesourcery.com>
13004
13005 * server.c: (handle_monitor_command): Add a new parameter
13006 `own_buf'.
13007 (handle_query): Update caller.
13008
13009 2012-02-09 Joel Brobecker <brobecker@adacore.com>
13010
13011 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13012 * configure, config.in: Regenerate.
13013 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13014 is not defined.
13015
13016 2012-02-02 Pedro Alves <palves@redhat.com>
13017
13018 Try SIGKILL first, then PTRACE_KILL.
13019 * linux-low.c (linux_kill_one_lwp): New.
13020 (linux_kill_one_lwp): Rename to ...
13021 (kill_one_lwp_callback): ... this. Use the new
13022 linux_kill_one_lwp.
13023
13024 2012-02-02 Pedro Alves <palves@redhat.com>
13025
13026 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13027 inferior.
13028
13029 2012-01-27 Pedro Alves <palves@redhat.com>
13030
13031 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13032 (elf_64_file_p): Make static.
13033 (linux_pid_exe_is_elf_64_file): New.
13034 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13035 Delete declarations.
13036 (linux_pid_exe_is_elf_64_file): Declare.
13037 * linux-x86-low.c (x86_arch_setup): Use
13038 linux_pid_exe_is_elf_64_file.
13039
13040 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13041
13042 * linux-low.c (linux_wait_for_event_1): Rename to ...
13043 (linux_wait_for_event): ... here and merge it with former
13044 linux_wait_for_event - new variable wait_ptid, use it.
13045 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13046
13047 2012-01-23 Pedro Alves <palves@redhat.com>
13048
13049 * server.c (main): Avoid yet another case of infinite loop while
13050 detaching/killing after a longjmp.
13051
13052 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13053
13054 Code cleanup.
13055 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13056
13057 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13058
13059 * hostio.c (handle_readlink): New function.
13060 (handle_vFile): Call it to handle "vFile:readlink" packets.
13061
13062 2012-01-20 Pedro Alves <palves@redhat.com>
13063 Ulrich Weigand <ulrich.weigand@linaro.org>
13064
13065 * server.c (handle_v_requests): Only support vAttach and vRun to
13066 start multiple processes when in extended protocol mode.
13067
13068 2012-01-17 Pedro Alves <palves@redhat.com>
13069
13070 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13071 memalign plus mprotect to allocate the scratch buffer.
13072
13073 2012-01-13 Pedro Alves <palves@redhat.com>
13074
13075 * server.c (attach_inferior): Clear `cont_thread'.
13076
13077 2012-01-13 Pedro Alves <palves@redhat.com>
13078
13079 * server.c (main): Avoid infinite loop while detaching/killing
13080 after a longjmp.
13081
13082 2012-01-09 Doug Evans <dje@google.com>
13083
13084 * server.c (start_inferior): Set last_ptid in --wrapper case.
13085
13086 2012-01-06 Yao Qi <yao@codesourcery.com>
13087
13088 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13089 defined.
13090 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13091
13092 2012-01-04 Yao Qi <yao@codesourcery.com>
13093
13094 * tracepoint.c (cmd_qtdp): Print debug message
13095 for static tracepoint.
13096
13097 2012-01-04 Yao Qi <yao@codesourcery.com>
13098
13099 * tracepoint.c (trace_vdebug): Differentiate debug message
13100 between gdbserver and IPA.
13101
13102 2012-01-03 Yao Qi <yao@codesourcery.com>
13103
13104 * tracepoint.c (tracepoint_was_hit): Don't collect for
13105 static tracepoint.
13106
13107 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13108
13109 * terminal.h: Reformat copyright header.
13110
13111 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13112
13113 * server.c (gdbserver_version): Update copyright year.
13114 * gdbreplay.c (gdbreplay_version): Likewise.
13115
13116 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13117
13118 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13119
13120 Revert:
13121 2011-12-18 Hui Zhu <teawater@gmail.com>
13122 * linux-low.c (linux_create_inferior): Save return value to ret.
13123
13124 2011-12-18 Hui Zhu <teawater@gmail.com>
13125
13126 * linux-low.c (linux_create_inferior): Save return value to ret.
13127
13128 2011-12-16 Doug Evans <dje@google.com>
13129
13130 * linux-low.c (linux_create_inferior): If stdio connection,
13131 redirect stdin from /dev/null, stdout to stderr.
13132 * remote-utils.c (remote_is_stdio): New static global.
13133 (remote_connection_is_stdio): New function.
13134 (remote_prepare): Handle stdio connection.
13135 (remote_open): Ditto.
13136 (remote_close): Don't close stdin for stdio connections.
13137 (read_prim,write_prim): New functions. Replace all calls to
13138 read/write to these.
13139 * server.c (main): Watch for "-" argument. Move call to
13140 remote_prepare before start_inferior.
13141 * server.h (STDIO_CONNECTION_NAME): New macro.
13142 (remote_connection_is_stdio): Declare.
13143
13144 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13145 in debugging output.
13146
13147 2011-12-15 Yao Qi <yao@codesourcery.com>
13148
13149 * tracepoint.c: Include sys/syscall.h.
13150 (gdb_ust_thread): Remove preprocessor conditional.
13151
13152 2011-12-14 Pedro Alves <pedro@codesourcery.com>
13153
13154 * linux-low.c (linux_detach_one_lwp): Call
13155 the_low_target.prepare_to_resume before detaching.
13156
13157 2011-12-14 Yao Qi <yao@codesourcery.com>
13158
13159 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13160 of write.
13161
13162 2011-12-14 Yao Qi <yao@codesourcery.com>
13163
13164 * i386-low.c (i386_low_stopped_data_address): Initialize local
13165 variable `control'.
13166
13167 2011-12-13 Pedro Alves <pedro@codesourcery.com>
13168
13169 PR remote/13492
13170
13171 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
13172 DR_CONTROL unless necessary. Extend comments.
13173 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
13174 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
13175
13176 2011-12-13 Yao Qi <yao@codesourcery.com>
13177
13178 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13179 macros.
13180 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13181
13182 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13183
13184 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13185 Print new debug message for such case.
13186
13187 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13188
13189 Fix overlapping memcpy.
13190 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
13191 the read_inferior_memory transfer.
13192 (delete_fast_tracepoint_jump): New variable buf. Use it for the
13193 write_inferior_memory transfer.
13194 (set_fast_tracepoint_jump): New variable buf. Use it for the
13195 read_inferior_memory and write_inferior_memory transfers.
13196 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
13197 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
13198 Use it for the write_inferior_memory transfer.
13199 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
13200 buffers.
13201
13202 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13203
13204 * linux-low.c (fetch_register, store_register): Make code
13205 consistent, fix formatting.
13206
13207 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13208
13209 * linux-low.c (usr_store_inferior_registers): Factor out code
13210 to handle individual registers into...
13211 (store_register): ... this new function.
13212
13213 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13214
13215 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
13216 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
13217 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
13218 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
13219 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
13220 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
13221 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
13222 (srv_xmlfiles): Add new XML files.
13223
13224 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13225 and <sys/uio.h>.
13226 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
13227 (init_registers_s390_linux32v1): Add prototype.
13228 (init_registers_s390_linux32v2): Likewise.
13229 (init_registers_s390_linux64v1): Likewise.
13230 (init_registers_s390_linux64v2): Likewise.
13231 (init_registers_s390x_linux64v1): Likewise.
13232 (init_registers_s390x_linux64v2): Likewise.
13233 (s390_num_regs): Increment to 52.
13234 (s390_regmap): Add orig_r2 register.
13235 (s390_num_regs_3264): Increment to 68.
13236 (s390_regmap_3264): Add orig_r2 register.
13237 (s390_collect_ptrace_register): Handle orig_r2 register.
13238 (s390_supply_ptrace_register): Likewise.
13239 (s390_fill_last_break): New function.
13240 (s390_store_last_break): Likewise.
13241 (s390_fill_system_call): New function.
13242 (s390_store_system_call): Likewise.
13243 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
13244 register sets.
13245 (s390_check_regset): New function.
13246 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
13247 NT_S390_SYSTEM_CALL regsets and use appropriate description.
13248 Update target_regsets for available register sets.
13249
13250 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13251 Jan Kratochvil <jan.kratochvil@redhat.com>
13252
13253 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
13254 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
13255 New.
13256 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
13257 * linux-low.h (struct process_info_private): New member r_debug.
13258 * server.c (handle_qxfer_libraries): Call
13259 the_target->qxfer_libraries_svr4.
13260 (handle_qxfer_libraries_svr4): New function.
13261 (qxfer_packets): New entry "libraries-svr4".
13262 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
13263 * target.h (struct target_ops): New member qxfer_libraries_svr4.
13264 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
13265 PACKET_qXfer_libraries_svr4.
13266
13267 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13268
13269 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
13270 PSW address/mask between 8-byte and 16-byte formats.
13271 (s390_supply_ptrace_register): Likewise.
13272 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
13273 basic addressing mode bit.
13274
13275 2011-11-24 Stan Shebs <stan@codesourcery.com>
13276
13277 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13278
13279 2011-11-17 Stan Shebs <stan@codesourcery.com>
13280
13281 * tracepoint.c (struct tracepoint): New field traceframe_usage.
13282 (tracing_start_time): New global.
13283 (tracing_stop_time): New global.
13284 (tracing_user_name): New global.
13285 (tracing_notes): New global.
13286 (tracing_stop_note): New global.
13287 (cmd_qtstart): Set traceframe_usage, start_time.
13288 (stop_tracing): Set stop_time.
13289 (cmd_qtstatus): Report additional status.
13290 (cmd_qtp): New function.
13291 (handle_tracepoint_query): Call it.
13292 (cmd_qtnotes): New function.
13293 (handle_tracepoint_general_set): Call it.
13294 (get_timestamp): Rename from tsv_get_timestamp.
13295
13296 2011-11-14 Stan Shebs <stan@codesourcery.com>
13297 Kwok Cheung Yeung <kcy@codesourcery.com>
13298
13299 * linux-x86-low.c (small_jump_insn): New.
13300 (i386_install_fast_tracepoint_jump_pad): Add arguments for
13301 trampoline and error message, build a trampoline and issue a small
13302 jump instruction to it.
13303 (x86_install_fast_tracepoint_jump_pad): Add arguments for
13304 trampoline and error message.
13305 (x86_get_min_fast_tracepoint_insn_len): New.
13306 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
13307 * linux-low.h (struct linux_target_ops): Add arguments to
13308 install_fast_tracepoint_jump_pad operation, add new operation.
13309 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13310 arguments.
13311 (linux_get_min_fast_tracepoint_insn_len): New function.
13312 (linux_target_op): Add new operation.
13313 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13314 (gdb_trampoline_buffer_end): Ditto.
13315 (gdb_trampoline_buffer_error): Ditto.
13316 (struct ipa_sym_addresses): Add fields for new IPA variables.
13317 (symbol_list): Add entries for new IPA variables.
13318 (struct tracepoint): Add fields to hold the address range of the
13319 trampoline used by the tracepoint.
13320 (trampoline_buffer_head): New static variable.
13321 (trampoline_buffer_tail): Ditto.
13322 (claim_trampoline_space): New function.
13323 (have_fast_tracepoint_trampoline_buffer): New function.
13324 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
13325 structure.
13326 (install_fast_tracepoint): Ditto, also add error buffer argument.
13327 (cmd_qtminftpilen): New function.
13328 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
13329 (fast_tracepoint_from_trampoline_address): New function.
13330 (fast_tracepoint_collecting): Handle trampoline as part of jump
13331 pad space.
13332 (set_trampoline_buffer_space): New function.
13333 (initialize_tracepoint): Initialize new IPA variables.
13334 * target.h (struct target_ops): Add arguments to
13335 install_fast_tracepoint_jump_pad operation, add new
13336 get_min_fast_tracepoint_insn_len operation.
13337 (target_get_min_fast_tracepoint_insn_len): New.
13338 (install_fast_tracepoint_jump_pad): Add arguments.
13339 * server.h (IPA_BUFSIZ): Define.
13340 * linux-i386-ipa.c: Include extra header files.
13341 (initialize_fast_tracepoint_trampoline_buffer): New function.
13342 (initialize_low_tracepoint): Call it.
13343 * server.h (set_trampoline_buffer_space): Declare.
13344 (claim_trampoline_space): Ditto.
13345 (have_fast_tracepoint_trampoline_buffer): Ditto.
13346
13347 2011-11-14 Yao Qi <yao@codesourcery.com>
13348
13349 * server.c (handle_query): Handle InstallInTrace for qSupported.
13350 * tracepoint.c (add_tracepoint): Sort list.
13351 (install_tracepoint, download_tracepoint): New.
13352 (cmd_qtdp): Call them to install and download tracepoints.
13353 (sort_tracepoints): Removed.
13354 (cmd_qtstart): Update.
13355
13356 2011-11-14 Yao Qi <yao@codesourcery.com>
13357
13358 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
13359 * mem-break.h: Declare.
13360 * tracepoint.c (cmd_qtstart): Move some code to ...
13361 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
13362 New.
13363 (download_tracepoints): Move some code to ...
13364 (download_tracepoint_1): ... here. New.
13365
13366 2011-11-08 Yao Qi <yao@codesourcery.com>
13367
13368 * remote-utils.c (relocate_instruction): A comment fix.
13369
13370 2011-11-07 Joel Brobecker <brobecker@adacore.com>
13371
13372 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
13373 (i386_dr_low_get_control, i386_dr_low_get_status): Use
13374 dr_status_mirror and dr_control_mirror from debug_reg_state.
13375 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
13376 (i386_initial_stuff): Remove use of deleted globals.
13377 (i386_get_thread_context, i386_set_thread_context,
13378 i386_thread_added): Use dr_status_mirror and dr_control_mirror
13379 from debug_reg_state.
13380
13381 2011-11-05 Yao Qi <yao@codesourcery.com>
13382
13383 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13384 address as TPOINT's.
13385
13386 2011-11-02 Stan Shebs <stan@codesourcery.com>
13387
13388 * tracepoint.c (agent_mem_read_string): New function.
13389 (eval_agent_expr): Call it for tracenz.
13390 * server.c (handle_query): Report support for tracenz.
13391
13392 2011-11-02 Yao Qi <yao@codesourcery.com>
13393
13394 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13395
13396 2011-11-02 Yao Qi <yao@codesourcery.com>
13397
13398 * target.h: Fix a typo in comment.
13399
13400 2011-10-31 Pedro Alves <pedro@codesourcery.com>
13401
13402 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13403 clobber the breakpoints' shadows with fast tracepoint jumps.
13404 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13405 * target.c (write_inferior_memory): Also pass MYADDR down to
13406 check_mem_write.
13407
13408 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13409
13410 * configure.ac: Check support for personality routine.
13411 * configure: Regenerate.
13412 * config.in: Likewise.
13413 * linux-low.c: Include <sys/personality.h>.
13414 Define ADDR_NO_RANDOMIZE if necessary.
13415 (linux_create_inferior): Disable address space randomization when
13416 forking inferior, if requested.
13417 (linux_supports_disable_randomization): New function.
13418 (linux_target_ops): Install it.
13419 * server.h (disable_randomization): Declare.
13420 * server.c (disable_randomization): New global variable.
13421 (handle_general_set): Handle QDisableRandomization.
13422 (handle_query): Likewise for qSupported.
13423 (main): Support --disable-randomization and --no-disable-randomization
13424 command line arguments.
13425 * target.h (struct target_ops): Add supports_disable_randomization.
13426 (target_supports_disable_randomization): New macro.
13427
13428 2011-09-29 Mike Frysinger <vapier@gentoo.org>
13429
13430 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13431 ifdef check.
13432 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13433 [!PT_GETDSBT] (target_loadmap): New definition.
13434 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13435 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13436 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13437 and PT_GETDSBT to LINUX_LOADMAP.
13438 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13439 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13440
13441 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13442
13443 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13444 (arm_linux_hwbp_cap): New static variable.
13445 (arm_linux_get_hwbp_cap): Replace by ...
13446 (arm_linux_init_hwbp_cap): ... this new function.
13447 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13448 (arm_linux_get_hw_watchpoint_count): Likewise.
13449 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13450 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13451 (arm_prepare_to_resume): Use perror_with_name instead of error.
13452
13453 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13454
13455 * linux-arm-low.c: Include <signal.h>.
13456 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13457 (struct arm_linux_hwbp_cap): New data type.
13458 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13459 (struct arm_linux_hw_breakpoint): New data type.
13460 (MAX_BPTS, MAX_WPTS): Define.
13461 (struct arch_process_info, struct arch_lwp_info): New data types.
13462 (arm_linux_get_hwbp_cap): New function.
13463 (arm_linux_get_hw_breakpoint_count): Likewise.
13464 (arm_linux_get_hw_watchpoint_count): Likewise.
13465 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13466 (arm_hwbp_control_initialize): Likewise.
13467 (arm_hwbp_control_is_enabled): Likewise.
13468 (arm_hwbp_control_is_initialized): Likewise.
13469 (arm_hwbp_control_disable): Likewise.
13470 (arm_linux_hw_breakpoint_equal): Likewise.
13471 (arm_linux_hw_point_initialize): Likewise.
13472 (struct update_registers_data): New data structure.
13473 (update_registers_callback: New function.
13474 (arm_insert_point): Likewise.
13475 (arm_remove_point): Likewise.
13476 (arm_stopped_by_watchpoint): Likewise.
13477 (arm_stopped_data_address): Likewise.
13478 (arm_new_process): Likewise.
13479 (arm_new_thread): Likewise.
13480 (arm_prepare_to_resume): Likewise.
13481 (the_low_target): Register arm_insert_point, arm_remove_point,
13482 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13483 arm_new_thread, and arm_prepare_to_resume.
13484
13485 2011-09-15 Stan Shebs <stan@codesourcery.com>
13486
13487 * server.h (struct emit_ops): Add compare-goto fields.
13488 * tracepoint.c (gdb_agent_op_sizes): New table.
13489 (emit_eq_goto): New function.
13490 (emit_ne_goto): New function.
13491 (emit_lt_goto): New function.
13492 (emit_le_goto): New function.
13493 (emit_gt_goto): New function.
13494 (emit_ge_goto): New function.
13495 (is_goto_target): New function.
13496 (compile_bytecodes): Recognize special cases of compare-goto
13497 combinations and call specialized emitters for them.
13498 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13499 (amd64_emit_ne_goto): New function.
13500 (amd64_emit_lt_goto): New function.
13501 (amd64_emit_le_goto): New function.
13502 (amd64_emit_gt_goto): New function.
13503 (amd64_emit_ge_goto): New function.
13504 (amd64_emit_ops): Add the new functions.
13505 (i386_emit_eq_goto): New function.
13506 (i386_emit_ne_goto): New function.
13507 (i386_emit_lt_goto): New function.
13508 (i386_emit_le_goto): New function.
13509 (i386_emit_gt_goto): New function.
13510 (i386_emit_ge_goto): New function.
13511 (i386_emit_ops): Add the new functions.
13512
13513 2011-09-08 Stan Shebs <stan@codesourcery.com>
13514
13515 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13516 (i386_emit_epilogue): Restore %ebx.
13517
13518 2011-08-31 Jie Zhang <jzhang918@gmail.com>
13519
13520 * server.c (step_thread): Remove definition.
13521 (process_serial_event): Don't handle Hs.
13522 * server.h (step_thread): Remove declaration.
13523 * target.c (set_desired_inferior): Remove use of step_thread.
13524
13525 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13526
13527 * linux-low.c: Include linux-procfs.h.
13528 (linux_attach_lwp_1): Update comments.
13529 (linux_attach): Scan for existing threads when attaching to a
13530 process that is the tgid.
13531 * Makefile.in: Update dependencies.
13532
13533 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13534
13535 * configure.srv: Add linux-procfs.o dependencies.
13536
13537 2011-08-14 Yao Qi <yao@codesourcery.com>
13538
13539 * target.h (struct target_ops): Fix indent.
13540 * win32-low.c (win32_target_ops): Fix comment.
13541
13542 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
13543 Yao Qi <yao@codesourcery.com>
13544
13545 * Makefile.in (clean): Remove tic6x-*.c files.
13546 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13547 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13548 (tic6x-c64xp-linux.c): Likewise.
13549 * configure.srv: Add support for tic6x-*-uclinux.
13550 * linux-tic6x-low.c: New.
13551 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13552
13553 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
13554 Yao Qi <yao@codesourcery.com>
13555
13556 * target.h (struct target_ops): Add read_loadmap.
13557 * linux-low.c (struct target_loadseg): New type.
13558 (struct target_loadmap): New type.
13559 (linux_read_loadmap): New function.
13560 (linux_target_ops): Add linux_read_loadmap.
13561 * server.c (handle_query): Support qXfer:fdpic:read packet.
13562 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13563 to NULL.
13564
13565 2011-08-05 Eli Zaretskii <eliz@gnu.org>
13566
13567 * win32-low.c: Include <stdint.h>.
13568
13569 2011-07-22 Pedro Alves <pedro@codesourcery.com>
13570
13571 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13572 to the inferior here.
13573 (i386_remove_aligned_watchpoint): Ditto.
13574 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13575 fit part of the watchpoint in the debug registers.
13576 (i386_update_inferior_debug_regs): New.
13577 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13578 registers, and only update the inferior on success.
13579 (i386_low_remove_watchpoint): Ditto.
13580
13581 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13582
13583 * linux-low.c (compare_ints, unique, list_threads, show_process,
13584 linux_core_of_thread): Delete.
13585 (linux_target_ops): Change linux_core_of_thread to
13586 linux_common_core_of_thread.
13587 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
13588 * utils.c (malloc_failure): Change type of argument.
13589 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
13590 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
13591 common/linux-osdata.c, common/ptid.c and common/buffer.c.
13592 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
13593 (IPA_OBJS): Add common-utils-ipa.o.
13594 (ptid_h, linux_osdata_h): New macros.
13595 (server_h): Add common/common-utils.h, common/xml-utils.h,
13596 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
13597 common/ptid.h.
13598 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
13599 ptid.o, buffer.o): New rules.
13600 (linux-low.o): Add common/linux-osdata.h as a dependency.
13601 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
13602 * configure.ac: Add AC_HEADER_DIRENT check.
13603 * config.in: Regenerate.
13604 * configure: Regenerate.
13605 * remote-utils.c (xml_escape_text): Delete.
13606 (buffer_grow, buffer_free, buffer_init, buffer_finish,
13607 buffer_xml_printf): Move to common/buffer.c.
13608 * server.c (main): Remove call to initialize_inferiors.
13609 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
13610 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
13611 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
13612 internal_error, gdb_assert, gdb_assert_fail): Delete.
13613 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
13614 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
13615 common/buffer.h.
13616 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
13617 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
13618 initialize_inferiors): Delete.
13619
13620 2011-07-20 Pedro Alves <pedro@codesourcery.com>
13621
13622 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
13623 symbol error.
13624
13625 2011-05-31 Pedro Alves <pedro@codesourcery.com>
13626
13627 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
13628 assertion.
13629 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
13630
13631 2011-05-26 Yao Qi <yao@codesourcery.com>
13632
13633 * Makefile.in (thread-db.o): Track dependence to
13634 common/gdb_thread_db.h.
13635 * thread-db.c: include gdb_thread_db.h from right place.
13636
13637 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
13638
13639 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
13640 __FILE__ and __LINE__ to internal_error.
13641
13642 2011-05-13 Doug Evans <dje@google.com>
13643
13644 * thread-db.c (try_thread_db_load_from_sdir): New function.
13645 (try_thread_db_load_from_dir): New function.
13646 (thread_db_load_search): Handle $sdir, ignore $pdir.
13647 Remove trying of system directories if search of
13648 libthread-db-search-path fails, that is now done via $sdir.
13649
13650 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
13651
13652 * server.c (handle_query): Add EnableDisableTracepoints to the list
13653 of supported features.
13654 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
13655 tracepoints.
13656 (cmd_qtenable_disable): New.
13657 (cmd_qtstart): Install tracepoints even if disabled.
13658 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
13659 receiving a QTEnable or QTDisable packet.
13660 (gdb_collect): Skip data collection if fast tracepoint is disabled.
13661 (ust_marker_to_static_tracepoint): Do not ignore disabled static
13662 tracepoints.
13663 (gdb_probe): Skip data collection if static tracepoint is disabled.
13664
13665 2011-05-10 Doug Evans <dje@google.com>
13666
13667 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
13668
13669 2011-05-04 Doug Evans <dje@google.com>
13670
13671 * linux-low.c (linux_join): Skip process lookup.
13672 * spu-low.c (spu_join): Ditto.
13673 * server.c (join_inferiors_callback): Delete.
13674 (process_serial_event): For 'D' packet (detach) call join_inferior
13675 directly.
13676
13677 2011-05-04 Joseph Myers <joseph@codesourcery.com>
13678
13679 * README: Don't mention xscale*-*-linux*.
13680 * configure.srv (xscale*-*-linux*): Don't handle target.
13681
13682 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
13683
13684 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
13685 casting pointers.
13686 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
13687 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
13688 (i386_emit_void_call_2): Likewise.
13689
13690 2011-04-26 Yao Qi <yao@codesourcery.com>
13691
13692 * linux-low.c: Move common macros to linux-ptrace.h.
13693 Include linux-ptrace.h.
13694 * Makefile.in (linux_ptrace_h): New.
13695 (linux-low.o): Depends on linux-ptrace.h.
13696
13697 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13698
13699 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
13700 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
13701 (remote_prepare): New function with most of the TCP code from ...
13702 (remote_open): ... here. Detect PORT here unconditionally. Move also
13703 setting transport_is_reliable.
13704 * server.c (run_once): New variable.
13705 (gdbserver_usage): Document it.
13706 (main): Set run_once for `--once'. Call remote_prepare. Exit after
13707 the first run if RUN_ONCE.
13708 * server.h (run_once, remote_prepare): New declarations.
13709
13710 2011-04-19 Tom Tromey <tromey@redhat.com>
13711
13712 * win32-low.c (handle_load_dll): Remove duplicate "the".
13713
13714 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
13715
13716 Remove support for old Cygwin 1.5 versions.
13717 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
13718 function to avoid warning.
13719 (win32_add_one_solib): Use cygwin_conv_path function to avoid
13720 warning.
13721
13722 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
13723
13724 * gdbserver/server.h (Macro _): Define it if not available.
13725
13726 2011-03-14 Michael Snyder <msnyder@vmware.com>
13727
13728 * hostio.c (handle_close): Remove unnecessary null test.
13729
13730 2011-03-10 Joel Brobecker <brobecker@adacore.com>
13731
13732 * Makefile.in (maintainer-clean realclean distclean): Remove
13733 "make ... subdir_do" command.
13734
13735 2011-03-10 Michael Snyder <msnyder@vmware.com>
13736
13737 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
13738
13739 * server.c (handle_v_run): Free alloced buffer on early return.
13740
13741 2011-03-09 Yao Qi <yao@codesourcery.com>
13742
13743 Revert:
13744 2011-03-04 Yao Qi <yao@codesourcery.com>
13745
13746 * Makefile.in: Remove GNU make feature --directory.
13747
13748 2011-03-05 Yao Qi <yao@codesourcery.com>
13749
13750 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13751 (subdir_do): New make target. Copied from gdb/Makefile.
13752 (maintainer-clean, realclean, distclean, clean): Call corresponding
13753 make targets in common/Makefile.
13754
13755 2011-02-11 Yao Qi <yao@codesourcery.com>
13756
13757 * configure.ac: Call AC_PROG_RANLIB.
13758 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13759 * configure: Regenerate.
13760
13761 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13762
13763 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
13764
13765 2011-03-06 Yao Qi <yao@codesourcery.com>
13766
13767 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
13768
13769 2011-03-05 Yao Qi <yao@codesourcery.com>
13770
13771 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13772 (subdir_do): New make target. Copied from gdb/Makefile.
13773 (maintainer-clean, realclean, distclean, clean): Call corresponding
13774 make targets in common/Makefile.
13775
13776 2011-03-04 Yao Qi <yao@codesourcery.com>
13777
13778 * Makefile.in: Remove GNU make feature --directory.
13779
13780 2011-03-04 Michael Snyder <msnyder@vmware.com>
13781
13782 * server.c (queue_stop_reply): Call xmalloc not malloc.
13783
13784 2011-03-02 Michael Snyder <msnyder@vmware.com>
13785
13786 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
13787
13788 2011-02-28 Michael Snyder <msnyder@vmware.com>
13789
13790 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
13791 (cmd_qtframe): Ditto.
13792 (cmd_qtbuffer): Ditto.
13793 (cmd_bigqtbuffer): Ditto.
13794
13795 * utils.c (decimal2str): Initialize 'width' to nine, then
13796 don't mess with it.
13797
13798 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
13799
13800 * hostio.c (require_data): Free *data, not data.
13801
13802 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13803
13804 * hostio.c (require_data): Use free, not xfree.
13805
13806 2011-02-27 Michael Snyder <msnyder@vmware.com>
13807
13808 * server.c (handle_query): Discard unused value.
13809
13810 * hostio.c (require_data): Free malloc memory before returning
13811 error.
13812
13813 2011-02-26 Michael Snyder <msnyder@vmware.com>
13814
13815 * linux-low.c (list_threads): Call closedir for dirent.
13816
13817 2011-02-27 Michael Snyder <msnyder@vmware.com>
13818
13819 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
13820 a case statement falls through.
13821
13822 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
13823
13824 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
13825 in comparison.
13826
13827 2011-02-26 Michael Snyder <msnyder@vmware.com>
13828
13829 * utils.c (decimal2str): Eliminate dead code and dead param.
13830 (pulongest): Drop dead param from call to decimal2str.
13831 (plongest): Ditto.
13832
13833 2011-02-24 Joel Brobecker <brobecker@adacore.com>
13834
13835 Revert the following patch (not approved yet):
13836 2011-02-21 Hui Zhu <teawater@gmail.com>
13837 * tracepoint.c (tp_printf): New function.
13838 (eval_agent_expr): Handle gdb_agent_op_printf.
13839
13840 2011-02-21 Hui Zhu <teawater@gmail.com>
13841
13842 * tracepoint.c (tp_printf): New function.
13843 (eval_agent_expr): Handle gdb_agent_op_printf.
13844
13845 2011-02-18 Tom Tromey <tromey@redhat.com>
13846
13847 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
13848 (tracepoint.o): Likewise.
13849 * tracepoint.c (enum gdb_agent_op): Use ax.def.
13850 (gdb_agent_op_names): Likewise.
13851
13852 2011-02-18 Tom Tromey <tromey@redhat.com>
13853
13854 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
13855 gdb_agent_op_rot>: New constants.
13856 (gdb_agent_op_names): Add pick and roll.
13857 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
13858 cases.
13859
13860 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13861
13862 * aclocal.m4: Regenerated with aclocal-1.11.1.
13863
13864 2011-02-14 Pedro Alves <pedro@codesourcery.com>
13865
13866 * server.c (handle_qxfer_traceframe_info): New.
13867 (qxfer_packets): Register "traceframe-info".
13868 (handle_query): Report support for qXfer:traceframe-info:read+.
13869 * tracepoint.c (match_blocktype): New.
13870 (traceframe_find_block_type): Rename to ...
13871 (traceframe_walk_blocks): ... this. Add callback filter argument,
13872 and use it.
13873 (traceframe_find_block_type): New, reimplemented on top of
13874 traceframe_walk_blocks.
13875 (build_traceframe_info_xml): New.
13876 (traceframe_read_info): New.
13877 * server.h (traceframe_read_info): Declare.
13878
13879 2011-02-11 Yao Qi <yao@codesourcery.com>
13880
13881 * configure.ac: Call AC_PROG_RANLIB.
13882 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13883 * configure: Regenerate.
13884
13885 2011-02-07 Pedro Alves <pedro@codesourcery.com>
13886
13887 * server.c (gdb_read_memory): Change return semantics to allow
13888 partial transfers.
13889 (handle_search_memory_1): Adjust.
13890 (process_serial_event) <'m' packet>: Handle partial transfers.
13891 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
13892
13893 2011-01-28 Pedro Alves <pedro@codesourcery.com>
13894
13895 * regcache.c (init_register_cache): Initialize
13896 regcache->register_status.
13897 (free_register_cache): Release regcache->register_status.
13898 (regcache_cpy): Copy register_status.
13899 (registers_to_string): Print 'x's for unavailable registers.
13900 (supply_register): Mark the register's status valid or
13901 unavailable, depending on whether a buffer was passed in or not.
13902 (supply_register_zeroed): New.
13903 (supply_regblock): Mark the registers' status valid or
13904 unavailable, depending on whether a buffer was passed in or not.
13905 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
13906 (struct regcache): New `register_status' field.
13907 (supply_register_zeroed): Declare.
13908 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
13909 supply_register_zeroed, rather than passing a NULL buffer to
13910 supply_register.
13911 * tracepoint.c (fetch_traceframe_registers): Update comment.
13912
13913 2011-01-28 Pedro Alves <pedro@codesourcery.com>
13914
13915 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
13916 buffer explicit.
13917
13918 2011-01-25 Pedro Alves <pedro@codesourcery.com>
13919
13920 * server.h (decode_xfer_write): Change prototype.
13921 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
13922 and don't extract the annex here.
13923 * server.c (decode_xfer_read): Remove `annex' parameter,
13924 and don't extract the annex here.
13925 (decode_xfer): New.
13926 (struct qxfer): New.
13927 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
13928 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
13929 (handle_qxfer_statictrace): New functions, abstracted out from
13930 handle_query, and made to use the struct qxfer interface.
13931 (handle_threads_qxfer_proper): Rename to ...
13932 (handle_qxfer_threads_proper): ... this.
13933 (handle_threads_qxfer): Rename to ...
13934 (handle_qxfer_threads): ... this. Adjust.
13935 (qxfer_packets): New array.
13936 (handle_qxfer): New function.
13937 (handle_query): Use handle_qxfer.
13938
13939 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
13940
13941 * gdbreplay.c: Shorten lines of >= 80 columns.
13942 * linux-low.c: Ditto.
13943 * linux-ppc-low.c: Ditto.
13944 * linux-s390-low.c: Ditto.
13945 * linux-sparc-low.c: Ditto.
13946 * linux-x86-low.c: Ditto.
13947 * linux-xtensa-low.c: Ditto.
13948 * mem-break.c: Ditto.
13949 * nto-low.c: Ditto.
13950 * regcache.h: Ditto.
13951 * remote-utils.c: Ditto.
13952 * server.c: Ditto.
13953 * server.h: Ditto.
13954 * thread-db.c: Ditto.
13955 * tracepoint.c: Ditto.
13956 * utils.c: Ditto.
13957 * win32-low.h: Ditto.
13958
13959 2011-01-05 Joel Brobecker <brobecker@adacore.com>
13960
13961 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
13962 update.
13963
13964 2011-01-01 Joel Brobecker <brobecker@adacore.com>
13965
13966 * server.c (gdbserver_version): Update copyright year in version
13967 output.
13968 * gdbreplay.c (gdbreplay_version): Ditto.
13969
13970 2010-12-29 Jie Zhang <jie.zhang@analog.com>
13971
13972 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
13973 * linux-bfin-low.c: New file.
13974 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
13975 PT_DATA_ADDR for BFIN targets.
13976 * Makefile.in (SFILES): Add linux-bfin-low.c.
13977 (clean): Remove reg-bfin.c.
13978 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
13979 * README: Mention supported Blackfin targets.
13980
13981 2010-12-23 Mike Frysinger <vapier@gentoo.org>
13982
13983 * .gitignore: New file.
13984
13985 2010-11-16 Mike Frysinger <vapier@gentoo.org>
13986
13987 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
13988
13989 2010-10-22 Jie Zhang <jie@codesourcery.com>
13990
13991 * Makefile.in: Add FLAGS_TO_PASS variable.
13992 (install): Remove dependency of install-only and recursively
13993 invoke make for install-only.
13994
13995 2010-10-04 Doug Evans <dje@google.com>
13996
13997 * Makefile.in (uninstall): Use $(DESTDIR).
13998
13999 2010-09-24 Pedro Alves <pedro@codesourcery.com>
14000
14001 PR gdb/11842
14002
14003 * linux-x86-low.c (compat_siginfo_from_siginfo)
14004 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14005 si_code is < 0. Check for si_code == SI_TIMER before checking for
14006 si_code < 0.
14007
14008 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14009
14010 * lynx-i386-low.c: New file.
14011 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14012
14013 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14014
14015 * lynx-low.c (ptrace_request_to_str): Remove handling for
14016 request values that have been removed in LynxOS 5.x.
14017
14018 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14019
14020 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14021 <ptrace.h>
14022
14023 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14024
14025 * configure.ac: Add --enable-inprocess-agent option.
14026 * configure: Rebuilt.
14027
14028 2010-09-06 Yao Qi <yao@codesourcery.com>
14029
14030 * linux-low.c (linux_kill): Remove unused variable.
14031 (linux_stabilize_threads): Likewise.
14032 * server.c (start_inferior): Likewise.
14033 (queue_stop_reply_callback): Likewise.
14034 * tracepoint.c (do_action_at_tracepoint): Likewise.
14035
14036 2010-09-06 Yao Qi <yao@codesourcery.com>
14037
14038 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14039 on return.
14040
14041 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14042
14043 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14044
14045 2010-09-06 Pedro Alves <pedro@codesourcery.com>
14046
14047 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14048 "$(IPA_DEPFILES)".
14049
14050 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14051
14052 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14053 gdbserver/lynx-ppc-low.c: New files.
14054 * Makefile.in (lynx_low_h): New variable.
14055 (lynx-low.o, lynx-ppc-low.o): New rules.
14056 * configure.ac: On LynxOS, link with -lnetinet.
14057 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14058 * configure: regenerate.
14059
14060 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14061
14062 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
14063 * configure.ac: Add check for vasprintf and vsnprintf.
14064 * configure, config.in: Regenerate.
14065 * server.h (vasprintf, vsnprintf): Add conditional declarations.
14066
14067 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14068
14069 * gdbreplay.c: Move include of alloca.h up, next to include of
14070 malloc.h.
14071 * server.h: Add include of malloc.h.
14072 * mem-break.c: Remove include of malloc.h.
14073 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
14074
14075 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14076
14077 * Makefile.in (memmem.o): Build with -Wno-error.
14078
14079 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14080
14081 * utils.c (xsnprintf): Make non-static.
14082 * server.h: Add xsnprintf declaration.
14083 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
14084 replace calls to snprintf by calls to xsnprintf throughout.
14085
14086 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14087
14088 * configure.ac: Add configure check for alloca.
14089 * configure, config.in: Regenerate.
14090 * server.h: Include alloca.h if it exists.
14091 * gdbreplay.c: Include alloca.h if it exists.
14092
14093 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14094
14095 * linux-low.c (__SIGRTMIN): Define if not already defined.
14096 (linux_create_inferior): Check for __ANDROID__ rather than
14097 __SIGRTMIN.
14098 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
14099 are already deferred.
14100 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
14101 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
14102 stopped and already has a pending signal to report.
14103 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
14104 a pending signal to report or is moving out of a jump pad.
14105 (linux_init_signals): Check for __ANDROID__ rather than
14106 __SIGRTMIN.
14107
14108 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14109
14110 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14111 debug_threads check. Avoid a linear search when not doing debug
14112 output.
14113
14114 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14115
14116 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
14117 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
14118 (struct file_handler) <fd>: Change type to gdb_fildes_t.
14119 (process_event): Change local fd's type to gdb_fildes_t.
14120 (create_file_handler): Adjust prototype.
14121 (delete_file_handler): Adjust prototype.
14122 (handle_file_event): Adjust prototype. Use pfildes.
14123 (create_file_event): Adjsut prototype.
14124 * remote-utils.c (remote_desc, listen_desc): Change type to
14125 gdb_fildes_t.
14126 * server.h: New gdb_fildes_t typedef.
14127 [USE_WIN32API]: Include winsock2.h.
14128 (delete_file_handler, add_file_handler): Adjust prototypes.
14129 (pfildes): Declare.
14130 * utils.c (pfildes): New.
14131
14132 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14133
14134 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14135 * configure: Regenerate.
14136
14137 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14138
14139 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
14140 (linux_done_accessing_memory): ... this.
14141 (linux_target_ops): Adjust.
14142 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
14143 * nto-low.c (nto_target_ops): Adjust comment.
14144 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
14145 * spu-low.c (spu_target_ops): Adjust comment.
14146 * target.h (target_ops): Rename unprepare_to_access_memory field
14147 to done_accessing_memory.
14148 (unprepare_to_access_memory): Rename to ...
14149 (done_accessing_memory): ... this.
14150
14151 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14152
14153 * linux-low.c (linux_prepare_to_access_memory): New.
14154 (linux_unprepare_to_access_memory): New.
14155 (linux_target_ops): Install them.
14156 * server.c (read_memory): Rename to ...
14157 (gdb_read_memory): ... this. Use
14158 prepare_to_access_memory/prepare_to_access_memory.
14159 (write_memory): Rename to ...
14160 (gdb_write_memory): ... this. Use
14161 prepare_to_access_memory/prepare_to_access_memory.
14162 (handle_search_memory_1): Adjust.
14163 (process_serial_event): Adjust.
14164 * target.h (struct target_ops): New fields
14165 prepare_to_access_memory and unprepare_to_access_memory.
14166 (prepare_to_access_memory, unprepare_to_access_memory): New.
14167 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
14168 prepare_to_access_memory/prepare_to_access_memory.
14169 * nto-low.c (nto_target_ops): Adjust.
14170 * spu-low.c (spu_target_ops): Adjust.
14171 * win32-low.c (win32_target_ops): Adjust.
14172
14173 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14174
14175 * Makefile.in (WARN_CFLAGS): Get it from configure.
14176 (WERROR_CFLAGS): New.
14177 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
14178 * configure.ac: Introduce --enable-werror, which adds -Werror to
14179 the compiler command line. Enabled by default. Disable with
14180 --disable-werror. Add -Wdeclaration-after-statement
14181 Wpointer-arith and -Wformat-nonliteral to warning flags.
14182 * configure: Regenerate.
14183
14184 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14185
14186 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14187
14188 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14189
14190 * gdbreplay.c (remote_error): New.
14191 (gdbchar): New.
14192 (expect): Use gdbchar. Check for error reading from GDB.
14193 Clarify sync error output.
14194 (play): Check for errors writing to GDB.
14195 * linux-low.c (sigchld_handler): Really ignore `write' errors.
14196 * remote-utils.c (getpkt): Check for errors writing to the remote
14197 descriptor.
14198
14199 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14200
14201 * linux-low.c (linux_wait_1): Move non-debugging code out of
14202 `debug_threads' control.
14203
14204 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14205
14206 * linux-low.c (linux_wait_1): Don't set last_status here.
14207 * server.c (push_event, queue_stop_reply_callback): Assert we're
14208 not pushing a TARGET_WAITKIND_IGNORE event.
14209 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
14210 (myresume, handle_target_event): Set the thread's last_resume_kind
14211 and last_status from the target returned status.
14212
14213 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14214
14215 PR threads/10729
14216
14217 * linux-x86-low.c (update_debug_registers_callback): New.
14218 (i386_dr_low_set_addr): Use it.
14219 (i386_dr_low_get_addr): New.
14220 (i386_dr_low_set_control): Use update_debug_registers_callback.
14221 (i386_dr_low_get_control): New.
14222 (i386_dr_low_get_status): Adjust.
14223 * linux-low.c (linux_stop_lwp): New.
14224 * linux-low.h (linux_stop_lwp): Declare.
14225
14226 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
14227 argument instead of a i386_debug_reg_state.
14228 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
14229 a i386_debug_reg_state.
14230 (i386_insert_aligned_watchpoint): Adjust.
14231 (i386_remove_aligned_watchpoint): Adjust.
14232 (i386_low_stopped_data_address): Read the debug registers from the
14233 inferior instead of from the mirrors.
14234 * i386-low.h (struct i386_debug_reg_state): Extend comment.
14235 (i386_dr_low_get_addr): Declare.
14236 (i386_dr_low_get_control): Declare.
14237 (i386_dr_low_get_status): Change prototype.
14238
14239 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
14240 (i386_dr_low_get_addr): New.
14241 (i386_dr_low_get_control): New.
14242 (i386_dr_low_get_status): Adjust prototype. Return
14243 dr_status_mirror.
14244 (i386_initial_stuff): Clear dr_status_mirror and
14245 dr_control_mirror.
14246 (i386_get_thread_context): Adjust.
14247 (i386_set_thread_context): Adjust.
14248 (i386_thread_added): Adjust.
14249
14250 2010-08-24 Pedro Alves <pedro@codesourcery.com>
14251
14252 * linux-low.h (linux_thread_area): Delete declaration.
14253
14254 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14255
14256 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14257 after its termination.
14258
14259 2010-08-09 Pedro Alves <pedro@codesourcery.com>
14260
14261 * linux-low.c (gdb_wants_lwp_stopped): Delete.
14262 (gdb_wants_all_stopped): Delete.
14263 (linux_wait_1): Don't call them.
14264 * server.c (handle_v_cont): Tag all threads as want-stopped.
14265 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
14266 stopped as "client-wants-stopped".
14267
14268 2010-07-31 Pedro Alves <pedro@codesourcery.com>
14269
14270 * Makefile.in (signals_h): New.
14271 (server_h): Depend on it.
14272 (server.o): Don't depend on $(signals_def).
14273 (signals.o): Depend on $(signals_def).
14274
14275 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14276
14277 * Makefile.in (signals_def): New.
14278 (server_h): Append include/gdb/signals.h and signals_def.
14279 (server.o): Append signals_def.
14280
14281 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14282
14283 * server.c (handle_target_event): Use target_signal_to_host for
14284 resume_info.sig initialization.
14285 * target.h (struct thread_resume) <sig>: New comment.
14286
14287 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14288
14289 * server.c (handle_query): strcpy() the returned string from paddress()
14290 instead of sprintf().
14291 * utils.c (paddress): Return phex_nz().
14292
14293 2010-07-07 Joel Brobecker <brobecker@adacore.com>
14294
14295 * server.c (handle_v_cont): Call mourn_inferior if process
14296 just exited.
14297 (myresume): Likewise.
14298
14299 2010-07-01 Pedro Alves <pedro@codesourcery.com>
14300
14301 Static tracepoints, and integration with UST.
14302
14303 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
14304 * mem-break.c (uninsert_all_breakpoints)
14305 (reinsert_all_breakpoints): New.
14306 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
14307 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
14308 (gdb_agent_ust_loaded, helper_thread_id)
14309 (gdb_agent_helper_thread_id): New macros.
14310 (struct ipa_sym_addresses): Add addr_ust_loaded,
14311 addr_helper_thread_id, addr_cmd_buf.
14312 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14313 (in_process_agent_loaded_ust): New.
14314 (write_e_ust_not_loaded): New.
14315 (maybe_write_ipa_ust_not_loaded): New.
14316 (struct collect_static_trace_data_action): New.
14317 (enum tracepoint_type) <static_tracepoint>: New.
14318 (struct tracepoint) <handle>: Mention static tracepoints.
14319 (struct static_tracepoint_ctx): New.
14320 (CMD_BUF_SIZE): New.
14321 (add_tracepoint_action): Handle static tracepoint actions.
14322 (unprobe_marker_at): New.
14323 (clear_installed_tracepoints): Handle static tracepoints.
14324 (cmd_qtdp): Handle static tracepoints.
14325 (probe_marker_at): New.
14326 (cmd_qtstart): Handle static tracepoints.
14327 (response_tracepoint): Handle static tracepoints.
14328 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
14329 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
14330 (get_context_regcache): Handle static tracepoints.
14331 (do_action_at_tracepoint): Handle static tracepoint actions.
14332 (traceframe_find_block_type): Handle static trace data blocks.
14333 (traceframe_read_sdata): New.
14334 (download_tracepoints): Download static tracepoint actions.
14335 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
14336 (GDB_PROBE_NAME): New.
14337 (ust_ops): New.
14338 (GET_UST_SYM): New.
14339 (USTF): New.
14340 (dlsym_ust): New.
14341 (ust_marker_to_static_tracepoint): New.
14342 (gdb_probe): New.
14343 (collect_ust_data_at_tracepoint): New.
14344 (gdb_ust_probe): New.
14345 (UNIX_PATH_MAX, SOCK_DIR): New.
14346 (gdb_ust_connect_sync_socket): New.
14347 (resume_thread, stop_thread): New.
14348 (run_inferior_command): New.
14349 (init_named_socket): New.
14350 (gdb_ust_socket_init): New.
14351 (cstr_to_hexstr): New.
14352 (next_st): New.
14353 (first_marker, next_marker): New.
14354 (response_ust_marker): New.
14355 (cmd_qtfstm, cmd_qtsstm): New.
14356 (unprobe_marker_at, probe_marker_at): New.
14357 (cmd_qtstmat, gdb_ust_thread): New.
14358 (gdb_ust_init): New.
14359 (initialize_tracepoint_ftlib): Call gdb_ust_init.
14360 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
14361 (ST_REGENTRY): New.
14362 (x86_64_st_collect_regmap): New.
14363 (X86_64_NUM_ST_COLLECT_GREGS): New.
14364 (AMD64_RIP_REGNUM): New.
14365 (supply_static_tracepoint_registers): New.
14366 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
14367 (ST_REGENTRY): New.
14368 (i386_st_collect_regmap): New.
14369 (i386_NUM_ST_COLLECT_GREGS): New.
14370 (supply_static_tracepoint_registers): New.
14371 * server.c (handle_query): Handle qXfer:statictrace:read.
14372 <qSupported>: Report support for StaticTracepoints, and
14373 qXfer:statictrace:read features.
14374 * server.h (traceframe_read_sdata)
14375 (supply_static_tracepoint_registers): Declare.
14376 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
14377 (unpack_varlen_hex): Include in IPA build.
14378 * Makefile.in (ustlibs, ustinc): New.
14379 (IPA_OBJS): Add remote-utils-ipa.o.
14380 ($(IPA_LIB)): Link -ldl and -lpthread.
14381 (UST_CFLAGS): New.
14382 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14383 * config.in, configure: Regenerate.
14384
14385 2010-06-20 Ian Lance Taylor <iant@google.com>
14386 Pedro Alves <pedro@codesourcery.com>
14387
14388 * linux-x86-low.c (always_true): Delete.
14389 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
14390 trying to fool the compiler with always_true.
14391
14392 2010-06-20 Pedro Alves <pedro@codesourcery.com>
14393
14394 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14395 conditions in gdbserver.
14396
14397 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14398
14399 * spu-low.c (spu_read_memory): Wrap around local store limit.
14400 (spu_write_memory): Likewise.
14401
14402 2010-06-15 Pedro Alves <pedro@codesourcery.com>
14403
14404 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14405 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14406 LONGEST uses.
14407 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14408 uses.
14409 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14410 uses with LONGEST uses.
14411
14412 2010-06-14 Stan Shebs <stan@codesourcery.com>
14413 Pedro Alves <pedro@codesourcery.com>
14414
14415 Bytecode compiler.
14416
14417 * linux-x86-low.c: Include limits.h.
14418 (add_insns): New.
14419 (always_true): New.
14420 (EMIT_ASM): New.
14421 (EMIT_ASM32): New.
14422 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14423 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14424 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14425 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14426 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14427 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14428 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14429 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14430 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14431 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14432 (amd64_emit_void_call_2): New.
14433 (amd64_emit_ops): New.
14434 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14435 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14436 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14437 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14438 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14439 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14440 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14441 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14442 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14443 (i386_emit_stack_adjust, i386_emit_int_call_1)
14444 (i386_emit_void_call_2): New.
14445 (i386_emit_ops): New.
14446 (x86_emit_ops): New.
14447 (the_low_target): Install x86_emit_ops.
14448 * server.h (struct emit_ops): New.
14449 (get_raw_reg_func_addr): Declare.
14450 (current_insn_ptr, emit_error): Declare.
14451 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14452 (set_trace_state_variable_value): New defines.
14453 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14454 addr_get_trace_state_variable_value and
14455 addr_set_trace_state_variable_value.
14456 (symbol_list): New fields for get_raw_reg,
14457 get_trace_state_variable_value and set_trace_state_variable_value.
14458 (condfn): New typedef.
14459 (struct tracepoint): New field `compiled_cond'.
14460 (do_action_at_tracepoint): Clear compiled_cond.
14461 (get_trace_state_variable_value, set_trace_state_variable_value):
14462 Export in the IPA.
14463 (condition_true_at_tracepoint): If there's a compiled condition,
14464 run that.
14465 (current_insn_ptr, emit_error): New globals.
14466 (struct bytecode_address): New.
14467 (get_raw_reg_func_addr): New.
14468 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14469 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14470 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14471 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14472 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14473 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14474 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14475 (compile_tracepoint_condition, compile_bytecodes): New.
14476 * target.h (emit_ops): Forward declare.
14477 (struct target_ops): New field emit_ops.
14478 (target_emit_ops): New.
14479 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14480 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14481 * linux-low.c (linux_emit_ops): New.
14482 (linux_target_ops): Install it.
14483 * linux-low.h (struct linux_target_ops): New field emit_ops.
14484
14485 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14486
14487 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14488 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14489
14490 2010-06-01 Pedro Alves <pedro@codesourcery.com>
14491 Stan Shebs <stan@codesourcery.com>
14492
14493 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14494 (all): Depend on $(extra_libraries).
14495 (install-only): Install the IPA.
14496 (IPA_OBJS, IPA_LIB): New.
14497 (clean): Remove the IPA lib.
14498 (IPAGENT_CFLAGS): New.
14499 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14500 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14501 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14502 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14503 * configure.ac: Check for atomic builtins support in the compiler.
14504 (IPA_DEPFILES, extra_libraries): Define.
14505 * configure.srv (ipa_obj): Add description.
14506 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14507 (i[34567]86-*-linux*): Set ipa_obj.
14508 (x86_64-*-linux*): Set ipa_obj.
14509 * linux-low.c (stabilizing_threads): New.
14510 (supports_fast_tracepoints): New.
14511 (linux_detach): Stabilize threads before detaching.
14512 (handle_tracepoints): Handle internal tracing breakpoints. Assert
14513 the lwp is either not stabilizing, or is moving out of a jump pad.
14514 (linux_fast_tracepoint_collecting): New.
14515 (maybe_move_out_of_jump_pad): New.
14516 (enqueue_one_deferred_signal): New.
14517 (dequeue_one_deferred_signal): New.
14518 (linux_wait_for_event_1): If moving out of a jump pad, defer
14519 pending signals to later.
14520 (linux_stabilize_threads): New.
14521 (linux_wait_1): Check if threads need moving out of jump pads, and
14522 do it if so.
14523 (stuck_in_jump_pad_callback): New.
14524 (move_out_of_jump_pad_callback): New.
14525 (lwp_running): New.
14526 (linux_resume_one_lwp): Handle moving out of jump pads.
14527 (linux_set_resume_request): Dequeue deferred signals.
14528 (need_step_over_p): Also step over fast tracepoint jumps.
14529 (start_step_over): Also uninsert fast tracepoint jumps.
14530 (finish_step_over): Also reinsert fast tracepoint jumps.
14531 (linux_install_fast_tracepoint_jump): New.
14532 (linux_target_ops): Install linux_stabilize_threads and
14533 linux_install_fast_tracepoint_jump_pad.
14534 * linux-low.h (linux_target_ops) <get_thread_area,
14535 install_fast_tracepoint_jump_pad>: New fields.
14536 (struct lwp_info) <collecting_fast_tracepoint,
14537 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14538 (linux_get_thread_area): Declare.
14539 * linux-x86-low.c (jump_insn): New.
14540 (x86_get_thread_area): New.
14541 (append_insns): New.
14542 (push_opcode): New.
14543 (amd64_install_fast_tracepoint_jump_pad): New.
14544 (i386_install_fast_tracepoint_jump_pad): New.
14545 (x86_install_fast_tracepoint_jump_pad): New.
14546 (the_low_target): Install x86_get_thread_area and
14547 x86_install_fast_tracepoint_jump_pad.
14548 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14549 (struct fast_tracepoint_jump): New.
14550 (fast_tracepoint_jump_insn): New.
14551 (fast_tracepoint_jump_shadow): New.
14552 (find_fast_tracepoint_jump_at): New.
14553 (fast_tracepoint_jump_here): New.
14554 (delete_fast_tracepoint_jump): New.
14555 (set_fast_tracepoint_jump): New.
14556 (uninsert_fast_tracepoint_jumps_at): New.
14557 (reinsert_fast_tracepoint_jumps_at): New.
14558 (set_breakpoint_at): Use write_inferior_memory.
14559 (uninsert_raw_breakpoint): Use write_inferior_memory.
14560 (check_mem_read): Mask out fast tracepoint jumps.
14561 (check_mem_write): Mask out fast tracepoint jumps.
14562 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14563 (set_fast_tracepoint_jump): Declare.
14564 (delete_fast_tracepoint_jump)
14565 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14566 (reinsert_fast_tracepoint_jumps_at): Declare.
14567 * regcache.c: Don't compile many functions when building the
14568 in-process agent library.
14569 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14570 the register buffer in the heap.
14571 (free_register_cache): If the register buffer isn't owned by the
14572 regcache, don't free it.
14573 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14574 pre-existing register caches.
14575 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14576 type.
14577 (convert_ascii_to_int): : Constify `from' parameter type.
14578 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14579 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
14580 the needed buffer in-place.
14581 (relocate_instruction): New.
14582 * server.c (handle_query) <qSymbols>: If the target supports
14583 tracepoints, give it a chance of looking up symbols. Report
14584 support for fast tracepoints.
14585 (handle_status): Stabilize threads.
14586 (process_serial_event): Adjust.
14587 * server.h (struct fast_tracepoint_jump): Forward declare.
14588 (struct process_info) <fast_tracepoint_jumps>: New field.
14589 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
14590 (decode_X_packet, decode_M_packet): Adjust.
14591 (relocate_instruction): Declare.
14592 (in_process_agent_loaded): Declare.
14593 (tracepoint_look_up_symbols): Declare.
14594 (struct fast_tpoint_collect_status): Declare.
14595 (fast_tracepoint_collecting): Declare.
14596 (force_unlock_trace_buffer): Declare.
14597 (handle_tracepoint_bkpts): Declare.
14598 (initialize_low_tracepoint)
14599 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
14600 * target.h (struct target_ops) <stabilize_threads,
14601 install_fast_tracepoint_jump_pad>: New fields.
14602 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
14603 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
14604 [HAVE_STDINT_H]: Include stdint.h.
14605 (trace_debug_1): Rename to ...
14606 (trace_vdebug): ... this.
14607 (trace_debug): Rename to ...
14608 (trace_debug_1): ... this. Add `level' parameter.
14609 (trace_debug): New.
14610 (ATTR_USED, ATTR_NOINLINE): New.
14611 (IP_AGENT_EXPORT): New.
14612 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
14613 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
14614 (about_to_request_buffer_space, trace_buffer_is_full)
14615 (stopping_tracepoint, expr_eval_result, error_tracepoint)
14616 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
14617 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
14618 (traceframe_write_count, traceframes_created)
14619 (trace_state_variables)
14620 New renaming defines.
14621 (struct ipa_sym_addresses): New.
14622 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
14623 (symbol_list): New.
14624 (ipa_sym_addrs): New.
14625 (all_tracepoint_symbols_looked_up): New.
14626 (in_process_agent_loaded): New.
14627 (write_e_ipa_not_loaded): New.
14628 (maybe_write_ipa_not_loaded): New.
14629 (tracepoint_look_up_symbols): New.
14630 (debug_threads) [IN_PROCESS_AGENT]: New.
14631 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
14632 (UNKNOWN_SIDE_EFFECTS): New.
14633 (stop_tracing): New.
14634 (flush_trace_buffer): New.
14635 (stop_tracing_bkpt): New.
14636 (flush_trace_buffer_bkpt): New.
14637 (read_inferior_integer): New.
14638 (read_inferior_uinteger): New.
14639 (read_inferior_data_pointer): New.
14640 (write_inferior_data_pointer): New.
14641 (write_inferior_integer): New.
14642 (write_inferior_uinteger): New.
14643 (struct collect_static_trace_data_action): Delete.
14644 (enum tracepoint_type): New.
14645 (struct tracepoint) <type>: New field `type'.
14646 <actions_str, step_actions, step_actions_str>: Only include in
14647 GDBserver.
14648 <orig_size, obj_addr_on_target, adjusted_insn_addr>
14649 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
14650 (tracepoints): Use IP_AGENT_EXPORT.
14651 (last_tracepoint): Don't include in the IPA.
14652 (stopping_tracepoint): Use IP_AGENT_EXPORT.
14653 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
14654 (alloced_trace_state_variables): New.
14655 (trace_state_variables): Use IP_AGENT_EXPORT.
14656 (traceframe_t): Delete unused variable.
14657 (circular_trace_buffer): Don't include in the IPA.
14658 (trace_buffer_start): Delete.
14659 (struct trace_buffer_control): New.
14660 (trace_buffer_free): Delete.
14661 (struct ipa_trace_buffer_control): New.
14662 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
14663 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
14664 New.
14665 (trace_buffer_ctrl): New.
14666 (TRACE_BUFFER_CTRL_CURR): New.
14667 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
14668 Reimplement as macros.
14669 (trace_buffer_wrap): Delete.
14670 (traceframe_write_count, traceframe_read_count)
14671 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
14672 (struct tracepoint_hit_ctx) <type>: New field.
14673 (struct fast_tracepoint_ctx): New.
14674 (memory_barrier): New.
14675 (cmpxchg): New.
14676 (record_tracepoint_error): Update atomically in the IPA.
14677 (clear_inferior_trace_buffer): New.
14678 (about_to_request_buffer_space): New.
14679 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
14680 updating the same buffer.
14681 (add_tracepoint): Default the tracepoint's type to trap
14682 tracepoint, and orig_size to -1.
14683 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
14684 internal variables.
14685 (create_trace_state_variable): New parameter `gdb'. Handle it.
14686 (clear_installed_tracepoints): Clear fast tracepoint jumps.
14687 (cmd_qtdp): Handle fast tracepoints.
14688 (cmd_qtdv): Adjust.
14689 (max_jump_pad_size): New.
14690 (gdb_jump_pad_head): New.
14691 (get_jump_space_head): New.
14692 (claim_jump_space): New.
14693 (sort_tracepoints): New.
14694 (MAX_JUMP_SIZE): New.
14695 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
14696 IPA.
14697 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
14698 support. Upload fast traceframes, and delete internal IPA
14699 breakpoints.
14700 (stop_tracing_handler): New.
14701 (flush_trace_buffer_handler): New.
14702 (cmd_qtstop): Upload fast tracepoints.
14703 (response_tracepoint): Handle fast tracepoints.
14704 (tracepoint_finished_step): Upload fast traceframes. Set the
14705 tracepoint hit context's tracepoint type.
14706 (handle_tracepoint_bkpts): New.
14707 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
14708 type. Add comment about fast tracepoints.
14709 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
14710 non-existing action_str field.
14711 (get_context_regcache): Handle fast tracepoints.
14712 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
14713 to the regcache.
14714 (fast_tracepoint_from_jump_pad_address): New.
14715 (fast_tracepoint_from_ipa_tpoint_address): New.
14716 (collecting_t): New.
14717 (force_unlock_trace_buffer): New.
14718 (fast_tracepoint_collecting): New.
14719 (collecting): New.
14720 (gdb_collect): New.
14721 (write_inferior_data_ptr): New.
14722 (target_tp_heap): New.
14723 (target_malloc): New.
14724 (download_agent_expr): New.
14725 (UALIGN): New.
14726 (download_tracepoints): New.
14727 (download_trace_state_variables): New.
14728 (upload_fast_traceframes): New.
14729 (IPA_FIRST_TRACEFRAME): New.
14730 (IPA_NEXT_TRACEFRAME_1): New.
14731 (IPA_NEXT_TRACEFRAME): New.
14732 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
14733 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
14734 (gdb_jump_pad_buffer_end): New.
14735 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
14736 (initialize_tracepoint): Adjust.
14737 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
14738 buffer. Initialize the low module.
14739 * utils.c (PREFIX, TOOLNAME): New.
14740 (malloc_failure): Use PREFIX.
14741 (error): In the IPA, an error causes an exit.
14742 (fatal, warning): Use PREFIX.
14743 (internal_error): Use TOOLNAME.
14744 (NUMCELLS): Increase to 10.
14745 * configure, config.in: Regenerate.
14746
14747 2010-06-01 Pedro Alves <pedro@codesourcery.com>
14748
14749 * server.c (handle_query) <qSupported>: Do two passes over the
14750 qSupported string to avoid nesting strtok.
14751
14752 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14753
14754 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
14755 (CDEPS): New.
14756 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
14757 -Wl,--dynamic-list.
14758 * configure: Regenerate.
14759 * proc-service.list: New.
14760
14761 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14762
14763 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
14764 New comment.
14765
14766 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
14767
14768 * gdbreplay.c (remote_open): Check error return from socket() call by
14769 its equality to -1 not by it being negative.
14770 * remote-utils.c (remote_open): Likewise.
14771
14772 2010-05-23 Pedro Alves <pedro@codesourcery.com>
14773
14774 * config.h: Regenerate.
14775
14776 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14777
14778 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
14779 doesn't provide PTRACE_GET_THREAD_AREA.
14780
14781 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14782
14783 * linux-m68k-low.c: Include <asm/ptrace.h>
14784 (ps_get_thread_area): Implement.
14785
14786 2010-05-03 Doug Evans <dje@google.com>
14787
14788 * event-loop.c (struct callback_event): New struct.
14789 (callback_list): New global.
14790 (append_callback_event, delete_callback_event): New functions.
14791 (process_callback): New function.
14792 (start_event_loop): Call it.
14793 * remote-utils.c (NOT_SCHEDULED): Define.
14794 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
14795 moved out of readchar.
14796 (readchar): Rewrite. Call reschedule before returning.
14797 (reset_readchar): New function.
14798 (remote_close): Call it.
14799 (process_remaining, reschedule): New functions.
14800 * server.h (callback_handler_func): New typedef.
14801 (append_callback_event, delete_callback_event): Declare.
14802
14803 2010-05-03 Pedro Alves <pedro@codesourcery.com>
14804
14805 * proc-service.c (ps_pglobal_lookup): Use
14806 thread_db_look_up_one_symbol.
14807 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
14808 parameter. Use it instead of all_symbols_looked_up.
14809 * server.h (struct process_info) <all_symbols_looked_up>: Delete
14810 field.
14811 (all_symbols_looked_up): Don't declare.
14812 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
14813 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
14814 field.
14815 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
14816 Set all_symbols_looked_up here.
14817 (thread_db_look_up_one_symbol): New.
14818 (thread_db_get_tls_address): Adjust.
14819 (thread_db_load_search, try_thread_db_load_1): Always allocate the
14820 thread_db object on the heap, and tentatively set it in the
14821 process structure.
14822 (thread_db_init): Don't set all_symbols_looked_up here.
14823 * linux-low.h (thread_db_look_up_one_symbol): Declare.
14824
14825 2010-05-03 Pedro Alves <pedro@codesourcery.com>
14826
14827 * linux-low.c (linux_kill, linux_detach): Adjust.
14828 (status_pending_p_callback): Remove redundant statement. Check
14829 for !TARGET_WAITIKIND_IGNORE, instead of
14830 TARGET_WAITKIND_STOPPED.
14831 (handle_tracepoints): Make sure LWP is locked. Adjust.
14832 (linux_wait_for_event_1): Adjust.
14833 (linux_cancel_breakpoints): New.
14834 (unsuspend_one_lwp): New.
14835 (unsuspend_all_lwps): New.
14836 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
14837 (send_sigstop_callback): Change return type to int, add new
14838 `except' parameter and handle it.
14839 (suspend_and_send_sigstop_callback): New.
14840 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
14841 pass them down. If SUSPEND, also increment the lwp's suspend
14842 count.
14843 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
14844 (need_step_over_p): Don't consider suspended LWPs.
14845 (start_step_over): Adjust.
14846 (proceed_one_lwp): Change return type to int, add new `except'
14847 parameter and handle it.
14848 (unsuspend_and_proceed_one_lwp): New.
14849 (proceed_all_lwps): Use find_inferior instead of
14850 for_each_inferior.
14851 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
14852 also decrement the suspend count of LWPs. Pass `except' down,
14853 instead of hacking its suspend count.
14854 (linux_pause_all): Add `freeze' parameter. Adjust.
14855 (linux_unpause_all): New.
14856 (linux_target_ops): Install linux_unpause_all.
14857 * server.c (handle_status): Adjust.
14858 * target.h (struct target_ops): New fields `unpause_all' and
14859 `cancel_breakpoints'. Add new parameter to `pause_all'.
14860 (pause_all): Add new `freeze' parameter.
14861 (unpause_all): New.
14862 (cancel_breakpoints): New.
14863 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
14864 cancel breakpoints.
14865 (cmd_qtstart): Pause threads.
14866 (stop_tracing): Pause threads, and cancel breakpoints.
14867 * win32-low.c (win32_target_ops): Adjust.
14868
14869 2010-05-03 Pedro Alves <pedro@codesourcery.com>
14870
14871 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
14872 the inferior right away from here...
14873 (linux_wait_1): ... to here, and adjust to check the thread's
14874 last_resume_kind instead of the lwp's step or stop_expected flags.
14875
14876 2010-05-02 Pedro Alves <pedro@codesourcery.com>
14877
14878 * README: Use consistent `GDB' and `GDBserver' spellings.
14879
14880 2010-05-02 Pedro Alves <pedro@codesourcery.com>
14881
14882 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
14883 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
14884 (linux_detach_one_lwp): Assume the lwp is stopped.
14885 (any_thread_of): Delete.
14886 (linux_detach): Stop all lwps here. Don't blindly delete all
14887 breakpoints.
14888 (delete_lwp_callback): New.
14889 (linux_mourn): Delete all lwps of the process that is gone.
14890 (linux_wait_1): Don't delete the last lwp of the process here.
14891 * mem-break.h (mark_breakpoints_out): Declare.
14892 * mem-break.c (mark_breakpoints_out): New.
14893 (free_all_breakpoints): Use it.
14894 * server.c (handle_target_event): If the process is gone, mark
14895 breakpoints out.
14896 * thread-db.c (struct thread_db) <create_bp>: New field.
14897 (thread_db_enable_reporting): Fix prototype. Store a thread event
14898 breakpoint reference in the thread_db struct.
14899 (thread_db_load_search): Clear the thread_db object.
14900 (try_thread_db_load_1): Ditto.
14901 (switch_to_process): New.
14902 (disable_thread_event_reporting): Use it.
14903 (remove_thread_event_breakpoints): New.
14904 (thread_db_detach, thread_db_mourn): Use it.
14905
14906 2010-05-01 Pedro Alves <pedro@codesourcery.com>
14907
14908 * linux-low.c (linux_enable_event_reporting): New.
14909 (linux_wait_for_event_1, handle_extended_wait): Use it.
14910
14911 2010-04-30 Pedro Alves <pedro@codesourcery.com>
14912
14913 * linux-low.c (linux_kill_one_lwp, linux_kill)
14914 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
14915 (send_sigstop): Take an lwp_info as parameter instead. Queue a
14916 SIGSTOP even if the LWP is stopped.
14917 (send_sigstop_callback): New.
14918 (stop_all_lwps): Use send_sigstop_callback instead.
14919 (linux_resume_one_thread): Adjust.
14920 (proceed_one_lwp): Still proceed an LWP that the client has
14921 requested to stop, if we haven't reported it as stopped yet. Make
14922 sure that LWPs the client want stopped, have a pending SIGSTOP.
14923
14924 2010-04-26 Doug Evans <dje@google.com>
14925
14926 * server.c (handle_general_set): Make static.
14927
14928 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
14929 Print received char after testing for error/eof instead of before.
14930 (input_interrupt): Tweak comment.
14931
14932 2010-04-23 Doug Evans <dje@google.com>
14933
14934 * server.c (start_inferior): Print inferior argv if --debug.
14935
14936 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
14937
14938 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
14939 * nto-x86-low.c: Include server.h
14940
14941 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
14942
14943 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
14944 be consistent with other sources of this directory.
14945 (init_registers_amd64): Correct name of source file of this function
14946 in the comment.
14947
14948 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14949
14950 * configure.srv (x86_64-*-mingw*): New configuration for Windows
14951 64-bit executables.
14952
14953 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14954
14955 * win32-i386-low.c: Add 64-bit support.
14956 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
14957 (init_registers_amd64): Declare.
14958 (mappings): Add 64-bit version of array.
14959 (init_windows_x86): New function.
14960 (the_low_target): Change init_arch field to init_windows_x86.
14961
14962 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14963
14964 * win32-low.c: Adapt to support also 64-bit architecture.
14965 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
14966 (get_image_name): Use SIZE_T type for local variable `done'.
14967 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
14968 (toolhelp_get_dll_name): Idem.
14969 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
14970 Use uintptr_t typecast to avoid warning.
14971 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
14972 (handle_exception): Use phex_nz to avoid warning.
14973 (win32_wait): Remove unused local variable `process'.
14974
14975 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14976
14977 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
14978 `amd64-avx.o'.
14979
14980 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
14981
14982 * configure.ac: Use `ws2_32' library for srv_mingw.
14983 * configure: Regenerate.
14984 * gdbreplay.c: Include winsock2.h instead of winsock.h.
14985 * remote-utils.c: Likewise.
14986
14987 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
14988
14989 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
14990 if __x86_64__ is defined.
14991
14992 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14993
14994 * configure: Regenerate.
14995
14996 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14997
14998 * server.c (handle_query): Handle 'qGetTIBAddr' query.
14999 * target.h (target_ops): New get_tib_address field.
15000 * win32-low.h (win32_thread_info): Add thread_local_base field.
15001 * win32-low.c (child_add_thread): Add tlb argument.
15002 Set thread_local_base field to TLB.
15003 (get_child_debug_event): Adapt to child_add_thread change.
15004 (win32_get_tib_address): New function.
15005 (win32_target_ops): Set get_tib_address field to
15006 win32_get_tib_address.
15007 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15008
15009 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15010
15011 * linux-low.c (linux_mourn): Also remove the process.
15012 * server.c (handle_target_event): Don't remove the process here.
15013 * nto-low.c (nto_mourn): New.
15014 (nto_target_ops): Install it.
15015 * spu-low.c (spu_mourn): New.
15016 (spu_target_ops): Install it.
15017 * win32-low.c (win32_mourn): New.
15018 (win32_target_ops): Install it.
15019
15020 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15021
15022 * server.h (buffer_xml_printf): Remove redundant `;'.
15023
15024 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15025
15026 * regcache.c (set_register_cache): Invalidate regcaches before
15027 changing the register cache layout.
15028 (regcache_invalidate_one): Allow a NULL regcache.
15029 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15030 regcaches before changing the register cache layout or the target
15031 regsets.
15032
15033 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15034
15035 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15036 variable warning on Linux/x86-64.
15037
15038 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15039
15040 GDBserver disconnected tracing support.
15041
15042 * linux-low.c (linux_remove_process): Delete.
15043 (add_lwp): Don't set last_resume_kind here.
15044 (linux_kill): Use `mourn'.
15045 (linux_detach): Use `thread_db_detach', and `mourn'.
15046 (linux_mourn): New.
15047 (linux_attach_lwp_1): Adjust comment.
15048 (linux_attach): last_resume_kind moved the thread_info; adjust.
15049 (status_pending_p_callback): Adjust.
15050 (linux_wait_for_event_1): Adjust.
15051 (count_events_callback, select_singlestep_lwp_callback)
15052 (select_event_lwp_callback, cancel_breakpoints_callback)
15053 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15054 (proceed_one_lwp): Adjust.
15055 (linux_async): Add debug output.
15056 (linux_thread_stopped): New.
15057 (linux_pause_all): New.
15058 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15059 linux_pause_all.
15060 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
15061 (thread_db_free): Delete declaration.
15062 (thread_db_detach, thread_db_mourn): Declare.
15063 * thread-db.c (thread_db_init): Use thread_db_mourn.
15064 (thread_db_free): Delete, split in two.
15065 (disable_thread_event_reporting): New.
15066 (thread_db_detach): New.
15067 (thread_db_mourn): New.
15068
15069 * server.h (struct thread_info) <last_resume_kind>: New field.
15070 <attached>: Add comment.
15071 <gdb_detached>: New field.
15072 (handler_func): Change return type to int.
15073 (handle_serial_event, handle_target_event): Ditto.
15074 (gdb_connected): Declare.
15075 (tracing): Delete.
15076 (disconnected_tracing): Declare.
15077 (stop_tracing): Declare.
15078
15079 * server.c (handle_query) <qSupported>: Report support for
15080 disconnected tracing.
15081 (queue_stop_reply_callback): Account for running threads.
15082 (gdb_wants_thread_stopped): New.
15083 (gdb_wants_all_threads_stopped): New.
15084 (gdb_reattached_process): New.
15085 (handle_status): Clear the `gdb_detached' flag of all processes.
15086 In all-stop, stop all threads.
15087 (main): Be sure to leave tfind mode. Handle disconnected tracing.
15088 (process_serial_event): If the remote connection breaks, or if an
15089 exit was forced with "monitor exit", force an event loop exit.
15090 Handle disconnected tracing on detach.
15091 (handle_serial_event): Adjust.
15092 (handle_target_event): If GDB isn't connected, forward events back
15093 to the inferior, unless the last process exited, in which case,
15094 exit gdbserver. Adjust interface.
15095
15096 * remote-utils.c (remote_open): Don't block in accept. Instead
15097 register an event loop source on the listen socket file
15098 descriptor. Refactor bits into ...
15099 (listen_desc): ... this new global.
15100 (gdb_connected): ... this new function.
15101 (enable_async_notification): ... this new function.
15102 (handle_accept_event): ... this new function.
15103 (remote_close): Clear remote_desc.
15104
15105 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15106
15107 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15108 New fields.
15109 (mourn_inferior): Define.
15110 (target_process_qsupported): Avoid the dangling else problem.
15111 (thread_stopped): Define.
15112 (pause_all): Define.
15113 (target_waitstatus_to_string): Declare.
15114 * target.c (target_waitstatus_to_string): New.
15115
15116 * tracepoint.c (tracing): Make extern.
15117 (disconnected_tracing): New.
15118 (stop_tracing): Make extern. Handle tracing stops due to GDB
15119 disconnecting.
15120 (cmd_qtdisconnected): New.
15121 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15122 (handle_tracepoint_general_set): Handle QTDisconnected.
15123
15124 * event-loop.c (event_handler_func): Change return type to int.
15125 (process_event): Bail out if the event handler wants the event
15126 loop to stop.
15127 (handle_file_event): Ditto.
15128 (start_event_loop): Bail out if the event handler wants the event
15129 loop to stop.
15130
15131 * nto-low.c (nto_target_ops): Adjust.
15132 * spu-low.c (spu_wait): Don't remove the process here.
15133 (spu_target_ops): Adjust.
15134 * win32-low.c (win32_wait): Don't remove the process here.
15135 (win32_target_ops): Adjust.
15136
15137 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15138
15139 * regcache.c (realloc_register_cache): Invalidate inferior's
15140 regcache before recreating it.
15141
15142 2010-04-09 Pedro Alves <pedro@codesourcery.com>
15143
15144 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15145
15146 2010-04-09 Stan Shebs <stan@codesourcery.com>
15147 Pedro Alves <pedro@codesourcery.com>
15148
15149 * server.h (LONGEST): New.
15150 (struct thread_info) <while_stepping>: New field.
15151 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15152 Declare.
15153 (initialize_tracepoint, handle_tracepoint_general_set)
15154 (handle_tracepoint_query, tracepoint_finished_step)
15155 (tracepoint_was_hit, release_while_stepping_state_list):
15156 (current_traceframe): Declare.
15157 * server.c (handle_general_set): Handle tracepoint packets.
15158 (read_memory): New.
15159 (write_memory): New.
15160 (handle_search_memory_1): Use read_memory.
15161 (handle_query): Report support for conditional tracepoints, trace
15162 state variables, and tracepoint sources. Handle tracepoint
15163 queries.
15164 (main): Initialize the tracepoints module.
15165 (process_serial_event): Handle traceframe reads/writes.
15166
15167 * linux-low.c (handle_tracepoints): New.
15168 (linux_wait_1): Call it.
15169 (linux_resume_one_lwp): Handle while-stepping.
15170 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
15171 (linux_target_ops): Install them.
15172 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
15173 New field.
15174 * linux-x86-low.c (x86_supports_tracepoints): New.
15175 (the_low_target). Install it.
15176
15177 * mem-break.h (delete_breakpoint): Declare.
15178 * mem-break.c (delete_breakpoint): Make external.
15179
15180 * target.h (struct target_ops): Add `supports_tracepoints',
15181 `read_pc', and `write_pc' fields.
15182 (target_supports_tracepoints): Define.
15183 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
15184 (phex_nz): New.
15185
15186 * regcache.h (struct regcache) <registers_owned>: New field.
15187 (init_register_cache, regcache_cpy): Declare.
15188 (regcache_read_pc, regcache_write_pc): Declare.
15189 (register_cache_size): Declare.
15190 (supply_regblock): Declare.
15191 * regcache.c (init_register_cache): New.
15192 (new_register_cache): Use it.
15193 (regcache_cpy): New.
15194 (register_cache_size): New.
15195 (supply_regblock): New.
15196 (regcache_read_pc, regcache_write_pc): New.
15197
15198 * tracepoint.c: New.
15199
15200 * Makefile.in (OBS): Add tracepoint.o.
15201 (tracepoint.o): New rule.
15202
15203 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15204
15205 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15206 (i386-mmx.o): New.
15207 (i386-mmx.c): Likewise.
15208 (i386-mmx-linux.o): Likewise.
15209 (i386-mmx-linux.c): Likewise.
15210
15211 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
15212 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
15213 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
15214 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
15215
15216 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
15217 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
15218 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
15219
15220 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15221
15222 * Makefile.in (clean): Updated.
15223 (i386-avx.o): New.
15224 (i386-avx.c): Likewise.
15225 (i386-avx-linux.o): Likewise.
15226 (i386-avx-linux.c): Likewise.
15227 (amd64-avx.o): Likewise.
15228 (amd64-avx.c): Likewise.
15229 (amd64-avx-linux.o): Likewise.
15230 (amd64-avx-linux.c): Likewise.
15231
15232 * configure.srv (srv_i386_regobj): Add i386-avx.o.
15233 (srv_i386_linux_regobj): Add i386-avx-linux.o.
15234 (srv_amd64_regobj): Add amd64-avx.o.
15235 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
15236 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
15237 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
15238 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
15239 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
15240 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
15241 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
15242
15243 * i387-fp.c: Include "i386-xstate.h".
15244 (i387_xsave): New.
15245 (i387_cache_to_xsave): Likewise.
15246 (i387_xsave_to_cache): Likewise.
15247 (x86_xcr0): Likewise.
15248
15249 * i387-fp.h (i387_cache_to_xsave): Likewise.
15250 (i387_xsave_to_cache): Likewise.
15251 (x86_xcr0): Likewise.
15252
15253 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
15254 * linux-crisv32-low.c (target_regsets): Likewise.
15255 * linux-m68k-low.c (target_regsets): Likewise.
15256 * linux-mips-low.c (target_regsets): Likewise.
15257 * linux-ppc-low.c (target_regsets): Likewise.
15258 * linux-s390-low.c (target_regsets): Likewise.
15259 * linux-sh-low.c (target_regsets): Likewise.
15260 * linux-sparc-low.c (target_regsets): Likewise.
15261 * linux-xtensa-low.c (target_regsets): Likewise.
15262
15263 * linux-low.c: Include <sys/uio.h>.
15264 (regsets_fetch_inferior_registers): Support nt_type.
15265 (regsets_store_inferior_registers): Likewise.
15266 (linux_process_qsupported): New.
15267 (linux_target_ops): Add linux_process_qsupported.
15268
15269 * linux-low.h (regset_info): Add nt_type.
15270 (linux_target_ops): Add process_qsupported.
15271
15272 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15273 and <sys/uio.h>.
15274 (init_registers_i386_avx_linux): New.
15275 (init_registers_amd64_avx_linux): Likewise.
15276 (xmltarget_i386_linux_no_xml): Likewise.
15277 (xmltarget_amd64_linux_no_xml): Likewise.
15278 (PTRACE_GETREGSET): Likewise.
15279 (PTRACE_SETREGSET): Likewise.
15280 (x86_fill_xstateregset): Likewise.
15281 (x86_store_xstateregset): Likewise.
15282 (use_xml): Likewise.
15283 (x86_linux_update_xmltarget): Likewise.
15284 (x86_linux_process_qsupported): Likewise.
15285 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
15286 (x86_arch_setup): Don't call init_registers_amd64_linux nor
15287 init_registers_i386_linux here. Call
15288 x86_linux_update_xmltarget.
15289 (the_low_target): Add x86_linux_process_qsupported.
15290
15291 * server.c (handle_query): Call target_process_qsupported.
15292
15293 * target.h (target_ops): Add process_qsupported.
15294 (target_process_qsupported): New.
15295
15296 2010-04-03 Pedro Alves <pedro@codesourcery.com>
15297
15298 * inferiors.c (add_thread): Set last_status kind to
15299 TARGET_WAITKIND_IGNORE.
15300 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
15301 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
15302 (linux_wait_1): Move `thread' local definition to block that uses
15303 it. Don't NULL initialize `event_child'.
15304 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
15305 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
15306 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
15307
15308 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15309
15310 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15311 an extended waitstatus, or by a watchpoint.
15312 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15313 thread was stepping or has been stopped by a watchpoint.
15314
15315 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15316
15317 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15318 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15319 of another, then delete the previous, and validate all
15320 breakpoints.
15321 (validate_inserted_breakpoint): New.
15322 (delete_disabled_breakpoints): New.
15323 (validate_breakpoints): New.
15324 (check_mem_read): Validate breakpoints before trusting their
15325 shadow. Delete disabled breakpoints.
15326 (check_mem_write): Validate breakpoints before trusting they
15327 should be inserted. Delete disabled breakpoints.
15328 * mem-break.h (validate_breakpoints):
15329 * server.c (handle_query): Validate breakpoints when we see a
15330 qSymbol query.
15331
15332 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15333
15334 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
15335 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
15336 if we could tell there's a GDB breakpoint at stop_pc.
15337 (need_step_over_p): Don't do a step over if we find a GDB
15338 breakpoint at the resume PC.
15339
15340 * mem-break.c (struct raw_breakpoint): New.
15341 (enum bkpt_type): New type `gdb_breakpoint'.
15342 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
15343 fields. New field `raw'.
15344 (find_raw_breakpoint_at): New.
15345 (set_raw_breakpoint_at): Handle refcounting. Create a raw
15346 breakpoint instead.
15347 (set_breakpoint_at): Adjust.
15348 (delete_raw_breakpoint): New.
15349 (release_breakpoint): New.
15350 (delete_breakpoint): Rename to...
15351 (delete_breakpoint_1): ... this. Add proc parameter. Use
15352 release_breakpoint. Return ENOENT.
15353 (delete_breakpoint): Reimplement.
15354 (find_breakpoint_at): Delete.
15355 (find_gdb_breakpoint_at): New.
15356 (delete_breakpoint_at): Delete.
15357 (set_gdb_breakpoint_at): New.
15358 (delete_gdb_breakpoint_at): New.
15359 (gdb_breakpoint_here): New.
15360 (set_reinsert_breakpoint): Use release_breakpoint.
15361 (uninsert_breakpoint): Rename to ...
15362 (uninsert_raw_breakpoint): ... this.
15363 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
15364 (reinsert_raw_breakpoint): Change parameter type to
15365 raw_breakpoint.
15366 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15367 instead.
15368 (check_breakpoints): Adjust. Use release_breakpoint.
15369 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
15370 (breakpoint_inserted_here): Ditto.
15371 (check_mem_read): Adjust to iterate over raw breakpoints instead.
15372 Don't trust the breakpoint's shadow if it is not inserted.
15373 (check_mem_write): Adjust to iterate over raw breakpoints instead.
15374 (delete_all_breakpoints): Adjust.
15375 (free_all_breakpoints): Mark all breakpoints as uninserted, and
15376 use delete_breakpoint_1.
15377
15378 * mem-break.h (breakpoints_supported): Delete declaration.
15379 (set_gdb_breakpoint_at): Declare.
15380 (gdb_breakpoint_here): Declare.
15381 (delete_breakpoint_at): Delete.
15382 (delete_gdb_breakpoint_at): Declare.
15383
15384 * server.h (struct raw_breakpoint): Forward declare.
15385 (struct process_info): New field `raw_breakpoints'.
15386
15387 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15388 breakpoints.
15389
15390 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15391
15392 * linux-low.c (status_pending_p_callback): Fix comment.
15393 (linux_wait_for_event_1): Move most of the internal breakpoint
15394 handling from here...
15395 (linux_wait_1): ... to here.
15396 (count_events_callback): New.
15397 (select_singlestep_lwp_callback): New.
15398 (select_event_lwp_callback): New.
15399 (cancel_breakpoints_callback): New.
15400 (select_event_lwp): New.
15401 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15402 priority to all LWPs that have had events that should be reported
15403 to the client. Cancel breakpoints when about to reporting the
15404 event to the client, not while stopping lwps. No longer cancel
15405 finished single-steps here.
15406 (cancel_finished_single_step): Delete.
15407 (cancel_finished_single_steps): Delete.
15408
15409 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15410
15411 * mem-break.c (enum bkpt_type): New.
15412 (struct breakpoint): New field `type'.
15413 (set_breakpoint_at): Change return type to struct breakpoint
15414 pointer. Set type to `other_breakpoint' by default.
15415 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15416 in the breakpoint list.
15417 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15418 (reinsert_breakpoint): Rename to ...
15419 (reinsert_raw_breakpoint): ... this.
15420 (reinsert_breakpoints_at): Adjust.
15421 * mem-break.h (struct breakpoint): Declare.
15422 (set_breakpoint_at): Change return type to struct breakpoint
15423 pointer.
15424
15425 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15426
15427 * server.c (handle_query): Assign, not compare.
15428
15429 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15430
15431 Teach linux gdbserver to step-over-breakpoints.
15432
15433 * linux-low.c (can_hardware_single_step): New.
15434 (supports_breakpoints): New.
15435 (handle_extended_wait): If stopping threads, read the stop pc of
15436 the new cloned LWP.
15437 (get_pc): New.
15438 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15439 low target doesn't support retrieving the PC.
15440 (add_lwp): Set last_resume_kind to resume_continue.
15441 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15442 (linux_attach): Don't clear stop_expected. Set the lwp's
15443 last_resume_kind to resume_stop.
15444 (linux_detach_one_lwp): Don't check for removed breakpoints.
15445 (check_removed_breakpoint): Delete.
15446 (status_pending_p): Rename to ...
15447 (status_pending_p_callback): ... this. Don't check for removed
15448 breakpoints. Don't consider threads that are stopped from GDB's
15449 perspective.
15450 (linux_wait_for_lwp): Always read the stop_pc here.
15451 (cancel_breakpoint): New.
15452 (step_over_bkpt): New global.
15453 (linux_wait_for_event_1): Implement stepping over breakpoints.
15454 (gdb_wants_lwp_stopped): New.
15455 (gdb_wants_all_stopped): New.
15456 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15457 single-step traps here. Store the thread's last reported target
15458 wait status.
15459 (send_sigstop): Don't clear stop_expected. Always set it,
15460 instead.
15461 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15462 (cancel_finished_single_step): New.
15463 (cancel_finished_single_steps): New.
15464 (wait_for_sigstop): Don't cancel finished single-step traps here.
15465 (linux_resume_one_lwp): Don't check for removed breakpoints.
15466 Don't set `step' on non-hardware step archs.
15467 (linux_set_resume_request): Ignore resume_stop requests if already
15468 stopping or stopped. Set the lwp's last_resume_kind.
15469 (resume_status_pending_p): Don't check for removed breakpoints.
15470 (need_step_over_p): New.
15471 (start_step_over): New.
15472 (finish_step_over): New.
15473 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15474 requests. Clear the thread's last reported target waitstatus.
15475 Don't use the `suspended' flag. Don't consider pending breakpoints.
15476 (linux_resume): Start a step-over if necessary.
15477 (proceed_one_lwp): New.
15478 (proceed_all_lwps): New.
15479 (unstop_all_lwps): New.
15480 * linux-low.h (struct lwp_info): Rewrite comment for the
15481 `suspended' flag. Add the `stop_pc' field. Delete the
15482 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15483 Add `'last_resume_kind' and `need_step_over' fields.
15484 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15485 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15486 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15487 (set_raw_breakpoint_at): New.
15488 (set_breakpoint_at): Rewrite to use it.
15489 (reinsert_breakpoint_handler): Delete.
15490 (set_reinsert_breakpoint): New.
15491 (reinsert_breakpoint_by_bp): Delete.
15492 (delete_reinsert_breakpoints): New.
15493 (uninsert_breakpoint): Rewrite.
15494 (uninsert_breakpoints_at): New.
15495 (reinsert_breakpoint): Rewrite.
15496 (reinsert_breakpoints_at): New.
15497 (check_breakpoints): Rewrite.
15498 (breakpoint_here): New.
15499 (breakpoint_inserted_here): New.
15500 (check_mem_read): Adjust.
15501 * mem-break.h (breakpoints_supported, breakpoint_here)
15502 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15503 (reinsert_breakpoint_by_bp): Delete declaration.
15504 (delete_reinsert_breakpoints): Declare.
15505 (reinsert_breakpoint): Delete declaration.
15506 (reinsert_breakpoints_at): Declare.
15507 (uninsert_breakpoint): Delete declaration.
15508 (uninsert_breakpoints_at): Declare.
15509 (check_breakpoints): Adjust prototype.
15510 * server.h: Adjust include order.
15511 (struct thread_info): Declare here. Add a `last_status' field.
15512
15513 2010-03-23 Michael Snyder <msnyder@vmware.com>
15514
15515 * server.c (crc32): New function.
15516 (handle_query): Add handling for 'qCRC:' request.
15517
15518 2010-03-23 Pedro Alves <pedro@codesourcery.com>
15519
15520 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15521 lwp had been stopped by a watchpoint.
15522
15523 2010-03-16 Pedro Alves <pedro@codesourcery.com>
15524
15525 * server.h (internal_error): Declare.
15526 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15527 * utils.c (internal_error): New function.
15528
15529 2010-03-15 Andreas Schwab <schwab@redhat.com>
15530
15531 * configure.srv: Fix typo setting srv_regobj.
15532
15533 2010-03-15 Pedro Alves <pedro@codesourcery.com>
15534
15535 * linux-low.c (fetch_register): Avoid passing a non string literal
15536 format to `error'.
15537 (usr_store_inferior_registers): Ditto.
15538
15539 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15540
15541 * linux-low.c (linux_write_memory): Bail out early if peeking
15542 memory failed.
15543
15544 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15545
15546 * linux-low.h (struct lwp_info): New fields
15547 `stopped_by_watchpoint' and `stopped_data_address'.
15548 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15549 here, and cache them in the lwp object.
15550 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15551 directly.
15552 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15553 field.
15554 (linux_stopped_by_watchpoint): Rewrite.
15555 (linux_stopped_data_address): Rewrite.
15556
15557 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
15558
15559 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15560 switching the current inferior, not before.
15561
15562 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15563
15564 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15565 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15566 i386-linux.c and amd64-linux.c.
15567 (reg-i386.o): Removed.
15568 (reg-i386.c): Likewise.
15569 (reg-i386-linux.o): Likewise.
15570 (reg-i386-linux.c): Likewise.
15571 (reg-x86-64.o): Likewise.
15572 (reg-x86-64.c): Likewise.
15573 (reg-x86-64-linux.o): Likewise.
15574 (reg-x86-64-linux.c): Likewise.
15575 (i386.o): New.
15576 (i386.c): Likewise.
15577 (i386-linux.o): Likewise.
15578 (i386-linux.c): Likewise.
15579 (amd64.o): Likewise.
15580 (amd64.c): Likewise.
15581 (amd64-linux.o): Likewise.
15582 (amd64-linux.c): Likewise.
15583
15584 * configure.srv (srv_i386_regobj): New.
15585 (srv_i386_linux_regobj): Likewise.
15586 (srv_amd64_regobj): Likewise.
15587 (srv_amd64_linux_regobj): Likewise.
15588 (srv_i386_32bit_xmlfiles): Likewise.
15589 (srv_i386_64bit_xmlfiles): Likewise.
15590 (srv_i386_xmlfiles): Likewise.
15591 (srv_amd64_xmlfiles): Likewise.
15592 (srv_i386_linux_xmlfiles): Likewise.
15593 (srv_amd64_linux_xmlfiles): Likewise.
15594 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
15595 srv_xmlfiles to $srv_i386_xmlfiles.
15596 (i[34567]86-*-mingw32ce*): Likewise.
15597 (i[34567]86-*-mingw*): Likewise.
15598 (i[34567]86-*-nto*): Likewise.
15599 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
15600 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
15601 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
15602 (x86_64-*-linux*): Likewise.
15603
15604 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
15605 (init_registers_amd64_linux): New.
15606 (x86_arch_setup): Replace init_registers_x86_64_linux with
15607 init_registers_amd64_linux.
15608
15609 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
15610
15611 * configure.ac: Check for libdl. If it is not available link against
15612 static libthread_db.
15613 * configure: Regenerate.
15614
15615 2010-02-22 Pedro Alves <pedro@codesourcery.com>
15616
15617 PR9605
15618
15619 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
15620 handing a read watchpoint.
15621 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
15622
15623 2010-02-12 Doug Evans <dje@google.com>
15624
15625 * linux-low.c (linux_supports_tracefork_flag): Document.
15626 (linux_look_up_symbols): Add comment.
15627
15628 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
15629
15630 * regcache.c (supply_register): Clear regcache if buf is NULL.
15631
15632 2010-02-02 Nicolas Roche <roche@sourceware.org>
15633 Joel Brobecker <brobecker@adacore.com>
15634
15635 * inferiors.c (find_inferior): Add function documentation.
15636 (unloaded_dll): Handle the case where the unloaded dll has not
15637 been previously registered in the dll list.
15638
15639 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
15640
15641 * linux-arm-low.c (thumb_breakpoint_len): Delete.
15642 (thumb2_breakpoint): New.
15643 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
15644
15645 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15646
15647 * linux-low.c (get_stop_pc): Check for SIGTRAP.
15648 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
15649 breakpoints.
15650
15651 2010-01-21 Pedro Alves <pedro@codesourcery.com>
15652
15653 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
15654
15655 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15656
15657 * linux-s390-low.c (s390_collect_ptrace_register)
15658 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
15659
15660 2010-01-21 Doug Evans <dje@google.com>
15661
15662 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
15663 (PTRACE_ARG4_TYPE): New macro.
15664 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
15665 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
15666 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
15667 (usr_store_inferior_registers): Ditto.
15668 (linux_read_memory, linux_write_memory): Ditto.
15669 (linux_test_for_tracefork): Ditto.
15670
15671 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
15672 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
15673
15674 2010-01-21 Pedro Alves <pedro@codesourcery.com>
15675
15676 * proc-service.c (ps_lgetregs): Don't refetch registers from the
15677 target.
15678
15679 2010-01-21 Pedro Alves <pedro@codesourcery.com>
15680
15681 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
15682 prototype to take a regcache. Adjust.
15683
15684 2010-01-20 Pedro Alves <pedro@codesourcery.com>
15685
15686 * regcache.h (struct thread_info): Forward declare.
15687 (struct regcache): New.
15688 (new_register_cache): Adjust prototype.
15689 (get_thread_regcache): Declare.
15690 (free_register_cache): Adjust prototype.
15691 (registers_to_string, registers_from_string): Ditto.
15692 (supply_register, supply_register_by_name, collect_register)
15693 (collect_register_as_string, collect_register_by_name): Ditto.
15694 * regcache.c (struct inferior_regcache_data): Delete.
15695 (get_regcache): Rename to ...
15696 (get_thread_regcache): ... this. Adjust. Switch inferior before
15697 fetching registers.
15698 (regcache_invalidate_one): Adjust.
15699 (regcache_invalidate): Fix prototype.
15700 (new_register_cache): Return the new register cache.
15701 (free_register_cache): Change prototype.
15702 (realloc_register_cache): Adjust.
15703 (registers_to_string): Change prototype to take a regcache. Adjust.
15704 (registers_from_string): Ditto.
15705 (register_data): Ditto.
15706 (supply_register): Ditto.
15707 (supply_register_by_name): Ditto.
15708 (collect_register): Ditto.
15709 (collect_register_as_string): Ditto.
15710 (collect_register_by_name): Ditto.
15711 * server.c (process_serial_event): Adjust.
15712 * linux-low.h (regset_fill_func, regset_store_func): Change
15713 prototype.
15714 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
15715 Change prototype.
15716 * linux-low.c (get_stop_pc): Adjust.
15717 (check_removed_breakpoint): Adjust.
15718 (linux_wait_for_event): Adjust.
15719 (linux_resume_one_lwp): Adjust.
15720 (fetch_register): Add regcache parameter. Adjust.
15721 (usr_store_inferior_registers): Ditto.
15722 (regsets_fetch_inferior_registers): Ditto.
15723 (regsets_store_inferior_registers): Ditto.
15724 (linux_fetch_registers, linux_store_registers): Ditto.
15725 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
15726 regcache. Adjust.
15727 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
15728 Ditto.
15729 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
15730 prototype to take a regcache.
15731 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
15732 * remote-utils.c (convert_ascii_to_int, outreg)
15733 (prepare_resume_reply): Change prototype to take a regcache.
15734 Adjust.
15735 * target.h (struct target_ops) <fetch_registers, store_registers>:
15736 Change prototype to take a regcache.
15737 (fetch_inferior_registers, store_inferior_registers): Change
15738 prototype to take a regcache. Adjust.
15739 * proc-service.c (ps_lgetregs): Adjust.
15740 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
15741 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
15742 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
15743 take a regcache. Adjust.
15744 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
15745 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
15746 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
15747 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
15748 * linux-cris-low.c (cris_get_pc, cris_set_pc)
15749 (cris_cannot_fetch_register):
15750 (cris_breakpoint_at): Change prototype to take a regcache.
15751 Adjust.
15752 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
15753 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
15754 to take a regcache. Adjust.
15755 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
15756 Adjust.
15757 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
15758 take a regcache. Adjust.
15759 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
15760 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
15761 (m68k_set_pc): Change prototype to take a regcache. Adjust.
15762 * linux-mips-low.c (mips_get_pc):
15763 (mips_set_pc): Change prototype to take a regcache. Adjust.
15764 (mips_reinsert_addr): Adjust.
15765 (mips_collect_register): Change prototype to take a regcache.
15766 Adjust.
15767 (mips_supply_register):
15768 (mips_collect_register_32bit, mips_supply_register_32bit)
15769 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
15770 (mips_store_fpregset): Ditto.
15771 * linux-ppc-low.c (ppc_supply_ptrace_register)
15772 (ppc_supply_ptrace_register): Ditto.
15773 (parse_spufs_run): Adjust.
15774 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
15775 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
15776 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
15777 take a regcache. Adjust.
15778 * linux-s390-low.c (s390_collect_ptrace_register)
15779 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
15780 (s390_set_pc): Change prototype to take a regcache. Adjust.
15781 (s390_arch_setup): Adjust.
15782 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
15783 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
15784 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15785 (sparc_fill_gregset, sparc_store_gregset_from_stack)
15786 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
15787 regcache. Adjust.
15788 (sparc_breakpoint_at): Adjust.
15789 * linux-xtensa-low.c (xtensa_fill_gregset):
15790 (xtensa_store_gregset):
15791 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
15792 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
15793 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
15794 prototype to take a regcache. Adjust.
15795 * win32-arm-low.c (arm_fetch_inferior_register)
15796 (arm_store_inferior_register): Change prototype to take a
15797 regcache. Adjust.
15798 * win32-i386-low.c (i386_fetch_inferior_register)
15799 (i386_store_inferior_register): Change prototype to take a
15800 regcache. Adjust.
15801 * win32-low.c (child_fetch_inferior_registers)
15802 (child_store_inferior_registers): Change prototype to take a
15803 regcache. Adjust.
15804 (win32_wait): Adjust.
15805 (win32_fetch_inferior_registers): Change prototype to take a
15806 regcache. Adjust.
15807 (win32_store_inferior_registers): Adjust.
15808 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
15809 store_inferior_register>: Change prototype to take a regcache.
15810
15811 2010-01-20 Doug Evans <dje@google.com>
15812
15813 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
15814 #ifdef.
15815 (linux_wait_for_event1, linux_init_signals): Ditto.
15816 (W_STOPCODE): Provide definition if missing.
15817
15818 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
15819
15820 * linux-low.c (linux_core_of_thread): New.
15821 (compare_ints, show_process, list_threads): New.
15822 (linux_qxfer_osdata): Report threads and cores.
15823 (linux_target_op): Register linux_core_of_thread.
15824 * remote-utils.c (prepare_resume_reply): Report the core.
15825 (buffer_xml_printf): Support %d specifier.
15826 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
15827 New.
15828 (handle_query): Handle qXfer:threads. Announce availability
15829 thereof.
15830 * target.h (struct target_ops): New field core_of_thread.
15831
15832 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
15833
15834 * Makefile.in (clean): Remove new generated files.
15835 (reg-s390.o, reg-s390.c): Remove rules.
15836 (reg-s390x.o, reg-s390x.c): Likewise.
15837 (s390-linux32.o, s390-linux32.c): Add rules.
15838 (s390-linux64.o, s390-linux64.c): Likewise.
15839 (s390x-linux64.o, s390x-linux64.c): Likewise.
15840 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
15841 * linux-s390-low.c: Include <elf.h>.
15842 (HWCAP_S390_HIGH_GPRS): Define if undefined.
15843 (init_registers_s390): Remove prototype.
15844 (init_registers_s390x): Likewise.
15845 (init_registers_s390_linux32): Add prototype.
15846 (init_registers_s390_linux64): Likewise.
15847 (init_registers_s390x_linux64): Likewise.
15848 (s390_num_regs_3264): New define.
15849 (s390_regmap_3264): New global variable.
15850 (s390_cannot_fetch_register): Remove obsolete check.
15851 (s390_cannot_store_register): Likewise.
15852 (s390_collect_ptrace_register): Handle upper/lower register halves.
15853 (s390_supply_ptrace_register): Likewise.
15854 (s390_fill_gregset): Update to register number changes.
15855 (s390_get_hwcap): New routine.
15856 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
15857 Install appropriate regmap and register set.
15858
15859 2010-01-01 Joel Brobecker <brobecker@adacore.com>
15860
15861 * server.c (gdbserver_version): Update copyright year to 2010.
15862 * gdbreplay.c (gdbreplay_version): Likewise.
15863
15864 2009-12-28 Doug Evans <dje@google.com>
15865
15866 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
15867 elf/external.h. Include <elf.h> instead but only if necessary.
15868
15869 2009-12-28 Pedro Alves <pedro@codesourcery.com>
15870
15871 * linux-low.c (linux_remove_process): Remove `detaching'
15872 parameter. Don't release/detach from thread_db here.
15873 (linux_kill): Release/detach from thread_db here, ...
15874 (linux_detach): ... and here, before actually detaching.
15875 (linux_wait_1): ... and here, when a process exits.
15876 * thread-db.c (any_thread_of): New.
15877 (thread_db_free): Switch the current inferior to a thread of the
15878 passed in process.
15879
15880 2009-12-21 Doug Evans <dje@google.com>
15881
15882 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
15883
15884 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
15885 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
15886 warning ifndef __NR_tkill. Move setting of errno there too.
15887 Delete unnecessary resetting of errno after syscall.
15888 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
15889
15890 * configure.ac: Check for dladdr.
15891 * config.in: Regenerate.
15892 * configure: Regenerate.
15893 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
15894 (try_thread_db_load): Update.
15895
15896 * linux-low.c (my_waitpid): Delete unnecessary prototype.
15897
15898 2009-12-18 Doug Evans <dje@google.com>
15899
15900 * event-loop.c: Include unistd.h if it exists.
15901
15902 * linux-low.c (my_waitpid): Move definition away from being in
15903 between linux_tracefork_child/linux_test_for_tracefork.
15904
15905 * gdb_proc_service.h (psaddr_t): Fix type.
15906 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
15907 signature to match glibc.
15908
15909 2009-12-16 Doug Evans <dje@google.com>
15910
15911 * linux-low.c (linux_read_memory): Fix argument to read.
15912
15913 2009-11-26 Pedro Alves <pedro@codesourcery.com>
15914
15915 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
15916 events, don't leave current_inferior pointing at null.
15917
15918 2009-11-26 Pedro Alves <pedro@codesourcery.com>
15919
15920 * win32-low.c (LOG): Delete.
15921 (OUTMSG): Output to stderr.
15922 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
15923 on compile time LOG macro.
15924 (win32_wait): Fix debug output.
15925
15926 2009-11-26 Pedro Alves <pedro@codesourcery.com>
15927
15928 * win32-low.c (win32_add_one_solib): If the dll name is
15929 "ntdll.dll", prepend the system directory to the dll path.
15930
15931 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
15932
15933 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
15934
15935 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
15936 Vladimir Prus <vladimir@codesourcery.com>
15937
15938 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
15939 * configure.ac: Check for __mcoldfire__ and set
15940 gdb_cv_m68k_is_coldfire.
15941 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
15942 reg-cf.o and reg-m68k.o.
15943 * configure: Regenerated.
15944
15945 2009-11-16 Pedro Alves <pedro@codesourcery.com>
15946
15947 * linux-low.c (linux_remove_process): Add `detaching' parameter.
15948 Pass it to thread_db_free.
15949 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
15950 proper `detaching' argument to linux_remove_process.
15951 * linux-low.h (thread_db_free): Add `detaching' parameter.
15952 * thread-db.c (thread_db_init): Pass false as `detaching' argument
15953 to thread_db_free.
15954 (thread_db_free): Add `detaching' parameter. Only
15955 call td_ta_clear_event if detaching from process.
15956
15957 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
15958
15959 * thread-db.c (thread_db_free): Fix typo.
15960
15961 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
15962
15963 PR gdb/10838
15964 * thread-db.c (thread_db_free): Call td_ta_clear_event.
15965
15966 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
15967
15968 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
15969 with an i686 compiler.
15970 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
15971 needed.
15972 * configure: Rebuilt.
15973
15974 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
15975
15976 PR gdb/10783
15977
15978 * server.c (handle_search_memory_1): Correct read_addr initialization
15979 in loop for searching subsequent chunks.
15980
15981 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
15982
15983 * configure.ac: New --with-libthread-db option.
15984 * thread-db.c: Allow direct dependence on libthread_db.
15985 (thread_db_free): Adjust.
15986 * config.in: Regenerate.
15987 * configure: Likewise.
15988
15989 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
15990
15991 PR gdb/10757
15992 * thread-db.c (attach_thread): New function.
15993 (maybe_attach_thread): Return success/failure.
15994 (find_new_threads_callback): Adjust.
15995 (thread_db_find_new_threads): Loop until no new threads.
15996
15997 2009-10-13 Pedro Alves <pedro@codesourcery.com>
15998
15999 * proc-service.c (ps_lgetregs): Formatting.
16000
16001 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16002
16003 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16004 * configure.ac: Adjust.
16005 * linux-low.h (struct process_info_private): Move members to struct
16006 thread_db.
16007 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16008 * linux-low.c (linux_remove_process): Adjust.
16009 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16010 * server.c (handle_query): Move code ...
16011 (handle_monitor_command): ... here. New function.
16012 * target.h (struct target_ops): New member.
16013 * thread-db.c (struct thread_db): New.
16014 (libthread_db_search_path): New variable.
16015 (thread_db_create_event, thread_db_enable_reporting)
16016 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16017 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16018 (try_thread_db_load_1, dladdr_to_soname): New functions.
16019 (try_thread_db_load, thread_db_load_search): New functions.
16020 (thread_db_init): Search for libthread_db.
16021 (thread_db_free): New function.
16022 (thread_db_handle_monitor_command): Likewise.
16023 * config.in: Regenerate.
16024 * configure: Regenerate.
16025
16026 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16027
16028 * spu-low.c (spu_kill): Wait for inferior to terminate.
16029 Call clear_inferiors.
16030 (spu_detach): Call clear_inferiors.
16031
16032 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16033
16034 * aclocal.m4: Regenerate.
16035 * config.in: Likewise.
16036 * configure: Likewise.
16037
16038 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16039
16040 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16041 (parse_spufs_run): New function.
16042 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16043 (ppc_breakpoint_at): Handle SPU breakpoints.
16044
16045 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16046
16047 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16048 (SPUFS_MAGIC): Define.
16049 (spu_enumerate_spu_ids): New function.
16050 (linux_qxfer_spu): New function.
16051 (linux_target_ops): Install linux_qxfer_spu.
16052
16053 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16054
16055 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16056 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16057 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16058 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16059 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
16060 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
16061 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
16062 (init_registers_powerpc_cell32l): Add prototype.
16063 (init_registers_powerpc_cell64l): Likewise.
16064 (ppc_arch_setup): Detect Cell/B.E. architecture.
16065
16066 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16067
16068 * Makefile.in (datarootdir): New variable.
16069
16070 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16071
16072 * linux-low.c (linux_write_memory): Update debugging output.
16073 * Makefile.in (clean): Add new descriptions.
16074 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
16075 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
16076 * configure.srv: Add new files for arm*-*-linux*.
16077 * linux-arm-low.c: Add new declarations.
16078 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
16079 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
16080 (HWCAP_VFPv3D16): New.
16081 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
16082 instead of __IWMMXT__.
16083 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
16084 (arm_arch_setup): New.
16085 (target_regsets): Remove #ifdef. Add VFP regset.
16086 (the_low_target): Use arm_arch_setup.
16087
16088 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16089
16090 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16091 the main thread again.
16092
16093 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16094
16095 Adding Neutrino gdbserver.
16096 * configure: Regenerated.
16097 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
16098 * configure.srv (i[34567]86-*-nto*): New target.
16099 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
16100 * remote-utils.c [__QNX__]: Include sys/iomgr.h
16101 (nto_comctrl) [__QNX__]: New function.
16102 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
16103
16104 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
16105
16106 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16107 srv_tgtobj.
16108
16109 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16110 Pedro Alves <pedro@codesourcery.com>
16111
16112 * win32-i386-low.c (i386_get_thread_context): Handle systems that
16113 don't support CONTEXT_EXTENDED_REGISTERS.
16114 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
16115 (the_low_target): Install them.
16116 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
16117 failing with ERROR_PIPE_NOT_CONNECTED.
16118
16119 2009-06-30 Doug Evans <dje@google.com>
16120 Pierre Muller <muller@ics.u-strasbg.fr>
16121
16122 Add h/w watchpoint support to x86-linux, win32-i386.
16123 * Makefile.in (SFILES): Add i386-low.c
16124 (i386_low_h): Define.
16125 (i386-low.o): Add dependencies.
16126 (linux-x86-low.o): Add i386-low.h dependency.
16127 (win32-i386-low.o): Ditto.
16128 * i386-low.c: New file.
16129 * i386-low.h: New file.
16130 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
16131 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
16132 * linux-low.c (linux_add_process): Initialize arch_private.
16133 (linux_remove_process): Free arch_private.
16134 (add_lwp): Initialize arch_private.
16135 (delete_lwp): Free arch_private.
16136 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
16137 provided.
16138 * linux-low.h (process_info_private): New member arch_private.
16139 (lwp_info): New member arch_private.
16140 (linux_target_ops): New members new_process, new_thread,
16141 prepare_to_resume.
16142 (ptid_of): New macro.
16143 * linux-x86-low.c: Include stddef.h, i386-low.h.
16144 (arch_process_info): New struct.
16145 (arch_lwp_info): New struct.
16146 (x86_linux_dr_get, x86_linux_dr_set): New functions.
16147 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16148 (i386_dr_low_get_status): New function.
16149 (x86_insert_point, x86_remove_point): New functions.
16150 (x86_stopped_by_watchpoint): New function.
16151 (x86_stopped_data_address): New function.
16152 (x86_linux_new_process, x86_linux_new_thread): New functions.
16153 (x86_linux_prepare_to_resume): New function.
16154 (the_low_target): Add entries for insert_point, remove_point,
16155 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
16156 prepare_to_resume.
16157 * server.c (debug_hw_points): New global.
16158 (monitor_show_help): Document set debug-hw-points.
16159 (handle_query): Process "set debug-hw-points".
16160 * server.h (debug_hw_points): Declare.
16161 (paddress): Declare.
16162 * utils.c (NUMCELLS, CELLSIZE): New macros.
16163 (get_sell, xsnprintf, paddress): New functions.
16164 * win32-arm-low.c (the_low_target): Add entries for insert_point,
16165 remove_point, stopped_by_watchpoint, stopped_data_address.
16166 * win32-i386-low.c: Include i386-low.h.
16167 (debug_reg_state): Replaces dr.
16168 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16169 (i386_dr_low_get_status): New function.
16170 (i386_insert_point, i386_remove_point): New functions.
16171 (i386_stopped_by_watchpoint): New function.
16172 (i386_stopped_data_address): New function.
16173 (i386_initial_stuff): Update.
16174 (get_thread_context,set_thread_context,i386_thread_added): Update.
16175 (the_low_target): Add entries for insert_point,
16176 remove_point, stopped_by_watchpoint, stopped_data_address.
16177 * win32-low.c (win32_insert_watchpoint): New function.
16178 (win32_remove_watchpoint): New function.
16179 (win32_stopped_by_watchpoint): New function.
16180 (win32_stopped_data_address): New function.
16181 (win32_target_ops): Add entries for insert_watchpoint,
16182 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
16183 * win32-low.h (win32_target_ops): New members insert_point,
16184 remove_point, stopped_by_watchpoint, stopped_data_address.
16185
16186 2009-06-25 Pedro Alves <pedro@codesourcery.com>
16187
16188 * server.c (process_serial_event): Re-return unsupported, not
16189 error, if the type isn't recognized. Re-allow supporting only
16190 insert or remove packets. Also call require_running for
16191 breakpoints. Add missing break statement to default case. Tidy.
16192 * target.h (struct target_ops): Rename insert_watchpoint to
16193 insert_point, and remove_watchpoint to remove_point.
16194
16195 * linux-low.h (struct linux_target_ops): Likewise.
16196 * linux-low.c (linux_insert_watchpoint): Rename to ...
16197 (linux_insert_point): ... this. Adjust.
16198 (linux_remove_watchpoint): Rename to ...
16199 (linux_remove_point): ... this. Adjust.
16200 (linux_target_ops): Adjust.
16201 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
16202 (cris_insert_point): ... this.
16203 (cris_remove_watchpoint): Rename to ...
16204 (cris_remove_point): ... this.
16205 (the_low_target): Adjust.
16206
16207 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16208
16209 * server.c (handle_v_kill): Pass signal_pid to
16210 kill_inferior if multi_process is zero.
16211
16212 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16213
16214 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
16215 * target.h (target_ops): Comment for *_watchpoint to make it clear
16216 the functions can get types '0' and '1'.
16217
16218 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16219
16220 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
16221 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
16222 * regcache.c (get_regcache): Likewise.
16223 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
16224 * win32-low.c (child_fetch_inferior_registers): Remove check for
16225 regno 0.
16226
16227 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16228 Pedro Alves <pedro@codesourcery.com>
16229
16230 * target.h (struct target_ops) <supports_multi_process>: New
16231 callback.
16232 (target_supports_multi_process): New.
16233 * server.c (handle_query): Even if GDB reports support, only
16234 enable multi-process if the target also supports it. Report
16235 multi-process support only if the target backend supports it.
16236 * linux-low.c (linux_supports_multi_process): New function.
16237 (linux_target_ops): Install it as target_supports_multi_process
16238 callback.
16239
16240 2009-05-24 Doug Evans <dje@google.com>
16241
16242 Global renaming of find_thread_pid to find_thread_ptid.
16243 * server.h (find_thread_ptid): Renamed from find_thread_pid.
16244 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
16245 All callers updated.
16246
16247 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
16248 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
16249 directly.
16250
16251 * linux-low.c (get_stop_pc): Print pc if debug_threads.
16252 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
16253 (linux_resume_one_lwp): Ditto.
16254
16255 2009-05-23 Doug Evans <dje@google.com>
16256
16257 * linux-low.c (linux_resume_one_lwp): Change type of first arg
16258 from struct inferior_list_entry * to struct lwp_info *.
16259 All callers updated.
16260
16261 2009-05-13 Doug Evans <dje@google.com>
16262
16263 * linux-x86-low.c: Don't include assert.h.
16264 (x86_siginfo_fixup): Use fatal, not assert.
16265 (x86_arch_setup): Fix comment.
16266
16267 2009-05-12 Doug Evans <dje@google.com>
16268
16269 Biarch support for i386/amd64 gdbserver.
16270 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
16271 Add linux-x86-low.c.
16272 (linux-i386-low.o, linux-x86-64-low.o): Delete.
16273 (linux-x86-low.o): Add.
16274 * linux-x86-64-low.c: Delete.
16275 * linux-i386-low.c: Delete.
16276 * linux-x86-low.c: New file.
16277 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
16278 linux-x86-low.o.
16279 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16280 linux-x86-low.o.
16281 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
16282 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
16283 (linux_child_pid_to_exec_file): New function.
16284 (elf_64_header_p, elf_64_file_p): New functions.
16285 (siginfo_fixup): New function.
16286 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
16287 give target a chance to convert layout.
16288 * linux-low.h (linux_target_ops): New member siginfo_fixup.
16289 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
16290
16291 2009-05-07 Doug Evans <dje@google.com>
16292
16293 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16294 (regsets_store_inferior_registers): Ditto.
16295
16296 2009-05-06 Pedro Alves <pedro@codesourcery.com>
16297
16298 PR server/10048
16299
16300 * linux-low.c (must_set_ptrace_flags): Delete.
16301 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16302 of the global.
16303 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16304 `lwp->must_set_ptrace_flags' instead.
16305 (linux_wait_for_event_1): Set ptrace options here.
16306 (linux_wait_1): ... not here.
16307
16308 2009-04-30 Doug Evans <dje@google.com>
16309
16310 * inferiors.c (started_inferior_callback): New function.
16311 (attached_inferior_callback): New function.
16312 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16313 * server.c (print_started_pid, print_attached_pid): New functions.
16314 (detach_or_kill_for_exit): New function.
16315 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16316 * server.h (have_started_inferiors_p): Declare.
16317 (have_attached_inferiors_p): Declare.
16318
16319 * inferiors.c (remove_process): Fix memory leak, free process.
16320 * linux-low.c (linux_remove_process): New function.
16321 (linux_kill): Call it instead of remove_process.
16322 (linux_detach, linux_wait_1): Ditto.
16323
16324 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16325
16326 * configure.srv: Add x86 Windows CE target.
16327
16328 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16329
16330 * inferiors.c (get_thread_process): Make global.
16331 * server.h (get_thread_process): Add prototype.
16332 * thread-db.c (find_one_thread): Use get_thread_process
16333 instead of current_process.
16334 (thread_db_get_tls_address): Do not crash if called when
16335 thread layer is not yet initialized.
16336
16337 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16338
16339 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
16340 * spu-low.c (current_tid): Rename to ...
16341 (current_ptid): ... this.
16342 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
16343 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
16344 ptid_get_lwp (current_ptid) instead of current_tid.
16345 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
16346 instead of current_tid. Use find_process_pid to verify pid
16347 argument is valid. Pass proper argument to remove_process.
16348 (spu_thread_alive): Compare current_ptid instead of current_tid.
16349 (spu_resume): Likewise.
16350
16351 2009-04-02 Pedro Alves <pedro@codesourcery.com>
16352
16353 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16354 variable.
16355
16356 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16357
16358 Implement the multiprocess extensions, and add linux multiprocess
16359 support.
16360
16361 * server.h (ULONGEST): Declare.
16362 (struct ptid, ptid_t): New.
16363 (minus_one_ptid, null_ptid): Declare.
16364 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16365 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
16366 (struct inferior_list_entry): Change `id' type from unsigned from
16367 to ptid_t.
16368 (struct sym_cache, struct breakpoint, struct
16369 process_info_private): Forward declare.
16370 (struct process_info): Declare.
16371 (current_process): Declare.
16372 (all_processes): Declare.
16373 (initialize_inferiors): Declare.
16374 (add_thread): Adjust to use ptid_t.
16375 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
16376 (add_process, remove_process, find_thread_pid): Declare.
16377 (find_inferior_id): Adjust to use ptid_t.
16378 (cont_thread, general_thread, step_thread): Change type to ptid_t.
16379 (multi_process): Declare.
16380 (push_event): Adjust to use ptid_t.
16381 (read_ptid, write_ptid): Declare.
16382 (prepare_resume_reply): Adjust to use ptid_t.
16383 (clear_symbol_cache): Declare.
16384 * inferiors.c (all_processes): New.
16385 (null_ptid, minus_one_ptid): New.
16386 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16387 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
16388 (add_thread): Change unsigned long to ptid. Remove gdb_id
16389 parameter. Adjust.
16390 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
16391 (gdb_id_to_thread): Rename to ...
16392 (find_thread_pid): ... this. Change unsigned long to ptid.
16393 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16394 (loaded_dll, pull_pid_from_list): Adjust.
16395 (add_process, remove_process, find_process_pid)
16396 (get_thread_process, current_process, initialize_inferiors): New.
16397 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16398 (struct target_waitstatus) <related_pid>: Ditto.
16399 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16400 return type to int.
16401 (struct target_ops) <join>: Add `pid' argument.
16402 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16403 (struct target_ops) <wait>: Add `ptid' field. Change return type
16404 to ptid.
16405 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16406 (mywait): Add `ptid' argument. Change return type to ptid_t.
16407 (target_pid_to_str): Declare.
16408 * target.c (set_desired_inferior): Adjust to use ptids.
16409 (mywait): Add new `ptid' argument. Adjust.
16410 (target_pid_to_str): New.
16411 * mem-break.h (free_all_breakpoints): Declare.
16412 * mem-break.c (breakpoints): Delelete.
16413 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16414 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16415 to use per-process breakpoint list.
16416 (free_all_breakpoints): New.
16417 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16418 (symbol_cache, all_symbols_looked_up): Delete.
16419 (hexchars): New.
16420 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16421 read_ptid): New.
16422 (prepare_resume_reply): Change ptid argument's type from unsigned
16423 long to ptid_t. Adjust. Implement W;process and X;process.
16424 (free_sym_cache, clear_symbol_cache): New.
16425 (look_up_one_symbol): Adjust to per-process symbol cache. *
16426 * server.c (cont_thread, general_thread, step_thread): Change type
16427 to ptid_t.
16428 (attached): Delete.
16429 (multi_process): New.
16430 (last_ptid): Change type to ptid_t.
16431 (struct vstop_notif) <ptid>: Change type to ptid_t.
16432 (queue_stop_reply, push_event): Change `ptid' argument's type to
16433 ptid_t.
16434 (discard_queued_stop_replies): Add `pid' argument.
16435 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16436 changes. Don't reference the `attached' global.
16437 (attach_inferior): Adjust to mywait interface changes.
16438 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16439 features. Handle and report "multiprocess+". Handle
16440 "qAttached:PID".
16441 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16442 changes.
16443 (handle_v_kill): New.
16444 (handle_v_stopped): Adjust to use target_pid_to_str.
16445 (handle_v_requests): Allow multiple attaches and runs when
16446 multiprocess extensions are in effect. Handle "vKill".
16447 (myresume): Adjust to use ptids.
16448 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16449 (handle_status): Adjust to discard_queued_stop_replies interface
16450 change.
16451 (first_thread_of, kill_inferior_callback)
16452 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16453 (main): Call initialize_inferiors. Adjust to use ptids, killing
16454 and detaching from all inferiors. Handle multiprocess packet
16455 variants.
16456 * linux-low.h: Include gdb_proc_service.h.
16457 (struct process_info_private): New.
16458 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16459 <lwpid_of>: Use ptid_get_lwp.
16460 (get_lwp_thread): Adjust.
16461 (struct lwp_info): Add `dead' member.
16462 (find_lwp_pid): Declare.
16463 * linux-low.c (thread_db_active): Delete.
16464 (new_inferior): Adjust comment.
16465 (inferior_pid): Delete.
16466 (linux_add_process): New.
16467 (handle_extended_wait): Adjust.
16468 (add_lwp): Change unsigned long to ptid.
16469 (linux_create_inferior): Add process to processes table. Adjust
16470 to use ptids. Don't set new_inferior here.
16471 (linux_attach_lwp): Rename to ...
16472 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16473 it. Adjust to use ptids.
16474 (linux_attach_lwp): New.
16475 (linux_attach): Add process to processes table. Don't set
16476 new_inferior here.
16477 (struct counter): New.
16478 (second_thread_of_pid_p, last_thread_of_process_p): New.
16479 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16480 multiple processes.
16481 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16482 processes. Remove process from process table.
16483 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16484 to multiple processes.
16485 (any_thread_of): New.
16486 (linux_detach): Add `pid' argument, and handle it. Remove process
16487 from processes table.
16488 (linux_join): Add `pid' argument. Handle it.
16489 (linux_thread_alive): Change unsighed long argument to ptid_t.
16490 Consider dead lwps as not being alive.
16491 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16492 threads we're not interested in.
16493 (same_lwp, find_lwp_pid): New.
16494 (linux_wait_for_lwp): Change `pid' argument's type from int to
16495 ptid_t. Adjust.
16496 (linux_wait_for_event): Rename to ...
16497 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16498 from int to ptid_t. Adjust.
16499 (linux_wait_for_event): New.
16500 (linux_wait_1): Add `ptid' argument. Change return type to
16501 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16502 that exit from the process table.
16503 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16504 Adjust.
16505 (mark_lwp_dead): New.
16506 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16507 stopping all threads, mark its main lwp as dead.
16508 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
16509 ptids.
16510 (fetch_register, usr_store_inferior_registers)
16511 (regsets_fetch_inferior_registers)
16512 (regsets_store_inferior_registers, linux_read_memory)
16513 (linux_write_memory): Inline `inferior_pid'.
16514 (linux_look_up_symbols): Adjust to use per-process
16515 `thread_db_active'.
16516 (linux_request_interrupt): Adjust to use ptids.
16517 (linux_read_auxv): Inline `inferior_pid'.
16518 (initialize_low): Don't reference thread_db_active.
16519 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16520 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16521 (ps_getpid): Return the pid of the current inferior.
16522 * thread-db.c (proc_handle, thread_agent): Delete.
16523 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16524 per-process data.
16525 (find_one_thread): Change argument type to ptid_t. Adjust to
16526 per-process data.
16527 (maybe_attach_thread): Adjust to per-process data and ptids.
16528 (thread_db_find_new_threads): Ditto.
16529 (thread_db_init): Ditto.
16530 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16531 processes table. Adjust to use ptids.
16532 (spu_kill, spu_detach): Adjust interface. Remove process from
16533 processes table.
16534 (spu_join, spu_thread_alive): Adjust interface.
16535 (spu_wait): Adjust interface. Remove process from processes
16536 table. Adjust to use ptids.
16537 * win32-low.c (current_inferior_tid): Delete.
16538 (current_inferior_ptid): New.
16539 (debug_event_ptid): New.
16540 (thread_rec): Take a ptid. Adjust.
16541 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16542 (child_delete_thread): Ditto.
16543 (do_initial_child_stuff): Add `attached' argument. Add process to
16544 processes table.
16545 (child_fetch_inferior_registers, child_store_inferior_registers):
16546 Adjust.
16547 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16548 (win32_attach): Pass 1 to do_initial_child_stuff.
16549 (win32_kill): Adjust interface. Remove process from processes
16550 table.
16551 (win32_detach): Ditto.
16552 (win32_join): Adjust interface.
16553 (win32_thread_alive): Take a ptid.
16554 (win32_resume): Adjust to use ptids.
16555 (get_child_debug_event): Ditto.
16556 (win32_wait): Adjust interface. Remove exiting process from
16557 processes table.
16558
16559 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16560
16561 Non-stop mode support.
16562
16563 * server.h (non_stop): Declare.
16564 (gdb_client_data, handler_func): Declare.
16565 (delete_file_handler, add_file_handler, start_event_loop):
16566 Declare.
16567 (handle_serial_event, handle_target_event, push_event)
16568 (putpkt_notif): Declare.
16569 * target.h (enum resume_kind): New.
16570 (struct thread_resume): Replace `step' field by `kind' field.
16571 (TARGET_WNOHANG): Define.
16572 (struct target_ops) <wait>: Add `options' argument.
16573 <supports_non_stop, async, start_non_stop>: New fields.
16574 (target_supports_non_stop, target_async): New.
16575 (start_non_stop): Declare.
16576 (mywait): Add `options' argument.
16577 * target.c (mywait): Add `options' argument. Print child exit
16578 notifications here.
16579 (start_non_stop): New.
16580 * server.c (non_stop, own_buf, mem_buf): New globals.
16581 (struct vstop_notif): New.
16582 (notif_queue): New global.
16583 (queue_stop_reply, push_event, discard_queued_stop_replies)
16584 (send_next_stop_reply): New.
16585 (start_inferior): Adjust to use resume_kind. Adjust to mywait
16586 interface changes.
16587 (attach_inferior): In non-stop mode, don't wait for the target
16588 here.
16589 (handle_general_set): Handle QNonStop.
16590 (handle_query): When handling qC, return the current general
16591 thread, instead of the first thread of the list.
16592 (handle_query): If the backend supports non-stop mode, include
16593 QNonStop+ in the qSupported query response.
16594 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
16595 and non-stop mode.
16596 (handle_v_attach, handle_v_run): Handle non-stop mode.
16597 (handle_v_stopped): New.
16598 (handle_v_requests): Report support for vCont;t. Handle vStopped.
16599 (myresume): Adjust to use resume_kind. Handle non-stop.
16600 (queue_stop_reply_callback): New.
16601 (handle_status): Handle non-stop mode.
16602 (main): Clear non_stop flag on reconnection. Use the event-loop.
16603 Refactor serial protocol handling from here ...
16604 (process_serial_event): ... to this new function. When GDB
16605 selects any thread, select one here. In non-stop mode, wait until
16606 GDB acks all pending events before exiting.
16607 (handle_serial_event, handle_target_event): New.
16608 * remote-utils.c (remote_open): Install remote_desc in the event
16609 loop.
16610 (remote_close): Remove remote_desc from the event loop.
16611 (putpkt_binary): Rename to...
16612 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
16613 (putpkt_binary): New as wrapper around putpkt_binary_1.
16614 (putpkt_notif): New.
16615 (prepare_resume_reply): In non-stop mode, don't change the
16616 general_thread.
16617 * event-loop.c: New.
16618 * Makefile.in (OBJ): Add event-loop.o.
16619 (event-loop.o): New rule.
16620
16621 * linux-low.h (pid_of): Moved here.
16622 (lwpid_of): New.
16623 (get_lwp_thread): Use lwpid_of.
16624 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
16625 * linux-low.c (pid_of): Delete.
16626 (inferior_pid): Use lwpid_of.
16627 (linux_event_pipe): New.
16628 (target_is_async_p): New.
16629 (delete_lwp): New.
16630 (handle_extended_wait): Use lwpid_of.
16631 (add_lwp): Don't set lwpid field.
16632 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
16633 (linux_kill_one_lwp): If killing a running lwp, stop it first.
16634 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
16635 (linux_detach_one_lwp): If detaching from a running lwp, stop it
16636 first. Adjust to linux_wait_for_event interface changes. Use
16637 lwpid_of.
16638 (linux_detach): Don't delete the main lwp here.
16639 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
16640 (status_pending_p): Don't consider explicitly suspended lwps.
16641 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
16642 pointer. Add OPTIONS argument. Change return type to int. Use
16643 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
16644 (linux_wait_for_event): Take an integer pid instead of a lwp_info
16645 pointer. Add status pointer argument. Return a pid instead of a
16646 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
16647 changes. In non-stop mode, don't switch to a random thread.
16648 (linux_wait): Rename to...
16649 (linux_wait_1): ... this. Add target_options argument, and handle
16650 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
16651 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
16652 clean exit and signal exit code. Don't stop all threads in
16653 non-stop mode. In all-stop mode, only stop all threads when
16654 reporting a stop to GDB. Handle explicit thread stop requests.
16655 (async_file_flush, async_file_mark): New.
16656 (linux_wait): New.
16657 (send_sigstop): Use lwpid_of.
16658 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
16659 interface changes. In non-stop mode, don't switch to a random
16660 thread.
16661 (linux_resume_one_lwp): Use lwpid_of.
16662 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
16663 (linux_resume_one_thread): ... this. Handle resume_stop. In
16664 non-stop mode, don't look for pending flag in all threads.
16665 (resume_status_pending_p): Don't consider explicitly suspended
16666 threads.
16667 (my_waitpid): Reimplement. Emulate __WALL.
16668 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16669 Use lwpid_of.
16670 (sigchld_handler, linux_supports_non_stop, linux_async)
16671 (linux_start_non_stop): New.
16672 (linux_target_ops): Register linux_supports_non_stop, linux_async
16673 and linux_start_non_stop.
16674 (initialize_low): Install SIGCHLD handler.
16675 * thread-db.c (thread_db_create_event, find_one_thread)
16676 (thread_db_get_tls_address): Use lwpid_of.
16677 * win32-low.c (win32_detach): Adjust to use resume_kind.
16678 (win32_wait): Add `options' argument.
16679 * spu-low.c (spu_resume): Adjust to use resume_kind.
16680 (spu_wait): Add `options' argument.
16681
16682 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16683
16684 Decouple target code from remote protocol.
16685
16686 * target.h (enum target_waitkind): New.
16687 (struct target_waitstatus): New.
16688 (struct target_ops) <wait>: Return an unsigned long. Take a
16689 target_waitstatus pointer instead of a char pointer.
16690 (mywait): Likewise.
16691 * target.c (mywait): Change prototype to return an unsigned long.
16692 Take a target_waitstatus pointer instead of a char pointer. Adjust.
16693 * server.h (thread_from_wait, old_thread_from_wait): Delete
16694 declarations.
16695 (prepare_resume_reply): Change prototype to take a
16696 target_waitstatus.
16697 * server.c (thread_from_wait, old_thread_from_wait): Delete.
16698 (last_status, last_ptid): New.
16699 (start_inferior): Remove "statusptr" argument. Adjust. Return a
16700 pid instead of a signal.
16701 (attach_inferior): Remove "status" and "signal" parameters.
16702 Adjust.
16703 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
16704 not as an address.
16705 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
16706 (handle_v_requests, myresume): Remove "status" and "signal"
16707 parameters. Adjust.
16708 (handle_status): New.
16709 (main): Delete local `status'. Adjust.
16710 * remote-utils.c: Include target.h.
16711 (prepare_resume_reply): Change prototype to take a
16712 target_waitstatus. Adjust.
16713
16714 * linux-low.c (linux_wait): Adjust to new target_ops->wait
16715 interface.
16716 * spu-low.c (spu_wait): Adjust.
16717 * win32-low.c (enum target_waitkind, struct target_waitstatus):
16718 Delete.
16719 (win32_wait): Adjust.
16720
16721 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16722
16723 * target.h (struct thread_resume): Delete leave_stopped member.
16724 (struct target_ops): Add a `n' argument to the `resume' callback.
16725 * server.c (start_inferior): Adjust.
16726 (handle_v_cont, myresume): Adjust.
16727 * linux-low.c (check_removed_breakpoint): Adjust to resume
16728 interface change, and to removed leave_stopped field.
16729 (resume_ptr): Delete.
16730 (struct thread_resume_array): New.
16731 (linux_set_resume_request): Add new `arg' parameter. Adjust to
16732 resume interface change.
16733 (linux_continue_one_thread, linux_queue_one_thread)
16734 (resume_status_pending_p): Check if the resume field is NULL
16735 instead of checking the leave_stopped member.
16736 (linux_resume): Adjust to the target resume interface change.
16737 * spu-low.c (spu_resume): Adjust to the target resume interface
16738 change.
16739 * win32-low.c (win32_detach, win32_resume): Ditto.
16740
16741 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16742
16743 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
16744 flag.
16745 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
16746 pending.
16747 (linux_continue_one_thread): Only preserve the stepping flag if
16748 there's a pending breakpoint.
16749
16750 2009-03-31 Pedro Alves <pedro@codesourcery.com>
16751
16752 * server.c (main): After the inferior having exited, call
16753 remote_close before exiting gdbserver.
16754
16755 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
16756
16757 Fix size of FPSCR in Power 7 processors.
16758 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
16759 (PPC_FEATURE_HAS_DFP): New #define.
16760 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
16761 size of the FPSCR.
16762
16763 2009-03-23 Pedro Alves <pedro@codesourcery.com>
16764
16765 * server.c (handle_query) Whitespace and formatting.
16766
16767 2009-03-22 Pedro Alves <pedro@codesourcery.com>
16768
16769 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
16770 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
16771 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
16772 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
16773 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
16774 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
16775 Makefile.in, configure.ac: Fix whitespace throughout.
16776 * configure: Regenerate.
16777
16778 2009-03-22 Pedro Alves <pedro@codesourcery.com>
16779
16780 * inferiors.c (find_inferior): Make it safe for the callback
16781 function to delete the currently iterated inferior.
16782
16783 2009-03-22 Pedro Alves <pedro@codesourcery.com>
16784
16785 * Makefile.in (linuw_low_h): Move higher.
16786 (thread-db.o): Depend on $(linux_low_h).
16787
16788 2009-03-17 Pedro Alves <pedro@codesourcery.com>
16789
16790 Rename "process" to "lwp" throughout.
16791
16792 * linux-low.c (all_processes): Rename to...
16793 (all_lwps): ... this.
16794 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
16795 (add_process): Rename to ...
16796 (add_lwp): ... this. Adjust.
16797 (linux_create_inferior): Adjust.
16798 (linux_attach_lwp): Adjust.
16799 (linux_attach): Adjust.
16800 (linux_kill_one_process): Rename to ...
16801 (linux_kill_one_lwp): ... this. Adjust.
16802 (linux_kill): Adjust.
16803 (linux_detach_one_process): Rename to ...
16804 (linux_detach_one_lwp): ... this. Adjust.
16805 (linux_detach): Adjust.
16806 (check_removed_breakpoint): Adjust.
16807 (status_pending_p): Adjust.
16808 (linux_wait_for_process): Rename to ...
16809 (linux_wait_for_lwp): ... this. Adjust.
16810 (linux_wait_for_event): Adjust.
16811 (send_sigstop): Adjust.
16812 (wait_for_sigstop): Adjust.
16813 (stop_all_processes): Rename to ...
16814 (stop_all_lwps): ... this.
16815 (linux_resume_one_process): Rename to ...
16816 (linux_resume_one_lwp): ... this. Adjust.
16817 (linux_set_resume_request, linux_continue_one_thread)
16818 (linux_queue_one_thread, resume_status_pending_p)
16819 (usr_store_inferior_registers, regsets_store_inferior_registers)
16820 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16821 Adjust.
16822 * linux-low.h (get_process): Rename to ...
16823 (get_lwp): ... this. Adjust.
16824 (get_thread_process): Rename to ...
16825 (get_thread_lwp): ... this. Adjust.
16826 (get_process_thread): Rename to ...
16827 (get_lwp_thread): ... this. Adjust.
16828 (struct process_info): Rename to ...
16829 (struct lwp_info): ... this.
16830 (all_processes): Rename to ...
16831 (all_lwps): ... this.
16832 * proc-service.c (ps_lgetregs): Adjust.
16833 * thread-db.c (thread_db_create_event, find_one_thread)
16834 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
16835
16836 2009-03-14 Pedro Alves <pedro@codesourcery.com>
16837
16838 * server.c (handle_query): Handle "qAttached".
16839
16840 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
16841
16842 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
16843 GPLv3, update license URL.
16844
16845 2009-03-01 Doug Evans <dje@google.com>
16846
16847 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
16848 (server_h): Add gdb_signals.h.
16849 (signals.o): Update.
16850 * server.h (target_signal_from_host,target_signal_to_host_p)
16851 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
16852
16853 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
16854
16855 * remote-utils.c (getpkt): Also generate remote-debug
16856 information if noack_mode is set.
16857
16858 2009-02-06 Pedro Alves <pedro@codesourcery.com>
16859
16860 * server.c (handle_query): Report qXfer:siginfo:read and
16861 qXfer:siginfo:write as supported and handle them.
16862 * target.h (struct target_ops) <qxfer_siginfo>: New field.
16863 * linux-low.c (linux_xfer_siginfo): New.
16864 (linux_target_ops): Set it.
16865
16866 2009-01-26 Pedro Alves <pedro@codesourcery.com>
16867
16868 * server.c (gdbserver_usage): Mention --remote-debug.
16869 (main): Accept '--remote-debug' switch.
16870
16871 2009-01-18 Doug Evans <dje@google.com>
16872
16873 * regcache.c (new_register_cache): No need to check result of xcalloc.
16874 * server.c (handle_search_memory): Back out calls to xmalloc,
16875 result is checked and error is returned to user upon failure.
16876 (handle_query): Ditto. Add more checks for result of malloc.
16877 (handle_v_cont): Check result of malloc, report error back to
16878 user upon failure.
16879 (handle_v_run): Ditto. Call freeargv.
16880 * server.h (freeargv): Declare.
16881 * utils.c (freeargv): New fn.
16882
16883 2009-01-15 Doug Evans <dje@google.com>
16884
16885 * gdbreplay.c (perror_with_name): Make arg const char *.
16886 * server.h (target_signal_to_name): Make return type const char *.
16887 * thread-db.c (thread_db_err_str): Make return type const char *.
16888 * utils.c (perror_with_name): Make arg const char *.
16889
16890 2009-01-14 Pedro Alves <pedro@codesourcery.com>
16891
16892 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
16893 when handling a EXIT_PROCESS_DEBUG_EVENT.
16894
16895 2009-01-06 Joel Brobecker <brobecker@adacore.com>
16896
16897 * gdbreplay.c (gdbreplay_version): Update copyright year.
16898 * server.c (gdbserver_version): Likewise.
16899
16900 2009-01-05 Doug Evans <dje@google.com>
16901
16902 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
16903 (handle_extended_wait): Improve comment.
16904
16905 2008-12-13 Doug Evans <dje@google.com>
16906
16907 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
16908 * server.h (ATTR_MALLOC): New macro.
16909 (xmalloc,xcalloc,xstrdup): Declare.
16910 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
16911 * inferiors.c: Ditto.
16912 * linux-low.c: Ditto.
16913 * mem-break.c: Ditto.
16914 * regcache.c: Ditto.
16915 * remote-utils.c: Ditto.
16916 * server.c: Ditto.
16917 * target.c: Ditto.
16918 * win32-low.c: Ditto.
16919
16920 2008-12-12 Doug Evans <dje@google.com>
16921
16922 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
16923 in debugging printf.
16924
16925 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
16926
16927 2008-12-09 Doug Evans <dje@google.com>
16928
16929 * linux-low.h (struct process_info): Delete member tid, unused.
16930 * thread-db.c (find_one_thread): Update.
16931 (maybe_attach_thread): Update.
16932
16933 2008-12-02 Pedro Alves <pedro@codesourcery.com>
16934
16935 * target.h (struct target_ops): Add qxfer_osdata member.
16936 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
16937 and dirent.h.
16938 (linux_qxfer_osdata): New functions.
16939 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
16940 callback.
16941 * server.c (handle_query): Handle "qXfer:osdata:read:".
16942 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
16943 (buffer_xml_printf): New functions.
16944 * server.h (struct buffer): New.
16945 (buffer_grow_str, buffer_grow_str0): New macros.
16946 (buffer_grow, buffer_free, buffer_init, buffer_finish)
16947 (buffer_xml_printf): Declare.
16948
16949 2008-11-24 Doug Evans <dje@google.com>
16950
16951 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
16952
16953 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
16954
16955 * server.c (handle_v_run): Always use the supplied argument list.
16956
16957 2008-11-19 Bob Wilson <bob.wilson@acm.org>
16958
16959 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
16960 (xtensa_regmap_table): Add entry for scompare1.
16961
16962 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
16963
16964 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
16965 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
16966 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
16967 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
16968 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
16969 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
16970 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
16971 XML target descriptions.
16972 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
16973 when inferior is running on an ISA 2.05 or later processor. Add
16974 special case to return offset for full 64-bit slot of FPSCR when
16975 in 32-bits.
16976
16977 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
16978
16979 * Makefile.in (SFILES, clean): Added sparc64 files.
16980 (reg-sparc64.o, reg-sparc64.c): New.
16981 * configure.srv (sparc*-*-linux*): New configuration.
16982 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
16983 syscall arguments for SPARC.
16984 (regsets_store_inferior_registers): Likewise.
16985 * linux-sparc-low.c: New file.
16986
16987 2008-10-21 Doug Evans <dje@google.com>
16988
16989 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
16990 (READLINE_DIR,READLINE_DEP): Delete.
16991 (INTERNAL_CFLAGS): Update.
16992 (LINTFLAGS): Update.
16993
16994 2008-10-10 Pedro Alves <pedro@codesourcery.com>
16995
16996 * server.c (handle_v_run): If GDB didn't specify an argv, use the
16997 whole argv from the last run, not just argv[0].
16998
16999 2008-09-08 Pedro Alves <pedro@codesourcery.com>
17000
17001 * regcache.c (new_register_cache): Return NULL if the register
17002 cache size isn't known yet.
17003 (free_register_cache): Avoid dereferencing a NULL regcache.
17004
17005 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17006
17007 * configure.srv: Merge MIPS and MIPS64.
17008
17009 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17010
17011 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17012
17013 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
17014
17015 * Makefile.in: Add required vsx dependencies.
17016
17017 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17018 Declare init_registers_powerpc_vsx32l.
17019 Declare init_registers_powerpc_vsx64l.
17020 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17021 (ppc_arch_setup): Check for VSX in hwcap.
17022 (ppc_fill_vsxregset): New function.
17023 (ppc_store_vsxregset): New function.
17024 Add new VSX entry in regset_info target_regsets.
17025
17026 * configure.srv: Add new VSX dependencies.
17027
17028 2008-08-12 Pedro Alves <pedro@codesourcery.com>
17029
17030 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17031 (remote_open): Set or clear transport_is_reliable.
17032 (putpkt_binary): Don't expect acks in noack mode.
17033 (getpkt): Don't send ack/nac in noack mode.
17034 * server.c (handle_general_set): Handle QStartNoAckMode.
17035 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17036 qSupported.
17037 (main): Reset noack_mode on every connection.
17038 * server.h (noack_mode): Declare.
17039
17040 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17041
17042 * Makefile.in (GDBREPLAY_OBS): New variable.
17043 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17044
17045 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17046 Daniel Jacobowitz <dan@codesourcery.com>
17047
17048 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17049 (usr_store_inferior_registers): Likewise.
17050 (regsets_store_inferior_registers): Likewise.
17051
17052 2008-07-31 Rolf Jansen <rj@surtec.com>
17053 Pedro Alves <pedro@codesourcery.com>
17054
17055 * configure.ac: Check for memmem declaration.
17056 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17057 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17058 (disable_packet_qfThreadInfo): Unconditionally compile.
17059 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
17060 * configure, config.in: Regenerate.
17061
17062 2008-07-28 Doug Kwan <dougkwan@google.com>
17063
17064 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17065 (linux_write_memory): Remove declaration of errno.
17066
17067 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17068
17069 * linux-low.c (handle_extended_wait): Do not use "status"
17070 variable uninitialized.
17071
17072 2008-07-07 Pedro Alves <pedro@codesourcery.com>
17073
17074 * server.c (handle_v_attach): Inhibit reporting dll changes.
17075
17076 2008-06-27 Pedro Alves <pedro@codesourcery.com>
17077
17078 * remote-utils.c (prepare_resume_reply): If requested, don't
17079 output "thread:TID" in the T stop reply.
17080
17081 * server.c (disable_packet_vCont, disable_packet_Tthread)
17082 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
17083 (handle_query): If requested, disable support for qC, qfThreadInfo
17084 and qsThreadInfo.
17085 (handle_v_requests): If requested, disable support for vCont.
17086 (gdbserver_show_disableable): New.
17087 (main): Handle --disable-packet and --disable-packet=LIST.
17088
17089 * server.h (disable_packet_vCont, disable_packet_Tthread)
17090 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17091
17092 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17093
17094 * server.c (gdbserver_usage): Mention --version.
17095
17096 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17097
17098 * Makefile.in (gdbreplay.o): New rule.
17099
17100 2008-06-06 Joseph Myers <joseph@codesourcery.com>
17101
17102 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17103 message, not gdbserver.
17104
17105 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
17106 Nathan Sidwell <nathan@codesourcery.com>
17107 Joseph Myers <joseph@codesourcery.com>
17108
17109 * acinclude.m4: Include ../../config/acx.m4.
17110 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
17111 * configure, config.in: Regenerate.
17112 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
17113 * server.c (gdbserver_version): Print PKGVERSION.
17114 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
17115 (main): Adjust gdbserver_usage calls.
17116 * gdbreplay.c (version, host_name): Add declarations.
17117 (gdbreplay_version, gdbreplay_usage): New.
17118 (main): Accept --version and --help options.
17119
17120 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17121
17122 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17123 (arm_breakpoint_at): Handle Thumb.
17124 (the_low_target): Add comment.
17125
17126 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17127
17128 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17129
17130 2008-05-09 Doug Evans <dje@google.com>
17131
17132 * server.h (decode_search_memory_packet): Declare.
17133 * remote-utils.c (decode_search_memory_packet): New fn.
17134 * server.c (handle_search_memory_1): New fn.
17135 (handle_search_memory): New fn.
17136 (handle_query): Process qSearch:memory packets.
17137
17138 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17139
17140 * regcache.c (registers_length): Remove.
17141 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
17142 full register packet.
17143 * regcache.h (registers_length): Remove prototype.
17144 * server.h (PBUFSIZ): Define to 16384.
17145
17146 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17147
17148 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
17149 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
17150 powerpc-64l.o, and powerpc-altivec64l.o.
17151 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
17152 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
17153 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
17154 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
17155 rs6000/power-linux.xml, and rs6000/power64-linux.xml
17156 to srv_xmlfiles.
17157
17158 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
17159 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
17160 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
17161 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
17162 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
17163 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
17164 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
17165 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
17166 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
17167 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
17168 (clean): Update.
17169
17170 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
17171 (init_registers_powerpc_32l): ... this new prototype.
17172 (init_registers_powerpc_32): Remove, replace by ...
17173 (init_registers_powerpc_altivec32l): ... this new prototype.
17174 (init_registers_powerpc_e500): Remove, replace by ...
17175 (init_registers_powerpc_e500l): ... this new prototype.
17176 (init_registers_ppc64): Remove, replace by ...
17177 (init_registers_powerpc_64l): ... this new prototype.
17178 (init_registers_powerpc_64): Remove, replace by ...
17179 (init_registers_powerpc_altivec64l): ... this new prototype.
17180 (ppc_num_regs): Set to 73.
17181 (PT_ORIG_R3, PT_TRAP): Define if necessary.
17182 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
17183 (ppc_cannot_store_register): Handle orig_r3 and trap.
17184 (ppc_arch_setup): Update init_registers_... calls.
17185 (ppc_fill_gregset): Handle orig_r3 and trap.
17186
17187 * inferiors.c (clear_inferiors): Reset current_inferior.
17188
17189 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17190
17191 * acinclude.m4: Add override.m4.
17192 * configure: Regenerate.
17193
17194 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17195
17196 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17197 initial call to init_register_ppc64.
17198
17199 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17200
17201 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17202 single powerpc*-*-linux* case.
17203 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17204
17205 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17206
17207 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
17208 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
17209 from reg_xmlfiles.
17210 * linux-ppc-low.c: Include <elf.h>.
17211 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
17212 (ppc_hwcap): New global variable.
17213 (ppc_regmap): Remove __SPE__ #ifdef sections.
17214 (ppc_regmap_e500): New global variable.
17215 (ppc_cannot_store_register): Update __SPE__ special case.
17216 (ppc_get_hwcap): New function.
17217 (ppc_arch_setup): Use it to determine whether inferior supports
17218 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
17219 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
17220 Do not access registers if target does not support AltiVec.
17221 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
17222 Do not access registers if target does not support SPE.
17223 (target_regsets): Unconditionally include AltiVec and SPE regsets.
17224
17225 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17226
17227 * linux-low.c (disabled_regsets, num_regsets): New.
17228 (use_regsets_p): Delete.
17229 (linux_wait_for_process): Clear disabled_regsets.
17230 (regsets_fetch_inferior_registers): Check and set it.
17231 (regsets_store_inferior_registers): Likewise.
17232 (linux_fetch_registers, linux_store_registers): Do not use
17233 use_regsets_p.
17234 (initialize_low): Allocate disabled_regsets.
17235
17236 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17237
17238 * Makefile.in (LIBOBJS): New.
17239 (OBS): Use LIBOBJS.
17240 (memmem.o): New rule.
17241 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
17242 * configure: Regenerated.
17243
17244 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17245
17246 * server.c (handle_query): Never return "unsupported" for
17247 qXfer:features:read queries.
17248
17249 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17250
17251 * server.c (get_features_xml): Fix inverted condition.
17252 (handle_query): Always support qXfer:feature:read.
17253
17254 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17255
17256 * server.c (wrapper_argv): New.
17257 (start_inferior): Handle wrapper_argv. If set, expect an extra
17258 trap.
17259 (gdbserver_usage): Document --wrapper.
17260 (main): Parse --wrapper.
17261
17262 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17263
17264 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
17265 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
17266 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
17267 (ppc_set_pc): Likewise.
17268 (ppc_arch_setup): New function.
17269 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
17270 of collect_register.
17271 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
17272
17273 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17274
17275 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
17276 instead of linux-ppc64-low.o.
17277 * linux-ppc64-low.c: Remove file.
17278 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
17279 (linux-ppc64-low.o): Remove rule.
17280
17281 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
17282 (init_registers_powerpc_64): Likewise.
17283 (ppc_regmap): Conditionally define depending on __powerpc64__.
17284 (ppc_cannot_store_register): Do not special-case "fpscr" when
17285 compiled on __powerpc64__.
17286 (ppc_collect_ptrace_register): New function.
17287 (ppc_supply_ptrace_register): New function.
17288 (ppc_breakpoint): Change type to "unsigned int".
17289 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
17290 (the_low_target): Conditionally provide initializers for the
17291 arch_setup member depending on __powerpc64__. Install
17292 collect_ptrace_register and supply_ptrace_register members.
17293
17294 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17295
17296 * regcache.h (gdbserver_xmltarget): Add extern declaration.
17297 * server.c (gdbserver_xmltarget): Define.
17298 (get_features_xml): Use it to replace "target.xml" and arch_string.
17299
17300 * configure.srv: Remove srv_xmltarget. Add XML files that were
17301 mentioned there to srv_xmlfiles instead. Remove conditional tests
17302 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
17303 srv_xmlfiles and srv_regobj to include all possible choices.
17304 * configure.ac (srv_xmltarget): Remove.
17305 (srv_xmlfiles): Do not add "target.xml".
17306 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
17307 checks for supplementary target information.
17308 * configure: Regenerate.
17309 * Makefile.in (XML_TARGET): Remove.
17310 (target.xml): Remove rule.
17311 (clean): Do not clean up target.xml.
17312 (.PRECIOUS): Do not mention target.xml.
17313
17314 * target.h (struct target_ops): Remove arch_string member.
17315 * linux-low.c (linux_arch_string): Remove.
17316 (linux_target_ops): Remove arch_string initializer.
17317 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17318 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17319 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17320 * spu-low.c (spu_arch_string): Remove.
17321 (spu_target_ops): Remove arch_string initializer.
17322 * win32-low.c (win32_arch_string): Remove.
17323 (win32_target_ops): Remove arch_string initializer.
17324 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17325 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
17326 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
17327
17328 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17329
17330 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
17331 by collect_ptrace_register and supply_ptrace_register hooks.
17332 * linux-low.c (fetch_register): Use supply_ptrace_register callback
17333 instead of checking for the_low_target.left_pad_xfer.
17334 (usr_store_inferior_registers): Use collect_ptrace_register callback
17335 instead of checking for the_low_target.left_pad_xfer.
17336
17337 * linux-s390-low.c (s390_collect_ptrace_register): New function.
17338 (s390_supply_ptrace_register): Likewise.
17339 (s390_fill_gregset): Call s390_collect_ptrace_register.
17340 (the_low_target): Update.
17341
17342 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17343 (ppc_supply_ptrace_register): Likewise.
17344 (the_low_target): Update.
17345
17346 * linux-i386-low.c (the_low_target): Update.
17347 * linux-x86-64-low.c (the_low_target): Update.
17348
17349 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17350
17351 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17352 reg-s390.o and reg-s390x.o.
17353
17354 * linux-low.c (new_inferior): New global variable.
17355 (linux_create_inferior, linux_attach): Set it.
17356 (linux_wait_for_process): Call the_low_target.arch_setup after the
17357 target has stopped for the first time.
17358 (initialize_low): Do not call the_low_target.arch_setup.
17359
17360 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
17361 (s390_set_pc): Likewise.
17362 (s390_arch_setup): New function.
17363 (the_low_target): Use s390_arch_setup as arch_setup routine.
17364
17365 * regcache.c (realloc_register_cache): New function.
17366 (set_register_cache): Call it for each existing regcache.
17367
17368 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17369
17370 * server.h (init_registers): Remove prototype.
17371
17372 * linux-low.h (struct linux_target_ops): Add arch_setup field.
17373 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
17374 instead of init_registers ().
17375 * linux-arm-low.c (init_registers_arm): Add prototype.
17376 (init_registers_arm_with_iwmmxt): Likewise.
17377 (the_low_target): Add initializer for arch_setup field.
17378 * linux-cris-low.c (init_registers_cris): Add prototype.
17379 (the_low_target): Add initializer for arch_setup field.
17380 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
17381 (the_low_target): Add initializer for arch_setup field.
17382 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
17383 (the_low_target): Add initializer for arch_setup field.
17384 * linux-ia64-low.c (init_registers_ia64): Add prototype.
17385 (the_low_target): Add initializer for arch_setup field.
17386 * linux-m32r-low.c (init_registers_m32r): Add prototype.
17387 (the_low_target): Add initializer for arch_setup field.
17388 * linux-m68k-low.c (init_registers_m68k): Add prototype.
17389 (the_low_target): Add initializer for arch_setup field.
17390 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
17391 (init_registers_mips64_linux): Likewise.
17392 (the_low_target): Add initializer for arch_setup field.
17393 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17394 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17395 (the_low_target): Add initializer for arch_setup field.
17396 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17397 (init_registers_powerpc_64): Likewise.
17398 (the_low_target): Add initializer for arch_setup field.
17399 * linux-s390-low.c (init_registers_s390): Add prototype.
17400 (init_registers_s390x): Likewise.
17401 (the_low_target): Add initializer for arch_setup field.
17402 * linux-sh-low.c (init_registers_sh): Add prototype.
17403 (the_low_target): Add initializer for arch_setup field.
17404 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17405 (the_low_target): Add initializer for arch_setup field.
17406 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17407 (the_low_target): Add initializer for arch_setup field.
17408
17409 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17410 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17411 instead of init_registers ().
17412 * win32-arm-low.c (init_registers_arm): Add prototype.
17413 (the_low_target): Add initializer for arch_setup field.
17414 * win32-i386-low.c (init_registers_i386): Add prototype.
17415 (the_low_target): Add initializer for arch_setup field.
17416
17417 * spu-low.c (init_registers_spu): Add prototype.
17418 (initialize_low): Call initialie_registers_spu () instead of
17419 initialize_registers ().
17420
17421 2008-02-19 Pedro Alves <pedro@codesourcery.com>
17422
17423 * server.c (handle_v_requests): When handling the vRun and vAttach
17424 packets, if already debugging a process, don't kill it. Return an
17425 error instead.
17426
17427 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17428
17429 * server.c (handle_query): Correct length check.
17430
17431 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17432
17433 * win32-low.c (do_initial_child_stuff): Add process handle
17434 parameter. Set current_process_handle and current_process_id from the
17435 parameters. Clear globals.
17436 (win32_create_inferior): Don't set current_process_handle and
17437 current_process_id here. Instead pass them on the call to
17438 do_initial_child_stuff.
17439 (win32_attach): Likewise.
17440 (win32_clear_inferiors): New.
17441 (win32_kill): Don't close the current process handle or the
17442 current thread handle here. Instead call win32_clear_inferiors.
17443 (win32_detach): Don't open a new handle to the process. Call
17444 win32_clear_inferiors.
17445 (win32_join): Don't rely on current_process_handle; open a new
17446 handle using the process id.
17447 (win32_wait): Call win32_clear_inferiors when the inferior process
17448 has exited.
17449
17450 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17451
17452 * server.c (monitor_show_help): Add "exit".
17453
17454 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17455
17456 * Makefile.in (SFILES): Add linux-xtensa-low.c.
17457 (clean): Add reg-xtensa.c.
17458 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
17459 * configure.srv (xtensa*-*-linux*) New target.
17460 * linux-xtensa-low.c: New.
17461 * xtensa-xtregs.c: New.
17462
17463 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17464
17465 * hostio.c: Don't include errno.h.
17466 (errno_to_fileio_errno): Move to hostio-errno.
17467 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17468 error number outputting to the target->hostio_last_error callback.
17469 (hostio_packet_error): Use FILEIO_EINVAL directly.
17470 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17471 calls to hostio_error.
17472 * hostio-errno.c: New.
17473 * server.h (hostio_last_error_from_errno): Declare.
17474 * target.h (target_ops): Add hostio_last_error member.
17475 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17476 as hostio_last_error handler.
17477 * spu-low.c (spu_target_ops): Likewise.
17478 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17479 (wince_hostio_last_error): New functions.
17480 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17481 as hostio_last_error handler.
17482 (win32_target_ops) [!_WIN32_WCE]: Register
17483 hostio_last_error_from_errno as hostio_last_error handler.
17484 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17485 (hostio-errno.o): New rule.
17486 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17487 * configure.srv (srv_hostio_err_objs): New variable. Default to
17488 hostio-errno.o.
17489 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17490 * configure: Regenerate.
17491
17492 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17493
17494 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17495 (linux_kill, linux_detach): Clean up the process list.
17496 * remote-utils.c (remote_open): Improve port number parsing.
17497 (putpkt_binary, input_interrupt): Only send interrupts if the target
17498 is running.
17499 * server.c (extended_protocol): Make static.
17500 (attached): Define earlier.
17501 (exit_requested, response_needed, program_argv): New variables.
17502 (target_running): New.
17503 (start_inferior): Clear attached here.
17504 (attach_inferior): Set attached here.
17505 (require_running): Define.
17506 (handle_query): Use require_running and target_running. Implement
17507 "monitor exit".
17508 (handle_v_attach, handle_v_run): New.
17509 (handle_v_requests): Use require_running. Handle vAttach and vRun.
17510 (gdbserver_usage): Update.
17511 (main): Redo argument parsing. Handle --debug and --multi. Handle
17512 --attach along with other options or after the port. Save
17513 program_argv. Support no initial program. Resynchronize
17514 communication with GDB after an error. Handle "monitor exit".
17515 Use require_running and target_running. Always allow the extended
17516 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
17517 restart in extended mode.
17518 * README: Refer to the GDB manual. Update --attach usage.
17519
17520 2007-12-20 Andreas Schwab <schwab@suse.de>
17521
17522 * linux-low.c (STACK_SIZE): Define.
17523 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17524 (linux_test_for_tracefork): Likewise.
17525
17526 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17527
17528 * linux-low.c (linux_wait_for_event): Update messages. Do not
17529 reinsert auto-delete breakpoints.
17530 * mem-break.c (struct breakpoint): Change return type of handler to
17531 int.
17532 (set_breakpoint_at): Update handler type.
17533 (reinsert_breakpoint_handler): Return 1 instead of calling
17534 delete_breakpoint.
17535 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17536 setting a new one.
17537 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17538 * mem-break.h (set_breakpoint_at): Update handler type.
17539 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17540 * win32-low.c (auto_delete_breakpoint): New.
17541 (get_child_debug_event): Use it.
17542
17543 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17544
17545 * configure.ac: Check for pread and pwrite.
17546 * hostio.c (handle_pread): Fall back to lseek and read.
17547 (handle_pwrite): Fall back to lseek and write.
17548 * config.in, configure: Regenerated.
17549
17550 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17551
17552 * server.c (myresume): Add own_buf argument.
17553 (main): Update calls.
17554
17555 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17556
17557 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17558 * remote-utils.c (remote_open): Do not call disable_async_io.
17559 (block_async_io): Delete.
17560 (unblock_async_io): Make static.
17561 (initialize_async_io): New.
17562 * server.c (handle_v_cont): Handle async I/O here.
17563 (myresume): Likewise. Move other common resume tasks here...
17564 (main): ... from here. Call initialize_async_io. Disable async
17565 I/O before the main loop.
17566 * server.h (initialize_async_io): Declare.
17567 (block_async_io, unblock_async_io): Delete prototypes.
17568 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17569
17570 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17571
17572 * remote-utils.c (readchar): Allow binary data in received messages.
17573
17574 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17575
17576 * win32-low.c (attaching): New global.
17577 (win32_create_inferior): Clear the `attaching' global.
17578 (win32_attach): Set the `attaching' global.
17579 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
17580 attaching. Only set a breakpoint at the entry point if not
17581 attaching.
17582
17583 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17584
17585 * server.c (main): Don't report dll events on the initial
17586 connection on attaches.
17587
17588 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17589
17590 * server.c (main): Relax numerical bases supported for the pid of
17591 the --attach command line argument.
17592
17593 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17594
17595 * win32-low.c (win32_attach): Call OpenProcess before
17596 DebugActiveProcess, not after. Add last error output to error
17597 call.
17598
17599 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17600
17601 * win32-low.c (win32_get_thread_context)
17602 (win32_set_thread_context): New functions.
17603 (thread_rec): Use win32_get_thread_context.
17604 (continue_one_thread, win32_resume): Use win32_set_thread_context.
17605 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
17606 field.
17607
17608 2007-12-03 Leo Zayas
17609 Pedro Alves <pedro_alves@portugalmail.pt>
17610
17611 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
17612 global variables.
17613 (child_add_thread): Minor cleanup.
17614 (child_continue): Resume artificially suspended threads before
17615 calling ContinueDebugEvent.
17616 (suspend_one_thread): New.
17617 (fake_breakpoint_event): New.
17618 (get_child_debug_event): Change return type to int. Check here if
17619 gdb sent an interrupt request. If a soft interrupt was requested,
17620 fake a breakpoint event. Return 0 if there is no event to handle,
17621 and 1 otherwise.
17622 (win32_wait): Don't check here if gdb sent an interrupt request.
17623 Ensure there is a valid event to handle.
17624 (win32_request_interrupt): Add soft interruption method as last
17625 resort.
17626
17627 2007-12-03 Leo Zayas
17628 Pedro Alves <pedro_alves@portugalmail.pt>
17629
17630 * win32-low.h (win32_thread_info): Add descriptions to the
17631 structure members. Replace `suspend_count' counter by a
17632 `suspended' flag.
17633 * win32-low.c (thread_rec): Update condition of when to get the
17634 context from the inferior. Rely on ContextFlags being set if it
17635 has already been retrieved. Only suspend the inferior thread if
17636 we haven't already. Warn if that fails.
17637 (continue_one_thread): s/suspend_count/suspended/. Only call
17638 ResumeThread once. Warn if that fails.
17639
17640 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17641
17642 * win32-low.c (win32_wait): Don't read from the inferior when it
17643 has already exited.
17644
17645 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17646
17647 * Makefile.in (win32_low_h): New variable.
17648 (win32-low.o): Add dependency on $(win32_low_h).
17649 (win32-arm-low.o, win32-i386-low.o): New rules.
17650
17651 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17652
17653 * hostio.c: Correct copyright year.
17654
17655 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17656
17657 * Makefile.in (OBS): Add hostio.o.
17658 (hostio.o): New rule.
17659 * server.h (handle_vFile): Declare.
17660 * hostio.c: New file.
17661 * server.c (handle_v_requests): Take packet_len and new_packet_len
17662 for binary packets. Call handle_vFile.
17663 (main): Update call to handle_v_requests.
17664
17665 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
17666
17667 * linux-low.c: Include <sched.h>.
17668
17669 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
17670
17671 * linux-low.c (linux_tracefork_grandchild): New.
17672 (linux_tracefork_child): Use clone.
17673 (linux_test_for_tracefork): Use clone; allocate and free a stack.
17674
17675 2007-10-31 Joel Brobecker <brobecker@adacore.com>
17676
17677 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
17678
17679 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
17680
17681 * linux-low.c (handle_extended_wait): Handle unexpected signals.
17682
17683 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
17684
17685 * inferiors.c (change_inferior_id): Delete.
17686 (add_pid_to_list, pull_pid_from_list): New.
17687 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
17688 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
17689 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
17690 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
17691 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
17692 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
17693 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
17694 (using_threads): Always set to 1.
17695 (handle_extended_wait): New.
17696 (add_process): Do not set TID.
17697 (linux_create_inferior): Set must_set_ptrace_flags.
17698 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
17699 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
17700 (linux_thread_alive): Rename TID argument to LWPID.
17701 (linux_wait_for_process): Handle unknown processes. Do not use TID.
17702 (linux_wait_for_event): Do not use TID or check using_threads. Update
17703 call to dead_thread_notify. Call handle_extended_wait.
17704 (linux_create_inferior): Use PTRACE_SETOPTIONS.
17705 (send_sigstop): Delete sigstop_sent.
17706 (wait_for_sigstop): Avoid TID.
17707 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
17708 (linux_test_for_tracefork): New.
17709 (linux_lookup_signals): Use thread_db_active and
17710 linux_supports_tracefork_flag.
17711 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
17712 * linux-low.h (get_process_thread): Avoid TID.
17713 (struct process_ifo): Move thread_known and tid to the end. Remove
17714 sigstop_sent.
17715 (linux_attach_lwp, thread_db_init): Update prototypes.
17716 * server.h (change_inferior_id): Delete prototype.
17717 (add_pid_to_list, pull_pid_from_list): New prototypes.
17718 * thread-db.c (thread_db_use_events): New.
17719 (find_first_thread): Rename to...
17720 (find_one_thread): ...this. Update callers and messages. Do not
17721 call fatal. Check thread_db_use_events. Do not call
17722 change_inferior_id or new_thread_notify.
17723 (maybe_attach_thread): Update. Do not call new_thread_notify.
17724 (thread_db_init): Set thread_db_use_events. Check use_events.
17725 * utils.c (fatal, warning): Correct message prefix.
17726
17727 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
17728
17729 * Makefile.in (clean): Remove new files.
17730 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
17731 (powerpc-64.o, powerpc-64.c): New rules.
17732 * configure.srv: Use alternate register sets for powerpc64-*-linux*
17733 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
17734 with SPE.
17735 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
17736 SPE targets.
17737 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
17738 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
17739 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
17740 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
17741 (target_regsets): Add AltiVec and SPE register sets.
17742 * configure.ac: Check for AltiVec and SPE.
17743 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
17744 (ppc_fill_vrregset, ppc_store_vrregset): New.
17745 (target_regsets): Add AltiVec register set.
17746 * configure: Regenerated.
17747
17748 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
17749
17750 * linux-low.c (O_LARGEFILE): Define.
17751 (linux_read_memory): Use /proc/PID/mem.
17752 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
17753 * configure, config.in: Regenerated.
17754
17755 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17756
17757 * linux-low.c (linux_wait_for_event): Do not pass signals while
17758 single-stepping.
17759
17760 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17761
17762 * win32-low.c (create_process): New.
17763 (win32_create_inferior): Use create_process instead of
17764 CreateProcess. If create_process failed retry appending an ".exe"
17765 suffix. Store the GetLastError result immediatelly after
17766 create_process calls and use it on the call to error.
17767
17768 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17769
17770 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
17771
17772 2007-08-23 Joel Brobecker <brobecker@adacore.com>
17773
17774 * configure.ac: Switch license to GPLv3.
17775
17776 2007-08-01 Michael Snyder <msnyder@access-company.com>
17777
17778 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
17779
17780 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
17781
17782 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
17783 typedef.
17784 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
17785 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
17786 CloseToolhelp32Snapshot.
17787 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
17788 CloseToolhelp32Snapshot.
17789
17790 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
17791
17792 * server.c (main): Check for inferior exit before main loop.
17793
17794 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
17795
17796 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
17797 instead of on tmp_desc.
17798
17799 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
17800 Daniel Jacobowitz <dan@codesourcery.com>
17801
17802 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
17803 (add_thread): Minor cleanups.
17804 (clear_inferiors): Move lower in the file. Clear the DLL
17805 list.
17806 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
17807 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
17808 (xml_escape_text): New.
17809 * server.c (handle_query): Handle qXfer:libraries:read. Report it
17810 for qSupported.
17811 (handle_v_cont): Report errors.
17812 (gdbserver_version): Update.
17813 (main): Correct size of own_buf. Do not report initial DLL events.
17814 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
17815 (unloaded_dll, xml_escape_text): New.
17816 * win32-low.c (enum target_waitkind): Update comments.
17817 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
17818 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
17819 (win32_EnumProcessModules, win32_GetModuleInformation)
17820 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
17821 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
17822 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
17823 (win32_Module32First, win32_Module32Next, load_toolhelp)
17824 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
17825 (get_child_debug_event): Handle DLL events.
17826 (win32_wait): Likewise.
17827
17828 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17829
17830 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
17831 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
17832
17833 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17834
17835 * win32-low.c (handle_output_debug_string): Ignore event if not
17836 waiting.
17837
17838 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17839
17840 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
17841
17842 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
17843
17844 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
17845
17846 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
17847
17848 * inferiors.c (change_inferior_id): Add comment.
17849 * linux-low.c (check_removed_breakpoint): Add an early
17850 prototype. Improve debug output.
17851 (linux_attach): Doc update.
17852 (linux_detach_one_process, linux_detach): Clean up before releasing
17853 each process.
17854 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
17855 * linux-low.h (struct process_info): Doc improvement.
17856 * mem-break.c (delete_all_breakpoints): New.
17857 * mem-break.h (delete_all_breakpoints): New prototype.
17858 * thread-db.c (find_first_thread): New.
17859 (thread_db_create_event): Call it instead of
17860 thread_db_find_new_threads. Clean up unused variables.
17861 (maybe_attach_thread): Remove first thread handling.
17862 (thread_db_find_new_threads): Use find_first_thread.
17863 (thread_db_get_tls_address): Likewise.
17864
17865 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
17866
17867 * thread-db.c (thread_db_find_new_threads): Add prototype.
17868 (thread_db_create_event): Check for the main thread before adding
17869 a new thread.
17870 (maybe_attach_thread): Only enable event reporting if TID == 0.
17871 (thread_db_get_tls_address): Check for new threads.
17872
17873 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
17874
17875 * linux-low.c (linux_create_inferior): Try execv before execvp.
17876 * spu-low.c (spu_create_inferior): Likewise.
17877
17878 2007-06-13 Mike Frysinger <vapier@gentoo.org>
17879
17880 * linux-low.c (linux_create_inferior): Change execv to execvp.
17881 * spu-low.c (spu_create_inferior): Likewies.
17882
17883 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
17884
17885 * Makefile.in (clean): Clean new files instead of deleted ones.
17886 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
17887 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
17888 rules.
17889 * configure.srv: Specify XML files and new regformats for MIPS and
17890 MIPS64 GNU/Linux.
17891 * linux-mips-low.c (mips_num_regs): Set to only used registers.
17892 (mips_regmap): Do not fetch $0. Remove unused registers. Add
17893 an entry for the restart register.
17894 (mips_cannot_fetch_register, mips_cannot_store_register)
17895 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
17896 register names to match the XML descriptions.
17897 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
17898 restart register instead of $0.
17899
17900 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17901 Markus Deuling <deuling@de.ibm.com>
17902
17903 * remote-utils.c (decode_xfer_write): New function.
17904 * server.h (decode_xfer_write): Add prototype.
17905 * server.c (handle_query): Add PACKET_LEN argument. Support
17906 qXfer:spu:read and qXfer:spu:write packets.
17907 (main): Pass packet_len to handle_query.
17908 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
17909 * target.h (target_ops): Add qxfer_spu.
17910
17911 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17912
17913 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
17914 accessing non-seekable spufs files.
17915
17916 2007-05-16 Markus Deuling <deuling@de.ibm.com>
17917
17918 * server.c (handle_query): Add reply for qC packet.
17919
17920 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17921 Leo Zayas <lerele@champenstudios@com>
17922
17923 * server.h (check_remote_input_interrupt_request): New function.
17924 * remote_utils.c (INVALID_DESCRIPTOR): New define.
17925 (remote_desc): Initialize with INVALID_DESCRIPTOR.
17926 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
17927 (check_remote_input_interrupt_request): New function.
17928 * server.h (check_remote_input_interrupt_request): Declare.
17929 * win32-low.c (winapi_DebugBreakProcess,
17930 winapi_GenerateConsoleCtrlEvent): New typedefs.
17931 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
17932 to 250 ms.
17933 (win32_wait): Check for remote interrupt request
17934 with check_remote_input_interrupt_request.
17935 (win32_request_interrupt): New function.
17936 (win32_target_op): Set request_interrupt to win32_request_interrupt.
17937
17938 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17939
17940 * win32-low.c (debug_registers_changed,
17941 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
17942 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
17943 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
17944 (thread_rec): Get context using the low target.
17945 (child_add_thread): Call thread_added on the low target,
17946 which does the same thing.
17947 (regptr): Delete.
17948 (do_initial_child_stuff): Remove debug registers references.
17949 Set context using the low target. Resume threads after
17950 setting the contexts.
17951 (child_continue): Remove dead variable. Remove debug
17952 registers references.
17953 (child_fetch_inferior_registers): Go through the low target.
17954 (do_child_store_inferior_registers): Remove.
17955 (child_store_inferior_registers): Go through the low target.
17956 (win32_resume): Remove debug registers references.
17957 Set context using the low target.
17958 (handle_exception): Change return type to void. Don't record
17959 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
17960 first chance exception.
17961 (get_child_debug_event): Change return type to void. Remove
17962 goto loop. Always return after waiting for debug event.
17963 (win32_wait): Convert to switch statement. Handle spurious
17964 events.
17965
17966 * win32-i386-low.c (debug_registers_changed,
17967 debug_registers_used): New.
17968 (initial_stuff): Rename to ...
17969 (i386_initial_stuff): ... this. Clear debug registers
17970 state variables.
17971 (store_debug_registers): Delete.
17972 (i386_get_thread_context): New.
17973 (load_debug_registers): Delete.
17974 (i386_set_thread_context): New.
17975 (i386_thread_added): New.
17976 (single_step): Rename to ...
17977 (i386_single_step): ... this.
17978 (do_fetch_inferior_registers): Rename to ...
17979 (i386_fetch_inferior_register): ... this.
17980 (i386_store_inferior_register): New.
17981 (the_low_target): Adapt to new interface.
17982
17983 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
17984 (arm_get_thread_context): New.
17985 (arm_set_thread_context): New.
17986 (regptr): New.
17987 (do_fetch_inferior_registers): Rename to ...
17988 (arm_fetch_inferior_register): ... this.
17989 (arm_store_inferior_register): New.
17990 (arm_wince_breakpoint): Reimplement as unsigned long.
17991 (arm_wince_breakpoint_len): Define.
17992 (the_low_target): Adapt to new interface.
17993
17994 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
17995 load_debug_registers. Add get_thread_context, set_thread_context,
17996 thread_added and store_inferior_register. Rename
17997 fetch_inferior_registers to fetch_inferior_register.
17998 (regptr): Remove declaration.
17999
18000 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18001
18002 * linux-low.c (linux_detach): Change return type to int. Return 0.
18003 * spu-low.c (spu_detach): Likewise.
18004
18005 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18006
18007 * target.h (target_ops): Change return type of detach to int.
18008 Add join.
18009 (join_inferior): New.
18010 * server.c (main): Don't skip detach support on mingw32.
18011 If the inferior doesn't support detaching return error.
18012 Call join_inferior instead of using waitpid.
18013 * linux-low.c (linux_join): New.
18014 (linux_target_op): Add linux_join.
18015 * spu-low.c (spu_join): New.
18016 (spu_target_ops): Add spu_join.
18017 * win32-low.c (win32_detach): Adapt to new interface.
18018 Reopen current_process_handle before detaching. Issue a child
18019 resume before detaching.
18020 (win32_join): New.
18021 (win32_target_op): Add win32_join.
18022
18023 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18024
18025 * win32-low.c (win32-attach): Fix return value.
18026 * target.h (target_ops): Describe ATTACH return values.
18027
18028 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18029
18030 * win32-low.c (GETPROCADDRESS): Define.
18031 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18032 (winapi_DebugSetProcessKillOnExit): Likewise.
18033 (win32_create_inferior): Force usage of ansi CreateProcessA.
18034 (win32_attach): Use GETPROCADDRESS.
18035 (win32_detach): Likewise.
18036
18037 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18038
18039 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18040
18041 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18042
18043 * win32-low.c: Commit leftover changes from 2007-03-29.
18044
18045 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18046
18047 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18048 fields short instead of int. Add explicit padding.
18049 (i387_cache_to_fsave): Remove unnecessary casts.
18050 (i387_fsave_to_cache): Doc fix.
18051 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18052
18053 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18054
18055 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18056 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18057
18058 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18059
18060 * configure.srv (arm*-*-mingw32ce*): Move near the other
18061 arm targets.
18062
18063 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18064
18065 * configure.ac: Add errno checking.
18066 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
18067 sys/file.h and malloc.h.
18068 (AC_CHECK_DECLS): Add perror.
18069 (srv_mingwce): Handle.
18070 * configure.srv (i[34567]86-*-cygwin*): Add
18071 win32-i386-low.o to srv_tgtobj.
18072 (i[34567]86-*-mingw*): Likewise.
18073 (arm*-*-mingw32ce*): Add case.
18074 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18075 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
18076 [__MINGW32CE__] (strerror): New function.
18077 [__MINGW32CE__] (errno): Define to GetLastError.
18078 [__MINGW32CE__] (COUNTOF): New macro.
18079 (remote_open): Remove extra close call.
18080 * mem-break.c (delete_breakpoint_at): New function.
18081 * mem-break.h (delete_breakpoint_at): Declare.
18082 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18083 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
18084 [USE_WIN32API] (read, write): Add char* casts.
18085 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
18086 * server.h: Include wincecompat.h on Windows CE.
18087 [HAVE_ERRNO_H]: Check.
18088 (perror): Declare if not declared.
18089 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
18090 (perror_with_name): Remove errno declaration.
18091 * wincecompat.h: New.
18092 * wincecompat.c: New.
18093 * win32-low.h: New.
18094 * win32-arm-low.c: New.
18095 * win32-i386-low.c: New.
18096 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
18097 (OUTMSG2): Make it safe.
18098 (_T): New macro.
18099 (COUNTOF): New macro.
18100 (NUM_REGS): Get it from the low target.
18101 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
18102 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
18103 (thread_rec): Let low target handle debug registers.
18104 (child_add_thread): Likewise.
18105 (child_init_thread_list): Likewise.
18106 (continue_one_thread): Likewise.
18107 (regptr): New.
18108 (do_child_fetch_inferior_registers): Move to ...
18109 * win32-i386-low.c: ... here, and rename to ...
18110 (do_fetch_inferior_registers): ... this.
18111 * win32-low.c (child_fetch_inferior_registers):
18112 Go through the low target.
18113 (do_child_store_inferior_registers): Use regptr.
18114 (strwinerror): New function.
18115 (win32_create_inferior): Handle Windows CE.
18116 Use strwinerror instead of strerror on Windows error
18117 codes. Add program to the error output.
18118 Don't close the main thread handle on Windows CE.
18119 (win32_attach): Use coredll.dll on Windows CE.
18120 (win32_kill): Close current process and current
18121 thread handles.
18122 (win32_detach): Use coredll.dll on Windows CE.
18123 (win32_resume): Let low target handle debug registers, and
18124 step request.
18125 (handle_exception): Add/Remove initial breakpoint. Avoid
18126 non-existant WSTOPSIG on Windows CE.
18127 (win32_read_inferior_memory): Cast to remove warning.
18128 (win32_arch_string): Go through the low target.
18129 (initialize_low): Call set_breakpoint_data with the low
18130 target's breakpoint.
18131 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
18132 FOP_REGNUM, mappings): Move to ...
18133 * win32-i386-low.c: ... here.
18134 * win32-low.c (win32_thread_info): Move to ...
18135 * win32-low.h: ... here.
18136 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
18137 win32-arm-low.c and wincecompat.c.
18138 (all:): Add $EXEEXT.
18139 (install-only:): Likewise.
18140 (gdbserver:): Likewise.
18141 (gdbreplay:): Likewise.
18142 * config.in: Regenerate.
18143 * configure: Regenerate.
18144
18145 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18146
18147 * win32-low.c: Rename typedef thread_info to
18148 win32_thread_info throughout.
18149
18150 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18151
18152 * win32-i386-low.c: Rename to ...
18153 * win32-low.c: ... this.
18154 * configure.srv: Replace win32-i386-low.o with win32-low.o.
18155 * Makefile.in: Likewise.
18156
18157 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18158
18159 * remote-utils.c (monitor_output): Constify msg parameter.
18160 * server.h (monitor_output): Likewise.
18161 * win32-i386-low.c (handle_output_debug_string): New.
18162 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
18163 handle_output_debug_string.
18164 (get_child_debug_event): Likewise.
18165
18166 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18167
18168 * server.c (main): Correct strtoul check.
18169
18170 2007-03-27 Jon Ringle <jon@ringle.org>
18171
18172 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18173
18174 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18175
18176 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18177
18178 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18179
18180 * terminal.h: Check HAVE_SGTTY_H.
18181
18182 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
18183
18184 * remote-utils.c (remote_open): Print out the assigned port number.
18185
18186 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18187
18188 * remote-utils.c (monitor_output): New function.
18189 * server.c (debug_threads): Define here.
18190 (monitor_show_help): New function.
18191 (handle_query): Handle qRcmd.
18192 (main): Do not handle 'd' packet.
18193 * server.h (debug_threads, remote_debug, monitor_output): Declare.
18194 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
18195 of debug_threads.
18196
18197 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18198
18199 * Makefile.in (EXEEXT): New.
18200 (clean): Use $(EXEEXT).
18201
18202 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18203
18204 * target.h (target_ops): Rename send_signal to request_interrupt,
18205 and remove enum target_signal parameter.
18206 * linux-low.c (linux_request_interrupt): Rename from
18207 linux_send_signal, and always send SIGINT.
18208 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
18209 and always send SIGINT.
18210 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
18211 of send_signal.
18212 (input_interrupt): Likewise.
18213
18214 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18215
18216 * server.c (get_features_xml): Check if target implemented
18217 arch_string.
18218 * win32-i386-low.c (win32_arch_string): New.
18219 (win32_target_ops): Add win32_arch_string as arch_string member.
18220
18221 2007-02-22 Markus Deuling <deuling@de.ibm.com>
18222
18223 * spu-low.c (spu_arch_string): New.
18224 (spu_target_ops): Add spu_arch_string.
18225
18226 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18227
18228 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18229 * configure.ac: Do not check for terminal.h.
18230 * configure, config.in: Regenerated.
18231
18232 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18233
18234 * Makefile.in (OBS): Add $(XML_BUILTIN).
18235 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18236 (clean): Update.
18237 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
18238 (arm-with-iwmmxt.c): New.
18239 * config.in, configure: Regenerate.
18240 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
18241 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
18242 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
18243 (arm*-*-linux*): Add iWMMXt and regset support.
18244 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
18245 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
18246 (arm_store_wmmxregset, target_regsets): New.
18247 * server.c (get_features_xml): Take annex argument. Check builtin
18248 XML documents.
18249 (handle_query): Handle multiple annexes.
18250
18251 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18252
18253 * remote-utils.c [USE_WIN32API] (read, write): Define.
18254 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18255 write.
18256
18257 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18258
18259 * linux-i386-low.c (the_low_target): Set arch_string.
18260 * linux-x86-64-low.c (the_low_target): Likewise.
18261 * linux-low.c (linux_arch_string): New.
18262 (linux_target_ops): Add it.
18263 * linux-low.h (struct linux_target_ops): Add arch_string.
18264 * server.c (write_qxfer_response): Use const void * for DATA.
18265 (get_features_xml): New.
18266 (handle_query): Handle qXfer:features:read. Report it for qSupported.
18267 * target.h (struct target_ops): Add arch_string method.
18268
18269 2007-01-03 Denis Pilat <denis.pilat@st.com>
18270 Daniel Jacobowitz <dan@codesourcery.com>
18271
18272 * linux-low.c (linux_kill): Handle being called with no threads.
18273 * win32-i386-low.c (win32_kill): Likewise.
18274 (get_child_debug_event): Clear current_process_handle.
18275
18276 2006-12-30 Denis PILAT <denis.pilat@st.com>
18277 Daniel Jacobowitz <dan@codesourcery.com>
18278
18279 * remote-utils.c (remote_open): Check the type of specified
18280 serial port devices before opening them.
18281 * server.c (main): Kill the inferior if an error occurs during
18282 the first remote_open.
18283
18284 2006-12-05 Markus Deuling <deuling@de.ibm.com>
18285
18286 * README: Update supported targets.
18287
18288 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18289
18290 * Makefile.in (clean): Remove reg-mips64.c.
18291 (reg-mips64.c, reg-mips64.o): New rules.
18292 * configure.srv: Handle mips64. Include regset support for mips.
18293 * linux-mips-low.c (union mips_register): New.
18294 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
18295 (mips_breakpoint, mips_breakpoint_at): Use int.
18296 (mips_collect_register, mips_supply_register)
18297 (mips_collect_register_32bit, mips_supply_register_32bit)
18298 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18299 (mips_store_fpregset, target_regsets): New.
18300 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
18301
18302 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18303
18304 * configure.srv: Add target "spu*-*-*".
18305 * Makefile.in (clean): Remove reg-spu.c.
18306 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
18307 * spu-low.c: New file.
18308
18309 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18310
18311 * configure.ac: Correct td_thr_tls_get_addr test.
18312 * configure: Regenerated.
18313
18314 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18315
18316 * linux-low.c (linux_wait_for_event): Reformat. Use the
18317 pass_signals array.
18318 * remote-utils.c (decode_address_to_semicolon): New.
18319 * server.c (pass_signals, handle_general_set): New.
18320 (handle_query): Mention QPassSignals for qSupported.
18321 (main): Call handle_general_set.
18322 * server.h (pass_signals, decode_address_to_semicolon): New.
18323
18324 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18325
18326 * server.c (handle_query): Correct error handling for read_auxv.
18327
18328 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18329
18330 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
18331 and srv_linux_thread_db to yes.
18332 * linux-s390-low.c (s390_fill_gregset): New function.
18333 (target_regsets): Define data structure.
18334
18335 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18336
18337 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
18338 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
18339 * config.in, configure: Regenerated.
18340 * inferiors.c (gdb_id_to_thread): New function.
18341 (gdb_id_to_thread_id): Use it.
18342 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
18343 * linux-low.h (struct process_info): Add th member.
18344 (thread_db_get_tls_address): New prototype.
18345 * remote-utils.c (decode_address): Make non-static.
18346 * server.c (handle_query): Handle qGetTLSAddr.
18347 * server.h (gdb_id_to_thread, decode_address): New prototypes.
18348 * target.h (struct target_ops): Add get_tls_address.
18349 * thread-db.c (maybe_attach_thread): Save the thread handle.
18350 (thread_db_get_tls_address): New.
18351
18352 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18353
18354 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
18355 (linux_resume_one_process): Take a siginfo_t *. Update all
18356 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
18357 (struct pending_signals): Add a siginfo_t.
18358 (linux_wait_for_process): Always set last_status.
18359 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
18360 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
18361 * linux-low.h (struct process_info): Add last_status.
18362
18363 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18364
18365 * remote-utils.c (try_rle): New function.
18366 (putpkt_binary): Use it.
18367
18368 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18369
18370 * Makefile.in (clean): Clean reg-x86-64-linux.c.
18371 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
18372 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
18373 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
18374 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
18375 point registers.
18376
18377 2006-08-08 Richard Sandiford <richard@codesourcery.com>
18378
18379 * server.c (terminal_fd): New variable.
18380 (old_foreground_pgrp): Likewise.
18381 (restore_old_foreground_pgrp): New function.
18382 (start_inferior): Record the terminal file descriptor in terminal_fd
18383 and its original foreground group in old_foreground_pgrp. Register
18384 restore_old_foreground_pgrp with atexit().
18385
18386 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18387
18388 * server.c (handle_query): Correct qPart to qXfer.
18389
18390 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18391
18392 * configure.ac: Check for more headers which are missing on
18393 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18394 * configure.srv: Add Cygwin and mingw32.
18395 * remote-utils.c: Don't include headers unconditionally which
18396 are missing on mingw32. Include <winsock.h> for mingw32.
18397 (remote_open): Adjust for mingw32 support. Flush
18398 standard error after writing to it.
18399 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18400 (unblock_async_io, enable_async_io, disable_async_io)
18401 (readchar, getpkt): Update for Winsock support.
18402 (prepare_resume_reply): Expect a protocol signal number.
18403 * server.c: Disable <sys/wait.h> on mingw32.
18404 (start_inferior): Adjust for mingw32 support. Flush
18405 standard error after writing to it.
18406 (attach_inferior): Likewise. Use protocol signal
18407 numbers.
18408 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18409 and names.
18410 * win32-i386-low.c: New file.
18411 * Makefile.in (XM_CLIBS): Set.
18412 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18413 (win32-i386-low.o): New dependency rule.
18414 * linux-low.c (linux_wait): Use target signal numbers.
18415 * target.h (struct target_ops): Doc fix.
18416 * server.h (target_signal_to_name): New prototype.
18417 * gdbreplay.c: Don't include headers unconditionally which
18418 are missing on mingw32. Include <winsock.h> for mingw32.
18419 (remote_close, remote_open): Adjust for Winsock support.
18420 * configure, config.in: Regenerated.
18421
18422 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18423
18424 * server.c (decode_xfer_read, write_qxfer_response): New.
18425 (handle_query): Take a packet length argument. Handle
18426 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18427 the qSupported response.
18428 (main): Update call to handle_query.
18429
18430 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18431
18432 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18433 (putpkt_binary): Renamed from putpkt and adjusted for binary
18434 data.
18435 (putpkt): New wrapper for putpkt_binary.
18436 (readchar): Don't mask off the high bit.
18437 (decode_X_packet): New function.
18438 * server.c (main): Call putpkt_binary if a handler sets the packet
18439 length. Save the length of the incoming packet. Handle 'X'.
18440 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18441
18442 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18443
18444 * server.c (handle_query): Handle qSupported.
18445
18446 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18447
18448 * remote-utils.c (all_symbols_looked_up): New variable.
18449 (look_up_one_symbol): Check it.
18450 * server.h (look_up_one_symbol): New declaration.
18451 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18452
18453 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18454
18455 * Makefile.in (linux-arm-low.o): Update dependencies.
18456 * linux-arm-low.c: Include "gdb_proc_service.h".
18457 (PTRACE_GET_THREAD_AREA): Define.
18458 (ps_get_thread_area): New function.
18459
18460 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18461
18462 * configure.srv (m68k*-*-uclinux*): New target.
18463 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18464 (linux_resume_one_process): Remove extraneous cast.
18465 (linux_read_offsets): New.
18466 (linux_target_op): Add linux_read_offsets on mmuless systems.
18467 * server.c (handle_query): Add qOffsets logic.
18468 * target.h (struct target_ops): Add read_offsets.
18469
18470 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18471
18472 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18473 (PTRACE_GET_THREAD_AREA): Define.
18474 (ps_get_thread_area): New function.
18475 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18476 (linux-x86-64-low.o): Update.
18477
18478 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18479
18480 * configure.ac: Remove checks for prfpregset_t.
18481 * gdb_proc_service.h: New file.
18482 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18483 new "gdb_proc_service.h".
18484 * proc-service.c: Likewise.
18485 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18486 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18487 * Makefile.in (gdb_proc_service_h): Updated.
18488 * configure, config.in: Regenerated.
18489
18490 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18491
18492 * remote-utils.c (prepare_resume_reply): Move declaration
18493 of gdb_id_from_wait to the top of the block.
18494
18495 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18496
18497 * linux-low.c (regsets_store_inferior_registers): Read the regset
18498 from the target before filling it.
18499
18500 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18501
18502 * server.c (attach_inferior): Return SIGTRAP for a successful
18503 attach.
18504
18505 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18506
18507 * Makefile.in (OBS): Add version.o.
18508 (STAGESTUFF): Delete.
18509 (version.o): Add dependencies.
18510 (version.c): Replace rule.
18511 (clean): Remove version.c.
18512 * server.c (gdbserver_version): New.
18513 (gdbserver_usage): Use printf.
18514 (main): Handle --version and --help.
18515 * server.h (version, host_name): Add declarations.
18516
18517 2005-12-23 Eli Zaretskii <eliz@gnu.org>
18518
18519 * linux-arm-low.c:
18520 * linux-arm-low.c:
18521 * inferiors.c:
18522 * i387-fp.h:
18523 * i387-fp.c:
18524 * gdbreplay.c:
18525 * regcache.c:
18526 * proc-service.c:
18527 * mem-break.h:
18528 * mem-break.c:
18529 * linux-x86-64-low.c:
18530 * linux-sh-low.c:
18531 * linux-s390-low.c:
18532 * linux-ppc64-low.c:
18533 * linux-ppc-low.c:
18534 * linux-mips-low.c:
18535 * linux-m68k-low.c:
18536 * linux-m32r-low.c:
18537 * linux-low.h:
18538 * linux-low.c:
18539 * linux-ia64-low.c:
18540 * linux-i386-low.c:
18541 * linux-crisv32-low.c:
18542 * thread-db.c:
18543 * terminal.h:
18544 * target.h:
18545 * target.c:
18546 * server.h:
18547 * server.c:
18548 * remote-utils.c:
18549 * regcache.h:
18550 * utils.c:
18551 * Makefile.in:
18552 * configure.ac:
18553 * gdbserver.1: Add (C) after Copyright. Update the FSF
18554 address.
18555
18556 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18557
18558 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18559 (arm_breakpoint_at): Recognize both breakpoints.
18560 (the_low_target): Use the correct breakpoint instruction.
18561
18562 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18563
18564 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18565 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18566 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18567 (the_low_target): Update.
18568
18569 2005-10-25 Andreas Schwab <schwab@suse.de>
18570
18571 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18572
18573 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18574 (ia64_num_regs): Reduce to 462.
18575
18576 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18577
18578 * acinclude.m4: Correct quoting.
18579 * aclocal.m4: Regenerated.
18580
18581 Suggested by SZOKOVACS Robert <szo@ies.hu>:
18582 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
18583 (thread_db_init): Call thread_db_err_str.
18584 * configure.ac: Check for TD_VERSION.
18585 * config.in, configure: Regenerated.
18586
18587 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18588
18589 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18590
18591 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18592
18593 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
18594 is not available. Define HAVE_PTRACE_GETREGS if it is.
18595 * config.in, configure: Regenerated.
18596 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
18597 * linux-i386-low.c, linux-m68k-low.c: Update to use
18598 HAVE_PTRACE_GETREGS.
18599 * linux-low.c (regsets_fetch_inferior_registers)
18600 (regsets_store_inferior_registers): Only return 0 if we processed
18601 GENERAL_REGS.
18602 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18603 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
18604
18605 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18606
18607 * inferiors.c (struct thread_info): Add gdb_id.
18608 (add_thread): Add gdb_id argument.
18609 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
18610 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
18611 calls to add_thread.
18612 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
18613 * server.c (handle_query): Use thread_to_gdb_id.
18614 (handle_v_cont, main): Use gdb_id_to_thread_id.
18615 * server.h (add_thread): Update prototype.
18616 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
18617 prototypes.
18618
18619 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18620
18621 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
18622 left-padded registers.
18623 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
18624 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
18625
18626 2005-07-01 Steve Ellcey <sje@cup.hp.com>
18627
18628 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
18629 * configure: Regenerate.
18630 * config.in: Regenerate.
18631 * server.h (NEED_DECLARATION_STRERROR):
18632 Replace with !HAVE_DECL_STRERROR.
18633
18634 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
18635
18636 * linux-low.c (linux_wait, linux_send_signal): Don't test
18637 an unsigned long variable for > 0 if it could be MAX_ULONG.
18638 * server.c (myresume): Likewise.
18639 * target.c (set_desired_inferior): Likewise.
18640
18641 2005-06-13 Mark Kettenis <kettenis@gnu.org>
18642
18643 * configure.ac: Simplify and improve check for socklen_t.
18644 * configure, config.in: Regenerate.
18645
18646 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
18647
18648 * acconfig.h: Remove.
18649 * configure.ac: Add a test for socklen_t. Use three-argument
18650 AC_DEFINE throughout.
18651 * config.in: Regenerated using autoheader 2.59.
18652 * configure: Regenerated.
18653
18654 * gdbreplay.c (socklen_t): Provide a default.
18655 (remote_open): Use socklen_t.
18656 * remote-utils.c (socklen_t): Provide a default.
18657 (remote_open): Use socklen_t.
18658 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
18659 unsigned char.
18660
18661 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
18662 char for buffers.
18663 * linux-low.c (linux_read_memory, linux_write_memory)
18664 (linux_read_auxv): Likewise.
18665 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
18666 (check_mem_write): Likewise.
18667 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
18668 Likewise.
18669 * regcache.c (struct inferior_rgcache_data, registers_to_string)
18670 (registers_from_string, register_data): Likewise.
18671 * server.c (handle_query, main): Likewise.
18672 * server.h (convert_ascii_to_int, convert_int_to_ascii)
18673 (decode_M_packet): Likewise.
18674 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
18675 * target.h (struct target_ops): Update read_memory, write_memory,
18676 and read_auxv.
18677 (read_inferior_memory, write_inferior_memory): Update.
18678 * linux-low.h (struct linux_target_ops): Change type of breakpoint
18679 to unsigned char *.
18680 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
18681 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
18682 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
18683 linux-s390-low.c, linux-sh-low.c: Update for changes in
18684 read_inferior_memory and the_low_target->breakpoint.
18685
18686 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
18687
18688 * Makefile.in (SFILES): Add linux-ppc64-low.c.
18689 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
18690 * configure.srv: Add powerpc64-*-linux*.
18691 * linux-ppc64-low.c: New file.
18692
18693 2005-05-23 Orjan Friberg <orjanf@axis.com>
18694
18695 * linux-cris-low.c: New file with support for CRIS.
18696 * linux-crisv32-low.c: Ditto for CRISv32.
18697 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
18698 (clean): Add reg-cris.c and reg-crisv32.c.
18699 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
18700 reg-crisv32.o, and reg-crisv32.c to make rules.
18701 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
18702 recognized targets.
18703
18704 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
18705
18706 * linux-low.c (fetch_register): Ensure buffer size is a multiple
18707 of sizeof (PTRACE_XFER_TYPE).
18708 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
18709
18710 2005-05-12 Orjan Friberg <orjanf@axis.com>
18711
18712 * target.h (struct target_ops): Add insert_watchpoint,
18713 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
18714 pointers for hardware watchpoint support.
18715 * linux-low.h (struct linux_target_ops): Ditto.
18716 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
18717 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
18718 to linux_target_ops.
18719 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
18720 reply packet.
18721 * server.c (main): Recognize 'Z' and 'z' packets.
18722
18723 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
18724
18725 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
18726 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
18727 (the_low_target): Add new members.
18728
18729 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18730
18731 * proc-service.c (ps_lgetregs): Search all_processes instead of
18732 all_threads.
18733
18734 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18735
18736 * server.c (start_inferior): Change return type to int.
18737 (attach_inferior): Change sigptr to int *.
18738 (handle_v_cont, handle_v_requests): Change signal to int *.
18739 (main): Change signal to int.
18740
18741 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
18742
18743 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
18744 * configure.srv: Add m32r*-*-linux*.
18745 * linux-m32r-low.c: New file.
18746
18747 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
18748
18749 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
18750
18751 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18752
18753 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
18754 Take unsigned long arguments for PIDs.
18755 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
18756 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
18757 (wait_for_sigstop, linux_resume_one_process)
18758 (regsets_fetch_inferior_registers, linux_send_signal)
18759 (linux_read_auxv): Likewise. Update the types of variables holding
18760 PIDs. Update format string specifiers.
18761 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
18762 * remote-utils.c (prepare_resume_reply): Likewise.
18763 * server.c (cont_thread, general_thread, step_thread)
18764 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
18765 unsigned long.
18766 (handle_query): Update format specifiers.
18767 (handle_v_cont, main): Use strtoul for thread IDs.
18768 * server.h (struct inferior_list_entry): Use unsigned long for ID.
18769 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
18770 (general_thread, step_thread, thread_from_wait)
18771 (old_thread_from_wait): Update.
18772 * target.h (struct thread_resume): Use unsigned long for THREAD.
18773 (struct target_ops): Use unsigned long for arguments to attach and
18774 thread_alive.
18775
18776 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
18777
18778 * acinclude.m4: Include bfd/bfd.m4 directly.
18779 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
18780 <agriffis@toolchain.org>.
18781 * aclocal.m4, configure: Regenerated.
18782
18783 2005-01-07 Andrew Cagney <cagney@gnu.org>
18784
18785 * configure.ac: Rename configure.in, require autoconf 2.59.
18786 * configure: Re-generate.
18787
18788 2004-12-08 Daniel Jacobowitz <dan@debian.org>
18789
18790 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
18791 LIBS when finished.
18792 * aclocal.m4: Regenerated.
18793 * configure: Regenerated.
18794
18795 2004-11-21 Andreas Schwab <schwab@suse.de>
18796
18797 * linux-m68k-low.c (m68k_num_gregs): Define.
18798 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
18799 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
18800 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
18801 (m68k_breakpoint_at): New. Add to the_low_target.
18802
18803 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
18804 srv_linux_thread_db to yes.
18805
18806 2004-10-20 Joel Brobecker <brobecker@gnat.com>
18807
18808 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
18809 (ARCH_SET_FS): Likewise.
18810 (ARCH_GET_FS): Likewise.
18811 (ARCH_GET_GS): Likewise.
18812
18813 2004-10-16 Daniel Jacobowitz <dan@debian.org>
18814
18815 * linux-i386-low.c (ps_get_thread_area): New.
18816 * linux-x86-64-low.c (ps_get_thread_area): New.
18817 * linux-low.c: Include <sys/syscall.h>.
18818 (linux_kill_one_process): Don't kill the first thread here.
18819 (linux_kill): Kill the first thread here.
18820 (kill_lwp): New function.
18821 (send_sigstop, linux_send_signal): Use it.
18822 * proc-service.c: Clean up #ifdefs.
18823 (fpregset_info): Delete.
18824 (ps_lgetregs): Update and enable implementation.
18825 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
18826 implementations.
18827 * remote-utils.c (struct sym_cache, symbol_cache): New.
18828 (input_interrupt): Print a clearer message.
18829 (async_io_enabled): New variable.
18830 (enable_async_io, disable_async_io): Use it. Update comments.
18831 (look_up_one_symbol): Use the symbol cache.
18832 * thread-db.c (thread_db_look_up_symbols): New function.
18833 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
18834
18835 2004-10-16 Daniel Jacobowitz <dan@debian.org>
18836
18837 * configure.in: Test for -rdynamic.
18838 * configure: Regenerated.
18839 * Makefile (INTERNAL_LDFLAGS): New.
18840 (gdbserver, gdbreplay): Use it.
18841
18842 2004-09-02 Andrew Cagney <cagney@gnu.org>
18843
18844 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
18845
18846 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
18847
18848 * linux-low.c (linux_wait): Clear all_processes list also.
18849
18850 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
18851
18852 * linux-low.c: Include <errno.h>. Remove extern declaration of
18853 errno.
18854
18855 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
18856
18857 * gdbreplay.c, server.h, utils.c: Update copyright years.
18858
18859 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18860
18861 * server.c (main): Print child status or termination signal from
18862 variable 'signal', not 'sig'.
18863
18864 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18865
18866 * linux-low.c (linux_read_memory): Change return type to
18867 int. Check for and return error from ptrace().
18868 * target.c (read_inferior_memory): Change return type to int. Pass
18869 back return status from the_target->read_memory().
18870 * target.h (struct target_ops): Adapt *read_memory() prototype.
18871 Update comment.
18872 (read_inferior_memory): Adapt prototype.
18873 * server.c (main): Return an error packet if
18874 read_inferior_memory() returns an error.
18875
18876 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
18877
18878 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
18879 Unify with other clean targets.
18880
18881 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18882
18883 * server.c (handle_v_cont): Call set_desired_inferior.
18884
18885 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18886
18887 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
18888
18889 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18890
18891 * linux-low.c (linux_wait): Unblock async I/O.
18892 (linux_resume): Block and enable async I/O.
18893 * remote-utils.c (block_async_io, unblock_async_io): New functions.
18894 * server.h (block_async_io, unblock_async_io): Add prototypes.
18895
18896 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18897
18898 * remote-utils.c (remote_open): Print a status notice after
18899 opening a TCP port.
18900 * server.c (attach_inferior): Print a status notice after
18901 attaching.
18902
18903 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18904
18905 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
18906
18907 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
18908
18909 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
18910 error packet.
18911 * server.c, target.h: Update copyright years.
18912
18913 2004-02-25 Roland McGrath <roland@redhat.com>
18914
18915 * target.h (struct target_ops): New member `read_auxv'.
18916 * server.c (handle_query): Handle qPart:auxv:read: query using that.
18917 * linux-low.c (linux_read_auxv): New function.
18918 (linux_target_ops): Initialize `read_auxv' member to that.
18919
18920 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18921
18922 Committed by Jim Blandy <jimb@redhat.com>.
18923
18924 * linux-s390-low.c (s390_num_regs): Update.
18925 (s390_regmap): Remove control registers. Use __s390x__ predefine
18926 instead of GPR_SIZE to distiguish s390 and s390x targets.
18927
18928 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
18929
18930 * linux-low.c: Update copyright year.
18931 (check_removed_breakpoint): Clear pending_is_breakpoint.
18932 (linux_set_resume_request, linux_queue_one_thread)
18933 (resume_status_pending_p): New functions.
18934 (linux_continue_one_thread): Use process->resume.
18935 (linux_resume): Only resume threads if there are no pending events.
18936 * linux-low.h (struct process_info): Add resume request
18937 pointer.
18938
18939 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
18940
18941 * regcache.c (new_register_cache): Clear the allocated register
18942 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
18943
18944 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
18945
18946 * linux-low.c (linux_resume): Take a struct thread_resume *
18947 argument.
18948 (linux_wait): Update call.
18949 (resume_ptr): New static variable.
18950 (linux_continue_one_thread): Renamed from
18951 linux_continue_one_process. Use resume_ptr.
18952 (linux_resume): Use linux_continue_one_thread.
18953 * server.c (handle_v_cont, handle_v_requests): New functions.
18954 (myresume): New function.
18955 (main): Handle 'v' case.
18956 * target.h (struct thread_resume): New type.
18957 (struct target_ops): Change argument of "resume" to struct
18958 thread_resume *.
18959 (myresume): Delete macro.
18960
18961 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
18962
18963 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
18964 (uninstall): Support DESTDIR.
18965
18966 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
18967
18968 * configure.srv: Add xscale*linux copy of arm*linux entry.
18969
18970 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
18971
18972 * linux-arm-low.c (arm_reinsert_addr): New function.
18973 (the_low_target): Add arm_reinsert_addr.
18974
18975 2003-07-08 Mark Kettenis <kettenis@gnu.org>
18976
18977 * mem-break.c: Remove whitespace at end of file.
18978
18979 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
18980
18981 * configure.in: Check whether we need to prototype strerror.
18982 * server.h: Optionally prototype strerror.
18983 * gdbreplay.c (perror_with_name): Use strerror.
18984 * linux-low.c (linux_attach_lwp): Use strerror.
18985 * utils.c (perror_with_name): Use strerror.
18986 * config.in, configure: Regenerated.
18987
18988 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
18989
18990 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
18991 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
18992
18993 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
18994
18995 * Makefile.in (SFILES): Update.
18996 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
18997 low-sun3.c: Remove files.
18998
18999 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
19000
19001 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19002 (linux_detach_one_process, linux_detach): New functions.
19003 (linux_target_ops): Add linux_detach.
19004 * server.c (main): Handle 'D' packet.
19005 * target.h (struct target_ops): Add "detach" member.
19006 (detach_inferior): Define.
19007
19008 2003-06-13 Mark Kettenis <kettenis@gnu.org>
19009
19010 From Kelley Cook <kelleycook@wideopenwest.com>:
19011 * configure.srv: Accept i[34567]86 variants.
19012
19013 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
19014
19015 * linux-low.c (linux_wait_for_event): Correct comment typos.
19016 (linux_resume_one_process): Call check_removed_breakpoint.
19017 (linux_send_signal): New function.
19018 (linux_target_ops): Add linux_send_signal.
19019 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19020 of kill.
19021 * target.h (struct target_ops): Add send_signal.
19022
19023 2003-05-29 Jim Blandy <jimb@redhat.com>
19024
19025 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19026 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19027 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19028 away part of the register's value.
19029
19030 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
19031
19032 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19033 (linux_wait_for_event, linux_init_signals): Likewise.
19034
19035 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
19036
19037 * configure.in: Check for stdlib.h.
19038 * configure: Regenerated.
19039 * config.in: Regenerated.
19040
19041 2003-01-04 Andreas Schwab <schwab@suse.de>
19042
19043 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19044
19045 2003-01-02 Andrew Cagney <ac131313@redhat.com>
19046
19047 * Makefile.in: Remove obsolete code.
19048
19049 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
19050
19051 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19052 defined(PT_FPR0_HI).
19053
19054 2002-11-17 Stuart Hughes <seh@zee2.com>
19055
19056 * linux-arm-low.c (arm_num_regs): Increase.
19057 (arm_regmap): Include status register.
19058
19059 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
19060
19061 * linux-low.c (register_addr): Remove incorrect -1 check.
19062
19063 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
19064
19065 * linux-low.c (linux_create_inferior): Call setpgid. Return
19066 the new PID.
19067 (unstopped_p, linux_signal_pid): Remove.
19068 (linux_target_ops): Remove linux_signal_pid.
19069 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
19070 global instead of target method.
19071 * target.h (struct target_ops): Remove signal_pid. Update comment
19072 for create_inferior.
19073 * server.c (signal_pid): New variable.
19074 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
19075 gdbserver. Set the child to be the foreground process group.
19076 (attach_inferior): Set signal_pid.
19077
19078 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
19079
19080 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19081
19082 2002-08-20 Jim Blandy <jimb@redhat.com>
19083
19084 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19085 default for this.
19086
19087 2002-08-01 Andrew Cagney <cagney@redhat.com>
19088
19089 * Makefile.in: Make chill references obsolete.
19090
19091 2002-07-24 Kevin Buettner <kevinb@redhat.com>
19092
19093 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19094 * configure: Regenerate.
19095 * config.in: Regenerate.
19096
19097 2002-07-09 David O'Brien <obrien@FreeBSD.org>
19098
19099 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19100 (perror_with_name, remote_close, remote_open, expect, play): Static.
19101
19102 2002-07-04 Michal Ludvig <mludvig@suse.cz>
19103
19104 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
19105 byte offsets instead of an array of indexes.
19106 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19107
19108 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
19109
19110 * regcache.c: Add comment.
19111
19112 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
19113
19114 * thread-db.c: New file.
19115 * proc-service.c: New file.
19116 * acinclude.m4: New file.
19117 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
19118 proc-service.o, and thread-db.o.
19119 (linux-low.o): Add USE_THREAD_DB.
19120 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
19121 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
19122 * aclocal.m4: Regenerated.
19123 * config.in: Regenerated.
19124 * configure: Regenerated.
19125 * configure.in: Check for proc_service.h, sys/procfs.h,
19126 thread_db.h, and linux/elf.h headrs.
19127 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
19128 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
19129 Check for -lthread_db and thread support.
19130 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
19131 PowerPC, and SuperH.
19132 * i387-fp.c: Constify arguments.
19133 * i387-fp.h: Likewise.
19134 * inferiors.c: (struct thread_info): Renamed from
19135 `struct inferior_info'. Remove PID member. Use generic inferior
19136 list header. All uses updated.
19137 (inferiors, signal_pid): Removed.
19138 (all_threads): New variable.
19139 (get_thread): Define.
19140 (add_inferior_to_list): New function.
19141 (for_each_inferior): New function.
19142 (change_inferior_id): New function.
19143 (add_inferior): Removed.
19144 (remove_inferior): New function.
19145 (add_thread): New function.
19146 (free_one_thread): New function.
19147 (remove_thread): New function.
19148 (clear_inferiors): Use for_each_inferior and free_one_thread.
19149 (find_inferior): New function.
19150 (find_inferior_id): New function.
19151 (inferior_target_data): Update argument type.
19152 (set_inferior_target_data): Likewise.
19153 (inferior_regcache_data): Likewise.
19154 (set_inferior_regcache_data): Likewise.
19155 * linux-low.c (linux_bp_reinsert): Remove.
19156 (all_processes, stopping_threads, using_thrads)
19157 (struct pending_signals, debug_threads, pid_of): New.
19158 (inferior_pid): Replace with macro.
19159 (struct inferior_linux_data): Remove.
19160 (get_stop_pc, add_process): New functions.
19161 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
19162 Use add_process and add_thread.
19163 (linux_attach_lwp): New function, based on old linux_attach. Use
19164 add_process and add_thread. Set stop_expected for new threads.
19165 (linux_attach): New function.
19166 (linux_kill_one_process): New function.
19167 (linux_kill): Kill all LWPs.
19168 (linux_thread_alive): Use find_inferior_id.
19169 (check_removed_breakpoints, status_pending_p): New functions.
19170 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
19171 Update. Use WNOHANG. Wait for cloned processes also. Update process
19172 struct for the found process.
19173 (linux_wait_for_event): New function.
19174 (linux_wait): Use it. Support LWPs.
19175 (send_sigstop, wait_for_sigstop, stop_all_processes)
19176 (linux_resume_one_process, linux_continue_one_process): New functions.
19177 (linux_resume): Support LWPs.
19178 (REGISTER_RAW_SIZE): Remove.
19179 (fetch_register): Use register_size instead. Call supply_register.
19180 (usr_store_inferior_registers): Likewise. Call collect_register.
19181 Fix recursive case.
19182 (regsets_fetch_inferior_registers): Improve error message.
19183 (regsets_store_inferior_registers): Add debugging.
19184 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
19185 (unstopped_p, linux_signal_pid): New functions.
19186 (linux_target_ops): Add linux_signal_pid.
19187 (linux_init_signals): New function.
19188 (initialize_low): Call it. Initialize using_threads.
19189 * regcache.c (inferior_regcache_data): Add valid
19190 flag.
19191 (get_regcache): Fetch registers lazily. Add fetch argument
19192 and update all callers.
19193 (regcache_invalidate_one, regcache_invalidate): New
19194 functions.
19195 (new_register_cache): Renamed from create_register_cache.
19196 Return the new regcache.
19197 (free_register_cache): Change argument to a void *.
19198 (registers_to_string, registers_from_string): Call get_regcache
19199 with fetch flag set.
19200 (register_data): Make static. Pass fetch flag to get_regcache.
19201 (supply_register): Call get_regcache with fetch flag clear.
19202 (collect_register): Call get_regcache with fetch flag set.
19203 (collect_register_as_string): New function.
19204 * regcache.h: Update.
19205 * remote-utils.c (putpkt): Flush after debug output and use
19206 stderr.
19207 Handle input interrupts while waiting for an ACK.
19208 (input_interrupt): Use signal_pid method.
19209 (getpkt): Flush after debug output and use stderr.
19210 (outreg): Use collect_register_as_string.
19211 (new_thread_notify, dead_thread_notify): New functions.
19212 (prepare_resume_reply): Check using_threads. Set thread_from_wait
19213 and general_thread.
19214 (look_up_one_symbol): Flush after debug output.
19215 * server.c (step_thread, server_waiting): New variables.
19216 (start_inferior): Don't use signal_pid. Update call to mywait.
19217 (attach_inferior): Update call to mywait.
19218 (handle_query): Handle qfThreadInfo and qsThreadInfo.
19219 (main): Don't fetch/store registers explicitly. Use
19220 set_desired_inferior. Support proposed ``Hs'' packet. Update
19221 calls to mywait.
19222 * server.h: Update.
19223 (struct inferior_list, struct_inferior_list_entry): New.
19224 * target.c (set_desired_inferior): New.
19225 (write_inferior_memory): Constify.
19226 (mywait): New function.
19227 * target.h: Update.
19228 (struct target_ops): New signal_pid method.
19229 (mywait): Removed macro, added prototype.
19230
19231 * linux-low.h (regset_func): Removed.
19232 (regset_fill_func, regset_store_func): New.
19233 (enum regset_type): New.
19234 (struct regset_info): Add type field. Use new operation types.
19235 (struct linux_target_ops): stop_pc renamed to get_pc.
19236 Add decr_pc_after_break and breakpoint_at.
19237 (get_process, get_thread_proess, get_process_thread)
19238 (strut process_info, all_processes, linux_attach_lwp)
19239 (thread_db_init): New.
19240
19241 * linux-arm-low.c (arm_get_pc, arm_set_pc,
19242 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
19243 (the_low_target): Add new members.
19244 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
19245 (i386_store_fpxregset): Constify.
19246 (target_regsets): Add new kind identifier.
19247 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
19248 (i386_set_pc): Add debugging.
19249 (i386_breakpoint_at): New function.
19250 (the_low_target): Add new members.
19251 * linux-mips-low.c (mips_get_pc, mips_set_pc)
19252 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
19253 (mips_breakpoint_at): New.
19254 (the_low_target): Add new members.
19255 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
19256 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
19257 (the_low_target): Add new members.
19258 * linux-sh-low.c (sh_get_pc, sh_set_pc)
19259 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
19260 (the_low_target): Add new members.
19261 * linux-x86-64-low.c (target_regsets): Add new kind
19262 identifier.
19263
19264 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
19265
19266 From Martin Pool <mbp@samba.org>:
19267 * server.c (gdbserver_usage): New function.
19268 (main): Call it.
19269
19270 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
19271
19272 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19273 stop_at -> stop_pc.
19274
19275 2002-05-04 Andrew Cagney <ac131313@redhat.com>
19276
19277 * Makefile.in: Remove obsolete code.
19278
19279 2002-04-24 Michal Ludvig <mludvig@suse.cz>
19280
19281 * linux-low.c (regsets_fetch_inferior_registers),
19282 (regsets_store_inferior_registers): Removed cast to int from
19283 ptrace() calls.
19284 * regcache.h: Added declaration of struct inferior_info.
19285
19286 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19287
19288 * inferiors.c (struct inferior_info): Add regcache_data.
19289 (add_inferior): Call create_register_cache.
19290 (clear_inferiors): Call free_register_cache.
19291 (inferior_regcache_data, set_inferior_regcache_data): New functions.
19292 * regcache.c (struct inferior_regcache_data): New.
19293 (registers): Remove.
19294 (get_regcache): New function.
19295 (create_register_cache, free_register_cache): New functions.
19296 (set_register_cache): Don't initialize the register cache here.
19297 (registers_to_string, registers_from_string, register_data): Call
19298 get_regcache.
19299 * regcache.h: Add prototypes.
19300 * server.h: Likewise.
19301
19302 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19303
19304 * mem-break.c: New file.
19305 * mem-break.h: New file.
19306 * Makefile.in: Add mem-break.o rule; update server.h
19307 dependencies.
19308 * inferiors.c (struct inferior_info): Add target_data
19309 member.
19310 (clear_inferiors): Free target_data member if set.
19311 (inferior_target_data, set_inferior_target_data): New functions.
19312 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19313 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19314 * linux-low.c (linux_bp_reinsert): New variable.
19315 (struct inferior_linux_data): New.
19316 (linux_create_inferior): Use set_inferior_target_data.
19317 (linux_attach): Likewise. Call add_inferior.
19318 (linux_wait_for_one_inferior): New function.
19319 (linux_wait): Call it.
19320 (linux_write_memory): Add const.
19321 (initialize_low): Call set_breakpoint_data.
19322 * linux-low.h (struct linux_target_ops): Add breakpoint
19323 handling members.
19324 * server.c (attach_inferior): Remove extra add_inferior
19325 call.
19326 * server.h: Include mem-break.h. Update inferior.c
19327 prototypes.
19328 * target.c (read_inferior_memory)
19329 (write_inferior_memory): New functions.
19330 * target.h (read_inferior_memory)
19331 (write_inferior_memory): Change macros to prototypes.
19332 (struct target_ops): Update comments. Add const to write_memory
19333 definition.
19334
19335 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
19336
19337 * linux-low.c (usr_store_inferior_registers): Support
19338 registers which are allowed to fail to store.
19339 * linux-low.h (linux_target_ops): Likewise.
19340 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
19341 (ppc_cannot_store_register): FPSCR may not be storable.
19342
19343 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19344
19345 * server.h: Include <string.h> if HAVE_STRING_H.
19346 * ChangeLog: Correct paths in last ChangeLog entry.
19347
19348 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19349
19350 * linux-low.h: Remove obsolete prototypes.
19351 (struct linux_target_ops): New.
19352 (extern the_low_target): New.
19353 * linux-low.c (num_regs, regmap): Remove declarations.
19354 (register_addr): Use the_low_target explicitly.
19355 (fetch_register): Likewise.
19356 (usr_fetch_inferior_registers): Likewise.
19357 (usr_store_inferior_registers): Likewise.
19358 * linux-arm-low.c (num_regs): Remove.
19359 (arm_num_regs): Define.
19360 (arm_regmap): Renamed from regmap, made static.
19361 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
19362 made static.
19363 (arm_cannot_store_register): Renamed from cannot_store_register,
19364 made static.
19365 (the_low_target): New.
19366 * linux-i386-low.c (num_regs): Remove.
19367 (i386_num_regs): Define.
19368 (i386_regmap): Renamed from regmap, made static.
19369 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
19370 made static.
19371 (i386_cannot_store_register): Renamed from cannot_store_register,
19372 made static.
19373 (the_low_target): New.
19374 * linux-ia64-low.c (num_regs): Remove.
19375 (ia64_num_regs): Define.
19376 (ia64_regmap): Renamed from regmap, made static.
19377 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
19378 made static.
19379 (ia64_cannot_store_register): Renamed from cannot_store_register,
19380 made static.
19381 (the_low_target): New.
19382 * linux-m68k-low.c (num_regs): Remove.
19383 (m68k_num_regs): Define.
19384 (m68k_regmap): Renamed from regmap, made static.
19385 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
19386 made static.
19387 (m68k_cannot_store_register): Renamed from cannot_store_register,
19388 made static.
19389 (the_low_target): New.
19390 * linux-mips-low.c (num_regs): Remove.
19391 (mips_num_regs): Define.
19392 (mips_regmap): Renamed from regmap, made static.
19393 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19394 made static.
19395 (mips_cannot_store_register): Renamed from cannot_store_register,
19396 made static.
19397 (the_low_target): New.
19398 * linux-ppc-low.c (num_regs): Remove.
19399 (ppc_num_regs): Define.
19400 (ppc_regmap): Renamed from regmap, made static.
19401 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19402 made static.
19403 (ppc_cannot_store_register): Renamed from cannot_store_register,
19404 made static.
19405 (the_low_target): New.
19406 * linux-s390-low.c (num_regs): Remove.
19407 (s390_num_regs): Define.
19408 (s390_regmap): Renamed from regmap, made static.
19409 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19410 made static.
19411 (s390_cannot_store_register): Renamed from cannot_store_register,
19412 made static.
19413 (the_low_target): New.
19414 * linux-sh-low.c (num_regs): Remove.
19415 (sh_num_regs): Define.
19416 (sh_regmap): Renamed from regmap, made static.
19417 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19418 made static.
19419 (sh_cannot_store_register): Renamed from cannot_store_register,
19420 made static.
19421 (the_low_target): New.
19422 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19423 (the_low_target): New.
19424
19425 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19426
19427 * Makefile.in: Add stamp-h target.
19428 * configure.in: Create stamp-h.
19429 * configure: Regenerated.
19430
19431 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19432
19433 * inferiors.c: New file.
19434 * target.c: New file.
19435 * target.h: New file.
19436 * Makefile.in: Add target.o and inferiors.o. Update
19437 dependencies.
19438 * linux-low.c (inferior_pid): New static variable,
19439 moved from server.c.
19440 (linux_create_inferior): Renamed from create_inferior.
19441 Call add_inferior. Return 0 on success instead of a PID.
19442 (linux_attach): Renamed from myattach.
19443 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19444 (linux_thread_alive): Renamed from mythread_alive.
19445 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19446 child dies.
19447 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19448 (regsets_store_inferior_registers): Correct error message.
19449 Add missing ``return 0''.
19450 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19451 (linux_store_registers): Renamed from store_inferior_registers.
19452 (linux_read_memory): Renamed from read_inferior_memory.
19453 (linux_write_memory): Renamed from write_inferior_memory.
19454 (linux_target_ops): New structure.
19455 (initialize_low): Call set_target_ops ().
19456 * remote-utils.c (unhexify): New function.
19457 (hexify): New function.
19458 (input_interrupt): Send signals to ``signal_pid''.
19459 * server.c (inferior_pid): Remove.
19460 (start_inferior): Update create_inferior call.
19461 (attach_inferior): Call add_inferior.
19462 (handle_query): New function.
19463 (main): Call handle_query for `q' packets.
19464 * server.h: Include "target.h". Remove obsolete prototypes.
19465 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19466
19467 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19468
19469 * Makefile.in: Add WARN_CFLAGS. Update configury
19470 dependencies.
19471 * configure.in: Check for <string.h>
19472 * configure: Regenerate.
19473 * config.in: Regenerate.
19474 * gdbreplay.c: Include needed system headers.
19475 (remote_open): Remove strchr prototype.
19476 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19477 * regcache.c (supply_register): Change buf argument to const void *.
19478 (supply_register_by_name): Likewise.
19479 (collect_register): Change buf argument to void *.
19480 (collect_register_by_name): Likewise.
19481 * regcache.h: Add missing prototypes.
19482 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19483 * server.c (handle_query): New function.
19484 (attached): New static variable, moved out of main.
19485 (main): Quiet longjmp clobber warnings.
19486 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19487 * utils.c (error): Remove NORETURN.
19488 (fatal): Likewise.
This page took 0.462886 seconds and 5 git commands to generate.