1 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 Turn process_stratum_target's supports_catch_syscall op into a
4 method of process_target.
6 * target.h (struct process_stratum_target): Remove the target op.
7 (class process_target): Add the target op.
8 (target_supports_catch_syscall): Update the macro.
9 * target.cc (process_target::supports_catch_syscall): Define.
11 Update the derived classes and callers below.
13 * linux-low.cc (linux_target_ops): Update.
14 (linux_supports_catch_syscall): Turn into ...
15 (linux_process_target::supports_catch_syscall): ... this.
16 * linux-low.h (class linux_process_target): Update.
17 * lynx-low.cc (lynx_target_ops): Update.
18 * nto-low.cc (nto_target_ops): Update.
19 * win32-low.cc (win32_target_ops): Update.
21 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
23 Turn process_stratum_target's supports_software_single_step op
24 into a method of process_target.
26 * target.h (struct process_stratum_target): Remove the target op.
27 (class process_target): Add the target op.
28 (target_supports_software_single_step): Update the macro.
29 * target.cc (process_target::supports_software_single_step): Define.
31 Update the derived classes and callers below.
33 * linux-low.cc (linux_target_ops): Update.
34 (linux_supports_software_single_step): Turn into ...
35 (linux_process_target::supports_software_single_step): ... this.
36 * linux-low.h (class linux_process_target): Update.
37 * lynx-low.cc (lynx_target_ops): Update.
38 * nto-low.cc (nto_target_ops): Update.
39 * win32-low.cc (win32_target_ops): Update.
41 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
43 Turn process_stratum_target's thread_name and thread_handle ops
44 into methods of process_target.
46 * target.h (struct process_stratum_target): Remove the target ops.
47 (class process_target): Add the target ops.
48 (target_thread_name): Update the macro.
49 (target_thread_handle): Update the macro.
50 * target.cc (process_target::thread_name): Define.
51 (process_target::thread_handle): Define.
53 Update the derived classes and callers below.
55 * linux-low.cc (linux_target_ops): Update.
56 (linux_process_target::thread_name): Define.
57 (linux_process_target::thread_handle): Define.
58 * linux-low.h (class linux_process_target): Update.
59 * lynx-low.cc (lynx_target_ops): Update.
60 * nto-low.cc (nto_target_ops): Update.
61 * win32-low.cc (win32_target_ops): Update.
63 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
65 Turn process_stratum_target's breakpoint_kind_from_pc,
66 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
67 ops into methods of process_target.
69 * target.h (struct process_stratum_target): Remove the target op.
70 (class process_target): Add the target op.
71 (target_breakpoint_kind_from_pc): Update the macro.
72 (target_breakpoint_kind_from_current_state): Update the macro.
73 (default_breakpoint_kind_from_pc): Remove declaration.
74 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
75 (process_target::breakpoint_kind_from_pc): ... this.
76 (process_target::breakpoint_kind_from_current_state): Define.
78 Update the derived classes and callers below.
80 * mem-break.cc (bp_size): Update.
82 * linux-low.cc (linux_target_ops): Update.
83 (linux_wait_1): Update.
84 (linux_breakpoint_kind_from_pc): Turn into ...
85 (linux_process_target::breakpoint_kind_from_pc): ... this.
86 (linux_sw_breakpoint_from_kind): Turn into ...
87 (linux_process_target::sw_breakpoint_from_kind): ... this.
88 (linux_breakpoint_kind_from_current_state): Turn into ...
89 (linux_process_target::breakpoint_kind_from_current_state): ... this.
90 * linux-low.h (class linux_process_target): Update.
91 * lynx-low.cc (lynx_target_ops): Update.
92 (lynx_process_target::sw_breakpoint_from_kind): Define.
93 * lynx-low.h (class lynx_process_target): Update.
94 * nto-low.cc (nto_target_ops): Update.
95 (nto_sw_breakpoint_from_kind): Turn into ...
96 (nto_process_target::sw_breakpoint_from_kind): ... this.
97 * nto-low.h (class nto_process_target): Update.
98 * win32-low.cc (win32_target_ops): Update.
99 (win32_sw_breakpoint_from_kind): Turn into ...
100 (win32_process_target::sw_breakpoint_from_kind): ... this.
101 * win32-low.h (class win32_process_target): Update.
103 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
105 Turn process_stratum_target's multifs_open, multifs_readlink,
106 multifs_unlink ops into methods of process_target.
108 * target.h (struct process_stratum_target): Remove the target ops.
109 (class process_target): Add the target ops. Also add
111 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
113 (process_target::supports_multifs): Define.
114 (process_target::multifs_open): Define.
115 (process_target::multifs_readlink): Define.
116 (process_target::multifs_unlink): Define.
118 Update the derived classes and callers below.
120 * hostio.cc (handle_setfs): Update.
121 (handle_open): Update.
122 (handle_unlink): Update.
123 (handle_readlink): Update.
124 * linux-low.cc (linux_target_ops): Update.
125 (linux_process_target::supports_multifs): Define.
126 (linux_process_target::multifs_open): Define.
127 (linux_process_target::multifs_readlink): Define.
128 (linux_process_target::multifs_unlink): Define.
129 * linux-low.h (class linux_process_target): Update.
130 * lynx-low.cc (lynx_target_ops): Update.
131 * nto-low.cc (nto_target_ops): Update.
132 * win32-low.cc (win32_target_ops): Update.
134 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
136 Turn process_stratum_target's pid_to_exec_file op into a method
139 * target.h (struct process_stratum_target): Remove the target op.
140 (class process_target): Add the target op. Also add
141 'supports_pid_to_exec_file'.
142 * target.cc (process_target::pid_to_exec_file): Define.
143 (process_target::supports_pid_to_exec_file): Define.
145 Update the derived classes and callers below.
147 * server.cc (handle_qxfer_exec_file): Update.
148 (handle_query): Update.
149 * linux-low.cc (linux_target_ops): Update.
150 (linux_process_target::supports_pid_to_exec_file): Define.
151 (linux_process_target::pid_to_exec_file): Define.
152 * linux-low.h (class linux_process_target): Update.
153 * lynx-low.cc (lynx_target_ops): Update.
154 * nto-low.cc (nto_target_ops): Update.
155 * win32-low.cc (win32_target_ops): Update.
157 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
159 Turn process_stratum_target's supports_range_stepping op into a
160 method of process_target.
162 * target.h (struct process_stratum_target): Remove the target op.
163 (class process_target): Add the target op.
164 (target_supports_range_stepping): Update the macro.
165 * target.cc (process_target::supports_range_stepping): Define.
167 Update the derived classes and callers below.
169 * linux-low.cc (linux_target_ops): Update.
170 (linux_supports_range_stepping): Turn into ...
171 (linux_process_target::supports_range_stepping): ... this.
172 * linux-low.h (class linux_process_target): Update.
173 * lynx-low.cc (lynx_target_ops): Update.
174 * nto-low.cc (nto_target_ops): Update.
175 * win32-low.cc (win32_target_ops): Update.
177 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
179 Turn process_stratum_target's btrace-related ops (enable_btrace,
180 disable_btrace, read_btrace, read_btrace_conf) into methods of
183 * target.h (struct process_stratum_target): Remove the target ops.
184 (class process_target): Add the target ops.
185 (target_enable_btrace): Update.
186 (target_disable_btrace): Update.
187 (target_read_btrace): Update.
188 (target_read_btrace_conf): Update.
189 * target.cc (process_target::enable_btrace): Define.
190 (process_target::disable_btrace): Define.
191 (process_target::read_btrace): Define.
192 (process_target::read_btrace_conf): Define.
194 Update the derived classes and callers below.
196 * linux-low.cc (linux_target_ops): Update.
197 (linux_process_target:enable_btrace): Define as a wrapper around
199 (linux_low_disable_btrace): Turn into ...
200 (linux_process_target::disable_btrace): ... this.
201 (linux_low_read_btrace): Turn into ...
202 (linux_process_target::read_btrace): ... this.
203 (linux_low_btrace_conf): Turn into ...
204 (linux_process_target::read_btrace_conf): ... this.
205 * linux-low.h (class linux_process_target): Update.
206 * lynx-low.cc (lynx_target_ops): Update.
207 * nto-low.cc (nto_target_ops): Update.
208 * win32-low.cc (win32_target_ops): Update.
210 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
212 Turn process_stratum_target's supports_agent op into a method of
215 * target.h (struct process_stratum_target): Remove the target op.
216 (class process_target): Add the target op.
217 (target_supports_agent): Update the macro.
218 * target.cc (process_target::supports_agent): Define.
220 Update the derived classes and callers below.
222 * linux-low.cc (linux_target_ops): Update.
223 (linux_supports_agent): Turn into ...
224 (linux_process_target::supports_agent): ... this.
225 * linux-low.h (class linux_process_target): Update.
226 * lynx-low.cc (lynx_target_ops): Update.
227 * nto-low.cc (nto_target_ops): Update.
228 * win32-low.cc (win32_target_ops): Update.
230 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
232 Turn process_stratum_target's qxfer_libraries_svr4 op into a
233 method of process_target.
235 * target.h (struct process_stratum_target): Remove the target op.
236 (class process_target): Add the target op. Also add
237 'supports_qxfer_libraries_svr4'.
238 * target.cc (process_target::qxfer_libraries_svr4): Define.
239 (process_target::supports_qxfer_libraries_svr4): Define.
241 Update the derived classes and callers below.
243 * server.cc (handle_qxfer_libraries_svr4): Update.
244 (handle_query): Update.
245 * linux-low.cc (linux_target_ops): Update.
246 (linux_process_target::supports_qxfer_libraries_svr4): Define.
247 (linux_qxfer_libraries_svr4): Turn into ...
248 (linux_process_target::qxfer_libraries_svr4): ... 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.
254 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
256 Turn process_stratum_target's supports_disable_randomization op
257 into a method of process_target.
259 * target.h (struct process_stratum_target): Remove the target op.
260 (class process_target): Add the target op.
261 (target_supports_disable_randomization): Update the macro.
262 * target.cc (process_target::supports_disable_randomization): Define.
264 Update the derived classes and callers below.
266 * linux-low.cc (linux_target_ops): Update.
267 (linux_supports_disable_randomization): Turn into ...
268 (linux_process_target::supports_disable_randomization): ... this.
269 * linux-low.h (class linux_process_target): Update.
270 * lynx-low.cc (lynx_target_ops): Update.
271 * nto-low.cc (nto_target_ops): Update.
272 * win32-low.cc (win32_target_ops): Update.
274 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
276 Turn process_stratum_target's emit_ops op into a method of
279 * target.h (struct process_stratum_target): Remove the target op.
280 (class process_target): Add the target op.
281 (target_emit_ops): Update the macro.
282 * target.cc (process_target::emit_ops): Define.
284 Update the derived classes and callers below.
286 * linux-low.cc (linux_target_ops): Update.
287 (linux_emit_ops): Turn into ...
288 (linux_process_target::emit_ops): ... this.
289 * linux-low.h (class linux_process_target): Update.
290 * lynx-low.cc (lynx_target_ops): Update.
291 * nto-low.cc (nto_target_ops): Update.
292 * win32-low.cc (win32_target_ops): Update.
294 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
296 Turn process_stratum_target's install_fast_tracepoint_jump_pad
297 and get_min_fast_tracepoint_insn_len ops into methods of
300 * target.h (struct process_stratum_target): Remove the target ops.
301 (class process_target): Add the target ops. Also add
302 'supports_fast_tracepoints'.
303 (target_supports_fast_tracepoints): Update the macro.
304 (target_get_min_fast_tracepoint_insn_len): Update the macro.
305 (install_fast_tracepoint_jump_pad): Update and rename the macro
307 (target_install_fast_tracepoint_jump_pad): ... this.
308 * target.cc (process_target::supports_fast_tracepoints): Define.
309 (process_target::install_fast_tracepoint_jump_pad): Define.
310 (process_target::get_min_fast_tracepoint_insn_len): Define.
312 Update the derived classes and callers below.
314 * tracepoint.cc (install_fast_tracepoint): Update.
315 * linux-low.cc (linux_target_ops): Update.
316 (linux_process_target::supports_fast_tracepoints): Define.
317 (linux_install_fast_tracepoint_jump_pad): Turn into ...
318 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
319 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
320 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
321 * linux-low.h (class linux_process_target): Update.
322 * lynx-low.cc (lynx_target_ops): Update.
323 * nto-low.cc (nto_target_ops): Update.
324 * win32-low.cc (win32_target_ops): Update.
326 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
328 Turn process_stratum_target's stabilize_threads op into a
329 method of process_target.
331 * target.h (struct process_stratum_target): Remove the target op.
332 (class process_target): Add the target op.
333 (target_stabilize_threads): Update the macro.
334 * target.cc (process_target::stabilize_threads): Define.
336 Update the derived classes and callers below.
338 * server.cc (handle_status): Update.
339 * tracepoint.cc (cmd_qtdp): Update.
340 (cmd_qtstart): Update.
341 * linux-low.cc (linux_target_ops): Update.
342 (linux_stabilize_threads): Turn into ...
343 (linux_process_target::stabilize_threads): ... this.
344 (linux_wait_1): Update.
345 * linux-low.h (class linux_process_target): Update.
346 * lynx-low.cc (lynx_target_ops): Update.
347 * nto-low.cc (nto_target_ops): Update.
348 * win32-low.cc (win32_target_ops): Update.
350 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
352 Turn process_stratum_target's pause_all and unpause_all ops
353 into methods of process_target.
355 * target.h (struct process_stratum_target): Remove the target ops.
356 (class process_target): Add the target ops.
357 (pause_all): Update the macro and rename to...
358 (target_pause_all): ... this.
359 (unpause_all): Update the macro and rename to...
360 (target_unpause_all): ... this.
361 * target.cc (process_target::pause_all): Define.
362 (process_target::unpause_all): Define.
364 Update the derived classes and callers below.
366 * server.cc (handle_status): Update.
367 * tracepoint.cc (clear_installed_tracepoints): Update.
369 (cmd_qtstart): Update.
370 (stop_tracing): Update.
371 (cmd_qtstatus): Update.
372 (upload_fast_traceframes): Update.
373 (run_inferior_command): Update.
374 * linux-low.cc (linux_target_ops): Update.
375 (linux_pause_all): Turn into ...
376 (linux_process_target::pause_all): ... this.
377 (linux_unpause_all): Turn into ...
378 (linux_process_target::unpause_all): ... this.
379 (linux_process_target::prepare_to_access_memory): Update.
380 (linux_process_target::done_accessing_memory): Update.
381 * linux-low.h (class linux_process_target): Update.
382 * lynx-low.cc (lynx_target_ops): Update.
383 * nto-low.cc (nto_target_ops): Update.
384 * win32-low.cc (win32_target_ops): Update.
386 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
388 Turn process_stratum_target's get_tib_address op into a method of
391 * target.h (struct process_stratum_target): Remove the target op.
392 (class process_target): Add the target op. Also add
393 'supports_get_tib_address'.
394 * target.cc (process_target::get_tib_address): Define.
395 (process_target::supports_get_tib_address): Define.
397 Update the derived classes and callers below.
399 * server.cc (handle_query): Update.
400 * linux-low.cc (win32_target_ops): Update.
401 * lynx-low.cc (lynx_target_ops): Update.
402 * nto-low.cc (nto_target_ops): Update.
403 * win32-low.cc (win32_target_ops): Update.
404 (win32_process_target::supports_get_tib_address): Define.
405 (win32_get_tib_address): Turn into ...
406 (win32_process_target::get_tib_address): ... this.
407 * win32-low.h (class win32_process_target): Update.
409 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
411 Turn process_stratum_target's thread_stopped op into a method of
414 * target.h (struct process_stratum_target): Remove the target op.
415 (class process_target): Add the target op. Also add
416 'supports_thread_stopped'.
417 (target_thread_stopped): Update the macro.
418 * target.cc (process_target::thread_stopped): Define.
419 (process_target::supports_thread_stopped): Define.
420 (prepare_to_access_memory): Update.
422 Update the derived classes and callers below.
424 * server.cc (queue_stop_reply_callback): Update.
425 * linux-low.cc (linux_target_ops): Update.
426 (linux_process_target::supports_thread_stopped): Define.
427 (linux_thread_stopped): Turn into ...
428 (linux_process_target::thread_stopped): ... this.
429 * linux-low.h (class linux_process_target): Update.
430 * lynx-low.cc (lynx_target_ops): Update.
431 * nto-low.cc (nto_target_ops): Update.
432 * win32-low.cc (win32_target_ops): Update.
434 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
436 Turn process_stratum_target's read_pc and write_pc ops into
437 methods of process_target.
439 * target.h (struct process_stratum_target): Remove the target ops.
440 (class process_target): Add the target ops.
441 * target.cc (process_target::read_pc): Define.
442 (process_target::write_pc): Define.
444 Update the derived classes and callers below.
446 * regcache.cc (regcache_read_pc): Update.
447 (regcache_write_pc): Update.
448 * linux-low.cc (linux_target_ops): Update.
449 (linux_read_pc): Turn into ...
450 (linux_process_target::read_pc): ... this.
451 (linux_write_pc): Turn into ...
452 (linux_process_target::write_pc): ... 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.
458 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
460 Turn process_stratum_target's supports_tracepoints op into a
461 method of process_target.
463 * target.h (struct process_stratum_target): Remove the target op.
464 (class process_target): Add the target op.
465 (target_supports_tracepoints): Update the macro.
466 * target.cc (process_target::supports_tracepoints): Define.
468 Update the derived classes and callers below.
470 * linux-low.cc (linux_target_ops): Update.
471 (linux_supports_tracepoints): Turn into ...
472 (linux_process_target::supports_tracepoints): ... this.
473 * linux-low.h (class linux_process_target): Update.
474 * lynx-low.cc (lynx_target_ops): Update.
475 * nto-low.cc (nto_target_ops): Update.
476 * win32-low.cc (win32_target_ops): Update.
478 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
480 Turn process_stratum_target's process_qsupported op into a method
483 * target.h (struct process_stratum_target): Remove the target op.
484 (class process_target): Add the target op.
485 (target_process_qsupported): Update the macro.
486 * target.cc (process_target::process_qsupported): Define.
488 Update the derived classes and callers below.
490 * linux-low.cc (linux_target_ops): Update.
491 (linux_process_qsupported): Turn into ...
492 (linux_process_target::process_qsupported): ... this.
493 * linux-low.h (class linux_process_target): Update.
494 * lynx-low.cc (lynx_target_ops): Update.
495 * nto-low.cc (nto_target_ops): Update.
496 * win32-low.cc (win32_target_ops): Update.
498 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
500 Turn process_stratum_target's read_loadmap op into a method of
503 * target.h (struct process_stratum_target): Remove the target op.
504 (class process_target): Add the target op. Also add
505 'supports_read_loadmap'.
506 * target.cc (process_target::read_loadmap): Define.
507 (process_target::supports_read_loadmap): Define.
509 Update the derived classes and callers below.
511 * server.cc (handle_qxfer_fdpic): Update.
512 (handle_query): Update.
513 * linux-low.cc (linux_target_ops): Update.
514 (linux_process_target::supports_read_loadmap): Define.
515 (linux_read_loadmap): Turn into ...
516 (linux_process_target::read_loadmap): ... this.
517 * linux-low.h (class linux_process_target): Update.
518 * lynx-low.cc (lynx_target_ops): Update.
519 * nto-low.cc (nto_target_ops): Update.
520 * win32-low.cc (win32_target_ops): Update.
522 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
524 Turn process_stratum_target's core_of_thread op into a method of
527 * target.h (struct process_stratum_target): Remove the target op.
528 (class process_target): Add the target op.
529 (target_core_of_thread): Update the macro.
530 * target.cc (process_target::core_of_thread): Define.
532 Update the derived classes and callers below.
534 * linux-low.cc (linux_target_ops): Update.
535 (linux_process_target::core_of_thread): Define.
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.
541 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
543 Turn process_stratum_target's handle_monitor_command op into a
544 method of process_target.
546 * target.h (struct process_stratum_target): Remove the target op.
547 (class process_target): Add the target op.
548 (target_handle_monitor_command): Update the macro.
549 * target.cc (process_target::handle_monitor_command): Define.
551 Update the derived classes and callers below.
553 * server.cc (handle_query): Update.
554 * linux-low.cc (linux_target_ops): Update.
555 (linux_process_target::handle_monitor_command): Define.
556 * linux-low.h (class linux_process_target): Update.
557 * lynx-low.cc (lynx_target_ops): Update.
558 * nto-low.cc (nto_target_ops): Update.
559 * win32-low.cc (win32_target_ops): Update.
561 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
563 Turn process_stratum_target's handle_new_gdb_connection op into a
564 method of process_target.
566 * target.h (struct process_stratum_target): Remove the target op.
567 (class process_target): Add the target op.
568 (target_handle_new_gdb_connection): Update the macro.
569 * target.cc (process_target::handle_new_gdb_connection): Define.
571 Update the derived classes and callers below.
573 * linux-low.cc (linux_target_ops): Update.
574 (linux_handle_new_gdb_connection): Turn into ...
575 (linux_process_target::handle_new_gdb_connection): ... this.
576 * linux-low.h (class linux_process_target): Update.
577 * lynx-low.cc (lynx_target_ops): Update.
578 * nto-low.cc (nto_target_ops): Update.
579 * win32-low.cc (win32_target_ops): Update.
581 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
583 Turn process_stratum_target's supports_fork_events,
584 supports_vfork_events, and supports_exec_events ops into methods
587 * target.h (struct process_stratum_target): Remove the target ops.
588 (class process_target): Add the target ops.
589 (target_supports_fork_events): Update the macro.
590 (target_supports_vfork_events): Update the macro.
591 (target_supports_exec_events): Update the macro.
592 * target.cc (process_target::supports_fork_events): Define.
593 (process_target::supports_vfork_events): Define.
594 (process_target::supports_exec_events): Define.
596 Update the derived classes and callers below.
598 * linux-low.cc (linux_target_ops): Update.
599 (linux_supports_fork_events): Turn into ...
600 (linux_process_target::supports_fork_events): ... this.
601 (linux_supports_vfork_events): Turn into ...
602 (linux_process_target::supports_vfork_events): ... this.
603 (linux_supports_exec_events): Turn into ...
604 (linux_process_target::supports_exec_events): ... this.
605 * linux-low.h (class linux_process_target): Update.
606 * lynx-low.cc (lynx_target_ops): Update.
607 * nto-low.cc (nto_target_ops): Update.
608 * win32-low.cc (win32_target_ops): Update.
610 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
612 Turn process_stratum_target's supports_multi_process op into a
613 method of process_target.
615 * target.h (struct process_stratum_target): Remove the target op.
616 (class process_target): Add the target op.
617 * target.cc (process_target::supports_multi_process): Define.
618 (target_supports_multi_process): Update.
620 Update the derived classes and callers below.
622 * linux-low.cc (linux_target_ops): Update.
623 (linux_supports_multi_process): Turn into ...
624 (linux_process_target::supports_multi_process): ... this.
625 * linux-low.h (class linux_process_target): Update.
626 * lynx-low.cc (lynx_target_ops): Update.
627 * nto-low.cc (nto_target_ops): Update.
628 * win32-low.cc (win32_target_ops): Update.
630 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
632 Turn process_stratum_target's supports_non_stop, async, and
633 start_non_stop ops into methods of process_target.
635 * target.h (struct process_stratum_target): Remove the target ops.
636 (class process_target): Add the target ops.
637 (target_supports_non_stop): Update the macro.
638 (target_async): Update the macro.
639 (start_non_stop): Remove declaration.
640 * target.cc (process_target::supports_non_stop): Define.
641 (process_target::async): Define.
642 (process_target::start_non_stop): Define.
643 (start_non_stop): Remove.
645 Update the derived classes and callers below.
647 * server.cc (handle_qxfer_siginfo): Update.
648 (handle_query): Update.
649 * linux-low.cc (linux_target_ops): Update.
650 (linux_supports_non_stop): Turn into ...
651 (linux_process_target::supports_non_stop): ... this.
652 (linux_async): Turn into ...
653 (linux_process_target::async): ... this.
654 (linux_start_non_stop): Turn into ...
655 (linux_process_target::start_non_stop): ... this.
656 * linux-low.h (class linux_process_target): Update.
657 * lynx-low.cc (lynx_target_ops): Update.
658 * nto-low.cc (nto_target_ops): Update.
659 (nto_supports_non_stop): Remove; rely on the default behavior
661 * win32-low.cc (win32_target_ops): Update.
663 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
665 Turn process_stratum_target's qxfer_siginfo op into a method of
668 * target.h (struct process_stratum_target): Remove the target op.
669 (class process_target): Add the target op. Also add
670 'supports_qxfer_siginfo'.
671 * target.cc (process_target::qxfer_siginfo): Define.
672 (process_target::supports_qxfer_siginfo): Define.
674 Update the derived classes and callers below.
676 * server.cc (handle_qxfer_siginfo): Update.
677 (handle_query): Update.
678 * linux-low.cc (linux_target_ops): Update.
679 (linux_process_target::supports_qxfer_siginfo): Define.
680 (linux_xfer_siginfo): Turn into ...
681 (linux_process_target::qxfer_siginfo): ... this.
682 * linux-low.h (class linux_process_target): Update.
683 * lynx-low.cc (lynx_target_ops): Update.
684 * nto-low.cc (nto_target_ops): Update.
685 * win32-low.cc (win32_target_ops): Update.
687 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
689 Turn process_stratum_target's qxfer_osdata op into a method of
692 * target.h (struct process_stratum_target): Remove the target op.
693 (class process_target): Add the target op. Also add
694 'supports_qxfer_osdata'.
695 * target.cc (process_target::qxfer_osdata): Define.
696 (process_target::supports_qxfer_osdata): Define.
698 Update the derived classes and callers below.
700 * server.cc (handle_qxfer_osdata): Update.
701 (handle_query): Update.
702 * linux-low.cc (linux_target_ops): Update.
703 (linux_process_target::supports_qxfer_osdata): Define.
704 (linux_qxfer_osdata): Turn into ...
705 (linux_process_target::qxfer_osdata): ... this.
706 * linux-low.h (class linux_process_target): Update.
707 * lynx-low.cc (lynx_target_ops): Update.
708 * nto-low.cc (nto_target_ops): Update.
709 * win32-low.cc (win32_target_ops): Update.
711 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
713 Turn process_stratum_target's hostio_last_error op into a
714 method of process_target.
716 * target.h (struct process_stratum_target): Remove the target op.
717 (class process_target): Add the target op.
718 * target.cc: Add "hostio.h" to includes.
719 (process_target::hostio_last_error): Define.
721 Update the derived classes and callers below.
723 * hostio.cc (hostio_error): Update.
724 * linux-low.cc: Remove "hostio.h" from includes.
725 (linux_target_ops): Update.
726 * lynx-low.cc (lynx_target_ops): Update.
727 * nto-low.cc (nto_target_ops): Update.
728 * win32-low.h (class win32_process_target): Update.
729 * win32-low.cc (win32_target_ops): Update.
730 (wince_hostio_last_error): Turn into ...
731 (win32_process_target::hostio_last_error): ... this.
733 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
735 Turn process_stratum_target's get_tls_address op into a method of
738 * target.h (struct process_stratum_target): Remove the target op.
739 (class process_target): Add the target op. Also add
740 'supports_get_tls_address'.
741 * target.cc (process_target::get_tls_address): Define.
742 (process_target::supports_get_tls_address): Define.
744 Update the derived classes and callers below.
746 * server.cc (handle_query): Update.
747 * linux-low.cc (linux_target_ops): Update.
748 (linux_process_target::supports_get_tls_address): Define.
749 (linux_process_target::get_tls_address): Define.
750 * linux-low.h (class linux_process_target): Update.
751 * lynx-low.cc (lynx_target_ops): Update.
752 * nto-low.cc (nto_target_ops): Update.
753 * win32-low.cc (win32_target_ops): Update.
755 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
757 Turn process_stratum_target's read_offsets op into a method of
760 * target.h (struct process_stratum_target): Remove the target op.
761 (class process_target): Add the target op. Also add
762 'supports_read_offsets'.
763 * target.cc (process_target::read_offsets): Define.
764 (process_target::supports_read_offsets): Define.
766 Update the derived classes and callers below.
768 * server.cc (handle_query): Update.
769 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
770 (linux_target_ops): Update.
771 (linux_process_target::supports_read_offsets): Define.
772 (linux_read_offsets): Turn into ...
773 (linux_process_target::read_offsets): ... this.
774 * linux-low.h (class linux_process_target): Update.
775 * lynx-low.cc (lynx_target_ops): Update.
776 * nto-low.cc (nto_target_ops): Update.
777 * win32-low.cc (win32_target_ops): Update.
779 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
781 Turn process_stratum_target's stopped_by_watchpoint and
782 stopped_data_address ops into methods of process_target.
784 * target.h (struct process_stratum_target): Remove the target ops.
785 (class process_target): Add the target ops.
786 * target.cc (process_target::stopped_by_watchpoint): Define.
787 (process_target::stopped_data_address): Define.
789 Update the derived classes and callers below.
791 * remote-utils.cc (prepare_resume_reply): Update.
792 * linux-low.cc (linux_target_ops): Update.
793 (linux_stopped_by_watchpoint): Turn into ...
794 (linux_process_target::stopped_by_watchpoint): ... this.
795 (linux_stopped_data_address): Turn into ...
796 (linux_process_target::stopped_data_address): ... this.
797 * linux-low.h (class linux_process_target): Update.
798 * lynx-low.cc (lynx_target_ops): Update.
799 * nto-low.cc (nto_target_ops): Update.
800 (nto_stopped_by_watchpoint): Turn into ...
801 (nto_process_target::stopped_by_watchpoint): ... this.
802 (nto_stopped_data_address): Turn into ...
803 (nto_process_target::stopped_data_address): ... this.
804 * nto-low.h (class nto_process_target): Update.
805 * win32-low.cc (win32_target_ops): Update.
806 (win32_stopped_by_watchpoint): Turn into ...
807 (win32_process_target::stopped_by_watchpoint): ... this.
808 (win32_stopped_data_address): Turn into ...
809 (win32_process_target::stopped_data_address): ... this.
810 * win32-low.h (class win32_process_target): Update.
812 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
814 Turn process_stratum_target's supports_hardware_single_step op into
815 a method of process_target.
817 * target.h (struct process_stratum_target): Remove the target op.
818 (class process_target): Add the target op.
819 (target_supports_hardware_single_step): Update the macro.
820 (target_can_do_hardware_single_step): Remove declaration.
821 * target.cc (process_target::supports_hardware_single_step): Define.
822 (target_can_do_hardware_single_step): Remove.
824 Update the derived classes and callers below.
826 * linux-low.h (class linux_process_target): Update.
827 * linux-low.cc (linux_target_ops): Update.
828 (linux_supports_hardware_single_step): Turn into ...
829 (linux_process_target::supports_hardware_single_step): ... this.
830 * lynx-low.h (class lynx_process_target): Update.
831 * lynx-low.cc (lynx_target_ops): Update.
832 (lynx_process_target::supports_hardware_single_step): Define.
833 * nto-low.h (class nto_process_target): Update.
834 * nto-low.cc (nto_target_ops): Update.
835 (nto_process_target::supports_hardware_single_step): Define.
836 * win32-low.h (class win32_process_target): Update.
837 * win32-low.cc (win32_target_ops): Update.
838 (win32_process_target::supports_hardware_single_step): Define.
840 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
842 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
843 ops into methods of process_target.
845 * target.h (struct process_stratum_target): Remove the target ops.
846 (class process_target): Add the target ops.
847 (target_stopped_by_hw_breakpoint): Update the macro.
848 (target_supports_stopped_by_hw_breakpoint): Update the macro.
849 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
850 (process_target::supports_stopped_by_hw_breakpoint): Define.
852 Update the derived classes and callers below.
854 * linux-low.cc (linux_target_ops): Update.
855 (linux_stopped_by_hw_breakpoint): Turn into ...
856 (linux_process_target::stopped_by_hw_breakpoint): ... this.
857 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
858 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
859 * linux-low.h (class linux_process_target): Update.
860 * lynx-low.cc (lynx_target_ops): Update.
861 * nto-low.cc (nto_target_ops): Update.
862 * win32-low.cc (win32_target_ops): Update.
864 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
866 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
867 ops into methods of process_target.
869 * target.h (struct process_stratum_target): Remove the target ops.
870 (class process_target): Add the target ops.
871 (target_stopped_by_sw_breakpoint): Update the macro.
872 (target_supports_stopped_by_sw_breakpoint): Update the macro.
873 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
874 (process_target::supports_stopped_by_sw_breakpoint): Define.
876 Update the derived classes and callers below.
878 * linux-low.cc (linux_target_ops): Update.
879 (linux_stopped_by_sw_breakpoint): Turn into ...
880 (linux_process_target::stopped_by_sw_breakpoint): ... this.
881 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
882 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
883 * linux-low.h (class linux_process_target): Update.
884 * lynx-low.cc (lynx_target_ops): Update.
885 * nto-low.cc (nto_target_ops): Update.
886 * win32-low.cc (win32_target_ops): Update.
888 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
890 Turn process_stratum_target's insert_point and remove_point ops
891 into methods of process_target.
893 * target.h (struct process_stratum_target): Remove the target ops.
894 (class process_target): Add the target ops.
895 * target.cc (process_target::insert_point): Define.
896 (process_target::remove_point): Define.
898 Update the derived classes and callers below.
900 * mem-break.cc (set_raw_breakpoint_at): Update.
901 (delete_raw_breakpoint): Update.
902 (uninsert_raw_breakpoint): Update.
903 (reinsert_raw_breakpoint): Update.
904 * linux-low.cc (linux_target_ops): Update.
905 (linux_insert_point): Turn into ...
906 (linux_process_target::insert_point): ... this.
907 (linux_remove_point): Turn into ...
908 (linux_process_target::remove_point): ... this.
909 * linux-low.h (class linux_process_target): Update.
910 * lynx-low.cc (lynx_target_ops): Update.
911 * nto-low.cc (nto_target_ops): Update.
912 (nto_insert_point): Turn into ...
913 (nto_process_target::insert_point): ... this.
914 (nto_remove_point): Turn into ...
915 (nto_process_target::remove_point): ... this.
916 * nto-low.h (class nto_process_target): Update.
917 * win32-low.cc (win32_target_ops): Update.
918 (win32_insert_point): Turn into ...
919 (win32_process_target::insert_point): ... this.
920 (win32_remove_point): Turn into ...
921 (win32_process_target::remove_point): ... this.
922 * win32-low.h (class win32_process_target): Update.
924 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
926 Turn process_stratum_target's supports_z_point_type op into a
927 method of process_target.
929 * target.h (struct process_stratum_target): Remove the target op.
930 (class process_target): Add the target op.
931 * target.cc (process_target::supports_z_point_type): Define.
933 Update the derived classes and callers below.
935 * mem-break.cc (z_type_supported): Update.
936 * linux-low.cc (linux_target_ops): Update.
937 (linux_supports_z_point_type): Turn into ...
938 (linux_process_target::supports_z_point_type): ... this.
939 * linux-low.h (class linux_process_target): Update.
940 * lynx-low.cc (lynx_target_ops): Update.
941 * nto-low.cc (nto_target_ops): Update.
942 (nto_supports_z_point_type): Turn into ...
943 (nto_process_target::supports_z_point_type): ... this.
944 * nto-low.h (class nto_process_target): Update.
945 * win32-low.cc (win32_target_ops): Update.
946 (win32_supports_z_point_type): Turn into ...
947 (win32_process_target::supports_z_point_type): ... this.
948 * win32-low.h (class win32_process_target): Update.
950 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
952 Turn process_stratum_target's read_auxv op into a method of
955 * target.h (class process_stratum_target): Remove the target op.
956 (struct process_target): Add the target op. Also add
957 'supports_read_auxv'.
958 * target.cc (process_target::read_auxv): Define.
959 (process_target::supports_read_auxv): Define.
961 Update the derived classes and callers below.
963 * server.cc (handle_qxfer_auxv): Update.
964 (handle_query): Update.
965 * linux-low.cc (linux_target_ops): Update.
966 (linux_process_target::supports_read_auxv): Define.
967 (linux_read_auxv): Turn into ...
968 (linux_process_target::read_auxv): ... this.
969 * linux-low.h (class linux_process_target): Update.
970 * lynx-low.cc (lynx_target_ops): Update.
971 * nto-low.cc (nto_target_ops): Update.
972 (nto_process_target::supports_read_auxv): Define.
973 (nto_read_auxv): Turn into ...
974 (nto_process_target::read_auxv): ... this.
975 * nto-low.h (class nto_process_target): Update.
976 * win32-low.cc (win32_target_ops): Update.
978 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
980 Turn process_stratum_target's request_interrupt op into a method of
983 * target.h (struct process_stratum_target): Remove the target op.
984 (class process_target): Add the target op.
986 Update the derived classes and callers below.
988 * remote-utils.cc (putpkt_binary_1): Update.
989 (input_interrupt): Update.
991 * server.cc (handle_v_requests): Update.
992 * linux-low.cc (linux_target_ops): Update.
993 (linux_request_interrupt): Turn into ...
994 (linux_process_target::request_interrupt): ... this.
995 * linux-low.h (class linux_process_target): Update.
996 * lynx-low.cc (lynx_target_ops): Update.
997 (lynx_request_interrupt): Turn into ...
998 (lynx_process_target::request_interrupt): ... this.
999 * lynx-low.h (class lynx_process_target): Update.
1000 * nto-low.cc (nto_target_ops): Update.
1001 (nto_request_interrupt): Turn into ...
1002 (nto_process_target::request_interrupt): ... this.
1003 * nto-low.h (class nto_process_target): Update.
1004 * win32-low.cc (win32_target_ops): Update.
1005 (win32_request_interrupt): Turn into ...
1006 (win32_process_target::request_interrupt): ... this.
1007 * win32-low.h (class win32_process_target): Update.
1009 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1011 Turn process_stratum_target's look_up_symbols op into a method of
1014 * target.h (struct process_stratum_target): Remove the target op.
1015 (class process_target): Add the target op.
1016 * target.cc (process_target::look_up_symbols): Define.
1018 Update the derived classes and callers below.
1020 * server.cc (handle_query): Update.
1021 * linux-low.cc (linux_target_ops): Update.
1022 (linux_look_up_symbols): Turn into ...
1023 (linux_process_target::look_up_symbols): ... this.
1024 * linux-low.h (class linux_process_target): Update.
1025 * lynx-low.cc (lynx_target_ops): Update.
1026 * nto-low.cc (nto_target_ops): Update.
1027 * win32-low.cc (win32_target_ops): Update.
1029 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1031 Turn process_stratum_target's read_memory and write_memory
1032 ops into methods of process_target.
1034 * target.h (struct process_stratum_target): Remove the target ops.
1035 (class process_target): Add the target ops.
1037 Update the derived classes and callers below.
1039 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1040 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1041 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1042 (arm_get_syscall_trapinfo): Update.
1043 * linux-cris-low.cc (cris_breakpoint_at): Update.
1044 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1045 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1046 * linux-mips-low.cc (mips_breakpoint_at): Update.
1047 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1048 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1049 * linux-sh-low.cc (sh_breakpoint_at): Update.
1050 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1051 (sparc_store_gregset_from_stack): Update.
1052 (sparc_breakpoint_at): Update.
1053 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1054 * linux-tile-low.cc (tile_breakpoint_at): Update.
1055 * linux-x86-low.cc (x86_breakpoint_at): Update.
1056 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1057 * mem-brea.cc (insert_memory_breakpoint): Update.
1058 (validate_inserted_breakpoint): Update.
1059 * target.cc (read_inferior_memory): Update.
1060 (target_write_memory): Update.
1061 * linux-low.cc (linux_target_ops): Update.
1062 (linux_read_memory): Make a wrapper around the read_memory target
1064 (linux_process_target::read_memory): Rename from linux_read_memory.
1065 (linux_write_memory): Turn into ...
1066 (linux_process_target::write_memory): ... this.
1067 * linux-low.h (class linux_process_target): Update.
1068 * lynx-low.cc (lynx_target_ops): Update.
1069 (lynx_read_memory): Turn into ...
1070 (lynx_process_target::read_memory): ... this.
1071 (lynx_write_memory): Turn into ...
1072 (lynx_process_target::write_memory): ... this.
1073 * lynx-low.h (class lynx_process_target): Update.
1074 * nto-low.cc (nto_target_ops): Update.
1075 (nto_read_memory): Turn into ...
1076 (nto_process_target::read_memory): ... this.
1077 (nto_write_memory): Turn into ...
1078 (nto_process_target::write_memory): ... this.
1079 * nto-low.h (class nto_process_target): Update.
1080 * win32-low.cc (win32_target_ops): Update.
1081 (win32_read_inferior_memory): Turn into ...
1082 (win32_process_target::read_memory): ... this.
1083 (win32_write_inferior_memory): Turn into ...
1084 (win32_process_target::write_memory): ... this.
1085 * win32-low.h (class win32_process_target): Update.
1087 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1089 Turn process_stratum_target's prepare_to_access_memory and
1090 done_accessing_memory ops into methods of process_target.
1092 * target.h (struct process_stratum_target): Remove the target ops.
1093 (class process_target): Add the target ops.
1094 * target.cc (process_target::prepare_to_access_memory): Define.
1095 (process_target::done_accessing_memory): Define.
1096 (prepare_to_access_memory): Update.
1097 (done_accessing_memory): Update.
1099 Update the derived classes and callers below.
1101 * linux-low.cc (linux_target_ops): Update.
1102 (linux_prepare_to_access_memory): Turn into ...
1103 (linux_process_target::prepare_to_access_memory): ... this.
1104 (linux_done_accessing_memory): Turn into ...
1105 (linux_process_target::done_accessing_memory): ... this.
1106 * linux-low.h (class linux_process_target): Update.
1107 * lynx-low.cc (lynx_target_ops): Update.
1108 * nto-low.cc (nto_target_ops): Update.
1109 * win32-low.cc (win32_target_ops): Update.
1111 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1113 Turn process_stratum_target's fetch_registers and store_registers
1114 ops into methods of process_target.
1116 * target.h (struct process_stratum_target): Remove the target ops.
1117 (class process_target): Add the target ops.
1118 (fetch_inferior_registers): Update the macro.
1119 (store_inferior_registers): Update the macro.
1121 Update the derived classes and callers below.
1123 * linux-low.cc (linux_target_ops): Update.
1124 (linux_fetch_registers): Turn into ...
1125 (linux_process_target::fetch_registers): ... this.
1126 (linux_store_registers): Turn into ...
1127 (linux_process_target::store_registers): ... this.
1128 * linux-low.h (class linux_process_target): Update.
1129 * lynx-low.cc (lynx_target_ops): Update.
1130 (lynx_fetch_registers): Turn into ...
1131 (lynx_process_target::fetch_registers): ... this.
1132 (lynx_store_registers): Turn into ...
1133 (lynx_process_target::store_registers): ... this.
1134 * lynx-low.h (class lynx_process_target): Update.
1135 * nto-low.cc (nto_target_ops): Update.
1136 (nto_fetch_registers): Turn into ...
1137 (nto_process_target::fetch_registers): ... this.
1138 (nto_store_registers): Turn into ...
1139 (nto_process_target::store_registers): ... this.
1140 * nto-low.h (class nto_process_target): Update.
1141 * win32-low.cc (win32_target_ops): Update.
1142 (win32_fetch_inferior_registers): Turn into ...
1143 (win32_process_target::fetch_registers): ... this.
1144 (win32_store_inferior_registers): Turn into ...
1145 (win32_process_target::store_registers): ... this.
1146 * win32-low.h (class win32_process_target): Update.
1148 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1150 Turn process_stratum_target's wait op into a method of
1153 * target.h (struct process_stratum_target): Remove the target op.
1154 (class process_target): Add the target op.
1156 Update the derived classes and callers below.
1158 * target.cc (target_wait): Update.
1159 * linux-low.cc (linux_target_ops): Update.
1160 (linux_wait): Turn into ...
1161 (linux_process_target::wait): ... this.
1162 * linux-low.h (class linux_process_target): Update.
1163 * lynx-low.cc (lynx_target_ops): Update.
1164 (lynx_wait): Turn into ...
1165 (lynx_process_target::wait): ... this.
1166 * lynx-low.h (class lynx_process_target): Update.
1167 * nto-low.cc (nto_target_ops): Update.
1168 (nto_wait): Turn into ...
1169 (nto_process_target::wait): ... this.
1170 * nto-low.h (class nto_process_target): Update.
1171 * win32-low.cc (win32_target_ops): Update.
1172 (win32_wait): Turn into ...
1173 (win32_process_target::wait): ... this.
1174 (do_initial_child_stuff): Update.
1175 * win32-low.h (class win32_process_target): Update.
1177 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1179 Turn process_stratum_target's resume op into a method of
1182 * target.h (struct process_stratum_target): Remove the target op.
1183 (class process_target): Add the target op.
1185 Update the derived classes and callers below.
1187 * server.cc (resume): Update.
1188 * target.cc (target_stop_and_wait): Update.
1189 (target_continue_no_signal): Update.
1190 (target_continue): Update.
1191 * linux-low.cc (linux_target_ops): Update.
1192 (linux_resume): Turn into ...
1193 (linux_process_target::resume): ... this.
1194 * linux-low.h (class linux_process_target): Update.
1195 * lynx-low.cc (lynx_target_ops): Update.
1196 (lynx_resume): Turn into ...
1197 (lynx_process_target::resume): ... this.
1198 * lynx-low.h (class lynx_process_target): Update.
1199 * nto-low.cc (nto_target_ops): Update.
1200 (nto_resume): Turn into ...
1201 (nto_process_target::resume): ... this.
1202 * nto-low.h (class nto_process_target): Update.
1203 * win32-low.cc (win32_target_ops): Update.
1204 (win32_resume): Turn into ...
1205 (win32_process_target::resume): ... this.
1206 (win32_process_target::detach): Update.
1207 (do_initial_child_stuff): Update.
1208 * win32-low.h (class win32_process_target): Update.
1210 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1212 Turn process_stratum_target's thread_alive op into a method of
1215 * target.h (struct process_stratum_target): Remove the target op.
1216 (class process_target): Add the target op.
1217 (mythread_alive): Update the macro.
1219 Update the derived classes and callers below.
1221 * linux-low.cc (linux_target_ops): Update.
1222 (linux_thread_alive): Turn into ...
1223 (linux_process_target::thread_alive): ... this.
1224 (wait_for_sigstop): Update.
1225 * linux-low.h (class linux_process_target): Update.
1226 * lynx-low.cc (lynx_target_ops): Update.
1227 (lynx_thread_alive): Turn into ...
1228 (lynx_process_target::thread_alive): ... this.
1229 * lynx-low.h (class lynx_process_target): Update.
1230 * nto-low.cc (nto_target_ops): Update.
1231 (nto_thread_alive): Turn into ...
1232 (nto_process_target::thread_alive): ... this.
1233 * nto-low.h (class nto_process_target): Update.
1234 * win32-low.cc (win32_target_ops): Update.
1235 (win32_thread_alive): Turn into ...
1236 (win32_process_target::thread_alive): ... this.
1237 * win32-low.h (class win32_process_target): Update.
1239 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1241 Turn process_stratum_target's join op into a method of
1244 * target.h (struct process_stratum_target): Remove the target op.
1245 (class process_target): Add the target op.
1246 (join_inferior): Update the macro.
1248 Update the derived classes and callers below.
1250 * linux-low.cc (linux_target_ops): Update.
1251 (linux_join): Turn into ...
1252 (linux_process_target::join): ... this.
1253 * linux-low.h (class linux_process_target): Update.
1254 * lynx-low.cc (lynx_target_ops): Update.
1255 (lynx_join): Turn into ...
1256 (lynx_process_target::join): ... this.
1257 * lynx-low.h (class lynx_process_target): Update.
1258 * nto-low.cc (nto_target_ops): Update.
1259 (nto_process_target::join): Define.
1260 * nto-low.h (class nto_process_target): Update.
1261 * win32-low.cc (win32_target_ops): Update.
1262 (win32_join): Turn into ...
1263 (win32_process_target::join): ... this.
1264 * win32-low.h (class win32_process_target): Update.
1266 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1268 Turn process_stratum_target's mourn op into a method of
1271 * target.h (struct process_stratum_target): Remove the target op.
1272 (class process_target): Add the target op.
1274 Update the derived classes and callers below.
1276 * target.cc (target_mourn_inferior): Update.
1277 * linux-low.cc (linux_target_ops): Update.
1278 (linux_mourn): Turn into ...
1279 (linux_process_target::mourn): ... this.
1280 (handle_extended_wait): Update.
1281 (linux_process_target::kill): Update.
1282 (linux_process_target::detach): Update.
1283 * linux-low.h (class linux_process_target): Update.
1284 * lynx-low.cc (lynx_target_ops): Update.
1285 (lynx_mourn): Turn into ...
1286 (lynx_process_target::mourn): ... this.
1287 * lynx-low.h (class lynx_process_target): Update.
1288 * nto-low.cc (nto_target_ops): Update.
1289 (nto_mourn): Turn into ...
1290 (nto_process_target::mourn): ... this.
1291 * nto-low.h (class nto_process_target): Update.
1292 * win32-low.cc (win32_target_ops): Update.
1293 (win32_mourn): Turn into ...
1294 (win32_process_target::mourn): ... this.
1295 * win32-low.h (class win32_process_target): Update.
1297 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1299 Turn process_stratum_target's detach op into a method of
1302 * target.h (struct process_stratum_target): Remove the target op.
1303 (class process_target): Add the target op.
1304 (detach_inferior): Update the macro.
1306 Update the derived classes and callers below.
1308 * linux-low.cc (linux_target_ops): Update.
1309 (linux_detach): Turn into ...
1310 (linux_process_target::detach): ... this.
1311 * linux-low.h (class linux_process_target): Update.
1312 * lynx-low.cc (lynx_target_ops): Update.
1313 (lynx_detach): Turn into ...
1314 (lynx_process_target::detach): ... this.
1315 * lynx-low.h (class lynx_process_target): Update.
1316 * nto-low.cc (nto_target_ops): Update.
1317 (nto_detach): Turn into ...
1318 (nto_process_target::detach): ... this.
1319 * nto-low.h (class nto_process_target): Update.
1320 * win32-low.cc (win32_target_ops): Update.
1321 (win32_detach): Turn into ...
1322 (win32_process_target::detach): ... this.
1323 * win32-low.h (class win32_process_target): Update.
1325 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1327 Turn process_stratum_target's kill op into a method of
1330 * target.h (struct process_stratum_target): Remove the target op.
1331 (class process_target): Add the target op.
1333 Update the derived classes and callers below.
1335 * target.cc (kill_inferior): Update.
1336 * linux-low.cc (linux_target_ops): Update.
1337 (linux_kill): Turn into ...
1338 (linux_process_target::kill): ... this.
1339 * linux-low.h (class linux_process_target): Update.
1340 * lynx-low.cc (lynx_target_ops): Update.
1341 (lynx_kill): Turn into ...
1342 (lynx_process_target::kill): ... this.
1343 * lynx-low.h (class lynx_process_target): Update.
1344 * nto-low.cc (nto_target_ops): Update.
1345 (nto_kill): Turn into ...
1346 (nto_process_target::kill): ... this.
1347 * nto-low.h (class nto_process_target): Update.
1348 * win32-low.cc (win32_target_ops): Update.
1349 (win32_kill): Turn into ...
1350 (win32_process_target::kill): ... this.
1351 * win32-low.h (class win32_process_target): Update.
1353 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1355 Turn process_stratum_target's attach op into a method of
1358 * target.h (struct process_stratum_target): Remove the target op.
1359 (class process_target): Add the target op.
1360 (myattach): Update the macro.
1362 Update the derived classes and callers below.
1364 * linux-low.cc (linux_target_ops): Update.
1365 (linux_attach): Turn into ...
1366 (linux_process_target::attach): ... this.
1367 * linux-low.h (class linux_process_target): Update.
1368 * lynx-low.cc (lynx_target_ops): Update.
1369 (lynx_attach): Turn into ...
1370 (lynx_process_target::attach): ... this.
1371 * lynx-low.h (class lynx_process_target): Update.
1372 * nto-low.cc (nto_target_ops): Update.
1373 (nto_attach): Turn into ...
1374 (nto_process_target::attach): ... this.
1375 * nto-low.h (class nto_process_target): Update.
1376 * win32-low.cc (win32_target_ops): Update.
1377 (win32_attach): Turn into ...
1378 (win32_process_target::attach): ... this.
1379 * win32-low.h (class win32_process_target): Update.
1381 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1383 Turn process_stratum_target's post_create_inferior op into a method
1386 * target.h (struct process_stratum_target): Remove the target op.
1387 (class process_target): Add the target op.
1388 (target_post_create_inferior): Update the macro.
1389 * target.cc (process_target::post_create_inferior): Define.
1391 Update the derived classes and callers below.
1393 * linux-low.cc (linux_target_ops): Update.
1394 (linux_post_create_inferior): Turn into ...
1395 (linux_process_target::post_create_inferior): ... this.
1396 * linux-low.h (class linux_process_target): Update.
1397 * lynx-low.cc (lynx_target_ops): Update.
1398 * nto-low.cc (nto_target_ops): Update.
1399 * win32-low.cc (win32_target_ops): Update.
1401 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1403 Turn process_stratum_target's create_inferior op into a method of
1406 * target.h (struct process_stratum_target): Remove the target op.
1407 (class process_target): Add the target op.
1408 (create_inferior): Rename the macro to ...
1409 (target_create_inferior): ... this.
1411 Update the derived classes and callers below.
1413 * server.cc (handle_v_run): Update.
1414 (captured_main): Update.
1415 (process_serial_event): Update.
1416 * linux-low.cc (linux_target_ops): Update.
1417 (linux_create_inferior): Turn into ...
1418 (linux_process_target::create_inferior): ... this.
1419 * linux-low.h (class linux_process_target): Update.
1420 * lynx-low.cc (lynx_target_ops): Update.
1421 (lynx_create_inferior): Turn into ...
1422 (lynx_process_target::create_inferior): ... this.
1423 * lynx-low.h (class lynx_process_target): Update.
1424 * nto-low.cc (nto_target_ops): Update.
1425 (nto_create_inferior): Turn into ...
1426 (nto_process_target::create_inferior): ... this.
1427 * nto-low.h (class nto_process_target): Update.
1428 * win32-low.cc (win32_target_ops): Update.
1429 (win32_create_inferior): Turn into ...
1430 (win32_process_target::create_inferior): ... this.
1431 * win32-low.h (class win32_process_target): Update.
1433 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1435 * target.h (class process_target): New class definition.
1436 (struct process_stratum_target) <pt>: New field with type
1438 * linux-low.h (class linux_process_target): Define as a derived
1439 class of 'process_target'.
1440 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1442 * lynx-low.h (class lynx_process_target): Define as a derived
1443 class of 'process_target'.
1444 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1446 * nto-low.h (class nto_process_target): Define as a derived
1447 class of 'process_target'.
1448 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1450 * win32-low.h (class win32_process_target): Define as a derived
1451 class of 'process_target'.
1452 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1455 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1457 * configure: Regenerate.
1459 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
1460 Andrew Burgess <andrew.burgess@embecosm.com>
1462 * linux-riscv-low.cc: New file.
1463 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1464 and nat/riscv-linux-tdesc.c.
1465 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1466 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1469 2020-02-14 Tom Tromey <tom@tromey.com>
1471 * acinclude.m4: Don't include acx_configure_dir.m4.
1472 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1473 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1474 (all, install-only, uninstall, clean-info, clean)
1475 (maintainer-clean): Don't recurse.
1476 (subdir_do, all-lib): Remove.
1477 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1479 (generated_files): Update.
1480 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1481 * configure: Rebuild.
1482 * configure.ac: Don't configure gnulib or libiberty.
1485 2020-02-14 Eli Zaretskii <eliz@gnu.org>
1487 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
1488 preparing the command line for CreateProcess.
1489 (win32_create_inferior): Reflect the program name in debugging
1490 output that shows the process and its command line.
1492 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1494 * Makefile.in: Rename source files from .c to .cc.
1495 * %.c: Rename to %.cc.
1496 * configure.ac: Rename server.c to server.cc.
1497 * configure: Re-generate.
1499 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
1501 * Makefile.in: Rename gdbsupport source files from .c to .cc.
1503 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
1505 * win32-low.c (win32_create_inferior): Set signal_pid.
1507 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
1508 Pedro Alves <palves@redhat.com>
1510 Skip building gdbserver in a cross-configuration.
1511 * configure.srv: Set $gdbserver_host depending on whether $target
1512 is $host. Use $gdbserver_host instead of $host.
1514 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1516 * configure: Re-generate.
1518 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1520 * configure: Re-generate.
1522 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1524 * acinclude.m4: Update warning.m4 path.
1526 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
1528 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
1529 (handle_exception): Set siginfo_er.
1530 (win32_xfer_siginfo): New function.
1532 2020-02-07 Tom Tromey <tom@tromey.com>
1533 Pedro Alves <palves@redhat.com>
1535 * README: Update build documentation.
1536 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
1538 * configure.ac: Update paths.
1539 * configure: Rebuild.
1540 * acinclude.m4: Update paths.
1541 * Makefile.in: Update include paths.
1542 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
1543 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
1544 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
1545 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
1546 (%-generated.c): Update paths.
1547 * Move entire directory from ../gdb/gdbserver.
1549 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
1551 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
1553 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1555 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
1556 assignment instead of srv_linux_obj.
1558 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
1560 * server.c (handle_qxfer_libraries): Write segment-address with
1563 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
1565 * Makefile.in (install-strip): New target.
1566 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
1567 * aclocal.m4: Regenerate.
1568 * configure: Regenerate.
1569 * configure.ac: Add AM_PROG_INSTALL_STRIP.
1571 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1573 * Makefile.in (SFILES): Adjust paths to point to real files.
1574 (OBS): Move waitstatus.o to target/waitstatus.o.
1575 (TAGS): Transform paths appropriately.
1577 (nat/%.o): ... this pattern rule.
1579 (target/%.o): ... this pattern rule.
1580 * configure.srv: Adjust paths throughout to include nat/ prefix
1581 with the revant files.
1582 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
1583 * configure: Regenerate.
1585 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
1587 * Makefile.in (TAGS): Remove config files from the recipe.
1589 2020-01-14 Tom Tromey <tom@tromey.com>
1591 * configure: Rebuild.
1592 * configure.ac: Remove any checks that were added to common.m4.
1593 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
1596 2020-01-14 Tom Tromey <tom@tromey.com>
1598 * server.h: Include config.h.
1599 * gdbreplay.c: Include config.h.
1600 * configure: Rebuild.
1601 * configure.ac: Don't source common.host.
1602 * acinclude.m4: Update path.
1603 * Makefile.in (INCSUPPORT): New variable.
1604 (INCLUDE_CFLAGS): Add INCSUPPORT.
1605 (SFILES): Update paths.
1606 (version-generated.c): Update path to create-version.sh.
1607 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
1609 2020-01-14 Tom Tromey <tom@tromey.com>
1611 * configure.ac (LIBS): Use WIN32APILIBS.
1612 (USE_WIN32API): Don't define.
1613 * configure: Rebuild.
1615 2020-01-14 Tom Tromey <tom@tromey.com>
1617 * configure: Rebuild.
1619 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1621 * Makefile.in (%-generated.c): Remove rule for files from
1624 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1626 * configure: Re-generate.
1628 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1630 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
1632 * tracepoint.c (stop_tracing, flush_trace_buffer,
1633 about_to_request_buffer_space, get_trace_state_variable_value,
1634 set_trace_state_variable_value, gdb_collect): Add declaration.
1636 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1638 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
1639 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
1640 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
1641 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
1642 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
1645 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1647 * inferiors.c: Include gdbsupport/common-inferior.h.
1649 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1651 * hostio-errno.c: Include hostio.h.
1653 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
1655 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
1658 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1660 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
1661 * linux-arm-tdesc.h: Include arch/arm.h.
1663 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1665 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
1667 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1669 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
1670 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
1672 2020-01-10 Pedro Alves <palves@redhat.com>
1674 * fork-child.c (post_fork_inferior): Pass target down to
1676 * inferiors.c (switch_to_thread): Add process_stratum_target
1678 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
1679 * nto-low.c (nto_target_ops): Now a process_stratum_target.
1680 * linux-low.c (linux_target_ops): Now a process_stratum_target.
1681 * remote-utils.c (prepare_resume_reply): Pass the target to
1683 * target.c (the_target): Now a process_stratum_target.
1684 (done_accessing_memory): Pass the target to switch_to_thread.
1685 (set_target_ops): Ajust to use process_stratum_target.
1686 * target.h (struct target_ops): Rename to ...
1687 (struct process_stratum_target): ... this.
1688 (the_target, set_target_ops): Adjust.
1689 (prepare_to_access_memory): Adjust comment.
1690 * win32-low.c (child_xfer_memory): Adjust to use
1691 process_stratum_target.
1692 (win32_target_ops): Now a process_stratum_target.
1694 2020-01-06 Eli Zaretskii <eliz@gnu.org>
1695 Pedro Alves <palves@redhat.com>
1697 * win32-low.c (get_child_debug_event): Extract the fatal exception
1698 from the exit status and convert to the equivalent Posix signal
1700 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
1701 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
1703 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
1705 * Makefile.in: Use INSTALL_PROGRAM_ENV.
1707 2020-01-01 Joel Brobecker <brobecker@adacore.com>
1709 * server.c (gdbserver_version): Change copyright year to 2020.
1710 * gdbreplay.c (gdbreplay_version): Likewise.
1712 2019-12-19 Christian Biesinger <cbiesinger@google.com>
1714 * configure: Regenerate.
1715 * configure.ac: Quote variable arguments of test.
1717 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1719 * Makefile.in: Fix build with GNU Make 3.81
1721 2019-12-16 Tom Tromey <tromey@adacore.com>
1723 * server.c (get_exec_file): Constify result.
1725 2019-12-10 Christian Biesinger <cbiesinger@google.com>
1727 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
1728 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
1729 * config.in: Regenerate.
1730 * configure: Regenerate.
1731 * configure.ac: Don't check for strerror.
1732 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
1733 Call safe_strerror instead of strerror.
1734 * server.h (strerror): Remove this now-unnecessary declaration.
1735 * tracepoint.c (init_named_socket): Call safe_strerror instead of
1737 (gdb_agent_helper_thread): Likewise.
1738 * utils.c (perror_with_name): Likewise.
1740 2019-11-26 Tom Tromey <tom@tromey.com>
1742 * configure, config.in: Rebuild.
1744 2019-11-26 Tom Tromey <tom@tromey.com>
1746 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
1747 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
1749 * configure, config.in: Rebuild.
1751 2019-11-26 Tom Tromey <tom@tromey.com>
1753 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1754 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1755 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
1756 * acinclude.m4: Include ax_pthread.m4.
1757 * config.in, configure: Rebuild.
1759 2019-11-26 Christian Biesinger <cbiesinger@google.com>
1761 * debug.c (debug_set_output): Call safe_strerror instead of
1763 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
1764 (linux_kill_one_lwp): Likewise.
1765 (linux_detach_one_lwp): Likewise.
1766 (linux_wait_for_event_filtered): Likewise.
1767 (store_register): Likewise.
1768 * lynx-low.c (lynx_attach): Likewise.
1769 * mem-break.c (insert_memory_breakpoint): Likewise.
1770 (remove_memory_breakpoint): Likewise.
1771 (delete_fast_tracepoint_jump): Likewise.
1772 (set_fast_tracepoint_jump): Likewise.
1773 (uninsert_fast_tracepoint_jumps_at): Likewise.
1774 (reinsert_fast_tracepoint_jumps_at): Likewise.
1775 * nto-low.c (nto_xfer_memory): Likewise.
1776 (nto_resume): Likewise.
1778 2019-11-20 Luis Machado <luis.machado@linaro.org>
1780 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
1781 instead of register count.
1782 * tdesc.c (tdesc_contains_feature): New function.
1783 * tdesc.h (tdesc_contains_feature): New prototype.
1785 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1787 * Makefile.in: Add safe-strerror.c.
1788 * configure: Regenerate.
1789 * configure.ac: Don't source common.host.
1791 2019-11-15 Christian Biesinger <cbiesinger@google.com>
1793 * config.in: Regenerate.
1794 * configure: Regenerate.
1796 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1798 * ax.c (ax_printf): Handle size_t_arg.
1800 2019-11-06 Christian Biesinger <cbiesinger@google.com>
1802 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1803 * mi/mi-main.c (output_cores): Likewise.
1804 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1805 (linux_xfer_osdata_modules): Likewise.
1806 * remote.c (register_remote_support_xml): Likewise.
1807 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1808 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1810 2019-11-01 Christian Biesinger <cbiesinger@google.com>
1812 * configure: Regenerate.
1813 * configure.ac: Remove check for strerror_r.
1815 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1817 * config.in: Regenerate.
1818 * configure: Regenerate.
1819 * configure.ac: Also check for strerror_r.
1821 2019-10-31 Christian Biesinger <cbiesinger@google.com>
1823 * ax.h (debug_agent): Remove duplicate declaration.
1825 2019-10-26 Tom de Vries <tdevries@suse.de>
1827 * linux-aarch64-low.c: Fix typos in comments.
1828 * linux-arm-low.c: Same.
1829 * linux-low.c: Same.
1830 * linux-ppc-low.c: Same.
1831 * proc-service.c: Same.
1834 * tracepoint.c: Same.
1835 * win32-low.c: Same.
1837 2019-10-25 Tom Tromey <tromey@adacore.com>
1839 * utils.c (xstrdup): Remove.
1841 2019-10-23 Tom Tromey <tom@tromey.com>
1843 * configure, config.in: Rebuild.
1845 2019-10-23 Tom Tromey <tom@tromey.com>
1847 * configure: Rebuild.
1848 * acinclude.m4: Use m4_include, not sinclude.
1850 2019-10-17 Tom Tromey <tromey@adacore.com>
1852 * configure: Rebuild.
1853 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1854 in AC_CONFIG_FILES invocation.
1855 * Makefile.in (stamp-h, Makefile): Use new-style config.status
1858 2019-10-16 Christian Biesinger <cbiesinger@google.com>
1860 * server.c: Include xml-builtin.h.
1861 (get_xml_features): Don't declare xml_builtins here.
1863 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1865 * Makefile.in: Remove references to vec-ipa.o.
1867 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1869 * Makefile.in: Remove references to vec.c.
1871 2019-10-02 Christian Biesinger <cbiesinger@google.com>
1873 * server.c (server_waiting): Change to bool.
1874 (extended_protocol): Likewise.
1875 (response_needed): Likewise.
1876 (exit_requested): Likewise.
1877 (run_once): Likewise.
1878 (report_no_resumed): Likewise.
1879 (non_stop): Likewise.
1880 (disable_packet_vCont): Likewise.
1881 (disable_packet_Tthread): Likewise.
1882 (disable_packet_qC): Likewise.
1883 (disable_packet_qfThreadInfo): Likewise.
1884 (handle_general_set): Update.
1885 (handle_detach): Update.
1886 (handle_monitor_command): Update.
1887 (handle_query): Update.
1888 (captured_main): Update.
1889 (process_serial_event): Update.
1890 * server.h (server_waiting): Change to bool.
1891 (disable_packet_vCont): Likewise.
1892 (disable_packet_Tthread): Likewise.
1893 (disable_packet_qC): Likewise.
1894 (disable_packet_qfThreadInfo): Likewise.
1895 (run_once): Likewise.
1896 (non_stop): Likewise.
1897 * target.c (target_stop_and_wait): Update.
1899 2019-10-02 Tom Tromey <tromey@adacore.com>
1901 * Makefile.in (SFILES): Add common-inferior.c.
1902 (OBS): Add common-inferior.o.
1903 * server.c (startup_with_shell): Don't define.
1905 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1907 * linux-low.c (linux_low_read_btrace): Update for change to
1910 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1912 * debug.c (debug_threads): Remove comment in favor of the header.
1913 * debug.h (using_threads): Add declaration.
1914 (debug_threads): Add comment.
1915 * linux-aarch64-low.c: Include debug.h and remove declaration of
1917 * nto-low.c: Likewise.
1918 * remote-utils.c: Likewise.
1919 * thread-db.c: Likewise.
1921 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1923 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
1924 and powerpc-cell64l-ipa.o.
1925 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
1926 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
1927 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
1930 * spu-low.c: Remove file.
1932 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
1933 (parse_spufs_run): Remove.
1934 (ppc_get_pc): Remove Cell/B.E. support.
1935 (ppc_set_pc): Likewise.
1936 (ppc_breakpoint_at): Likewise.
1937 (ppc_arch_setup): Likewise.
1938 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
1939 tdesc_powerpc_cell32l.
1940 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
1941 or init_registers_powerpc_cell32l.
1942 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
1943 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
1944 or init_registers_powerpc_cell32l.
1945 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
1946 (init_registers_powerpc_cell32l): Remove prototype.
1947 (init_registers_powerpc_cell64l): Likewise.
1949 * target.h (struct target_ops): Remove qxfer_spu member.
1950 * server.c (handle_qxfer_spu): Remove.
1951 (qxfer_packets): Remove entry for "spu".
1952 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
1953 * linux-low.c (SPUFS_MAGIC): Remove.
1954 (spu_enumerate_spu_ids): Remove.
1955 (linux_qxfer_spu): Remove.
1956 (linux_target_ops): Remove qxfer_spu member.
1957 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
1958 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
1959 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
1961 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1963 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
1964 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
1965 * config.in: Regenerate.
1966 * configure: Regenerate.
1968 2019-08-15 Tom Tromey <tromey@adacore.com>
1970 * target.c (target_write_memory): Use gdb::byte_vector.
1972 2019-08-15 Tom Tromey <tromey@adacore.com>
1974 * tracepoint.c (write_inferior_data_pointer)
1975 (write_inferior_integer, write_inferior_int8)
1976 (write_inferior_uinteger, m_tracepoint_action_download)
1977 (r_tracepoint_action_download, x_tracepoint_action_download)
1978 (l_tracepoint_action_download, clear_inferior_trace_buffer)
1979 (download_agent_expr, download_tracepoint_1)
1980 (download_trace_state_variables, upload_fast_traceframes): Update.
1981 * server.c (gdb_write_memory): Update.
1982 * remote-utils.c (relocate_instruction): Update.
1983 * proc-service.c (ps_pdwrite): Update.
1984 * mem-break.c (remove_memory_breakpoint)
1985 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
1986 (uninsert_fast_tracepoint_jumps_at)
1987 (reinsert_fast_tracepoint_jumps_at): Update.
1988 * linux-x86-low.c (append_insns)
1989 (i386_install_fast_tracepoint_jump_pad)
1990 (amd64_write_goto_address, i386_write_goto_address): Update.
1991 * linux-s390-low.c (append_insns, s390_write_goto_address):
1993 * linux-ppc-low.c (ppc_relocate_instruction)
1994 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
1995 (ppc_write_goto_address): Update.
1996 * linux-aarch64-low.c (append_insns): Update.
1997 * target.h (struct target_ops): Update.
1998 (write_inferior_memory): Don't declare.
1999 * target.c (target_write_memory): Rename from
2000 write_inferior_memory. Remove old target_write_memory.
2002 2019-08-15 Tom Tromey <tromey@adacore.com>
2004 * target.c (write_inferior_memory): Use std::vector.
2006 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2009 * configure.ac: Drop enable-libmcheck support.
2010 * configure, config.in: Rebuild.
2011 * acinclude.m4: Don't include it.
2013 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2015 * configure.srv: Remove Arm xml files.
2017 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2019 * configure.srv: Add new files. Remove xml generated files.
2020 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2022 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2023 * linux-aarch32-tdesc.c: New file.
2024 * linux-aarch32-tdesc.h: New file.
2025 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2026 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2027 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2028 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2029 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2030 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2031 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2032 (arm_read_description): Call arm_linux_read_description.
2033 (initialize_low_arch): Don't init registers.
2034 * linux-arm-tdesc.c: New file.
2035 * linux-arm-tdesc.h: New file.
2037 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2039 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2040 Move counter inside for.
2041 (arm_read_description): Check ptrace earlier.
2042 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2044 2019-07-09 Tom Tromey <tom@tromey.com>
2046 * configure: Rebuild.
2047 * configure.ac: Change common to gdbsupport.
2048 * acinclude.m4: Change common to gdbsupport.
2049 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2050 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2051 common to gdbsupport.
2052 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2053 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2054 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2055 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2056 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2057 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2058 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2059 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2060 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2061 common to gdbsupport.
2063 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2065 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2067 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2069 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2071 * configure.srv: Remove legacy xml.
2072 * linux-aarch64-low.c (initialize_low_arch): Remove
2073 initialize_low_tdesc call.
2074 * linux-aarch64-tdesc-selftest.c: Remove file.
2075 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2076 * linux-x86-low.c (initialize_low_arch): Remove
2077 initialize_low_tdesc call.
2078 * linux-x86-tdesc-selftest.c: Remove file.
2079 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2081 2019-06-20 Tom de Vries <tdevries@suse.de>
2083 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2084 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2086 2019-06-19 Tom de Vries <tdevries@suse.de>
2088 * debug.h (debug_write): Change return type to ssize_t.
2089 * debug.c (debug_write): Same.
2091 2019-06-14 Tom Tromey <tom@tromey.com>
2093 * configure.ac: Use new path to gnulib.
2094 * configure: Rebuild.
2095 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2098 2019-06-11 Tom Tromey <tom@tromey.com>
2100 * Makefile.in (SFILES): Add alloc.c.
2102 (IPA_OBJS): Add alloc-ipa.o.
2103 (alloc-ipa.o): New target.
2104 (%.o: ../%.c): New pattern rule.
2106 2019-06-10 Tom Tromey <tromey@adacore.com>
2108 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
2109 end warning with a newline.
2110 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
2112 * thread-db.c (attach_thread): Don't end warning with a newline.
2113 (thread_db_notice_clone): Likewise.
2114 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
2116 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2117 end warning with a newline.
2119 2019-06-04 Pedro Alves <palves@redhat.com>
2121 * server.c (captured_main): Use make_unique_xstrdup.
2123 2019-06-02 Tom Tromey <tom@tromey.com>
2125 * gdbreplay.c (fromhex): Remove.
2126 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2128 2019-05-29 Tom Tromey <tromey@adacore.com>
2130 * configure: Rebuild.
2132 2019-05-06 Kevin Buettner <kevinb@redhat.com>
2134 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2135 sign extension code on 32-bit builds.
2137 2019-05-03 Eli Zaretskii <eliz@gnu.org>
2140 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2142 2019-04-19 Tom Tromey <tom@tromey.com>
2144 * server.c (struct vstop_notif): Derive from notif_event.
2146 (queue_stop_reply): Update.
2147 (remove_all_on_match_ptid): Change type. Rewrite.
2148 (discard_queued_stop_replies): Rewrite.
2149 (in_queued_stop_replies_ptid): Change type.
2150 (in_queued_stop_replies): Rewrite.
2151 (notif_stop): Update.
2152 (queue_stop_reply_callback): Update.
2153 (captured_main): Don't call initialize_notif.
2154 (push_stop_notification): Update.
2155 * notif.c (notif_write_event, handle_notif_ack)
2156 (notif_event_enque, notif_push): Update.
2157 (notif_event_xfree, initialize_notif): Remove.
2158 * notif.h (struct notif_event): Include <list>, not
2160 (struct notif_server) <queue>: Now a std::list.
2161 (notif_event_p): Remove typedef.
2162 (initialize_notif): Don't declare.
2163 (struct notif_event): Add virtual destructor.
2165 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2167 * ax.c (ax_vdebug): Call debug_printf.
2168 * debug.c (debug_write): New function.
2169 * debug.h (debug_write): New declaration.
2170 * linux-low.c (sigchld_handler): Call debug_write.
2172 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2174 * debug.c (debug_set_output): New function.
2175 (debug_vprintf): Send output to debug_file.
2176 (debug_flush): Likewise.
2177 * debug.h (debug_set_output): New declaration.
2178 * server.c (handle_monitor_command): Add debug-file option.
2179 (captured_main): Likewise.
2181 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2183 * debug.c (remote_debug): Add definition.
2184 * debug.h (remote_debug): Add declaration.
2185 * hostio.c (remote_debug): Remove declaration.
2186 * remote-utils.c (struct ui_file): Likewise.
2187 (remote_debug): Likewise.
2188 * remote-utils.h (remote_debug): Likewise,
2189 * server.c (remote_debug): Remove definition.
2191 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2193 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2194 when using a 64-bit gdbserver.
2196 2019-04-09 Tom Tromey <tromey@adacore.com>
2198 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2200 2019-04-08 Tom Tromey <tom@tromey.com>
2202 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2204 (linux_resume_one_lwp): Likewise.
2206 2019-04-08 Tom Tromey <tom@tromey.com>
2208 * gdbreplay.c: Update.
2209 * linux-low.c: Update.
2212 2019-04-08 Tom Tromey <tom@tromey.com>
2214 * server.c: Use C++ exception handling.
2215 * linux-low.c: Use C++ exception handling.
2216 * gdbreplay.c: Use C++ exception handling.
2218 2019-04-08 Tom Tromey <tom@tromey.com>
2220 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
2221 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
2222 (captured_main, main): Update.
2223 * gdbreplay.c (main): Update.
2225 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2227 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
2228 value in argument pointer, return 1 if the entry is found and 0
2229 otherwise. Move comment.
2230 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
2231 * linux-low.h (linux_get_auxv): Declare.
2232 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
2234 2019-04-05 Tom Tromey <tromey@adacore.com>
2236 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2239 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2241 * linux-low.c (AT_HWCAP2): Add define if not already included.
2243 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2245 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
2246 (aarch64_arch_setup): Call linux_get_hwcap.
2247 * linux-arm-low.c (arm_get_hwcap): Remove function.
2248 (arm_read_description): Call linux_get_hwcap.
2249 * linux-low.c (linux_get_auxv): New function.
2250 (linux_get_hwcap): Likewise.
2251 (linux_get_hwcap2): Likewise.
2252 * linux-low.h (linux_get_hwcap): New declaration.
2253 (linux_get_hwcap2): Likewise.
2254 * linux-ppc-low.c (ppc_get_auxv): Remove function.
2255 (ppc_arch_setup): Call linux_get_hwcap.
2256 * linux-s390-low.c (s390_get_hwcap): Remove function.
2257 (s390_arch_setup): Call linux_get_hwcap.
2259 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2260 Jiong Wang <jiong.wang@arm.com>
2262 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2263 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2265 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2267 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2268 Jiong Wang <jiong.wang@arm.com>
2270 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2271 (aarch64_get_hwcap): New function.
2272 (aarch64_arch_setup): Read APIA hwcap.
2274 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2275 Jiong Wang <jiong.wang@arm.com>
2277 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
2278 (initialize_low_tracepoint): Likewise.
2279 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
2280 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
2281 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
2282 (aarch64_linux_read_description): Likewise.
2283 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
2285 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2287 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
2288 i386_create_target_description for 'segments' parameter.
2289 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
2290 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2291 * win32-i386-low.c (i386_arch_setup): Likewise.
2293 2019-03-12 Tom Tromey <tromey@adacore.com>
2295 * linux-low.c (iterate_over_lwps): Update.
2297 2019-03-06 Tom Tromey <tom@tromey.com>
2299 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2300 (captured_main): Use SCOPE_EXIT.
2302 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2304 * configure.srv: Use '$enable_unittest' instead of '$development'
2305 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2308 2019-02-27 Tom Tromey <tromey@adacore.com>
2310 * gdbreplay.c (logchar): Handle \r\n.
2312 2019-02-07 Alan Hayward <alan.hayward@arm.com>
2314 * linux-low.c (linux_attach): Add process before lwp.
2315 * server.c (attach_inferior): Check if already attached.
2317 2019-02-07 Tom Tromey <tom@tromey.com>
2319 * x86-tdesc.h: Rename include guard.
2320 * x86-low.h: Add include guard.
2321 * wincecompat.h: Rename include guard.
2322 * win32-low.h: Add include guard.
2323 * utils.h: Rename include guard.
2324 * tracepoint.h: Rename include guard.
2325 * tdesc.h: Rename include guard.
2326 * target.h: Rename include guard.
2327 * server.h: Rename include guard.
2328 * remote-utils.h: Rename include guard.
2329 * regcache.h: Rename include guard.
2330 * nto-low.h: Rename include guard.
2331 * notif.h: Add include guard.
2332 * mem-break.h: Rename include guard.
2333 * lynx-low.h: Add include guard.
2334 * linux-x86-tdesc.h: Add include guard.
2335 * linux-s390-tdesc.h: Add include guard.
2336 * linux-ppc-tdesc-init.h: Add include guard.
2337 * linux-low.h: Add include guard.
2338 * linux-aarch64-tdesc.h: Add include guard.
2339 * linux-aarch32-low.h: Add include guard.
2340 * inferiors.h: Rename include guard.
2341 * i387-fp.h: Rename include guard.
2342 * hostio.h: Rename include guard.
2343 * gdbthread.h: Rename include guard.
2344 * gdb_proc_service.h: Rename include guard.
2345 * event-loop.h: Rename include guard.
2346 * dll.h: Rename include guard.
2347 * debug.h: Rename include guard.
2348 * ax.h: Rename include guard.
2350 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2353 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2354 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2356 2019-01-25 Tom Tromey <tom@tromey.com>
2358 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2360 2019-01-25 Tom Tromey <tom@tromey.com>
2362 * win32-low.c: Fix common/ includes.
2363 * win32-i386-low.c: Fix common/ includes.
2364 * tracepoint.c: Fix common/ includes.
2365 * thread-db.c: Fix common/ includes.
2366 * target.h: Fix common/ includes.
2367 * symbol.c: Fix common/ includes.
2368 * spu-low.c: Fix common/ includes.
2369 * server.h: Fix common/ includes.
2370 * server.c: Fix common/ includes.
2371 * remote-utils.c: Fix common/ includes.
2372 * regcache.h: Fix common/ includes.
2373 * regcache.c: Fix common/ includes.
2374 * nto-x86-low.c: Fix common/ includes.
2375 * notif.h: Fix common/ includes.
2376 * mem-break.h: Fix common/ includes.
2377 * lynx-low.c: Fix common/ includes.
2378 * lynx-i386-low.c: Fix common/ includes.
2379 * linux-x86-tdesc-selftest.c: Fix common/ includes.
2380 * linux-x86-low.c: Fix common/ includes.
2381 * linux-low.c: Fix common/ includes.
2382 * inferiors.h: Fix common/ includes.
2383 * i387-fp.c: Fix common/ includes.
2384 * hostio.c: Fix common/ includes.
2385 * hostio-errno.c: Fix common/ includes.
2386 * gdbthread.h: Fix common/ includes.
2387 * gdbreplay.c: Fix common/ includes.
2388 * fork-child.c: Fix common/ includes.
2389 * event-loop.c: Fix common/ includes.
2391 (enum gdb_agent_op): Fix common/ includes.
2393 2019-01-21 Tom Tromey <tom@tromey.com>
2395 * tracepoint.c: Fix includes.
2396 * remote-utils.c: Fix includes.
2397 * linux-x86-low.c: Fix includes.
2399 2019-01-01 Joel Brobecker <brobecker@adacore.com>
2401 * gdbreplay.c (gdbreplay_version): Update copyright year in
2403 * server.c (gdbserver_version): Likewise.
2405 2018-12-05 Alan Hayward <alan.hayward@arm.com>
2407 * linux-low.c (add_lwp): Switch ordering.
2409 2018-11-29 Tom Tromey <tom@tromey.com>
2411 * win32-low.c (win32_join): Take pid, not process.
2412 * target.h (struct target_ops) <join>: Change argument type.
2413 (join_inferior): Change argument name.
2414 * spu-low.c (spu_join): Take pid, not process.
2415 * server.c (handle_detach): Preserve pid before destroying
2417 * lynx-low.c (lynx_join): Take pid, not process.
2418 * linux-low.c (linux_join): Take pid, not process.
2420 2018-11-23 Alan Hayward <alan.hayward@arm.com>
2422 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2423 (aarch64_cannot_fetch_register): Likewise.
2424 (struct linux_target_ops): Update references.
2426 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2428 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2430 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2432 * configure.srv (ipa_ppc_linux_regobj): Add
2433 powerpc-isa207-htm-vsx32l-ipa.o and
2434 powerpc-isa207-htm-vsx64l-ipa.o.
2435 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2436 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2437 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2438 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2439 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2440 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2441 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2442 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2443 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2444 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2445 (init_registers_powerpc_isa207_htm_vsx32l)
2446 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2447 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2448 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2449 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2450 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2451 (ppc_store_tm_ctarregset): New functions.
2452 (ppc_regsets): Add entries for HTM regsets.
2453 (ppc_arch_setup): Set htm in features struct when needed. Set
2454 sizes for the HTM regsets.
2455 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2456 (initialize_low_arch): Call
2457 init_registers_powerpc_isa207_htm_vsx32l and
2458 init_registers_powerpc_isa207_htm_vsx64l.
2459 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2460 PPC_TDESC_ISA207_HTM_VSX.
2461 (initialize_low_tracepoint): Call
2462 init_registers_powerpc_isa207_htm_vsx32l and
2463 init_registers_powerpc_isa207_htm_vsx64l.
2465 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2467 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2468 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2469 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2470 (ppc_store_pmuregset): New functions.
2471 (ppc_regsets): Add entries for ebb and pmu regsets.
2472 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2473 pmu regsets are available. Set sizes for these regsets.
2475 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2477 * configure.srv (ipa_ppc_linux_regobj): Add
2478 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2479 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2480 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2481 rs6000/powerpc-isa207-vsx32l.xml, and
2482 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2483 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2484 <PPC_TDESC_ISA207_VSX>: New enum value.
2485 (init_registers_powerpc_isa207_vsx32l): Declare.
2486 (init_registers_powerpc_isa207_vsx64l): Declare.
2487 * linux-ppc-low.c (ppc_fill_tarregset): New function.
2488 (ppc_store_tarregset): New function.
2489 (ppc_regsets): Add entry for the TAR regset.
2490 (ppc_arch_setup): Set isa207 in features struct when needed. Set
2491 size for the TAR regsets.
2492 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
2493 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
2494 and init_registers_powerpc_isa207_vsx64l.
2495 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
2496 (initialize_low_tracepoint): Call
2497 init_registers_powerpc_isa207_vsx32l and
2498 init_registers_powerpc_isa207_vsx64l.
2500 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2501 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2503 * configure.srv (ipa_ppc_linux_regobj): Add
2504 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
2505 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
2506 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
2507 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
2508 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
2509 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
2510 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
2511 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2512 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
2513 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
2514 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
2515 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
2516 (ppc_hwcap): Add comment.
2517 (ppc_hwcap2): New global.
2518 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
2519 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
2520 (ppc_regsets): Add entries for the DSCR and PPR regsets.
2521 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
2522 when needed. Set sizes for the the DSCR and PPR regsets.
2523 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
2524 (initialize_low_arch): Call
2525 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2526 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2527 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2528 PPC_TDESC_ISA205_PPR_DSCR_VSX.
2529 (initialize_low_tracepoint): Call
2530 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
2531 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
2533 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2535 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
2537 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
2538 Simon Marchi <simark@simark.ca>
2540 * acinclude.m4: Include "../selftest.m4".
2541 * configure: Regenerate.
2542 * configure.ac: Use "GDB_AC_SELFTEST".
2543 * configure.srv: Use "$enable_unittests" instead of
2544 "$development" when checking whether unit tests have been
2546 * server.c (captured_main): Update message informing that
2547 selftests have been disabled.
2549 2018-10-04 Tom Tromey <tom@tromey.com>
2551 * configure: Rebuild.
2553 2018-10-04 Tom Tromey <tom@tromey.com>
2555 * server.c (handle_status): Rename inner "thread".
2556 (process_serial_event): Declare "res" in 'm' case.
2557 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
2558 (iterate_over_lwps): Rename inner "thread".
2559 (linux_qxfer_libraries_svr4): Rename inner "len".
2560 * gdbthread.h (find_thread_in_random): Rename inner "thread".
2562 2018-10-01 Gary Benson <gbenson@redhat.com>
2564 * gdb_proc_service.h: Moved common code to
2565 common/gdb_proc_service.h.
2567 2018-10-01 Gary Benson <gbenson@redhat.com>
2569 * gdb_proc_service.h: Synchronize comments and whitespace with
2570 GDB's version of this file.
2572 2018-09-25 Tom Tromey <tom@tromey.com>
2574 * configure: Rebuild.
2575 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
2577 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2579 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
2580 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
2581 ($(IPA_LIB)): Sort IPA_OBJS.
2583 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
2585 * Makefile.in: Remove references to $(ADD_DEPS).
2587 2018-09-16 Tom Tromey <tom@tromey.com>
2589 * remote-utils.c (remote_open): Use GNU style for metasyntactic
2591 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
2594 2018-09-05 Tom Tromey <tom@tromey.com>
2596 * configure: Rebuild.
2598 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2601 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
2603 2018-08-27 Tom Tromey <tom@tromey.com>
2606 * configure: Rebuild.
2608 2018-08-27 Tom Tromey <tom@tromey.com>
2610 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
2611 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
2612 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
2613 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
2614 (s390x_emit_stack_adjust): Add casts to unsigned char.
2616 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
2620 * server.h (struct client_state) <disable_randomization>:
2623 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2625 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
2627 (mips_supply_ptrace_register): Likewise.
2629 2018-07-22 Tom Tromey <tom@tromey.com>
2631 * configure: Rebuild.
2633 2018-07-22 Tom Tromey <tom@tromey.com>
2635 * win32-low.c (win32_create_inferior): Remove unused variables.
2636 * gdbreplay.c (remote_open): Remove unused variable.
2637 * remote-utils.c (remote_prepare): Remove unused variable.
2638 * x86-tdesc.h (X86_TDESC_H): Define.
2639 (amd64_expedite_regs): Define conditionally.
2640 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
2641 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
2642 * remote-utils.c (readchar): Remove unused variable.
2644 2018-07-13 Pedro Alves <palves@redhat.com>
2646 * linux-low.c (linux_kill): Change parameter to process_info
2647 pointer instead of pid. Adjust.
2648 * lynx-low.c (lynx_kill): Likewise.
2649 * nto-low.c (nto_kill): Likewise.
2650 * spu-low.c (spu_kill): Likewise.
2651 * win32-low.c (win32_kill): Likewise.
2652 * server.c (handle_v_kill, kill_inferior_callback)
2653 (detach_or_kill_for_exit): Adjust.
2654 * target.c (kill_inferior): Change parameter to process_info
2655 pointer instead of pid. Adjust.
2656 * target.h (struct target_ops) <kill>: Change parameter to
2657 process_info pointer instead of pid. Adjust all implementations
2659 (kill_inferior): Likewise.
2661 2018-07-13 Pedro Alves <palves@redhat.com>
2663 * linux-low.c (linux_detach, linux_join): Change parameter to
2664 process_info pointer instead of pid. Adjust.
2665 * lynx-low.c (lynx_detach, lynx_join): Likewise.
2666 * nto-low.c (nto_detach): Likewise.
2667 * spu-low.c (spu_detach, spu_join): Likewise.
2668 * win32-low.c (win32_detach, win32_join): Likewise.
2669 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
2670 * target.h (struct target_ops) <detach, join>: Change parameter to
2671 process_info pointer instead of pid. Adjust all implementations
2673 (detach_inferior, join_inferior): Rename 'pid' parameter to
2676 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2677 Jan Kratochvil <jan.kratochvil@redhat.com>
2678 Paul Fertser <fercerpav@gmail.com>
2679 Tsutomu Seki <sekiriki@gmail.com>
2681 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
2682 (OBS): Add 'common/netstuff.o'.
2683 (GDBREPLAY_OBS): Likewise.
2684 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
2685 (remote_open): Implement support for IPv6
2687 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
2689 (handle_accept_event): Accept connections from IPv6 sources.
2690 (remote_prepare): Handle IPv6-style hostnames; implement
2691 support for IPv6 connections.
2692 (remote_open): Implement support for printing connections from
2695 2018-07-11 Pedro Alves <palves@redhat.com>
2698 * mem-break.c (any_persistent_commands): Add process_info
2699 parameter and use it instead of relying on the current process.
2700 Change return type to bool.
2701 * mem-break.h (any_persistent_commands): Add process_info
2702 parameter and change return type to bool.
2703 * server.c (handle_detach): Remove require_running_or_return call.
2704 Look up the process_info for the process we're about to detach.
2705 If not found, return back error to GDB. Adjust
2706 any_persistent_commands call to pass down a process pointer.
2708 2018-07-11 Pedro Alves <palves@redhat.com>
2710 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
2711 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
2712 instead of collect_register_by_name.
2713 * regcache.c (regcache_raw_get_unsigned_by_name): New.
2714 * regcache.h (regcache_raw_get_unsigned_by_name): New.
2716 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2717 Pedro Alves <palves@redhat.com>
2719 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
2721 2018-07-03 Tom Tromey <tom@tromey.com>
2723 * linux-low.c: Update.
2724 * lynx-low.c: Update.
2725 * mem-break.c: Update.
2726 * nto-low.c: Update.
2727 * remote-utils.c: Update.
2729 * spu-low.c: Update.
2731 * win32-low.c: Update.
2733 2018-07-03 Tom Tromey <tom@tromey.com>
2737 2018-07-03 Tom Tromey <tom@tromey.com>
2739 * linux-low.c: Update.
2741 2018-07-03 Tom Tromey <tom@tromey.com>
2745 2018-07-03 Tom Tromey <tom@tromey.com>
2747 * linux-low.c: Update.
2748 * linux-mips-low.c: Update.
2749 * lynx-low.c: Update.
2750 * nto-low.c: Update.
2751 * remote-utils.c: Update.
2753 * spu-low.c: Update.
2755 * thread-db.c: Update.
2757 2018-07-03 Tom Tromey <tom@tromey.com>
2759 * linux-low.c: Update.
2760 * linux-mips-low.c: Update.
2761 * lynx-low.c: Update.
2762 * mem-break.c: Update.
2763 * nto-low.c: Update.
2764 * remote-utils.c: Update.
2766 * spu-low.c: Update.
2768 * tracepoint.c: Update.
2770 2018-07-03 Tom Tromey <tom@tromey.com>
2772 * linux-low.c: Update.
2773 * linux-ppc-low.c: Update.
2774 * linux-x86-low.c: Update.
2775 * proc-service.c: Update.
2777 * spu-low.c: Update.
2778 * thread-db.c: Update.
2779 * win32-low.c: Update.
2781 2018-07-03 Tom Tromey <tom@tromey.com>
2783 * linux-low.c: Update.
2784 * lynx-low.c: Update.
2785 * nto-low.c: Update.
2786 * remote-utils.c: Update.
2787 * spu-low.c: Update.
2788 * thread-db.c: Update.
2789 * win32-low.c: Update.
2791 2018-06-29 Joel Brobecker <brobecker@adacore.com>
2793 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
2794 parameter in call to 'amd64_create_target_description'.
2796 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2798 * x86-tdesc.h: Remove executable permission flag.
2800 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
2802 * configure.ac: Remove AC_PREREQ, add missing quoting.
2803 * configure: Re-generate.
2804 * config.in: Re-generate.
2805 * aclocal.m4: Re-generate.
2807 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
2809 * tracepoint.h (current_traceframe): Remove declaration.
2811 2018-06-18 Alan Hayward <alan.hayward@arm.com>
2813 * linux-aarch64-low.c (is_sve_tdesc): New function.
2814 (aarch64_sve_regs_copy_to_regcache): Likewise.
2815 (aarch64_sve_regs_copy_from_regcache): Likewise.
2816 (aarch64_regs_info): Add SVE checks.
2817 (initialize_low_arch): Initialize SVE.
2819 2018-06-18 Alan Hayward <alan.hayward@arm.com>
2821 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
2823 2018-06-11 Alan Hayward <alan.hayward@arm.com>
2825 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
2826 (initialize_low_tracepoint): Likewise
2827 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
2828 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
2830 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
2832 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
2834 2018-06-11 Alan Hayward <alan.hayward@arm.com>
2836 * server.h (PBUFSIZ): Increase size
2838 2018-06-11 Alan Hayward <alan.hayward@arm.com>
2840 * regcache.c (regcache::raw_compare): New function.
2841 * regcache.h (regcache::raw_compare): New declaration.
2843 2018-06-11 Alan Hayward <alan.hayward@arm.com>
2845 * regcache.c (new_register_cache): Use new.
2846 (free_register_cache): Use delete.
2847 (register_data): Use const.
2848 (supply_register): Move body inside regcache.
2849 (regcache::raw_supply): New override function.
2850 (collect_register): Move body inside regcache.
2851 (regcache::raw_collect): New override function.
2852 (regcache::get_register_status): New override function.
2853 * regcache.h (struct regcache): Inherit from reg_buffer_common.
2855 2018-06-09 Tom Tromey <tom@tromey.com>
2857 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
2859 (event_queue): Use std::queue.
2860 (gdb_event_xfree): Remove.
2861 (initialize_event_loop, process_event, wait_for_event): Update.
2863 2018-06-08 Stan Cox <scox@redhat.com>
2865 * win32-low.c (win32_create_inferior): last_ptid and last_status
2866 moved to client_state.
2868 2018-06-08 Pedro Alves <palves@redhat.com>
2870 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
2871 common/common-exceptions.o, common/common-utils.o,
2872 common/errors.o, common/print-utils.o and utils.o.
2873 * gdbreplay.c: Include "common-defs.h" instead of the two
2874 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
2875 string.h or alloca.h.
2876 (perror_with_name): Delete.
2877 (remote_open): Use xstrdup instead of strdup.
2878 (main): Rename to ...
2879 (captured_main): ... this.
2882 2018-06-08 Tom Tromey <tom@tromey.com>
2884 * linux-low.c (linux_low_read_btrace): Update.
2886 2018-06-04 Stan Cox <scox@redhat.com>
2888 * server.h (struct client_state): New.
2889 * server.c (cont_thread, general_thread, multi_process)
2890 (report_fork_events, report_vfork_events, report_exec_events)
2891 (report_thread_events, swbreak_feature, hwbreak_feature)
2892 (vCont_supported, disable_randomization, pass_signals)
2893 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
2894 Moved to client_state.
2895 * remote-utils.c (remote_debug, noack_mode)
2896 (transport_is_reliable): Moved to client_state.
2897 * tracepoint.c (current_traceframe): Moved to client_state.
2900 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
2901 linux-low.c, remote-utils.h, target.c: Use client_state.
2903 2018-05-31 Alan Hayward <alan.hayward@arm.com>
2905 * configure.srv: Add new c/h file.
2907 2018-05-31 Alan Hayward <alan.hayward@arm.com>
2909 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
2912 2018-05-25 Maciej W. Rozycki <macro@mips.com>
2914 * gdb.arch/mips-fpregset-core.exp: New test.
2915 * gdb.arch/mips-fpregset-core.c: New test source.
2917 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
2920 * hostio.c (require_int): Do not report overflow for integers
2921 between 0xfffffff and 0x7fffffff.
2923 2018-05-22 Maciej W. Rozycki <macro@mips.com>
2925 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
2926 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
2927 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
2929 (the_low_target): Wire them.
2931 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2933 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
2934 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
2935 mode. Call collect_register_by_name with vscr using
2936 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
2937 (ppc_store_vrregset): Add and set vscr_offset variable as in
2938 ppc_fill_vrregset. Call supply_register_by_name with vscr using
2941 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2943 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
2944 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
2945 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
2947 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2949 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
2950 (ppc_store_vsxregset): Likewise.
2951 (ppc_fill_vrregset): Likewise.
2952 (ppc_store_vrregset): Likewise.
2953 (ppc_fill_evrregset): Likewise.
2954 (ppc_store_evrregset): Likewise.
2955 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
2956 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
2959 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2961 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
2962 wordsize of the inferior. Call ppc_linux_target_wordsize.
2964 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2966 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
2967 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
2968 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
2969 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
2970 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
2971 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
2972 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
2973 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
2974 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
2975 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
2976 (tdesc_powerpc_e500l): Remove.
2977 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
2978 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
2979 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
2980 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
2982 (ppc_arch_setup): Remove target description matching code. Fill a
2983 ppc_linux_features struct and call ppc_linux_match_description
2986 2018-05-22 Maciej W. Rozycki <macro@mips.com>
2988 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
2989 width of the requested register exceeds the width of the
2991 (mips_cannot_store_register): Likewise.
2993 2018-05-21 Maciej W. Rozycki <macro@mips.com>
2995 * linux-mips-low.c (mips_fetch_register): New function. Update
2997 (mips_store_gregset): Supply 0 rather than $restart for $zero.
2998 (the_low_target): Wire `mips_fetch_register'.
3000 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3002 * lynx-i386-low.c (LYNXOS_178): New macro.
3003 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3004 the layout on LynxOS-178.
3005 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3006 handle floating point registers that are not supported by
3009 2018-05-10 Tom Tromey <tom@tromey.com>
3011 * configure: Rebuild.
3013 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3016 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3017 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3018 Use it to set the expedite_regs field in the given tdesc.
3019 * x86-tdesc.h: New file.
3020 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3021 Adjust following the addition of the new expedite_regs parameter
3022 to init_target_desc.
3023 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3024 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3025 (i386_linux_read_description, amd64_linux_read_description):
3026 Adjust following the addition of the new expedite_regs parameter
3027 to init_target_desc.
3028 * lynx-i386-low.c: #include "x86-tdesc.h".
3029 (lynx_i386_arch_setup): Adjust following the addition of the new
3030 expedite_regs parameter to init_target_desc.
3031 * nto-x86-low.c: #include "x86-tdesc.h".
3032 (nto_x86_arch_setup): Adjust following the addition of the new
3033 expedite_regs parameter to init_target_desc.
3034 * win32-i386-low.c: #include "x86-tdesc.h".
3035 (i386_arch_setup): Adjust following the addition of the new
3036 expedite_regs parameter to init_target_desc.
3038 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3041 * win32-low.c (win32_create_inferior): Add call to my_wait
3042 setting last_status global.
3044 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3047 * win32-low.c (create_process): Only call gdb_tilde_expand if
3048 inferior_cwd is not NULL.
3050 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3052 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3053 registers to the cache if their values have changed.
3054 (i387_xsave_to_cache): Provide default values for x87 control
3055 registers when these features are available, but disabled.
3056 * regcache.c (supply_register_by_name_zeroed): New function.
3057 * regcache.h (supply_register_by_name_zeroed): Declare new
3060 2018-05-07 Tom Tromey <tom@tromey.com>
3062 * configure: Rebuild.
3064 2018-05-04 Tom Tromey <tom@tromey.com>
3066 * configure: Rebuild.
3068 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3069 Pedro Alves <palves@redhat.com>
3071 * linux-aarch64-low.c (aarch64_stopped_data_address):
3074 2018-04-27 Tom Tromey <tom@tromey.com>
3076 * configure: Rebuild.
3078 2018-04-23 Tom Tromey <tom@tromey.com>
3080 * configure: Rebuild.
3082 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3084 * Makefile.in (depcomp): Add "..".
3085 (all_deps_files): New and use it.
3087 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3089 * configure.srv (aarch64*-*-linux*): Don't include xml.
3090 (i[34567]86-*-cygwin*): Likewise.
3091 (i[34567]86-*-linux*): Likewise.
3092 (i[34567]86-*-lynxos*): Likewise.
3093 (i[34567]86-*-mingw32ce*): Likewise.
3094 (i[34567]86-*-mingw*): Likewise.
3095 (i[34567]86-*-nto*): Likewise.
3096 (tic6x-*-uclinux): Likewise.
3097 (x86_64-*-linux*): Likewise.
3098 (x86_64-*-mingw*): Likewise.
3099 (x86_64-*-cygwin*): Likewise.
3101 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3103 * tdesc.c: Remove xml parameter.
3105 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3107 * server.c (get_features_xml): Remove cast.
3108 * tdesc.c (void target_desc::accept): Fill in function.
3109 (tdesc_get_features_xml): Remove old xml creation.
3110 (print_xml_feature::visit_pre): Add xml vistor.
3111 * tdesc.h (struct target_desc): Make xmltarget mutable.
3112 (tdesc_get_features_xml): Remove declaration.
3114 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3116 * tdesc.c (tdesc_architecture_name): Add new function.
3117 (tdesc_osabi_name): Likewise.
3118 (tdesc_get_features_xml): Use new functions.
3120 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3122 * tdesc.c (tdesc_create_flags): Remove.
3123 (tdesc_add_flag): Likewise.
3124 (tdesc_named_type): Likewise.
3125 (tdesc_create_union): Likewise.
3126 (tdesc_create_struct): Likewise.
3127 (tdesc_create_vector): Likewise.
3128 (tdesc_add_bitfield): Likewise.
3129 (tdesc_add_field): Likewise.
3130 (tdesc_set_struct_size): Likewise.
3132 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3134 * tdesc.c (~target_desc): Remove implictly deleted items.
3135 (init_target_desc): Iterate all features.
3136 (tdesc_get_features_xml): Use vector.
3137 (tdesc_create_feature): Create feature.
3138 * tdesc.h (tdesc_feature) Remove
3139 (target_desc): Add features.
3141 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3143 * Makefile.in: Add common/tdesc.c
3144 * tdesc.c (init_target_desc): init all reg_defs from register
3146 (tdesc_create_reg): Create tdesc_reg.
3147 * tdesc.h (tdesc_feature): Add register vector.
3149 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3151 * tdesc.h (struct target_desc) <features>: Change type to
3152 std::vector<std::string>.
3153 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
3155 (tdesc_get_features_xml): Likewise.
3156 (tdesc_create_feature): Likewise.
3158 2018-03-26 Alan Hayward <alan.hayward@arm.com>
3160 * regcache.c (find_register_by_number): Return a ref.
3161 (find_regno): Use references.
3162 (register_size): Likewise.
3163 (register_data): Likewise.
3164 * tdesc.c (target_desc::~target_desc): Remove free calls.
3165 (target_desc::operator==): Use std::vector compare.
3166 (init_target_desc): Use reference.
3167 (tdesc_create_reg): Use reg constructors.
3168 * tdesc.h (struct target_desc): Replace pointer with object.
3170 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3172 * regcache.c (find_register_by_number): Make static.
3173 (find_regno): Use find_register_by_number
3174 * regcache.h (struct reg): Remove declaration.
3176 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3178 * tdesc.c (target_desc::~target_desc): Move to here.
3179 (target_desc::operator==): Likewise.
3180 * tdesc.h (target_desc::~target_desc): Move from here.
3181 (target_desc::operator==): Likewise.
3183 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3185 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3187 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3189 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3191 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
3192 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
3193 and init_registers_s390_gs_linux64.
3195 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3197 * linux-s390-low.c (s390_fill_gs): Remove function.
3198 (s390_fill_gsbc): Remove function.
3199 (s390_regsets): Set fill functions for the guarded storage regsets
3202 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3204 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
3205 the word size. Add comment.
3206 (s390_get_wordsize): New function.
3207 (s390_arch_setup): No longer select a temporary tdesc to fetch the
3208 pswm with it. Instead, use s390_get_wordsize to determine the
3209 word size first and derive the correct tdesc from that directly.
3211 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3213 * Makefile.in: Include silent-rules.mk.
3214 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
3215 (COMPILE): Add ECHO_CXX.
3216 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3217 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3218 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
3219 (version-generated.c): Add ECHO_GEN.
3220 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
3221 (IPAGENT_COMPILE): Add ECHO_CXX.
3222 (%-generated.c): Add ECHO_REGDAT.
3224 2018-03-14 Tom Tromey <tom@tromey.com>
3227 * ax.c (ax_printf): Special case for NULL.
3229 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3231 * linux-low.c (linux_qxfer_libraries_svr4): Use
3232 xml_escape_text_append.
3234 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3236 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3238 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3240 * server.c (handle_general_set): Remove unnecessary xstrdup.
3242 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3244 * server.c (parse_debug_format_options): Adjust to
3245 delim_string_to_char_ptr_vec changes.
3246 * thread-db.c (thread_db_load_search): Adjust to
3247 dirnames_to_char_ptr_vec changes.
3249 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3251 * target.h (target_enable_btrace, target_disable_btrace)
3252 (target_read_btrace, target_read_btrace_conf): Turn macro into
3253 inline function. Throw error if target method is not defined.
3254 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
3255 check for btrace target method. Be prepared to handle exceptions
3256 from btrace target methods.
3258 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3260 * server.c (captured_main): Change order of error message printed
3261 when the current working directory cannot be found.
3263 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3265 * server.c: Include "filenames.h" and "pathstuff.h".
3266 (program_name): Delete variable.
3267 (program_path): New anonymous class.
3268 (get_exec_wrapper): Use "program_path" instead of
3270 (handle_v_run): Likewise.
3271 (captured_main): Likewise.
3272 (process_serial_event): Likewise.
3274 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3276 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
3277 (OBJS): Add "pathstuff.o".
3278 * server.c (current_directory): New global variable.
3279 (captured_main): Initialize "current_directory".
3281 2018-02-26 Alan Hayward <alan.hayward@arm.com>
3283 * tdesc.c: Use common/tdesc.h.
3284 * tdesc.h: Likewise.
3286 2018-02-20 Alan Hayward <alan.hayward@arm.com>
3287 Simon Marchi <simon.marchi@ericsson.com>
3289 * Makefile.in: Switch order of make rules.
3291 2018-02-19 Alan Hayward <alan.hayward@arm.com>
3293 * Makefile.in: Add common directory in build.
3294 * configure.ac: Add common reference.
3295 * configure: Regenerate.
3297 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3299 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
3300 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
3301 * spu-low.c (spu_target_ops): Likewise.
3302 * win32-low.c (win32_target_ops): Likewise.
3303 * server.c (supported_btrace_packets): Report packets unconditionally.
3304 * target.h (target_ops) <supports_btrace>: Remove.
3305 (target_supports_btrace): Remove.
3307 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3309 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3310 (handle_btrace_disable): Change return type to void. Use exceptions
3312 (handle_btrace_general_set): Catch exception and copy message to
3315 2018-02-08 Tom Tromey <tom@tromey.com>
3317 * linux-low.c (install_software_single_step_breakpoints): Use
3318 make_scoped_restore.
3319 * inferiors.c (make_cleanup_restore_current_thread): Remove.
3320 (do_restore_current_thread_cleanup): Remove.
3321 * gdbthread.h (make_cleanup_restore_current_thread): Don't
3324 2018-02-08 Tom Tromey <tom@tromey.com>
3326 * mem-break.c (set_raw_breakpoint_at): Use
3327 gdb::unique_xmalloc_ptr.
3329 2018-01-30 Pedro Alves <palves@redhat.com>
3332 * target.c (target_terminal::terminal_state): Rename to ...
3333 (target_terminal::m_terminal_state): ... this.
3335 2018-01-19 James Clarke <jrtc27@jrtc27.com>
3337 * linux-low.c (handle_extended_wait): Surround call to
3338 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3340 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3342 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3343 linux_ptrace_attach_fail_reason_string now returning an
3345 (linux_attach): Likewise.
3346 * thread-db.c (attach_thread): Likewise.
3348 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3351 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3352 checking for fs_base/gs_base fields in struct user_regs_struct.
3353 * configure: Regenerate.
3355 2018-01-16 Yao Qi <yao.qi@linaro.org>
3358 * linux-low.c (fetch_register): Call supply_register instead of
3361 2018-01-08 Yao Qi <yao.qi@linaro.org>
3362 Simon Marchi <simon.marchi@ericsson.com>
3364 * Makefile.in (OBS): Remove selftest.o.
3365 * configure.ac: Set srv_selftest_objs if $development is true.
3366 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
3367 * configure: Re-generated.
3368 * server.c (captured_main): Wrap variable selftest_filter with
3371 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3373 * server.c (parse_debug_format_options): Return std::string.
3374 (handle_monitor_command, captured_main): Adjust.
3376 2018-01-05 Pedro Alves <palves@redhat.com>
3379 * server.c (captured_main): Pass quiet=false to
3380 save_original_signals_state.
3382 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3384 * gdbreplay.c (gdbreplay_version): Update copyright year in
3386 * server.c (gdbserver_version): Likewise.
3388 2017-12-08 Tom Tromey <tom@tromey.com>
3390 * ax.c (ax_printf): Update.
3392 2017-12-07 Yao Qi <yao.qi@linaro.org>
3394 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
3395 aarch64_linux_read_description.
3396 * linux-amd64-ipa.c (idx2mask): New array.
3397 (get_ipa_tdesc): Move idx2mask out.
3398 (initialize_low_tracepoint): Initialize target descriptions.
3399 * linux-i386-ipa.c (idx2mask): New array.
3400 (get_ipa_tdesc): Move idx2mask out.
3401 (initialize_low_tracepoint): Initialize target descriptions.
3403 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3405 * tdesc.c (struct tdesc_type): Change return type.
3406 (tdesc_add_flag): Change parameter type.
3407 (tdesc_add_bitfield): Likewise.
3408 (tdesc_add_field): Likewise.
3409 (tdesc_set_struct_size): Likewise.
3411 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3413 * regcache.c (registers_to_string): Remove unused variable.
3415 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3417 * inferiors.c (for_each_inferior_with_data): Remove.
3418 * inferiors.h (for_each_inferior_with_data): Remove.
3419 * server.c (handle_qxfer_threads_worker): Change parameter type.
3420 (handle_qxfer_threads_proper): Use for_each_thread.
3422 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3424 * inferiors.c (for_each_inferior): Remove.
3425 (clear_inferiors): Use for_each_thread.
3426 * inferiors.h (for_each_inferior): Remove.
3427 * linux-low.c (linux_wait_for_event_filtered): Use
3429 (linux_stabilize_threads): Likewise.
3430 * regcache.c (regcache_release): Likewise.
3431 * server.c (gdb_wants_all_threads_stopped): Likewise.
3432 (clear_pending_status_callback): Remove.
3433 (handle_status): Use for_each_thread.
3434 (captured_main): Likewise.
3435 * win32-low.c (child_init_thread_list): Likewise.
3436 (win32_clear_inferiors): Likewise.
3437 (fake_breakpoint_event): Likewise.
3439 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3441 * inferiors.h (find_inferior): Remove.
3442 * inferiors.c (find_inferior): Remove.
3444 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3446 * linux-low.c (resume_status_pending_p): Update comment.
3447 (need_step_over_p): Update comment.
3449 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3451 * linux-low.c (proceed_one_lwp): Return void, change parameter
3453 (unsuspend_and_proceed_one_lwp): Likewise.
3454 (proceed_all_lwps): Use for_each_thread.
3455 (unstop_all_lwps): Likewise.
3457 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3459 * linux-low.c (linux_resume_one_thread): Return void, take
3461 (linux_resume): Use for_each_thread.
3463 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3465 * linux-low.c (send_sigstop_callback): Return void, change
3466 parameter type. Rename to...
3467 (send_sigstop): ... this.
3468 (suspend_and_send_sigstop_callback): Return void, change parameter
3470 (suspend_and_send_sigstop): ... this.
3471 (stop_all_lwps): Use for_each_thread.
3473 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3475 * linux-low.c (lwp_running): Return bool, remove unused
3477 (linux_stabilize_threads): Use find_thread.
3479 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3481 * linux-low.c (select_singlestep_lwp_callback): Remove.
3482 (count_events_callback): Remove.
3483 (select_event_lwp_callback): Remove.
3484 (select_event_lwp): Use find_thread/for_each_thread.
3486 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3488 * linux-low.c (not_stopped_callback): Return bool, take filter
3490 (linux_wait_for_event_filtered): Use find_thread.
3491 (linux_wait_1): Likewise.
3493 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3495 * linux-low.c (same_lwp): Remove.
3496 (find_lwp_pid): Use find_thread.
3498 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3500 * linux-low.c (delete_lwp_callback): Remove.
3501 (linux_mourn): Use for_each_thread.
3503 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3505 * linux-low.c (linux_detach_lwp_callback): Return void, remove
3506 args parameter, don't check for pid.
3507 (linux_detach): Use for_each_thread.
3509 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3511 * linux-low.c (struct counter): Remove.
3512 (second_thread_of_pid_p): Remove.
3513 (last_thread_of_process_p): Use find_thread.
3515 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3517 * inferiors.c (find_inferior_in_random): Remove.
3518 * inferiors.h (find_inferior_in_random): Remove.
3519 * linux-low.c (status_pending_p_callback): Return bool, accept
3520 parameter ptid directly.
3521 (linux_wait_for_event_filtered): Use find_thread_in_random.
3522 (linux_wait_1): Likewise.
3524 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3526 * inferiors.c (find_inferior_id): Remove.
3527 (find_thread_ptid): Move implemention from find_inferior_id to
3529 * inferiors.h (find_inferior_id): Remove.
3530 * server.c (handle_status): Use find_thread_ptid.
3531 (process_serial_event): Likewise.
3532 * thread-db.c (find_one_thread): Likewise.
3533 (thread_db_thread_handle): Likewise.
3534 * win32-low.c (thread_rec): Likewise.
3535 (child_delete_thread): Likewise.
3536 (win32_thread_alive): Likewise.
3537 (get_child_debug_event): Likewise.
3539 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3541 * linux-mips-low.c (update_watch_registers_callback): Return
3542 void, remove pid_p parameter, don't check for pid.
3543 (mips_insert_point, mips_remove_point): Use for_each_thread.
3545 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3547 * lynx.low (lynx_delete_thread_callback): Remove.
3548 (lynx_mourn): Use for_each_thread.
3550 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3552 * regcache.c (regcache_invalidate_one): Remove.
3553 (regcache_invalidate_pid): use for_each_thread.
3555 2017-11-26 Tom Tromey <tom@tromey.com>
3557 * linux-low.c (linux_create_inferior): Update.
3559 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
3561 * spu-low.c (spu_create_inferior): Fix typo in argument name.
3563 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3565 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
3566 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3567 * linux-aarch64-tdesc-selftest.c: New file.
3568 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3570 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3572 * configure.srv: Add new file.
3573 * linux-aarch64-low.c (initialize_low_arch): Call init func.
3574 * linux-aarch64-tdesc-selftest.c: New file.
3575 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
3577 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3579 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
3580 * linux-aarch64-low.c (initialize_low_arch): Remove init.
3581 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
3583 2017-11-24 Alan Hayward <alan.hayward@arm.com>
3585 * configure.srv: Add new files.
3586 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
3587 aarch64_linux_read_description.
3588 * linux-aarch64-low.c (aarch64_linux_read_description):
3589 Merge with aarch64_arch_setup.
3590 (aarch64_arch_setup): Call aarch64_linux_read_description.
3591 * linux-aarch64-tdesc.c: New file.
3592 * linux-aarch64-tdesc.h: New file.
3594 2017-11-24 Yao Qi <yao.qi@linaro.org>
3596 * configure.srv: Set $srv_regobj for tic6x-linux.
3597 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
3598 (tic6x_read_description): Move some code to tic6x_arch_setup.
3599 (tic6x_tdesc_test): New function.
3600 (initialize_low_arch): Call selftests::register_test.
3602 2017-11-22 Yao Qi <yao.qi@linaro.org>
3604 * remote-utils.c (prepare_resume_reply): Use memcpy.
3606 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3608 * linux-low.c (kill_one_lwp_callback): Return void, take
3609 argument directly, don't filter on pid.
3610 (linux_kill): Use for_each_thread.
3612 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3614 * linux-low.c (need_step_over_p): Return bool, remove dummy
3616 (linux_resume, proceed_all_lwps): Use find_thread.
3618 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3620 * linux-low.c (resume_status_pending_p): Return bool, remove
3622 (linux_resume): Use find_thread.
3624 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3626 * linux-low.c (struct thread_resume_array): Remove.
3627 (linux_set_resume_request): Return void, take arguments
3629 (linux_resume): Use for_each_thread.
3631 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3633 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
3634 return bool, remove data argument.
3635 (linux_stabilize_threads): Use find_thread.
3637 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3639 * linux-low.c (unsuspend_one_lwp): Remove.
3640 (unsuspend_all_lwps): Use for_each_thread, inline code from
3643 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3645 * gdbthread.h (find_thread): Add overload with ptid_t filter.
3646 * linux-low.c (struct iterate_over_lwps_args): Remove.
3647 (iterate_over_lwps_filter): Remove.
3648 (iterate_over_lwps): Use find_thread.
3650 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3652 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
3653 (linux_handle_new_gdb_connection): Use for_each_thread, inline
3654 code from reset_lwp_ptrace_options_callback.
3656 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3658 * linux-arm-low.c (struct update_registers_data): Remove.
3659 (update_registers_callback): Return void, take arguments
3660 directly, don't check thread's pid.
3661 (arm_insert_point, arm_remove_point): Use for_each_thread.
3663 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3665 * win32-low.c (continue_one_thread): Return void, take argument
3667 (child_continue): Use for_each_thread.
3669 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3671 * win32-i386-low.c (update_debug_registers_callback): Rename
3673 (update_debug_registers): ... this, return void, remove pid_p arg.
3674 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
3676 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3678 * inferiors.h (struct process_info): Add constructor, initialize
3680 <syscalls_to_catch>: Change type to std::vector<int>.
3681 * inferiors.c (add_process): Allocate process_info with new.
3682 (remove_process): Free process_info with delete.
3683 * linux-low.c (handle_extended_wait): Adjust.
3684 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
3685 * server.c (handle_general_set): Adjust.
3687 2017-11-16 Pedro Alves <palves@redhat.com>
3689 * remote-utils.c (remote_close): Block SIGIO signals instead of
3690 uninstalling the SIGIO handler.
3692 2017-11-16 Alan Hayward <alan.hayward@arm.com>
3694 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
3696 2017-11-16 Yao Qi <yao.qi@linaro.org>
3698 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
3699 (tic6x_store_gregset): Likewise.
3700 (tic6x_usrregs_info): Move it up.
3702 2017-11-15 Alan Hayward <alan.hayward@arm.com>
3704 * Makefile.in: Update arch rules.
3705 * configure.srv: Explicitly mark arch/ files.
3707 2017-11-13 Andreas Schwab <schwab@suse.de>
3709 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
3711 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3713 2017-11-06 Pedro Alves <palves@redhat.com>
3715 * config.in, configure: Regenerate.
3717 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3719 * target.c (struct thread_search): Remove.
3720 (thread_search_callback): Remove.
3721 (prepare_to_access_memory): Use for_each_thread instead of
3722 find_inferior. Inline code from thread_search_callback.
3724 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3726 * server.c (struct visit_actioned_threads_data): Remove.
3727 (visit_actioned_threads): Change prototype to take arguments
3729 (resume): Use find_thread instead of find_inferior.
3731 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3733 * server.c (queue_stop_reply_callback): Change prototype, return
3735 (find_status_pending_thread_callback): Remove.
3736 (handle_status): Replace find_inferior with find_thread and
3739 2017-10-25 Alan Hayward <alan.hayward@arm.com>
3741 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
3743 (aarch64_store_gregset): Likewise.
3744 (aarch64_fill_fpregset): Likewise.
3745 (aarch64_store_fpregset): Likewise.
3747 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3749 * gdbthread.h (find_thread, for_each_thread): New functions.
3750 * inferiors.c (thread_of_pid): Remove.
3751 (find_any_thread_of_pid): Use find_thread.
3752 * linux-low.c (num_lwps): Use for_each_thread.
3754 2017-10-17 Yao Qi <yao.qi@linaro.org>
3756 * Makefile.in: Remove one rule.
3757 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
3759 2017-10-17 Yao Qi <yao.qi@linaro.org>
3761 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
3762 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
3764 2017-10-17 Yao Qi <yao.qi@linaro.org>
3766 * configure.srv: Rename arm.o with arch/arm.o.
3768 2017-10-17 Yao Qi <yao.qi@linaro.org>
3770 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
3771 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
3772 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
3773 (arch-i386.o, arch-amd64.o): Remove rules.
3774 (arch/%.o): New rule.
3775 Update POSTCOMPILE and COMPILE.pre.
3776 * configure.ac: Invoke AC_CONFIG_COMMANDS.
3777 * configure: Re-generated.
3778 * configure.srv: Replace arch-i386.o with arch/i386.o.
3779 Replace arch-amd64.o with arch/amd64.o.
3781 2017-10-16 Yao Qi <yao.qi@linaro.org>
3783 * configure: Regenerated.
3785 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3787 * inferiors.h: (struct inferior_list): Remove.
3788 (struct inferior_list_entry); Remove.
3789 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
3790 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
3791 get_first_inferior): Remove.
3792 (for_each_inferior, for_each_inferior_with_data, find_inferior,
3793 find_inferior_id, find_inferior_in_random): Change signature.
3794 * inferiors.c (all_threads): Change type to
3795 std::list<thread_info *>.
3796 (get_thread): Remove macro.
3797 (find_inferior, find_inferior_id): Change signature, implement
3799 (find_inferior_in_random): Change signature, implement using
3800 find_thread_in_random.
3801 (for_each_inferior, for_each_inferior_with_data): Change
3802 signature, implement using for_each_thread.
3803 (add_inferior_to_list, remove_inferior): Remove.
3804 (add_thread, get_first_thread, thread_of_pid,
3805 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
3806 (get_first_inferior, one_inferior_p, clear_inferior_list):
3808 (clear_inferiors, get_thread_process): Update.
3809 * gdbthread.h: Include <list>.
3810 (struct thread_info) <entry>: Remove field.
3812 (all_threads): Change type to std::list<thread_info *>.
3813 (get_first_inferior): Add doc.
3814 (find_thread, for_each_thread, find_thread_in_random): New
3816 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
3817 * linux-arm-low.c (update_registers_callback): Update.
3818 * linux-low.c (second_thread_of_pid_p): Update.
3819 (kill_one_lwp_callback, linux_detach_lwp_callback,
3820 delete_lwp_callback, status_pending_p_callback, same_lwp,
3821 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
3822 iterate_over_lwps, not_stopped_callback,
3823 resume_stopped_resumed_lwps, count_events_callback,
3824 select_singlestep_lwp_callback, select_event_lwp_callback,
3825 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
3826 suspend_and_send_sigstop_callback, wait_for_sigstop,
3827 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
3828 lwp_running, linux_set_resume_request, resume_status_pending_p,
3829 need_step_over_p, start_step_over, linux_resume_one_thread,
3830 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
3831 reset_lwp_ptrace_options_callback): Update.
3832 * linux-mips-low.c (update_watch_registers_callback): Update.
3833 * regcache.c (regcache_invalidate_one, regcache_invalidate):
3835 (free_register_cache_thread_one): Remove.
3836 (regcache_release): Update.
3837 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
3838 handle_qxfer_threads_worker): Update.
3839 (handle_query): Update, use list iterator.
3840 (visit_actioned_threads, handle_pending_status,
3841 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
3842 clear_pending_status_callback, set_pending_status_callback,
3843 find_status_pending_thread_callback, handle_status,
3844 process_serial_event): Update.
3845 * target.c (thread_search_callback): Update.
3846 * thread-db.c (thread_db_get_tls_address): Update.
3847 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
3849 * win32-i386-low.c (update_debug_registers_callback): Update.
3850 * win32-low.c (delete_thread_info, child_delete_thread,
3851 continue_one_thread, suspend_one_thread,
3852 get_child_debug_event): Adjust.
3854 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3856 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
3857 * inferiors.h: Include <list>.
3858 (struct process_info) <entry>: Remove field.
3860 (pid_of): Change macro to function.
3861 (ptid_of, lwpid_of): Remove macro.
3862 (all_processes): Change type to std::list<process_info *>.
3863 (ALL_PROCESSES): Remove macro.
3864 (for_each_process, find_process): New function.
3865 * inferiors.c (all_processes): Change type to
3866 std::list<process_info *>.
3867 (find_thread_process): Adjust.
3868 (add_process): Likewise.
3869 (remove_process): Likewise.
3870 (find_process_pid): Likewise.
3871 (get_first_process): Likewise.
3872 (started_inferior_callback): Remove.
3873 (have_started_inferiors_p): Adjust.
3874 (attached_inferior_callback): Remove.
3875 (have_attached_inferiors_p): Adjust.
3876 * linux-low.c (check_zombie_leaders): Likewise.
3877 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
3878 (x86_linux_update_xmltarget): Adjust.
3879 * server.c (handle_query): Likewise.
3880 (gdb_reattached_process): Remove.
3881 (handle_status): Adjust.
3882 (kill_inferior_callback): Likewise.
3883 (detach_or_kill_inferior): Remove.
3884 (print_started_pid): Likewise.
3885 (print_attached_pid): Likewise.
3886 (detach_or_kill_for_exit): Update.
3887 (process_serial_event): Likewise.
3888 * linux-arm-low.c (arm_new_fork): Likewise.
3890 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3892 * dll.h: Include <list>.
3893 (struct dll_info): Add constructor.
3894 <entry>: Remove field.
3895 (all_dlls): Change type to std::list<dll_info>.
3896 * dll.c: Include <algorithm>.
3897 (get_dll): Remove macro.
3898 (all_dlls): Change type to std::list<dll_info *>.
3899 (free_one_dll): Remove.
3900 (match_dll): Likewise.
3901 (loaded_dll): Adjust.
3902 (unloaded_dll): Adjust to all_dlls type change, use
3903 std::find_if. Inline code from match_dll.
3904 (clear_dlls): Adjust to all_dlls type change.
3905 * server.c (emit_dll_description): Remove.
3906 (handle_qxfer_libraries): Adjust to all_dlls type change,
3907 integrate emit_dll_description's functionality.
3909 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3911 * linux-low.h (struct linux_target_ops) <delete_process>: New
3913 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
3914 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
3915 (struct linux_target_ops): Add delete_process callback.
3916 * linux-arm-low.c (arm_delete_process): New.
3917 (struct linux_target_ops): Add delete_process callback.
3918 * linux-bfin-low.c (struct linux_target_ops): Likewise.
3919 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
3920 * linux-m32r-low.c (struct linux_target_ops): Likewise.
3921 * linux-mips-low.c (mips_linux_delete_process): New.
3922 (struct linux_target_ops): Add delete_process callback.
3923 * linux-ppc-low.c (struct linux_target_ops): Likewise.
3924 * linux-s390-low.c (struct linux_target_ops): Likewise.
3925 * linux-sh-low.c (struct linux_target_ops): Likewise.
3926 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
3927 * linux-tile-low.c (struct linux_target_ops): Likewise.
3928 * linux-x86-low.c (x86_linux_delete_process): New.
3929 (struct linux_target_ops): Add delete_process callback.
3930 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
3932 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3934 * linux-aarch64-low.c (the_low_target): Add thread delete
3936 * linux-arm-low.c (arm_delete_thread): New function.
3937 (the_low_target): Add thread delete callback.
3938 * linux-bfin-low.c (the_low_target): Likewise.
3939 * linux-crisv32-low.c (the_low_target): Likewise.
3940 * linux-low.c (delete_lwp): Invoke delete_thread callback if
3942 * linux-low.h (struct linux_target_ops) <delete_thread>: New
3944 * linux-m32r-low.c (the_low_target): Add thread delete callback.
3945 * linux-mips-low.c (mips_linux_delete_thread): New function.
3946 (the_low_target): Add thread delete callback.
3947 * linux-ppc-low.c (the_low_target): Likewise.
3948 * linux-s390-low.c (the_low_target): Likewise.
3949 * linux-sh-low.c (the_low_target): Likewise.
3950 * linux-tic6x-low.c (the_low_target): Likewise.
3951 * linux-tile-low.c (the_low_target): Likewise.
3952 * linux-x86-low.c (the_low_target): Likewise.
3953 * linux-xtensa-low.c (the_low_target): Likewise.
3955 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
3957 * win32-low.c: Include "common-inferior.h".
3959 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3961 * inferiors.c (set_inferior_cwd): New function.
3962 * server.c (handle_general_set): Handle QSetWorkingDir packet.
3963 (handle_query): Inform that QSetWorkingDir is supported.
3964 * win32-low.c (create_process): Pass the inferior's cwd to
3967 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3969 * inferiors.c (current_inferior_cwd): New global variable.
3970 (get_inferior_cwd): New function.
3971 * inferiors.h (struct process_info) <cwd>: New field.
3973 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3975 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
3976 (OBS): Add gdb_tilde_expand.o.
3978 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
3980 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
3981 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3983 2017-09-29 Pedro Alves <palves@redhat.com>
3985 * ax.c (gdb_parse_agent_expr): Constify.
3986 * ax.h (gdb_parse_agent_expr): Constify.
3987 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3989 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
3990 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
3991 * remote-utils.h (read_ptid): Constify.
3992 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
3993 (process_point_options, process_serial_event): Constify.
3994 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
3995 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
3996 (cmd_qtbuffer): Constify.
3998 2017-09-29 Pedro Alves <palves@redhat.com>
4000 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4003 2017-09-29 Pedro Alves <palves@redhat.com>
4005 * linux-low.c (handle_extended_wait): Pass parent thread instead
4006 of process to thread_db_notice_clone.
4007 * linux-low.h (thread_db_notice_clone): Replace parent process
4008 parameter with parent thread parameter.
4009 * thread-db.c (find_one_thread): Add comment.
4010 (thread_db_notice_clone): Replace parent process parameter with
4011 parent thread parameter. Temporarily switch to the parent thread.
4013 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4015 * gdbthread.h: Include "common-gdbthread.h".
4016 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4017 "if" when validating the ptid.
4018 * remote-utils.c: Include "gdbthread.h".
4019 (prepare_resume_reply): Use "switch_to_thread".
4020 * target.c (done_accessing_memory): Likewise.
4022 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4024 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4025 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4026 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4027 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4028 s390x-gs-linux64-ipa.o to ipa_obj.
4029 * linux-s390-low.c (HWCAP_S390_GS): New define.
4030 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4032 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4033 (s390_arch_setup): Check for guarded-storage support and choose
4035 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4036 init_registers_s390x_gs_linux64.
4037 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4039 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4040 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4042 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4044 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4046 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4048 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4049 (thread_db_thread_handle): Declare.
4050 * linux-low.c (linux_target_ops): Initialize thread_handle.
4051 * server.c (handle_qxfer_threads_worker): Add support for
4053 * target.h (struct target_ops): Add new function pointer,
4055 (target_thread_handle): Define.
4056 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4058 (thread_db_thread_handle): New function.
4060 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4062 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4063 * linux-low.h (thread_db_notice_clone): Declare.
4064 * thread-db.c (thread_db_notice_clone): New function.
4066 2017-09-21 Pedro Alves <palves@redhat.com>
4068 * server.c (gdb_read_memory, handle_status, process_serial_event)
4069 (handle_serial_event, handle_target_event): Adjust to
4070 set_desired_thread prototype change.
4071 * target.c (set_desired_thread): Remove 'use_general' parameter
4073 * target.h (set_desired_thread): Remove 'use_general' parameter.
4075 2017-09-20 Tom Tromey <tom@tromey.com>
4077 * target.c (target_terminal::terminal_state): Define.
4078 (target_terminal::init): Rename from target_terminal_init.
4079 (target_terminal::inferior): Rename from
4080 target_terminal_inferior.
4081 (target_terminal::ours): Rename from target_terminal_ours.
4082 (target_terminal::ours_for_output, target_terminal::info): New.
4084 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4086 * server.c (accumulate_file_name_length): Remove.
4087 (emit_dll_description): Adjust to std::string change.
4088 (handle_qxfer_libraries): Use std::string to hold document.
4090 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4092 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4093 return type of xml_escape_text.
4094 * server.c (emit_dll_description): Likewise.
4096 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4098 * server.c (captured_main): Accept argument for --selftest.
4099 Update run_tests call.
4100 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
4101 when registering selftests.
4103 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4105 * regcache.c (get_thread_regcache): Update code to use "std::vector"
4106 instead of "VEC" for "target_desc.reg_defs".
4107 (regcache_cpy): Likewise.
4108 (registers_to_string): Likewise.
4109 (registers_from_string): Likewise.
4110 (find_regno): Likewise.
4111 (supply_regblock): Likewise.
4112 (regcache_raw_read_unsigned): Likewise.
4113 * tdesc.c (init_target_desc): Likewise.
4114 (tdesc_create_reg): Likewise.
4115 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
4116 (struct target_desc) <reg_defs>: Convert to "std::vector".
4117 (target_desc): Do not initialize "reg_defs".
4118 (~target_desc): Update code to use "std::vector" instead of "VEC"
4119 for "target_desc.reg_defs".
4120 (operator==): Likewise.
4122 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4124 * inferiors.h (thread_to_gdb_id): Remove.
4125 * inferiors.c (thread_to_gdb_id): Remove.
4126 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
4127 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
4128 lynx_store_registers, lynx_read_memory, lynx_write_memory):
4130 * nto-low.c (nto_fetch_registers, nto_store_registers,
4131 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4133 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4135 * inferiors.h (gdb_id_to_thread_id): Remove.
4136 * inferiors.c (gdb_id_to_thread_id): Remove.
4137 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
4138 removal. Move pid declaration closer to where it's used.
4140 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4142 * server.c (handle_detach): New function.
4143 (process_serial_event): Move code out, call handle_detach.
4145 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4147 * server.c (require_running): Rename to ...
4148 (require_running_or_return): ... this ...
4149 (require_running_or_break): ... and this.
4150 (handle_query, process_serial_event): Adjust.
4152 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4154 * linux-low.c (linux_set_resume_request): Remove unused
4157 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4159 * server.c (first_thread_of): Remove.
4160 (process_serial_event): Replace usage of first_thread_of with
4161 find_any_thread_of_pid.
4162 * tracepoint.c (same_process_p): Remove.
4163 (gdb_agent_about_to_close): Replace usage of same_process_p with
4164 find_any_thread_of_pid.
4165 * linux-x86-low.c (same_process_callback): Remove.
4166 (x86_arch_setup_process_callback): Replace usage of
4167 same_process_callback with find_any_thread_of_pid.
4168 * thread-db.c (any_thread_of): Remove.
4169 (switch_to_process): Replace usage of any_thread_of with
4170 find_any_thread_of_pid.
4171 * inferiors.c (thread_pid_matches_callback): Remove.
4172 (find_thread_process): Adjust to use find_any_thread_of_pid.
4174 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4176 * regcache.c (get_thread_regcache): Guard calls to "memset"
4179 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4181 * linux-low.c (handle_extended_wait): Use
4182 "allocate_target_description" instead of "XNEW".
4183 * linux-x86-low.c (initialize_low_arch): Likewise.
4185 2017-09-05 Yao Qi <yao.qi@linaro.org>
4187 * configure.srv (srv_i386_regobj): Remove.
4188 (srv_amd64_regobj): Remove.
4189 (srv_regobj): Set it to "" for x86 non-linux targets.
4190 * linux-x86-tdesc.c (i386_linux_read_description):
4191 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
4192 (init_registers_i386): Remove the declaration.
4193 (tdesc_i386): Remove the declaration.
4194 (lynx_i386_arch_setup): Call i386_create_target_description.
4195 * nto-x86-low.c: Likewise.
4196 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
4197 [!__x86_64__]: include arch/i386.h.
4198 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
4200 2017-09-05 Yao Qi <yao.qi@linaro.org>
4202 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4203 i386/amd64-XXX-linux from it.
4205 2017-09-05 Yao Qi <yao.qi@linaro.org>
4207 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4209 (ipa_amd64_linux_regobj): Remove.
4210 (ipa_x32_linux_regobj): Remove.
4212 2017-09-05 Yao Qi <yao.qi@linaro.org>
4214 * Makefile.in (arch-amd64.o): New rule.
4215 * configure.srv: Append arch-amd64.o.
4216 * linux-amd64-ipa.c: Include common/x86-xstate.h.
4217 (get_ipa_tdesc): Call amd64_linux_read_description.
4218 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
4219 and init_registers_amd64_XXX.
4220 * linux-x86-low.c (x86_linux_read_description): Call
4221 amd64_linux_read_description.
4222 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
4223 (initialize_low_arch): Don't call init_registers_x32_XXX and
4224 init_registers_amd64_XXX.
4225 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
4226 and tdesc_amd64_XXX.
4227 [__x86_64__] (amd64_tdesc_test): New function.
4228 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
4229 and init_registers_amd64_XXX.
4230 * linux-x86-tdesc.c: Include arch/amd64.h.
4231 (xcr0_to_tdesc_idx): New function.
4232 (i386_linux_read_description): New function.
4233 (amd64_get_ipa_tdesc_idx): New function.
4234 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
4235 (amd64_get_ipa_tdesc): Declare.
4237 2017-09-05 Yao Qi <yao.qi@linaro.org>
4239 * configure.srv (srv_i386_linux_xmlfiles): Remove
4240 i386/i386-XXX-linux.xml from it.
4242 2017-09-05 Yao Qi <yao.qi@linaro.org>
4244 * configure.srv: Set srv_i386_linux_regobj empty if $development
4246 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
4247 initialize_low_tdesc.
4248 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
4249 with #if initialize_low_tdesc.
4250 * linux-x86-tdesc-selftest.c: New file.
4251 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
4253 2017-09-05 Yao Qi <yao.qi@linaro.org>
4255 * Makefile.in (arch-i386.o): New rule.
4256 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
4257 (x86_64-*-linux*): Likewise.
4258 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
4259 include arch/i386.h.
4260 (i386_linux_read_description): Remove code and call
4261 i386_create_target_description.
4262 * tdesc.c (allocate_target_description): New function.
4263 * tdesc.h (set_tdesc_architecture): Remove declaration.
4264 (set_tdesc_osabi): Likewise.
4266 2017-09-05 Yao Qi <yao.qi@linaro.org>
4268 * linux-x86-tdesc.c: Don't include <inttypes.h>.
4269 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
4270 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
4272 * server.c (get_features_xml): Call tdesc_get_features_xml.
4273 * tdesc.c (set_tdesc_architecture): New function.
4274 (set_tdesc_osabi): New function.
4275 (tdesc_get_features_xml): New function.
4276 (tdesc_create_feature): Add an argument.
4277 * tdesc.h (struct target_desc) <features>: New field.
4278 <arch, osabi>: New field.
4279 (~target_desc): xfree features, arch, and osabi.
4280 (target_desc::oerator==): Don't compare .xmltarget.
4281 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
4282 (set_tdesc_osabi): Likewise.
4283 (tdesc_get_features_xml): Likewise.
4285 2017-09-05 Yao Qi <yao.qi@linaro.org>
4287 * linux-x86-tdesc.c: Include selftest.h.
4288 (i386_tdesc_test): New function.
4289 (initialize_low_tdesc): Call selftests::register_test.
4290 * tdesc.h: Include regdef.h.
4291 (target_desc): Override operator == and !=.
4293 2017-09-05 Yao Qi <yao.qi@linaro.org>
4295 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
4296 (ipa_obj): Likewise.
4297 * linux-i386-ipa.c: Include common/x86-xstate.h
4298 (get_ipa_tdesc): Call i386_linux_read_description.
4299 (initialize_low_tracepoint): Don't call init_registers_XXX
4300 functions, call initialize_low_tdesc instead.
4301 * linux-x86-low.c (x86_linux_read_description): Call
4302 i386_linux_read_description.
4303 (initialize_low_arch): Don't call init_registers_i386_XXX
4304 functions, call initialize_low_tdesc.
4305 * linux-x86-tdesc.c: New file.
4306 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
4307 (i386_get_ipa_tdesc_idx): Declare.
4308 (i386_get_ipa_tdesc): Declare.
4309 (initialize_low_tdesc): Declare.
4311 2017-09-05 Yao Qi <yao.qi@linaro.org>
4313 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4316 2017-09-05 Yao Qi <yao.qi@linaro.org>
4318 * Makefile.in (IPA_OBJS): Add vec-ipa.o
4319 * regcache.c (get_thread_regcache): Use VEC_length.
4320 (init_register_cache): Likewise.
4321 (regcache_cpy): Likewise.
4322 (registers_to_string): Iterate reg_defs via VEC_iterate.
4323 (find_regno): Likewise.
4324 (find_register_by_number): Use VEC_index.
4325 (register_size): Call find_register_by_number.
4326 (register_data): Call find_register_by_number.
4327 (supply_regblock): Use VEC_length.
4328 (regcache_raw_read_unsigned): Likewise.
4329 * tdesc.c (init_target_desc): Iterate reg_defs via
4331 (default_description): Update initializer.
4332 (copy_target_description): Don't update field num_registers.
4333 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
4334 <num_registers>: Remove.
4336 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4338 * Makefile.in (.SECONDARY): Define target.
4340 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4342 * linux-low.c (linux_wait_1): Adjust.
4343 * server.c (queue_stop_reply_callback): Adjust.
4345 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4347 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
4348 QEnvironmentUnset and QEnvironmentReset packets.
4349 (handle_query): Inform remote that QEnvironmentHexEncoded,
4350 QEnvironmentUnset and QEnvironmentReset are supported.
4352 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4354 * inferiors.h (inferior_target_data): Rename to ...
4355 (thread_target_data): ... this.
4356 (inferior_regcache_data): Rename to ...
4357 (thread_regcache_data): ... this.
4358 (set_inferior_regcache_data): Rename to ...
4359 (set_thread_regcache_data): ... this.
4360 * inferiors.c (inferior_target_data): Rename to ...
4361 (thread_target_data): ... this.
4362 (inferior_regcache_data): Rename to ...
4363 (thread_regcache_data): ... this.
4364 (set_inferior_regcache_data): Rename to ...
4365 (set_thread_regcache_data): ... this.
4366 (free_one_thread): Update.
4367 * linux-low.h (get_thread_lwp): Update.
4368 * regcache.c (get_thread_regcache): Update.
4369 (regcache_invalidate_thread): Update.
4370 (free_register_cache_thread): Update.
4371 * win32-i386-low.c (update_debug_registers_callback): Update.
4372 (win32_get_current_dr): Update.
4373 * win32-low.c (thread_rec): Update.
4374 (delete_thread_info): Update.
4375 (continue_one_thread): Update.
4376 (suspend_one_thread): Update.
4378 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4380 * inferiors.c (set_inferior_target_data): Remove.
4381 * inferiors.h (set_inferior_target_data): Remove.
4383 2017-08-18 Yao Qi <yao.qi@linaro.org>
4385 * Makefile.in (OBS): Add selftest.o.
4386 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
4387 * configure, config.in: Re-generated.
4388 * server.c: Include common/sefltest.h.
4389 (captured_main): Handle option --selftest.
4391 2017-08-09 Yao Qi <yao.qi@linaro.org>
4393 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
4394 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
4395 i386-avx-mpx.o and i386-mmx.o.
4396 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
4397 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
4398 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
4399 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
4400 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
4401 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
4402 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
4403 i386/amd64-avx-mpx.xml.
4405 2017-08-09 Yao Qi <yao.qi@linaro.org>
4407 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
4408 and x32-avx-avx512.o.
4409 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
4410 i386/x32-avx-avx512.xml.
4412 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4414 * tracepoint.h (enum class fast_tpoint_collect_result): New
4416 (fast_tracepoint_collecting): Change return type to
4417 fast_tpoint_collect_result.
4418 * tracepoint.c (fast_tracepoint_collecting): Likewise.
4419 * linux-low.h: Include tracepoint.h.
4420 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
4421 fast_tpoint_collect_result.
4422 * linux-low.c (handle_tracepoints): Adjust.
4423 (linux_fast_tracepoint_collecting): Change return type to
4424 fast_tpoint_collect_result.
4425 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
4426 linux_wait_1, stuck_in_jump_pad_callback,
4427 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
4428 proceed_one_lwp): Adjust to type change.
4430 2017-07-10 Yao Qi <yao.qi@linaro.org>
4432 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4434 2017-06-29 Yao Qi <yao.qi@linaro.org>
4436 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4438 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4440 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4442 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4444 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4446 * linux-low.c (linux_create_inferior): Adjust code to access the
4447 environment information via 'gdb_environ' class.
4448 * lynx-low.c (lynx_create_inferior): Likewise.
4449 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4450 (get_environ): Return a pointer to 'our_environ'.
4451 (captured_main): Initialize 'our_environ'.
4452 * server.h (get_environ): Adjust prototype.
4453 * spu-low.c (spu_create_inferior): Adjust code to access the
4454 environment information via 'gdb_environ' class.
4456 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4458 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4459 usage of "register" keyword.
4461 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4463 * configure: Re-generate.
4465 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4467 * configure: Re-generate.
4469 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4471 * Makefile.in (COMPILE.pre): Add "-x c++".
4473 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4475 * fork-child.c: Conditionally include <signal.h>.
4477 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4479 * server.c (handle_general_set): Handle new packet
4480 "QStartupWithShell".
4481 (handle_query): Add "QStartupWithShell" to the list of supported
4483 (gdbserver_usage): Add help text explaining the
4484 new "--startup-with-shell" and "--no-startup-with-shell" CLI
4486 (captured_main): Recognize and act upon the presence of the new
4489 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4490 Pedro Alves <palves@redhat.com>
4492 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
4493 * configure: Regenerate.
4494 * configure.srv (srv_linux_obj): Add "fork-child.o" and
4496 (i[34567]86-*-lynxos*): Likewise.
4497 (spu*-*-*): Likewise.
4498 * fork-child.c: New file.
4499 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
4501 (linux_ptrace_fun): New function.
4502 (linux_create_inferior): Adjust function prototype to reflect
4503 change on "target.h". Adjust function code to use
4505 (linux_request_interrupt): Delete "signal_pid".
4506 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4507 (lynx_ptrace_fun): New function.
4508 (lynx_create_inferior): Adjust function prototype to reflect
4509 change on "target.h". Adjust function code to use
4511 * nto-low.c (nto_create_inferior): Adjust function prototype and
4512 code to reflect change on "target.h". Update comments.
4513 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
4514 "common-terminal.h" and "environ.h".
4515 (terminal_fd): Moved to fork-child.c.
4516 (old_foreground_pgrp): Likewise.
4517 (restore_old_foreground_pgrp): Likewise.
4518 (last_status): Make it global.
4519 (last_ptid): Likewise.
4520 (our_environ): New variable.
4521 (startup_with_shell): Likewise.
4522 (program_name): Likewise.
4523 (program_argv): Rename to...
4524 (program_args): ...this.
4525 (wrapper_argv): New variable.
4526 (start_inferior): Delete function.
4527 (get_exec_wrapper): New function.
4528 (get_exec_file): Likewise.
4529 (get_environ): Likewise.
4530 (prefork_hook): Likewise.
4531 (post_fork_inferior): Likewise.
4532 (postfork_hook): Likewise.
4533 (postfork_child_hook): Likewise.
4534 (handle_v_run): Update code to deal with arguments coming from the
4535 remote host. Update calls from "start_inferior" to
4537 (captured_main): Likewise. Initialize environment variable. Call
4539 * server.h (post_fork_inferior): New prototype.
4540 (get_environ): Likewise.
4541 (last_status): Declare.
4542 (last_ptid): Likewise.
4543 (signal_pid): Likewise.
4544 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
4545 (spu_ptrace_fun): New function.
4546 (spu_create_inferior): Adjust function prototype to reflect change
4547 on "target.h". Adjust function code to use "fork_inferior".
4548 * target.c (target_terminal_init): New function.
4549 (target_terminal_inferior): Likewise.
4550 (target_terminal_ours): Likewise.
4551 * target.h: Include <vector>.
4552 (struct target_ops) <create_inferior>: Update prototype.
4553 (create_inferior): Update macro.
4554 * utils.c (gdb_flush_out_err): New function.
4555 * win32-low.c (win32_create_inferior): Adjust function prototype
4556 and code to reflect change on "target.h".
4558 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4560 * inferiors.c (switch_to_thread): New function.
4562 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4564 * Makefile.in (SFILE): Add "common/job-control.c".
4565 (OBS): Add "job-control.o".
4567 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4569 * Makefile: Remove "@host_makefile_frag@".
4571 2017-05-05 Pedro Alves <palves@redhat.com>
4573 * configure: Regenerate.
4575 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4577 * configure: Regenerate.
4579 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
4581 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
4582 software_single_step change of return type to
4583 std::vector<CORE_ADDR>.
4584 * linux-low.c (install_software_single_step_breakpoints):
4586 * linux-low.h (install_software_single_step_breakpoints):
4589 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4591 * remote-utils.c: Include "gdb_termios.h" instead of
4593 * terminal.h: Delete file.
4595 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
4597 * server.c: Include <vector>.
4598 <program_argv, wrapper_argv>: Convert to std::vector.
4599 (start_inferior): Rewrite function to use C++.
4600 (handle_v_run): Likewise. Update code that calculates the argv
4601 based on the vRun packet; use C++.
4602 (captured_main): Likewise.
4604 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
4606 * server.c (handle_v_cont): Initialize thread_resume::thread
4609 2017-04-05 Pedro Alves <palves@redhat.com>
4611 * configure: Regenerate.
4613 2017-04-05 Pedro Alves <palves@redhat.com>
4615 * gdbreplay.c (sync_error): Constify.
4616 * linux-x86-low.c (push_opcode): Constify.
4618 2017-04-05 Pedro Alves <palves@redhat.com>
4620 * win32-low.c (get_child_debug_event)
4621 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
4622 Report TARGET_WAITKIND_SPURIOUS instead.
4624 2017-04-05 Pedro Alves <palves@redhat.com>
4626 * remote-utils.c (remote_prepare, remote_open): Constify.
4627 * remote-utils.h (remote_prepare, remote_open): Constify.
4628 * server.c (captured_main): Constify 'port' handling.
4630 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
4632 * Makefile.in (clean): Clear .deps.
4634 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
4636 * .gitignore: Remove generated files, replace with wildcard.
4637 * (clean): Replace removal of generated files with wildcard.
4638 (version.c): Replace with...
4639 (version-generated.c): ...this.
4640 (xml-builtin.c): Replace with...
4641 (xml-builtin-generated.c): ...this.
4642 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
4643 (%.c: *regformats*): Replace with...
4644 (%-generated.c: *regformats*): ...this.
4646 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4648 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
4649 (xtensa_fill_gregset): Call collect_register_by_name for
4651 (xtensa_store_gregset): Call supply_register_by_name for
4654 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
4656 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
4657 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
4658 (xtensa_store_gregset): Call supply_register for all registers in
4659 a0_regnum..a0_regnum + C0_NREGS range.
4661 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4663 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
4664 (ax-ipa.o: ax.c): Remove.
4665 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
4666 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
4667 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
4668 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
4669 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
4671 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4673 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
4674 (print-utils-ipa.o: ../common/print-utils.c): Remove.
4675 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
4676 (errors-ipa.o: ../common/errors.c): Remove.
4677 (format-ipa.o: ../common/format.c): Remove.
4678 (common-utils-ipa.o: ../common/common-utils.c): Remove.
4680 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4682 * Makefile.in (%-ipa.o: %.c): New rule.
4683 (tracepoint-ipa.o: tracepoint.c): Remove.
4684 (utils-ipa.o: utils.c): Remove.
4685 (remote-utils-ipa.o: remote-utils.c): Remove.
4686 (regcache-ipa.o: regcache.c): Remove.
4687 (i386-linux-ipa.o: i386-linux.c): Remove.
4688 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
4689 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
4690 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
4691 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
4692 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
4693 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
4694 (amd64-linux-ipa.o: amd64-linux.c): Remove.
4695 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
4696 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
4697 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
4698 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
4699 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
4700 (aarch64-ipa.o: aarch64.c): Remove.
4701 (s390-linux32-ipa.o: s390-linux32.c): Remove.
4702 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
4703 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
4704 (s390-linux64-ipa.o: s390-linux64.c): Remove.
4705 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
4706 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
4707 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
4708 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
4709 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
4710 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
4711 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
4712 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
4713 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
4714 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
4715 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
4716 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
4717 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
4718 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
4719 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
4720 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
4721 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
4722 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
4723 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
4724 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
4725 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
4726 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
4727 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
4728 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
4729 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
4730 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
4731 (tdesc-ipa.o: tdesc.c): Remove.
4732 (x32-linux-ipa.o: x32-linux.c): Remove.
4733 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
4734 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
4736 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4738 * Makefile.in (%.o: ../arch/%.c): New rule.
4739 (arm.o: ../arch/arm.c): Remove.
4740 (arm-linux.o: ../arch/arm-linux.c): Remove.
4741 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
4742 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
4744 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4746 * Makefile.in (%.o: ../nat/%.c): New rule.
4747 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
4748 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
4749 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
4750 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
4751 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
4752 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
4753 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
4754 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
4755 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
4756 (linux-personality.o: ../nat/linux-personality.c): Remove.
4757 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
4758 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
4759 (x86-linux.o: ../nat/x86-linux.c): Remove.
4760 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
4761 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
4763 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4765 * Makefile.in (%.o: ../common/%.c): New rule.
4766 (signals.o: ../common/signals.c): Remove.
4767 (print-utils.o: ../common/print-utils.c): Remove.
4768 (rsp-low.o: ../common/rsp-low.c): Remove.
4769 (common-utils.o: ../common/common-utils.c): Remove.
4770 (posix-strerror.o: ../common/posix-strerror.c): Remove.
4771 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
4772 (vec.o: ../common/vec.c): Remove.
4773 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
4774 (xml-utils.o: ../common/xml-utils.c): Remove.
4775 (ptid.o: ../common/ptid.c): Remove.
4776 (buffer.o: ../common/buffer.c): Remove.
4777 (format.o: ../common/format.c): Remove.
4778 (filestuff.o: ../common/filestuff.c): Remove.
4779 (agent.o: ../common/agent.c): Remove.
4780 (errors.o: ../common/errors.c): Remove.
4781 (environ.o: ../common/environ.c): Remove.
4782 (common-debug.o: ../common/common-debug.c): Remove.
4783 (cleanups.o: ../common/cleanups.c): Remove.
4784 (common-exceptions.o: ../common/common-exceptions.c): Remove.
4785 (fileio.o: ../common/fileio.c): Remove.
4786 (common-regcache.o: ../common/common-regcache.c): Remove.
4787 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
4788 (new-op.o: ../common/new-op.c): Remove.
4789 (btrace-common.o: ../common/btrace-common.c): Remove.
4791 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4793 * Makefile.in (%.o: ../target/%.c): New rule.
4794 (waitstatus.o: ../target/waitstatus.c): Remove.
4796 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4799 (%.c: ../regformats/%.dat,
4800 (%.c: ../regformats/arm/%.dat,
4801 (%.c: ../regformats/i386/%.dat,
4802 (%.c: ../regformats/rs6000/%.dat): New rules.
4803 (aarch64.c): Remove.
4804 (reg-arm.c): Remove.
4805 (arm-with-iwmmxt.c): Remove.
4806 (arm-with-vfpv2.c): Remove.
4807 (arm-with-vfpv3.c): Remove.
4808 (arm-with-neon.c): Remove.
4809 (reg-bfin.c): Remove.
4810 (reg-cris.c): Remove.
4811 (reg-crisv32.c): Remove.
4813 (i386-linux.c): Remove.
4814 (i386-avx.c): Remove.
4815 (i386-avx-linux.c): Remove.
4816 (i386-avx-avx512.c): Remove.
4817 (i386-avx-avx512-linux.c): Remove.
4818 (i386-mpx.c): Remove.
4819 (i386-mpx-linux.c): Remove.
4820 (i386-avx-mpx-avx512-pku.c): Remove.
4821 (i386-avx-mpx-avx512-pku-linux.c): Remove.
4822 (i386-avx-mpx.c): Remove.
4823 (i386-avx-mpx-linux.c): Remove.
4824 (i386-mmx.c): Remove.
4825 (i386-mmx-linux.c): Remove.
4826 (reg-ia64.c): Remove.
4827 (reg-m32r.c): Remove.
4828 (reg-m68k.c): Remove.
4830 (mips-linux.c): Remove.
4831 (mips-dsp-linux.c): Remove.
4832 (mips64-linux.c): Remove.
4833 (mips64-dsp-linux.c): Remove.
4834 (nios2-linux.c): Remove.
4835 (powerpc-32.c): Remove.
4836 (powerpc-32l.c): Remove.
4837 (powerpc-altivec32l.c): Remove.
4838 (powerpc-cell32l.c): Remove.
4839 (powerpc-vsx32l.c): Remove.
4840 (powerpc-isa205-32l.c): Remove.
4841 (powerpc-isa205-altivec32l.c): Remove.
4842 (powerpc-isa205-vsx32l.c): Remove.
4843 (powerpc-e500l.c): Remove.
4844 (powerpc-64l.c): Remove.
4845 (powerpc-altivec64l.c): Remove.
4846 (powerpc-cell64l.c): Remove.
4847 (powerpc-vsx64l.c): Remove.
4848 (powerpc-isa205-64l.c): Remove.
4849 (powerpc-isa205-altivec64l.c): Remove.
4850 (powerpc-isa205-vsx64l.c): Remove.
4851 (s390-linux32.c): Remove.
4852 (s390-linux32v1.c): Remove.
4853 (s390-linux32v2.c): Remove.
4854 (s390-linux64.c): Remove.
4855 (s390-linux64v1.c): Remove.
4856 (s390-linux64v2.c): Remove.
4857 (s390-te-linux64.c): Remove.
4858 (s390-vx-linux64.c): Remove.
4859 (s390-tevx-linux64.c): Remove.
4860 (s390x-linux64.c): Remove.
4861 (s390x-linux64v1.c): Remove.
4862 (s390x-linux64v2.c): Remove.
4863 (s390x-te-linux64.c): Remove.
4864 (s390x-vx-linux64.c): Remove.
4865 (s390x-tevx-linux64.c): Remove.
4866 (tic6x-c64xp-linux.c): Remove.
4867 (tic6x-c64x-linux.c): Remove.
4868 (tic6x-c62x-linux.c): Remove.
4870 (reg-sparc64.c): Remove.
4871 (reg-spu.c): Remove.
4873 (amd64-linux.c): Remove.
4874 (amd64-avx.c): Remove.
4875 (amd64-avx-linux.c): Remove.
4876 (amd64-avx-avx512.c): Remove.
4877 (amd64-avx-avx512-linux.c): Remove.
4878 (amd64-mpx.c): Remove.
4879 (amd64-mpx-linux.c): Remove.
4880 (amd64-avx-mpx-avx512-pku.c): Remove.
4881 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
4882 (amd64-avx-mpx.c): Remove.
4883 (amd64-avx-mpx-linux.c): Remove.
4885 (x32-linux.c): Remove.
4886 (x32-avx.c): Remove.
4887 (x32-avx-linux.c): Remove.
4888 (x32-avx-avx512.c): Remove.
4889 (x32-avx-avx512-linux.c): Remove.
4890 (reg-xtensa.c): Remove.
4891 (reg-tilegx.c): Remove.
4892 (reg-tilegx32.c): Remove.
4894 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
4896 * Makefile.in (SFILES): Add "common/environ.c".
4897 (OBJS): Add "common/environ.h".
4899 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4901 * configure.ac: Check if the fs_base and gs_base members of
4902 `struct user_regs_struct' exist.
4903 * config.in: Regenerated.
4904 * configure: Likewise.
4906 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
4908 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
4910 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
4911 (get_next_pcs_syscall_next_pc): Likewise.
4913 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
4915 * win32-i386-low.c: Fix incorrect reference to a couple source files.
4916 * nto-x86-low.c: Likewise.
4918 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
4920 * Makefile.in: Include disable-implicit-rules.mk.
4922 2016-11-23 Pedro Alves <palves@redhat.com>
4924 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
4925 (debug_vprintf): Use std::chrono::steady_clock instead of
4926 gettimeofday. Use '.' instead of ':'.
4927 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
4928 (get_timestamp): Use std::chrono::steady_clock instead of
4931 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4933 * Makefile.in: Fix whitespace formatting.
4935 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4937 * Makefile.in (SFILES, OBS): Flatten list and order
4940 2016-11-23 Pedro Alves <palves@redhat.com>
4942 * event-loop.c (handle_file_event): Use warning.
4943 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
4944 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4947 2016-11-23 Pedro Alves <palves@redhat.com>
4949 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
4951 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
4952 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
4953 debug_printf and debug_flush for debug output.
4954 * server.c (handle_general_set): Likewise.
4955 * thread-db.c (try_thread_db_load): Use debug_printf for debug
4958 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4960 * Makefile.in (.c.o): Replace rule with ...
4961 (%.o: %.c): ... this one.
4963 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4965 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
4966 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
4968 * configure.ac: Remove checks for the make program.
4969 * configure: Re-generate.
4971 2016-10-28 Pedro Alves <palves@redhat.com>
4973 * Makefile.in (CXX_DIALECT): Get from configure.
4974 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
4975 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
4976 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
4977 * config.in: Regenerate.
4978 * configure: Regenerate.
4980 2016-10-27 Yao Qi <yao.qi@linaro.org>
4982 * linux-low.c (linux_supports_range_stepping): Return true if
4983 can_software_single_step return true.
4985 2016-10-27 Yao Qi <yao.qi@linaro.org>
4987 * inferiors.c (find_inferior_in_random): New function.
4988 * inferiors.h (find_inferior_in_random): Declare.
4989 * linux-low.c (linux_wait_for_event_filtered): Call
4990 find_inferior_in_random instead of find_inferior.
4992 2016-10-27 Yao Qi <yao.qi@linaro.org>
4994 * linux-low.c (linux_wait_1): If single-step breakpoints are
4995 inserted, remove them.
4997 2016-10-26 Pedro Alves <palves@redhat.com>
4999 * linux-low.c (handle_extended_wait): Link parent/child fork
5001 (linux_wait_1): Unlink them.
5002 (linux_set_resume_request): Ignore resume requests for
5003 already-resumed and unhandled fork child threads.
5004 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5005 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5007 (handle_v_requests) <vCont>: Don't call require_running.
5008 * server.h (in_queued_stop_replies): New declaration.
5010 2016-10-24 Yao Qi <yao.qi@linaro.org>
5013 * linux-aarch64-low.c (append_insns): Cast the return value to
5016 2016-10-10 Yao Qi <yao.qi@linaro.org>
5018 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5020 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5022 * target.c (target_supports_multi_process): New function, moved
5024 * target.h (target_supports_multi_process): ... here. Remove
5027 2016-10-05 Tom Tromey <tom@tromey.com>
5030 * tracepoint.c (handle_tracepoint_bkpts): Check
5031 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5033 2016-10-05 Yao Qi <yao.qi@linaro.org>
5035 * configure.srv: Update the path of arm-*.xml files.
5037 2016-10-05 Terry Guo <terry.guo@arm.com>
5038 Yao Qi <yao.qi@linaro.org>
5040 * Makefile.in: Adjust the path of rules.
5041 * configure.srv: Update the path of xml files.
5042 * regformats/arm-with-iwmmxt.dat: Regenerated.
5043 * regformats/arm-with-neon.dat: Likewise.
5044 * regformats/arm-with-vfpv2.dat: Likewise.
5045 * regformats/arm-with-vfpv3.dat Likewise.
5047 2016-09-30 Yao Qi <yao.qi@linaro.org>
5050 * target.c (target_stop_and_wait): Don't call
5051 target_continue_no_signal, use resume_stop instead.
5053 2016-09-26 Yao Qi <yao.qi@linaro.org>
5055 * linux-low.c (linux_wait_1): Call debug_exit.
5057 2016-09-23 Pedro Alves <palves@redhat.com>
5059 * Makefile.in (SFILES): Add common/new-op.c.
5060 (OBS): Add common/new-op.o.
5061 (new-op.o): New rule.
5063 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5065 * .gitinore: Ignore more files.
5067 2016-09-21 Yao Qi <yao.qi@linaro.org>
5069 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5072 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5074 * server.c (start_inferior): Call target_mourn_inferior instead of
5075 mourn_inferior; pass ptid_t argument to it.
5077 (handle_target_event): Likewise.
5078 * target.c (target_mourn_inferior): New function.
5079 * target.h (mourn_inferior): Delete macro.
5081 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5083 * linux-low.c (lwp_is_stepping): New function.
5085 2016-09-06 Carl Love <cel@us.ibm.com>
5087 * server.c (start_inferior): Fixed comment, requested comment change
5088 didn't get updated correctly. Removed reference to ptrace () call as
5089 it is only true on Linux systems.
5091 2016-09-06 Carl Love <cel@us.ibm.com>
5093 * server.c (start_inferior): Do not call
5094 function target_post_create_inferior () if the
5095 inferior process has already exited.
5097 2016-09-05 Pedro Alves <palves@redhat.com>
5099 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
5100 (COMPILE.pre, CC_LD): Use CXX directly.
5101 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
5102 * acinclude.m4: Don't include build-with-cxx.m4.
5103 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
5104 * configure: Regenerate.
5106 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5109 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5110 call writing data to own_buf.
5112 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5114 * target.c (mywait): Call target_wait instead of
5116 (target_wait): New function.
5118 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5120 * server.c (start_inferior): New variable 'ptid'. Replace calls
5121 to the_target->resume by target_continue{,_no_signal}, depending
5123 * target.c (target_stop_and_wait): Call target_continue_no_signal
5124 instead of the_target->resume.
5125 (target_continue): New function.
5127 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5129 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5131 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5134 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5136 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
5137 * linux-arm-low.c (ps_get_thread_area): Likewise.
5138 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
5139 * linux-m68k-low.c (ps_get_thread_area): Likewise.
5140 * linux-mips-low.c (ps_get_thread_area): Likewise.
5141 * linux-nios2-low.c (ps_get_thread_area): Likewise.
5142 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
5143 * linux-x86-low.c (ps_get_thread_area): Likewise.
5144 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
5146 2016-08-19 Pedro Alves <palves@redhat.com>
5148 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5150 2016-08-19 Pedro Alves <palves@redhat.com>
5152 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5153 comment. Use memcpy instead of casting through unsigned long.
5155 2016-08-19 Pedro Alves <palves@redhat.com>
5157 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5158 allocating around 0x80000000.
5160 2016-08-19 Pedro Alves <palves@redhat.com>
5163 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
5164 (x32-avx512-linux-ipa.o): New rules.
5165 * configure.ac (x86_64-*-linux*): New x32 check.
5166 * configure.srv (ipa_x32_linux_regobj): New.
5167 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
5168 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
5170 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5172 * configure: Regenerate.
5174 2016-08-09 Pedro Alves <palves@redhat.com>
5177 * Makefile.in (OBS): Add signals-state-save-restore.o.
5178 (signals-state-save-restore.o): New rule.
5179 * config.in: Regenerate.
5180 * configure: Regenerate.
5181 * linux-low.c: Include "signals-state-save-restore.h".
5182 (linux_create_inferior): Call
5183 restore_original_signals_state.
5184 * server.c: Include "dispositions-save-restore.h".
5185 (captured_main): Call save_original_signals_state.
5187 2016-08-05 Pedro Alves <palves@redhat.com>
5189 * configure: Regenerate.
5191 2016-08-04 Yao Qi <yao.qi@linaro.org>
5193 * linux-low.c (regsets_fetch_inferior_registers): Check
5194 errno is ESRCH or not.
5196 2016-08-02 Yao Qi <yao.qi@linaro.org>
5198 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
5199 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
5200 (thread_db_load_search): Update.
5201 (try_thread_db_load_1): Don't look for td_ta_event_addr,
5202 td_ta_set_event and td_ta_event_getmsg.
5204 2016-07-26 Pedro Alves <palves@redhat.com>
5207 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
5208 of unsigned long for 64-bit registers and use uint32_t instead of
5209 unsigned int for 32-bit registers.
5211 2016-07-26 Pedro Alves <palves@redhat.com>
5213 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5216 2016-07-21 Tom Tromey <tom@tromey.com>
5218 * configure: Rebuild.
5220 2016-07-21 Yao Qi <yao.qi@linaro.org>
5222 * mem-break.c (find_gdb_breakpoint): Cast bp to
5223 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5225 2016-07-21 Yao Qi <yao.qi@linaro.org>
5227 * server.c (handle_v_requests): Support s and S actions
5228 if target_supports_software_single_step return true.
5230 2016-07-21 Yao Qi <yao.qi@linaro.org>
5232 * linux-low.c (resume_stopped_resumed_lwps): If resume request
5233 is resume_step, call maybe_hw_step.
5234 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
5236 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5238 (proceed_one_lwp): If resume request is resume_step, install
5239 reinsert breakpoints and call maybe_hw_step.
5241 2016-07-21 Yao Qi <yao.qi@linaro.org>
5243 * linux-low.c (proceed_one_lwp): Declare.
5244 (linux_resume_one_thread): Remove local variable 'step'.
5245 Lift code enqueue signal. Call proceed_one_lwp instead of
5246 linux_resume_one_lwp.
5248 2016-07-21 Yao Qi <yao.qi@linaro.org>
5250 * linux-low.c (linux_resume_one_thread): Call
5251 enqueue_pending_signal.
5253 2016-07-21 Yao Qi <yao.qi@linaro.org>
5255 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5256 * inferiors.c (do_restore_current_thread_cleanup): New function.
5257 (make_cleanup_restore_current_thread): Likewise.
5258 * linux-low.c (install_software_single_step_breakpoints): Call
5259 make_cleanup_restore_current_thread. Switch current_thread to
5262 2016-07-21 Yao Qi <yao.qi@linaro.org>
5264 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
5265 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
5266 (clone_one_breakpoint): Likewise.
5267 (delete_reinsert_breakpoints): Change parameter to thread.
5269 (has_reinsert_breakpoints): Likewise.
5270 (uninsert_reinsert_breakpoints): Likewise.
5271 (reinsert_reinsert_breakpoints): Likewise.
5272 * mem-break.h (set_reinsert_breakpoint): Update declaration.
5273 (delete_reinsert_breakpoints): Likewise.
5274 (reinsert_reinsert_breakpoints): Likewise.
5275 (uninsert_reinsert_breakpoints): Likewise.
5276 (has_reinsert_breakpoints): Likewise.
5278 2016-07-21 Yao Qi <yao.qi@linaro.org>
5280 * inferiors.c (get_thread_process): Make parameter const.
5281 * inferiors.h (get_thread_process): Update declaration.
5282 * mem-break.c (clone_all_breakpoints): Remove all parameters.
5283 Add new parameters child_thread and parent_thread. Callers
5285 * mem-break.h (clone_all_breakpoints): Update declaration.
5287 2016-07-21 Yao Qi <yao.qi@linaro.org>
5289 * mem-break.c (struct breakpoint) <cond_list>: Remove.
5290 <command_list, handler>: Remove.
5291 (struct gdb_breakpoint): New.
5292 (struct other_breakpoint): New.
5293 (struct reinsert_breakpoint): New.
5294 (is_gdb_breakpoint): New function.
5295 (any_persistent_commands): Update command_list if
5296 is_gdb_breakpoint returns true.
5297 (set_breakpoint): Create breakpoints according to their types.
5298 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
5299 (set_gdb_breakpoint_1): Likewise.
5300 (set_gdb_breakpoint): Likewise.
5301 (clear_breakpoint_conditions): Change parameter type to
5302 'struct gdb_breakpoint *'.
5303 (clear_breakpoint_commands): Likewise.
5304 (clear_breakpoint_conditions_and_commands): Likewise.
5305 (add_condition_to_breakpoint): Likewise.
5306 (add_breakpoint_condition): Likewise.
5307 (add_commands_to_breakpoint): Likewise.
5308 (check_breakpoints): Check other_breakpoint.
5309 (clone_one_breakpoint): Clone breakpopint according to its type.
5310 * mem-break.h (struct gdb_breakpoint): Declare.
5311 (set_gdb_breakpoint): Update declaration.
5312 (clear_breakpoint_conditions_and_commands): Likewise.
5313 (add_breakpoint_condition): Likewise.
5314 (add_breakpoint_commands): Likewise.
5315 * server.c (process_point_options): Change parameter type to
5316 'struct gdb_breakpoint *'.
5318 2016-07-21 Yao Qi <yao.qi@linaro.org>
5320 * mem-break.c (set_breakpoint_at): Rename it to ...
5321 (set_breakpoint_type_at): ... it.
5322 (set_breakpoint_at): Call set_breakpoint_type_at.
5323 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
5324 * mem-break.h (set_breakpoint_at): Update comments.
5326 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5328 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5330 (nios2_store_gregset): Likewise.
5332 2016-07-01 Pedro Alves <palves@redhat.com>
5333 Antoine Tremblay <antoine.tremblay@ericsson.com>
5335 * linux-low.c: Change interface to take the target lwp_info
5336 pointer directly and return void. Handle detaching from a zombie
5338 (linux_detach_lwp_callback): New function.
5339 (linux_detach): Detach from the leader thread after detaching from
5342 2016-06-28 Yao Qi <yao.qi@linaro.org>
5344 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
5345 for variable new_offset.
5346 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5347 (aarch64_ftrace_insn_reloc_cb): Likewise.
5348 (aarch64_ftrace_insn_reloc_tb): Likewise.
5349 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5350 PRIx64 instead of PRIx32.
5352 2016-06-28 Yao Qi <yao.qi@linaro.org>
5354 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5355 (the_low_target): Install arm_get_syscall_trapinfo.
5357 2016-06-28 Yao Qi <yao.qi@linaro.org>
5359 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5361 (the_low_target): Install aarch64_get_syscall_trapinfo.
5363 2016-06-28 Yao Qi <yao.qi@linaro.org>
5365 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5367 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
5368 Remove parameter sysno.
5369 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
5372 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5374 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
5375 (s390_emit_ne_goto): Likewise.
5376 (s390_emit_lt_goto): Likewise.
5377 (s390_emit_le_goto): Likewise.
5378 (s390_emit_gt_goto): Likewise.
5379 (s390_emit_ge_goto): Likewise.
5380 (s390x_emit_eq_goto): Likewise.
5381 (s390x_emit_ne_goto): Likewise.
5382 (s390x_emit_lt_goto): Likewise.
5383 (s390x_emit_le_goto): Likewise.
5384 (s390x_emit_gt_goto): Likewise.
5385 (s390x_emit_ge_goto): Likewise.
5386 (s390_emit_ops_impl): Mark variable static.
5387 (s390x_emit_ops): Likewise.
5389 2016-06-17 Yao Qi <yao.qi@linaro.org>
5391 * linux-low.c (handle_extended_wait): Call
5392 uninsert_reinsert_breakpoints for the parent process. Remove
5393 reinsert breakpoints from the child process. Reinsert them to
5394 the parent process when vfork is done.
5395 * mem-break.c (uninsert_reinsert_breakpoints): New function.
5396 (reinsert_reinsert_breakpoints): New function.
5397 * mem-break.h (uninsert_reinsert_breakpoints): Declare
5398 (reinsert_reinsert_breakpoints): Declare.
5400 2016-06-17 Yao Qi <yao.qi@linaro.org>
5402 * linux-low.c (handle_extended_wait): If the parent is doing
5403 step-over, remove the reinsert breakpoints from the forked child.
5405 2016-06-17 Yao Qi <yao.qi@linaro.org>
5407 * linux-low.c (unsuspend_all_lwps): Declare.
5408 (linux_low_filter_event): If thread exited, call finish_step_over.
5409 If step-over is finished, unsuspend other threads.
5411 2016-06-17 Yao Qi <yao.qi@linaro.org>
5413 * linux-low.c (linux_resume_one_lwp_throw): Assert
5414 has_reinsert_breakpoints returns false.
5415 * mem-break.c (delete_disabled_breakpoints): Assert
5416 bp type isn't reinsert_breakpoint.
5418 2016-06-17 Yao Qi <yao.qi@linaro.org>
5420 * linux-low.c (maybe_hw_step): New function.
5421 (linux_resume_one_lwp_throw): Call maybe_hw_step.
5422 (finish_step_over): Switch current_thread to lwp temporarily,
5423 and assert has_reinsert_breakpoints returns true.
5424 (proceed_one_lwp): Call maybe_hw_step.
5425 * mem-break.c (has_reinsert_breakpoints): New function.
5426 * mem-break.h (has_reinsert_breakpoints): Declare.
5428 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5430 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5432 2016-05-17 Yao Qi <yao.qi@linaro.org>
5434 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5435 instead of find_inferior.
5437 2016-05-05 Yao Qi <yao.qi@linaro.org>
5439 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5440 Initialize res to zero.
5442 2016-05-05 Yao Qi <yao.qi@linaro.org>
5444 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5447 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5449 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5450 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5451 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5453 2016-04-28 Par Olsson <par.olsson@windriver.com>
5454 Simon Marchi <simon.marchi@ericsson.com>
5456 * tracepoint.c (write_inferior_int8): New function.
5457 (cmd_qtenable_disable): Write enable flag using
5458 write_inferior_int8.
5460 2016-04-25 Yao Qi <yao.qi@linaro.org>
5462 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5463 (need_step_over_p): Return zero if the LWP has pending signals
5464 can be delivered on software single step target.
5466 2016-04-25 Yao Qi <yao.qi@linaro.org>
5468 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5469 return instead of error.
5471 2016-04-22 Yao Qi <yao.qi@linaro.org>
5473 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5476 2016-04-22 Yao Qi <yao.qi@linaro.org>
5478 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5479 signal when stepping over breakpoint with software single
5482 2016-04-21 Pedro Alves <palves@redhat.com>
5484 * linux-s390-low.c (s390_collect_ptrace_register)
5485 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
5487 (s390_check_regset): Use void * instead of gdb_byte *.
5489 2016-04-20 Pedro Alves <palves@redhat.com>
5491 * configure: Renegerate.
5493 2016-04-20 Yao Qi <yao.qi@linaro.org>
5495 * linux-aarch32-low.c: Include "arch/arm-linux.h".
5496 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
5498 (arm_store_gregset): Likewise.
5500 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
5502 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
5503 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
5504 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
5505 (amd64-avx-mpx-linux.c): New rules.
5506 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
5507 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
5508 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
5509 (srv_amd64_regobj): Add amd64-avx-mpx.o.
5510 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
5511 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
5512 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
5513 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
5514 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
5515 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
5516 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
5517 * linux-x86-low.c (x86_linux_read_description): Add case for
5518 X86_XSTATE_AVX_MPX_MASK.
5519 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
5520 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
5521 init_registers_i386_avx_mpx_linux.
5522 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5523 (initialize_low_tracepoint): Call
5524 init_registers_i386_avx_mpx_linux.
5525 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
5526 (initialize_low_tracepoint): Call
5527 init_registers_amd64_avx_mpx_linux.
5528 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
5529 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
5530 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
5533 2016-04-18 Pedro Alves <palves@redhat.com>
5535 * configure: Regenerate.
5537 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
5539 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
5540 (aarch64_emit_sub): Likewise.
5542 2016-04-12 Pedro Alves <palves@redhat.com>
5544 * utils.c (prepare_to_throw_exception): Delete.
5546 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
5548 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
5550 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
5552 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
5554 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
5556 * linux-aarch64-ipa.c: Add <elf.h> include.
5557 * linux-ppc-ipa.c: Add <elf.h> include.
5558 * linux-s390-ipa.c: Add <elf.h> include.
5560 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5562 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
5563 (get_raw_reg_ptr): Likewise.
5564 (get_trace_state_variable_value_ptr): Likewise.
5565 (set_trace_state_variable_value_ptr): Likewise.
5566 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
5569 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
5570 Marcin Kościelnicki <koriakin@0x04.net>
5573 * linux-ppc-low.c (emit_insns): New function.
5574 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
5575 (ppc_emit_prologue): New function.
5576 (ppc_emit_epilogue): New function.
5577 (ppc_emit_add): New function.
5578 (ppc_emit_sub): New function.
5579 (ppc_emit_mul): New function.
5580 (ppc_emit_lsh): New function.
5581 (ppc_emit_rsh_signed): New function.
5582 (ppc_emit_rsh_unsigned): New function.
5583 (ppc_emit_ext): New function.
5584 (ppc_emit_zero_ext): New function.
5585 (ppc_emit_log_not): New function.
5586 (ppc_emit_bit_and): New function.
5587 (ppc_emit_bit_or): New function.
5588 (ppc_emit_bit_xor): New function.
5589 (ppc_emit_bit_not): New function.
5590 (ppc_emit_equal): New function.
5591 (ppc_emit_less_signed): New function.
5592 (ppc_emit_less_unsigned): New function.
5593 (ppc_emit_ref): New function.
5594 (ppc_emit_const): New function.
5595 (ppc_emit_reg): New function.
5596 (ppc_emit_pop): New function.
5597 (ppc_emit_stack_flush): New function.
5598 (ppc_emit_swap): New function.
5599 (ppc_emit_stack_adjust): New function.
5600 (ppc_emit_call): New function.
5601 (ppc_emit_int_call_1): New function.
5602 (ppc_emit_void_call_2): New function.
5603 (ppc_emit_if_goto): New function.
5604 (ppc_emit_goto): New function.
5605 (ppc_emit_eq_goto): New function.
5606 (ppc_emit_ne_goto): New function.
5607 (ppc_emit_lt_goto): New function.
5608 (ppc_emit_le_goto): New function.
5609 (ppc_emit_gt_goto): New function.
5610 (ppc_emit_ge_goto): New function.
5611 (ppc_write_goto_address): New function.
5612 (ppc_emit_ops_impl): New static variable.
5613 (ppc64v1_emit_prologue): New function.
5614 (ppc64v2_emit_prologue): New function.
5615 (ppc64_emit_epilogue): New function.
5616 (ppc64_emit_add): New function.
5617 (ppc64_emit_sub): New function.
5618 (ppc64_emit_mul): New function.
5619 (ppc64_emit_lsh): New function.
5620 (ppc64_emit_rsh_signed): New function.
5621 (ppc64_emit_rsh_unsigned): New function.
5622 (ppc64_emit_ext): New function.
5623 (ppc64_emit_zero_ext): New function.
5624 (ppc64_emit_log_not): New function.
5625 (ppc64_emit_bit_and): New function.
5626 (ppc64_emit_bit_or): New function.
5627 (ppc64_emit_bit_xor): New function.
5628 (ppc64_emit_bit_not): New function.
5629 (ppc64_emit_equal): New function.
5630 (ppc64_emit_less_signed): New function.
5631 (ppc64_emit_less_unsigned): New function.
5632 (ppc64_emit_ref): New function.
5633 (ppc64_emit_const): New function.
5634 (ppc64v1_emit_reg): New function.
5635 (ppc64v2_emit_reg): New function.
5636 (ppc64_emit_pop): New function.
5637 (ppc64_emit_stack_flush): New function.
5638 (ppc64_emit_swap): New function.
5639 (ppc64v1_emit_call): New function.
5640 (ppc64v2_emit_call): New function.
5641 (ppc64v1_emit_int_call_1): New function.
5642 (ppc64v2_emit_int_call_1): New function.
5643 (ppc64v1_emit_void_call_2): New function.
5644 (ppc64v2_emit_void_call_2): New function.
5645 (ppc64_emit_if_goto): New function.
5646 (ppc64_emit_eq_goto): New function.
5647 (ppc64_emit_ne_goto): New function.
5648 (ppc64_emit_lt_goto): New function.
5649 (ppc64_emit_le_goto): New function.
5650 (ppc64_emit_gt_goto): New function.
5651 (ppc64_emit_ge_goto): New function.
5652 (ppc64v1_emit_ops_impl): New static variable.
5653 (ppc64v2_emit_ops_impl): New static variable.
5654 (ppc_emit_ops): New function.
5655 (linux_low_target): Wire in ppc_emit_ops.
5657 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
5658 Marcin Kościelnicki <koriakin@0x04.net>
5661 * Makefile.in: Add powerpc-*-ipa.o
5662 * configure.srv: Add ipa_obj for powerpc*-linux.
5663 * linux-ppc-ipa.c: New file.
5664 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
5666 (PPC_FIELD): New macro.
5667 (PPC_SEXT): New macro.
5668 (PPC_OP6): New macro.
5669 (PPC_BO): New macro.
5670 (PPC_LI): New macro.
5671 (PPC_BD): New macro.
5672 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
5673 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
5674 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
5675 (ppc_get_thread_area): New function.
5676 (is_elfv2_inferior): New function.
5677 (gen_ds_form): New function.
5678 (GEN_STD): New macro.
5679 (GEN_STDU): New macro.
5680 (GEN_LD): New macro.
5681 (GEN_LDU): New macro.
5682 (gen_d_form): New function.
5683 (GEN_ADDI): New macro.
5684 (GEN_ADDIS): New macro.
5685 (GEN_LI): New macro.
5686 (GEN_LIS): New macro.
5687 (GEN_ORI): New macro.
5688 (GEN_ORIS): New macro.
5689 (GEN_LWZ): New macro.
5690 (GEN_STW): New macro.
5691 (GEN_STWU): New macro.
5692 (gen_xfx_form): New function.
5693 (GEN_MFSPR): New macro.
5694 (GEN_MTSPR): New macro.
5695 (GEN_MFCR): New macro.
5696 (GEN_MTCR): New macro.
5697 (GEN_SYNC): New macro.
5698 (GEN_LWSYNC): New macro.
5699 (gen_x_form): New function.
5700 (GEN_OR): New macro.
5701 (GEN_MR): New macro.
5702 (GEN_LWARX): New macro.
5703 (GEN_STWCX): New macro.
5704 (GEN_CMPW): New macro.
5705 (gen_md_form): New function.
5706 (GEN_RLDICL): New macro.
5707 (GEN_RLDICR): New macro.
5708 (gen_i_form): New function.
5710 (GEN_BL): New macro.
5711 (gen_b_form): New function.
5712 (GEN_BNE): New macro.
5713 (GEN_LOAD): New macro.
5714 (GEN_STORE): New macro.
5715 (gen_limm): New function.
5716 (gen_atomic_xchg): New function.
5717 (gen_call): New function.
5718 (ppc_relocate_instruction): New function.
5719 (ppc_install_fast_tracepoint_jump_pad): New function.
5720 (ppc_get_min_fast_tracepoint_insn_len): New function.
5721 (ppc_get_ipa_tdesc_idx): New function.
5722 (the_low_target): Wire in the new functions.
5723 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
5725 * linux-ppc-tdesc.h: New file.
5727 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5729 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5730 (alloc_jump_pad_buffer): New function.
5731 * linux-amd64-ipa.c: Add <sys/mman.h> include.
5732 (alloc_jump_pad_buffer): New function.
5733 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
5734 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5735 (alloc_jump_pad_buffer): New function.
5736 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
5737 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
5738 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
5739 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
5741 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5743 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
5744 * linux-amd64-ipa.c: Likewise.
5745 * linux-i386-ipa.c: Likewise.
5746 * linux-s390-ipa.c: Likewise.
5747 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
5748 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
5749 set_trace_state_variable_value_ptr.
5750 (struct ipa_sym_addresses): Likewise.
5751 (symbol_list): Likewise.
5752 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
5753 accessing gdb_collect directly.
5754 (gdb_collect_ptr_type): New typedef.
5755 (get_raw_reg_ptr_type): New typedef.
5756 (get_trace_state_variable_value_ptr_type): New typedef.
5757 (set_trace_state_variable_value_ptr_type): New typedef.
5758 (gdb_collect_ptr): New global.
5759 (get_raw_reg_ptr): New global.
5760 (get_trace_state_variable_value_ptr): New global.
5761 (set_trace_state_variable_value_ptr): New global.
5762 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
5763 accessing get_raw_reg directly.
5764 (get_get_tsv_func_addr): Likewise for
5765 get_trace_state_variable_value_ptr.
5766 (get_set_tsv_func_addr): Likewise for
5767 set_trace_state_variable_value_ptr.
5768 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
5770 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
5772 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
5774 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5776 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
5778 (relocate_instruction): Remove own_buf.
5779 * server.c (own_buf): Make global.
5780 (handle_v_requests): Make global.
5781 * server.h (own_buf): New declaration.
5782 (handle_v_requests): New prototype.
5784 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5787 * linux-s390-low.c (add_insns): New function.
5788 (s390_emit_prologue): New function.
5789 (s390_emit_epilogue): New function.
5790 (s390_emit_add): New function.
5791 (s390_emit_sub): New function.
5792 (s390_emit_mul): New function.
5793 (s390_emit_lsh): New function.
5794 (s390_emit_rsh_signed): New function.
5795 (s390_emit_rsh_unsigned): New function.
5796 (s390_emit_ext): New function.
5797 (s390_emit_log_not): New function.
5798 (s390_emit_bit_and): New function.
5799 (s390_emit_bit_or): New function.
5800 (s390_emit_bit_xor): New function.
5801 (s390_emit_bit_not): New function.
5802 (s390_emit_equal): New function.
5803 (s390_emit_less_signed): New function.
5804 (s390_emit_less_unsigned): New function.
5805 (s390_emit_ref): New function.
5806 (s390_emit_if_goto): New function.
5807 (s390_emit_goto): New function.
5808 (s390_write_goto_address): New function.
5809 (s390_emit_litpool): New function.
5810 (s390_emit_const): New function.
5811 (s390_emit_call): New function.
5812 (s390_emit_reg): New function.
5813 (s390_emit_pop): New function.
5814 (s390_emit_stack_flush): New function.
5815 (s390_emit_zero_ext): New function.
5816 (s390_emit_swap): New function.
5817 (s390_emit_stack_adjust): New function.
5818 (s390_emit_set_r2): New function.
5819 (s390_emit_int_call_1): New function.
5820 (s390_emit_void_call_2): New function.
5821 (s390_emit_eq_goto): New function.
5822 (s390_emit_ne_goto): New function.
5823 (s390_emit_lt_goto): New function.
5824 (s390_emit_le_goto): New function.
5825 (s390_emit_gt_goto): New function.
5826 (s390_emit_ge_goto): New function.
5827 (s390x_emit_prologue): New function.
5828 (s390x_emit_epilogue): New function.
5829 (s390x_emit_add): New function.
5830 (s390x_emit_sub): New function.
5831 (s390x_emit_mul): New function.
5832 (s390x_emit_lsh): New function.
5833 (s390x_emit_rsh_signed): New function.
5834 (s390x_emit_rsh_unsigned): New function.
5835 (s390x_emit_ext): New function.
5836 (s390x_emit_log_not): New function.
5837 (s390x_emit_bit_and): New function.
5838 (s390x_emit_bit_or): New function.
5839 (s390x_emit_bit_xor): New function.
5840 (s390x_emit_bit_not): New function.
5841 (s390x_emit_equal): New function.
5842 (s390x_emit_less_signed): New function.
5843 (s390x_emit_less_unsigned): New function.
5844 (s390x_emit_ref): New function.
5845 (s390x_emit_if_goto): New function.
5846 (s390x_emit_const): New function.
5847 (s390x_emit_call): New function.
5848 (s390x_emit_reg): New function.
5849 (s390x_emit_pop): New function.
5850 (s390x_emit_stack_flush): New function.
5851 (s390x_emit_zero_ext): New function.
5852 (s390x_emit_swap): New function.
5853 (s390x_emit_stack_adjust): New function.
5854 (s390x_emit_int_call_1): New function.
5855 (s390x_emit_void_call_2): New function.
5856 (s390x_emit_eq_goto): New function.
5857 (s390x_emit_ne_goto): New function.
5858 (s390x_emit_lt_goto): New function.
5859 (s390x_emit_le_goto): New function.
5860 (s390x_emit_gt_goto): New function.
5861 (s390x_emit_ge_goto): New function.
5862 (s390_emit_ops): New function.
5863 (struct linux_target_ops): Fill in emit_ops hook.
5865 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5868 * Makefile.in: Add s390 IPA files.
5869 * configure.srv: Build IPA for s390.
5870 * linux-s390-ipa.c: New file.
5871 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
5872 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
5873 (tdesc_s390_linux32): Likewise.
5874 (init_registers_s390_linux32v1): Likewise.
5875 (tdesc_s390_linux32v1): Likewise.
5876 (init_registers_s390_linux32v2): Likewise.
5877 (tdesc_s390_linux32v2): Likewise.
5878 (init_registers_s390_linux64): Likewise.
5879 (tdesc_s390_linux64): Likewise.
5880 (init_registers_s390_linux64v1): Likewise.
5881 (tdesc_s390_linux64v1): Likewise.
5882 (init_registers_s390_linux64v2): Likewise.
5883 (tdesc_s390_linux64v2): Likewise.
5884 (init_registers_s390_te_linux64): Likewise.
5885 (tdesc_s390_te_linux64): Likewise.
5886 (init_registers_s390_vx_linux64): Likewise.
5887 (tdesc_s390_vx_linux64): Likewise.
5888 (init_registers_s390_tevx_linux64): Likewise.
5889 (tdesc_s390_tevx_linux64): Likewise.
5890 (init_registers_s390x_linux64): Likewise.
5891 (tdesc_s390x_linux64): Likewise.
5892 (init_registers_s390x_linux64v1): Likewise.
5893 (tdesc_s390x_linux64v1): Likewise.
5894 (init_registers_s390x_linux64v2): Likewise.
5895 (tdesc_s390x_linux64v2): Likewise.
5896 (init_registers_s390x_te_linux64): Likewise.
5897 (tdesc_s390x_te_linux64): Likewise.
5898 (init_registers_s390x_vx_linux64): Likewise.
5899 (tdesc_s390x_vx_linux64): Likewise.
5900 (init_registers_s390x_tevx_linux64): Likewise.
5901 (tdesc_s390x_tevx_linux64): Likewise.
5902 (have_hwcap_s390_vx): New static variable.
5903 (s390_arch_setup): Fill have_hwcap_s390_vx.
5904 (s390_get_thread_area): New function.
5905 (s390_ft_entry_gpr_esa): New const.
5906 (s390_ft_entry_gpr_zarch): New const.
5907 (s390_ft_entry_misc): New const.
5908 (s390_ft_entry_fr): New const.
5909 (s390_ft_entry_vr): New const.
5910 (s390_ft_main_31): New const.
5911 (s390_ft_main_64): New const.
5912 (s390_ft_exit_fr): New const.
5913 (s390_ft_exit_vr): New const.
5914 (s390_ft_exit_misc): New const.
5915 (s390_ft_exit_gpr_esa): New const.
5916 (s390_ft_exit_gpr_zarch): New const.
5917 (append_insns): New function.
5918 (s390_relocate_instruction): New function.
5919 (s390_install_fast_tracepoint_jump_pad): New function.
5920 (s390_get_min_fast_tracepoint_insn_len): New function.
5921 (s390_get_ipa_tdesc_idx): New function.
5922 (struct linux_target_ops): Wire in the above functions.
5923 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
5924 * linux-s390-tdesc.h: New file.
5926 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5928 * linux-s390-low.c (s390_supports_tracepoints): New function.
5929 (struct linux_target_ops): Fill supports_tracepoints hook.
5931 2016-03-18 Yao Qi <yao.qi@linaro.org>
5933 * linux-low.c (lwp_signal_can_be_delivered): New function.
5934 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
5936 2016-03-18 Yao Qi <yao.qi@linaro.org>
5938 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
5939 0 if signal is enqueued. Remove 'signal' from one debugging
5940 message. Move one debugging message to some lines below.
5941 Remove code setting 'signal' to 0.
5943 2016-03-18 Yao Qi <yao.qi@linaro.org>
5945 * linux-low.c (linux_low_filter_event): Remove redundant
5946 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
5948 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5950 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
5951 (struct linux_target_ops): Wire in the above.
5953 2016-03-03 Yao Qi <yao.qi@linaro.org>
5955 * linux-low.c: Update comments to start_step_over.
5957 2016-03-03 Yao Qi <yao.qi@linaro.org>
5960 * linux-low.c (handle_extended_wait): Set child suspended
5961 if event_lwp->bp_reinsert isn't zero.
5963 2016-03-02 Yao Qi <yao.qi@linaro.org>
5965 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
5966 enqueue_pending_signal.
5968 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
5970 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
5973 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5975 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
5976 (s390_regmap_3264) [!__s390x__]: New global.
5977 (s390_collect_ptrace_register): Skip map entries containing -1.
5978 (s390_supply_ptrace_register): Ditto.
5979 (s390_fill_gprs_high): New function.
5980 (s390_store_gprs_high): New function.
5981 (s390_regsets): Add NT_S390_HIGH_GPRS.
5982 (s390_get_hwcap): Enable on 31-bit.
5983 (have_hwcap_s390_high_gprs): Enable on 31-bit.
5984 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
5985 Detect NT_S390_HIGH_GPRS.
5986 (s390_usrregs_info_3264): Enable on 31-bit.
5987 (s390_regs_info): Enable regs_info_3264 on 31-bit.
5988 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
5990 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5993 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
5994 * configure.srv: Ditto.
5995 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
5996 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
5997 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
5998 (init_registers_amd64_linux): Remove prototype.
5999 (tdesc_amd64_linux): Remove declaration.
6000 (get_ipa_tdesc): New function.
6001 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6002 initialize remaining tdescs.
6003 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6004 (init_registers_i386_linux): Remove prototype.
6005 (tdesc_i386_linux): Remove declaration.
6006 (get_ipa_tdesc): New function.
6007 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6008 initialize remaining tdescs.
6009 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6010 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6011 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6012 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6013 (x86_get_ipa_tdesc_idx): New function.
6014 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6015 * linux-x86-tdesc.h: New file.
6016 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6017 (target_get_ipa_tdesc_idx): New macro.
6018 * tracepoint.c (ipa_tdesc_idx): New macro.
6019 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6020 (symbol_list): Add ipa_tdesc_idx.
6021 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6022 (ipa_tdesc): Remove.
6023 (ipa_tdesc_idx): New variable.
6024 (get_context_regcache): Use get_ipa_tdesc.
6025 (gdb_collect): Ditto.
6027 * tracepoint.h (get_ipa_tdesc): New prototype.
6028 (ipa_tdesc): Remove.
6030 2016-02-24 Pedro Alves <palves@redhat.com>
6032 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6033 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6034 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6035 Factor out common code between the USE_SIGTRAP_SIGINFO and
6036 !USE_SIGTRAP_SIGINFO blocks.
6037 (linux_low_filter_event): Call save_stop_reason instead of
6038 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6040 (linux_wait_1): Update comments.
6042 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
6044 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6045 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6046 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6047 ppc_insert_point, ppc_remove_point.
6049 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6051 * linux-s390-low.c (s390_supports_z_point_type): New function.
6052 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6054 2016-02-16 Yao Qi <yao.qi@linaro.org>
6056 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6057 PC. Get pc from regcache_read_pc.
6059 2016-02-12 Yao Qi <yao.qi@linaro.org>
6061 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6062 or linux_get_pc_32bit.
6063 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6065 2016-02-12 Yao Qi <yao.qi@linaro.org>
6067 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6068 arm_linux_get_next_pcs_fixup.
6070 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6072 * tracepoint.c (x_tracepoint_action_download): Change
6073 write_inferior_data_ptr to write_inferior_data_pointer.
6074 (cmd_qtstart): Likewise.
6075 (write_inferior_data_ptr): Remove.
6076 (download_agent_expr): Change write_inferior_data_ptr to
6077 write_inferior_data_pointer.
6078 (download_tracepoint_1): Likewise.
6079 (download_tracepoint): Likewise.
6080 (download_trace_state_variables): Likewise.
6082 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
6083 Marcin Kościelnicki <koriakin@0x04.net>
6085 * tracepoint.c (struct tracepoint_action_ops): Remove.
6086 (struct tracepoint_action): Remove ops.
6087 (m_tracepoint_action_download, r_tracepoint_action_download)
6088 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6089 size and offset accordingly.
6090 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6091 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6092 (tracepoint_action_send, tracepoint_action_download): New functions.
6093 Helpers for trace action handlers.
6094 (add_tracepoint_action): Remove setup actions ops.
6095 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6097 2016-02-10 Yao Qi <yao.qi@linaro.org>
6099 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6101 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6103 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6105 * configure: Regenerate.
6107 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6109 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
6110 void * to gdb_byte *.
6111 * linux-low.c (siginfo_fixup): Likewise.
6112 (linux_xfer_siginfo): Likewise.
6113 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
6115 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6117 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6119 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6121 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6123 * linux-x86-low.c [__x86_64__]: Include
6124 "nat/amd64-linux-siginfo.h".
6125 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6126 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6127 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6128 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6129 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6130 (cpt_si_fd, si_timerid, si_overrun): Move from
6131 nat/amd64-linux-siginfo.c.
6132 * Makefile.in (amd64-linux-siginfo.o:): New rule.
6134 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6136 * server.c (skip_to_semicolon): Remove.
6137 (process_point_options): Use strchrnul instead of
6140 2016-01-26 Yao Qi <yao.qi@linaro.org>
6142 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
6143 * linux-low.c (install_software_single_step_breakpoints): Don't
6144 call regcache_read_pc.
6145 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
6148 2016-01-26 Yao Qi <yao.qi@linaro.org>
6150 * linux-low.c (install_software_single_step_breakpoints): Call
6151 regcache_read_pc instead of get_pc.
6153 2016-01-26 Yao Qi <yao.qi@linaro.org>
6155 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
6156 (unblock_async_io): Rename to ...
6157 (block_unblock_async_io): ... it. New function.
6158 (enable_async_io): Don't install SIGIO handler. Unblock it
6160 (disable_async_io): Don't ignore SIGIO. Block it instead.
6161 (initialize_async_io): Install SIGIO handler. Don't call
6164 2016-01-26 Yao Qi <yao.qi@linaro.org>
6166 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6167 first character is '\003', call *the_target->request_interrupt.
6169 2016-01-25 Yao Qi <yao.qi@linaro.org>
6171 * remote-utils.c (new_thread_notify): Remove.
6172 (dead_thread_notify): Likewise.
6173 * remote-utils.h (new_thread_notify): Remove declaration.
6174 (dead_thread_notify): Likewise.
6176 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6178 * gdb.trace/pending.exp: Fix expected message on continue.
6180 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6182 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
6183 it works properly on big-endian machines where sizeof (CORE_ADDR)
6186 2016-01-21 Pedro Alves <palves@redhat.com>
6188 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6189 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6190 * configure: Regenerate.
6192 2016-01-21 Yao Qi <yao.qi@linaro.org>
6194 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
6195 is_thumb and set it according to CPSR saved on the stack.
6196 (get_next_pcs_syscall_next_pc): Pass is_thumb to
6197 arm_sigreturn_next_pc.
6199 2016-01-18 Yao Qi <yao.qi@linaro.org>
6201 * linux-low.c (linux_set_pc_64bit): New function.
6202 (linux_get_pc_64bit): New function.
6203 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
6205 * linux-sparc-low.c (debug_threads): Remove declaration.
6206 (sparc_get_pc): Remove.
6207 (the_low_target): Use linux_get_pc_64bit instead of
6209 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6210 (the_low_target): Use linux_get_pc_64bit and
6213 2016-01-18 Yao Qi <yao.qi@linaro.org>
6215 * linux-arm-low.c (debug_threads): Remove declaration.
6216 (arm_get_pc, arm_set_pc): Remove.
6217 (the_low_target): Use linux_get_pc_32bit and
6219 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6220 (the_low_target): Use linux_get_pc_32bit and
6222 * linux-cris-low.c (debug_threads): Remove declaration.
6223 (cris_get_pc, cris_set_pc,): Remove.
6224 (the_low_target): Use linux_get_pc_32bit and
6226 * linux-crisv32-low.c (debug_threads): Remove declaration.
6227 (cris_get_pc, cris_set_pc): Remove.
6228 (the_low_target): Use linux_get_pc_32bit and
6230 * linux-low.c: Include inttypes.h.
6231 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
6232 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
6233 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
6234 (the_low_target): Use linux_get_pc_32bit and
6236 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6237 (the_low_target): Use linux_get_pc_32bit and
6239 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6240 (the_low_target): Use linux_get_pc_32bit and
6242 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6243 (the_low_target): Use linux_get_pc_32bit and
6245 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6246 (the_low_target): Use linux_get_pc_32bit and
6249 2016-01-18 Gary Benson <gbenson@redhat.com>
6251 * configure.ac (AC_FUNC_FORK): New check.
6252 * config.in: Regenerate.
6253 * configure: Likewise.
6255 2016-01-14 Yao Qi <yao.qi@linaro.org>
6257 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
6258 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
6259 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
6260 arm_get_next_pcs_ctor.
6262 2016-01-12 Josh Stone <jistone@redhat.com>
6263 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6265 * inferiors.h: Include "gdb_vecs.h".
6266 (struct process_info): Add syscalls_to_catch.
6267 * inferiors.c (remove_process): Free syscalls_to_catch.
6268 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
6269 syscall_return stops.
6270 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
6271 * server.c (handle_general_set): Handle QCatchSyscalls.
6272 (handle_query): Report support for QCatchSyscalls.
6273 * target.h (struct target_ops): Add supports_catch_syscall.
6274 (target_supports_catch_syscall): New macro.
6275 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
6276 (struct lwp_info): Add syscall_state.
6277 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
6278 Maintain syscall_state and syscalls_to_catch across exec.
6279 (get_syscall_trapinfo): New function, proxy to the_low_target.
6280 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
6281 (linux_low_filter_event): Toggle syscall_state entry/return for
6282 syscall traps, and set it ignored for all others.
6283 (gdb_catching_syscalls_p): New function.
6284 (gdb_catch_this_syscall_p): New function.
6285 (linux_wait_1): Handle SYSCALL_SIGTRAP.
6286 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
6287 (linux_supports_catch_syscall): New function.
6288 (linux_target_ops): Install it.
6289 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
6290 (the_low_target): Install it.
6292 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6294 * acinclude.m4: Include new ../warning.m4 file.
6295 * configure: Regenerated.
6296 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6298 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6300 * ax.c (is_goto_target): Mark static.
6301 * linux-low.c (register_addr): Likewise.
6302 (linux_fetch_registers, linux_store_registers): Likewise.
6303 * mem-break.c (any_persistent_commands): Fix old prototype.
6304 (add_commands_to_breakpoint): Mark static.
6305 * regcache.c (find_register_by_name): Delete unused func.
6306 * remote-utils.c (hex_or_minus_one): Mark static.
6307 * server.c (monitor_show_help): Mark static.
6308 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
6309 handle_v_requests): Likewise.
6311 2016-01-12 Pedro Alves <palves@redhat.com>
6313 Remove use of the registered trademark symbol throughout.
6315 2016-01-08 Yao Qi <yao.qi@linaro.org>
6317 * remote-utils.c (getpkt): If c is '\003', call target hook
6320 2016-01-06 Yao Qi <yao.qi@linaro.org>
6322 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
6323 linux-aarch32-low.c.
6324 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6325 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6326 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6327 (thumb2_breakpoint): Declare.
6328 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
6329 linux-aarch32-low.h.
6330 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6331 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6332 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6334 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6336 * gdbreplay.c (gdbreplay_version): Change copyright year in
6338 * server.c (gdbserver_version): Likewise.
6340 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6342 * server.c (crc32_table): Delete.
6343 (crc32): Use libiberty's xcrc32 function.
6345 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6347 * lynx-low.c (lynx_delete_thread_callback): New function.
6348 (lynx_mourn): Properly delete our process and all of its
6349 threads. Remove call to clear_inferiors.
6351 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6353 * target.c (thread_search_callback): Add check that
6354 the thread_stopped target callback is not NULL before
6357 2015-12-21 Yao Qi <yao.qi@linaro.org>
6359 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6362 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6364 * server.c (handle_query): Call target_supports_software_single_step.
6366 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6368 * linux-low.c (single_step): New function.
6369 (linux_resume_one_lwp_throw): Call single_step.
6370 (start_step_over): Likewise.
6372 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6374 * Makefile.in (SFILES): Append arch/arm-linux.c,
6375 arch/arm-get-next-pcs.c.
6376 (arm-linux.o): New rule.
6377 (arm-get-next-pcs.o): New rule.
6378 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
6380 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
6381 to linux-aarch32-low.c.
6382 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6383 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6384 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6385 (thumb2_breakpoint_len): Likewise.
6386 (arm_is_thumb_mode): Make non-static.
6387 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
6388 from linux-aarch32-low.c.
6389 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6390 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6391 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6392 (thumb2_breakpoint_len): Likewise.
6393 (arm_is_thumb_mode): New declaration.
6394 * linux-arm-low.c: Include arch/arm-linux.h
6395 aarch/arm-get-next-pcs.h, sys/syscall.h.
6396 (get_next_pcs_ops): New struct.
6397 (get_next_pcs_addr_bits_remove): New function.
6398 (get_next_pcs_is_thumb): New function.
6399 (get_next_pcs_read_memory_unsigned_integer): Likewise.
6400 (arm_sigreturn_next_pc): Likewise.
6401 (get_next_pcs_syscall_next_pc): Likewise.
6402 (arm_gdbserver_get_next_pcs): Likewise.
6403 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
6405 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6406 * server.h: Include gdb_vecs.h.
6408 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6410 * Makefile.in (SFILES): Append common/common-regcache.c.
6411 (OBS): Append common-regcache.o.
6412 (common-regcache.o): New rule.
6413 * regcache.c (init_register_cache): Initialize cache to
6415 (regcache_raw_read_unsigned): New function.
6416 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6417 register_status enum.
6419 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6421 * linux-aarch64-low.c (the_low_targets): Rename
6422 breakpoint_reinsert_addr to get_next_pcs.
6423 * linux-arm-low.c (the_low_targets): Likewise.
6424 * linux-bfin-low.c (the_low_targets): Likewise.
6425 * linux-cris-low.c (the_low_targets): Likewise.
6426 * linux-crisv32-low.c (the_low_targets): Likewise.
6427 * linux-low.c (can_software_single_step): Likewise.
6428 (install_software_single_step_breakpoints): New function.
6429 (start_step_over): Use install_software_single_step_breakpoints.
6430 * linux-low.h: New CORE_ADDR vector.
6431 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
6433 * linux-mips-low.c (the_low_targets): Likewise.
6434 * linux-nios2-low.c (the_low_targets): Likewise.
6435 * linux-sparc-low.c (the_low_targets): Likewise.
6437 2015-12-17 Pedro Alves <palves@redhat.com>
6439 * linux-low.c (linux_kill_one_lwp): Remove references to
6441 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6443 (linux_init_signals): Delete.
6444 (initialize_low): Adjust.
6445 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6447 2015-12-16 Pedro Alves <palves@redhat.com>
6449 * configure.ac (compiler warning flags): When testing a
6450 -Wno-foo option, check whether -Wfoo works instead.
6451 * configure: Regenerate.
6453 2015-12-11 Don Breazeal <donb@codesourcery.com>
6455 * server.c (process_serial_event): Don't exit from gdbserver
6456 in remote mode if there are still active inferiors.
6458 2015-12-11 Yao Qi <yao.qi@linaro.org>
6460 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6461 arm_breakpoint_at if the process is 32-bit.
6463 2015-12-11 Yao Qi <yao.qi@linaro.org>
6465 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6468 2015-12-07 Yao Qi <yao.qi@linaro.org>
6470 * configure.srv: Append arm.o to srv_tgtobj for
6471 aarch64*-*-linux* target.
6472 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6473 from linux-arm-low.c.
6474 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6475 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6476 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6477 (thumb2_breakpoint_len): Likewise.
6478 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6479 (arm_breakpoint_kinds): Likewise.
6480 (arm_breakpoint_kind_from_pc): Likewise.
6481 (arm_sw_breakpoint_from_kind): Likewise.
6482 (arm_breakpoint_kind_from_current_state): Likewise.
6483 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
6484 (arm_sw_breakpoint_from_kind): Declare.
6485 (arm_breakpoint_kind_from_current_state): Declare.
6486 (arm_breakpoint_at): Declare.
6487 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
6488 arm_sw_breakpoint_from_kind if process is 32-bit.
6489 (aarch64_breakpoint_kind_from_pc): New function.
6490 (aarch64_breakpoint_kind_from_current_state): New function.
6491 (the_low_target): Initialize fields breakpoint_kind_from_pc
6492 and breakpoint_kind_from_current_state.
6493 * linux-arm-low.c (arm_breakpoint_kinds): Move to
6494 linux-aarch32-low.c.
6495 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
6496 (arm_breakpoint, arm_breakpoint_len): Likewise.
6497 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
6498 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6499 (arm_is_thumb_mode): Likewise.
6500 (arm_breakpoint_at): Likewise.
6501 (arm_breakpoint_kind_from_pc): Likewise.
6502 (arm_sw_breakpoint_from_kind): Likewise.
6503 (arm_breakpoint_kind_from_current_state): Likewise.
6506 2015-08-04 Yao Qi <yao.qi@linaro.org>
6508 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6509 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6510 * server.c (extended_protocol): Remove "static".
6511 * server.h (extended_protocol): Declare it.
6513 2015-12-04 Josh Stone <jistone@redhat.com>
6515 * target.h (struct target_ops) <arch_setup>: Rename to ...
6516 (struct target_ops) <post_create_inferior>: ... this.
6517 (target_arch_setup): Rename to ...
6518 (target_post_create_inferior): ... this, calling post_create_inferior.
6519 * server.c (start_inferior): Update target_arch_setup calls to
6520 target_post_create_inferior.
6521 * linux-low.c (linux_low_ptrace_options): Forward declare.
6522 (linux_arch_setup): Update its comment for general use.
6523 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
6524 (struct linux_target_ops): Use linux_post_create_inferior.
6525 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
6526 to post_create_inferior.
6527 * nto-low.c (struct nto_target_ops): Likewise.
6528 * spu-low.c (struct spu_target_ops): Likewise.
6529 * win32-low.c (struct win32_target_ops): Likewise.
6531 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
6533 * linux-arm-low.c: Remove duplicate arch/arm.h include.
6535 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6537 * linux-arm-low.c (arm_reinsert_addr): Remove function.
6538 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
6539 * linux-cris-low.c (cris_reinsert_addr> Remove function.
6540 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6541 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
6542 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6543 * linux-mips-low.c (mips_reinsert_addr): Remove function.
6544 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6545 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
6546 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6547 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
6548 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
6550 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6552 * linux-low.c (linux_look_up_symbols): Don't call
6553 linux_supports_traceclone.
6554 * linux-low.h (thread_db_init): Remove use_events argument.
6555 * thread-db.c (thread_db_use_event): Remove global variable.
6556 (struct thread_db) <td_thr_event_enable_p>: Remove field.
6557 (struct thread_db) <td_create_bp>: Remove field.
6558 (thread_db_create_event): Remove function.
6559 (thread_db_enable_reporting): Likewise.
6560 (find_one_thread): Don't check for thread_db_use_events.
6561 (attach_thread): Likewise.
6562 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
6563 (try_thread_db_load_1): Don't check for thread_db_use_events.
6564 (thread_db_init): Remove use_events argument and thread events
6566 (remove_thread_event_breakpoints): Remove function.
6567 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
6569 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6571 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
6573 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6574 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
6575 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6576 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
6577 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
6579 * linux-crisv32-low.c (cris_supports_hardware_single_step):
6581 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6582 * linux-low.c (can_hardware_single_step): Use
6583 supports_hardware_single_step.
6584 (can_software_single_step): New function.
6585 (start_step_over): Call can_software_single_step.
6586 (linux_supports_hardware_single_step): New function.
6587 (struct target_ops) <supports_software_single_step>: Initialize.
6588 * linux-low.h (struct linux_target_ops)
6589 <supports_hardware_single_step>: Initialize.
6590 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
6591 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6592 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
6593 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
6594 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
6595 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6596 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
6597 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6598 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
6599 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
6601 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
6602 (struct linux_target_ops) <tile_supports_hardware_single_step>:
6604 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
6605 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6606 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
6608 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6609 * target.h (struct target_ops): <supports_software_single_step>:
6611 (target_supports_software_single_step): New macro.
6613 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6615 * linux-low.c (linux_wait_1): Fix pc advance condition.
6616 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
6617 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
6619 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
6621 * linux-arm-low.c (arm_is_thumb_mode): New function.
6622 (arm_breakpoint_at): Use arm_is_thumb_mode.
6623 (arm_breakpoint_kind_from_current_state): New function.
6624 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
6626 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
6627 (linux_breakpoint_kind_from_current_state): New function.
6628 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
6629 * linux-low.h (struct linux_target_ops)
6630 <breakpoint_kind_from_current_state>: New field.
6631 * target.h (struct target_ops): Likewise.
6632 (target_breakpoint_kind_from_current_state): New macro.
6634 2015-11-30 Pedro Alves <palves@redhat.com>
6636 * linux-low.c (linux_resume): Wake up the event loop before
6639 2015-11-30 Pedro Alves <palves@redhat.com>
6641 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
6643 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
6645 * target.c (struct thread_search): New structure.
6646 (thread_search_callback): New function.
6647 (prev_general_thread): New global.
6648 (prepare_to_access_memory, done_accessing_memory): New functions.
6649 * target.h (prepare_to_access_memory, done_accessing_memory):
6650 Replace macros with function declarations.
6652 2015-11-30 Pedro Alves <palves@redhat.com>
6655 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
6656 report TARGET_WAITKIND_NO_RESUMED.
6657 * remote-utils.c (prepare_resume_reply): Handle
6658 TARGET_WAITKIND_NO_RESUMED.
6659 * server.c (report_no_resumed): New global.
6660 (handle_query) <qSupported>: Handle "no-resumed+". Report
6661 "no-resumed+" support.
6662 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
6663 return error if the client doesn't support no-resumed events.
6664 (push_stop_notification): New function.
6665 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
6666 events if the client supports them.
6668 2015-11-30 Pedro Alves <palves@redhat.com>
6670 * linux-low.c (thread_still_has_status_pending_p): Don't check
6672 (lwp_resumed): New function.
6673 (status_pending_p_callback): Return early if the LWP is not
6674 supposed to be resumed.
6676 2015-11-30 Pedro Alves <palves@redhat.com>
6678 * linux-low.c (handle_extended_wait): Assert that the LWP's
6679 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
6680 thread create events, leave the new child's status pending.
6681 (linux_low_filter_event): If GDB wants to hear about thread exit
6682 events, leave the LWP marked dead and don't delete it.
6683 (linux_wait_for_event_filtered): Don't check for thread exit.
6684 (filter_exit_event): New function.
6685 (linux_wait_1): Use it, when returning an exit event.
6686 (linux_resume_one_lwp_throw): Assert that the LWP's
6687 waitstatus is TARGET_WAITKIND_IGNORE.
6688 * remote-utils.c (prepare_resume_reply): Handle
6689 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
6690 * server.c (report_thread_events): New global.
6691 (handle_general_set): Handle QThreadEvents.
6692 (handle_query) <qSupported>: Handle and report QThreadEvents+;
6693 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
6694 TARGET_WAITKIND_THREAD_EXITED.
6695 * server.h (report_thread_events): Declare.
6697 2015-11-30 Pedro Alves <palves@redhat.com>
6699 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
6700 the thread's last_resume_kind was resume_stop.
6702 2015-11-30 Pedro Alves <palves@redhat.com>
6704 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
6707 2015-11-30 Pedro Alves <palves@redhat.com>
6709 * server.c (handle_v_requests): Handle vCtrlC.
6711 2015-11-30 Pedro Alves <palves@redhat.com>
6713 * gdbthread.h (find_any_thread_of_pid): Declare.
6714 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
6716 * server.c (handle_query): If current_thread is NULL, look for
6717 another thread of the selected process.
6719 2015-11-26 Daniel Colascione <dancol@dancol.org>
6720 Simon Marchi <simon.marchi@ericsson.com>
6722 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
6723 * server.c (handle_qxfer_threads_worker): Refactor to include thread
6725 * target.h (struct target_ops) <thread_name>: New field.
6726 (target_thread_name): New macro.
6728 2015-11-23 Joel Brobecker <brobecker@adacore.com>
6730 * regcache.h (regcache_invalidate_pid): Add declaration.
6731 * regcache.c (regcache_invalidate_pid): New function, extracted
6732 from regcache_invalidate.
6733 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
6734 Add trivial documentation comment.
6735 * lynx-low.c: Use regcache_invalidate_pid instead of
6736 regcache_invalidate.
6738 2015-11-23 Joel Brobecker <brobecker@adacore.com>
6740 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
6741 and Elf64_auxv_t if the target is Android.
6743 2015-11-22 Doug Evans <xdje42@gmail.com>
6745 * target.h: #include <sys/types.h>.
6747 2015-11-19 Pedro Alves <palves@redhat.com>
6749 * linux-low.c (linux_process_qsupported): Change prototype.
6751 * linux-low.h (struct linux_target_ops) <process_qsupported>:
6753 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
6754 and adjust to loop over all features.
6755 * server.c (handle_query) <qSupported>: Adjust to call
6756 target_process_qsupported once, passing it a vector of unprocessed
6758 * target.h (struct target_ops) <process_qsupported>: Change
6760 (target_process_qsupported): Adjust.
6762 2015-11-19 Pedro Alves <palves@redhat.com>
6764 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
6766 * configure: Regenerate.
6768 2015-11-19 Pedro Alves <palves@redhat.com>
6770 * configure: Regenerate.
6772 2015-11-19 Yao Qi <yao.qi@linaro.org>
6774 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
6777 2015-11-19 Yao Qi <yao.qi@linaro.org>
6779 * linux-aarch64-low.c (enum aarch64_operand_type): New.
6780 (struct aarch64_operand): Move enum out.
6782 2015-11-19 Yao Qi <yao.qi@linaro.org>
6784 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
6785 struct user_fpsimd_state *.
6786 (aarch64_store_fpregset): Likewise.
6788 2015-11-19 Yao Qi <yao.qi@linaro.org>
6790 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
6791 struct user_pt_regs *.
6792 (aarch64_store_gregset): Likewise.
6794 2015-11-18 Pedro Alves <palves@redhat.com>
6796 * Makefile.in (all_object_files): Add $IPA_OBJS.
6798 2015-11-17 Pedro Alves <palves@redhat.com>
6800 * win32-low.c (win32_resume): Use gdb_signal_from_host,
6801 GDB_SIGNAL_0 and gdb_signal_to_string.
6803 2015-11-17 Pedro Alves <palves@redhat.com>
6805 * win32-low.c (handle_output_debug_string): Remove parameter.
6806 (win32_kill): Remove our_status local and adjust call to
6807 handle_output_debug_string.
6808 (get_child_debug_event): Adjust call to
6809 handle_output_debug_string.
6811 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6813 * linux-mips-low.c (mips_fill_gregset): Add cast.
6814 (mips_store_gregset): Likewise.
6815 (mips_fill_fpregset): Likewise.
6816 (mips_store_fpregset): Likewise.
6818 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6820 * linux-mips-low.c (mips_add_watchpoint): Rename private to
6823 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6825 * linux-mips-low.c (mips_linux_new_thread): Change type of
6826 watch_type to enum target_hw_bp_type.
6828 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6830 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
6831 Change return type to arm_hwbp_type.
6833 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6835 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
6836 (arm_store_gregset): Likewise.
6837 * linux-arm-low.c (arm_get_hwcap): Likewise.
6838 (arm_read_description): Likewise.
6840 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6842 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
6844 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6846 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
6847 (ppc_fill_vsxregset): Likewise.
6848 (ppc_store_vsxregset): Likewise.
6849 (ppc_fill_vrregset): Likewise.
6850 (ppc_store_vrregset): Likewise.
6851 (ppc_fill_evrregset): Likewise.
6852 (ppc_store_evrregset): Likewise.
6854 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6856 * linux-ppc-low.c (ppc_usrregs_info): Remove
6857 forward-declaration.
6858 (ppc_arch_setup): Move lower in file.
6860 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
6862 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
6863 (ps_pdwrite): Likewise.
6865 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
6867 * linux-arm-low.c (arm_new_thread): Move pointer dereference
6868 to after assert checks.
6870 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
6872 * proc-service.c (ps_pdread): Add/adjust casts.
6873 (ps_pdwrite): Add/adjust casts.
6875 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6877 * server.c (handle_search_memory_1): Cast return value of
6880 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6882 * server.c (write_qxfer_response): Change type of data to
6885 2015-10-29 Pedro Alves <palves@redhat.com>
6887 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
6889 2015-10-29 Pedro Alves <palves@redhat.com>
6891 * tracepoint.c (clear_installed_tracepoints): Add casts.
6893 2015-10-29 Pedro Alves <palves@redhat.com>
6895 * server.c (handle_v_cont, process_serial_event): Add enum
6896 gdb_signal casts to signal parsing code.
6898 2015-10-29 Pedro Alves <palves@redhat.com>
6900 * linux-low.h (NULL_REGSET): Define.
6901 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6902 * linux-arm-low.c (arm_regsets): Likewise.
6903 * linux-crisv32-low.c (cris_regsets): Likewise.
6904 * linux-m68k-low.c (m68k_regsets): Likewise.
6905 * linux-mips-low.c (mips_regsets): Likewise.
6906 * linux-nios2-low.c (nios2_regsets): Likewise.
6907 * linux-ppc-low.c (ppc_regsets): Likewise.
6908 * linux-s390-low.c (s390_regsets): Likewise.
6909 * linux-sh-low.c (sh_regsets): Likewise.
6910 * linux-sparc-low.c (sparc_regsets): Likewise.
6911 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6912 * linux-tile-low.c (tile_regsets): Likewise.
6913 * linux-x86-low.c (x86_regsets): Likewise.
6914 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6916 2015-10-29 Pedro Alves <palves@redhat.com>
6918 * linux-low.h (NULL_REGSET): Define.
6919 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6920 * linux-arm-low.c (arm_regsets): Likewise.
6921 * linux-crisv32-low.c (cris_regsets): Likewise.
6922 * linux-m68k-low.c (m68k_regsets): Likewise.
6923 * linux-mips-low.c (mips_regsets): Likewise.
6924 * linux-nios2-low.c (nios2_regsets): Likewise.
6925 * linux-ppc-low.c (ppc_regsets): Likewise.
6926 * linux-s390-low.c (s390_regsets): Likewise.
6927 * linux-sh-low.c (sh_regsets): Likewise.
6928 * linux-sparc-low.c (sparc_regsets): Likewise.
6929 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6930 * linux-tile-low.c (tile_regsets): Likewise.
6931 * linux-x86-low.c (x86_regsets): Likewise.
6932 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6934 2015-10-26 Doug Evans <dje@google.com>
6936 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
6938 2015-10-26 Doug Evans <dje@google.com>
6940 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
6942 2015-10-26 Doug Evans <dje@google.com>
6944 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
6946 (attach_thread, find_new_threads_callback): Ditto.
6948 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6950 * mem-break.h (set_breakpoint_data): Remove.
6952 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6954 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
6955 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6956 (initialize_low): Remove set_breakpoint_data call.
6957 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
6958 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
6959 (initialize_low): Remove set_breakpoint_data call.
6960 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
6961 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6962 (initialize_low): Remove set_breakpoint_data call.
6964 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6966 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
6967 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
6968 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
6969 * target.h (target_breakpoint_kind_from_pc): New macro.
6971 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
6973 * linux-low.c (default_breakpoint_kind_from_pc): New function.
6974 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
6975 the default breakpoint kind.
6977 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6979 * linux-arm-low.c (arm_supports_z_point_type): Add software
6982 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6984 * linux-arm-low.c: Refactor breakpoint definitions.
6985 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
6986 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
6988 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6990 * Makefile.in: Add arm.c/o.
6991 * configure.srv: Likewise.
6992 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
6993 (arm_breakpoint_kind_from_pc): New function.
6994 (arm_sw_breakpoint_from_kind): Return proper kind.
6995 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
6997 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6999 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7001 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7002 (struct raw_breakpoint) <size>: Remove.
7003 (struct raw_breakpoint) <kind>: Add.
7004 (bp_size): New function.
7005 (bp_opcode): Likewise.
7006 (find_raw_breakpoint_at): Adjust for kind.
7007 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7008 (remove_memory_breakpoint): Adjust for kind call bp_size.
7009 (set_raw_breakpoint_at): Adjust for kind.
7010 (set_breakpoint): Likewise.
7011 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7012 (delete_raw_breakpoint): Adjust for kind.
7013 (delete_breakpoint): Likewise.
7014 (find_gdb_breakpoint): Likewise.
7015 (set_gdb_breakpoint_1): Likewise.
7016 (set_gdb_breakpoint): Likewise.
7017 (delete_gdb_breakpoint_1): Likewise.
7018 (delete_gdb_breakpoint): Likewise.
7019 (uninsert_raw_breakpoint): Likewise.
7020 (reinsert_raw_breakpoint): Likewise.
7021 (set_breakpoint_data): Remove.
7022 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7023 (check_mem_read): Adjust for kind call bp_size.
7024 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7025 (clone_one_breakpoint): Adjust for kind.
7026 * mem-break.h (set_gdb_breakpoint): Likewise.
7027 (delete_gdb_breakpoint): Likewise.
7028 * server.c (process_serial_event): Likewise.
7030 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7032 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7033 (struct linux_target_ops) <breakpoint>: Remove.
7034 (struct linux_target_ops) <breakpoint_len>: Remove.
7035 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7036 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7037 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7038 (arm_sw_breakpoint_from_kind): New function.
7039 * linux-bfin-low.c (bfin_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-cris-low.c (cris_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-crisv32-low.c (cris_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-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7055 and sw_breakpoint_from_kind to increment the pc.
7056 (linux_breakpoint_kind_from_pc): New function.
7057 (linux_sw_breakpoint_from_kind): New function.
7058 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7059 (initialize_low): Call breakpoint_kind_from_pc and
7060 sw_breakpoint_from_kind to replace breakpoint_data/len.
7061 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7063 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7064 * linux-m32r-low.c (m32r_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-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7070 (struct linux_target_ops) <breakpoint>: Remove.
7071 (struct linux_target_ops) <breakpoint_len>: Remove.
7072 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7073 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7074 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
7075 (struct linux_target_ops) <breakpoint>: Remove.
7076 (struct linux_target_ops) <breakpoint_len>: Remove.
7077 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7078 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7079 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7080 (struct linux_target_ops) <breakpoint>: Remove.
7081 (struct linux_target_ops) <breakpoint_len>: Remove.
7082 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7083 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7084 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7085 (struct linux_target_ops) <breakpoint>: Remove.
7086 (struct linux_target_ops) <breakpoint_len>: Remove.
7087 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7088 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7089 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7090 (struct linux_target_ops) <breakpoint>: Remove.
7091 (struct linux_target_ops) <breakpoint_len>: Remove.
7092 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7093 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7094 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7095 (struct linux_target_ops) <breakpoint>: Remove.
7096 (struct linux_target_ops) <breakpoint_len>: Remove.
7097 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7098 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7099 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
7100 (struct linux_target_ops) <breakpoint>: Remove.
7101 (struct linux_target_ops) <breakpoint_len>: Remove.
7102 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7103 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7104 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
7105 (struct linux_target_ops) <breakpoint>: Remove.
7106 (struct linux_target_ops) <breakpoint_len>: Remove.
7107 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7108 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7109 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
7110 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
7111 (struct linux_target_ops) <breakpoint>: Remove.
7112 (struct linux_target_ops) <breakpoint_len>: Remove.
7113 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7114 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7115 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
7116 (struct linux_target_ops) <breakpoint>: Remove.
7117 (struct linux_target_ops) <breakpoint_len>: Remove.
7118 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7119 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7121 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7123 * linux-cris-low.c (cris_get_pc): Remove void arg.
7125 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7127 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7130 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7132 * inferiors.c (thread_pid_matches_callback): New function.
7133 (find_thread_process): New function.
7134 (remove_thread): Reset current_thread.
7135 (remove_process): Assert threads have been removed first.
7137 2015-10-15 Yao Qi <yao.qi@linaro.org>
7139 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7141 (aarch64_remove_point): Likewise.
7142 * regcache.c (regcache_register_size): New function.
7144 2015-10-12 Yao Qi <yao.qi@linaro.org>
7146 * linux-aarch64-low.c: Update all callers as emit_load_store
7147 is renamed to aarch64_emit_load_store.
7149 2015-10-12 Yao Qi <yao.qi@linaro.org>
7151 * linux-aarch64-low.c: Update all callers of function renaming
7152 from emit_insn to aarch64_emit_insn.
7154 2015-10-12 Yao Qi <yao.qi@linaro.org>
7156 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7157 arch/aarch64-insn.h.
7158 (struct aarch64_memory_operand): Likewise.
7160 (emit_insn): Move to arch/aarch64-insn.c.
7161 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
7162 (emit_load_store): Move to arch/aarch64-insn.c.
7163 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
7164 (can_encode_int32): Remove.
7166 2015-10-12 Yao Qi <yao.qi@linaro.org>
7168 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
7169 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
7170 (aarch64_relocate_instruction): Likewise.
7171 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
7172 (struct aarch64_insn_visitor): Likewise.
7174 2015-10-12 Yao Qi <yao.qi@linaro.org>
7176 * linux-aarch64-low.c (struct aarch64_insn_data): New.
7177 (struct aarch64_insn_visitor): New.
7178 (struct aarch64_insn_relocation_data): New.
7179 (aarch64_ftrace_insn_reloc_b): New function.
7180 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7181 (aarch64_ftrace_insn_reloc_cb): Likewise.
7182 (aarch64_ftrace_insn_reloc_tb): Likewise.
7183 (aarch64_ftrace_insn_reloc_adr): Likewise.
7184 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
7185 (aarch64_ftrace_insn_reloc_others): Likewise.
7187 (aarch64_relocate_instruction): Use visitor.
7189 2015-10-12 Yao Qi <yao.qi@linaro.org>
7191 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
7192 int. Add argument buf.
7193 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
7194 aarch64_relocate_instruction.
7196 2015-10-12 Yao Qi <yao.qi@linaro.org>
7198 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7199 argument insn. Remove local variable insn. Don't call
7201 (aarch64_install_fast_tracepoint_jump_pad): Call
7204 2015-09-30 Yao Qi <yao.qi@linaro.org>
7206 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7207 (emit_load_store_pair): Likewise.
7209 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7211 * dll.c (match_dll): Add cast(s).
7212 (unloaded_dll): Likewise.
7213 * linux-low.c (second_thread_of_pid_p): Likewise.
7214 (delete_lwp_callback): Likewise.
7215 (count_events_callback): Likewise.
7216 (select_event_lwp_callback): Likewise.
7217 (linux_set_resume_request): Likewise.
7218 * server.c (accumulate_file_name_length): Likewise.
7219 (emit_dll_description): Likewise.
7220 (handle_qxfer_threads_worker): Likewise.
7221 (visit_actioned_threads): Likewise.
7222 * thread-db.c (any_thread_of): Likewise.
7223 * tracepoint.c (same_process_p): Likewise.
7224 (match_blocktype): Likewise.
7225 (build_traceframe_info_xml): Likewise.
7227 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7229 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7231 (gdb_unparse_agent_expr): Likewise.
7232 * hostio.c (require_data): Likewise.
7233 (handle_pread): Likewise.
7234 * linux-low.c (disable_regset): Likewise.
7235 (fetch_register): Likewise.
7236 (store_register): Likewise.
7237 (get_dynamic): Likewise.
7238 (linux_qxfer_libraries_svr4): Likewise.
7239 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
7240 (set_fast_tracepoint_jump): Likewise.
7241 (uninsert_fast_tracepoint_jumps_at): Likewise.
7242 (reinsert_fast_tracepoint_jumps_at): Likewise.
7243 (validate_inserted_breakpoint): Likewise.
7244 (clone_agent_expr): Likewise.
7245 * regcache.c (init_register_cache): Likewise.
7246 * remote-utils.c (putpkt_binary_1): Likewise.
7247 (decode_M_packet): Likewise.
7248 (decode_X_packet): Likewise.
7249 (look_up_one_symbol): Likewise.
7250 (relocate_instruction): Likewise.
7251 (monitor_output): Likewise.
7252 * server.c (handle_search_memory): Likewise.
7253 (handle_qxfer_exec_file): Likewise.
7254 (handle_qxfer_libraries): Likewise.
7255 (handle_qxfer): Likewise.
7256 (handle_query): Likewise.
7257 (handle_v_cont): Likewise.
7258 (handle_v_run): Likewise.
7259 (captured_main): Likewise.
7260 * target.c (write_inferior_memory): Likewise.
7261 * thread-db.c (try_thread_db_load_from_dir): Likewise.
7262 * tracepoint.c (init_trace_buffer): Likewise.
7263 (add_tracepoint_action): Likewise.
7264 (add_traceframe): Likewise.
7265 (add_traceframe_block): Likewise.
7266 (cmd_qtdpsrc): Likewise.
7267 (cmd_qtdv): Likewise.
7268 (cmd_qtstatus): Likewise.
7269 (response_source): Likewise.
7270 (response_tsv): Likewise.
7271 (cmd_qtnotes): Likewise.
7272 (gdb_collect): Likewise.
7273 (initialize_tracepoint): Likewise.
7275 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7277 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
7278 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
7279 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
7281 (enum aarch64_condition_codes): New enum.
7282 (w0): New static global.
7285 (struct aarch64_memory_operand) <type>: New
7286 MEMORY_OPERAND_POSTINDEX type.
7287 (postindex_memory_operand): New helper function.
7288 (emit_ret): New function.
7289 (emit_load_store_pair): New function, factored out of emit_stp
7290 with support for MEMORY_OPERAND_POSTINDEX.
7291 (emit_stp): Rewrite using emit_load_store_pair.
7292 (emit_ldp): New function.
7293 (emit_load_store): Likewise.
7294 (emit_ldr): Mention post-index instruction in comment.
7295 (emit_ldrh): New function.
7296 (emit_ldrb): New function.
7297 (emit_ldrsw): Mention post-index instruction in comment.
7298 (emit_str): Likewise.
7299 (emit_subs): New function.
7300 (emit_cmp): Likewise.
7301 (emit_and): Likewise.
7302 (emit_orr): Likewise.
7303 (emit_orn): Likewise.
7304 (emit_eor): Likewise.
7305 (emit_mvn): Likewise.
7306 (emit_lslv): Likewise.
7307 (emit_lsrv): Likewise.
7308 (emit_asrv): Likewise.
7309 (emit_mul): Likewise.
7310 (emit_sbfm): Likewise.
7311 (emit_sbfx): Likewise.
7312 (emit_ubfm): Likewise.
7313 (emit_ubfx): Likewise.
7314 (emit_csinc): Likewise.
7315 (emit_cset): Likewise.
7316 (emit_nop): Likewise.
7317 (emit_ops_insns): New helper function.
7318 (emit_pop): Likewise.
7319 (emit_push): Likewise.
7320 (aarch64_emit_prologue): New function.
7321 (aarch64_emit_epilogue): Likewise.
7322 (aarch64_emit_add): Likewise.
7323 (aarch64_emit_sub): Likewise.
7324 (aarch64_emit_mul): Likewise.
7325 (aarch64_emit_lsh): Likewise.
7326 (aarch64_emit_rsh_signed): Likewise.
7327 (aarch64_emit_rsh_unsigned): Likewise.
7328 (aarch64_emit_ext): Likewise.
7329 (aarch64_emit_log_not): Likewise.
7330 (aarch64_emit_bit_and): Likewise.
7331 (aarch64_emit_bit_or): Likewise.
7332 (aarch64_emit_bit_xor): Likewise.
7333 (aarch64_emit_bit_not): Likewise.
7334 (aarch64_emit_equal): Likewise.
7335 (aarch64_emit_less_signed): Likewise.
7336 (aarch64_emit_less_unsigned): Likewise.
7337 (aarch64_emit_ref): Likewise.
7338 (aarch64_emit_if_goto): Likewise.
7339 (aarch64_emit_goto): Likewise.
7340 (aarch64_write_goto_address): Likewise.
7341 (aarch64_emit_const): Likewise.
7342 (aarch64_emit_call): Likewise.
7343 (aarch64_emit_reg): Likewise.
7344 (aarch64_emit_pop): Likewise.
7345 (aarch64_emit_stack_flush): Likewise.
7346 (aarch64_emit_zero_ext): Likewise.
7347 (aarch64_emit_swap): Likewise.
7348 (aarch64_emit_stack_adjust): Likewise.
7349 (aarch64_emit_int_call_1): Likewise.
7350 (aarch64_emit_void_call_2): Likewise.
7351 (aarch64_emit_eq_goto): Likewise.
7352 (aarch64_emit_ne_goto): Likewise.
7353 (aarch64_emit_lt_goto): Likewise.
7354 (aarch64_emit_le_goto): Likewise.
7355 (aarch64_emit_gt_goto): Likewise.
7356 (aarch64_emit_ge_got): Likewise.
7357 (aarch64_emit_ops_impl): New static global variable.
7358 (aarch64_emit_ops): New target function, return
7359 &aarch64_emit_ops_impl.
7360 (struct linux_target_ops): Install it.
7362 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7364 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7365 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7367 * linux-aarch64-ipa.c: New file.
7368 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7370 (aarch64_get_thread_area): New target method.
7371 (extract_signed_bitfield): New helper function.
7372 (aarch64_decode_ldr_literal): New function.
7373 (enum aarch64_opcodes): New enum.
7374 (struct aarch64_register): New struct.
7375 (struct aarch64_operand): New struct.
7376 (x0): New static global.
7385 (aarch64_register): New helper function.
7386 (register_operand): Likewise.
7387 (immediate_operand): Likewise.
7388 (struct aarch64_memory_operand): New struct.
7389 (offset_memory_operand): New helper function.
7390 (preindex_memory_operand): Likewise.
7391 (enum aarch64_system_control_registers): New enum.
7392 (ENCODE): New macro.
7393 (emit_insn): New helper function.
7394 (emit_b): New function.
7395 (emit_bcond): Likewise.
7396 (emit_cb): Likewise.
7397 (emit_tb): Likewise.
7398 (emit_blr): Likewise.
7399 (emit_stp): Likewise.
7400 (emit_ldp_q_offset): Likewise.
7401 (emit_stp_q_offset): Likewise.
7402 (emit_load_store): Likewise.
7403 (emit_ldr): Likewise.
7404 (emit_ldrsw): Likewise.
7405 (emit_str): Likewise.
7406 (emit_ldaxr): Likewise.
7407 (emit_stxr): Likewise.
7408 (emit_stlr): Likewise.
7409 (emit_data_processing_reg): Likewise.
7410 (emit_data_processing): Likewise.
7411 (emit_add): Likewise.
7412 (emit_sub): Likewise.
7413 (emit_mov): Likewise.
7414 (emit_movk): Likewise.
7415 (emit_mov_addr): Likewise.
7416 (emit_mrs): Likewise.
7417 (emit_msr): Likewise.
7418 (emit_sevl): Likewise.
7419 (emit_wfe): Likewise.
7420 (append_insns): Likewise.
7421 (can_encode_int32_in): New helper function.
7422 (aarch64_relocate_instruction): New function.
7423 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
7424 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
7425 (struct linux_target_ops): Install aarch64_get_thread_area,
7426 aarch64_install_fast_tracepoint_jump_pad and
7427 aarch64_get_min_fast_tracepoint_insn_len.
7429 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7431 * Makefile.in (aarch64-insn.o): New rule.
7432 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7434 2015-09-21 Yao Qi <yao.qi@linaro.org>
7436 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7438 2015-09-21 Yao Qi <yao.qi@linaro.org>
7440 * tracepoint.c (max_jump_pad_size): Remove.
7442 2015-09-18 Yao Qi <yao.qi@linaro.org>
7444 * linux-aarch64-low.c: Don't include sys/uio.h.
7445 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7447 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
7449 * tracepoint.c (eval_result_type): Change prototype.
7450 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7452 2015-09-15 Pedro Alves <palves@redhat.com>
7454 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7455 Check whether to report exec events instead of checking whether
7456 multiprocess is enabled.
7458 2015-09-15 Pedro Alves <palves@redhat.com>
7461 * remote-utils.c (prepare_resume_reply): Merge
7462 TARGET_WAITKIND_VFORK_DONE switch case with the
7463 TARGET_WAITKIND_FORKED case.
7465 2015-09-15 Yao Qi <yao.qi@linaro.org>
7467 * server.c (handle_query): Check string comparison using
7468 "else if" instead of "if".
7470 2015-09-15 Yao Qi <yao.qi@linaro.org>
7472 * server.c (vCont_supported): New global variable.
7473 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7474 matches. Append ";vContSupported+" to own_buf.
7475 (handle_v_requests): Append ";s;S" to own_buf if target supports
7476 hardware single step or vCont_supported is false.
7477 (capture_main): Set vCont_supported to zero.
7479 2015-09-15 Yao Qi <yao.qi@linaro.org>
7481 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7483 (linux_supports_hardware_single_step): ... New function.
7484 (linux_target_ops): Update.
7485 * lynx-low.c (lynx_target_ops): Set field
7486 supports_hardware_single_step to target_can_do_hardware_single_step.
7487 * nto-low.c (nto_target_ops): Likewise.
7488 * spu-low.c (spu_target_ops): Likewise.
7489 * win32-low.c (win32_target_ops): Likewise.
7490 * target.c (target_can_do_hardware_single_step): New function.
7491 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7492 Remove. <supports_hardware_single_step>: New field.
7493 (target_supports_conditional_breakpoints): Remove.
7494 (target_supports_hardware_single_step): New macro.
7495 (target_can_do_hardware_single_step): Declare.
7496 * server.c (handle_query): Use target_supports_hardware_single_step
7497 instead of target_supports_conditional_breakpoints.
7499 2015-09-15 Yao Qi <yao.qi@linaro.org>
7501 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
7503 (struct linux_target_ops the_low_target): Install
7504 aarch64_linux_siginfo_fixup.
7506 2015-09-11 Don Breazeal <donb@codesourcery.com>
7507 Luis Machado <lgustavo@codesourcery.com>
7509 * linux-low.c (linux_mourn): Static declaration.
7510 (linux_arch_setup): Move in front of
7511 handle_extended_wait.
7512 (linux_arch_setup_thread): New function.
7513 (handle_extended_wait): Handle exec events. Call
7514 linux_arch_setup_thread. Make event_lwp argument a
7515 pointer-to-a-pointer.
7516 (check_zombie_leaders): Do not check stopped threads.
7517 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
7518 (linux_low_filter_event): Add lwp and thread for exec'ing
7519 non-leader thread if leader thread has been deleted.
7520 Refactor code into linux_arch_setup_thread and call it.
7521 Pass child lwp pointer by reference to handle_extended_wait.
7522 (linux_wait_for_event_filtered): Update comment.
7523 (linux_wait_1): Prevent clobbering exec event status.
7524 (linux_supports_exec_events): New function.
7525 (linux_target_ops) <supports_exec_events>: Initialize new member.
7526 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
7528 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
7529 * server.c (report_exec_events): New global variable.
7530 (handle_query): Handle qSupported query for exec-events feature.
7531 (captured_main): Initialize report_exec_events.
7532 * server.h (report_exec_events): Declare new global variable.
7533 * target.h (struct target_ops) <supports_exec_events>: New
7535 (target_supports_exec_events): New macro.
7536 * win32-low.c (win32_target_ops) <supports_exec_events>:
7537 Initialize new member.
7539 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
7541 * linux-low.c (linux_low_enable_btrace): Remove.
7542 (linux_target_ops): Replace linux_low_enable_btrace with
7543 linux_enable_btrace.
7545 2015-09-03 Yao Qi <yao.qi@linaro.org>
7547 * linux-aarch64-low.c (aarch64_insert_point): Call
7548 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
7551 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7553 * linux-low.c (check_stopped_by_breakpoint): Use
7554 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
7556 2015-08-27 Pedro Alves <palves@redhat.com>
7558 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
7560 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
7562 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
7563 the XNEW-family equivalent.
7564 (compile_bytecodes): Likewise.
7565 * dll.c (loaded_dll): Likewise.
7566 * event-loop.c (append_callback_event): Likewise.
7567 (create_file_handler): Likewise.
7568 (create_file_event): Likewise.
7569 * hostio.c (handle_open): Likewise.
7570 * inferiors.c (add_thread): Likewise.
7571 (add_process): Likewise.
7572 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
7573 * linux-arm-low.c (arm_new_process): Likewise.
7574 (arm_new_thread): Likewise.
7575 * linux-low.c (add_to_pid_list): Likewise.
7576 (linux_add_process): Likewise.
7577 (handle_extended_wait): Likewise.
7578 (add_lwp): Likewise.
7579 (enqueue_one_deferred_signal): Likewise.
7580 (enqueue_pending_signal): Likewise.
7581 (linux_resume_one_lwp_throw): Likewise.
7582 (linux_resume_one_thread): Likewise.
7583 (linux_read_memory): Likewise.
7584 (linux_write_memory): Likewise.
7585 * linux-mips-low.c (mips_linux_new_process): Likewise.
7586 (mips_linux_new_thread): Likewise.
7587 (mips_add_watchpoint): Likewise.
7588 * linux-x86-low.c (initialize_low_arch): Likewise.
7589 * lynx-low.c (lynx_add_process): Likewise.
7590 * mem-break.c (set_raw_breakpoint_at): Likewise.
7591 (set_breakpoint): Likewise.
7592 (add_condition_to_breakpoint): Likewise.
7593 (add_commands_to_breakpoint): Likewise.
7594 (clone_agent_expr): Likewise.
7595 (clone_one_breakpoint): Likewise.
7596 * regcache.c (new_register_cache): Likewise.
7597 * remote-utils.c (look_up_one_symbol): Likewise.
7598 * server.c (queue_stop_reply): Likewise.
7599 (start_inferior): Likewise.
7600 (queue_stop_reply_callback): Likewise.
7601 (handle_target_event): Likewise.
7602 * spu-low.c (fetch_ppc_memory): Likewise.
7603 (store_ppc_memory): Likewise.
7604 * target.c (set_target_ops): Likewise.
7605 * thread-db.c (thread_db_load_search): Likewise.
7606 (try_thread_db_load_1): Likewise.
7607 * tracepoint.c (add_tracepoint): Likewise.
7608 (add_tracepoint_action): Likewise.
7609 (create_trace_state_variable): Likewise.
7610 (cmd_qtdpsrc): Likewise.
7611 (cmd_qtro): Likewise.
7612 (add_while_stepping_state): Likewise.
7613 * win32-low.c (child_add_thread): Likewise.
7614 (get_image_name): Likewise.
7616 2015-08-25 Yao Qi <yao.qi@linaro.org>
7618 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
7620 2015-08-25 Yao Qi <yao.qi@linaro.org>
7622 * Makefile.in (aarch64-linux.o): New rule.
7623 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
7625 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
7626 (aarch64_init_debug_reg_state): Make it extern.
7627 (aarch64_linux_prepare_to_resume): Remove.
7629 2015-08-25 Yao Qi <yao.qi@linaro.org>
7631 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
7632 lwp_arch_private_info and ptid_of_lwp.
7634 2015-08-25 Yao Qi <yao.qi@linaro.org>
7636 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
7637 Find proc_info by find_process_pid. All callers updated.
7639 2015-08-25 Yao Qi <yao.qi@linaro.org>
7641 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
7643 (debug_reg_change_callback): Remove.
7644 (aarch64_notify_debug_reg_change): Remove.
7646 2015-08-25 Yao Qi <yao.qi@linaro.org>
7648 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
7649 Call current_lwp_ptid.
7651 2015-08-25 Yao Qi <yao.qi@linaro.org>
7653 * linux-aarch64-low.c (debug_reg_change_callback): Use
7656 2015-08-25 Yao Qi <yao.qi@linaro.org>
7658 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
7660 2015-08-25 Yao Qi <yao.qi@linaro.org>
7662 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
7664 2015-08-25 Yao Qi <yao.qi@linaro.org>
7666 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
7669 2015-08-25 Yao Qi <yao.qi@linaro.org>
7671 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
7673 (debug_reg_change_callback): Remove argument entry and add argument
7674 lwp. Remove local variable thread. Don't print thread id in the
7675 debugging output. Don't check whether pid of thread equals to pid.
7676 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
7677 iterate_over_lwps instead find_inferior.
7679 2015-08-24 Pedro Alves <palves@redhat.com>
7681 * inferiors.c (get_first_process): New function.
7682 * inferiors.h (get_first_process): New declaration.
7683 * remote-utils.c (read_ptid): Default to the first process in the
7684 list, instead of to the current thread's process.
7686 2015-08-24 Pedro Alves <palves@redhat.com>
7688 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
7689 * event-loop.c: Likewise.
7690 * remote-utils.c: Likewise.
7691 * tracepoint.c: Likewise.
7693 2015-08-24 Pedro Alves <palves@redhat.com>
7695 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
7698 2015-08-21 Pedro Alves <palves@redhat.com>
7700 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
7701 instead of literal 1.
7703 2015-08-21 Pedro Alves <palves@redhat.com>
7705 * tdesc.c (default_description): Explicitly zero-initialize.
7707 2015-08-21 Pedro Alves <palves@redhat.com>
7710 * inferiors.c (remove_thread): Discard any pending stop reply for
7712 * server.c (remove_all_on_match_pid): Rename to ...
7713 (remove_all_on_match_ptid): ... this. Work with a filter ptid
7715 (discard_queued_stop_replies): Change parameter to a ptid. Now
7717 (handle_v_kill, kill_inferior_callback, captured_main)
7718 (process_serial_event): Adjust.
7719 * server.h (discard_queued_stop_replies): Declare.
7721 2015-08-21 Pedro Alves <palves@redhat.com>
7723 * linux-low.c (wait_for_sigstop): Always switch to no thread
7724 selected if the previously current thread dies.
7725 * lynx-low.c (lynx_request_interrupt): Use the first thread's
7726 process instead of the current thread's.
7727 * remote-utils.c (input_interrupt): Don't check if there's no
7729 * server.c (gdb_read_memory, gdb_write_memory): If setting the
7730 current thread to the general thread fails, error out.
7731 (handle_qxfer_auxv, handle_qxfer_libraries)
7732 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
7733 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
7734 (handle_query): Check if there's a thread selected instead of
7735 checking whether there's any thread in the thread list.
7736 (handle_qxfer_threads, handle_qxfer_btrace)
7737 (handle_qxfer_btrace_conf): Don't error out early if there's no
7738 thread in the thread list.
7739 (handle_v_cont, myresume): Don't set the current thread to the
7741 (process_serial_event) <Hg handling>: Also set thread_id if the
7742 previous general thread is still alive.
7743 (process_serial_event) <g/G handling>: If setting the current
7744 thread to the general thread fails, error out.
7745 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
7746 thread's lwp instead of the current thread's.
7747 * target.c (set_desired_thread): If the desired thread was not
7748 found, leave the current thread pointing to NULL. Return an int
7749 (boolean) indicating success.
7750 * target.h (set_desired_thread): Change return type to int.
7752 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
7754 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
7755 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
7757 (ps_get_thread_area): New function.
7759 2015-08-19 Gary Benson <gbenson@redhat.com>
7761 * hostio.c (handle_pread): Do not attempt to read more data
7762 than hostio_reply_with_data can fit in a packet.
7764 2015-08-18 Joel Brobecker <brobecker@adacore.com>
7766 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
7768 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
7770 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
7772 2015-08-06 Pedro Alves <palves@redhat.com>
7774 * tracepoint.c (expr_eval_result): Now an int.
7776 2015-08-06 Pedro Alves <palves@redhat.com>
7778 * gdbthread.h (struct regcache): Forward declare.
7779 (struct thread_info) <regcache_data>: Now a struct regcache
7781 * inferiors.c (inferior_regcache_data)
7782 (set_inferior_regcache_data): Now work with struct regcache
7784 * inferiors.h (struct regcache): Forward declare.
7785 (inferior_regcache_data, set_inferior_regcache_data): Now work
7786 with struct regcache pointers.
7787 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
7788 (free_register_cache_thread): Remove struct regcache pointer
7791 2015-08-06 Pedro Alves <palves@redhat.com>
7793 * server.c (captured_main): On error, print the exception message
7794 to stderr, and if run_once is set, throw a quit.
7796 2015-08-06 Pedro Alves <palves@redhat.com>
7798 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
7801 2015-08-06 Pedro Alves <palves@redhat.com>
7803 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
7804 reading beyond the passed in buffer length.
7806 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
7808 * tracepoint.c (symbol_list) <required>: Remove.
7810 2015-08-06 Pedro Alves <palves@redhat.com>
7812 * linux-low.c (handle_extended_wait): Set the fork child's suspend
7813 count if stopping and suspending threads.
7814 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
7815 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
7816 (linux_detach): Complete an ongoing step-over.
7817 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
7819 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
7820 (linux_wait_1): If passing a signal to the inferior after
7821 finishing a step-over, unsuspend and re-resume all lwps. If we
7822 see a single-step event but the thread should be continuing, don't
7823 pass the trap to gdb.
7824 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
7825 internal_error instead of gdb_assert.
7826 (enqueue_pending_signal): New function.
7827 (check_ptrace_stopped_lwp_gone): Add debug output.
7828 (start_step_over): Use internal_error instead of gdb_assert.
7829 (complete_ongoing_step_over): New function.
7830 (linux_resume_one_thread): Don't resume a suspended thread.
7831 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
7834 2015-08-06 Pedro Alves <palves@redhat.com>
7836 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
7837 (linux_thread_alive): Use lwp_is_marked_dead.
7838 (extended_event_reported): Delete.
7839 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
7840 instead of extended_event_reported.
7841 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
7843 (lwp_is_marked_dead): New function.
7844 (lwp_running): Use lwp_is_marked_dead.
7845 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
7848 2015-08-06 Pedro Alves <palves@redhat.com>
7850 * linux-low.c (linux_wait_1): Move fork event output out of the
7851 !report_to_gdb check. Pass event_child->waitstatus to
7852 target_waitstatus_to_string instead of ourstatus.
7854 2015-08-04 Yao Qi <yao.qi@linaro.org>
7856 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
7857 if current_thread is 32 bit.
7859 2015-08-04 Yao Qi <yao.qi@linaro.org>
7861 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7862 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7863 * server.c (extended_protocol): Remove "static".
7864 * server.h (extended_protocol): Declare it.
7866 2015-08-04 Yao Qi <yao.qi@linaro.org>
7868 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
7869 both aarch64 and aarch32.
7870 (aarch64_set_pc): Likewise.
7872 2015-08-04 Yao Qi <yao.qi@linaro.org>
7874 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
7875 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
7876 arm-with-neon.xml to srv_xmlfiles.
7877 * linux-aarch64-low.c: Include linux-aarch32-low.h.
7878 (is_64bit_tdesc): New function.
7879 (aarch64_linux_read_description): New function.
7880 (aarch64_arch_setup): Call aarch64_linux_read_description.
7881 (regs_info): Rename to regs_info_aarch64.
7882 (aarch64_regs_info): Return right regs_info.
7883 (initialize_low_arch): Call initialize_low_arch_aarch32.
7885 2015-08-04 Yao Qi <yao.qi@linaro.org>
7887 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
7888 * linux-aarch32-low.c: New file.
7889 * linux-aarch32-low.h: New file.
7890 * linux-arm-low.c (arm_fill_gregset): Move it to
7891 linux-aarch32-low.c.
7892 (arm_store_gregset): Likewise.
7893 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
7894 (arm_store_vfpregset): Call arm_store_vfpregset_num.
7895 (arm_arch_setup): Check if PTRACE_GETREGSET works.
7896 (regs_info): Rename to regs_info_arm.
7897 (arm_regs_info): Return regs_info_aarch32 if
7898 have_ptrace_getregset is 1 and target description is
7899 arm_with_neon or arm_with_vfpv3.
7900 (initialize_low_arch): Don't call init_registers_arm_with_neon.
7901 Call initialize_low_arch_aarch32 instead.
7903 2015-08-04 Yao Qi <yao.qi@linaro.org>
7905 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
7906 * linux-low.c: ... here.
7907 * linux-low.h (have_ptrace_getregset): Declare it.
7909 2015-08-04 Pedro Alves <palves@redhat.com>
7911 * thread-db.c (struct thread_db): Use new typedefs.
7912 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
7914 (disable_thread_event_reporting): Cast result of dlsym to
7915 destination function pointer type.
7916 (thread_db_mourn): Use td_ta_delete_ftype.
7918 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
7920 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
7922 (CDX_BREAKPOINT): Define for R2.
7923 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
7924 (the_low_target): Add comments.
7926 2015-07-30 Yao Qi <yao.qi@linaro.org>
7928 * linux-arm-low.c (arm_hwcap): Remove it.
7929 (arm_read_description): New local variable arm_hwcap. Don't
7930 set arm_hwcap to zero.
7932 2015-07-30 Yao Qi <yao.qi@linaro.org>
7934 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
7935 Use regcache->tdesc instead.
7936 (arm_store_wmmxregset): Likewise.
7937 (arm_fill_vfpregset): Likewise.
7938 (arm_store_vfpregset): Likewise.
7940 2015-07-30 Yao Qi <yao.qi@linaro.org>
7942 * linux-arm-low.c: Include arch/arm.h.
7943 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
7944 (arm_store_gregset): Likewise.
7946 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7948 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
7949 ptrace's 4th parameter.
7951 2015-07-27 Yao Qi <yao.qi@linaro.org>
7953 * configure.srv (case aarch64*-*-linux*): Don't set
7956 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
7958 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
7960 * linux-arm-low.c: Likewise.
7961 * linux-cris-low.c: Likewise.
7962 * linux-crisv32-low.c: Likewise.
7963 * linux-low.c: Likewise.
7964 * linux-m68k-low.c: Likewise.
7965 * linux-mips-low.c: Likewise.
7966 * linux-nios2-low.c: Likewise.
7967 * linux-s390-low.c: Likewise.
7968 * linux-sparc-low.c: Likewise.
7969 * linux-tic6x-low.c: Likewise.
7970 * linux-tile-low.c: Likewise.
7971 * linux-x86-low.c: Likewise.
7973 2015-07-24 Pedro Alves <palves@redhat.com>
7975 * config.in: Regenerate.
7976 * configure: Regenerate.
7978 2015-07-24 Pedro Alves <palves@redhat.com>
7980 * acinclude.m4: Include ../ptrace.m4.
7981 * configure.ac: Call GDB_AC_PTRACE.
7982 * config.in, configure: Regenerate.
7984 2015-07-24 Yao Qi <yao.qi@linaro.org>
7986 * linux-low.c (linux_create_inferior): Remove setting to
7987 proc->priv->new_inferior.
7988 (linux_attach): Likewise.
7989 (linux_low_filter_event): Likewise.
7990 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
7992 2015-07-24 Yao Qi <yao.qi@linaro.org>
7994 * linux-low.c (linux_arch_setup): New function.
7995 (linux_low_filter_event): If proc->tdesc is NULL and
7996 proc->attached is true, call the_low_target.arch_setup.
7997 Otherwise, keep status pending, and return.
7998 (linux_resume_one_lwp_throw): Don't call get_pc if
7999 thread->while_stepping isn't NULL. Don't call
8000 get_thread_regcache if proc->tdesc is NULL.
8001 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8002 (linux_target_ops): Install arch_setup.
8003 * server.c (start_inferior): Call the_target->arch_setup.
8004 * target.h (struct target_ops) <arch_setup>: New field.
8005 (target_arch_setup): New marco.
8006 * lynx-low.c (lynx_target_ops): Update.
8007 * nto-low.c (nto_target_ops): Update.
8008 * spu-low.c (spu_target_ops): Update.
8009 * win32-low.c (win32_target_ops): Update.
8011 2015-07-24 Yao Qi <yao.qi@linaro.org>
8013 * linux-low.c (linux_add_process): Don't set
8014 proc->priv->new_inferior.
8015 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8016 (linux_attach): Likewise.
8018 2015-07-24 Yao Qi <yao.qi@linaro.org>
8020 * server.c (start_inferior): Code refactor.
8022 2015-07-24 Yao Qi <yao.qi@linaro.org>
8024 * server.c (process_serial_event): Set general_thread.
8026 2015-07-21 Yao Qi <yao.qi@linaro.org>
8028 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8029 aarch64_linux_get_debug_reg_capacity.
8031 2015-07-17 Yao Qi <yao.qi@linaro.org>
8033 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8034 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8035 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8036 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8037 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8038 (AARCH64_HWP_ALIGNMENT): Likewise.
8039 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8040 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8041 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8042 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8043 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8044 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8045 (struct aarch64_debug_reg_state): Likewise.
8046 (struct arch_lwp_info): Likewise.
8047 (aarch64_align_watchpoint): Likewise.
8048 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8049 (aarch64_watchpoint_length): Likewise.
8050 (aarch64_point_encode_ctrl_reg): Likewise
8051 (aarch64_point_is_aligned): Likewise.
8052 (aarch64_align_watchpoint): Likewise.
8053 (aarch64_linux_set_debug_regs):
8054 (aarch64_dr_state_insert_one_point): Likewise.
8055 (aarch64_dr_state_remove_one_point): Likewise.
8056 (aarch64_handle_breakpoint): Likewise.
8057 (aarch64_handle_aligned_watchpoint): Likewise.
8058 (aarch64_handle_unaligned_watchpoint): Likewise.
8059 (aarch64_handle_watchpoint): Likewise.
8061 2015-07-17 Yao Qi <yao.qi@linaro.org>
8063 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8064 and don't aarch64_get_debug_reg_state. All callers update.
8065 (aarch64_handle_aligned_watchpoint): Likewise.
8066 (aarch64_handle_unaligned_watchpoint): Likewise.
8067 (aarch64_handle_watchpoint): Likewise.
8068 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8069 (aarch64_remove_point): Likewise.
8071 2015-07-17 Yao Qi <yao.qi@linaro.org>
8073 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8075 (aarch64_handle_unaligned_watchpoint): Likewise.
8077 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8079 Revert the previous 3 commits:
8080 Move gdb_regex* to common/
8081 Move linux_find_memory_regions_full & co.
8082 gdbserver build-id attribute generator
8084 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8085 Jan Kratochvil <jan.kratochvil@redhat.com>
8087 gdbserver build-id attribute generator.
8088 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8089 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8090 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8092 (get_dynamic): Use find_pdhr to traverse program headers.
8093 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8094 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8095 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8096 (get_hex_build_id): New.
8097 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8098 to reply XML document.
8100 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8101 Jan Kratochvil <jan.kratochvil@redhat.com>
8103 * target.c: Include target/target-utils.h and fcntl.h.
8104 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
8105 (target_fileio_read_stralloc): New functions.
8107 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8109 * Makefile.in (OBS): Add gdb_regex.o.
8111 * config.in: Rebuilt.
8112 * configure: Rebuilt.
8114 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8115 Jan Kratochvil <jan.kratochvil@redhat.com>
8117 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
8118 * Makefile.in (OBS): Add target-utils.o.
8119 (linux-maps.o, target-utils.o): New.
8120 * configure.srv (srv_linux_obj): Add linux-maps.o.
8122 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8124 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8126 (the_low_target): Install it.
8128 2015-07-14 Pedro Alves <palves@redhat.com>
8130 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8131 Instead, ignore ECHILD, and throw an error for other errnos.
8133 2015-07-10 Pedro Alves <palves@redhat.com>
8135 * event-loop.c (struct callback_event) <data>: Change type to
8136 gdb_client_data instance instead of gdb_client_data pointer.
8137 (append_callback_event): Adjust.
8139 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8141 * linux-aarch64-low.c: Add comments for each linux_target_ops
8142 method. Remove comments already covered in target_ops and
8143 linux_target_ops definitions.
8144 (the_low_target): Add comments for each unimplemented method.
8146 2015-07-09 Yao Qi <yao.qi@linaro.org>
8148 * linux-aarch64-low.c (aarch64_regmap): Remove.
8149 (aarch64_usrregs_info): Remove.
8150 (regs_info): Set field usrregs to NULL.
8152 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8154 * linux-low.c: Include "rsp-low.h"
8155 (linux_low_encode_pt_config, linux_low_encode_raw): New.
8156 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
8157 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
8158 (handle_btrace_enable_pt): New.
8159 (handle_btrace_general_set): Support "pt".
8160 (handle_btrace_conf_general_set): Support "pt:size".
8162 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8164 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8167 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8169 * linux-aarch64-low.c: Remove comment about endianness.
8170 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
8171 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
8174 2015-06-24 Gary Benson <gbenson@redhat.com>
8176 * linux-i386-ipa.c (stdint.h): Do not include.
8177 * lynx-i386-low.c (stdint.h): Likewise.
8178 * lynx-ppc-low.c (stdint.h): Likewise.
8179 * mem-break.c (stdint.h): Likewise.
8180 * thread-db.c (stdint.h): Likewise.
8181 * tracepoint.c (stdint.h): Likewise.
8182 * win32-low.c (stdint.h): Likewise.
8184 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8186 * server.c (write_qxfer_response): Update call to
8187 remote_escape_output.
8189 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8190 Jan Kratochvil <jan.kratochvil@redhat.com>
8192 Merge multiple hex conversions.
8193 * gdbreplay.c (tohex): Rename to 'fromhex'.
8194 (logchar): Use fromhex.
8196 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8198 * server.c (handle_qxfer_libraries): Set `version' attribute for
8201 2015-06-10 Gary Benson <gbenson@redhat.com>
8203 * target.h (struct target_ops) <multifs_open>: New field.
8204 <multifs_unlink>: Likewise.
8205 <multifs_readlink>: Likewise.
8206 * linux-low.c (nat/linux-namespaces.h): New include.
8207 (linux_target_ops): Initialize the_target->multifs_open,
8208 the_target->multifs_unlink and the_target->multifs_readlink.
8209 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
8210 * hostio.c (hostio_fs_pid): New static variable.
8211 (hostio_handle_new_gdb_connection): New function.
8212 (handle_setfs): Likewise.
8213 (handle_open): Use the_target->multifs_open as appropriate.
8214 (handle_unlink): Use the_target->multifs_unlink as appropriate.
8215 (handle_readlink): Use the_target->multifs_readlink as
8217 (handle_vFile): Handle vFile:setfs packets.
8218 * server.c (handle_query): Call hostio_handle_new_gdb_connection
8219 after target_handle_new_gdb_connection.
8221 2015-06-10 Gary Benson <gbenson@redhat.com>
8223 * configure.ac (AC_CHECK_FUNCS): Add setns.
8224 * config.in: Regenerate.
8225 * configure: Likewise.
8226 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
8227 (linux-namespaces.o): New rule.
8228 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
8230 2015-06-09 Gary Benson <gbenson@redhat.com>
8232 * hostio.c (handle_open): Process mode argument with
8233 fileio_to_host_mode.
8235 2015-06-01 Yao Qi <yao.qi@linaro.org>
8237 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8238 * linux-x86-low.c: Likewise.
8240 2015-05-28 Don Breazeal <donb@codesourcery.com>
8242 * linux-low.c (handle_extended_wait): Initialize
8243 thread_info.last_resume_kind for new fork children.
8245 2015-05-15 Pedro Alves <palves@redhat.com>
8247 * target.h (target_handle_new_gdb_connection): Rewrite using if
8248 wrapped in do/while.
8250 2015-05-14 Joel Brobecker <brobecker@adacore.com>
8252 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
8253 * configure, config.in: Regenerate.
8254 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
8257 2015-05-12 Don Breazeal <donb@codesourcery.com>
8259 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
8260 PTRACE_EVENT_VFORK_DONE.
8261 (linux_low_ptrace_options, extended_event_reported): Add vfork
8263 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
8264 and "vforkdone" for RSP 'T' Stop Reply Packet.
8265 * server.h (report_vfork_events): Declare
8268 2015-05-12 Don Breazeal <donb@codesourcery.com>
8270 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
8271 (the_low_target) <new_fork>: Initialize new member.
8272 * linux-arm-low.c (arm_new_fork): New function.
8273 (the_low_target) <new_fork>: Initialize new member.
8274 * linux-low.c (handle_extended_wait): Call new target function
8276 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
8277 * linux-mips-low.c (mips_add_watchpoint): New function
8278 extracted from mips_insert_point.
8279 (the_low_target) <new_fork>: Initialize new member.
8280 (mips_linux_new_fork): New function.
8281 (mips_insert_point): Call mips_add_watchpoint.
8282 * linux-x86-low.c (x86_linux_new_fork): New function.
8283 (the_low_target) <new_fork>: Initialize new member.
8285 2015-05-12 Don Breazeal <donb@codesourcery.com>
8287 * linux-low.c (handle_extended_wait): Implement return value,
8288 rename argument 'event_child' to 'event_lwp', handle
8289 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
8290 (linux_low_ptrace_options): New function.
8291 (linux_low_filter_event): Call linux_low_ptrace_options,
8292 use different argument fo linux_enable_event_reporting,
8293 use return value from handle_extended_wait.
8294 (extended_event_reported): New function.
8295 (linux_wait_1): Call extended_event_reported and set
8296 status to report fork events.
8297 (linux_write_memory): Add pid to debug message.
8298 (reset_lwp_ptrace_options_callback): New function.
8299 (linux_handle_new_gdb_connection): New function.
8300 (linux_target_ops): Initialize new structure member.
8301 * linux-low.h (struct lwp_info) <waitstatus>: New member.
8302 * lynx-low.c: Initialize new structure member.
8303 * remote-utils.c (prepare_resume_reply): Implement stop reason
8304 "fork" for "T" stop message.
8305 * server.c (handle_query): Call handle_new_gdb_connection.
8306 * server.h (report_fork_events): Declare global flag.
8307 * target.h (struct target_ops) <handle_new_gdb_connection>:
8309 (target_handle_new_gdb_connection): New macro.
8310 * win32-low.c: Initialize new structure member.
8312 2015-05-12 Don Breazeal <donb@codesourcery.com>
8314 * mem-break.c (APPEND_TO_LIST): Define macro.
8315 (clone_agent_expr): New function.
8316 (clone_one_breakpoint): New function.
8317 (clone_all_breakpoints): New function.
8318 * mem-break.h: Declare new functions.
8320 2015-05-12 Don Breazeal <donb@codesourcery.com>
8322 * linux-low.c (linux_supports_fork_events): New function.
8323 (linux_supports_vfork_events): New function.
8324 (linux_target_ops): Initialize new structure members.
8325 (initialize_low): Call linux_check_ptrace_features.
8326 * lynx-low.c (lynx_target_ops): Initialize new structure
8328 * server.c (report_fork_events, report_vfork_events):
8330 (handle_query): Add new features to qSupported packet and
8332 (captured_main): Initialize new global variables.
8333 * target.h (struct target_ops) <supports_fork_events>:
8335 <supports_vfork_events>: New member.
8336 (target_supports_fork_events): New macro.
8337 (target_supports_vfork_events): New macro.
8338 * win32-low.c (win32_target_ops): Initialize new structure
8341 2015-05-12 Gary Benson <gbenson@redhat.com>
8343 * server.c (handle_qxfer_exec_file): Use current process
8346 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8348 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8349 Remove HAVE_PTRACE_GETREGS conditionals.
8350 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8351 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8353 2015-05-08 Yao Qi <yao.qi@linaro.org>
8355 * linux-low.c (linux_supports_conditional_breakpoints): New
8357 (linux_target_ops): Install new target method.
8358 * lynx-low.c (lynx_target_ops): Install NULL hook for
8359 supports_conditional_breakpoints.
8360 * nto-low.c (nto_target_ops): Likewise.
8361 * spu-low.c (spu_target_ops): Likewise.
8362 * win32-low.c (win32_target_ops): Likewise.
8363 * server.c (handle_query): Check
8364 target_supports_conditional_breakpoints.
8365 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8367 (target_supports_conditional_breakpoints): New macro.
8369 2015-05-06 Pedro Alves <palves@redhat.com>
8372 * server.c (start_inferior): If the process exits, mourn it.
8374 2015-04-21 Gary Benson <gbenson@redhat.com>
8376 * hostio.c (fileio_open_flags_to_host): Factored out to
8377 fileio_to_host_openflags in common/fileio.c. Single use
8380 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8382 * linux-xtensa-low.c (xtensa_fill_gregset)
8383 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8386 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8388 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8389 (regs_info): Replace usrregs pointer with NULL.
8391 2015-04-17 Gary Benson <gbenson@redhat.com>
8393 * target.h (struct target_ops) <pid_to_exec_file>: New field.
8394 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
8395 * server.c (handle_qxfer_exec_file): New function.
8396 (qxfer_packets): Add exec-file entry.
8397 (handle_query): Report qXfer:exec-file:read as supported packet.
8399 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8401 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8403 2015-04-09 Gary Benson <gbenson@redhat.com>
8405 * hostio-errno.c (errno_to_fileio_error): Remove function.
8406 Update caller to use remote_fileio_to_fio_error.
8408 2015-04-09 Yao Qi <yao.qi@linaro.org>
8410 * linux-low.c (linux_insert_point): Call
8411 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
8412 (linux_remove_point): Call remove_memory_breakpoint if type is
8414 * linux-x86-low.c (x86_insert_point): Don't call
8415 insert_memory_breakpoint.
8416 (x86_remove_point): Don't call remove_memory_breakpoint.
8418 2015-04-01 Pedro Alves <palves@redhat.com>
8419 Cleber Rosa <crosa@redhat.com>
8421 * server.c (gdbserver_usage): Reorganize and extend the usage
8424 2015-03-24 Pedro Alves <palves@redhat.com>
8426 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
8427 output. Also dump TRAP_TRACE.
8428 (linux_low_filter_event): In debug output, distinguish a
8429 resume_stop SIGSTOP from a delayed SIGSTOP.
8431 2015-03-24 Gary Benson <gbenson@redhat.com>
8433 * linux-x86-low.c (x86_linux_new_thread): Moved to
8435 (x86_linux_prepare_to_resume): Likewise.
8437 2015-03-24 Gary Benson <gbenson@redhat.com>
8439 * Makefile.in (x86-linux-dregs.o): New rule.
8440 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8441 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8442 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8443 (x86_linux_dr_get): Likewise.
8444 (x86_linux_dr_set): Likewise.
8445 (update_debug_registers_callback): Likewise.
8446 (x86_linux_dr_set_addr): Likewise.
8447 (x86_linux_dr_get_addr): Likewise.
8448 (x86_linux_dr_set_control): Likewise.
8449 (x86_linux_dr_get_control): Likewise.
8450 (x86_linux_dr_get_status): Likewise.
8451 (x86_linux_update_debug_registers): Likewise.
8453 2015-03-24 Gary Benson <gbenson@redhat.com>
8455 * linux-x86-low.c (x86_linux_update_debug_registers):
8456 New function, factored out from...
8457 (x86_linux_prepare_to_resume): ...this.
8459 2015-03-24 Gary Benson <gbenson@redhat.com>
8461 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8462 (x86_linux_dr_set): Likewise.
8463 (update_debug_registers_callback): Likewise.
8464 (x86_linux_dr_set_addr): Likewise.
8465 (x86_linux_dr_get_addr): Likewise.
8466 (x86_linux_dr_set_control): Likewise.
8467 (x86_linux_dr_get_control): Likewise.
8468 (x86_linux_dr_get_status): Likewise.
8469 (x86_linux_prepare_to_resume): Likewise.
8471 2015-03-24 Gary Benson <gbenson@redhat.com>
8473 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8474 Use perror_with_name. Pass string through gettext.
8475 (x86_linux_dr_set): Likewise.
8477 2015-03-24 Gary Benson <gbenson@redhat.com>
8479 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8480 (x86_linux_dr_set_addr): ...this.
8481 (x86_dr_low_get_addr): Rename to...
8482 (x86_linux_dr_get_addr): ...this.
8483 (x86_dr_low_set_control): Rename to...
8484 (x86_linux_dr_set_control): ...this.
8485 (x86_dr_low_get_control): Rename to...
8486 (x86_linux_dr_get_control): ...this.
8487 (x86_dr_low_get_status): Rename to...
8488 (x86_linux_dr_get_status): ...this.
8489 (x86_dr_low): Update with new function names.
8491 2015-03-24 Gary Benson <gbenson@redhat.com>
8493 * Makefile.in (x86-linux.o): New rule.
8494 * configure.srv: Add x86-linux.o to relevant targets.
8495 * linux-low.c (lwp_set_arch_private_info): New function.
8496 (lwp_arch_private_info): Likewise.
8497 * linux-x86-low.c: Include nat/x86-linux.h.
8498 (arch_lwp_info): Removed structure.
8499 (update_debug_registers_callback):
8500 Use lwp_set_debug_registers_changed.
8501 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8502 and lwp_set_debug_registers_changed.
8503 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8505 2015-03-24 Gary Benson <gbenson@redhat.com>
8507 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
8508 * linux-arm-low.c (arm_new_thread): Likewise.
8509 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
8510 * linux-mips-low.c (mips_linux_new_thread): Likewise.
8511 * linux-x86-low.c (x86_linux_new_thread): Likewise.
8512 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
8514 2015-03-24 Gary Benson <gbenson@redhat.com>
8516 * linux-low.c (ptid_of_lwp): New function.
8517 (lwp_is_stopped): Likewise.
8518 (lwp_stop_reason): Likewise.
8519 * linux-x86-low.c (update_debug_registers_callback):
8521 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8524 2015-03-24 Gary Benson <gbenson@redhat.com>
8526 * linux-low.h (linux_stop_lwp): Remove declaration.
8528 2015-03-24 Gary Benson <gbenson@redhat.com>
8530 * linux-low.h: Include nat/linux-nat.h.
8531 * linux-low.c (iterate_over_lwps_args): New structure.
8532 (iterate_over_lwps_filter): New function.
8533 (iterate_over_lwps): Likewise.
8534 * linux-x86-low.c (update_debug_registers_callback):
8535 Update signature to what iterate_over_lwps expects.
8536 Remove PID check that iterate_over_lwps now performs.
8537 (x86_dr_low_set_addr): Use iterate_over_lwps.
8538 (x86_dr_low_set_control): Likewise.
8540 2015-03-24 Gary Benson <gbenson@redhat.com>
8542 * linux-x86-low.c (x86_debug_reg_state): New function.
8543 (x86_linux_prepare_to_resume): Use the above.
8545 2015-03-24 Gary Benson <gbenson@redhat.com>
8547 * linux-low.c (current_lwp_ptid): New function.
8548 * linux-x86-low.c: Include nat/linux-nat.h.
8549 (x86_dr_low_get_addr): Use current_lwp_ptid.
8550 (x86_dr_low_get_control): Likewise.
8551 (x86_dr_low_get_status): Likewise.
8553 2015-03-20 Pedro Alves <palves@redhat.com>
8555 * tracepoint.c (cmd_qtstatus): Make "str" const.
8557 2015-03-20 Pedro Alves <palves@redhat.com>
8559 * server.c (handle_general_set): Make "req_str" const.
8561 2015-03-19 Pedro Alves <palves@redhat.com>
8563 * linux-low.c (linux_resume_one_lwp): Rename to ...
8564 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8565 instead call perror_with_name.
8566 (check_ptrace_stopped_lwp_gone): New function.
8567 (linux_resume_one_lwp): Reimplement as wrapper around
8568 linux_resume_one_lwp_throw that swallows errors if the LWP is
8571 2015-03-19 Pedro Alves <palves@redhat.com>
8573 * linux-low.c (count_events_callback, select_event_lwp_callback):
8574 No longer check whether the thread has resume_stop as last resume
8577 2015-03-19 Pedro Alves <palves@redhat.com>
8579 * linux-low.c (count_events_callback, select_event_lwp_callback):
8580 Use the lwp's status_pending_p field, not the thread's.
8582 2015-03-19 Pedro Alves <palves@redhat.com>
8584 * linux-low.c (select_event_lwp_callback): Update comments to
8585 no longer mention SIGTRAP.
8587 2015-03-18 Gary Benson <gbenson@redhat.com>
8589 * server.c (handle_query): Do not report vFile:fstat as supported.
8591 2015-03-11 Gary Benson <gbenson@redhat.com>
8593 * hostio.c (sys/types.h): New include.
8594 (sys/stat.h): Likewise.
8595 (common-remote-fileio.h): Likewise.
8596 (handle_fstat): New function.
8597 (handle_vFile): Handle vFile:fstat packets.
8599 2015-03-11 Gary Benson <gbenson@redhat.com>
8601 * configure.ac (AC_CHECK_MEMBERS): Add checks for
8602 struct stat.st_blocks and struct stat.st_blksize.
8603 * configure: Regenerate.
8604 * config.in: Likewise.
8605 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8606 (OBS): Add common-remote-fileio.o.
8607 (common-remote-fileio.o): New rule.
8609 2015-03-09 Pedro Alves <palves@redhat.com>
8611 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
8612 'struct sockaddr' pointer in 'accept' call.
8614 2015-03-09 Pedro Alves <palves@redhat.com>
8617 2015-03-07 Pedro Alves <palves@redhat.com>
8618 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8619 or <winsock2.h> here. Instead include "gdb_socket.h".
8620 (remote_open): Use union gdb_sockaddr_u.
8621 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8622 or <winsock2.h> here. Instead include "gdb_socket.h".
8623 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8624 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8626 (init_named_socket, gdb_agent_helper_thread): Use union
8629 2015-03-07 Pedro Alves <palves@redhat.com>
8631 * configure.ac (build_warnings): Move
8632 -Wdeclaration-after-statement to the C-specific set.
8633 * configure: Regenerate.
8635 2015-03-07 Pedro Alves <palves@redhat.com>
8637 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
8638 or <winsock2.h> here. Instead include "gdb_socket.h".
8639 (remote_open): Use union gdb_sockaddr_u.
8640 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
8641 or <winsock2.h> here. Instead include "gdb_socket.h".
8642 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
8643 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
8645 (init_named_socket, gdb_agent_helper_thread): Use union
8648 2015-03-07 Pedro Alves <palves@redhat.com>
8650 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
8653 2015-03-06 Yao Qi <yao.qi@linaro.org>
8655 * linux-aarch64-low.c (aarch64_insert_point): Use
8656 show_debug_regs as a boolean.
8657 (aarch64_remove_point): Likewise.
8659 2015-03-05 Pedro Alves <palves@redhat.com>
8661 * lynx-low.c (lynx_target_ops): Install NULL hooks for
8662 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8663 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
8664 * nto-low.c (nto_target_ops): Likewise.
8665 * spu-low.c (spu_target_ops): Likewise.
8666 * win32-low.c (win32_target_ops): Likewise.
8668 2015-03-04 Pedro Alves <palves@redhat.com>
8670 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
8671 Decide whether a breakpoint triggered based on the SIGTRAP's
8673 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8674 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
8675 (linux_low_filter_event): Check for breakpoints before checking
8677 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
8679 (linux_stopped_by_sw_breakpoint)
8680 (linux_supports_stopped_by_sw_breakpoint)
8681 (linux_stopped_by_hw_breakpoint)
8682 (linux_supports_stopped_by_hw_breakpoint): New functions.
8683 (linux_target_ops): Install new target methods.
8685 2015-03-04 Pedro Alves <palves@redhat.com>
8687 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
8688 * server.c (swbreak_feature, hwbreak_feature): New globals.
8689 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
8690 (captured_main): Clear swbreak_feature and hwbreak_feature.
8691 * server.h (swbreak_feature, hwbreak_feature): Declare.
8692 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
8693 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
8694 supports_stopped_by_hw_breakpoint>: New fields.
8695 (target_supports_stopped_by_sw_breakpoint)
8696 (target_stopped_by_sw_breakpoint)
8697 (target_supports_stopped_by_hw_breakpoint)
8698 (target_stopped_by_hw_breakpoint): Declare.
8700 2015-03-04 Pedro Alves <palves@redhat.com>
8702 enum lwp_stop_reason -> enum target_stop_reason
8703 * linux-low.c (check_stopped_by_breakpoint): Adjust.
8704 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
8705 (linux_wait_1, stuck_in_jump_pad_callback)
8706 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
8707 (linux_stopped_by_watchpoint):
8708 * linux-low.h (enum lwp_stop_reason): Delete.
8709 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8710 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8712 2015-03-04 Yao Qi <yao.qi@linaro.org>
8714 * Makefile.in (SFILES): Add linux-aarch64-low.c.
8716 2015-03-03 Gary Benson <gbenson@redhat.com>
8718 * hostio.c (handle_vFile): Fix prefix lengths.
8720 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8722 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
8725 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8727 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
8728 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
8729 (clean): Add "rm -f" for above C files.
8730 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
8731 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
8732 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
8733 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
8734 * linux-s390-low.c (HWCAP_S390_VX): New macro.
8735 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
8736 (init_registers_s390x_vx_linux64)
8737 (init_registers_s390x_tevx_linux64)
8738 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8739 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
8741 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
8742 (s390_store_vxrs_high): New functions.
8743 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
8745 (s390_arch_setup): Add logic for selecting one of the new target
8746 descriptions. Activate the new vector regsets if applicable.
8747 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
8748 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
8749 and init_registers_s390x_tevx_linux64.
8751 2015-03-01 Pedro Alves <palves@redhat.com>
8753 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
8756 2015-02-27 Pedro Alves <palves@redhat.com>
8758 * linux-x86-low.c (u_debugreg_offset): New function.
8759 (x86_linux_dr_get, x86_linux_dr_set): Use it.
8761 2015-02-27 Pedro Alves <palves@redhat.com>
8763 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8764 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
8765 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8766 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8767 (ps_lsetfpregs, ps_getpid)
8768 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
8769 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
8770 (ps_lsetxregs, ps_plog): Declare.
8772 2015-02-27 Pedro Alves <palves@redhat.com>
8774 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
8775 IP_AGENT_EXPORT_FUNC.
8776 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
8777 IP_AGENT_EXPORT_FUNC.
8778 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
8779 (IP_AGENT_EXPORT): Delete.
8780 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8781 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8782 (gdb_trampoline_buffer_error, collecting, gdb_collect)
8783 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
8784 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
8785 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
8786 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
8787 (traceframe_read_count, traceframe_write_count)
8788 (traceframes_created, trace_state_variables, get_raw_reg)
8789 (get_trace_state_variable_value, set_trace_state_variable_value)
8790 (ust_loaded, helper_thread_id, cmd_buf): Use
8791 IPA_SYM_EXPORTED_NAME.
8792 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
8793 (tracepoints) Use IP_AGENT_EXPORT_VAR.
8794 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
8795 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8796 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
8797 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
8798 EXTERN_C_PUSH/EXTERN_C_POP.
8799 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
8800 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
8801 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8802 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
8803 (traceframe_write_count, traceframe_read_count)
8804 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
8805 (about_to_request_buffer_space, get_trace_state_variable_value)
8806 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
8807 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
8808 EXTERN_C_PUSH/EXTERN_C_POP.
8809 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
8810 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
8811 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
8812 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8813 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8814 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8815 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
8816 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
8818 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
8819 (IP_AGENT_EXPORT_VAR_DECL): Define.
8821 (gdb_agent_get_raw_reg): Declare.
8823 2015-02-27 Tom Tromey <tromey@redhat.com>
8824 Pedro Alves <palves@redhat.com>
8826 Rename symbols whose names are reserved C++ keywords throughout.
8828 2015-02-27 Pedro Alves <palves@redhat.com>
8830 * Makefile.in (COMPILER): New, get it from autoconf.
8831 (CXX): Get from autoconf instead.
8832 (COMPILE.pre): Use COMPILER.
8833 (CC-LD): Rename to ...
8834 (CC_LD): ... this. Use COMPILER.
8835 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
8836 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8837 * acinclude.m4: Include build-with-cxx.m4.
8838 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8839 Disable -Werror by default if building in C++ mode.
8840 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8841 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
8842 the C++ compiler. Save/restore CXXFLAGS too.
8843 * configure: Regenerate.
8845 2015-02-27 Pedro Alves <palves@redhat.com>
8847 * acinclude.m4: Include libiberty.m4.
8848 * configure.ac: Call libiberty_INIT.
8849 * config.in, configure: Regenerate.
8851 2015-02-26 Pedro Alves <palves@redhat.com>
8853 * linux-low.c (linux_wait_1): When incrementing the PC past a
8854 program breakpoint always use the_low_target.breakpoint_len as
8855 increment, rather than the maximum between that and
8856 the_low_target.decr_pc_after_break.
8858 2015-02-23 Pedro Alves <palves@redhat.com>
8860 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
8861 thread was doing a step-over; always adjust the PC if
8862 we stepped over a permanent breakpoint.
8863 (linux_wait_1): If we stepped over breakpoint that was on top of a
8864 permanent breakpoint, manually advance the PC past it.
8866 2015-02-23 Pedro Alves <palves@redhat.com>
8868 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
8870 (x86_fill_gregset, x86_store_gregset): Use it when handling
8873 2015-02-20 Pedro Alves <palves@redhat.com>
8875 * thread-db.c: Include "nat/linux-procfs.h".
8876 (thread_db_init): Skip listing new threads if the kernel supports
8877 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
8879 2015-02-20 Pedro Alves <palves@redhat.com>
8881 * linux-low.c (status_pending_p_callback): Use ptid_match.
8883 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8885 PR breakpoints/16812
8886 * linux-low.c (wstatus_maybe_breakpoint): Remove.
8887 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
8888 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
8890 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8892 PR breakpoints/15956
8893 * tracepoint.c (cmd_qtinit): Add check for current_thread.
8895 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8897 * linux-low.c (linux_low_btrace_conf): Print size.
8898 * server.c (handle_btrace_conf_general_set): New.
8899 (hanle_general_set): Call handle_btrace_conf_general_set.
8900 (handle_query): Report Qbtrace-conf:bts:size as supported.
8902 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8904 * linux-low.c (linux_low_enable_btrace): Update parameters.
8905 (linux_low_btrace_conf): New.
8906 (linux_target_ops)<to_btrace_conf>: Initialize.
8907 * server.c (current_btrace_conf): New.
8908 (handle_btrace_enable): Rename to ...
8909 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
8910 to target_enable_btrace. Update comment. Update users.
8911 (handle_qxfer_btrace_conf): New.
8912 (qxfer_packets): Add btrace-conf entry.
8913 (handle_query): Report qXfer:btrace-conf:read as supported packet.
8914 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
8915 (target_ops)<read_btrace_conf>: New.
8916 (target_enable_btrace): Update parameters.
8917 (target_read_btrace_conf): New.
8919 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8921 * server.c (handle_btrace_general_set): Remove call to
8922 target_supports_btrace.
8923 (supported_btrace_packets): New.
8924 (handle_query): Call supported_btrace_packets.
8925 * target.h: include btrace-common.h.
8926 (btrace_target_info): Removed.
8927 (supports_btrace, target_supports_btrace): Update parameters.
8929 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8931 * Makefile.in (SFILES): Add common/btrace-common.c.
8932 (OBS): Add common/btrace-common.o.
8933 (btrace-common.o): Add build rules.
8934 * linux-low: Include btrace-common.h.
8935 (linux_low_read_btrace): Use struct btrace_data. Call
8936 btrace_data_init and btrace_data_fini.
8938 2015-02-06 Pedro Alves <palves@redhat.com>
8940 * thread-db.c (find_new_threads_callback): Add debug output.
8942 2015-02-04 Pedro Alves <palves@redhat.com>
8944 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
8945 (resume_stopped_resumed_lwps): New function.
8946 (linux_wait_for_event_filtered): Use it.
8948 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8950 * Makefile.in (SFILES): Add linux-personality.c.
8951 (linux-personality.o): New rule.
8952 * configure.srv (srv_linux_obj): Add linux-personality.o to the
8953 list of objects to be built.
8954 * linux-low.c: Include nat/linux-personality.h.
8955 (linux_create_inferior): Remove code to disable address space
8956 randomization (moved to ../nat/linux-personality.c). Create
8957 cleanup to disable address space randomization.
8959 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8961 * Makefile.in (posix-strerror.o): New rule.
8962 (mingw-strerror.o): Likewise.
8963 * configure: Regenerated.
8964 * configure.ac: Source file ../common/common.host. Initialize new
8965 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
8967 2015-01-14 Yao Qi <yao@codesourcery.com>
8969 * Makefile.in (SFILES): Add nat/ppc-linux.c.
8970 (ppc-linux.o): New rule.
8971 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
8972 * configure.ac: AC_CHECK_FUNCS(getauxval).
8973 * config.in: Re-generated.
8974 * configure: Re-generated.
8975 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
8976 ppc64_64bit_inferior_p
8978 2015-01-14 Yao Qi <yao@codesourcery.com>
8980 * linux-ppc-low.c: Include "nat/ppc-linux.h".
8981 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
8982 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
8983 (PT_ORIG_R3, PT_TRAP): Likewise.
8984 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
8985 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
8986 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
8988 2015-01-10 Joel Brobecker <brobecker@adacore.com>
8990 * i387-fp.c (i387_cache_to_xsave): In look over
8991 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
8992 zmmh_low_space field by use of zmmh_high_space.
8994 2015-01-09 Pedro Alves <palves@redhat.com>
8996 * linux-low.c (step_over_bkpt): Move higher up in the file.
8997 (handle_extended_wait): Don't store the stop_pc here.
8998 (get_stop_pc): Adjust comments and rename to ...
8999 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9000 stopped for a software breakpoint or hardware breakpoint.
9001 (thread_still_has_status_pending_p): New function.
9002 (status_pending_p_callback): Use
9003 thread_still_has_status_pending_p. If the event is no longer
9004 interesting, resume the LWP.
9005 (handle_tracepoints): Add assert.
9006 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9007 (wstatus_maybe_breakpoint): New function.
9008 (cancel_breakpoint): Delete function.
9009 (check_stopped_by_watchpoint): New function, factored out from
9010 linux_low_filter_event.
9011 (lp_status_maybe_breakpoint): Delete function.
9012 (linux_low_filter_event): Remove filter_ptid argument.
9013 Leave thread group exits pending here. Store the LWP's stop PC.
9014 Always leave events pending.
9015 (linux_wait_for_event_filtered): Pull all events out of the
9016 kernel, and leave them all pending.
9017 (count_events_callback, select_event_lwp_callback): Consider all
9019 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9020 (select_event_lwp): Only give preference to the stepping LWP in
9021 all-stop mode. Adjust comments.
9022 (ignore_event): New function.
9023 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9024 references to cancel_breakpoints. Adjust to renames. Also give
9025 equal priority to all LWPs that have had events in non-stop mode.
9026 If reporting a software breakpoint event, unadjust the LWP's PC.
9027 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9028 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9030 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9031 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9032 (linux_stopped_by_watchpoint): Adjust.
9033 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9034 * linux-low.h (enum lwp_stop_reason): New.
9035 (struct lwp_info) <stop_pc>: Adjust comment.
9036 <stopped_by_watchpoint>: Delete field.
9037 <stop_reason>: New field.
9038 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9039 * mem-break.c (software_breakpoint_inserted_here)
9040 (hardware_breakpoint_inserted_here): New function.
9041 * mem-break.h (software_breakpoint_inserted_here)
9042 (hardware_breakpoint_inserted_here): Declare.
9043 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9044 (cancel_breakpoints): Delete.
9045 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9046 (upload_fast_traceframes): Remove references to
9049 2015-01-09 Pedro Alves <palves@redhat.com>
9051 * thread-db.c (find_new_threads_callback): Ignore thread if the
9052 kernel thread ID is -1.
9054 2015-01-09 Pedro Alves <palves@redhat.com>
9056 * linux-low.c (linux_attach_fail_reason_string): Move to
9057 nat/linux-ptrace.c, and rename.
9058 (linux_attach_lwp): Update comment.
9059 (attach_proc_task_lwp_callback): New function.
9060 (linux_attach): Adjust to rename and use
9061 linux_proc_attach_tgid_threads.
9062 (linux_attach_fail_reason_string): Delete declaration.
9064 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9066 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9067 * server.c (gdbserver_version): Likewise.
9069 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9071 * remote-utils.c: Include ctype.h.
9072 (input_interrupt): Explicitly handle the case when the char
9073 received is the NUL byte. Improve the printing of non-ASCII
9076 2014-12-16 Joel Brobecker <brobecker@adacore.com>
9078 * linux-low.c (linux_low_filter_event): Update call to
9079 linux_enable_event_reporting following the addition of
9080 a new parameter to that function.
9082 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
9085 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9086 (AARCH64_FPCR_REGNO): Likewise.
9087 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9088 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9089 (aarch64_store_fpregset): Likewise.
9091 2014-12-15 Joel Brobecker <brobecker@adacore.com>
9093 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9094 Remove FIXME comment about assumption about N.
9096 2014-12-13 Joel Brobecker <brobecker@adacore.com>
9098 * configure.ac: If large-file support is disabled in GDBserver,
9099 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
9100 * configure: Regenerate.
9102 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9104 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
9105 warning upon ENODATA from ptrace.
9106 * linux-s390-low.c (s390_store_tdb): New.
9107 (s390_regsets): Add regset for NT_S390_TDB.
9109 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9111 * linux-low.c (regsets_store_inferior_registers): Skip regsets
9112 without a fill_function.
9113 * linux-s390-low.c (s390_fill_last_break): Remove.
9114 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
9115 (s390_arch_setup): Use regset's size instead of fill_function for
9118 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9120 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
9121 the regset's store function when ptrace returned an error.
9122 * regcache.c (get_thread_regcache): Invalidate register cache
9123 before fetching inferior's registers.
9125 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9127 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9128 while-loop as for-loop.
9129 (regsets_store_inferior_registers): Likewise.
9131 2014-11-28 Yao Qi <yao@codesourcery.com>
9133 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9134 * config.in, configure: Re-generate.
9135 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9138 2014-11-21 Yao Qi <yao@codesourcery.com>
9140 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
9141 (AC_CHECK_HEADERS): Remove malloc.h.
9142 * configure: Re-generated.
9143 * config.in: Re-generated.
9144 * server.h: Don't include alloca.h and malloc.h.
9145 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
9146 Don't include malloc.h.
9148 2014-11-17 Joel Brobecker <brobecker@adacore.com>
9150 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9151 corresponding ERRNO check in same block.
9153 2014-11-12 Pedro Alves <palves@redhat.com>
9155 * server.c (cont_thread): Update comment.
9156 (start_inferior, attach_inferior): No longer clear cont_thread.
9157 (handle_v_cont): No longer set cont_thread.
9158 (captured_main): Clear cont_thread each time a GDB connects.
9160 2014-11-12 Pedro Alves <palves@redhat.com>
9162 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
9163 thread, and don't resume all threads if the Hc thread has exited.
9165 2014-11-12 Pedro Alves <palves@redhat.com>
9167 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9168 the process group instead of to a specific LWP.
9170 2014-10-15 Pedro Alves <palves@redhat.com>
9173 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9175 (arm_set_thread_context): Delete.
9176 (the_low_target): Adjust.
9177 * win32-i386-low.c (debug_registers_changed)
9178 (debug_registers_used): Delete.
9179 (update_debug_registers_callback): New function.
9180 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
9181 needing to update their debug registers.
9182 (win32_get_current_dr): New function.
9183 (x86_dr_low_get_addr, x86_dr_low_get_control)
9184 (x86_dr_low_get_status): Fetch the debug register from the thread
9186 (i386_initial_stuff): Adjust.
9187 (i386_get_thread_context): Remove current_event parameter. Don't
9188 clear debug_registers_changed nor copy DR values to
9190 (i386_set_thread_context): Delete.
9191 (i386_prepare_to_resume): New function.
9192 (i386_thread_added): Mark the thread as needing to update irs
9194 (the_low_target): Remove i386_set_thread_context and install
9195 i386_prepare_to_resume.
9196 * win32-low.c (win32_get_thread_context): Adjust.
9197 (win32_set_thread_context): Use SetThreadContext
9199 (win32_prepare_to_resume): New function.
9200 (win32_require_context): New function, factored out from ...
9201 (thread_rec): ... this.
9202 (continue_one_thread): Call win32_prepare_to_resume on each thread
9203 we're about to continue.
9204 (win32_resume): Call win32_prepare_to_resume on the event thread.
9205 * win32-low.h (struct win32_thread_info)
9206 <debug_registers_changed>: New field.
9207 (struct win32_target_ops): Change prototype of set_thread_context,
9208 delete set_thread_context and add prepare_to_resume.
9209 (win32_require_context): New declaration.
9211 2014-10-08 Gary Benson <gbenson@redhat.com>
9213 * server.h: Do not include common-exceptions.h.
9215 2014-10-08 Gary Benson <gbenson@redhat.com>
9217 * server.h: Do not include cleanups.h.
9219 2014-09-30 James Hogan <james.hogan@imgtec.com>
9221 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9224 2014-09-23 Yao Qi <yao@codesourcery.com>
9226 * linux-low.c (lp_status_maybe_breakpoint): New function.
9227 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
9228 (count_events_callback): Likewise.
9229 (select_event_lwp_callback): Likewise.
9230 (cancel_breakpoints_callback): Likewise.
9232 2014-09-19 Don Breazeal <donb@codesourcery.com>
9234 * linux-low.c (handle_extended_wait): Call
9235 linux_ptrace_get_extended_event.
9236 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
9237 linux_is_extended_waitstatus.
9239 2014-09-16 Joel Brobecker <brobecker@adacore.com>
9241 * Makefile.in (CPPFLAGS): Define.
9242 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9243 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9245 2014-09-16 Gary Benson <gbenson@redhat.com>
9247 * inferiors.h (current_inferior): Renamed as...
9248 (current_thread): New variable. All uses updated.
9249 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
9250 (maybe_move_out_of_jump_pad): Likewise.
9251 (cancel_breakpoint): Likewise.
9252 (linux_low_filter_event): Likewise.
9253 (wait_for_sigstop): Likewise.
9254 (linux_resume_one_lwp): Likewise.
9255 (need_step_over_p): Likewise.
9256 (start_step_over): Likewise.
9257 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
9258 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
9259 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
9260 and save_inferior as saved_thread.
9261 * regcache.c (get_thread_regcache): Renamed saved_inferior as
9263 (regcache_invalidate_thread): Likewise.
9264 * remote-utils.c (prepare_resume_reply): Likewise.
9265 * thread-db.c (thread_db_get_tls_address): Likewise.
9266 (disable_thread_event_reporting): Likewise.
9267 (remove_thread_event_breakpoints): Likewise.
9268 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
9270 * target.h (set_desired_inferior): Renamed as...
9271 (set_desired_thread): New declaration. All uses updated.
9272 * server.c (myresume): Updated comment to reference thread instead
9274 (handle_serial_event): Likewise.
9275 (handle_target_event): Likewise.
9277 2014-09-12 Tom Tromey <tromey@redhat.com>
9278 Gary Benson <gbenson@redhat.com>
9280 * regcache.h: Include common-regcache.h.
9281 (regcache_read_pc): Don't declare.
9282 * regcache.c (get_thread_regcache_for_ptid): New function.
9284 2014-09-11 Tom Tromey <tromey@redhat.com>
9285 Gary Benson <gbenson@redhat.com>
9287 * symbol.c: New file.
9288 * Makefile.in (SFILES): Add symbol.c.
9289 (OBS): Add symbol.o.
9291 2014-09-11 Gary Benson <gbenson@redhat.com>
9293 * target.c (target_stop_ptid, target_continue_ptid): New
9296 2014-09-11 Tom Tromey <tromey@redhat.com>
9297 Gary Benson <gbenson@redhat.com>
9299 * target.h: Include target/target.h.
9300 * target.c (target_read_memory, target_read_uint32)
9301 (target_write_memory): New functions.
9303 2014-09-11 Gary Benson <gbenson@redhat.com>
9305 * server.h (debug_hw_points): Don't declare.
9306 * server.c (debug_hw_points): Don't define. Replace all uses
9307 with show_debug_regs.
9308 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
9309 all uses with show_debug_regs.
9311 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9313 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9314 endianness into account.
9315 (ppc_supply_ptrace_register): Likewise.
9317 2014-09-03 James Hogan <james.hogan@imgtec.com>
9319 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9320 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9322 2014-09-03 Gary Benson <gbenson@redhat.com>
9324 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9325 ALL_DEBUG_ADDRESS_REGISTERS.
9327 2014-09-02 Gary Benson <gbenson@redhat.com>
9329 * i386-low.h: Renamed as...
9330 * x86-low.h: New file. All type, function and variable name
9331 prefixes changed from "i386_" to "x86_". All references updated.
9332 * i386-low.c: Renamed as...
9333 * x86-low.c: New file. All type, function and variable name
9334 prefixes changed from "i386_" to "x86_". All references updated.
9336 2014-09-02 Gary Benson <gbenson@redhat.com>
9338 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9339 (x86_linux_new_thread): Likewise.
9341 2014-08-29 Gary Benson <gbenson@redhat.com>
9343 * server.h (setjmp.h): Do not include.
9344 (toplevel): Do not declare.
9345 (common-exceptions.h): Include.
9346 (cleanups.h): Likewise.
9347 * server.c (toplevel): Do not define.
9348 (exit_code): New static global.
9349 (detach_or_kill_for_exit_cleanup): New function.
9350 (main): New function. Original main renamed to...
9351 (captured_main): New function.
9352 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9354 2014-08-29 Gary Benson <gbenson@redhat.com>
9356 * Makefile.in (SFILES): Add common/common-exceptions.c.
9357 (OBS): Add common-exceptions.o.
9358 (common-exceptions.o): New rule.
9359 * utils.c (prepare_to_throw_exception): New function.
9361 2014-08-29 Gary Benson <gbenson@redhat.com>
9363 * config.in: Regenerate.
9364 * configure: Likewise.
9366 2014-08-29 Gary Benson <gbenson@redhat.com>
9368 * Makefile.in (SFILES): Add common/cleanups.c.
9370 (cleanups.o): New rule.
9372 2014-08-29 Gary Benson <gbenson@redhat.com>
9374 * utils.c (internal_vwarning): New function.
9376 2014-08-28 Gary Benson <gbenson@redhat.com>
9378 * utils.h (fatal): Remove declaration.
9379 * utils.c (fatal): Remove function.
9381 2014-08-28 Gary Benson <gbenson@redhat.com>
9383 * tracepoint.c (gdb_agent_init): Replace fatal with
9385 (initialize_tracepoint): Likewise.
9387 2014-08-28 Gary Benson <gbenson@redhat.com>
9389 * remote-utils.c (remote_prepare): Replace fatal with error.
9391 2014-08-28 Gary Benson <gbenson@redhat.com>
9393 * linux-low.c (linux_async): Replace fatal with warning.
9395 (linux_start_non_stop): Return -1 if linux_async failed.
9397 2014-08-28 Gary Benson <gbenson@redhat.com>
9399 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9401 (i386_dr_low_get_addr): Remove vague comment.
9402 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9405 2014-08-28 Gary Benson <gbenson@redhat.com>
9407 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9408 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9410 (linux_resume_one_lwp): Likewise.
9411 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9413 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
9414 with internal_error.
9415 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
9416 (init_register_cache): Replace fatal with gdb_assert_not_reached.
9417 (find_register_by_name): Replace fatal with internal_error.
9418 (find_regno): Likewise.
9419 * tdesc.c (init_target_desc): Replace check with gdb_assert.
9420 * thread-db.c (thread_db_create_event): Likewise.
9421 (thread_db_load_search): Likewise.
9422 (try_thread_db_load_1): Likewise.
9423 * tracepoint.c (get_jump_space_head): Replace fatal with
9425 (claim_trampoline_space): Likewise.
9426 (have_fast_tracepoint_trampoline_buffer): Likewise.
9427 (cmd_qtstart): Likewise.
9428 (stop_tracing): Likewise.
9429 (fast_tracepoint_collecting): Likewise.
9430 (target_malloc): Likewise.
9431 (download_tracepoint): Likewise.
9432 (download_trace_state_variables): Replace check with gdb_assert.
9433 (upload_fast_traceframes): Replace fatal with internal_error.
9435 2014-08-19 Tom Tromey <tromey@redhat.com>
9436 Gary Benson <gbenson@redhat.com>
9438 * Makefile.in (SFILES): Add common/common-debug.c.
9439 (OBS): Add common-debug.o.
9440 (common-debug.o): New rule.
9441 * debug.h (debug_printf): Don't declare.
9442 * debug.c (debug_printf): Renamed and rewritten as...
9443 (debug_vprintf): New function.
9445 2014-08-19 Gary Benson <gbenson@redhat.com>
9447 * utils.h: Do not include print-utils.h.
9449 2014-08-19 Tom Tromey <tromey@redhat.com>
9450 Gary Benson <gbenson@redhat.com>
9452 * server.h: Add static assertion.
9453 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9455 2014-08-19 Tom Tromey <tromey@redhat.com>
9456 Gary Benson <gbenson@redhat.com>
9458 * Makefile.in (SFILES): Add common/errors.c.
9459 (OBS): Add errors.o.
9460 (IPA_OBS): Add errors-ipa.o.
9461 (errors.o): New rule.
9462 (errors-ipa.o): Likewise.
9463 * utils.h (perror_with_name, error, warning): Don't declare.
9464 * utils.c (warning): Renamed and rewritten as...
9465 (vwarning): New function.
9466 (error): Renamed and rewritten as...
9467 (verror): New function.
9468 (internal_error): Renamed and rewritten as...
9469 (internal_verror): New function.
9471 2014-08-07 Gary Benson <gbenson@redhat.com>
9473 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9474 * configure: Regenerate.
9475 * config.in: Likewise.
9476 * server.h: Do not include errno.h.
9477 * event-loop.c: Likewise.
9478 * hostio-errno.c: Likewise.
9479 * linux-low.c: Likewise.
9480 * remote-utils.c: Likewise.
9481 * spu-low.c: Likewise.
9482 * utils.c: Likewise.
9483 * gdbreplay.c: Unconditionally include errno.h.
9485 2014-08-07 Gary Benson <gbenson@redhat.com>
9487 * server.h: Do not include string.h.
9488 * event-loop.c: Likewise.
9489 * linux-low.c: Likewise.
9490 * regcache.c: Likewise.
9491 * remote-utils.c: Likewise.
9492 * spu-low.c: Likewise.
9493 * utils.c: Likewise.
9495 2014-08-07 Gary Benson <gbenson@redhat.com>
9497 * server.h: Do not include gdb_assert.h.
9499 2014-08-07 Gary Benson <gbenson@redhat.com>
9501 * server.h: Do not include common-utils.h.
9503 2014-08-07 Gary Benson <gbenson@redhat.com>
9505 * server.h: Do not include ptid.h.
9506 * notif.h: Likewise.
9508 2014-08-07 Gary Benson <gbenson@redhat.com>
9510 * server.h: Do not include gdb_locale.h.
9512 2014-08-07 Gary Benson <gbenson@redhat.com>
9514 * server.h: Do not include gdb/signals.h.
9515 * win32-low.c: Likewise.
9517 2014-08-07 Gary Benson <gbenson@redhat.com>
9519 * server.h: Do not include pathmax.h.
9521 2014-08-07 Gary Benson <gbenson@redhat.com>
9523 * server.h: Do not include libiberty.h.
9524 * linux-bfin-low.c: Likewise.
9526 2014-08-07 Gary Benson <gbenson@redhat.com>
9528 * server.h: Do not include ansidecl.h.
9530 2014-08-07 Gary Benson <gbenson@redhat.com>
9532 * linux-x86-low.c: Do not include stddef.h.
9533 * lynx-ppc-low.c: Likewise.
9534 * tracepoint.c: Likewise.
9536 2014-08-07 Gary Benson <gbenson@redhat.com>
9538 * server.h: Do not include stdarg.h.
9539 * nto-low.c: Likewise.
9541 2014-08-07 Gary Benson <gbenson@redhat.com>
9543 * server.h: Do not include stdlib.h.
9544 * inferiors.c: Likewise.
9545 * linux-low.c: Likewise.
9546 * regcache.c: Likewise.
9547 * spu-low.c: Likewise.
9548 * tracepoint.c: Likewise.
9549 * utils.c: Likewise.
9551 2014-08-07 Gary Benson <gbenson@redhat.com>
9553 * server.h: Do not include stdio.h.
9554 * linux-low.c: Likewise.
9555 * remote-utils.c: Likewise.
9556 * spu-low.c: Likewise.
9557 * utils.c: Likewise.
9558 * wincecompat.c: Likewise.
9560 2014-08-06 Gary Benson <gbenson@redhat.com>
9562 * regcache.c (init_register_cache): Move conditionals inside if.
9564 2014-08-06 Gary Benson <gbenson@redhat.com>
9566 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
9568 2014-07-31 Gary Benson <gbenson@redhat.com>
9570 * ax.h: Do not include server.h.
9571 * gdbthread.h: Likewise.
9572 * lynx-low.h: Likewise.
9573 * notif.h: Likewise.
9575 2014-07-30 Gary Benson <gbenson@redhat.com>
9577 * server.h: Include common-defs.h.
9578 Do not include config.h or build-gnulib-gdbserver/config.h.
9580 2014-07-30 Gary Benson <gbenson@redhat.com>
9582 * hostio-errno.c: Move server.h to top of includes list.
9583 * inferiors.c: Likewise.
9584 * linux-x86-low.c: Likewise.
9585 * notif.c: Include server.h.
9587 2014-07-24 Tom Tromey <tromey@redhat.com>
9588 Gary Benson <gbenson@redhat.com>
9590 * server.h (CORE_ADDR): Now unsigned.
9592 2014-07-16 Pedro Alves <palves@redhat.com>
9594 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
9596 2014-07-15 Pedro Alves <palves@redhat.com>
9598 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
9601 2014-07-11 Pedro Alves <palves@redhat.com>
9603 * linux-low.c (kill_wait_lwp): New function, based on
9604 kill_one_lwp_callback, but use my_waitpid directly.
9605 (kill_one_lwp_callback, linux_kill): Use it.
9607 2014-06-23 Pedro Alves <palves@redhat.com>
9609 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
9610 before setting DR0..DR3.
9612 2014-06-20 Gary Benson <gbenson@redhat.com>
9614 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
9615 * configure: Regenerated.
9616 * config.in: Likewise.
9618 2014-06-20 Gary Benson <gbenson@redhat.com>
9620 * Makefile.in (SFILES): Update locations for files moved
9622 (object file files): Reordered.
9624 2014-06-20 Gary Benson <gbenson@redhat.com>
9626 * i386-low.h (i386_dr_low_can_set_addr): Removed.
9627 (i386_dr_low_set_addr): Likewise.
9628 (i386_dr_low_get_addr): Likewise.
9629 (i386_dr_low_can_set_control): Likewise.
9630 (i386_dr_low_set_control): Likewise.
9631 (i386_dr_low_get_control): Likewise.
9632 (i386_dr_low_get_status): Likewise.
9633 (i386_get_debug_register_length): Likewise.
9634 * linux-x86-low.c (i386_dr_low_set_addr):
9635 Changed signature. Made static.
9636 (i386_dr_low_get_addr): Likewise.
9637 (i386_dr_low_set_control): Likewise.
9638 (i386_dr_low_get_control): Likewise.
9639 (i386_dr_low_get_status): Likewise.
9640 (i386_dr_low): New global variable.
9641 * win32-i386-low.c (i386_dr_low_set_addr):
9642 Changed signature. Made static.
9643 (i386_dr_low_get_addr): Likewise.
9644 (i386_dr_low_set_control): Likewise.
9645 (i386_dr_low_get_control): Likewise.
9646 (i386_dr_low_get_status): Likewise.
9647 (i386_dr_low): New global variable.
9649 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
9651 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
9652 * Makefile.in (AR, AR_FLAGS): Define.
9653 * configure: Regenerate.
9655 2014-06-19 Gary Benson <gbenson@redhat.com>
9657 * Makefile.in (i386-dregs.o): New rule.
9658 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
9659 * i386-low.c (target.h): Remove include.
9660 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
9661 (DR_CONTROL_SHIFT): Likewise.
9662 (DR_CONTROL_SIZE): Likewise.
9663 (DR_RW_EXECUTE): Likewise.
9664 (DR_RW_WRITE): Likewise.
9665 (DR_RW_READ): Likewise.
9666 (DR_RW_IORW): Likewise.
9667 (DR_LEN_1): Likewise.
9668 (DR_LEN_2): Likewise.
9669 (DR_LEN_4): Likewise.
9670 (DR_LEN_8): Likewise.
9671 (DR_LOCAL_ENABLE_SHIFT): Likewise.
9672 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
9673 (DR_ENABLE_SIZE): Likewise.
9674 (DR_LOCAL_SLOWDOWN): Likewise.
9675 (DR_GLOBAL_SLOWDOWN): Likewise.
9676 (DR_CONTROL_RESERVED): Likewise.
9677 (I386_DR_CONTROL_MASK): Likewise.
9678 (I386_DR_VACANT): Likewise.
9679 (I386_DR_LOCAL_ENABLE): Likewise.
9680 (I386_DR_GLOBAL_ENABLE): Likewise.
9681 (I386_DR_DISABLE): Likewise.
9682 (I386_DR_SET_RW_LEN): Likewise.
9683 (I386_DR_GET_RW_LEN): Likewise.
9684 (I386_DR_WATCH_HIT): Likewise.
9685 (i386_wp_op_t): Likewise.
9686 (i386_show_dr): Likewise.
9687 (i386_length_and_rw_bits): Likewise.
9688 (i386_insert_aligned_watchpoint): Likewise.
9689 (i386_remove_aligned_watchpoint): Likewise.
9690 (i386_handle_nonaligned_watchpoint): Likewise.
9691 i386_update_inferior_debug_regs(): Likewise.
9692 (i386_dr_insert_watchpoint): Likewise.
9693 (i386_dr_remove_watchpoint): Likewise.
9694 (i386_dr_region_ok_for_watchpoint): Likewise.
9695 (i386_dr_stopped_data_address): Likewise.
9696 (i386_dr_stopped_by_watchpoint): Likewise.
9698 2014-06-19 Gary Benson <gbenson@redhat.com>
9700 * i386-low.c (i386_dr_show): Renamed to
9701 i386_show_dr and made static. All uses updated.
9702 (i386_dr_length_and_rw_bits): Renamed to
9703 i386_length_and_rw_bits and made static.
9705 (i386_dr_insert_aligned_watchpoint): Renamed to
9706 i386_insert_aligned_watchpoint and made static.
9708 (i386_dr_remove_aligned_watchpoint): Renamed to
9709 i386_remove_aligned_watchpoint and made static.
9711 (i386_dr_update_inferior_debug_regs): Renamed to
9712 i386_update_inferior_debug_regs and made static.
9715 2014-06-18 Gary Benson <gbenson@redhat.com>
9717 * i386-low.h (i386_dr_low_can_set_addr): New macro.
9718 (i386_dr_low_can_set_control): Likewise.
9719 (i386_get_debug_register_length): Likewise.
9720 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
9721 (i386_dr_low_can_set_control): Likewise.
9722 (i386_get_debug_register_length): Likewise.
9724 2014-06-17 Gary Benson <gbenson@redhat.com>
9726 * i386-low.h (i386-dregs.h): New include.
9727 (DR_FIRSTADDR): Now in i386-dregs.h.
9728 (DR_LASTADDR): Likewise.
9729 (DR_NADDR): Likewise.
9730 (DR_STATUS): Likewise.
9731 (DR_CONTROL): Likewise.
9732 (i386_debug_reg_state): Likewise.
9733 (i386_dr_insert_watchpoint): Likewise.
9734 (i386_dr_remove_watchpoint): Likewise.
9735 (i386_dr_region_ok_for_watchpoint): Likewise.
9736 (i386_dr_stopped_data_address): Likewise.
9737 (i386_dr_stopped_by_watchpoint): Likewise.
9738 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
9740 2014-06-18 Gary Benson <gbenson@redhat.com>
9742 * i386-low.h (i386_low_insert_watchpoint): Renamed to
9743 i386_dr_insert_watchpoint.
9744 (i386_low_remove_watchpoint): Renamed to
9745 i386_dr_remove_watchpoint.
9746 (i386_low_region_ok_for_watchpoint): Renamed to
9747 i386_dr_region_ok_for_watchpoint.
9748 (i386_low_stopped_data_address): Renamed to
9749 i386_dr_stopped_data_address.
9750 (i386_low_stopped_by_watchpoint): Renamed to
9751 i386_dr_stopped_by_watchpoint.
9752 * i386-low.c (i386_show_dr): Renamed to
9753 i386_dr_show and made nonstatic. All uses updated.
9754 (i386_length_and_rw_bits): Renamed to
9755 i386_dr_length_and_rw_bits and made nonstatic.
9757 (i386_insert_aligned_watchpoint): Renamed to
9758 i386_dr_insert_aligned_watchpoint and made nonstatic.
9760 (i386_remove_aligned_watchpoint): Renamed to
9761 i386_dr_remove_aligned_watchpoint and made nonstatic.
9763 (i386_update_inferior_debug_regs): Renamed to
9764 i386_dr_update_inferior_debug_regs and made nonstatic.
9766 (i386_low_insert_watchpoint): Renamed to
9767 i386_dr_insert_watchpoint. All uses updated.
9768 (i386_low_remove_watchpoint): Renamed to
9769 i386_dr_remove_watchpoint. All uses updated.
9770 (i386_low_region_ok_for_watchpoint): Renamed to
9771 i386_dr_region_ok_for_watchpoint. All uses updated.
9772 (i386_low_stopped_data_address): Renamed to
9773 i386_dr_stopped_data_address. All uses updated.
9774 (i386_low_stopped_by_watchpoint): Renamed to
9775 i386_dr_stopped_by_watchpoint. All uses updated.
9777 2014-06-18 Gary Benson <gbenson@redhat.com>
9779 * i386-low.c (i386_dr_low_can_set_addr): New macro.
9780 (i386_dr_low_can_set_control): Likewise.
9781 (i386_insert_aligned_watchpoint): New check.
9783 2014-06-18 Gary Benson <gbenson@redhat.com>
9785 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
9788 2014-06-18 Gary Benson <gbenson@redhat.com>
9790 * i386-low.c (i386_length_and_rw_bits): Use internal_error
9791 instead of fatal and error.
9792 (i386_handle_nonaligned_watchpoint): Likewise.
9794 2014-06-18 Gary Benson <gbenson@redhat.com>
9796 * i386-low.c (i386_get_debug_register_length): New macro.
9797 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
9798 (i386_show_dr): Use debug_printf instead of fprintf. Use
9799 phex to format values.
9801 2014-06-18 Gary Benson <gbenson@redhat.com>
9803 * i386-low.h: Comment changes.
9804 * i386-low.c: Likewise.
9806 2014-06-18 Gary Benson <gbenson@redhat.com>
9808 * i386-low.c: Whitespace changes.
9810 2014-06-12 Tom Tromey <tromey@redhat.com>
9812 * utils.c (freeargv): Remove.
9814 2014-06-12 Tom Tromey <tromey@redhat.com>
9816 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
9817 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
9818 (parse_debug_format_options): Likewise.
9819 (gdbserver_usage): Likewise.
9820 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
9821 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
9822 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
9824 ($(LIBGNU)): Depend on libiberty.
9825 (all-lib): Recurse into all subdirs.
9826 (install-only): Invoke "install" target in subdirs.
9827 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
9829 * configure: Rebuild.
9830 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
9831 for vasprintf, vsnprintf, or gettimeofday.
9832 * configure.srv: Don't add safe-ctype.o or lbasename.o to
9835 2014-06-05 Joel Brobecker <brobecker@adacore.com>
9837 * development.sh: Delete.
9838 * Makefile.in (config.status): Adjust dependency on development.sh.
9839 * configure.ac: Adjust development.sh source call.
9840 * configure: Regenerate.
9842 2014-06-02 Pedro Alves <palves@redhat.com>
9844 * ax.c (gdb_free_agent_expr): New function.
9845 * ax.h (gdb_free_agent_expr): New declaration.
9846 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
9848 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
9850 (clear_breakpoint_conditions_and_commands): New function.
9851 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
9852 (clear_breakpoint_conditions_and_commands): New declaration.
9854 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9856 * linux-aarch64-low.c (asm/ptrace.h): Include.
9858 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9860 Fix TLS access for -static -pthread.
9861 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
9862 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
9863 (thread_db_load_search, try_thread_db_load_1): Initialize it.
9865 2014-05-20 Pedro Alves <palves@redhat.com>
9867 * linux-aarch64-low.c (aarch64_insert_point)
9868 (aarch64_remove_point): No longer check whether the type is
9869 supported here. Adjust to new interface.
9870 (the_low_target): Install aarch64_supports_z_point_type as
9871 supports_z_point_type method.
9872 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
9873 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
9874 instead of a Z packet char. Adjust.
9875 (arm_supports_z_point_type): New function.
9876 (arm_insert_point, arm_remove_point): Adjust to new interface.
9877 (the_low_target): Install arm_supports_z_point_type.
9878 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
9879 (cris_insert_point, cris_remove_point): Adjust to new interface.
9880 Don't check whether the type is supported here.
9881 (the_low_target): Install cris_supports_z_point_type.
9882 * linux-low.c (linux_supports_z_point_type): New function.
9883 (linux_insert_point, linux_remove_point): Adjust to new interface.
9884 * linux-low.h (struct linux_target_ops) <insert_point,
9885 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
9886 raw_breakpoint pointer parameter.
9887 <supports_z_point_type>: New method.
9888 * linux-mips-low.c (mips_supports_z_point_type): New function.
9889 (mips_insert_point, mips_remove_point): Adjust to new interface.
9890 Use mips_supports_z_point_type.
9891 (the_low_target): Install mips_supports_z_point_type.
9892 * linux-ppc-low.c (the_low_target): Install NULL as
9893 supports_z_point_type method.
9894 * linux-s390-low.c (the_low_target): Install NULL as
9895 supports_z_point_type method.
9896 * linux-sparc-low.c (the_low_target): Install NULL as
9897 supports_z_point_type method.
9898 * linux-x86-low.c (x86_supports_z_point_type): New function.
9899 (x86_insert_point): Adjust to new insert_point interface. Use
9900 insert_memory_breakpoint. Adjust to new
9901 i386_low_insert_watchpoint interface.
9902 (x86_remove_point): Adjust to remove_point interface. Use
9903 remove_memory_breakpoint. Adjust to new
9904 i386_low_remove_watchpoint interface.
9905 (the_low_target): Install x86_supports_z_point_type.
9906 * lynx-low.c (lynx_target_ops): Install NULL as
9907 supports_z_point_type callback.
9908 * nto-low.c (nto_supports_z_point_type): New.
9909 (nto_insert_point, nto_remove_point): Adjust to new interface.
9910 (nto_target_ops): Install nto_supports_z_point_type.
9911 * mem-break.c: Adjust intro comment.
9912 (struct raw_breakpoint) <raw_type, size>: New fields.
9913 <inserted>: Update comment.
9914 <shlib_disabled>: Delete field.
9915 (enum bkpt_type) <gdb_breakpoint>: Delete value.
9916 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
9917 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
9918 (raw_bkpt_type_to_target_hw_bp_type): New function.
9919 (find_enabled_raw_code_breakpoint_at): New function.
9920 (find_raw_breakpoint_at): New type and size parameters. Use them.
9921 (insert_memory_breakpoint): New function, based off
9922 set_raw_breakpoint_at.
9923 (remove_memory_breakpoint): New function.
9924 (set_raw_breakpoint_at): Reimplement.
9925 (set_breakpoint): New, based on set_breakpoint_at.
9926 (set_breakpoint_at): Reimplement.
9927 (delete_raw_breakpoint): Go through the_target->remove_point
9928 instead of assuming memory breakpoints.
9929 (find_gdb_breakpoint_at): Delete.
9930 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
9931 (find_gdb_breakpoint): New function.
9932 (set_gdb_breakpoint_at): Delete.
9933 (z_type_supported): New function.
9934 (set_gdb_breakpoint_1): New function, loosely based off
9935 set_gdb_breakpoint_at.
9936 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
9937 (delete_gdb_breakpoint_at): Delete.
9938 (delete_gdb_breakpoint_1): New function, loosely based off
9939 delete_gdb_breakpoint_at.
9940 (delete_gdb_breakpoint): New function.
9941 (clear_gdb_breakpoint_conditions): Rename to ...
9942 (clear_breakpoint_conditions): ... this. Don't handle a NULL
9944 (add_condition_to_breakpoint): Make static.
9945 (add_breakpoint_condition): Take a struct breakpoint pointer
9946 instead of an address. Adjust.
9947 (gdb_condition_true_at_breakpoint): Rename to ...
9948 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
9950 (gdb_condition_true_at_breakpoint): Reimplement.
9951 (add_breakpoint_commands): Take a struct breakpoint pointer
9952 instead of an address. Adjust.
9953 (gdb_no_commands_at_breakpoint): Rename to ...
9954 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
9955 parameter. Return true if no breakpoint was found. Change debug
9957 (gdb_no_commands_at_breakpoint): Reimplement.
9958 (run_breakpoint_commands): Rename to ...
9959 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
9960 and change return type to boolean.
9961 (run_breakpoint_commands): New function.
9962 (gdb_breakpoint_here): Also check for Z1 breakpoints.
9963 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
9964 breakpoint. Go through the_target->remove_point instead of
9965 assuming memory breakpoint.
9966 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
9967 software and hardware breakpoints.
9968 (reinsert_raw_breakpoint): Go through the_target->insert_point
9969 instead of assuming memory breakpoint.
9970 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
9971 software and hardware breakpoints.
9972 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
9973 Check both software and hardware breakpoints.
9974 (validate_inserted_breakpoint): Assert the breakpoint is a
9975 software breakpoint. Set the inserted flag to -1 instead of
9976 setting shlib_disabled.
9977 (delete_disabled_breakpoints): Adjust.
9978 (validate_breakpoints): Only validate software breakpoints.
9979 Adjust to inserted flag change.
9980 (check_mem_read, check_mem_write): Skip breakpoint types other
9981 than software breakpoints. Adjust to inserted flag change.
9982 * mem-break.h (enum raw_bkpt_type): New enum.
9983 (raw_breakpoint, struct process_info): Forward declare.
9984 (Z_packet_to_target_hw_bp_type): Delete declaration.
9985 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
9986 (set_gdb_breakpoint, delete_gdb_breakpoint)
9987 (clear_breakpoint_conditions): New declarations.
9988 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
9989 (breakpoint_inserted_here): Update comment.
9990 (add_breakpoint_condition, add_breakpoint_commands): Replace
9991 address parameter with a breakpoint pointer parameter.
9992 (gdb_breakpoint_here): Update comment.
9993 (delete_gdb_breakpoint_at): Delete.
9994 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
9995 * server.c (process_point_options): Take a struct breakpoint
9996 pointer instead of an address. Adjust.
9997 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
9998 delete_gdb_breakpoint.
9999 * spu-low.c (spu_target_ops): Install NULL as
10000 supports_z_point_type method.
10001 * target.h: Include mem-break.h.
10002 (struct target_ops) <prepare_to_access_memory>: Update comment.
10003 <supports_z_point_type>: New field.
10004 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10005 instead of a char. Also take a raw breakpoint pointer.
10006 * win32-arm-low.c (the_low_target): Install NULL as
10007 supports_z_point_type.
10008 * win32-i386-low.c (i386_supports_z_point_type): New function.
10009 (i386_insert_point, i386_remove_point): Adjust to new interface.
10010 (the_low_target): Install i386_supports_z_point_type.
10011 * win32-low.c (win32_supports_z_point_type): New function.
10012 (win32_insert_point, win32_remove_point): Adjust to new interface.
10013 (win32_target_ops): Install win32_supports_z_point_type.
10014 * win32-low.h (struct win32_target_ops):
10015 <supports_z_point_type>: New method.
10016 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10017 instead of a char. Also take a raw breakpoint pointer.
10019 2014-05-20 Pedro Alves <palves@redhat.com>
10021 * mem-break.h: Include break-common.h.
10022 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10023 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10024 (Z_packet_to_target_hw_bp_type): New declaration.
10025 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10026 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10027 (Z_PACKET_ACCESS_WP): Delete macros.
10028 (Z_packet_to_hw_type): Delete function.
10029 * i386-low.h: Don't include break-common.h here.
10030 (Z_packet_to_hw_type): Delete declaration.
10031 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10032 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10033 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10034 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10035 * linux-aarch64-low.c: Don't include break-common.h here.
10036 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10037 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10038 (Z_packet_to_target_hw_bp_type): Delete function.
10039 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10041 (mips_insert_point, mips_remove_point): Use
10042 Z_packet_to_target_hw_bp_type.
10044 2014-05-20 Pedro Alves <palves@redhat.com>
10046 * linux-aarch64-low.c: Include break-common.h.
10047 (enum target_point_type): Delete.
10048 (Z_packet_to_point_type): Rename to ...
10049 (Z_packet_to_target_hw_bp_type): ... this, and return a
10050 target_hw_bp_type instead.
10051 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10052 instead of an enum target_point_type.
10053 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10055 (aarch64_dr_state_insert_one_point)
10056 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10057 (aarch64_handle_aligned_watchpoint)
10058 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10059 Take an enum target_hw_bp_type instead of an enum
10061 (aarch64_supports_z_point_type): New function.
10062 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10063 use Z_packet_to_target_hw_bp_type.
10065 2014-05-20 Joel Brobecker <brobecker@adacore.com>
10067 * configure.ac: Only use -Werror by default when DEVELOPMENT
10069 * configure: Regenerate.
10071 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10073 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10074 * linux-x86-low.c (X86_64_USER_REGS): New.
10075 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10077 2014-04-28 Yao Qi <yao@codesourcery.com>
10079 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10082 2014-04-25 Pedro Alves <palves@redhat.com>
10085 * linux-low.c (linux_attach_fail_reason_string): New function.
10086 (linux_attach_lwp): Delete.
10087 (linux_attach_lwp_1): Rename to ...
10088 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10089 argument. Remove "initial" parameter. Return int instead of
10090 void. Don't error or warn here.
10091 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10092 failure to attach to the tgid. Call warning when failing to
10094 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10095 argument. Remove "initial" parameter. Return int instead of
10096 void. Don't error or warn here.
10097 (linux_attach_fail_reason_string): New declaration.
10098 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10099 interface change. Use linux_attach_fail_reason_string.
10101 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
10102 Walfred Tedeschi <walfred.tedeschi@intel.com>
10104 * Makefile.in: Added rules to handle new files
10105 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
10106 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
10107 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
10108 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
10109 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
10110 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
10111 x32-avx512-linux.o.
10112 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
10113 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
10114 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
10115 i386/x32-avx512.xml.
10116 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
10117 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
10118 i386/x32-avx512-linux.xml.
10119 * i387-fp.c (num_avx512_k_registers): New constant for number
10121 (num_avx512_zmmh_low_registers): New constant for number of
10122 lower ZMM registers (0-15).
10123 (num_avx512_zmmh_high_registers): New constant for number of
10124 higher ZMM registers (16-31).
10125 (num_avx512_ymmh_registers): New contant for number of higher
10126 YMM registers (ymm16-31 added by avx521 on x86_64).
10127 (num_avx512_xmm_registers): New constant for number of higher
10128 XMM registers (xmm16-31 added by AVX512 on x86_64).
10129 (struct i387_xsave): Add space for AVX512 registers.
10130 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
10131 Add code to handle AVX512 registers.
10132 (i387_xsave_to_cache): Add code to handle AVX512 registers.
10133 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
10134 prototypei from generated file.
10135 (tdesc_amd64_avx512_linux): Likewise.
10136 (init_registers_x32_avx512_linux): Likewise.
10137 (tdesc_x32_avx512_linux): Likewise.
10138 (init_registers_i386_avx512_linux): Likewise.
10139 (tdesc_i386_avx512_linux): Likewise.
10140 (x86_64_regmap): Add AVX512 registers.
10141 (x86_linux_read_description): Add code to handle AVX512 XSTATE
10143 (initialize_low_arch): Add code to initialize AVX512 registers.
10145 2014-04-23 Pedro Alves <palves@redhat.com>
10147 * mem-break.c (find_gdb_breakpoint_at): Make static.
10148 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10150 2014-04-23 Pedro Alves <palves@redhat.com>
10152 * i386-low.c: Don't include break-common.h here.
10153 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10154 prototype to take target_hw_bp_type as argument instead of a Z
10156 * i386-low.h: Include break-common.h here.
10157 (Z_packet_to_hw_type): Declare.
10158 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10160 * linux-x86-low.c (x86_insert_point): Convert the packet number to
10161 a target_hw_bp_type before calling i386_low_insert_watchpoint.
10162 (x86_remove_point): Convert the packet number to a
10163 target_hw_bp_type before calling i386_low_remove_watchpoint.
10164 * win32-i386-low.c (i386_insert_point): Convert the packet number
10165 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
10166 (i386_remove_point): Convert the packet number to a
10167 target_hw_bp_type before calling i386_low_remove_watchpoint.
10169 2014-04-23 Pedro Alves <palves@redhat.com>
10171 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10173 2014-04-10 Pedro Alves <palves@redhat.com>
10175 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
10176 Check if the condition or command is NULL before checking if the
10177 breakpoint is known. On success, return true.
10178 * mem-break.h (add_breakpoint_condition): Document return.
10179 (add_breakpoint_commands): Add describing comment.
10180 * server.c (skip_to_semicolon): New function.
10181 (process_point_options): Use it.
10183 2014-04-09 Pedro Alves <palves@redhat.com>
10185 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10188 2014-02-27 Pedro Alves <palves@redhat.com>
10191 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10193 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10195 (last_thread_of_process_p): Take a PID argument instead of a
10197 (linux_wait_for_lwp): Delete.
10198 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10200 (linux_low_filter_event): New function, party factored out from
10201 linux_wait_for_event.
10202 (linux_wait_for_event): Rename to ...
10203 (linux_wait_for_event_filtered): ... this. Add new filter ptid
10204 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
10205 sigsuspend. Check for zombie leaders.
10206 (linux_wait_for_event): Reimplement as wrapper around
10207 linux_wait_for_event_filtered.
10208 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
10209 a normal or signal exit is seen, it's the whole process exiting.
10210 (wait_for_sigstop): No longer a for_each_inferior callback.
10211 Rewrite on top of linux_wait_for_event_filtered.
10212 (stop_all_lwps): Call wait_for_sigstop directly.
10213 * server.c (resume, handle_target_event): Handle
10214 TARGET_WAITKIND_NO_RESUMED.
10216 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10218 * win32-low.c (psapi_get_dll_name,
10219 * win32_CreateToolhelp32Snapshot): Delete.
10220 (win32_CreateToolhelp32Snapshot, win32_Module32First)
10221 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
10223 (handle_load_dll): Add function description.
10224 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10226 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10228 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10230 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
10231 base address when calling win32_add_one_solib.
10232 (handle_load_dll): Delete local variable load_addr.
10233 Remove 0x1000 offset applied to DLL base address when calling
10234 win32_add_one_solib.
10235 (handle_unload_dll): Add comment.
10237 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10239 * win32-low.c (win32_add_all_dlls): Renames
10240 win32_ensure_ntdll_loaded. Rewrite function documentation.
10241 Adjust implementation to always load all DLLs.
10242 Add 0x1000 offset to DLL base address when calling
10243 win32_add_one_solib.
10244 (child_initialization_done): New static global.
10245 (do_initial_child_stuff): Set child_initialization_done to
10246 zero during child initialization, and 1 after. Replace call
10247 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
10249 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
10250 (handle_unload_dll): Add function documentation.
10251 (get_child_debug_event): Ignore load and unload DLL events
10252 during child initialization.
10254 2014-02-20 Doug Evans <dje@google.com>
10256 Remove global all_lwps.
10257 * inferiors.h (ptid_of): Move here from linux-low.h.
10258 (pid_of, lwpid_of): Ditto.
10259 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
10260 parameter is a struct thread_info * now.
10261 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
10262 directly. Pass &all_threads to find_inferior instead of &all_lwps.
10263 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
10265 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
10266 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
10267 * linux-arm-low.c (update_registers_callback): Update, "entry"
10268 parameter is a struct thread_info * now.
10269 Fetch lwpid from current_inferior directly.
10270 (arm_insert_point): Pass &all_threads to find_inferior instead of
10272 (arm_remove_point): Ditto.
10273 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
10274 (arm_prepare_to_resume): Fetch pid from thread.
10275 (arm_read_description): Fetch lwpid from current_inferior directly.
10276 * linux-low.c (all_lwps): Delete.
10277 (delete_lwp): Delete call to remove_inferior.
10278 (handle_extended_wait): Fetch lwpid from thread.
10279 (add_lwp): Don't set lwp->entry.id. Remove call to
10280 add_inferior_to_list.
10281 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
10282 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
10283 (kill_one_lwp_callback): Ditto.
10284 (linux_kill): Don't dereference NULL pointer.
10285 Fetch ptid,lwpid from thread.
10286 (get_detach_signal): Fetch ptid from thread.
10287 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
10288 Simplify call to regcache_invalidate_thread.
10289 (delete_lwp_callback): Update, "entry" parameter is a
10290 struct thread_info * now. Fetch pid from thread.
10291 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
10292 (status_pending_p_callback): Update, "entry" parameter is a
10293 struct thread_info * now. Fetch ptid from thread.
10294 (find_lwp_pid): Update, "entry" parameter is a
10295 struct thread_info * now.
10296 (linux_wait_for_lwp): Fetch pid from thread.
10297 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
10298 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
10299 (enqueue_one_deferred_signal): Fetch lwpid from thread.
10300 (dequeue_one_deferred_signal): Ditto.
10301 (cancel_breakpoint): Fetch ptid from current_inferior.
10302 (linux_wait_for_event): Pass &all_threads to find_inferior,
10303 not &all_lwps. Fetch ptid, lwpid from thread.
10304 (count_events_callback): Update, "entry" parameter is a
10305 struct thread_info * now.
10306 (select_singlestep_lwp_callback): Ditto.
10307 (select_event_lwp_callback): Ditto.
10308 (cancel_breakpoints_callback): Ditto.
10309 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
10311 (select_event_lwp): Ditto. Fetch ptid from event_thread.
10312 (unsuspend_one_lwp): Update, "entry" parameter is a
10313 struct thread_info * now.
10314 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
10316 (linux_stabilize_threads): Ditto. And for for_each_inferior.
10317 Fetch lwpid from thread, not lwp.
10318 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
10319 Pass &all_threads to find_inferior, not &all_lwps.
10320 (send_sigstop): Fetch lwpid from thread, not lwp.
10321 (send_sigstop_callback): Update, "entry" parameter is a
10322 struct thread_info * now.
10323 (suspend_and_send_sigstop_callback): Ditto.
10324 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
10325 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
10326 struct thread_info * now.
10327 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
10329 (lwp_running): Update, "entry" parameter is a
10330 struct thread_info * now.
10331 (stop_all_lwps): Fetch ptid from thread.
10332 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
10333 (linux_resume_one_lwp): Fetch lwpid from thread.
10334 (linux_set_resume_request): Update, "entry" parameter is a
10335 struct thread_info * now. Fetch pid, lwpid from thread.
10336 (resume_status_pending_p): Update, "entry" parameter is a
10337 struct thread_info * now.
10338 (need_step_over_p): Ditto. Fetch lwpid from thread.
10339 (start_step_over): Fetch lwpid from thread.
10340 (linux_resume_one_thread): Update, "entry" parameter is a
10341 struct thread_info * now. Fetch lwpid from thread.
10342 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
10343 (proceed_one_lwp): Update, "entry" parameter is a
10344 struct thread_info * now. Fetch lwpid from thread.
10345 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
10346 struct thread_info * now.
10347 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
10348 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10349 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10351 (regsets_store_inferior_registers): Ditto.
10352 (fetch_register, store_register): Ditto.
10353 (linux_read_memory, linux_write_memory): Ditto.
10354 (linux_request_interrupt): Ditto.
10355 (linux_read_auxv): Ditto.
10356 (linux_xfer_siginfo): Ditto.
10357 (linux_qxfer_spu): Ditto.
10358 (linux_qxfer_libraries_svr4): Ditto.
10359 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10360 moved to inferiors.h.
10362 (get_thread_lwp): Update.
10363 (struct lwp_info): Delete member "entry". Simplify comment for
10365 (all_lwps): Delete.
10366 * linux-mips-low.c (mips_read_description): Fetch lwpid from
10367 current_inferior directly.
10368 (update_watch_registers_callback): Update, "entry" parameter is a
10369 struct thread_info * now. Fetch pid from thread.
10370 (mips_linux_prepare_to_resume): Fetch ptid from thread.
10371 (mips_insert_point): Fetch lwpid from current_inferior.
10372 Pass &all_threads to find_inferior, not &all_lwps.
10373 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
10374 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
10376 (mips_stopped_data_address): Ditto.
10377 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10379 * linux-tile-low.c (tile_arch_setup): Ditto.
10380 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
10381 (update_debug_registers_callback): Update, "entry" parameter is a
10382 struct thread_info * now. Fetch pid from thread.
10383 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
10384 Pass &all_threads to find_inferior, not &all_lwps.
10385 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
10386 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
10387 Pass &all_threads to find_inferior, not &all_lwps.
10388 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
10389 (i386_dr_low_get_status): Ditto.
10390 (x86_linux_prepare_to_resume): Fetch ptid from thread.
10391 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
10392 (x86_linux_read_description): Ditto.
10393 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
10395 2014-02-20 Doug Evans <dje@google.com>
10397 * inferiors.c (get_first_inferior): Fix buglet.
10399 2014-02-19 Doug Evans <dje@google.com>
10401 * gdbthread.h (add_thread): Change result type to struct thread_info *.
10402 * inferiors.c (add_thread): Change result type to struct thread_info *.
10403 All callers updated.
10404 (add_lwp): Call add_thread here instead of in callers.
10405 All callers updated.
10406 * linux-low.h (get_lwp_thread): Rewrite.
10407 (struct lwp_info): New member "thread".
10409 2014-02-19 Doug Evans <dje@google.com>
10411 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10412 All callers updated.
10414 2014-02-19 Doug Evans <dje@google.com>
10416 * inferiors.c (add_thread): Fix whitespace.
10418 2014-02-19 Doug Evans <dje@google.com>
10420 * dll.c (clear_dlls): Replace accessing list implemention details
10422 * gdbthread.h (get_first_thread): Declare.
10423 * inferiors.c (for_each_inferior_with_data): New function.
10424 (get_first_thread): New function.
10425 (find_thread_ptid): Simplify.
10426 (get_first_inferior): New function.
10427 (clear_list): Delete.
10428 (one_inferior_p): New function.
10429 (clear_inferior_list): New function.
10430 (clear_inferiors): Update.
10431 * inferiors.h (for_each_inferior_with_data): Declare.
10432 (clear_inferior_list): Declare.
10433 (one_inferior_p): Declare.
10434 (get_first_inferior): Declare.
10435 * linux-low.c (linux_wait_for_event): Replace accessing list
10436 implemention details with API function.
10437 * server.c (target_running): Ditto.
10438 (accumulate_file_name_length): New function.
10439 (emit_dll_description): New function.
10440 (handle_qxfer_libraries): Replace accessing list implemention
10441 details with API function.
10442 (handle_qxfer_threads_worker): New function.
10443 (handle_qxfer_threads_proper): Replace accessing list implemention
10444 details with API function.
10445 (handle_query): Ditto.
10446 (visit_actioned_threads_callback_ftype): New typedef.
10447 (visit_actioned_threads_data): New struct.
10448 (visit_actioned_threads): Rewrite to be find_inferior callback.
10449 (resume): Call find_inferior.
10450 (handle_status): Replace accessing list implemention
10451 details with API function.
10452 (process_serial_event): Replace accessing list implemention details
10454 * target.c (set_desired_inferior): Replace accessing list implemention
10455 details with API function.
10456 * tracepoint.c (same_process_p): New function.
10457 (gdb_agent_about_to_close): Replace accessing list implemention
10458 details with API function.
10459 * win32-low.c (child_delete_thread): Replace accessing list
10460 implemention details with API function.
10461 (match_dll_by_basename): New function.
10462 (dll_is_loaded_by_basename): New function.
10463 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10464 details call to dll_is_loaded_by_basename.
10466 2014-02-19 Doug Evans <dje@google.com>
10468 * dll.h (struct dll_info): Add comment.
10469 * gdbthread.h (struct thread_info): Add comment.
10470 (current_ptid): Simplify.
10471 * inferiors.c (add_process): Update.
10472 (remove_process): Update.
10473 * inferiors.h (struct process_info): Rename member "head" to "entry".
10474 * linux-low.c (delete_lwp): Update.
10476 (last_thread_of_process_p): Update.
10477 (kill_one_lwp_callback, linux_kill): Update.
10478 (status_pending_p_callback): Update.
10479 (wait_for_sigstop): Update. Simplify read of ptid.
10480 (start_step_over): Update.
10481 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10482 (get_lwp_thread): Update.
10483 (struct lwp_info): Rename member "head" to "entry".
10484 * regcache.h (inferior_list_entry): Delete.
10485 * server.c (kill_inferior_callback): Update.
10486 (detach_or_kill_inferior_callback): Update.
10487 (print_started_pid): Update.
10488 (print_attached_pid): Update.
10489 (process_serial_event): Simplify read of ptid.
10490 * thread-db.c (thread_db_create_event): Update.
10491 (thread_db_get_tls_address): Update.
10492 * win32-low.c (current_inferior_ptid): Simplify.
10494 2014-02-19 Tom Tromey <tromey@redhat.com>
10496 * target.h (struct target_ops) <supports_btrace>: Add target_ops
10498 (target_supports_btrace): Update.
10500 2014-02-14 Yao Qi <yao@codesourcery.com>
10502 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
10503 (rsp-low-ipa.o): New target.
10505 2014-02-12 Tom Tromey <tromey@redhat.com>
10507 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
10508 convert_ascii_to_int.
10509 * regcache.c (registers_to_string): Likewise.
10510 * remote-utils.c (decode_M_packet): Likewise.
10511 * server.c (process_serial_event): Likewise.
10513 2014-02-12 Tom Tromey <tromey@redhat.com>
10515 * server.c (handle_query, handle_v_run): Use hex2bin, not
10517 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
10519 2014-02-12 Tom Tromey <tromey@redhat.com>
10521 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
10522 convert_int_to_ascii.
10523 * regcache.c (registers_to_string, collect_register_as_string):
10525 * remote-utils.c (look_up_one_symbol, relocate_instruction):
10527 * server.c (process_serial_event): Likewise.
10528 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
10529 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
10531 2014-02-12 Tom Tromey <tromey@redhat.com>
10533 * remote-utils.c (look_up_one_symbol, monitor_output): Use
10534 bin2hex, not hexify.
10535 * tracepoint.c (cmd_qtstatus): Likewise.
10537 2014-02-12 Tom Tromey <tromey@redhat.com>
10539 * remote-utils.c (monitor_output): Pass explicit length to
10542 2014-02-12 Tom Tromey <tromey@redhat.com>
10544 * tracepoint.c: Include rsp-low.h.
10545 * server.c: Include rsp-low.h.
10546 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
10547 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
10549 * remote-utils.c: Include rsp-low.h.
10550 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
10551 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
10552 (convert_int_to_ascii, convert_ascii_to_int): Move to
10554 * regcache.c: Include rsp-low.h.
10555 * ax.c: Include rsp-low.h.
10556 * Makefile.in (SFILES): Add common/rsp-low.c.
10557 (OBS): Add rsp-low.o.
10558 (rsp-low.o): New target.
10560 2014-02-12 Tom Tromey <tromey@redhat.com>
10562 * utils.h (pulongest, plongest, phex_nz): Don't declare.
10563 Include print-utils.h.
10564 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10565 (plongest, thirty_two, phex_nz): Remove.
10566 * Makefile.in (SFILES): Add common/print-utils.c.
10567 (OBS): Add print-utils.o.
10568 (print-utils-ipa.o): New target.
10569 (print-utils.o): New target.
10570 (IPA_OBJS): Add print-utils-ipa.o.
10572 2014-02-06 Tom Tromey <tromey@redhat.com>
10574 * Makefile.in (SFILES): Fix indentation.
10576 2014-02-05 Doug Evans <dje@google.com>
10578 * linux-low.c (linux_wait_for_event): Improve comment.
10579 (linux_wait_1): Keep current_inferior in sync with event_child.
10581 2014-01-22 Doug Evans <dje@google.com>
10583 * gdbthread.h (gdb_id_to_thread): Delete, unused.
10585 2014-01-22 Doug Evans <dje@google.com>
10587 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
10588 * configure: Regenerate.
10589 * config.in: Regenerate.
10590 * Makefile.in (SFILES): Add debug.c.
10591 (OBS): Add debug.o.
10592 * debug.c: New file.
10593 * debug.h: New file.
10594 * linux-aarch64-low.c (*): Update all debugging printfs to use
10595 debug_printf instead of fprintf.
10596 * linux-arm-low.c (*): Ditto.
10597 * linux-cris-low.c (*): Ditto.
10598 * linux-crisv32-low.c (*): Ditto.
10599 * linux-m32r-low.c (*): Ditto.
10600 * linux-sparc-low.c (*): Ditto.
10601 * linux-x86.c (*): Ditto.
10602 * linux-low.c (*): Ditto.
10603 (linux_wait_1): Add calls to debug_enter, debug_exit.
10604 (linux_wait): Remove redundant debugging printf.
10605 (stop_all_lwps): Add calls to debug_enter, debug_exit.
10606 (linux_resume, unstop_all_lwps): Ditto.
10607 * mem-break.c (*): Update all debugging printfs to use
10608 debug_printf instead of fprintf.
10609 * remote-utils.c (*): Ditto.
10610 * thread-db.c (*): Ditto.
10611 * server.c #include <ctype.h>, "gdb_vecs.h".
10612 (debug_threads): Moved to debug.c.
10613 (*): Update all debugging printfs to use debug_printf instead of
10615 (start_inferior): Replace call to fflush with call to debug_flush.
10616 (monitor_show_help): Mention set debug-format.
10617 (parse_debug_format_options): New function.
10618 (handle_monitor_command): Handle "monitor set debug-format".
10619 (gdbserver_usage): Mention --debug-format.
10620 (main): Parse --debug-format.
10621 * server.h (debug_threads): Declaration moved to debug.h.
10622 #include "debug.h".
10623 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
10624 trace_debug_1 that uses debug_printf.
10625 (tracepoint_look_up_symbols): Update all debugging printfs to use
10626 debug_printf instead of fprintf.
10628 2014-01-20 Baruch Siach <baruch@tkos.co.il>
10630 * linux-xtensa-low.c: Include asm/ptrace.h instead of
10633 2014-01-17 Pedro Alves <palves@redhat.com>
10636 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
10637 defined after including gdb_proc_service.h.
10639 2014-01-16 Doug Evans <dje@google.com>
10641 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
10642 (match_dll): Use it.
10644 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10646 * target.h (target_ops) <read_btrace>: Change parameters and
10647 return type to allow error reporting.
10648 * server.c (handle_qxfer_btrace): Support delta reads. Pass
10649 trace reading errors on.
10650 * linux-low.c (linux_low_read_btrace): Pass trace reading
10652 (linux_low_disable_btrace): New.
10654 2014-01-15 Doug Evans <dje@google.com>
10656 * inferiors.c (thread_id_to_gdb_id): Delete.
10657 * inferiors.h (thread_id_to_gdb_id): Delete.
10659 2014-01-13 Eli Zaretskii <eliz@gnu.org>
10661 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
10662 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
10665 2014-01-08 Pedro Alves <palves@redhat.com>
10667 * server.c (handle_status): Don't discard previous queued stop
10668 replies or thread's pending status here.
10669 (main) <disconnection>: Do it here instead.
10671 2014-01-08 Pedro Alves <palves@redhat.com>
10673 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
10674 * server.c (visit_actioned_threads, handle_pending_status): New
10676 (handle_v_cont): Factor out parts to ...
10677 (resume): ... this new function. If in all-stop, and a thread
10678 being resumed has a pending status, report it without actually
10680 (myresume): Adjust to use the new 'resume' function.
10681 (clear_pending_status_callback, set_pending_status_callback)
10682 (find_status_pending_thread_callback): New functions.
10683 (handle_status): Handle the case of multiple threads having
10684 interesting statuses to report. Report threads' real last signal
10685 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
10686 with an interesting thread to report the status for, instead of
10687 always reporting the status of the first thread.
10689 2014-01-01 Joel Brobecker <brobecker@adacore.com>
10691 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
10692 * gdbreplay.c (gdbreplay_version): Likewise.
10694 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
10696 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
10697 iov.iov_len with the real length in use.
10699 2013-12-13 Joel Brobecker <brobecker@adacore.com>
10701 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
10702 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
10703 for all targets that use win32-low.c.
10704 * win32-low.c (win32_ensure_ntdll_loaded): New function.
10705 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
10707 2013-12-13 Pedro Alves <palves@redhat.com>
10709 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
10710 if equal to TARGET_WAITKIND_LOADED.
10711 * win32-low.c (cached_status): New static global.
10712 (win32_wait): Add declaration.
10713 (do_initial_child_stuff): Flush all initial pending debug events
10714 up to the initial breakpoint.
10715 (win32_wait): If CACHED_STATUS was set, return that instead
10716 of doing a real wait. Remove the code resuming the execution
10717 of the inferior after receiving a TARGET_WAITKIND_LOADED event
10718 during the initial phase. Also remove the code changing
10719 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
10720 TARGET_WAITKIND_STOPPED.
10722 2013-12-11 Yao Qi <yao@codesourcery.com>
10724 * notif.c (handle_notif_ack): Return 0 if no notification
10727 2013-11-20 Doug Evans <dje@google.com>
10729 * linux-low.c (linux_set_resume_request): Fix comment.
10731 2013-11-20 Doug Evans <dje@google.com>
10733 * linux-low.c (resume_status_pending_p): Tweak comment.
10735 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
10737 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
10738 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
10739 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
10740 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
10741 (srv_amd64_regobj): Add amd64-mpx.o.
10742 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
10743 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
10744 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
10745 * i387-fp.c (num_pl_bnd_register) Added constant.
10746 (num_pl_bnd_cfg_registers) Added constant.
10747 (struct i387_xsave) Added reserved area and MPX fields.
10748 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
10749 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
10751 (tdesc_i386_mpx_linux): Add MPX amd64 target.
10752 (init_registers_amd64_mpx_linux): Declare new function.
10753 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
10754 (x86_64_regmap): Add MPX registers.
10755 (x86_linux_read_description): Add MPX case.
10756 (initialize_low_arch): Initialize MPX targets.
10758 2013-11-18 Tom Tromey <tromey@redhat.com>
10760 * configure: Rebuild.
10761 * configure.ac: Don't check for stdlib.h.
10762 * gdbreplay.c: Unconditionally include stdlib.h.
10764 2013-11-18 Tom Tromey <tromey@redhat.com>
10766 * config.in: Rebuild.
10767 * configure: Rebuild.
10768 * configure.ac: Don't use AC_HEADER_DIRENT.
10770 2013-11-18 Tom Tromey <tromey@redhat.com>
10772 * server.h: Don't check HAVE_STRING_H.
10773 * gdbreplay.c: Don't check HAVE_STRING_H.
10774 * configure: Rebuild.
10776 2013-11-18 Tom Tromey <tromey@redhat.com>
10778 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
10781 2013-11-08 Tom Tromey <tromey@redhat.com>
10783 * configure, config.in: Rebuild.
10784 * configure.ac: Remove unused configury.
10786 2013-11-08 Tom Tromey <tromey@redhat.com>
10788 * acinclude.m4: Include common.m4, codeset.m4.
10789 * configure, config.in: Rebuild.
10790 * configure.ac: Use GDB_AC_COMMON.
10792 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
10794 * linux-s390-low.c (HWCAP_S390_TE): New define.
10795 (s390_arch_setup): Consider the TE field in the HWCAP for
10796 determining 'have_regset_tdb'.
10798 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
10801 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
10804 2013-10-02 Pedro Alves <palves@redhat.com>
10806 * server.c (process_serial_event): Don't output "GDBserver
10807 exiting" if GDB is connected through stdio.
10808 * target.c (mywait): Likewise, be silent if GDB is connected
10811 2013-10-01 Joel Brobecker <brobecker@adacore.com>
10813 * lynx-low.c (lynx_add_threads_after_attach): New function.
10814 (lynx_attach): Remove call to add_thread. Add call to
10815 lynx_add_threads_after_attach instead.
10817 2013-09-28 Mike Frysinger <vapier@gentoo.org>
10819 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
10820 * config.in, configure: Regenerated.
10822 2013-09-18 Yao Qi <yao@codesourcery.com>
10825 * server.c (start_inferior): Clear 'resume_info'.
10827 2013-09-16 Jiong Wang <jiwang@tilera.com>
10829 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
10832 2013-09-16 Jiong Wang <jiwang@tilera.com>
10834 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
10835 linux-tile-low.o to srv_tgtobj.
10837 2013-09-16 Will Newton <will.newton@linaro.org>
10839 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
10842 2013-09-06 Pedro Alves <palves@redhat.com>
10844 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
10845 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
10846 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
10847 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
10848 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
10849 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
10851 2013-09-06 Pedro Alves <palves@redhat.com>
10853 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
10854 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
10856 2013-09-06 Pedro Alves <palves@redhat.com>
10858 * linux-amd64-ipa.c: Include tracepoint.h.
10859 * linux-i386-ipa.c: Include tracepoint.h.
10861 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
10863 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
10864 (ps_get_thread_area): New function.
10866 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
10868 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
10869 (initialize_low_arch): Call init_registers_crisv32 rather than
10870 init_register_crisv32.
10872 2013-09-05 Pedro Alves <palves@redhat.com>
10874 * server.h (handle_vFile, hostio_last_error_from_errno): Move
10876 * hostio.h: ... this new file.
10877 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
10878 win32-low.c: Include hostio.h.
10880 2013-09-05 Pedro Alves <palves@redhat.com>
10882 * server.h (gdb_client_data, handler_func, callback_handler_func)
10883 (delete_file_handler, add_file_handler, append_callback_event)
10884 (delete_callback_event, start_event_loop, initialize_event_loop):
10885 Move to event-loop.h and include it.
10886 * event-loop.h: New file.
10888 2013-09-05 Pedro Alves <palves@redhat.com>
10890 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
10891 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
10892 (loaded_dll, unloaded_dll): Move to ...
10893 * dll.h: ... this new file.
10894 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
10896 2013-09-05 Pedro Alves <palves@redhat.com>
10898 * server.h (current_process, get_thread_process, all_processes)
10899 (add_inferior_to_list, for_each_inferior, current_inferior)
10900 (remove_inferior, add_process, remove_process, find_process_pid)
10901 (have_started_inferiors_p, have_attached_inferiors_p)
10902 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
10903 (clear_inferiors, find_inferior, find_inferior_id)
10904 (inferior_target_data, set_inferior_target_data)
10905 (inferior_regcache_data, set_inferior_regcache_data): Move to
10906 inferiors.h, and include it.
10907 * inferiors.h: New file.
10909 2013-09-05 Pedro Alves <palves@redhat.com>
10911 * server.h (struct emit_ops, current_insn_ptr, emit_error):
10915 2013-09-05 Pedro Alves <palves@redhat.com>
10917 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
10919 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
10920 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
10921 (handle_tracepoint_general_set, handle_tracepoint_query)
10922 (tracepoint_finished_step, tracepoint_was_hit)
10923 (release_while_stepping_state_list, current_traceframe)
10924 (in_readonly_region, traceframe_read_mem)
10925 (fetch_traceframe_registers, traceframe_read_sdata)
10926 (traceframe_read_info, struct fast_tpoint_collect_status)
10927 (fast_tracepoint_collecting, force_unlock_trace_buffer)
10928 (handle_tracepoit_bkpts, initialize_low_tracepoint)
10929 (supply_fast_tracepoint_registers)
10930 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
10931 (ipa_tdesc, claim_trampoline_space)
10932 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
10933 (agent_mem_read, agent_get_trace_state_variable_value)
10934 (agent_set_trace_state_variable_value, agent_tsv_read)
10935 (agent_mem_read_string, get_raw_reg_func_addr)
10936 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
10937 * tracepoint.h: ... this new file.
10939 2013-09-05 Pedro Alves <palves@redhat.com>
10941 * server.h (perror_with_name, error, fatal, warning, paddress)
10942 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
10944 * utils.h: New file.
10946 2013-09-05 Pedro Alves <palves@redhat.com>
10948 * server.h (remote_debug, noack_mode, transport_is_reliable)
10949 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
10950 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
10951 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
10952 (write_enn, initialize_async_io, enable_async_io)
10953 (disable_async_io, check_remote_input_interrupt_request)
10954 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
10955 (dead_thread_notify, prepare_resume_reply)
10956 (decode_address_to_semicolon, decode_address, decode_m_packet)
10957 (decode_M_packet, decode_X_packet, decode_xfer_write)
10958 (decode_search_memory_packet, unhexify, hexify)
10959 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
10960 (look_up_one_symbol, relocate_instruction)
10961 (monitor_output): Move to remote-utils.h, and include it.
10962 * remote-utils.h: New file.
10964 2013-09-05 Pedro Alves <palves@redhat.com>
10966 * server.h (_): Delete.
10968 2013-09-02 Pedro Alves <palves@redhat.com>
10970 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
10971 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
10973 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
10975 2013-09-02 Pierre Muller <muller@sourceware.org>
10977 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
10978 or WriteProcessMemory complete successfully and handle
10979 ERROR_PARTIAL_COPY error.
10981 2013-09-02 Pedro Alves <palves@redhat.com>
10983 * server.c (gdb_read_memory): Return -1 on traceframe memory read
10984 error instead of EIO.
10986 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10989 * linux-low.c: Include filestuff.h.
10990 (linux_create_inferior) <pid == 0>: Call close_most_fds.
10991 * lynx-low.c: Include filestuff.h.
10992 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
10993 * server.c: Include filestuff.h.
10994 (main): Call notice_open_fds.
10995 * spu-low.c: Include filestuff.h.
10996 (spu_create_inferior) <pid == 0>: Call close_most_fds.
10998 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
11000 * Makefile.in: Explain why ../target and ../nat are not
11001 listed as include file search paths.
11002 (linux-waitpid.o): New object file rule.
11003 * configure.srv (srv_native_linux_obj): New variable.
11004 Replace all occurrences of linux native object files with
11005 $srv_native_linux_obj.
11006 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11007 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11008 (linux_enable_event_reporting): Remove declaration.
11009 (my_waitpid): Moved to common/linux-waitpid.c.
11010 (linux_wait_for_event): Pass ptid when calling
11011 linux_enable_event_reporting.
11012 (linux_supports_tracefork_flag): Remove.
11013 (linux_enable_event_reporting): Likewise.
11014 (linux_tracefork_grandchild): Remove.
11015 (STACK_SIZE): Moved to common/linux-ptrace.c.
11016 (linux_tracefork_child): Remove.
11017 (linux_test_for_tracefork): Remove.
11018 (linux_look_up_symbols): Call linux_supports_traceclone.
11019 (initialize_low): Remove call to linux_test_for_tracefork.
11020 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11021 common/linux-ptrace.h.
11022 (PTRACE_TYPE_ARG4): Likewise.
11023 Include linux-ptrace.h.
11025 2013-08-21 Pedro Alves <palves@redhat.com>
11027 * config.in: Renegerate.
11029 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
11031 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11032 (SFILES): Remove $(srcdir)/common/target-common.c and
11033 add $(srcdir)/target/waitstatus.c.
11034 (OBS): Remove target-common.o and add waitstatus.o.
11035 (server_h): Remove $(srcdir)/../common/target-common.h and
11036 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11037 and $(srcdir)/../target/waitstatus.h.
11038 (target-common.o): Remove.
11039 (waitstatus.o): New target object file.
11040 * target.h: Do not include target-common.h and
11041 include target/resume.h, target/wait.h and
11042 target/waitstatus.h.
11044 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
11046 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11047 to PTRACE_TYPE_ARG3.
11048 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11049 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11051 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11052 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11054 2013-07-27 Jie Zhang <jie@codesourcery.com>
11055 Daniel Jacobowitz <dan@codesourcery.com>
11056 Yao Qi <yao@codesourcery.com>
11058 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11059 (mips-linux-watch.o): New rule.
11060 (mips_linux_watch_h): New variable.
11061 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11063 * linux-mips-low.c: Include mips-linux-watch.h.
11064 (struct arch_process_info, struct arch_lwp_info): New.
11065 (update_watch_registers_callback): New function.
11066 (mips_linux_new_process, mips_linux_new_thread) New functions.
11067 (mips_linux_prepare_to_resume, mips_insert_point): New
11069 (mips_remove_point, mips_stopped_by_watchpoint): New
11071 (rsp_bp_type_to_target_hw_bp_type): New function.
11072 (mips_stopped_data_address): New function.
11073 (the_low_target): Add watchpoint support functions.
11075 2013-07-27 Yao Qi <yao@codesourcery.com>
11077 * i386-low.c: Include break-common.h.
11078 (enum target_hw_bp_type): Remove.
11080 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
11082 * Makefile.in (SFILES): /common/target-common.c.
11083 (OBS): Add target-common.o.
11084 (server_h): Add $(srcdir)/../common/target-common.h.
11085 (target-common.o): New target.
11086 * server.c (queue_stop_reply_callback): Free
11087 status string after use.
11088 * target.c (target_waitstatus_to_string): Remove.
11089 * target.h: Include target-common.h.
11090 (resume_kind): Likewise.
11091 (target_waitkind): Likewise.
11092 (target_waitstatus): Likewise.
11093 (TARGET_WNOHANG): Likewise.
11095 2013-07-04 Yao Qi <yao@codesourcery.com>
11097 * Makefile.in (host_alias): Use @host_noncanonical@.
11098 (target_alias): Use @target_noncanonical@.
11099 * configure.ac: Use ACX_NONCANONICAL_TARGET and
11100 ACX_NONCANONICAL_HOST.
11101 * configure: Regenerated.
11104 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11106 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11107 * configure: Rebuild.
11108 * Makefile.in (version_host, version_target): Get from configure.
11109 (version.c): Use $(version_host) and $(version_target).
11111 2013-07-03 Pedro Alves <palves@redhat.com>
11113 * Makefile.in (config.status): Depend on development.sh.
11114 * acinclude.m4: Include libmcheck.m4.
11115 * configure: Regenerate.
11117 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11119 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
11120 attribute inside the parentheses.
11121 (winapi_DebugSetProcessKillOnExit): Ditto.
11122 (winapi_DebugBreakProcess): Ditto.
11123 (winapi_GenerateConsoleCtrlEvent): Ditto.
11125 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11127 * notif.h (notif_event): Add a dummy member to avoid compiler
11130 2013-07-01 Pedro Alves <palves@redhat.com>
11132 * hostio.c (HOSTIO_PATH_MAX): Define.
11133 (require_filename, handle_open, handle_unlink, handle_readlink):
11136 2013-07-01 Pedro Alves <palves@redhat.com>
11138 * server.h: Include "pathmax.h".
11139 * linux-low.c: Don't include sys/param.h.
11140 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
11142 * win32-low.c: Don't include sys/param.h.
11143 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11145 2013-07-01 Pedro Alves <palves@redhat.com>
11147 * event-loop.c: Don't check HAVE_UNISTD_H before including
11149 * gdbreplay.c: Likewise.
11150 * remote-utils.c: Likewise.
11151 * server.c: Likewise.
11152 * configure.ac: Don't check for unistd.h.
11153 * configure: Regenerate.
11155 2013-06-28 Tom Tromey <tromey@redhat.com>
11157 * Makefile.in (version.c): Use version.in, not
11160 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11162 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11163 * configure: Rebuild.
11164 * Makefile.in (version_host, version_target): Get from configure.
11165 (version.c): Use $(version_host) and $(version_target).
11167 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11169 Fix trace-status to output user name without trailing colon.
11170 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11172 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11174 Fix trace-status to output proper start-time and stop-time.
11175 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
11176 output start time and stop time in hex as gdb expects.
11178 2013-06-26 Pedro Alves <pedro@codesourcery.com>
11180 * tracepoint.c (build_traceframe_info_xml): Output trace state
11181 variables present in the trace buffer.
11183 2013-06-24 Tom Tromey <tromey@redhat.com>
11185 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11187 (version.o): Remove.
11188 * gdbreplay.c: Include version.h.
11189 (version, host_name): Don't declare.
11190 * server.h: Include version.h.
11191 (version, host_name): Don't declare.
11193 2013-06-12 Pedro Alves <palves@redhat.com>
11195 * linux-x86-low.c (linux_is_elf64): Delete global.
11196 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
11197 with local linux_pid_exe_is_elf_64_file use.
11199 2013-06-11 Pedro Alves <palves@redhat.com>
11201 * linux-low.c (regset_disabled, disable_regset): New functions.
11202 (regsets_fetch_inferior_registers)
11203 (regsets_store_inferior_registers): Use them.
11204 (initialize_regsets_info); Don't allocate the disabled_regsets
11206 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11209 2013-06-11 Pedro Alves <palves@redhat.com>
11211 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11214 2013-06-11 Pedro Alves <palves@redhat.com>
11216 * linux-x86-low.c (initialize_low_arch): Call
11217 init_registers_x32_avx_linux.
11219 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11221 Fix compatibility with Android Bionic.
11222 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11225 2013-06-07 Pedro Alves <palves@redhat.com>
11228 * Makefile.in (OBS): Add tdesc.o.
11229 (IPA_OBJS): Add tdesc-ipa.o.
11230 (tdesc-ipa.o): New rule.
11231 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
11233 * linux-low.c (new_inferior): Delete.
11234 (disabled_regsets, num_regsets): Delete.
11235 (linux_add_process): Adjust to set the new per-process
11237 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
11238 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
11239 was a stop. When calling arch_setup, switch the current inferior
11240 to the thread that got an event.
11241 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
11242 (regsets_fetch_inferior_registers)
11243 (regsets_store_inferior_registers): New regsets_info parameter.
11245 (linux_register_in_regsets): New regs_info parameter. Adjust to
11247 (register_addr, fetch_register, store_register): New usrregs_info
11248 parameter. Adjust to use it.
11249 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
11250 parameter regs_info. Adjust to use it.
11251 (linux_fetch_registers): Get the current inferior's regs_info, and
11253 (linux_store_registers): Ditto.
11254 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
11255 (initialize_low): Don't initialize the target_regsets here. Call
11256 initialize_low_arch.
11257 * linux-low.h (target_regsets): Delete declaration.
11258 (struct regsets_info): New.
11259 (struct usrregs_info): New.
11260 (struct regs_info): New.
11261 (struct process_info_private) <new_inferior>: New field.
11262 (struct linux_target_ops): Delete the num_regs, regmap, and
11263 regset_bitmap fields. New field regs_info.
11264 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
11265 * i387-fp.c (num_xmm_registers): Delete.
11266 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
11267 calls to new interface.
11268 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
11269 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
11270 Infer the number of xmm registers from the regcache's target
11272 * i387-fp.h (num_xmm_registers): Delete.
11273 * inferiors.c (add_thread): Don't install the thread's regcache
11275 * proc-service.c (gregset_info): Fetch the current inferior's
11276 regs_info. Adjust to use it.
11277 * regcache.c: Include tdesc.h.
11278 (register_bytes, reg_defs, num_registers)
11279 (gdbserver_expedite_regs): Delete.
11280 (get_thread_regcache): If the thread doesn't have a regcache yet,
11281 create one, instead of aborting gdbserver.
11282 (regcache_invalidate_one): Rename to ...
11283 (regcache_invalidate_thread): ... this.
11284 (regcache_invalidate_one): New.
11285 (regcache_invalidate): Only invalidate registers of the current
11287 (init_register_cache): Add target_desc parameter, and use it.
11288 (new_register_cache): Ditto. Assert the target description has a
11289 non zero registers_size.
11290 (regcache_cpy): Add assertions. Adjust.
11291 (realloc_register_cache, set_register_cache): Delete.
11292 (registers_to_string, registers_from_string): Adjust.
11293 (find_register_by_name, find_regno, find_register_by_number)
11294 (register_cache_size): Add target_desc parameter, and use it.
11295 (free_register_cache_thread, free_register_cache_thread_one)
11296 (regcache_release, register_cache_size): New.
11297 (register_size): Add target_desc parameter, and use it.
11298 (register_data, supply_register, supply_register_zeroed)
11299 (supply_regblock, supply_register_by_name, collect_register)
11300 (collect_register_as_string, collect_register_by_name): Adjust.
11301 * regcache.h (struct target_desc): Forward declare.
11302 (struct regcache) <tdesc>: New field.
11303 (init_register_cache, new_register_cache): Add target_desc
11305 (regcache_invalidate_thread): Declare.
11306 (regcache_invalidate_one): Delete declaration.
11307 (regcache_release): Declare.
11308 (find_register_by_number, register_cache_size, register_size)
11309 (find_regno): Add target_desc parameter.
11310 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
11312 * remote-utils.c: Include tdesc.h.
11313 (outreg, prepare_resume_reply): Adjust.
11314 * server.c: Include tdesc.h.
11315 (gdbserver_xmltarget): Delete declaration.
11316 (get_features_xml, process_serial_event): Adjust.
11317 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
11319 (struct process_info) <tdesc>: New field.
11320 (ipa_tdesc): Declare.
11321 * tdesc.c: New file.
11322 * tdesc.h: New file.
11323 * tracepoint.c: Include tdesc.h.
11324 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
11325 (get_context_regcache): Adjust to pass ipa_tdesc down.
11326 (do_action_at_tracepoint): Adjust to get the register cache size
11327 from the context regcache's description.
11328 (traceframe_walk_blocks): Adjust to get the register cache size
11329 from the current trace frame's description.
11330 (traceframe_get_pc): Adjust to get current trace frame's
11331 description and pass it down.
11332 (gdb_collect): Adjust to get the register cache size from the
11334 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
11335 (gdbserver_xmltarget): Delete.
11336 (initialize_low_tracepoint): Set the ipa's target description.
11337 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
11338 (initialize_low_tracepoint): Set the ipa's target description.
11339 * linux-x86-low.c: Include tdesc.h.
11340 [__x86_64__] (is_64bit_tdesc): New.
11341 (ps_get_thread_area, x86_get_thread_area): Use it.
11342 (i386_cannot_store_register): Rename to ...
11343 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
11344 (i386_cannot_fetch_register): Rename to ...
11345 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
11346 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
11348 (target_regsets): Rename to ...
11349 (x86_regsets): ... this.
11350 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11352 (x86_siginfo_fixup): Use is_64bit_tdesc.
11353 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11354 (tdesc_x32_avx_linux, tdesc_x32_linux)
11355 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11357 (x86_linux_update_xmltarget): Delete.
11358 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11359 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11360 (AMD64_LINUX_USER64_CS): New.
11361 (x86_linux_read_description): New, based on
11362 x86_linux_update_xmltarget.
11363 (same_process_callback): New.
11364 (x86_arch_setup_process_callback): New.
11365 (x86_linux_update_xmltarget): New.
11366 (x86_regsets_info): New.
11367 (amd64_linux_regs_info): New.
11368 (i386_linux_usrregs_info): New.
11369 (i386_linux_regs_info): New.
11370 (x86_linux_regs_info): New.
11371 (x86_arch_setup): Reimplement.
11372 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
11373 (x86_emit_ops): Ditto.
11374 (the_low_target): Adjust. Install x86_linux_regs_info,
11375 x86_cannot_fetch_register, and x86_cannot_store_register.
11376 (initialize_low_arch): New.
11377 * linux-ia64-low.c (tdesc_ia64): Declare.
11378 (ia64_fetch_register): Adjust.
11379 (ia64_usrregs_info, regs_info): New globals.
11380 (ia64_regs_info): New function.
11381 (the_low_target): Adjust.
11382 (initialize_low_arch): New function.
11383 * linux-sparc-low.c (tdesc_sparc64): Declare.
11384 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
11386 (sparc_arch_setup): New function.
11387 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
11388 (the_low_target): Adjust.
11389 (initialize_low_arch): New function.
11390 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
11391 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
11392 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
11393 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
11394 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
11395 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
11396 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
11397 (tdesc_powerpc_isa205_vsx64l): Declare.
11398 (ppc_cannot_store_register, ppc_collect_ptrace_register)
11399 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
11400 (ppc_set_pc, ppc_get_hwcap): Adjust.
11401 (ppc_usrregs_info): Forward declare.
11402 (!__powerpc64__) ppc_regmap_adjusted: New global.
11403 (ppc_arch_setup): Adjust to the current process'es target
11405 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
11406 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
11407 (ppc_store_evrregset): Adjust.
11408 (target_regsets): Rename to ...
11409 (ppc_regsets): ... this, and make static.
11410 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
11411 (ppc_regs_info): New function.
11412 (the_low_target): Adjust.
11413 (initialize_low_arch): New function.
11414 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
11415 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
11416 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
11417 (tdesc_s390x_linux64v2): Declare.
11418 (s390_collect_ptrace_register, s390_supply_ptrace_register)
11419 (s390_fill_gregset, s390_store_last_break): Adjust.
11420 (target_regsets): Rename to ...
11421 (s390_regsets): ... this, and make static.
11422 (s390_get_pc, s390_set_pc): Adjust.
11423 (s390_get_hwcap): New target_desc parameter, and use it.
11424 [__s390x__] (have_hwcap_s390_high_gprs): New global.
11425 (s390_arch_setup): Adjust to set the current process'es target
11426 description. Don't adjust the regmap.
11427 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
11428 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
11429 (regs_info_3264): New globals.
11430 (s390_regs_info): New function.
11431 (the_low_target): Adjust.
11432 (initialize_low_arch): New function.
11433 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11434 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11435 [__mips64] (init_registers_mips_linux)
11436 (init_registers_mips_dsp_linux): Delete defines.
11437 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11438 (have_dsp): New global.
11439 (mips_read_description): New, based on mips_arch_setup.
11440 (mips_arch_setup): Reimplement.
11441 (get_usrregs_info): New function.
11442 (mips_cannot_fetch_register, mips_cannot_store_register)
11443 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11444 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11445 (target_regsets): Rename to ...
11446 (mips_regsets): ... this, and make static.
11447 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11448 (dsp_regs_info, regs_info): New globals.
11449 (mips_regs_info): New function.
11450 (the_low_target): Adjust.
11451 (initialize_low_arch): New function.
11452 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11453 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11455 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11456 (arm_read_description): New, with bits factored from
11458 (arm_arch_setup): Reimplement.
11459 (target_regsets): Rename to ...
11460 (arm_regsets): ... this, and make static.
11461 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11462 (arm_regs_info): New function.
11463 (the_low_target): Adjust.
11464 (initialize_low_arch): New function.
11465 * linux-m68k-low.c (tdesc_m68k): Declare.
11466 (target_regsets): Rename to ...
11467 (m68k_regsets): ... this, and make static.
11468 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11469 (m68k_regs_info): New function.
11470 (m68k_arch_setup): New function.
11471 (the_low_target): Adjust.
11472 (initialize_low_arch): New function.
11473 * linux-sh-low.c (tdesc_sharch): Declare.
11474 (target_regsets): Rename to ...
11475 (sh_regsets): ... this, and make static.
11476 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11477 (sh_regs_info, sh_arch_setup): New functions.
11478 (the_low_target): Adjust.
11479 (initialize_low_arch): New function.
11480 * linux-bfin-low.c (tdesc_bfin): Declare.
11481 (bfin_arch_setup): New function.
11482 (bfin_usrregs_info, regs_info): New globals.
11483 (bfin_regs_info): New function.
11484 (the_low_target): Adjust.
11485 (initialize_low_arch): New function.
11486 * linux-cris-low.c (tdesc_cris): Declare.
11487 (cris_arch_setup): New function.
11488 (cris_usrregs_info, regs_info): New globals.
11489 (cris_regs_info): New function.
11490 (the_low_target): Adjust.
11491 (initialize_low_arch): New function.
11492 * linux-cris-low.c (tdesc_crisv32): Declare.
11493 (cris_arch_setup): New function.
11494 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
11495 (cris_regs_info): New function.
11496 (the_low_target): Adjust.
11497 (initialize_low_arch): New function.
11498 * linux-m32r-low.c (tdesc_m32r): Declare.
11499 (m32r_arch_setup): New function.
11500 (m32r_usrregs_info, regs_info): New globals.
11501 (m32r_regs_info): Adjust.
11502 (initialize_low_arch): New function.
11503 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
11504 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
11505 (tic6x_usrregs_info): Forward declare.
11506 (tic6x_read_description): New function, based on ...
11507 (tic6x_arch_setup): ... this. Reimplement.
11508 (target_regsets): Rename to ...
11509 (tic6x_regsets): ... this, and make static.
11510 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
11511 (tic6x_regs_info): New function.
11512 (the_low_target): Adjust.
11513 (initialize_low_arch): New function.
11514 * linux-xtensa-low.c (tdesc_xtensa): Declare.
11515 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
11516 (target_regsets): Rename to ...
11517 (xtensa_regsets): ... this, and make static.
11518 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
11520 (xtensa_arch_setup, xtensa_regs_info): New functions.
11521 (the_low_target): Adjust.
11522 (initialize_low_arch): New function.
11523 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
11524 (nios2_arch_setup): Set the current process'es tdesc.
11525 (target_regsets): Rename to ...
11526 (nios2_regsets): ... this.
11527 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
11528 (nios2_regs_info): New function.
11529 (the_low_target): Adjust.
11530 (initialize_low_arch): New function.
11531 * linux-aarch64-low.c (tdesc_aarch64): Declare.
11532 (aarch64_arch_setup): Set the current process'es tdesc.
11533 (target_regsets): Rename to ...
11534 (aarch64_regsets): ... this.
11535 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
11536 (aarch64_regs_info): New function.
11537 (the_low_target): Adjust.
11538 (initialize_low_arch): New function.
11539 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
11541 (target_regsets): Rename to ...
11542 (tile_regsets): ... this.
11543 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
11544 (tile_regs_info): New function.
11545 (tile_arch_setup): Set the current process'es tdesc.
11546 (the_low_target): Adjust.
11547 (initialize_low_arch): New function.
11548 * spu-low.c (tdesc_spu): Declare.
11549 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
11550 * win32-arm-low.c (tdesc_arm): Declare.
11551 (arm_arch_setup): New function.
11552 (the_low_target): Install arm_arch_setup instead of
11553 init_registers_arm.
11554 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
11555 (init_windows_x86): Rename to ...
11556 (i386_arch_setup): ... this. Set `win32_tdesc'.
11557 (the_low_target): Adjust.
11558 * win32-low.c (win32_tdesc): New global.
11559 (child_add_thread): Don't create the thread cache here.
11560 (do_initial_child_stuff): Set the new process'es tdesc.
11561 * win32-low.h (struct target_desc): Forward declare.
11562 (win32_tdesc): Declare.
11563 * lynx-i386-low.c (tdesc_i386): Declare global.
11564 (lynx_i386_arch_setup): Set `lynx_tdesc'.
11565 * lynx-low.c (lynx_tdesc): New global.
11566 (lynx_add_process): Set the new process'es tdesc.
11567 * lynx-low.h (struct target_desc): Forward declare.
11568 (lynx_tdesc): Declare global.
11569 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
11570 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
11571 * nto-low.c (nto_tdesc): New global.
11572 (do_attach): Set the new process'es tdesc.
11573 * nto-low.h (struct target_desc): Forward declare.
11574 (nto_tdesc): Declare.
11575 * nto-x86-low.c (tdesc_i386): Declare.
11576 (nto_x86_arch_setup): Set `nto_tdesc'.
11578 2013-06-04 Gary Benson <gbenson@redhat.com>
11580 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
11581 to qSupported response when appropriate.
11582 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
11583 with nonzero-length annex.
11584 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
11585 arguments supplied in annex.
11587 2013-05-31 Doug Evans <dje@google.com>
11590 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
11591 64 bits in 64-cross-32 environment.
11593 2013-05-28 Pedro Alves <palves@redhat.com>
11595 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
11596 (aarch64-without-fpu.c): Delete rule.
11597 * configure.srv (aarch64*-*-linux*): Remove references to
11598 aarch64-without-fpu.o and aarch64-without-fpu.xml.
11599 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
11602 2013-05-24 Pedro Alves <palves@redhat.com>
11604 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
11605 instead of strchr/decode_address. Error if the range isn't split
11606 with a ','. Don't assume there's be a ':' in the action.
11608 2013-05-23 Yao Qi <yao@codesourcery.com>
11609 Pedro Alves <palves@redhat.com>
11611 * linux-low.c (lwp_in_step_range): New function.
11612 (linux_wait_1): If the thread was range stepping and stopped
11613 outside the stepping range, report the stop to GDB. Otherwise,
11614 continue stepping. Add range stepping debug output.
11615 (linux_set_resume_request): Copy the step range from the resume
11616 request to the lwp.
11617 (linux_supports_range_stepping): New.
11618 (linux_target_ops) <supports_range_stepping>: Set to
11619 linux_supports_range_stepping.
11620 * linux-low.h (struct linux_target_ops)
11621 <supports_range_stepping>: New field.
11622 (struct lwp_info) <step_range_start, step_range_end>: New fields.
11623 * linux-x86-low.c (x86_supports_range_stepping): New.
11624 (the_low_target) <supports_range_stepping>: Set to
11625 x86_supports_range_stepping.
11626 * server.c (handle_v_cont): Handle 'r' action.
11627 (handle_v_requests): Append ";r" if the target supports range
11629 * target.h (struct thread_resume) <step_range_start,
11630 step_range_end>: New fields.
11631 (struct target_ops) <supports_range_stepping>:
11633 (target_supports_range_stepping): New macro.
11635 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11637 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
11638 confusion in comment.
11640 2013-05-17 Joel Brobecker <brobecker@adacore.com>
11642 * lynx-low.c (struct process_info_private): New type.
11643 (lynx_add_process): New function.
11644 (lynx_create_inferior, lynx_attach): Replace calls to
11645 add_process by calls to lynx_add_process.
11646 (lynx_resume): If PTID is null, then try using
11647 current_process()->private->last_wait_event_ptid.
11649 (lynx_clear_inferiors): Delete. The contents of that function
11650 has been inlined in lynx_mourn;
11651 (lynx_wait_1): Save the ptid in the process's private data.
11652 (lynx_mourn): Free the process' private data. Replace call
11653 to lynx_clear_inferiors by call to clear_inferiors.
11655 2013-05-17 Yao Qi <yao@codesourcery.com>
11657 * i386-low.c (i386_length_and_rw_bits): Move the comment to
11660 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
11662 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
11663 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
11664 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
11665 PT_TEXT_END_ADDR guards. Update comments.
11666 (linux_target_op) <read_offsets>: Conditionally define to
11667 linux_read_offsets if the target is UCLIBC and if it defines
11668 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
11670 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
11671 Andrew Jenner <andrew@codesourcery.com>
11673 * Makefile.in (SFILES): Add linux-nios2-low.c.
11674 (clean): Add action to delete nios2-linux.c.
11675 (nios2-linux.c): New rule.
11676 * configure.srv: Add nios2*-*-linux*.
11677 * linux-nios2-low.c: New.
11679 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
11681 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
11683 2013-04-25 Hui Zhu <hui@codesourcery.com>
11686 * ax.c (ax_printf): Add fflush.
11688 2013-04-22 Tom Tromey <tromey@redhat.com>
11690 * Makefile.in (SFILES): Add filestuff.c.
11691 (OBS): Add filestuff.o.
11692 (filestuff.o): New target.
11693 * config.in, configure: Rebuild.
11694 * configure.ac: Check for fdwalk, pipe2.
11696 2013-04-17 Pedro Alves <palves@redhat.com>
11698 * configure.ac (USE_THREAD_DB): Delete variable.
11699 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
11700 Don't AC_SUBST USE_THREAD_DB.
11701 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
11702 * config.in, configure: Regenerate.
11704 2013-04-16 Pedro Alves <palves@redhat.com>
11706 * linux-low.h (struct lwp_info) <thread_known>: Move under
11707 the USE_THREAD_DB #ifdef.
11709 2013-04-16 Pedro Alves <palves@redhat.com>
11711 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
11712 (linux-low.o): Delete rule.
11713 * linux-low.h: Always include "gdb_thread_db.h" instead of
11714 conditionally including thread_db.h.
11715 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
11718 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11720 * Makefile.in (install-only): Fix make install regression.
11722 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11724 Convert man pages to texinfo, new gdbinit.5 texinfo page.
11725 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
11727 * gdbserver.1: Remove.
11729 2013-03-22 Pedro Alves <palves@redhat.com>
11731 * linux-low.c (handle_extended_wait): Don't call
11732 linux_enable_event_reporting.
11734 2013-03-15 Tony Theodore <tonyt@logyst.com>
11737 * Makefile.in (SHELL): Use @SHELL@.
11739 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
11741 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
11744 2013-03-13 Joel Brobecker <brobecker@adacore.com>
11746 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
11747 Remove extraneous NULL element.
11749 2013-03-13 Yao Qi <yao@codesourcery.com>
11751 * tracepoint.c (traceframe_read_tsv): Look for the last matched
11752 'V' block in trace frame.
11754 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11756 * target.h (struct target_ops): Add btrace ops.
11757 (target_supports_btrace): New macro.
11758 (target_enable_btrace): New macro.
11759 (target_disable_btrace): New macro.
11760 (target_read_btrace): New macro.
11761 * gdbthread.h (struct thread_info): Add btrace field.
11762 * server.c: Include btrace-common.h.
11763 (handle_btrace_general_set): New function.
11764 (handle_btrace_enable): New function.
11765 (handle_btrace_disable): New function.
11766 (handle_general_set): Call handle_btrace_general_set.
11767 (handle_qxfer_btrace): New function.
11768 (struct qxfer qxfer_packets[]): Add btrace entry.
11769 * inferiors.c (remove_thread): Disable btrace.
11770 * linux-low: Include linux-btrace.h.
11771 (linux_low_enable_btrace): New function.
11772 (linux_low_read_btrace): New function.
11773 (linux_target_ops): Add btrace ops.
11774 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
11775 Add srv_linux_btrace=yes.
11776 (x86_64-*-linux*): Add linux-btrace.o.
11777 Add srv_linux_btrace=yes.
11778 * configure.ac: Define HAVE_LINUX_BTRACE.
11779 * config.in: Regenerated.
11780 * configure: Regenerated.
11782 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11784 * server.c (handle_qxfer): Preserve error message if -3 is
11786 (qxfer): Document the -3 return value.
11788 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11790 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
11791 (linux_btrace_h): New variable.
11792 (linux-btrace.o): New rule.
11794 2013-03-08 Stan Shebs <stan@codesourcery.com>
11795 Hafiz Abid Qadeer <abidh@codesourcery.com>
11797 * tracepoint.c (trace_buffer_size): New global.
11798 (DEFAULT_TRACE_BUFFER_SIZE): New define.
11799 (init_trace_buffer): Change to one-argument function. Allocate
11800 trace buffer memory.
11801 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
11802 handle QTBuffer:size packet.
11803 (cmd_bigqtbuffer_size): New function.
11804 (initialize_tracepoint): Call init_trace_buffer with
11805 DEFAULT_TRACE_BUFFER_SIZE.
11806 * server.c (handle_query): Add QTBuffer:size in the
11809 2013-03-07 Yao Qi <yao@codesourcery.com>
11811 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
11812 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
11814 (cmd_qtsp): Adjust condition. Do post increment.
11815 Set cur_action and cur_step_action back to 0.
11817 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
11820 * linux-low.c (linux_write_memory): Return early success if LEN is
11823 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
11825 * configure.srv: Add x86_64-*-cygwin* as target.
11827 2013-02-28 Tom Tromey <tromey@redhat.com>
11829 * configure.ac: Invoke AC_SYS_LARGEFILE.
11830 * configure, config.in: Rebuild.
11832 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
11834 * win32-low.c: Throughout, fix format strings and casts of
11835 printf-like functions to avoid type related warnings on all
11837 (get_child_debug_event): Print dwDebugEventCode as hex since
11838 that's how it's usually documented.
11840 2013-02-28 Yao Qi <yao@codesourcery.com>
11842 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
11845 2013-02-27 Jiong Wang <jiwang@tilera.com>
11847 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
11848 (reg-tilegx32.c): New rule.
11849 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
11850 * linux-tile-low.c (tile_arch_setup): New function. Invoke
11851 different register info initializer according to elf class.
11852 (init_registers_tilgx32): New function. The tilegx32 register info
11854 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
11855 (tile_store_gregset): Likewise.
11857 2013-02-27 Yao Qi <yao@codesourcery.com>
11859 * server.c (process_point_options): Print debug message when
11860 debug_threads is true.
11862 2013-02-26 Yao Qi <yao@codesourcery.com>
11864 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
11866 2013-02-19 Pedro Alves <palves@redhat.com>
11867 Kai Tietz <ktietz@redhat.com>
11871 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
11872 instead of strtoul to extract address from packet.
11873 (process_serial_event) <'z'>: Likewise.
11875 2013-02-18 Yao Qi <yao@codesourcery.com>
11877 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
11879 2013-02-14 Pedro Alves <palves@redhat.com>
11883 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
11884 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
11886 2013-02-14 Pedro Alves <palves@redhat.com>
11888 * tracepoint.c (cmd_qtdpsrc): Use savestring.
11890 2013-02-14 Pedro Alves <palves@redhat.com>
11892 * tracepoint.c (save_string): Delete.
11893 (add_tracepoint_action): Use savestring instead of save_string.
11895 2013-02-12 Pedro Alves <palves@redhat.com>
11897 * linux-xtensa-low.c: Ditto.
11898 * xtensa-xtregs.c: Ditto.
11900 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11902 * thread-db.c (thread_db_get_tls_address): NULL pointer check
11905 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11907 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
11908 aarch64_num_wp_regs and aarch64_num_bp_regs to
11909 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
11911 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11913 * linux-aarch64-low.c (ps_get_thread_area): Replace
11914 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
11916 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11917 Marcus Shawcroft <marcus.shawcroft@arm.com>
11918 Nigel Stephens <nigel.stephens@arm.com>
11919 Yufeng Zhang <yufeng.zhang@arm.com>
11921 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
11922 (aarch64.c, aarch64-without-fpu.c): New targets.
11923 * configure.srv (aarch64*-*-linux*): New.
11924 * linux-aarch64-low.c: New file.
11926 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
11928 * linux-low.c (handle_extended_wait, linux_create_inferior)
11929 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
11930 (dequeue_one_deferred_signal, linux_resume_one_thread)
11931 (fetch_register, linux_write_memory, linux_enable_event_reporting)
11932 (linux_tracefork_grandchild, linux_test_for_tracefork)
11933 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
11934 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
11935 where the argument is 0.
11937 2013-01-25 Yao Qi <yao@codesourcery.com>
11939 * event-loop.c: Include "queue.h".
11940 (gdb_event_p): New typedef.
11941 (struct gdb_event) <next_event>: Remove.
11942 (event_queue): Change to QUEUE(gdb_event_p).
11943 (async_queue_event): Remove.
11944 (gdb_event_xfree): New.
11945 (initialize_event_loop): New.
11946 (process_event): Use API from QUEUE.
11947 (wait_for_event): Likewise.
11948 * server.c (main): Call initialize_event_loop.
11949 * server.h (initialize_event_loop): Declare.
11951 2013-01-18 Yao Qi <yao@codesourcery.com>
11953 * ax.h (struct eval_agent_expr_context): New.
11954 (gdb_eval_agent_expr): Update declaration.
11955 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
11956 TFRAME. Add new argument CTX.
11957 * server.h (struct eval_agent_expr_context): Declare.
11958 (agent_mem_read, agent_tsv_read): Update declaration.
11959 (agent_mem_read_string): Likewise.
11960 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
11961 (add_traceframe_block): Add new argument TPOINT.
11962 Increase TPOINT->traceframe_usage.
11963 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
11964 eval_tracepoint_agent_expr.
11965 (condition_true_at_tracepoint): Likewise.
11966 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
11967 (agent_mem_read_string, agent_tsv_read): Likewise.
11969 2013-01-16 Yao Qi <yao@codesourcery.com>
11971 * linux-low.c (linux_resume_one_lwp): Don't check
11972 'lwp->bp_reinsert != 0'.
11974 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11975 Pedro Alves <palves@redhat.com>
11977 * lynx-low.c (ptrace_request_to_str): Define a temporary
11978 macro and use it to simplify this function's implementation.
11980 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11982 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
11985 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11987 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
11989 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11991 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
11993 2013-01-07 Joel Brobecker <brobecker@adacore.com>
11995 * lynx-low.c (lynx_resume): Use the resume_info parameter
11996 to determine the ptid for the lynx_ptrace call, unless
11997 it is equal to minus_one_ptid, in which case we use the
11998 ptid of the current_inferior.
11999 (lynx_wait_1): After having received a thread create/exit
12000 event, resume the inferior's execution using the signaling
12001 thread's ptid, rather than the old ptid.
12003 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12005 * lynx-low.c (lynx_resume): Delete variable ret.
12007 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12009 * gdbreplay.c (gdbreplay_version): Update copyright year.
12010 * server.c (gdbserver_version): Likewise.
12012 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12014 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12017 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12019 * lynx-low.c (ptrace_request_to_str): Add handling for
12020 PTRACE_GETTRACESIG.
12022 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12024 * lynx-low.c (lynx_attach): Delete variable new_process.
12026 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12028 * lynx-low.c (lynx_create_inferior): Delete variable
12031 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12033 * lynx-low.c (ptrace_request_to_str): Do not handle
12034 PTRACE_GETTHREADLIST if this macro does not exist.
12036 2012-12-15 Yao Qi <yao@codesourcery.com>
12038 * Makefile.in (OBS): Add notif.o.
12039 * notif.c, notif.h: New.
12040 * server.c: Include "notif.h".
12041 (struct vstop_notif) <next>: Remove.
12043 (queue_stop_reply): Update.
12044 (push_event, send_next_stop_reply): Remove.
12045 (discard_queued_stop_replies): Update.
12046 (notif_stop): New variable.
12047 (handle_v_stopped): Remove.
12048 (handle_v_requests): Don't call handle_v_stopped. Call
12049 handle_ack_notif instead.
12050 (queue_stop_reply_callback): Call notif_event_enque instead
12051 of queue_stop_reply.
12052 (handle_status): Don't call send_next_stop_reply, call
12053 notif_write_event instead.
12054 (kill_inferior_callback): Likewise.
12055 (detach_or_kill_inferior_callback): Likewise.
12056 (main): Call initialize_notif.
12057 (process_serial_event): Call QUEUE_is_empty.
12058 (handle_target_event): Call notif_push instead of push event.
12059 * server.h (push_event): Remove declaration.
12061 2012-12-10 Tom Tromey <tromey@redhat.com>
12063 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12064 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12067 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12068 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12069 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12070 (amd64-linux-ipa.o, ax.o): Rewrite.
12071 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12072 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12073 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12074 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12075 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12076 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12077 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12078 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12079 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12080 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12081 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12082 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12083 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12084 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12085 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12086 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12087 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12088 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12089 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12090 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12091 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12092 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12093 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12094 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12095 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12096 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12097 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12098 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12099 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
12100 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
12101 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
12102 (reg-tilegx.o): Remove.
12103 (all_object_files): New macro.
12104 Include .deps files.
12105 * aclocal.m4, configure: Rebuild.
12106 * acinclude.m4: Include depstand.m4, lead-dot.m4.
12107 * configure.ac: Invoke ZW_CREATE_DEPDIR,
12108 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
12110 2012-12-05 Tom Tromey <tromey@redhat.com>
12113 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12115 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
12117 * configure.ac: Check for linux/perf_event.h.
12118 * config.in: Regenerated.
12119 * configure: Regenerated.
12121 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12123 * hostio.c (handle_readlink): Decrease buffer size
12124 parameter passed to readlink by one byte.
12126 2012-11-26 Yao Qi <yao@codesourcery.com>
12128 * configure.ac (build_warnings): Append '-Wempty-body'.
12129 * configure: Regenerated.
12130 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12133 2012-11-15 Pierre Muller <muller@sourceware.org>
12135 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
12136 * config.in: Regenerate.
12137 * configure: Regenerate.
12138 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
12139 Use "gdb_wait.h" header instead of <sys/wait.h> header.
12140 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12141 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
12143 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
12144 instead of <sys/wait.h> header.
12145 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12147 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
12149 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12150 (various make rules): Remove -DGDBSERVER
12152 2012-11-09 Yao Qi <yao@codesourcery.com>
12154 * spu-low.c (current_ptid): Move it to ..
12155 * gdbthread.h: ... here. New.
12156 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
12157 * server.c (myresume, process_serial_event): Likewise.
12158 * thread-db.c (thread_db_find_new_threads): Likewise.
12159 * tracepoint.c (run_inferior_command): Likewise.
12161 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
12163 * server.c (handle_search_memory_1): Include access length in
12166 2012-09-05 Michael Brandt <michael.brandt@axis.com>
12168 * linux-crisv32-low.c: Fix compile errors.
12170 2012-09-04 Yao Qi <yao@codesourcery.com>
12172 * tracepoint.c (cmd_qtsv): Adjust debug message.
12173 Don't check CUR_TPOINT.
12175 2012-08-28 Yao Qi <yao@codesourcery.com>
12177 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
12178 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
12179 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
12180 Remove declarations of xmalloc, xreallloc, xstrdup and
12182 * Makefile.in (libiberty_h): New.
12183 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
12184 (linux-bfin-low.o): Append dependency 'libiberty.h'.
12186 2012-08-23 Yao Qi <yao@codesourcery.com>
12188 * server.h: Remove declaration of 'xsnprintf'.
12190 2012-08-22 Keith Seitz <keiths@redhat.com>
12192 * server.h: Include build-gnulib-gbserver/config.h.
12193 * gdbreplay.c: Likewise.
12195 2012-08-08 Doug Evans <dje@google.com>
12197 * Makefile.in (SFILES): Add gdb_vecs.c.
12198 (OBS): Add gdb_vecs.o.
12199 (gdb_vecs_h, host_defs_h): New variables.
12200 (thread-db.o): Add $(gdb_vecs_h) dependency.
12201 (gdb_vecs.o): New rule.
12202 * thread-db.c: #include "gdb_vecs.h".
12203 (thread_db_load_search): Use a vector to iterate over path elements.
12204 Handle text appearing after "$pdir".
12206 * configure.ac: Add check for strstr.
12207 * config.in: Regenerate.
12208 * configure: Regenerate.
12210 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12212 * hostio.c (handle_pread): If pread fails, fall back to attempting
12214 (handle_pwrite): Likewise for pwrite.
12216 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12218 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
12219 between unsupported TYPE and unimplementable ADDR/LEN combination.
12220 (arm_insert_point): Act on new return value.
12222 2012-07-31 Pedro Alves <palves@redhat.com>
12224 * server.c (process_point_options): Only skip tokens if we find
12225 one that is unrecognized. Don't treat 'X' specially while
12226 skipping unrecognized tokens.
12228 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12230 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12231 to 4-byte-align HW breakpoint addresses for Thumb.
12233 2012-07-27 Yao Qi <yao@codesourcery.com>
12237 * server.h: Declare gdb_agent_about_to_close.
12238 * target.c (kill_inferior): Include "agent.h".
12239 New. Send command 'kill'.
12240 * target.h (kill_inferior): Removed macro.
12241 * tracepoint.c (gdb_agent_about_to_close): New.
12242 (gdb_agent_helper_thread): Handle command 'close'.
12243 Wait endlessly until the inferior stops.
12244 Install gdb_agent_remove_socket to atexit hook.
12245 (agent_socket_name): New static variable.
12246 (gdb_agent_socket_init): Replace local variable 'name' with
12247 'agent_socket_name'.
12248 (gdb_agent_remove_socket): New.
12250 2012-07-27 Yao Qi <yao@codesourcery.com>
12252 * server.c (process_point_options): Stop at 'X' when parsing.
12254 2012-07-19 Michael Eager <eager@eagercon.com>
12256 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
12258 * linux-x86-low.c (x86_insert_point, x86_remove_point):
12259 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
12260 hardware breakpoint.
12262 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12264 * gdbserver/linux-low.c (initialize_low): Call
12265 linux_ptrace_init_warnings.
12267 2012-07-02 Doug Evans <dje@google.com>
12269 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12272 2012-07-02 Stan Shebs <stan@codesourcery.com>
12274 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12275 (ax.o): Add it to build rule.
12277 (OBS): Add format.o.
12278 (IPA_OBS): Add format.o.
12279 * server.c (handle_query): Claim support for breakpoint commands.
12280 (process_point_options): Add command case.
12281 (process_serial_event): Leave running if there are printfs in
12283 * mem-break.h (any_persistent_commands): Declare.
12284 (add_breakpoint_commands): Declare.
12285 (gdb_no_commands_at_breakpoint): Declare.
12286 (run_breakpoint_commands): Declare.
12287 * mem-break.c (struct point_command_list): New struct.
12288 (struct breakpoint): New field command_list.
12289 (any_persistent_commands): New function.
12290 (add_commands_to_breakpoint): New function.
12291 (add_breakpoint_commands): New function.
12292 (gdb_no_commands_at_breakpoint): New function.
12293 (run_breakpoint_commands): New function.
12294 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
12296 * ax.c: Include format.h.
12297 (ax_printf): New function.
12298 (gdb_eval_agent_expr): Add printf opcode.
12300 2012-06-13 Yao Qi <yao@codesourcery.com>
12302 * server.c (start_inferior): Remove duplicated writes to fields
12303 'last_resume_kind' and 'last_status' of 'current_inferior'.
12305 2012-06-12 Yao Qi <yao@codesourcery.com>
12306 Pedro Alves <palves@redhat.com>
12308 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12310 * server.c (handle_v_cont): Extend comment.
12312 2012-06-11 Yao Qi <yao@codesourcery.com>
12314 * linux-low.c (linux_attach): Add 'static'.
12316 2012-06-06 Yao Qi <yao@codesourcery.com>
12318 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12320 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12322 Fix gcc -flto compilation warning.
12323 * server.c (main): Make variable multi_mode and attach volatile.
12325 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12327 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12328 if the platform doesn't know about it.
12330 2012-05-30 Jeff Kenton <jkenton@tilera.com>
12332 * Makefile.in (SFILES): Add linux-tile-low.c.
12333 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
12334 * configure.srv: Handle tilegx-*-linux*.
12335 * linux-tile-low.c: New file.
12337 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12339 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12341 2012-05-24 Pedro Alves <palves@redhat.com>
12345 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
12347 2012-05-24 Pedro Alves <palves@redhat.com>
12351 Replace target_signal with gdb_signal throughout.
12353 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12355 * linux-low.c (linux_store_registers): Avoid the copying sequence
12356 when no data has been retrieved by ptrace.
12358 2012-05-22 Will Deacon <will.deacon@arm.com>
12360 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12361 Include asm/ptrace.h.
12362 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12365 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12367 * linux-low.c (linux_store_registers): Don't re-retrieve data
12368 with ptrace that has already been obtained from /proc. Always
12369 copy any data retrieved with ptrace to the buffer supplied.
12371 2012-05-11 Yao Qi <yao@codesourcery.com>
12372 Pedro Alves <palves@redhat.com>
12374 * linux-low.c (enum stopping_threads_kind): New.
12375 (stopping_threads): Change type to `enum stopping_threads_kind'.
12376 (handle_extended_wait): If stopping and suspending threads, leave
12377 the new_lwp suspended too.
12378 (linux_wait_for_event): Adjust.
12379 (stop_all_lwps): Set `stopping_threads' to
12380 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
12381 whether we're suspending threads or just stopping them. Assert no
12384 2012-04-29 Yao Qi <yao@codesourcery.com>
12386 * server.h: Move some code to ...
12387 * gdbthread.h: ... here. New.
12388 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
12389 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
12390 (nto-low.o, win32-low.o): Likewise.
12391 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
12392 * regcache.c, remote-utils.c, server.c: Likewise.
12393 * target.c, tracepoint.c, win32-low.c: Likewise.
12395 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12397 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
12398 (PTRACE_ARG4_TYPE): Likewise.
12399 (PTRACE_XFER_TYPE): Likewise.
12400 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
12401 ptrace to PTRACE_ARG3_TYPE.
12402 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
12403 (PTRACE_ARG4_TYPE): Likewise.
12404 (PTRACE_XFER_TYPE): Likewise.
12405 (linux_detach_one_lwp): Cast fourth argument of
12406 ptrace to long then PTRACE_ARG4_TYPE.
12407 (regsets_fetch_inferior_registers): Cast third argument of
12408 ptrace to long then PTRACE_ARG3_TYPE.
12409 (regsets_store_inferior_registers): Likewise.
12411 2012-04-20 Pedro Alves <palves@redhat.com>
12413 * configure: Regenerate.
12415 2012-04-19 Pedro Alves <palves@redhat.com>
12417 * Makefile.in (GNULIB_BUILDDIR): New.
12418 (LIBGNU, INCGNU, GNULIB_H): Adjust.
12419 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
12420 (all, install-only, uninstall, clean-info, all-lib, clean): No
12421 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
12422 (maintainer-clean realclean distclean): Use subdir_do.
12424 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
12425 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
12426 * acinclude.m4: Include acx_configure_dir.m4.
12427 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
12428 calls. Call AC_PROG_RANLIB. Configure gnulib using
12431 (GNULIB_STDINT_H): Adjust.
12432 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12433 * gdbreplay.c: Include build-gnulib/config.h.
12434 * server.h: Likewise.
12435 * aclocal.m4: Regenerate.
12436 * config.in: Regenerate.
12437 * configure: Regenerate.
12439 2012-04-19 Pedro Alves <palves@redhat.com>
12441 * Makefile.in (LIBGNU, INCGNU): Adjust.
12442 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12443 (all, install-only, uninstall, clean-info, all-lib, clean)
12444 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12445 * configure.ac: Adjust AC_OUTPUT output.
12446 * aclocal.m4: Regenerate.
12447 * configure: Regenerate.
12449 2012-04-19 Pedro Alves <palves@redhat.com>
12451 * Makefile.in (generated_files): New.
12452 (server_h): Remove the explicit dependency on config.h, and depend
12453 on $generated_files.
12455 2012-04-19 Pedro Alves <palves@redhat.com>
12457 * Makefile.in (INCGNU): Add -Ignulib.
12459 2012-04-19 Pedro Alves <palves@redhat.com>
12461 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12462 (INCGNU): ... this, and spell out -I here.
12463 (GNULIB_LIB): Rename to ...
12464 (LIBGNU): ... this.
12465 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12467 2012-04-19 Pedro Alves <palves@redhat.com>
12469 * config.in: Regenerate.
12471 2012-04-19 Pedro Alves <palves@redhat.com>
12473 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12474 * server.h (memmem): Remove declaration.
12475 * config.in: Regenerate.
12476 * configure: Regenerate.
12478 2012-04-19 Yao Qi <yao@codesourcery.com>
12480 * Makefile.in (SFILES): Add common/vec.c.
12484 2012-04-19 Yao Qi <yao@codesourcery.com>
12486 * remote-utils.c (prepare_resume_reply): Replace with macro
12487 target_core_of_thread.
12488 * server.c (handle_qxfer_threads_proper): Likewise.
12489 * target.h (traget_core_of_thread): New macro.
12491 2012-04-18 Pedro Alves <palves@redhat.com>
12493 * aclocal.m4: Regenerate.
12494 * configure: Regenerate.
12496 2012-04-16 Yao Qi <yao@codesourcery.com>
12498 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
12499 duplicated on address.
12501 2012-04-16 Yao Qi <yao@codesourcery.com>
12503 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
12504 (struct tracepoint_action_ops) <send>: New field.
12505 (m_tracepoint_action_send, r_tracepoint_action_send): New.
12506 (agent_expr_send, x_tracepoint_action_send): New.
12507 (l_tracepoint_action_send): New.
12508 (cmd_qtdp): Download and install tracepoint
12509 according to `use_agent'.
12510 (run_inferior_command): Add one more parameter `len'.
12512 (tracepoint_send_agent): New.
12513 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
12515 2012-04-16 Yao Qi <yao@codesourcery.com>
12517 * tracepoint.c (download_tracepoints): Moved to ...
12518 (cmd_qtstart): ... here.
12520 2012-04-14 Yao Qi <yao@codesourcery.com>
12522 * tracepoint.c: Include inttypes.h.
12523 (struct collect_memory_action): Use sized types.
12524 (struct tracepoint): Likewise.
12525 (cmd_qtdp, stop_tracing): Update print specifiers.
12526 (cmd_qtp, response_tracepoint): Likewise.
12527 (collect_data_at_tracepoint): Likewise.
12528 (collect_data_at_step): Likewise.
12530 2012-04-14 Yao Qi <yao@codesourcery.com>
12532 Import gnulib module inttypes.
12533 * aclocal.m4, config.in, configure: Regenerated.
12535 2012-04-14 Yao Qi <yao@codesourcery.com>
12537 * Makefile.in (maintainer-clean, realclean, distclean): Remove
12538 Makefile and config.status at last.
12540 2012-04-13 Yao Qi <yao@codesourcery.com>
12542 * tracepoint.c: Include stdint.h unconditionally.
12544 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12546 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
12547 on BFD_HAVE_SYS_PROCFS_TYPE.
12548 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
12549 * configure: Regenerate.
12550 * config.in: Likewise.
12552 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
12554 * Makefile.in (clean): Also remove x32.c x32-linux.c
12555 x32-avx.c x32-avx-linux.c.
12556 (x32.o): New target.
12558 (x32-linux.o): Likewise.
12559 (x32-linux.c): Likewise.
12560 (x32-avx.o): Likewise.
12561 (x32-avx.c): Likewise.
12562 (x32-avx-linux.o): Likewise.
12563 (x32-avx-linux.c): Likewise.
12565 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
12566 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
12567 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
12568 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
12569 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
12570 i386/x32-avx-linux.xml.
12572 * linux-x86-low.c (init_registers_x32_linux): New prototype.
12573 (init_registers_x32_avx_linux): Likwise.
12574 (x86_linux_update_xmltarget): Call init_registers_x32_linux
12575 or init_registers_x32_avx_linux if linux_is_elf64 is false.
12577 2012-04-13 Pedro Alves <palves@redhat.com>
12579 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
12580 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
12581 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
12582 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
12585 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12587 * linux-x86-low.c (compat_x32_clock_t): New.
12588 (compat_x32_siginfo_t): Likewise.
12589 (compat_x32_siginfo_from_siginfo): Likewise.
12590 (siginfo_from_compat_x32_siginfo): Likewise.
12591 (linux_is_elf64): Likewise.
12592 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
12593 and siginfo_from_compat_x32_siginfo for x32.
12594 (x86_arch_setup): Set linux_is_elf64.
12596 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
12599 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
12601 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
12602 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
12603 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
12604 compatible with process.
12606 2012-04-12 Yao Qi <yao@codesourcery.com>
12608 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
12609 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
12610 (install-only, install-info, clean): Handle sub dir gnulib.
12611 (all-lib, am--refresh): New targets.
12612 (memmem.o): Remove target.
12613 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
12614 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
12615 (AC_REPLACE_FUNCS): Remove memmem.
12616 Invoke gl_INIT and AM_INIT_AUTOMAKE.
12617 (AC_OUTPUT): Generate Makefile in gnulib/.
12618 * aclocal.m4, config.in, configure: Regenerated.
12620 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
12622 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
12624 2012-04-05 Pedro Alves <palves@redhat.com>
12626 -Werror=strict-aliasing
12628 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
12631 2012-04-04 Pedro Alves <palves@redhat.com>
12633 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
12634 (sparc_store_gregset_from_stack, sparc_store_gregset)
12635 (sparc_breakpoint_at): Fix formatting.
12637 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12639 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
12641 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
12642 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
12643 * config.in: Regenerate.
12644 * configure: Likewise.
12646 2012-03-29 Pedro Alves <palves@redhat.com>
12648 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
12649 Correct ptrace arguments.
12651 2012-03-28 Pedro Alves <palves@redhat.com>
12653 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
12654 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
12655 (IA64_FR1_REGNUM): New defines.
12656 (ia64_fetch_register): New.
12657 (the_low_target): Install it.
12658 * linux-low.h (struct linux_target_ops) <fetch_register>: New
12660 * linux-low.c (linux_fetch_registers): Try the
12661 the_low_target.fetch_register hook first.
12663 * linux-arm-low.c (the_low_target): Adjust.
12664 * linux-bfin-low.c (the_low_target): Adjust.
12665 * linux-cris-low.c (the_low_target): Adjust.
12666 * linux-crisv32-low.c (the_low_target): Adjust.
12667 * linux-m32r-low.c (the_low_target): Adjust.
12668 * linux-m68k-low.c (the_low_target): Adjust.
12669 * linux-mips-low.c (the_low_target): Adjust.
12670 * linux-ppc-low.c (the_low_target): Adjust.
12671 * linux-s390-low.c (the_low_target): Adjust.
12672 * linux-sh-low.c (the_low_target): Adjust.
12673 * linux-sparc-low.c (the_low_target): Adjust.
12674 * linux-tic6x-low.c (the_low_target): Adjust.
12675 * linux-x86-low.c (the_low_target): Adjust.
12676 * linux-xtensa-low.c (the_low_target): Adjust.
12678 2012-03-26 Pedro Alves <palves@redhat.com>
12680 * server.c (handle_qxfer_libraries): Don't bail early if
12681 the_target->qxfer_libraries_svr4 is not NULL.
12683 2012-03-26 Pedro Alves <palves@redhat.com>
12685 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
12687 2012-03-23 Pedro Alves <palves@redhat.com>
12689 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
12690 "library-list-svr4" element's start tag when the the DSO list is
12693 2012-03-23 Pedro Alves <palves@redhat.com>
12695 * linux-low.c (read_one_ptr): Read the inferior's pointer through
12696 a variable whose type size is the same as the inferior's pointer
12699 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
12701 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
12703 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
12704 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
12705 * linux-low.h: Include <signal.h>.
12706 (struct siginfo): Remove forward declaration.
12707 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
12710 2012-03-21 Mike Frysinger <vapier@gentoo.org>
12712 * .gitignore: Ignore more files.
12714 2012-03-19 Pedro Alves <palves@redhat.com>
12715 Jan Kratochvil <jan.kratochvil@redhat.com>
12717 * server.c (cont_thread, general_thread): Add describing comments.
12718 (start_inferior): Clear `cont_thread'.
12719 (handle_v_cont): Don't set `cont_thread' if resuming all threads
12722 2012-03-15 Yao Qi <yao@codesourcery.com>
12724 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
12726 (cmd_qtdp): ... here.
12728 2012-03-15 Yao Qi <yao@codesourcery.com>
12730 * tracepoint.c (struct tracepoint_action_ops): New.
12731 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
12732 (m_tracepoint_action_download): New.
12733 (r_tracepoint_action_download): New.
12734 (x_tracepoint_action_download): New.
12735 (l_tracepoint_action_download): New.
12736 (add_tracepoint_action): Install `action->ops' according type.
12737 (download_tracepoint_1): Move code `download' function pointer
12738 of various tracepoint_action_ops.
12740 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12742 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
12743 linux_ptrace_attach_warnings.
12745 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12747 * Makefile.in (linux-ptrace.o): New.
12748 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
12749 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
12750 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
12751 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
12752 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
12754 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
12756 2012-03-08 Yao Qi <yao@codesourcery.com>
12757 Pedro Alves <palves@redhat.com>
12759 Fix PR server/13392.
12760 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
12761 offset of JMP insn.
12762 * tracepoint.c (remove_tracepoint): New.
12763 (cmd_qtdp): Call remove_tracepoint when failed to install.
12765 2012-03-07 Pedro Alves <palves@redhat.com>
12767 * linux-low.c (get_detach_signal): New.
12768 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
12769 Pass on pending signals to PTRACE_DETACH. Check the result of the
12771 * server.c (program_signals, program_signals_p): New.
12772 (handle_general_set): Handle QProgramSignals.
12773 * server.h (program_signals, program_signals_p): Declare.
12775 2012-03-05 Pedro Alves <palves@redhat.com>
12776 Jan Kratochvil <jan.kratochvil@redhat.com>
12778 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
12781 2012-03-03 Yao Qi <yao@codesourcery.com>
12783 * tracepoint.c (tracepoint_look_up_symbols): Update call to
12784 agent_look_up_symbols.
12786 2012-03-03 Yao Qi <yao@codesourcery.com>
12788 * Makefile.in (linux-low.o): Keep dependence on agent.h.
12789 (linux-x86-low.o): Likewise.
12790 * server.h: Remove in_process_agent_loaded.
12791 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
12795 2012-03-03 Yao Qi <yao@codesourcery.com>
12797 * tracepoint.c (gdb_agent_capability): New global.
12798 (in_process_agent_loaded_ust): Renamed to
12799 `in_process_agent_supports_ust'.
12801 (in_process_agent_supports_ust): Call agent_capability_check.
12802 (clear_installed_tracepoints): Assert that agent supports
12805 2012-03-03 Yao Qi <yao@codesourcery.com>
12807 * linux-low.c (linux_supports_agent): New.
12808 (linux_target_ops): Initialize field `supports_agent' with
12809 linux_supports_agent.
12810 * target.h (struct target_ops) <supports_agent>: New.
12811 (target_supports_agent): New macro.
12812 * server.c (handle_general_set): Handle packet 'QAgent'.
12813 (handle_query): Send `QAgent+'.
12814 * Makefile.in (server.o): Depends on agent.h.
12816 2012-03-03 Yao Qi <yao@codesourcery.com>
12818 * Makefile.in (OBS): Add agent.o.
12819 Add new rule for agent.o.
12820 Track dependence of tracepoint.c on agent.h.
12821 * tracepoint.c (run_inferior_command_1):
12822 (run_inferior_command): Call agent_run_command.
12823 (gdb_ust_connect_sync_socket): Deleted. Move it to
12825 (resume_thread, stop_thread): Likewise.
12826 (gdb_ust_socket_init): Renamed to ...
12827 (gdb_agent_socket_init): ... New.
12828 (gdb_ust_thread): Renamed to ...
12829 (gdb_agent_helper_thread): ... New.
12830 (gdb_ust_init): Move some code to ...
12831 (gdb_agent_init): ... here. New.
12832 [HAVE_UST]: Call gdb_ust_init.
12833 (initialize_tracepoint_ftlib): Call gdb_agent_init.
12834 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
12835 * config.in, configure: Regenerated.
12837 2012-03-02 Pedro Alves <palves@redhat.com>
12839 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
12840 * linux-low.c (struct simple_pid_list): New.
12841 (stopped_pids): New a struct simple_pid_list pointer.
12842 (add_to_pid_list, pull_pid_from_list): New.
12843 (handle_extended_wait): Don't assume the first signal new children
12844 report is SIGSTOP. Adjust call to pull_pid_from_list.
12845 (linux_wait_for_lwp): Adjust.
12847 2012-03-02 Yao Qi <yao@codesourcery.com>
12849 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
12852 2012-03-02 Yao Qi <yao@codesourcery.com>
12854 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
12855 `stop_pc' and `tpoint'. Update caller.
12857 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
12859 * linux-low.h (linux_target_ops): Add regset_bitmap member.
12860 * linux-low.c (use_linux_regsets): New macro.
12861 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
12862 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
12863 (linux_register_in_regsets): New function.
12864 (usr_fetch_inferior_registers): Skip registers covered by
12866 (usr_store_inferior_registers): Likewise.
12867 (usr_fetch_inferior_registers): New macro.
12868 (usr_store_inferior_registers): Likewise.
12869 (linux_fetch_registers): Handle mixed regset/non-regset targets.
12870 (linux_store_registers): Likewise.
12871 * linux-mips-low.c (init_registers_mips_dsp_linux): New
12873 (init_registers_mips64_dsp_linux): Likewise.
12874 (init_registers_mips_linux): New macro.
12875 (init_registers_mips_dsp_linux): Likewise.
12876 (mips_dsp_num_regs): Likewise.
12877 (DSP_BASE, DSP_CONTROL): New fallback macros.
12878 (mips_base_regs): New macro.
12879 (mips_regmap): Use it. Fix the size.
12880 (mips_dsp_regmap): New variable.
12881 (mips_dsp_regset_bitmap): Likewise.
12882 (mips_arch_setup): New function.
12883 (mips_cannot_fetch_register): Use the_low_target.regmap rather
12885 (mips_cannot_store_register): Likewise.
12886 (the_low_target): Update .arch_setup, .num_regs and .regmap
12887 initializers. Add .regset_bitmap initializer.
12888 * linux-arm-low.c (the_low_target): Add .regset_bitmap
12890 * linux-bfin-low.c (the_low_target): Likewise.
12891 * linux-cris-low.c (the_low_target): Likewise.
12892 * linux-crisv32-low.c (the_low_target): Likewise.
12893 * linux-ia64-low.c (the_low_target): Likewise.
12894 * linux-m32r-low.c (the_low_target): Likewise.
12895 * linux-m68k-low.c (the_low_target): Likewise.
12896 * linux-ppc-low.c (the_low_target): Likewise.
12897 * linux-s390-low.c (the_low_target): Likewise.
12898 * linux-sh-low.c (the_low_target): Likewise.
12899 * linux-sparc-low.c (the_low_target): Likewise.
12900 * linux-tic6x-low.c (the_low_target): Likewise.
12901 * linux-x86-low.c (the_low_target): Likewise.
12902 * linux-xtensa-low.c (the_low_target): Likewise.
12903 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
12904 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
12905 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
12907 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
12908 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
12910 2012-02-29 Yao Qi <yao@codesourcery.com>
12911 Pedro Alves <palves@redhat.com>
12913 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
12914 `step_over_finished' is true.
12916 2012-02-27 Pedro Alves <palves@redhat.com>
12918 * linux-low.c (pid_is_stopped): Delete, moved to common/.
12919 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
12921 2012-02-27 Pedro Alves <palves@redhat.com>
12924 * linux-low.c (pid_is_stopped): New.
12925 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
12927 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
12929 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
12932 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
12934 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
12936 2012-02-24 Luis Machado <lgustavo@codesourcery>
12938 * server.c (handle_query): Advertise support for target-side
12939 breakpoint condition evaluation.
12940 (process_point_options): New function.
12941 (process_serial_event): When inserting a breakpoint, check for
12942 a target-side condition that should be evaluated.
12944 * mem-break.c: Include regcache.h and ax.h.
12945 (point_cond_list_t): New data structure.
12946 (breakpoint) <cond_list>: New field.
12947 (find_gdb_breakpoint_at): Make non-static.
12948 (delete_gdb_breakpoint_at): Clear any target-side
12950 (clear_gdb_breakpoint_conditions): New function.
12951 (add_condition_to_breakpoint): Likewise.
12952 (add_breakpoint_condition): Likewise.
12953 (gdb_condition_true_at_breakpoint): Likewise.
12954 (gdb_breakpoint_here): Return result directly instead
12955 of going through a local variable.
12957 * mem-break.h (find_gdb_breakpoint_at): New prototype.
12958 (clear_gdb_breakpoint_conditions): Likewise.
12959 (add_breakpoint_condition): Likewise.
12960 (gdb_condition_true_at_breakpoint): Likewise.
12962 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
12963 (need_step_over_p): Take target-side breakpoint condition into
12966 2012-02-24 Luis Machado <lgustavo@codesourcery>
12968 * server.h: Include tracepoint.h.
12969 (agent_mem_read, agent_get_trace_state_variable_value,
12970 agent_set_trace_state_variable_value,
12971 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
12972 get_set_tsv_func_addr): New prototypes.
12974 * ax.h: New include file.
12975 * ax.c: New source file.
12977 * tracepoint.c: Include ax.h.
12978 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
12979 agent_expr, eval_result_type): Move to ax.h.
12980 (parse_agent_expr): Rename to ...
12981 (gdb_parse_agent_expr): ... this, make it non-static and move
12983 (unparse_agent_expr) Rename to ...
12984 (gdb_unparse_agent_expr): ... this, make it non-static and move
12986 (eval_agent_expr): Rename to ...
12987 (eval_tracepoint_agent_expr): ... this.
12988 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
12989 forward declarations.
12990 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
12991 (agent_get_trace_state_variable_value): New function.
12992 (agent_set_trace_state_variable_value): New function.
12993 (cmd_qtdp): Call gdb_parse_agent_expr (...).
12994 (response_tracepoint): Call gdb_unparse_agent_expr (...).
12995 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
12996 (condition_true_at_tracepoint): Likewise.
12997 (parse_agent_expr): Rename to ...
12998 (gdb_parse_agent_expr): ... this and move to ax.c.
12999 (unparse_agent_expr): Rename to ...
13000 (gdb_unparse_agent_expr): ... this and move to ax.c.
13001 (gdb_agent_op_name): Move to ax.c.
13002 (eval_agent_expr): Rename to ...
13003 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13005 (eval_tracepoint_agent_expr): New function.
13006 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
13008 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13010 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13011 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13012 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13013 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13014 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13015 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13016 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13017 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13018 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13019 (compile_bytecodes): Remove forward declaration.
13020 (is_goto_target): Move to ax.c.
13021 (compile_bytecodes): Move to ax.c and call
13022 agent_get_trace_state_variable_value (...) and
13023 agent_set_trace_state_variable_value (...).
13025 * Makefile.in: Update ax.c and IPA dependencies.
13027 2012-02-24 Pedro Alves <palves@redhat.com>
13029 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13030 (cmd_bigqtbuffer_circular): ... this. Only handle
13031 'QTBuffer:circular:'.
13032 (handle_tracepoint_general_set): Adjust.
13034 2012-02-16 Yao Qi <yao@codesourcery.com>
13036 * inferiors.c: Move code to ...
13037 * dll.c: .... here. New.
13038 * server.h: Declare clear_dlls.
13039 * Makefile.in (SFILES): Add dll.c.
13043 2012-02-11 Yao Qi <yao@codesourcery.com>
13045 * server.c: (handle_monitor_command): Add a new parameter
13047 (handle_query): Update caller.
13049 2012-02-09 Joel Brobecker <brobecker@adacore.com>
13051 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13052 * configure, config.in: Regenerate.
13053 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13056 2012-02-02 Pedro Alves <palves@redhat.com>
13058 Try SIGKILL first, then PTRACE_KILL.
13059 * linux-low.c (linux_kill_one_lwp): New.
13060 (linux_kill_one_lwp): Rename to ...
13061 (kill_one_lwp_callback): ... this. Use the new
13062 linux_kill_one_lwp.
13064 2012-02-02 Pedro Alves <palves@redhat.com>
13066 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13069 2012-01-27 Pedro Alves <palves@redhat.com>
13071 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13072 (elf_64_file_p): Make static.
13073 (linux_pid_exe_is_elf_64_file): New.
13074 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13075 Delete declarations.
13076 (linux_pid_exe_is_elf_64_file): Declare.
13077 * linux-x86-low.c (x86_arch_setup): Use
13078 linux_pid_exe_is_elf_64_file.
13080 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13082 * linux-low.c (linux_wait_for_event_1): Rename to ...
13083 (linux_wait_for_event): ... here and merge it with former
13084 linux_wait_for_event - new variable wait_ptid, use it.
13085 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13087 2012-01-23 Pedro Alves <palves@redhat.com>
13089 * server.c (main): Avoid yet another case of infinite loop while
13090 detaching/killing after a longjmp.
13092 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13095 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13097 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13099 * hostio.c (handle_readlink): New function.
13100 (handle_vFile): Call it to handle "vFile:readlink" packets.
13102 2012-01-20 Pedro Alves <palves@redhat.com>
13103 Ulrich Weigand <ulrich.weigand@linaro.org>
13105 * server.c (handle_v_requests): Only support vAttach and vRun to
13106 start multiple processes when in extended protocol mode.
13108 2012-01-17 Pedro Alves <palves@redhat.com>
13110 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13111 memalign plus mprotect to allocate the scratch buffer.
13113 2012-01-13 Pedro Alves <palves@redhat.com>
13115 * server.c (attach_inferior): Clear `cont_thread'.
13117 2012-01-13 Pedro Alves <palves@redhat.com>
13119 * server.c (main): Avoid infinite loop while detaching/killing
13122 2012-01-09 Doug Evans <dje@google.com>
13124 * server.c (start_inferior): Set last_ptid in --wrapper case.
13126 2012-01-06 Yao Qi <yao@codesourcery.com>
13128 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13130 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13132 2012-01-04 Yao Qi <yao@codesourcery.com>
13134 * tracepoint.c (cmd_qtdp): Print debug message
13135 for static tracepoint.
13137 2012-01-04 Yao Qi <yao@codesourcery.com>
13139 * tracepoint.c (trace_vdebug): Differentiate debug message
13140 between gdbserver and IPA.
13142 2012-01-03 Yao Qi <yao@codesourcery.com>
13144 * tracepoint.c (tracepoint_was_hit): Don't collect for
13147 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13149 * terminal.h: Reformat copyright header.
13151 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13153 * server.c (gdbserver_version): Update copyright year.
13154 * gdbreplay.c (gdbreplay_version): Likewise.
13156 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13158 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13161 2011-12-18 Hui Zhu <teawater@gmail.com>
13162 * linux-low.c (linux_create_inferior): Save return value to ret.
13164 2011-12-18 Hui Zhu <teawater@gmail.com>
13166 * linux-low.c (linux_create_inferior): Save return value to ret.
13168 2011-12-16 Doug Evans <dje@google.com>
13170 * linux-low.c (linux_create_inferior): If stdio connection,
13171 redirect stdin from /dev/null, stdout to stderr.
13172 * remote-utils.c (remote_is_stdio): New static global.
13173 (remote_connection_is_stdio): New function.
13174 (remote_prepare): Handle stdio connection.
13175 (remote_open): Ditto.
13176 (remote_close): Don't close stdin for stdio connections.
13177 (read_prim,write_prim): New functions. Replace all calls to
13178 read/write to these.
13179 * server.c (main): Watch for "-" argument. Move call to
13180 remote_prepare before start_inferior.
13181 * server.h (STDIO_CONNECTION_NAME): New macro.
13182 (remote_connection_is_stdio): Declare.
13184 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13185 in debugging output.
13187 2011-12-15 Yao Qi <yao@codesourcery.com>
13189 * tracepoint.c: Include sys/syscall.h.
13190 (gdb_ust_thread): Remove preprocessor conditional.
13192 2011-12-14 Pedro Alves <pedro@codesourcery.com>
13194 * linux-low.c (linux_detach_one_lwp): Call
13195 the_low_target.prepare_to_resume before detaching.
13197 2011-12-14 Yao Qi <yao@codesourcery.com>
13199 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13202 2011-12-14 Yao Qi <yao@codesourcery.com>
13204 * i386-low.c (i386_low_stopped_data_address): Initialize local
13205 variable `control'.
13207 2011-12-13 Pedro Alves <pedro@codesourcery.com>
13211 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
13212 DR_CONTROL unless necessary. Extend comments.
13213 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
13214 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
13216 2011-12-13 Yao Qi <yao@codesourcery.com>
13218 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13220 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13222 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13224 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13225 Print new debug message for such case.
13227 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13229 Fix overlapping memcpy.
13230 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
13231 the read_inferior_memory transfer.
13232 (delete_fast_tracepoint_jump): New variable buf. Use it for the
13233 write_inferior_memory transfer.
13234 (set_fast_tracepoint_jump): New variable buf. Use it for the
13235 read_inferior_memory and write_inferior_memory transfers.
13236 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
13237 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
13238 Use it for the write_inferior_memory transfer.
13239 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
13242 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13244 * linux-low.c (fetch_register, store_register): Make code
13245 consistent, fix formatting.
13247 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13249 * linux-low.c (usr_store_inferior_registers): Factor out code
13250 to handle individual registers into...
13251 (store_register): ... this new function.
13253 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13255 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
13256 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
13257 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
13258 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
13259 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
13260 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
13261 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
13262 (srv_xmlfiles): Add new XML files.
13264 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13266 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
13267 (init_registers_s390_linux32v1): Add prototype.
13268 (init_registers_s390_linux32v2): Likewise.
13269 (init_registers_s390_linux64v1): Likewise.
13270 (init_registers_s390_linux64v2): Likewise.
13271 (init_registers_s390x_linux64v1): Likewise.
13272 (init_registers_s390x_linux64v2): Likewise.
13273 (s390_num_regs): Increment to 52.
13274 (s390_regmap): Add orig_r2 register.
13275 (s390_num_regs_3264): Increment to 68.
13276 (s390_regmap_3264): Add orig_r2 register.
13277 (s390_collect_ptrace_register): Handle orig_r2 register.
13278 (s390_supply_ptrace_register): Likewise.
13279 (s390_fill_last_break): New function.
13280 (s390_store_last_break): Likewise.
13281 (s390_fill_system_call): New function.
13282 (s390_store_system_call): Likewise.
13283 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
13285 (s390_check_regset): New function.
13286 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
13287 NT_S390_SYSTEM_CALL regsets and use appropriate description.
13288 Update target_regsets for available register sets.
13290 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13291 Jan Kratochvil <jan.kratochvil@redhat.com>
13293 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
13294 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
13296 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
13297 * linux-low.h (struct process_info_private): New member r_debug.
13298 * server.c (handle_qxfer_libraries): Call
13299 the_target->qxfer_libraries_svr4.
13300 (handle_qxfer_libraries_svr4): New function.
13301 (qxfer_packets): New entry "libraries-svr4".
13302 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
13303 * target.h (struct target_ops): New member qxfer_libraries_svr4.
13304 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
13305 PACKET_qXfer_libraries_svr4.
13307 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13309 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
13310 PSW address/mask between 8-byte and 16-byte formats.
13311 (s390_supply_ptrace_register): Likewise.
13312 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
13313 basic addressing mode bit.
13315 2011-11-24 Stan Shebs <stan@codesourcery.com>
13317 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13319 2011-11-17 Stan Shebs <stan@codesourcery.com>
13321 * tracepoint.c (struct tracepoint): New field traceframe_usage.
13322 (tracing_start_time): New global.
13323 (tracing_stop_time): New global.
13324 (tracing_user_name): New global.
13325 (tracing_notes): New global.
13326 (tracing_stop_note): New global.
13327 (cmd_qtstart): Set traceframe_usage, start_time.
13328 (stop_tracing): Set stop_time.
13329 (cmd_qtstatus): Report additional status.
13330 (cmd_qtp): New function.
13331 (handle_tracepoint_query): Call it.
13332 (cmd_qtnotes): New function.
13333 (handle_tracepoint_general_set): Call it.
13334 (get_timestamp): Rename from tsv_get_timestamp.
13336 2011-11-14 Stan Shebs <stan@codesourcery.com>
13337 Kwok Cheung Yeung <kcy@codesourcery.com>
13339 * linux-x86-low.c (small_jump_insn): New.
13340 (i386_install_fast_tracepoint_jump_pad): Add arguments for
13341 trampoline and error message, build a trampoline and issue a small
13342 jump instruction to it.
13343 (x86_install_fast_tracepoint_jump_pad): Add arguments for
13344 trampoline and error message.
13345 (x86_get_min_fast_tracepoint_insn_len): New.
13346 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
13347 * linux-low.h (struct linux_target_ops): Add arguments to
13348 install_fast_tracepoint_jump_pad operation, add new operation.
13349 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13351 (linux_get_min_fast_tracepoint_insn_len): New function.
13352 (linux_target_op): Add new operation.
13353 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13354 (gdb_trampoline_buffer_end): Ditto.
13355 (gdb_trampoline_buffer_error): Ditto.
13356 (struct ipa_sym_addresses): Add fields for new IPA variables.
13357 (symbol_list): Add entries for new IPA variables.
13358 (struct tracepoint): Add fields to hold the address range of the
13359 trampoline used by the tracepoint.
13360 (trampoline_buffer_head): New static variable.
13361 (trampoline_buffer_tail): Ditto.
13362 (claim_trampoline_space): New function.
13363 (have_fast_tracepoint_trampoline_buffer): New function.
13364 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
13366 (install_fast_tracepoint): Ditto, also add error buffer argument.
13367 (cmd_qtminftpilen): New function.
13368 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
13369 (fast_tracepoint_from_trampoline_address): New function.
13370 (fast_tracepoint_collecting): Handle trampoline as part of jump
13372 (set_trampoline_buffer_space): New function.
13373 (initialize_tracepoint): Initialize new IPA variables.
13374 * target.h (struct target_ops): Add arguments to
13375 install_fast_tracepoint_jump_pad operation, add new
13376 get_min_fast_tracepoint_insn_len operation.
13377 (target_get_min_fast_tracepoint_insn_len): New.
13378 (install_fast_tracepoint_jump_pad): Add arguments.
13379 * server.h (IPA_BUFSIZ): Define.
13380 * linux-i386-ipa.c: Include extra header files.
13381 (initialize_fast_tracepoint_trampoline_buffer): New function.
13382 (initialize_low_tracepoint): Call it.
13383 * server.h (set_trampoline_buffer_space): Declare.
13384 (claim_trampoline_space): Ditto.
13385 (have_fast_tracepoint_trampoline_buffer): Ditto.
13387 2011-11-14 Yao Qi <yao@codesourcery.com>
13389 * server.c (handle_query): Handle InstallInTrace for qSupported.
13390 * tracepoint.c (add_tracepoint): Sort list.
13391 (install_tracepoint, download_tracepoint): New.
13392 (cmd_qtdp): Call them to install and download tracepoints.
13393 (sort_tracepoints): Removed.
13394 (cmd_qtstart): Update.
13396 2011-11-14 Yao Qi <yao@codesourcery.com>
13398 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
13399 * mem-break.h: Declare.
13400 * tracepoint.c (cmd_qtstart): Move some code to ...
13401 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
13403 (download_tracepoints): Move some code to ...
13404 (download_tracepoint_1): ... here. New.
13406 2011-11-08 Yao Qi <yao@codesourcery.com>
13408 * remote-utils.c (relocate_instruction): A comment fix.
13410 2011-11-07 Joel Brobecker <brobecker@adacore.com>
13412 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
13413 (i386_dr_low_get_control, i386_dr_low_get_status): Use
13414 dr_status_mirror and dr_control_mirror from debug_reg_state.
13415 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
13416 (i386_initial_stuff): Remove use of deleted globals.
13417 (i386_get_thread_context, i386_set_thread_context,
13418 i386_thread_added): Use dr_status_mirror and dr_control_mirror
13419 from debug_reg_state.
13421 2011-11-05 Yao Qi <yao@codesourcery.com>
13423 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13424 address as TPOINT's.
13426 2011-11-02 Stan Shebs <stan@codesourcery.com>
13428 * tracepoint.c (agent_mem_read_string): New function.
13429 (eval_agent_expr): Call it for tracenz.
13430 * server.c (handle_query): Report support for tracenz.
13432 2011-11-02 Yao Qi <yao@codesourcery.com>
13434 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13436 2011-11-02 Yao Qi <yao@codesourcery.com>
13438 * target.h: Fix a typo in comment.
13440 2011-10-31 Pedro Alves <pedro@codesourcery.com>
13442 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13443 clobber the breakpoints' shadows with fast tracepoint jumps.
13444 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13445 * target.c (write_inferior_memory): Also pass MYADDR down to
13448 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13450 * configure.ac: Check support for personality routine.
13451 * configure: Regenerate.
13452 * config.in: Likewise.
13453 * linux-low.c: Include <sys/personality.h>.
13454 Define ADDR_NO_RANDOMIZE if necessary.
13455 (linux_create_inferior): Disable address space randomization when
13456 forking inferior, if requested.
13457 (linux_supports_disable_randomization): New function.
13458 (linux_target_ops): Install it.
13459 * server.h (disable_randomization): Declare.
13460 * server.c (disable_randomization): New global variable.
13461 (handle_general_set): Handle QDisableRandomization.
13462 (handle_query): Likewise for qSupported.
13463 (main): Support --disable-randomization and --no-disable-randomization
13464 command line arguments.
13465 * target.h (struct target_ops): Add supports_disable_randomization.
13466 (target_supports_disable_randomization): New macro.
13468 2011-09-29 Mike Frysinger <vapier@gentoo.org>
13470 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13472 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13473 [!PT_GETDSBT] (target_loadmap): New definition.
13474 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13475 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13476 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13477 and PT_GETDSBT to LINUX_LOADMAP.
13478 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13479 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13481 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13483 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
13484 (arm_linux_hwbp_cap): New static variable.
13485 (arm_linux_get_hwbp_cap): Replace by ...
13486 (arm_linux_init_hwbp_cap): ... this new function.
13487 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
13488 (arm_linux_get_hw_watchpoint_count): Likewise.
13489 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13490 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
13491 (arm_prepare_to_resume): Use perror_with_name instead of error.
13493 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13495 * linux-arm-low.c: Include <signal.h>.
13496 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
13497 (struct arm_linux_hwbp_cap): New data type.
13498 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
13499 (struct arm_linux_hw_breakpoint): New data type.
13500 (MAX_BPTS, MAX_WPTS): Define.
13501 (struct arch_process_info, struct arch_lwp_info): New data types.
13502 (arm_linux_get_hwbp_cap): New function.
13503 (arm_linux_get_hw_breakpoint_count): Likewise.
13504 (arm_linux_get_hw_watchpoint_count): Likewise.
13505 (arm_linux_get_hw_watchpoint_max_length): Likewise.
13506 (arm_hwbp_control_initialize): Likewise.
13507 (arm_hwbp_control_is_enabled): Likewise.
13508 (arm_hwbp_control_is_initialized): Likewise.
13509 (arm_hwbp_control_disable): Likewise.
13510 (arm_linux_hw_breakpoint_equal): Likewise.
13511 (arm_linux_hw_point_initialize): Likewise.
13512 (struct update_registers_data): New data structure.
13513 (update_registers_callback: New function.
13514 (arm_insert_point): Likewise.
13515 (arm_remove_point): Likewise.
13516 (arm_stopped_by_watchpoint): Likewise.
13517 (arm_stopped_data_address): Likewise.
13518 (arm_new_process): Likewise.
13519 (arm_new_thread): Likewise.
13520 (arm_prepare_to_resume): Likewise.
13521 (the_low_target): Register arm_insert_point, arm_remove_point,
13522 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
13523 arm_new_thread, and arm_prepare_to_resume.
13525 2011-09-15 Stan Shebs <stan@codesourcery.com>
13527 * server.h (struct emit_ops): Add compare-goto fields.
13528 * tracepoint.c (gdb_agent_op_sizes): New table.
13529 (emit_eq_goto): New function.
13530 (emit_ne_goto): New function.
13531 (emit_lt_goto): New function.
13532 (emit_le_goto): New function.
13533 (emit_gt_goto): New function.
13534 (emit_ge_goto): New function.
13535 (is_goto_target): New function.
13536 (compile_bytecodes): Recognize special cases of compare-goto
13537 combinations and call specialized emitters for them.
13538 * linux-x86-low.c (amd64_emit_eq_goto): New function.
13539 (amd64_emit_ne_goto): New function.
13540 (amd64_emit_lt_goto): New function.
13541 (amd64_emit_le_goto): New function.
13542 (amd64_emit_gt_goto): New function.
13543 (amd64_emit_ge_goto): New function.
13544 (amd64_emit_ops): Add the new functions.
13545 (i386_emit_eq_goto): New function.
13546 (i386_emit_ne_goto): New function.
13547 (i386_emit_lt_goto): New function.
13548 (i386_emit_le_goto): New function.
13549 (i386_emit_gt_goto): New function.
13550 (i386_emit_ge_goto): New function.
13551 (i386_emit_ops): Add the new functions.
13553 2011-09-08 Stan Shebs <stan@codesourcery.com>
13555 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
13556 (i386_emit_epilogue): Restore %ebx.
13558 2011-08-31 Jie Zhang <jzhang918@gmail.com>
13560 * server.c (step_thread): Remove definition.
13561 (process_serial_event): Don't handle Hs.
13562 * server.h (step_thread): Remove declaration.
13563 * target.c (set_desired_inferior): Remove use of step_thread.
13565 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13567 * linux-low.c: Include linux-procfs.h.
13568 (linux_attach_lwp_1): Update comments.
13569 (linux_attach): Scan for existing threads when attaching to a
13570 process that is the tgid.
13571 * Makefile.in: Update dependencies.
13573 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
13575 * configure.srv: Add linux-procfs.o dependencies.
13577 2011-08-14 Yao Qi <yao@codesourcery.com>
13579 * target.h (struct target_ops): Fix indent.
13580 * win32-low.c (win32_target_ops): Fix comment.
13582 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
13583 Yao Qi <yao@codesourcery.com>
13585 * Makefile.in (clean): Remove tic6x-*.c files.
13586 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
13587 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
13588 (tic6x-c64xp-linux.c): Likewise.
13589 * configure.srv: Add support for tic6x-*-uclinux.
13590 * linux-tic6x-low.c: New.
13591 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
13593 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
13594 Yao Qi <yao@codesourcery.com>
13596 * target.h (struct target_ops): Add read_loadmap.
13597 * linux-low.c (struct target_loadseg): New type.
13598 (struct target_loadmap): New type.
13599 (linux_read_loadmap): New function.
13600 (linux_target_ops): Add linux_read_loadmap.
13601 * server.c (handle_query): Support qXfer:fdpic:read packet.
13602 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
13605 2011-08-05 Eli Zaretskii <eliz@gnu.org>
13607 * win32-low.c: Include <stdint.h>.
13609 2011-07-22 Pedro Alves <pedro@codesourcery.com>
13611 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
13612 to the inferior here.
13613 (i386_remove_aligned_watchpoint): Ditto.
13614 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
13615 fit part of the watchpoint in the debug registers.
13616 (i386_update_inferior_debug_regs): New.
13617 (i386_low_insert_watchpoint): Work on a local mirror of the debug
13618 registers, and only update the inferior on success.
13619 (i386_low_remove_watchpoint): Ditto.
13621 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
13623 * linux-low.c (compare_ints, unique, list_threads, show_process,
13624 linux_core_of_thread): Delete.
13625 (linux_target_ops): Change linux_core_of_thread to
13626 linux_common_core_of_thread.
13627 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
13628 * utils.c (malloc_failure): Change type of argument.
13629 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
13630 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
13631 common/linux-osdata.c, common/ptid.c and common/buffer.c.
13632 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
13633 (IPA_OBJS): Add common-utils-ipa.o.
13634 (ptid_h, linux_osdata_h): New macros.
13635 (server_h): Add common/common-utils.h, common/xml-utils.h,
13636 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
13638 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
13639 ptid.o, buffer.o): New rules.
13640 (linux-low.o): Add common/linux-osdata.h as a dependency.
13641 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
13642 * configure.ac: Add AC_HEADER_DIRENT check.
13643 * config.in: Regenerate.
13644 * configure: Regenerate.
13645 * remote-utils.c (xml_escape_text): Delete.
13646 (buffer_grow, buffer_free, buffer_init, buffer_finish,
13647 buffer_xml_printf): Move to common/buffer.c.
13648 * server.c (main): Remove call to initialize_inferiors.
13649 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
13650 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
13651 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
13652 internal_error, gdb_assert, gdb_assert_fail): Delete.
13653 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
13654 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
13656 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
13657 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
13658 initialize_inferiors): Delete.
13660 2011-07-20 Pedro Alves <pedro@codesourcery.com>
13662 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
13665 2011-05-31 Pedro Alves <pedro@codesourcery.com>
13667 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
13669 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
13671 2011-05-26 Yao Qi <yao@codesourcery.com>
13673 * Makefile.in (thread-db.o): Track dependence to
13674 common/gdb_thread_db.h.
13675 * thread-db.c: include gdb_thread_db.h from right place.
13677 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
13679 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
13680 __FILE__ and __LINE__ to internal_error.
13682 2011-05-13 Doug Evans <dje@google.com>
13684 * thread-db.c (try_thread_db_load_from_sdir): New function.
13685 (try_thread_db_load_from_dir): New function.
13686 (thread_db_load_search): Handle $sdir, ignore $pdir.
13687 Remove trying of system directories if search of
13688 libthread-db-search-path fails, that is now done via $sdir.
13690 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
13692 * server.c (handle_query): Add EnableDisableTracepoints to the list
13693 of supported features.
13694 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
13696 (cmd_qtenable_disable): New.
13697 (cmd_qtstart): Install tracepoints even if disabled.
13698 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
13699 receiving a QTEnable or QTDisable packet.
13700 (gdb_collect): Skip data collection if fast tracepoint is disabled.
13701 (ust_marker_to_static_tracepoint): Do not ignore disabled static
13703 (gdb_probe): Skip data collection if static tracepoint is disabled.
13705 2011-05-10 Doug Evans <dje@google.com>
13707 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
13709 2011-05-04 Doug Evans <dje@google.com>
13711 * linux-low.c (linux_join): Skip process lookup.
13712 * spu-low.c (spu_join): Ditto.
13713 * server.c (join_inferiors_callback): Delete.
13714 (process_serial_event): For 'D' packet (detach) call join_inferior
13717 2011-05-04 Joseph Myers <joseph@codesourcery.com>
13719 * README: Don't mention xscale*-*-linux*.
13720 * configure.srv (xscale*-*-linux*): Don't handle target.
13722 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
13724 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
13726 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
13727 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
13728 (i386_emit_void_call_2): Likewise.
13730 2011-04-26 Yao Qi <yao@codesourcery.com>
13732 * linux-low.c: Move common macros to linux-ptrace.h.
13733 Include linux-ptrace.h.
13734 * Makefile.in (linux_ptrace_h): New.
13735 (linux-low.o): Depends on linux-ptrace.h.
13737 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13739 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
13740 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
13741 (remote_prepare): New function with most of the TCP code from ...
13742 (remote_open): ... here. Detect PORT here unconditionally. Move also
13743 setting transport_is_reliable.
13744 * server.c (run_once): New variable.
13745 (gdbserver_usage): Document it.
13746 (main): Set run_once for `--once'. Call remote_prepare. Exit after
13747 the first run if RUN_ONCE.
13748 * server.h (run_once, remote_prepare): New declarations.
13750 2011-04-19 Tom Tromey <tromey@redhat.com>
13752 * win32-low.c (handle_load_dll): Remove duplicate "the".
13754 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
13756 Remove support for old Cygwin 1.5 versions.
13757 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
13758 function to avoid warning.
13759 (win32_add_one_solib): Use cygwin_conv_path function to avoid
13762 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
13764 * gdbserver/server.h (Macro _): Define it if not available.
13766 2011-03-14 Michael Snyder <msnyder@vmware.com>
13768 * hostio.c (handle_close): Remove unnecessary null test.
13770 2011-03-10 Joel Brobecker <brobecker@adacore.com>
13772 * Makefile.in (maintainer-clean realclean distclean): Remove
13773 "make ... subdir_do" command.
13775 2011-03-10 Michael Snyder <msnyder@vmware.com>
13777 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
13779 * server.c (handle_v_run): Free alloced buffer on early return.
13781 2011-03-09 Yao Qi <yao@codesourcery.com>
13784 2011-03-04 Yao Qi <yao@codesourcery.com>
13786 * Makefile.in: Remove GNU make feature --directory.
13788 2011-03-05 Yao Qi <yao@codesourcery.com>
13790 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13791 (subdir_do): New make target. Copied from gdb/Makefile.
13792 (maintainer-clean, realclean, distclean, clean): Call corresponding
13793 make targets in common/Makefile.
13795 2011-02-11 Yao Qi <yao@codesourcery.com>
13797 * configure.ac: Call AC_PROG_RANLIB.
13798 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13799 * configure: Regenerate.
13801 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13803 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
13805 2011-03-06 Yao Qi <yao@codesourcery.com>
13807 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
13809 2011-03-05 Yao Qi <yao@codesourcery.com>
13811 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13812 (subdir_do): New make target. Copied from gdb/Makefile.
13813 (maintainer-clean, realclean, distclean, clean): Call corresponding
13814 make targets in common/Makefile.
13816 2011-03-04 Yao Qi <yao@codesourcery.com>
13818 * Makefile.in: Remove GNU make feature --directory.
13820 2011-03-04 Michael Snyder <msnyder@vmware.com>
13822 * server.c (queue_stop_reply): Call xmalloc not malloc.
13824 2011-03-02 Michael Snyder <msnyder@vmware.com>
13826 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
13828 2011-02-28 Michael Snyder <msnyder@vmware.com>
13830 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
13831 (cmd_qtframe): Ditto.
13832 (cmd_qtbuffer): Ditto.
13833 (cmd_bigqtbuffer): Ditto.
13835 * utils.c (decimal2str): Initialize 'width' to nine, then
13836 don't mess with it.
13838 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
13840 * hostio.c (require_data): Free *data, not data.
13842 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13844 * hostio.c (require_data): Use free, not xfree.
13846 2011-02-27 Michael Snyder <msnyder@vmware.com>
13848 * server.c (handle_query): Discard unused value.
13850 * hostio.c (require_data): Free malloc memory before returning
13853 2011-02-26 Michael Snyder <msnyder@vmware.com>
13855 * linux-low.c (list_threads): Call closedir for dirent.
13857 2011-02-27 Michael Snyder <msnyder@vmware.com>
13859 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
13860 a case statement falls through.
13862 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
13864 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
13867 2011-02-26 Michael Snyder <msnyder@vmware.com>
13869 * utils.c (decimal2str): Eliminate dead code and dead param.
13870 (pulongest): Drop dead param from call to decimal2str.
13873 2011-02-24 Joel Brobecker <brobecker@adacore.com>
13875 Revert the following patch (not approved yet):
13876 2011-02-21 Hui Zhu <teawater@gmail.com>
13877 * tracepoint.c (tp_printf): New function.
13878 (eval_agent_expr): Handle gdb_agent_op_printf.
13880 2011-02-21 Hui Zhu <teawater@gmail.com>
13882 * tracepoint.c (tp_printf): New function.
13883 (eval_agent_expr): Handle gdb_agent_op_printf.
13885 2011-02-18 Tom Tromey <tromey@redhat.com>
13887 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
13888 (tracepoint.o): Likewise.
13889 * tracepoint.c (enum gdb_agent_op): Use ax.def.
13890 (gdb_agent_op_names): Likewise.
13892 2011-02-18 Tom Tromey <tromey@redhat.com>
13894 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
13895 gdb_agent_op_rot>: New constants.
13896 (gdb_agent_op_names): Add pick and roll.
13897 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
13900 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13902 * aclocal.m4: Regenerated with aclocal-1.11.1.
13904 2011-02-14 Pedro Alves <pedro@codesourcery.com>
13906 * server.c (handle_qxfer_traceframe_info): New.
13907 (qxfer_packets): Register "traceframe-info".
13908 (handle_query): Report support for qXfer:traceframe-info:read+.
13909 * tracepoint.c (match_blocktype): New.
13910 (traceframe_find_block_type): Rename to ...
13911 (traceframe_walk_blocks): ... this. Add callback filter argument,
13913 (traceframe_find_block_type): New, reimplemented on top of
13914 traceframe_walk_blocks.
13915 (build_traceframe_info_xml): New.
13916 (traceframe_read_info): New.
13917 * server.h (traceframe_read_info): Declare.
13919 2011-02-11 Yao Qi <yao@codesourcery.com>
13921 * configure.ac: Call AC_PROG_RANLIB.
13922 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13923 * configure: Regenerate.
13925 2011-02-07 Pedro Alves <pedro@codesourcery.com>
13927 * server.c (gdb_read_memory): Change return semantics to allow
13929 (handle_search_memory_1): Adjust.
13930 (process_serial_event) <'m' packet>: Handle partial transfers.
13931 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
13933 2011-01-28 Pedro Alves <pedro@codesourcery.com>
13935 * regcache.c (init_register_cache): Initialize
13936 regcache->register_status.
13937 (free_register_cache): Release regcache->register_status.
13938 (regcache_cpy): Copy register_status.
13939 (registers_to_string): Print 'x's for unavailable registers.
13940 (supply_register): Mark the register's status valid or
13941 unavailable, depending on whether a buffer was passed in or not.
13942 (supply_register_zeroed): New.
13943 (supply_regblock): Mark the registers' status valid or
13944 unavailable, depending on whether a buffer was passed in or not.
13945 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
13946 (struct regcache): New `register_status' field.
13947 (supply_register_zeroed): Declare.
13948 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
13949 supply_register_zeroed, rather than passing a NULL buffer to
13951 * tracepoint.c (fetch_traceframe_registers): Update comment.
13953 2011-01-28 Pedro Alves <pedro@codesourcery.com>
13955 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
13958 2011-01-25 Pedro Alves <pedro@codesourcery.com>
13960 * server.h (decode_xfer_write): Change prototype.
13961 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
13962 and don't extract the annex here.
13963 * server.c (decode_xfer_read): Remove `annex' parameter,
13964 and don't extract the annex here.
13965 (decode_xfer): New.
13966 (struct qxfer): New.
13967 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
13968 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
13969 (handle_qxfer_statictrace): New functions, abstracted out from
13970 handle_query, and made to use the struct qxfer interface.
13971 (handle_threads_qxfer_proper): Rename to ...
13972 (handle_qxfer_threads_proper): ... this.
13973 (handle_threads_qxfer): Rename to ...
13974 (handle_qxfer_threads): ... this. Adjust.
13975 (qxfer_packets): New array.
13976 (handle_qxfer): New function.
13977 (handle_query): Use handle_qxfer.
13979 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
13981 * gdbreplay.c: Shorten lines of >= 80 columns.
13982 * linux-low.c: Ditto.
13983 * linux-ppc-low.c: Ditto.
13984 * linux-s390-low.c: Ditto.
13985 * linux-sparc-low.c: Ditto.
13986 * linux-x86-low.c: Ditto.
13987 * linux-xtensa-low.c: Ditto.
13988 * mem-break.c: Ditto.
13989 * nto-low.c: Ditto.
13990 * regcache.h: Ditto.
13991 * remote-utils.c: Ditto.
13994 * thread-db.c: Ditto.
13995 * tracepoint.c: Ditto.
13997 * win32-low.h: Ditto.
13999 2011-01-05 Joel Brobecker <brobecker@adacore.com>
14001 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14004 2011-01-01 Joel Brobecker <brobecker@adacore.com>
14006 * server.c (gdbserver_version): Update copyright year in version
14008 * gdbreplay.c (gdbreplay_version): Ditto.
14010 2010-12-29 Jie Zhang <jie.zhang@analog.com>
14012 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14013 * linux-bfin-low.c: New file.
14014 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14015 PT_DATA_ADDR for BFIN targets.
14016 * Makefile.in (SFILES): Add linux-bfin-low.c.
14017 (clean): Remove reg-bfin.c.
14018 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14019 * README: Mention supported Blackfin targets.
14021 2010-12-23 Mike Frysinger <vapier@gentoo.org>
14023 * .gitignore: New file.
14025 2010-11-16 Mike Frysinger <vapier@gentoo.org>
14027 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14029 2010-10-22 Jie Zhang <jie@codesourcery.com>
14031 * Makefile.in: Add FLAGS_TO_PASS variable.
14032 (install): Remove dependency of install-only and recursively
14033 invoke make for install-only.
14035 2010-10-04 Doug Evans <dje@google.com>
14037 * Makefile.in (uninstall): Use $(DESTDIR).
14039 2010-09-24 Pedro Alves <pedro@codesourcery.com>
14043 * linux-x86-low.c (compat_siginfo_from_siginfo)
14044 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14045 si_code is < 0. Check for si_code == SI_TIMER before checking for
14048 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14050 * lynx-i386-low.c: New file.
14051 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14053 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14055 * lynx-low.c (ptrace_request_to_str): Remove handling for
14056 request values that have been removed in LynxOS 5.x.
14058 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14060 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14063 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14065 * configure.ac: Add --enable-inprocess-agent option.
14066 * configure: Rebuilt.
14068 2010-09-06 Yao Qi <yao@codesourcery.com>
14070 * linux-low.c (linux_kill): Remove unused variable.
14071 (linux_stabilize_threads): Likewise.
14072 * server.c (start_inferior): Likewise.
14073 (queue_stop_reply_callback): Likewise.
14074 * tracepoint.c (do_action_at_tracepoint): Likewise.
14076 2010-09-06 Yao Qi <yao@codesourcery.com>
14078 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14081 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14083 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14085 2010-09-06 Pedro Alves <pedro@codesourcery.com>
14087 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14090 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14092 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14093 gdbserver/lynx-ppc-low.c: New files.
14094 * Makefile.in (lynx_low_h): New variable.
14095 (lynx-low.o, lynx-ppc-low.o): New rules.
14096 * configure.ac: On LynxOS, link with -lnetinet.
14097 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14098 * configure: regenerate.
14100 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14102 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
14103 * configure.ac: Add check for vasprintf and vsnprintf.
14104 * configure, config.in: Regenerate.
14105 * server.h (vasprintf, vsnprintf): Add conditional declarations.
14107 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14109 * gdbreplay.c: Move include of alloca.h up, next to include of
14111 * server.h: Add include of malloc.h.
14112 * mem-break.c: Remove include of malloc.h.
14113 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
14115 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14117 * Makefile.in (memmem.o): Build with -Wno-error.
14119 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14121 * utils.c (xsnprintf): Make non-static.
14122 * server.h: Add xsnprintf declaration.
14123 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
14124 replace calls to snprintf by calls to xsnprintf throughout.
14126 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14128 * configure.ac: Add configure check for alloca.
14129 * configure, config.in: Regenerate.
14130 * server.h: Include alloca.h if it exists.
14131 * gdbreplay.c: Include alloca.h if it exists.
14133 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14135 * linux-low.c (__SIGRTMIN): Define if not already defined.
14136 (linux_create_inferior): Check for __ANDROID__ rather than
14138 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
14139 are already deferred.
14140 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
14141 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
14142 stopped and already has a pending signal to report.
14143 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
14144 a pending signal to report or is moving out of a jump pad.
14145 (linux_init_signals): Check for __ANDROID__ rather than
14148 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14150 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14151 debug_threads check. Avoid a linear search when not doing debug
14154 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14156 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
14157 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
14158 (struct file_handler) <fd>: Change type to gdb_fildes_t.
14159 (process_event): Change local fd's type to gdb_fildes_t.
14160 (create_file_handler): Adjust prototype.
14161 (delete_file_handler): Adjust prototype.
14162 (handle_file_event): Adjust prototype. Use pfildes.
14163 (create_file_event): Adjsut prototype.
14164 * remote-utils.c (remote_desc, listen_desc): Change type to
14166 * server.h: New gdb_fildes_t typedef.
14167 [USE_WIN32API]: Include winsock2.h.
14168 (delete_file_handler, add_file_handler): Adjust prototypes.
14169 (pfildes): Declare.
14170 * utils.c (pfildes): New.
14172 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14174 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14175 * configure: Regenerate.
14177 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14179 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
14180 (linux_done_accessing_memory): ... this.
14181 (linux_target_ops): Adjust.
14182 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
14183 * nto-low.c (nto_target_ops): Adjust comment.
14184 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
14185 * spu-low.c (spu_target_ops): Adjust comment.
14186 * target.h (target_ops): Rename unprepare_to_access_memory field
14187 to done_accessing_memory.
14188 (unprepare_to_access_memory): Rename to ...
14189 (done_accessing_memory): ... this.
14191 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14193 * linux-low.c (linux_prepare_to_access_memory): New.
14194 (linux_unprepare_to_access_memory): New.
14195 (linux_target_ops): Install them.
14196 * server.c (read_memory): Rename to ...
14197 (gdb_read_memory): ... this. Use
14198 prepare_to_access_memory/prepare_to_access_memory.
14199 (write_memory): Rename to ...
14200 (gdb_write_memory): ... this. Use
14201 prepare_to_access_memory/prepare_to_access_memory.
14202 (handle_search_memory_1): Adjust.
14203 (process_serial_event): Adjust.
14204 * target.h (struct target_ops): New fields
14205 prepare_to_access_memory and unprepare_to_access_memory.
14206 (prepare_to_access_memory, unprepare_to_access_memory): New.
14207 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
14208 prepare_to_access_memory/prepare_to_access_memory.
14209 * nto-low.c (nto_target_ops): Adjust.
14210 * spu-low.c (spu_target_ops): Adjust.
14211 * win32-low.c (win32_target_ops): Adjust.
14213 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14215 * Makefile.in (WARN_CFLAGS): Get it from configure.
14216 (WERROR_CFLAGS): New.
14217 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
14218 * configure.ac: Introduce --enable-werror, which adds -Werror to
14219 the compiler command line. Enabled by default. Disable with
14220 --disable-werror. Add -Wdeclaration-after-statement
14221 Wpointer-arith and -Wformat-nonliteral to warning flags.
14222 * configure: Regenerate.
14224 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14226 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14228 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14230 * gdbreplay.c (remote_error): New.
14232 (expect): Use gdbchar. Check for error reading from GDB.
14233 Clarify sync error output.
14234 (play): Check for errors writing to GDB.
14235 * linux-low.c (sigchld_handler): Really ignore `write' errors.
14236 * remote-utils.c (getpkt): Check for errors writing to the remote
14239 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14241 * linux-low.c (linux_wait_1): Move non-debugging code out of
14242 `debug_threads' control.
14244 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14246 * linux-low.c (linux_wait_1): Don't set last_status here.
14247 * server.c (push_event, queue_stop_reply_callback): Assert we're
14248 not pushing a TARGET_WAITKIND_IGNORE event.
14249 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
14250 (myresume, handle_target_event): Set the thread's last_resume_kind
14251 and last_status from the target returned status.
14253 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14257 * linux-x86-low.c (update_debug_registers_callback): New.
14258 (i386_dr_low_set_addr): Use it.
14259 (i386_dr_low_get_addr): New.
14260 (i386_dr_low_set_control): Use update_debug_registers_callback.
14261 (i386_dr_low_get_control): New.
14262 (i386_dr_low_get_status): Adjust.
14263 * linux-low.c (linux_stop_lwp): New.
14264 * linux-low.h (linux_stop_lwp): Declare.
14266 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
14267 argument instead of a i386_debug_reg_state.
14268 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
14269 a i386_debug_reg_state.
14270 (i386_insert_aligned_watchpoint): Adjust.
14271 (i386_remove_aligned_watchpoint): Adjust.
14272 (i386_low_stopped_data_address): Read the debug registers from the
14273 inferior instead of from the mirrors.
14274 * i386-low.h (struct i386_debug_reg_state): Extend comment.
14275 (i386_dr_low_get_addr): Declare.
14276 (i386_dr_low_get_control): Declare.
14277 (i386_dr_low_get_status): Change prototype.
14279 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
14280 (i386_dr_low_get_addr): New.
14281 (i386_dr_low_get_control): New.
14282 (i386_dr_low_get_status): Adjust prototype. Return
14284 (i386_initial_stuff): Clear dr_status_mirror and
14286 (i386_get_thread_context): Adjust.
14287 (i386_set_thread_context): Adjust.
14288 (i386_thread_added): Adjust.
14290 2010-08-24 Pedro Alves <pedro@codesourcery.com>
14292 * linux-low.h (linux_thread_area): Delete declaration.
14294 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14296 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14297 after its termination.
14299 2010-08-09 Pedro Alves <pedro@codesourcery.com>
14301 * linux-low.c (gdb_wants_lwp_stopped): Delete.
14302 (gdb_wants_all_stopped): Delete.
14303 (linux_wait_1): Don't call them.
14304 * server.c (handle_v_cont): Tag all threads as want-stopped.
14305 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
14306 stopped as "client-wants-stopped".
14308 2010-07-31 Pedro Alves <pedro@codesourcery.com>
14310 * Makefile.in (signals_h): New.
14311 (server_h): Depend on it.
14312 (server.o): Don't depend on $(signals_def).
14313 (signals.o): Depend on $(signals_def).
14315 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14317 * Makefile.in (signals_def): New.
14318 (server_h): Append include/gdb/signals.h and signals_def.
14319 (server.o): Append signals_def.
14321 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14323 * server.c (handle_target_event): Use target_signal_to_host for
14324 resume_info.sig initialization.
14325 * target.h (struct thread_resume) <sig>: New comment.
14327 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14329 * server.c (handle_query): strcpy() the returned string from paddress()
14330 instead of sprintf().
14331 * utils.c (paddress): Return phex_nz().
14333 2010-07-07 Joel Brobecker <brobecker@adacore.com>
14335 * server.c (handle_v_cont): Call mourn_inferior if process
14337 (myresume): Likewise.
14339 2010-07-01 Pedro Alves <pedro@codesourcery.com>
14341 Static tracepoints, and integration with UST.
14343 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
14344 * mem-break.c (uninsert_all_breakpoints)
14345 (reinsert_all_breakpoints): New.
14346 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
14347 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
14348 (gdb_agent_ust_loaded, helper_thread_id)
14349 (gdb_agent_helper_thread_id): New macros.
14350 (struct ipa_sym_addresses): Add addr_ust_loaded,
14351 addr_helper_thread_id, addr_cmd_buf.
14352 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14353 (in_process_agent_loaded_ust): New.
14354 (write_e_ust_not_loaded): New.
14355 (maybe_write_ipa_ust_not_loaded): New.
14356 (struct collect_static_trace_data_action): New.
14357 (enum tracepoint_type) <static_tracepoint>: New.
14358 (struct tracepoint) <handle>: Mention static tracepoints.
14359 (struct static_tracepoint_ctx): New.
14360 (CMD_BUF_SIZE): New.
14361 (add_tracepoint_action): Handle static tracepoint actions.
14362 (unprobe_marker_at): New.
14363 (clear_installed_tracepoints): Handle static tracepoints.
14364 (cmd_qtdp): Handle static tracepoints.
14365 (probe_marker_at): New.
14366 (cmd_qtstart): Handle static tracepoints.
14367 (response_tracepoint): Handle static tracepoints.
14368 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
14369 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
14370 (get_context_regcache): Handle static tracepoints.
14371 (do_action_at_tracepoint): Handle static tracepoint actions.
14372 (traceframe_find_block_type): Handle static trace data blocks.
14373 (traceframe_read_sdata): New.
14374 (download_tracepoints): Download static tracepoint actions.
14375 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
14376 (GDB_PROBE_NAME): New.
14378 (GET_UST_SYM): New.
14381 (ust_marker_to_static_tracepoint): New.
14383 (collect_ust_data_at_tracepoint): New.
14384 (gdb_ust_probe): New.
14385 (UNIX_PATH_MAX, SOCK_DIR): New.
14386 (gdb_ust_connect_sync_socket): New.
14387 (resume_thread, stop_thread): New.
14388 (run_inferior_command): New.
14389 (init_named_socket): New.
14390 (gdb_ust_socket_init): New.
14391 (cstr_to_hexstr): New.
14393 (first_marker, next_marker): New.
14394 (response_ust_marker): New.
14395 (cmd_qtfstm, cmd_qtsstm): New.
14396 (unprobe_marker_at, probe_marker_at): New.
14397 (cmd_qtstmat, gdb_ust_thread): New.
14398 (gdb_ust_init): New.
14399 (initialize_tracepoint_ftlib): Call gdb_ust_init.
14400 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
14401 (ST_REGENTRY): New.
14402 (x86_64_st_collect_regmap): New.
14403 (X86_64_NUM_ST_COLLECT_GREGS): New.
14404 (AMD64_RIP_REGNUM): New.
14405 (supply_static_tracepoint_registers): New.
14406 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
14407 (ST_REGENTRY): New.
14408 (i386_st_collect_regmap): New.
14409 (i386_NUM_ST_COLLECT_GREGS): New.
14410 (supply_static_tracepoint_registers): New.
14411 * server.c (handle_query): Handle qXfer:statictrace:read.
14412 <qSupported>: Report support for StaticTracepoints, and
14413 qXfer:statictrace:read features.
14414 * server.h (traceframe_read_sdata)
14415 (supply_static_tracepoint_registers): Declare.
14416 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
14417 (unpack_varlen_hex): Include in IPA build.
14418 * Makefile.in (ustlibs, ustinc): New.
14419 (IPA_OBJS): Add remote-utils-ipa.o.
14420 ($(IPA_LIB)): Link -ldl and -lpthread.
14422 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14423 * config.in, configure: Regenerate.
14425 2010-06-20 Ian Lance Taylor <iant@google.com>
14426 Pedro Alves <pedro@codesourcery.com>
14428 * linux-x86-low.c (always_true): Delete.
14429 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
14430 trying to fool the compiler with always_true.
14432 2010-06-20 Pedro Alves <pedro@codesourcery.com>
14434 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14435 conditions in gdbserver.
14437 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14439 * spu-low.c (spu_read_memory): Wrap around local store limit.
14440 (spu_write_memory): Likewise.
14442 2010-06-15 Pedro Alves <pedro@codesourcery.com>
14444 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14445 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14447 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14449 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14450 uses with LONGEST uses.
14452 2010-06-14 Stan Shebs <stan@codesourcery.com>
14453 Pedro Alves <pedro@codesourcery.com>
14457 * linux-x86-low.c: Include limits.h.
14459 (always_true): New.
14462 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14463 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14464 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14465 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14466 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14467 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14468 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14469 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14470 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14471 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14472 (amd64_emit_void_call_2): New.
14473 (amd64_emit_ops): New.
14474 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14475 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14476 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14477 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14478 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14479 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14480 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14481 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14482 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14483 (i386_emit_stack_adjust, i386_emit_int_call_1)
14484 (i386_emit_void_call_2): New.
14485 (i386_emit_ops): New.
14486 (x86_emit_ops): New.
14487 (the_low_target): Install x86_emit_ops.
14488 * server.h (struct emit_ops): New.
14489 (get_raw_reg_func_addr): Declare.
14490 (current_insn_ptr, emit_error): Declare.
14491 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
14492 (set_trace_state_variable_value): New defines.
14493 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
14494 addr_get_trace_state_variable_value and
14495 addr_set_trace_state_variable_value.
14496 (symbol_list): New fields for get_raw_reg,
14497 get_trace_state_variable_value and set_trace_state_variable_value.
14498 (condfn): New typedef.
14499 (struct tracepoint): New field `compiled_cond'.
14500 (do_action_at_tracepoint): Clear compiled_cond.
14501 (get_trace_state_variable_value, set_trace_state_variable_value):
14503 (condition_true_at_tracepoint): If there's a compiled condition,
14505 (current_insn_ptr, emit_error): New globals.
14506 (struct bytecode_address): New.
14507 (get_raw_reg_func_addr): New.
14508 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
14509 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
14510 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
14511 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
14512 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
14513 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
14514 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
14515 (compile_tracepoint_condition, compile_bytecodes): New.
14516 * target.h (emit_ops): Forward declare.
14517 (struct target_ops): New field emit_ops.
14518 (target_emit_ops): New.
14519 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
14520 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
14521 * linux-low.c (linux_emit_ops): New.
14522 (linux_target_ops): Install it.
14523 * linux-low.h (struct linux_target_ops): New field emit_ops.
14525 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
14527 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
14528 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
14530 2010-06-01 Pedro Alves <pedro@codesourcery.com>
14531 Stan Shebs <stan@codesourcery.com>
14533 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
14534 (all): Depend on $(extra_libraries).
14535 (install-only): Install the IPA.
14536 (IPA_OBJS, IPA_LIB): New.
14537 (clean): Remove the IPA lib.
14538 (IPAGENT_CFLAGS): New.
14539 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
14540 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
14541 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
14542 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
14543 * configure.ac: Check for atomic builtins support in the compiler.
14544 (IPA_DEPFILES, extra_libraries): Define.
14545 * configure.srv (ipa_obj): Add description.
14546 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
14547 (i[34567]86-*-linux*): Set ipa_obj.
14548 (x86_64-*-linux*): Set ipa_obj.
14549 * linux-low.c (stabilizing_threads): New.
14550 (supports_fast_tracepoints): New.
14551 (linux_detach): Stabilize threads before detaching.
14552 (handle_tracepoints): Handle internal tracing breakpoints. Assert
14553 the lwp is either not stabilizing, or is moving out of a jump pad.
14554 (linux_fast_tracepoint_collecting): New.
14555 (maybe_move_out_of_jump_pad): New.
14556 (enqueue_one_deferred_signal): New.
14557 (dequeue_one_deferred_signal): New.
14558 (linux_wait_for_event_1): If moving out of a jump pad, defer
14559 pending signals to later.
14560 (linux_stabilize_threads): New.
14561 (linux_wait_1): Check if threads need moving out of jump pads, and
14563 (stuck_in_jump_pad_callback): New.
14564 (move_out_of_jump_pad_callback): New.
14565 (lwp_running): New.
14566 (linux_resume_one_lwp): Handle moving out of jump pads.
14567 (linux_set_resume_request): Dequeue deferred signals.
14568 (need_step_over_p): Also step over fast tracepoint jumps.
14569 (start_step_over): Also uninsert fast tracepoint jumps.
14570 (finish_step_over): Also reinsert fast tracepoint jumps.
14571 (linux_install_fast_tracepoint_jump): New.
14572 (linux_target_ops): Install linux_stabilize_threads and
14573 linux_install_fast_tracepoint_jump_pad.
14574 * linux-low.h (linux_target_ops) <get_thread_area,
14575 install_fast_tracepoint_jump_pad>: New fields.
14576 (struct lwp_info) <collecting_fast_tracepoint,
14577 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
14578 (linux_get_thread_area): Declare.
14579 * linux-x86-low.c (jump_insn): New.
14580 (x86_get_thread_area): New.
14581 (append_insns): New.
14582 (push_opcode): New.
14583 (amd64_install_fast_tracepoint_jump_pad): New.
14584 (i386_install_fast_tracepoint_jump_pad): New.
14585 (x86_install_fast_tracepoint_jump_pad): New.
14586 (the_low_target): Install x86_get_thread_area and
14587 x86_install_fast_tracepoint_jump_pad.
14588 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
14589 (struct fast_tracepoint_jump): New.
14590 (fast_tracepoint_jump_insn): New.
14591 (fast_tracepoint_jump_shadow): New.
14592 (find_fast_tracepoint_jump_at): New.
14593 (fast_tracepoint_jump_here): New.
14594 (delete_fast_tracepoint_jump): New.
14595 (set_fast_tracepoint_jump): New.
14596 (uninsert_fast_tracepoint_jumps_at): New.
14597 (reinsert_fast_tracepoint_jumps_at): New.
14598 (set_breakpoint_at): Use write_inferior_memory.
14599 (uninsert_raw_breakpoint): Use write_inferior_memory.
14600 (check_mem_read): Mask out fast tracepoint jumps.
14601 (check_mem_write): Mask out fast tracepoint jumps.
14602 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
14603 (set_fast_tracepoint_jump): Declare.
14604 (delete_fast_tracepoint_jump)
14605 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
14606 (reinsert_fast_tracepoint_jumps_at): Declare.
14607 * regcache.c: Don't compile many functions when building the
14608 in-process agent library.
14609 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
14610 the register buffer in the heap.
14611 (free_register_cache): If the register buffer isn't owned by the
14612 regcache, don't free it.
14613 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
14614 pre-existing register caches.
14615 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
14617 (convert_ascii_to_int): : Constify `from' parameter type.
14618 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
14619 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
14620 the needed buffer in-place.
14621 (relocate_instruction): New.
14622 * server.c (handle_query) <qSymbols>: If the target supports
14623 tracepoints, give it a chance of looking up symbols. Report
14624 support for fast tracepoints.
14625 (handle_status): Stabilize threads.
14626 (process_serial_event): Adjust.
14627 * server.h (struct fast_tracepoint_jump): Forward declare.
14628 (struct process_info) <fast_tracepoint_jumps>: New field.
14629 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
14630 (decode_X_packet, decode_M_packet): Adjust.
14631 (relocate_instruction): Declare.
14632 (in_process_agent_loaded): Declare.
14633 (tracepoint_look_up_symbols): Declare.
14634 (struct fast_tpoint_collect_status): Declare.
14635 (fast_tracepoint_collecting): Declare.
14636 (force_unlock_trace_buffer): Declare.
14637 (handle_tracepoint_bkpts): Declare.
14638 (initialize_low_tracepoint)
14639 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
14640 * target.h (struct target_ops) <stabilize_threads,
14641 install_fast_tracepoint_jump_pad>: New fields.
14642 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
14643 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
14644 [HAVE_STDINT_H]: Include stdint.h.
14645 (trace_debug_1): Rename to ...
14646 (trace_vdebug): ... this.
14647 (trace_debug): Rename to ...
14648 (trace_debug_1): ... this. Add `level' parameter.
14649 (trace_debug): New.
14650 (ATTR_USED, ATTR_NOINLINE): New.
14651 (IP_AGENT_EXPORT): New.
14652 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
14653 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
14654 (about_to_request_buffer_space, trace_buffer_is_full)
14655 (stopping_tracepoint, expr_eval_result, error_tracepoint)
14656 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
14657 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
14658 (traceframe_write_count, traceframes_created)
14659 (trace_state_variables)
14660 New renaming defines.
14661 (struct ipa_sym_addresses): New.
14662 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
14663 (symbol_list): New.
14664 (ipa_sym_addrs): New.
14665 (all_tracepoint_symbols_looked_up): New.
14666 (in_process_agent_loaded): New.
14667 (write_e_ipa_not_loaded): New.
14668 (maybe_write_ipa_not_loaded): New.
14669 (tracepoint_look_up_symbols): New.
14670 (debug_threads) [IN_PROCESS_AGENT]: New.
14671 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
14672 (UNKNOWN_SIDE_EFFECTS): New.
14673 (stop_tracing): New.
14674 (flush_trace_buffer): New.
14675 (stop_tracing_bkpt): New.
14676 (flush_trace_buffer_bkpt): New.
14677 (read_inferior_integer): New.
14678 (read_inferior_uinteger): New.
14679 (read_inferior_data_pointer): New.
14680 (write_inferior_data_pointer): New.
14681 (write_inferior_integer): New.
14682 (write_inferior_uinteger): New.
14683 (struct collect_static_trace_data_action): Delete.
14684 (enum tracepoint_type): New.
14685 (struct tracepoint) <type>: New field `type'.
14686 <actions_str, step_actions, step_actions_str>: Only include in
14688 <orig_size, obj_addr_on_target, adjusted_insn_addr>
14689 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
14690 (tracepoints): Use IP_AGENT_EXPORT.
14691 (last_tracepoint): Don't include in the IPA.
14692 (stopping_tracepoint): Use IP_AGENT_EXPORT.
14693 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
14694 (alloced_trace_state_variables): New.
14695 (trace_state_variables): Use IP_AGENT_EXPORT.
14696 (traceframe_t): Delete unused variable.
14697 (circular_trace_buffer): Don't include in the IPA.
14698 (trace_buffer_start): Delete.
14699 (struct trace_buffer_control): New.
14700 (trace_buffer_free): Delete.
14701 (struct ipa_trace_buffer_control): New.
14702 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
14703 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
14705 (trace_buffer_ctrl): New.
14706 (TRACE_BUFFER_CTRL_CURR): New.
14707 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
14708 Reimplement as macros.
14709 (trace_buffer_wrap): Delete.
14710 (traceframe_write_count, traceframe_read_count)
14711 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
14712 (struct tracepoint_hit_ctx) <type>: New field.
14713 (struct fast_tracepoint_ctx): New.
14714 (memory_barrier): New.
14716 (record_tracepoint_error): Update atomically in the IPA.
14717 (clear_inferior_trace_buffer): New.
14718 (about_to_request_buffer_space): New.
14719 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
14720 updating the same buffer.
14721 (add_tracepoint): Default the tracepoint's type to trap
14722 tracepoint, and orig_size to -1.
14723 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
14724 internal variables.
14725 (create_trace_state_variable): New parameter `gdb'. Handle it.
14726 (clear_installed_tracepoints): Clear fast tracepoint jumps.
14727 (cmd_qtdp): Handle fast tracepoints.
14728 (cmd_qtdv): Adjust.
14729 (max_jump_pad_size): New.
14730 (gdb_jump_pad_head): New.
14731 (get_jump_space_head): New.
14732 (claim_jump_space): New.
14733 (sort_tracepoints): New.
14734 (MAX_JUMP_SIZE): New.
14735 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
14737 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
14738 support. Upload fast traceframes, and delete internal IPA
14740 (stop_tracing_handler): New.
14741 (flush_trace_buffer_handler): New.
14742 (cmd_qtstop): Upload fast tracepoints.
14743 (response_tracepoint): Handle fast tracepoints.
14744 (tracepoint_finished_step): Upload fast traceframes. Set the
14745 tracepoint hit context's tracepoint type.
14746 (handle_tracepoint_bkpts): New.
14747 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
14748 type. Add comment about fast tracepoints.
14749 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
14750 non-existing action_str field.
14751 (get_context_regcache): Handle fast tracepoints.
14752 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
14754 (fast_tracepoint_from_jump_pad_address): New.
14755 (fast_tracepoint_from_ipa_tpoint_address): New.
14756 (collecting_t): New.
14757 (force_unlock_trace_buffer): New.
14758 (fast_tracepoint_collecting): New.
14760 (gdb_collect): New.
14761 (write_inferior_data_ptr): New.
14762 (target_tp_heap): New.
14763 (target_malloc): New.
14764 (download_agent_expr): New.
14766 (download_tracepoints): New.
14767 (download_trace_state_variables): New.
14768 (upload_fast_traceframes): New.
14769 (IPA_FIRST_TRACEFRAME): New.
14770 (IPA_NEXT_TRACEFRAME_1): New.
14771 (IPA_NEXT_TRACEFRAME): New.
14772 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
14773 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
14774 (gdb_jump_pad_buffer_end): New.
14775 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
14776 (initialize_tracepoint): Adjust.
14777 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
14778 buffer. Initialize the low module.
14779 * utils.c (PREFIX, TOOLNAME): New.
14780 (malloc_failure): Use PREFIX.
14781 (error): In the IPA, an error causes an exit.
14782 (fatal, warning): Use PREFIX.
14783 (internal_error): Use TOOLNAME.
14784 (NUMCELLS): Increase to 10.
14785 * configure, config.in: Regenerate.
14787 2010-06-01 Pedro Alves <pedro@codesourcery.com>
14789 * server.c (handle_query) <qSupported>: Do two passes over the
14790 qSupported string to avoid nesting strtok.
14792 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14794 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
14796 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
14797 -Wl,--dynamic-list.
14798 * configure: Regenerate.
14799 * proc-service.list: New.
14801 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14803 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
14806 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
14808 * gdbreplay.c (remote_open): Check error return from socket() call by
14809 its equality to -1 not by it being negative.
14810 * remote-utils.c (remote_open): Likewise.
14812 2010-05-23 Pedro Alves <pedro@codesourcery.com>
14814 * config.h: Regenerate.
14816 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14818 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
14819 doesn't provide PTRACE_GET_THREAD_AREA.
14821 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14823 * linux-m68k-low.c: Include <asm/ptrace.h>
14824 (ps_get_thread_area): Implement.
14826 2010-05-03 Doug Evans <dje@google.com>
14828 * event-loop.c (struct callback_event): New struct.
14829 (callback_list): New global.
14830 (append_callback_event, delete_callback_event): New functions.
14831 (process_callback): New function.
14832 (start_event_loop): Call it.
14833 * remote-utils.c (NOT_SCHEDULED): Define.
14834 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
14835 moved out of readchar.
14836 (readchar): Rewrite. Call reschedule before returning.
14837 (reset_readchar): New function.
14838 (remote_close): Call it.
14839 (process_remaining, reschedule): New functions.
14840 * server.h (callback_handler_func): New typedef.
14841 (append_callback_event, delete_callback_event): Declare.
14843 2010-05-03 Pedro Alves <pedro@codesourcery.com>
14845 * proc-service.c (ps_pglobal_lookup): Use
14846 thread_db_look_up_one_symbol.
14847 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
14848 parameter. Use it instead of all_symbols_looked_up.
14849 * server.h (struct process_info) <all_symbols_looked_up>: Delete
14851 (all_symbols_looked_up): Don't declare.
14852 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
14853 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
14855 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
14856 Set all_symbols_looked_up here.
14857 (thread_db_look_up_one_symbol): New.
14858 (thread_db_get_tls_address): Adjust.
14859 (thread_db_load_search, try_thread_db_load_1): Always allocate the
14860 thread_db object on the heap, and tentatively set it in the
14862 (thread_db_init): Don't set all_symbols_looked_up here.
14863 * linux-low.h (thread_db_look_up_one_symbol): Declare.
14865 2010-05-03 Pedro Alves <pedro@codesourcery.com>
14867 * linux-low.c (linux_kill, linux_detach): Adjust.
14868 (status_pending_p_callback): Remove redundant statement. Check
14869 for !TARGET_WAITIKIND_IGNORE, instead of
14870 TARGET_WAITKIND_STOPPED.
14871 (handle_tracepoints): Make sure LWP is locked. Adjust.
14872 (linux_wait_for_event_1): Adjust.
14873 (linux_cancel_breakpoints): New.
14874 (unsuspend_one_lwp): New.
14875 (unsuspend_all_lwps): New.
14876 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
14877 (send_sigstop_callback): Change return type to int, add new
14878 `except' parameter and handle it.
14879 (suspend_and_send_sigstop_callback): New.
14880 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
14881 pass them down. If SUSPEND, also increment the lwp's suspend
14883 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
14884 (need_step_over_p): Don't consider suspended LWPs.
14885 (start_step_over): Adjust.
14886 (proceed_one_lwp): Change return type to int, add new `except'
14887 parameter and handle it.
14888 (unsuspend_and_proceed_one_lwp): New.
14889 (proceed_all_lwps): Use find_inferior instead of
14891 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
14892 also decrement the suspend count of LWPs. Pass `except' down,
14893 instead of hacking its suspend count.
14894 (linux_pause_all): Add `freeze' parameter. Adjust.
14895 (linux_unpause_all): New.
14896 (linux_target_ops): Install linux_unpause_all.
14897 * server.c (handle_status): Adjust.
14898 * target.h (struct target_ops): New fields `unpause_all' and
14899 `cancel_breakpoints'. Add new parameter to `pause_all'.
14900 (pause_all): Add new `freeze' parameter.
14901 (unpause_all): New.
14902 (cancel_breakpoints): New.
14903 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
14904 cancel breakpoints.
14905 (cmd_qtstart): Pause threads.
14906 (stop_tracing): Pause threads, and cancel breakpoints.
14907 * win32-low.c (win32_target_ops): Adjust.
14909 2010-05-03 Pedro Alves <pedro@codesourcery.com>
14911 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
14912 the inferior right away from here...
14913 (linux_wait_1): ... to here, and adjust to check the thread's
14914 last_resume_kind instead of the lwp's step or stop_expected flags.
14916 2010-05-02 Pedro Alves <pedro@codesourcery.com>
14918 * README: Use consistent `GDB' and `GDBserver' spellings.
14920 2010-05-02 Pedro Alves <pedro@codesourcery.com>
14922 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
14923 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
14924 (linux_detach_one_lwp): Assume the lwp is stopped.
14925 (any_thread_of): Delete.
14926 (linux_detach): Stop all lwps here. Don't blindly delete all
14928 (delete_lwp_callback): New.
14929 (linux_mourn): Delete all lwps of the process that is gone.
14930 (linux_wait_1): Don't delete the last lwp of the process here.
14931 * mem-break.h (mark_breakpoints_out): Declare.
14932 * mem-break.c (mark_breakpoints_out): New.
14933 (free_all_breakpoints): Use it.
14934 * server.c (handle_target_event): If the process is gone, mark
14936 * thread-db.c (struct thread_db) <create_bp>: New field.
14937 (thread_db_enable_reporting): Fix prototype. Store a thread event
14938 breakpoint reference in the thread_db struct.
14939 (thread_db_load_search): Clear the thread_db object.
14940 (try_thread_db_load_1): Ditto.
14941 (switch_to_process): New.
14942 (disable_thread_event_reporting): Use it.
14943 (remove_thread_event_breakpoints): New.
14944 (thread_db_detach, thread_db_mourn): Use it.
14946 2010-05-01 Pedro Alves <pedro@codesourcery.com>
14948 * linux-low.c (linux_enable_event_reporting): New.
14949 (linux_wait_for_event_1, handle_extended_wait): Use it.
14951 2010-04-30 Pedro Alves <pedro@codesourcery.com>
14953 * linux-low.c (linux_kill_one_lwp, linux_kill)
14954 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
14955 (send_sigstop): Take an lwp_info as parameter instead. Queue a
14956 SIGSTOP even if the LWP is stopped.
14957 (send_sigstop_callback): New.
14958 (stop_all_lwps): Use send_sigstop_callback instead.
14959 (linux_resume_one_thread): Adjust.
14960 (proceed_one_lwp): Still proceed an LWP that the client has
14961 requested to stop, if we haven't reported it as stopped yet. Make
14962 sure that LWPs the client want stopped, have a pending SIGSTOP.
14964 2010-04-26 Doug Evans <dje@google.com>
14966 * server.c (handle_general_set): Make static.
14968 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
14969 Print received char after testing for error/eof instead of before.
14970 (input_interrupt): Tweak comment.
14972 2010-04-23 Doug Evans <dje@google.com>
14974 * server.c (start_inferior): Print inferior argv if --debug.
14976 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
14978 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
14979 * nto-x86-low.c: Include server.h
14981 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
14983 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
14984 be consistent with other sources of this directory.
14985 (init_registers_amd64): Correct name of source file of this function
14988 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14990 * configure.srv (x86_64-*-mingw*): New configuration for Windows
14991 64-bit executables.
14993 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14995 * win32-i386-low.c: Add 64-bit support.
14996 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
14997 (init_registers_amd64): Declare.
14998 (mappings): Add 64-bit version of array.
14999 (init_windows_x86): New function.
15000 (the_low_target): Change init_arch field to init_windows_x86.
15002 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15004 * win32-low.c: Adapt to support also 64-bit architecture.
15005 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15006 (get_image_name): Use SIZE_T type for local variable `done'.
15007 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15008 (toolhelp_get_dll_name): Idem.
15009 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15010 Use uintptr_t typecast to avoid warning.
15011 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15012 (handle_exception): Use phex_nz to avoid warning.
15013 (win32_wait): Remove unused local variable `process'.
15015 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15017 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15020 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15022 * configure.ac: Use `ws2_32' library for srv_mingw.
15023 * configure: Regenerate.
15024 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15025 * remote-utils.c: Likewise.
15027 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15029 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15030 if __x86_64__ is defined.
15032 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15034 * configure: Regenerate.
15036 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15038 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15039 * target.h (target_ops): New get_tib_address field.
15040 * win32-low.h (win32_thread_info): Add thread_local_base field.
15041 * win32-low.c (child_add_thread): Add tlb argument.
15042 Set thread_local_base field to TLB.
15043 (get_child_debug_event): Adapt to child_add_thread change.
15044 (win32_get_tib_address): New function.
15045 (win32_target_ops): Set get_tib_address field to
15046 win32_get_tib_address.
15047 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15049 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15051 * linux-low.c (linux_mourn): Also remove the process.
15052 * server.c (handle_target_event): Don't remove the process here.
15053 * nto-low.c (nto_mourn): New.
15054 (nto_target_ops): Install it.
15055 * spu-low.c (spu_mourn): New.
15056 (spu_target_ops): Install it.
15057 * win32-low.c (win32_mourn): New.
15058 (win32_target_ops): Install it.
15060 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15062 * server.h (buffer_xml_printf): Remove redundant `;'.
15064 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15066 * regcache.c (set_register_cache): Invalidate regcaches before
15067 changing the register cache layout.
15068 (regcache_invalidate_one): Allow a NULL regcache.
15069 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15070 regcaches before changing the register cache layout or the target
15073 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15075 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15076 variable warning on Linux/x86-64.
15078 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15080 GDBserver disconnected tracing support.
15082 * linux-low.c (linux_remove_process): Delete.
15083 (add_lwp): Don't set last_resume_kind here.
15084 (linux_kill): Use `mourn'.
15085 (linux_detach): Use `thread_db_detach', and `mourn'.
15086 (linux_mourn): New.
15087 (linux_attach_lwp_1): Adjust comment.
15088 (linux_attach): last_resume_kind moved the thread_info; adjust.
15089 (status_pending_p_callback): Adjust.
15090 (linux_wait_for_event_1): Adjust.
15091 (count_events_callback, select_singlestep_lwp_callback)
15092 (select_event_lwp_callback, cancel_breakpoints_callback)
15093 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15094 (proceed_one_lwp): Adjust.
15095 (linux_async): Add debug output.
15096 (linux_thread_stopped): New.
15097 (linux_pause_all): New.
15098 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15100 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
15101 (thread_db_free): Delete declaration.
15102 (thread_db_detach, thread_db_mourn): Declare.
15103 * thread-db.c (thread_db_init): Use thread_db_mourn.
15104 (thread_db_free): Delete, split in two.
15105 (disable_thread_event_reporting): New.
15106 (thread_db_detach): New.
15107 (thread_db_mourn): New.
15109 * server.h (struct thread_info) <last_resume_kind>: New field.
15110 <attached>: Add comment.
15111 <gdb_detached>: New field.
15112 (handler_func): Change return type to int.
15113 (handle_serial_event, handle_target_event): Ditto.
15114 (gdb_connected): Declare.
15116 (disconnected_tracing): Declare.
15117 (stop_tracing): Declare.
15119 * server.c (handle_query) <qSupported>: Report support for
15120 disconnected tracing.
15121 (queue_stop_reply_callback): Account for running threads.
15122 (gdb_wants_thread_stopped): New.
15123 (gdb_wants_all_threads_stopped): New.
15124 (gdb_reattached_process): New.
15125 (handle_status): Clear the `gdb_detached' flag of all processes.
15126 In all-stop, stop all threads.
15127 (main): Be sure to leave tfind mode. Handle disconnected tracing.
15128 (process_serial_event): If the remote connection breaks, or if an
15129 exit was forced with "monitor exit", force an event loop exit.
15130 Handle disconnected tracing on detach.
15131 (handle_serial_event): Adjust.
15132 (handle_target_event): If GDB isn't connected, forward events back
15133 to the inferior, unless the last process exited, in which case,
15134 exit gdbserver. Adjust interface.
15136 * remote-utils.c (remote_open): Don't block in accept. Instead
15137 register an event loop source on the listen socket file
15138 descriptor. Refactor bits into ...
15139 (listen_desc): ... this new global.
15140 (gdb_connected): ... this new function.
15141 (enable_async_notification): ... this new function.
15142 (handle_accept_event): ... this new function.
15143 (remote_close): Clear remote_desc.
15145 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15147 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15149 (mourn_inferior): Define.
15150 (target_process_qsupported): Avoid the dangling else problem.
15151 (thread_stopped): Define.
15152 (pause_all): Define.
15153 (target_waitstatus_to_string): Declare.
15154 * target.c (target_waitstatus_to_string): New.
15156 * tracepoint.c (tracing): Make extern.
15157 (disconnected_tracing): New.
15158 (stop_tracing): Make extern. Handle tracing stops due to GDB
15160 (cmd_qtdisconnected): New.
15161 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15162 (handle_tracepoint_general_set): Handle QTDisconnected.
15164 * event-loop.c (event_handler_func): Change return type to int.
15165 (process_event): Bail out if the event handler wants the event
15167 (handle_file_event): Ditto.
15168 (start_event_loop): Bail out if the event handler wants the event
15171 * nto-low.c (nto_target_ops): Adjust.
15172 * spu-low.c (spu_wait): Don't remove the process here.
15173 (spu_target_ops): Adjust.
15174 * win32-low.c (win32_wait): Don't remove the process here.
15175 (win32_target_ops): Adjust.
15177 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15179 * regcache.c (realloc_register_cache): Invalidate inferior's
15180 regcache before recreating it.
15182 2010-04-09 Pedro Alves <pedro@codesourcery.com>
15184 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15186 2010-04-09 Stan Shebs <stan@codesourcery.com>
15187 Pedro Alves <pedro@codesourcery.com>
15189 * server.h (LONGEST): New.
15190 (struct thread_info) <while_stepping>: New field.
15191 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15193 (initialize_tracepoint, handle_tracepoint_general_set)
15194 (handle_tracepoint_query, tracepoint_finished_step)
15195 (tracepoint_was_hit, release_while_stepping_state_list):
15196 (current_traceframe): Declare.
15197 * server.c (handle_general_set): Handle tracepoint packets.
15198 (read_memory): New.
15199 (write_memory): New.
15200 (handle_search_memory_1): Use read_memory.
15201 (handle_query): Report support for conditional tracepoints, trace
15202 state variables, and tracepoint sources. Handle tracepoint
15204 (main): Initialize the tracepoints module.
15205 (process_serial_event): Handle traceframe reads/writes.
15207 * linux-low.c (handle_tracepoints): New.
15208 (linux_wait_1): Call it.
15209 (linux_resume_one_lwp): Handle while-stepping.
15210 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
15211 (linux_target_ops): Install them.
15212 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
15214 * linux-x86-low.c (x86_supports_tracepoints): New.
15215 (the_low_target). Install it.
15217 * mem-break.h (delete_breakpoint): Declare.
15218 * mem-break.c (delete_breakpoint): Make external.
15220 * target.h (struct target_ops): Add `supports_tracepoints',
15221 `read_pc', and `write_pc' fields.
15222 (target_supports_tracepoints): Define.
15223 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
15226 * regcache.h (struct regcache) <registers_owned>: New field.
15227 (init_register_cache, regcache_cpy): Declare.
15228 (regcache_read_pc, regcache_write_pc): Declare.
15229 (register_cache_size): Declare.
15230 (supply_regblock): Declare.
15231 * regcache.c (init_register_cache): New.
15232 (new_register_cache): Use it.
15233 (regcache_cpy): New.
15234 (register_cache_size): New.
15235 (supply_regblock): New.
15236 (regcache_read_pc, regcache_write_pc): New.
15238 * tracepoint.c: New.
15240 * Makefile.in (OBS): Add tracepoint.o.
15241 (tracepoint.o): New rule.
15243 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15245 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15247 (i386-mmx.c): Likewise.
15248 (i386-mmx-linux.o): Likewise.
15249 (i386-mmx-linux.c): Likewise.
15251 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
15252 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
15253 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
15254 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
15256 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
15257 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
15258 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
15260 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15262 * Makefile.in (clean): Updated.
15264 (i386-avx.c): Likewise.
15265 (i386-avx-linux.o): Likewise.
15266 (i386-avx-linux.c): Likewise.
15267 (amd64-avx.o): Likewise.
15268 (amd64-avx.c): Likewise.
15269 (amd64-avx-linux.o): Likewise.
15270 (amd64-avx-linux.c): Likewise.
15272 * configure.srv (srv_i386_regobj): Add i386-avx.o.
15273 (srv_i386_linux_regobj): Add i386-avx-linux.o.
15274 (srv_amd64_regobj): Add amd64-avx.o.
15275 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
15276 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
15277 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
15278 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
15279 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
15280 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
15281 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
15283 * i387-fp.c: Include "i386-xstate.h".
15285 (i387_cache_to_xsave): Likewise.
15286 (i387_xsave_to_cache): Likewise.
15287 (x86_xcr0): Likewise.
15289 * i387-fp.h (i387_cache_to_xsave): Likewise.
15290 (i387_xsave_to_cache): Likewise.
15291 (x86_xcr0): Likewise.
15293 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
15294 * linux-crisv32-low.c (target_regsets): Likewise.
15295 * linux-m68k-low.c (target_regsets): Likewise.
15296 * linux-mips-low.c (target_regsets): Likewise.
15297 * linux-ppc-low.c (target_regsets): Likewise.
15298 * linux-s390-low.c (target_regsets): Likewise.
15299 * linux-sh-low.c (target_regsets): Likewise.
15300 * linux-sparc-low.c (target_regsets): Likewise.
15301 * linux-xtensa-low.c (target_regsets): Likewise.
15303 * linux-low.c: Include <sys/uio.h>.
15304 (regsets_fetch_inferior_registers): Support nt_type.
15305 (regsets_store_inferior_registers): Likewise.
15306 (linux_process_qsupported): New.
15307 (linux_target_ops): Add linux_process_qsupported.
15309 * linux-low.h (regset_info): Add nt_type.
15310 (linux_target_ops): Add process_qsupported.
15312 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15314 (init_registers_i386_avx_linux): New.
15315 (init_registers_amd64_avx_linux): Likewise.
15316 (xmltarget_i386_linux_no_xml): Likewise.
15317 (xmltarget_amd64_linux_no_xml): Likewise.
15318 (PTRACE_GETREGSET): Likewise.
15319 (PTRACE_SETREGSET): Likewise.
15320 (x86_fill_xstateregset): Likewise.
15321 (x86_store_xstateregset): Likewise.
15322 (use_xml): Likewise.
15323 (x86_linux_update_xmltarget): Likewise.
15324 (x86_linux_process_qsupported): Likewise.
15325 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
15326 (x86_arch_setup): Don't call init_registers_amd64_linux nor
15327 init_registers_i386_linux here. Call
15328 x86_linux_update_xmltarget.
15329 (the_low_target): Add x86_linux_process_qsupported.
15331 * server.c (handle_query): Call target_process_qsupported.
15333 * target.h (target_ops): Add process_qsupported.
15334 (target_process_qsupported): New.
15336 2010-04-03 Pedro Alves <pedro@codesourcery.com>
15338 * inferiors.c (add_thread): Set last_status kind to
15339 TARGET_WAITKIND_IGNORE.
15340 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
15341 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
15342 (linux_wait_1): Move `thread' local definition to block that uses
15343 it. Don't NULL initialize `event_child'.
15344 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
15345 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
15346 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
15348 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15350 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15351 an extended waitstatus, or by a watchpoint.
15352 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15353 thread was stepping or has been stopped by a watchpoint.
15355 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15357 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15358 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15359 of another, then delete the previous, and validate all
15361 (validate_inserted_breakpoint): New.
15362 (delete_disabled_breakpoints): New.
15363 (validate_breakpoints): New.
15364 (check_mem_read): Validate breakpoints before trusting their
15365 shadow. Delete disabled breakpoints.
15366 (check_mem_write): Validate breakpoints before trusting they
15367 should be inserted. Delete disabled breakpoints.
15368 * mem-break.h (validate_breakpoints):
15369 * server.c (handle_query): Validate breakpoints when we see a
15372 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15374 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
15375 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
15376 if we could tell there's a GDB breakpoint at stop_pc.
15377 (need_step_over_p): Don't do a step over if we find a GDB
15378 breakpoint at the resume PC.
15380 * mem-break.c (struct raw_breakpoint): New.
15381 (enum bkpt_type): New type `gdb_breakpoint'.
15382 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
15383 fields. New field `raw'.
15384 (find_raw_breakpoint_at): New.
15385 (set_raw_breakpoint_at): Handle refcounting. Create a raw
15386 breakpoint instead.
15387 (set_breakpoint_at): Adjust.
15388 (delete_raw_breakpoint): New.
15389 (release_breakpoint): New.
15390 (delete_breakpoint): Rename to...
15391 (delete_breakpoint_1): ... this. Add proc parameter. Use
15392 release_breakpoint. Return ENOENT.
15393 (delete_breakpoint): Reimplement.
15394 (find_breakpoint_at): Delete.
15395 (find_gdb_breakpoint_at): New.
15396 (delete_breakpoint_at): Delete.
15397 (set_gdb_breakpoint_at): New.
15398 (delete_gdb_breakpoint_at): New.
15399 (gdb_breakpoint_here): New.
15400 (set_reinsert_breakpoint): Use release_breakpoint.
15401 (uninsert_breakpoint): Rename to ...
15402 (uninsert_raw_breakpoint): ... this.
15403 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
15404 (reinsert_raw_breakpoint): Change parameter type to
15406 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15408 (check_breakpoints): Adjust. Use release_breakpoint.
15409 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
15410 (breakpoint_inserted_here): Ditto.
15411 (check_mem_read): Adjust to iterate over raw breakpoints instead.
15412 Don't trust the breakpoint's shadow if it is not inserted.
15413 (check_mem_write): Adjust to iterate over raw breakpoints instead.
15414 (delete_all_breakpoints): Adjust.
15415 (free_all_breakpoints): Mark all breakpoints as uninserted, and
15416 use delete_breakpoint_1.
15418 * mem-break.h (breakpoints_supported): Delete declaration.
15419 (set_gdb_breakpoint_at): Declare.
15420 (gdb_breakpoint_here): Declare.
15421 (delete_breakpoint_at): Delete.
15422 (delete_gdb_breakpoint_at): Declare.
15424 * server.h (struct raw_breakpoint): Forward declare.
15425 (struct process_info): New field `raw_breakpoints'.
15427 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15430 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15432 * linux-low.c (status_pending_p_callback): Fix comment.
15433 (linux_wait_for_event_1): Move most of the internal breakpoint
15434 handling from here...
15435 (linux_wait_1): ... to here.
15436 (count_events_callback): New.
15437 (select_singlestep_lwp_callback): New.
15438 (select_event_lwp_callback): New.
15439 (cancel_breakpoints_callback): New.
15440 (select_event_lwp): New.
15441 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15442 priority to all LWPs that have had events that should be reported
15443 to the client. Cancel breakpoints when about to reporting the
15444 event to the client, not while stopping lwps. No longer cancel
15445 finished single-steps here.
15446 (cancel_finished_single_step): Delete.
15447 (cancel_finished_single_steps): Delete.
15449 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15451 * mem-break.c (enum bkpt_type): New.
15452 (struct breakpoint): New field `type'.
15453 (set_breakpoint_at): Change return type to struct breakpoint
15454 pointer. Set type to `other_breakpoint' by default.
15455 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15456 in the breakpoint list.
15457 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15458 (reinsert_breakpoint): Rename to ...
15459 (reinsert_raw_breakpoint): ... this.
15460 (reinsert_breakpoints_at): Adjust.
15461 * mem-break.h (struct breakpoint): Declare.
15462 (set_breakpoint_at): Change return type to struct breakpoint
15465 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15467 * server.c (handle_query): Assign, not compare.
15469 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15471 Teach linux gdbserver to step-over-breakpoints.
15473 * linux-low.c (can_hardware_single_step): New.
15474 (supports_breakpoints): New.
15475 (handle_extended_wait): If stopping threads, read the stop pc of
15476 the new cloned LWP.
15478 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15479 low target doesn't support retrieving the PC.
15480 (add_lwp): Set last_resume_kind to resume_continue.
15481 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15482 (linux_attach): Don't clear stop_expected. Set the lwp's
15483 last_resume_kind to resume_stop.
15484 (linux_detach_one_lwp): Don't check for removed breakpoints.
15485 (check_removed_breakpoint): Delete.
15486 (status_pending_p): Rename to ...
15487 (status_pending_p_callback): ... this. Don't check for removed
15488 breakpoints. Don't consider threads that are stopped from GDB's
15490 (linux_wait_for_lwp): Always read the stop_pc here.
15491 (cancel_breakpoint): New.
15492 (step_over_bkpt): New global.
15493 (linux_wait_for_event_1): Implement stepping over breakpoints.
15494 (gdb_wants_lwp_stopped): New.
15495 (gdb_wants_all_stopped): New.
15496 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
15497 single-step traps here. Store the thread's last reported target
15499 (send_sigstop): Don't clear stop_expected. Always set it,
15501 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
15502 (cancel_finished_single_step): New.
15503 (cancel_finished_single_steps): New.
15504 (wait_for_sigstop): Don't cancel finished single-step traps here.
15505 (linux_resume_one_lwp): Don't check for removed breakpoints.
15506 Don't set `step' on non-hardware step archs.
15507 (linux_set_resume_request): Ignore resume_stop requests if already
15508 stopping or stopped. Set the lwp's last_resume_kind.
15509 (resume_status_pending_p): Don't check for removed breakpoints.
15510 (need_step_over_p): New.
15511 (start_step_over): New.
15512 (finish_step_over): New.
15513 (linux_resume_one_thread): Always queue a sigstop for resume_stop
15514 requests. Clear the thread's last reported target waitstatus.
15515 Don't use the `suspended' flag. Don't consider pending breakpoints.
15516 (linux_resume): Start a step-over if necessary.
15517 (proceed_one_lwp): New.
15518 (proceed_all_lwps): New.
15519 (unstop_all_lwps): New.
15520 * linux-low.h (struct lwp_info): Rewrite comment for the
15521 `suspended' flag. Add the `stop_pc' field. Delete the
15522 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
15523 Add `'last_resume_kind' and `need_step_over' fields.
15524 * inferiors.c (struct thread_info): Delete, moved elsewhere.
15525 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
15526 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
15527 (set_raw_breakpoint_at): New.
15528 (set_breakpoint_at): Rewrite to use it.
15529 (reinsert_breakpoint_handler): Delete.
15530 (set_reinsert_breakpoint): New.
15531 (reinsert_breakpoint_by_bp): Delete.
15532 (delete_reinsert_breakpoints): New.
15533 (uninsert_breakpoint): Rewrite.
15534 (uninsert_breakpoints_at): New.
15535 (reinsert_breakpoint): Rewrite.
15536 (reinsert_breakpoints_at): New.
15537 (check_breakpoints): Rewrite.
15538 (breakpoint_here): New.
15539 (breakpoint_inserted_here): New.
15540 (check_mem_read): Adjust.
15541 * mem-break.h (breakpoints_supported, breakpoint_here)
15542 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
15543 (reinsert_breakpoint_by_bp): Delete declaration.
15544 (delete_reinsert_breakpoints): Declare.
15545 (reinsert_breakpoint): Delete declaration.
15546 (reinsert_breakpoints_at): Declare.
15547 (uninsert_breakpoint): Delete declaration.
15548 (uninsert_breakpoints_at): Declare.
15549 (check_breakpoints): Adjust prototype.
15550 * server.h: Adjust include order.
15551 (struct thread_info): Declare here. Add a `last_status' field.
15553 2010-03-23 Michael Snyder <msnyder@vmware.com>
15555 * server.c (crc32): New function.
15556 (handle_query): Add handling for 'qCRC:' request.
15558 2010-03-23 Pedro Alves <pedro@codesourcery.com>
15560 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
15561 lwp had been stopped by a watchpoint.
15563 2010-03-16 Pedro Alves <pedro@codesourcery.com>
15565 * server.h (internal_error): Declare.
15566 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
15567 * utils.c (internal_error): New function.
15569 2010-03-15 Andreas Schwab <schwab@redhat.com>
15571 * configure.srv: Fix typo setting srv_regobj.
15573 2010-03-15 Pedro Alves <pedro@codesourcery.com>
15575 * linux-low.c (fetch_register): Avoid passing a non string literal
15577 (usr_store_inferior_registers): Ditto.
15579 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15581 * linux-low.c (linux_write_memory): Bail out early if peeking
15584 2010-03-14 Pedro Alves <pedro@codesourcery.com>
15586 * linux-low.h (struct lwp_info): New fields
15587 `stopped_by_watchpoint' and `stopped_data_address'.
15588 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
15589 here, and cache them in the lwp object.
15590 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
15592 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
15594 (linux_stopped_by_watchpoint): Rewrite.
15595 (linux_stopped_data_address): Rewrite.
15597 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
15599 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
15600 switching the current inferior, not before.
15602 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15604 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
15605 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
15606 i386-linux.c and amd64-linux.c.
15607 (reg-i386.o): Removed.
15608 (reg-i386.c): Likewise.
15609 (reg-i386-linux.o): Likewise.
15610 (reg-i386-linux.c): Likewise.
15611 (reg-x86-64.o): Likewise.
15612 (reg-x86-64.c): Likewise.
15613 (reg-x86-64-linux.o): Likewise.
15614 (reg-x86-64-linux.c): Likewise.
15616 (i386.c): Likewise.
15617 (i386-linux.o): Likewise.
15618 (i386-linux.c): Likewise.
15619 (amd64.o): Likewise.
15620 (amd64.c): Likewise.
15621 (amd64-linux.o): Likewise.
15622 (amd64-linux.c): Likewise.
15624 * configure.srv (srv_i386_regobj): New.
15625 (srv_i386_linux_regobj): Likewise.
15626 (srv_amd64_regobj): Likewise.
15627 (srv_amd64_linux_regobj): Likewise.
15628 (srv_i386_32bit_xmlfiles): Likewise.
15629 (srv_i386_64bit_xmlfiles): Likewise.
15630 (srv_i386_xmlfiles): Likewise.
15631 (srv_amd64_xmlfiles): Likewise.
15632 (srv_i386_linux_xmlfiles): Likewise.
15633 (srv_amd64_linux_xmlfiles): Likewise.
15634 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
15635 srv_xmlfiles to $srv_i386_xmlfiles.
15636 (i[34567]86-*-mingw32ce*): Likewise.
15637 (i[34567]86-*-mingw*): Likewise.
15638 (i[34567]86-*-nto*): Likewise.
15639 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
15640 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
15641 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
15642 (x86_64-*-linux*): Likewise.
15644 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
15645 (init_registers_amd64_linux): New.
15646 (x86_arch_setup): Replace init_registers_x86_64_linux with
15647 init_registers_amd64_linux.
15649 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
15651 * configure.ac: Check for libdl. If it is not available link against
15652 static libthread_db.
15653 * configure: Regenerate.
15655 2010-02-22 Pedro Alves <pedro@codesourcery.com>
15659 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
15660 handing a read watchpoint.
15661 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
15663 2010-02-12 Doug Evans <dje@google.com>
15665 * linux-low.c (linux_supports_tracefork_flag): Document.
15666 (linux_look_up_symbols): Add comment.
15668 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
15670 * regcache.c (supply_register): Clear regcache if buf is NULL.
15672 2010-02-02 Nicolas Roche <roche@sourceware.org>
15673 Joel Brobecker <brobecker@adacore.com>
15675 * inferiors.c (find_inferior): Add function documentation.
15676 (unloaded_dll): Handle the case where the unloaded dll has not
15677 been previously registered in the dll list.
15679 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
15681 * linux-arm-low.c (thumb_breakpoint_len): Delete.
15682 (thumb2_breakpoint): New.
15683 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
15685 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15687 * linux-low.c (get_stop_pc): Check for SIGTRAP.
15688 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
15691 2010-01-21 Pedro Alves <pedro@codesourcery.com>
15693 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
15695 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15697 * linux-s390-low.c (s390_collect_ptrace_register)
15698 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
15700 2010-01-21 Doug Evans <dje@google.com>
15702 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
15703 (PTRACE_ARG4_TYPE): New macro.
15704 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
15705 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
15706 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
15707 (usr_store_inferior_registers): Ditto.
15708 (linux_read_memory, linux_write_memory): Ditto.
15709 (linux_test_for_tracefork): Ditto.
15711 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
15712 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
15714 2010-01-21 Pedro Alves <pedro@codesourcery.com>
15716 * proc-service.c (ps_lgetregs): Don't refetch registers from the
15719 2010-01-21 Pedro Alves <pedro@codesourcery.com>
15721 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
15722 prototype to take a regcache. Adjust.
15724 2010-01-20 Pedro Alves <pedro@codesourcery.com>
15726 * regcache.h (struct thread_info): Forward declare.
15727 (struct regcache): New.
15728 (new_register_cache): Adjust prototype.
15729 (get_thread_regcache): Declare.
15730 (free_register_cache): Adjust prototype.
15731 (registers_to_string, registers_from_string): Ditto.
15732 (supply_register, supply_register_by_name, collect_register)
15733 (collect_register_as_string, collect_register_by_name): Ditto.
15734 * regcache.c (struct inferior_regcache_data): Delete.
15735 (get_regcache): Rename to ...
15736 (get_thread_regcache): ... this. Adjust. Switch inferior before
15737 fetching registers.
15738 (regcache_invalidate_one): Adjust.
15739 (regcache_invalidate): Fix prototype.
15740 (new_register_cache): Return the new register cache.
15741 (free_register_cache): Change prototype.
15742 (realloc_register_cache): Adjust.
15743 (registers_to_string): Change prototype to take a regcache. Adjust.
15744 (registers_from_string): Ditto.
15745 (register_data): Ditto.
15746 (supply_register): Ditto.
15747 (supply_register_by_name): Ditto.
15748 (collect_register): Ditto.
15749 (collect_register_as_string): Ditto.
15750 (collect_register_by_name): Ditto.
15751 * server.c (process_serial_event): Adjust.
15752 * linux-low.h (regset_fill_func, regset_store_func): Change
15754 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
15756 * linux-low.c (get_stop_pc): Adjust.
15757 (check_removed_breakpoint): Adjust.
15758 (linux_wait_for_event): Adjust.
15759 (linux_resume_one_lwp): Adjust.
15760 (fetch_register): Add regcache parameter. Adjust.
15761 (usr_store_inferior_registers): Ditto.
15762 (regsets_fetch_inferior_registers): Ditto.
15763 (regsets_store_inferior_registers): Ditto.
15764 (linux_fetch_registers, linux_store_registers): Ditto.
15765 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
15767 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
15769 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
15770 prototype to take a regcache.
15771 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
15772 * remote-utils.c (convert_ascii_to_int, outreg)
15773 (prepare_resume_reply): Change prototype to take a regcache.
15775 * target.h (struct target_ops) <fetch_registers, store_registers>:
15776 Change prototype to take a regcache.
15777 (fetch_inferior_registers, store_inferior_registers): Change
15778 prototype to take a regcache. Adjust.
15779 * proc-service.c (ps_lgetregs): Adjust.
15780 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
15781 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
15782 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
15783 take a regcache. Adjust.
15784 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
15785 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
15786 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
15787 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
15788 * linux-cris-low.c (cris_get_pc, cris_set_pc)
15789 (cris_cannot_fetch_register):
15790 (cris_breakpoint_at): Change prototype to take a regcache.
15792 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
15793 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
15794 to take a regcache. Adjust.
15795 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
15797 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
15798 take a regcache. Adjust.
15799 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
15800 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
15801 (m68k_set_pc): Change prototype to take a regcache. Adjust.
15802 * linux-mips-low.c (mips_get_pc):
15803 (mips_set_pc): Change prototype to take a regcache. Adjust.
15804 (mips_reinsert_addr): Adjust.
15805 (mips_collect_register): Change prototype to take a regcache.
15807 (mips_supply_register):
15808 (mips_collect_register_32bit, mips_supply_register_32bit)
15809 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
15810 (mips_store_fpregset): Ditto.
15811 * linux-ppc-low.c (ppc_supply_ptrace_register)
15812 (ppc_supply_ptrace_register): Ditto.
15813 (parse_spufs_run): Adjust.
15814 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
15815 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
15816 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
15817 take a regcache. Adjust.
15818 * linux-s390-low.c (s390_collect_ptrace_register)
15819 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
15820 (s390_set_pc): Change prototype to take a regcache. Adjust.
15821 (s390_arch_setup): Adjust.
15822 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
15823 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
15824 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15825 (sparc_fill_gregset, sparc_store_gregset_from_stack)
15826 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
15828 (sparc_breakpoint_at): Adjust.
15829 * linux-xtensa-low.c (xtensa_fill_gregset):
15830 (xtensa_store_gregset):
15831 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
15832 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
15833 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
15834 prototype to take a regcache. Adjust.
15835 * win32-arm-low.c (arm_fetch_inferior_register)
15836 (arm_store_inferior_register): Change prototype to take a
15838 * win32-i386-low.c (i386_fetch_inferior_register)
15839 (i386_store_inferior_register): Change prototype to take a
15841 * win32-low.c (child_fetch_inferior_registers)
15842 (child_store_inferior_registers): Change prototype to take a
15844 (win32_wait): Adjust.
15845 (win32_fetch_inferior_registers): Change prototype to take a
15847 (win32_store_inferior_registers): Adjust.
15848 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
15849 store_inferior_register>: Change prototype to take a regcache.
15851 2010-01-20 Doug Evans <dje@google.com>
15853 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
15855 (linux_wait_for_event1, linux_init_signals): Ditto.
15856 (W_STOPCODE): Provide definition if missing.
15858 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
15860 * linux-low.c (linux_core_of_thread): New.
15861 (compare_ints, show_process, list_threads): New.
15862 (linux_qxfer_osdata): Report threads and cores.
15863 (linux_target_op): Register linux_core_of_thread.
15864 * remote-utils.c (prepare_resume_reply): Report the core.
15865 (buffer_xml_printf): Support %d specifier.
15866 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
15868 (handle_query): Handle qXfer:threads. Announce availability
15870 * target.h (struct target_ops): New field core_of_thread.
15872 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
15874 * Makefile.in (clean): Remove new generated files.
15875 (reg-s390.o, reg-s390.c): Remove rules.
15876 (reg-s390x.o, reg-s390x.c): Likewise.
15877 (s390-linux32.o, s390-linux32.c): Add rules.
15878 (s390-linux64.o, s390-linux64.c): Likewise.
15879 (s390x-linux64.o, s390x-linux64.c): Likewise.
15880 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
15881 * linux-s390-low.c: Include <elf.h>.
15882 (HWCAP_S390_HIGH_GPRS): Define if undefined.
15883 (init_registers_s390): Remove prototype.
15884 (init_registers_s390x): Likewise.
15885 (init_registers_s390_linux32): Add prototype.
15886 (init_registers_s390_linux64): Likewise.
15887 (init_registers_s390x_linux64): Likewise.
15888 (s390_num_regs_3264): New define.
15889 (s390_regmap_3264): New global variable.
15890 (s390_cannot_fetch_register): Remove obsolete check.
15891 (s390_cannot_store_register): Likewise.
15892 (s390_collect_ptrace_register): Handle upper/lower register halves.
15893 (s390_supply_ptrace_register): Likewise.
15894 (s390_fill_gregset): Update to register number changes.
15895 (s390_get_hwcap): New routine.
15896 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
15897 Install appropriate regmap and register set.
15899 2010-01-01 Joel Brobecker <brobecker@adacore.com>
15901 * server.c (gdbserver_version): Update copyright year to 2010.
15902 * gdbreplay.c (gdbreplay_version): Likewise.
15904 2009-12-28 Doug Evans <dje@google.com>
15906 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
15907 elf/external.h. Include <elf.h> instead but only if necessary.
15909 2009-12-28 Pedro Alves <pedro@codesourcery.com>
15911 * linux-low.c (linux_remove_process): Remove `detaching'
15912 parameter. Don't release/detach from thread_db here.
15913 (linux_kill): Release/detach from thread_db here, ...
15914 (linux_detach): ... and here, before actually detaching.
15915 (linux_wait_1): ... and here, when a process exits.
15916 * thread-db.c (any_thread_of): New.
15917 (thread_db_free): Switch the current inferior to a thread of the
15920 2009-12-21 Doug Evans <dje@google.com>
15922 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
15924 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
15925 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
15926 warning ifndef __NR_tkill. Move setting of errno there too.
15927 Delete unnecessary resetting of errno after syscall.
15928 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
15930 * configure.ac: Check for dladdr.
15931 * config.in: Regenerate.
15932 * configure: Regenerate.
15933 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
15934 (try_thread_db_load): Update.
15936 * linux-low.c (my_waitpid): Delete unnecessary prototype.
15938 2009-12-18 Doug Evans <dje@google.com>
15940 * event-loop.c: Include unistd.h if it exists.
15942 * linux-low.c (my_waitpid): Move definition away from being in
15943 between linux_tracefork_child/linux_test_for_tracefork.
15945 * gdb_proc_service.h (psaddr_t): Fix type.
15946 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
15947 signature to match glibc.
15949 2009-12-16 Doug Evans <dje@google.com>
15951 * linux-low.c (linux_read_memory): Fix argument to read.
15953 2009-11-26 Pedro Alves <pedro@codesourcery.com>
15955 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
15956 events, don't leave current_inferior pointing at null.
15958 2009-11-26 Pedro Alves <pedro@codesourcery.com>
15960 * win32-low.c (LOG): Delete.
15961 (OUTMSG): Output to stderr.
15962 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
15963 on compile time LOG macro.
15964 (win32_wait): Fix debug output.
15966 2009-11-26 Pedro Alves <pedro@codesourcery.com>
15968 * win32-low.c (win32_add_one_solib): If the dll name is
15969 "ntdll.dll", prepend the system directory to the dll path.
15971 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
15973 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
15975 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
15976 Vladimir Prus <vladimir@codesourcery.com>
15978 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
15979 * configure.ac: Check for __mcoldfire__ and set
15980 gdb_cv_m68k_is_coldfire.
15981 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
15982 reg-cf.o and reg-m68k.o.
15983 * configure: Regenerated.
15985 2009-11-16 Pedro Alves <pedro@codesourcery.com>
15987 * linux-low.c (linux_remove_process): Add `detaching' parameter.
15988 Pass it to thread_db_free.
15989 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
15990 proper `detaching' argument to linux_remove_process.
15991 * linux-low.h (thread_db_free): Add `detaching' parameter.
15992 * thread-db.c (thread_db_init): Pass false as `detaching' argument
15994 (thread_db_free): Add `detaching' parameter. Only
15995 call td_ta_clear_event if detaching from process.
15997 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
15999 * thread-db.c (thread_db_free): Fix typo.
16001 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16004 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16006 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16008 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16009 with an i686 compiler.
16010 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16012 * configure: Rebuilt.
16014 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16018 * server.c (handle_search_memory_1): Correct read_addr initialization
16019 in loop for searching subsequent chunks.
16021 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16023 * configure.ac: New --with-libthread-db option.
16024 * thread-db.c: Allow direct dependence on libthread_db.
16025 (thread_db_free): Adjust.
16026 * config.in: Regenerate.
16027 * configure: Likewise.
16029 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16032 * thread-db.c (attach_thread): New function.
16033 (maybe_attach_thread): Return success/failure.
16034 (find_new_threads_callback): Adjust.
16035 (thread_db_find_new_threads): Loop until no new threads.
16037 2009-10-13 Pedro Alves <pedro@codesourcery.com>
16039 * proc-service.c (ps_lgetregs): Formatting.
16041 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16043 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16044 * configure.ac: Adjust.
16045 * linux-low.h (struct process_info_private): Move members to struct
16047 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16048 * linux-low.c (linux_remove_process): Adjust.
16049 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16050 * server.c (handle_query): Move code ...
16051 (handle_monitor_command): ... here. New function.
16052 * target.h (struct target_ops): New member.
16053 * thread-db.c (struct thread_db): New.
16054 (libthread_db_search_path): New variable.
16055 (thread_db_create_event, thread_db_enable_reporting)
16056 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16057 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16058 (try_thread_db_load_1, dladdr_to_soname): New functions.
16059 (try_thread_db_load, thread_db_load_search): New functions.
16060 (thread_db_init): Search for libthread_db.
16061 (thread_db_free): New function.
16062 (thread_db_handle_monitor_command): Likewise.
16063 * config.in: Regenerate.
16064 * configure: Regenerate.
16066 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16068 * spu-low.c (spu_kill): Wait for inferior to terminate.
16069 Call clear_inferiors.
16070 (spu_detach): Call clear_inferiors.
16072 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16074 * aclocal.m4: Regenerate.
16075 * config.in: Likewise.
16076 * configure: Likewise.
16078 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16080 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16081 (parse_spufs_run): New function.
16082 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16083 (ppc_breakpoint_at): Handle SPU breakpoints.
16085 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16087 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16088 (SPUFS_MAGIC): Define.
16089 (spu_enumerate_spu_ids): New function.
16090 (linux_qxfer_spu): New function.
16091 (linux_target_ops): Install linux_qxfer_spu.
16093 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16095 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16096 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16097 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16098 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16099 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
16100 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
16101 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
16102 (init_registers_powerpc_cell32l): Add prototype.
16103 (init_registers_powerpc_cell64l): Likewise.
16104 (ppc_arch_setup): Detect Cell/B.E. architecture.
16106 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16108 * Makefile.in (datarootdir): New variable.
16110 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16112 * linux-low.c (linux_write_memory): Update debugging output.
16113 * Makefile.in (clean): Add new descriptions.
16114 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
16115 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
16116 * configure.srv: Add new files for arm*-*-linux*.
16117 * linux-arm-low.c: Add new declarations.
16118 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
16119 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
16120 (HWCAP_VFPv3D16): New.
16121 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
16122 instead of __IWMMXT__.
16123 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
16124 (arm_arch_setup): New.
16125 (target_regsets): Remove #ifdef. Add VFP regset.
16126 (the_low_target): Use arm_arch_setup.
16128 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16130 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16131 the main thread again.
16133 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16135 Adding Neutrino gdbserver.
16136 * configure: Regenerated.
16137 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
16138 * configure.srv (i[34567]86-*-nto*): New target.
16139 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
16140 * remote-utils.c [__QNX__]: Include sys/iomgr.h
16141 (nto_comctrl) [__QNX__]: New function.
16142 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
16144 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
16146 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16149 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16150 Pedro Alves <pedro@codesourcery.com>
16152 * win32-i386-low.c (i386_get_thread_context): Handle systems that
16153 don't support CONTEXT_EXTENDED_REGISTERS.
16154 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
16155 (the_low_target): Install them.
16156 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
16157 failing with ERROR_PIPE_NOT_CONNECTED.
16159 2009-06-30 Doug Evans <dje@google.com>
16160 Pierre Muller <muller@ics.u-strasbg.fr>
16162 Add h/w watchpoint support to x86-linux, win32-i386.
16163 * Makefile.in (SFILES): Add i386-low.c
16164 (i386_low_h): Define.
16165 (i386-low.o): Add dependencies.
16166 (linux-x86-low.o): Add i386-low.h dependency.
16167 (win32-i386-low.o): Ditto.
16168 * i386-low.c: New file.
16169 * i386-low.h: New file.
16170 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
16171 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
16172 * linux-low.c (linux_add_process): Initialize arch_private.
16173 (linux_remove_process): Free arch_private.
16174 (add_lwp): Initialize arch_private.
16175 (delete_lwp): Free arch_private.
16176 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
16178 * linux-low.h (process_info_private): New member arch_private.
16179 (lwp_info): New member arch_private.
16180 (linux_target_ops): New members new_process, new_thread,
16182 (ptid_of): New macro.
16183 * linux-x86-low.c: Include stddef.h, i386-low.h.
16184 (arch_process_info): New struct.
16185 (arch_lwp_info): New struct.
16186 (x86_linux_dr_get, x86_linux_dr_set): New functions.
16187 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16188 (i386_dr_low_get_status): New function.
16189 (x86_insert_point, x86_remove_point): New functions.
16190 (x86_stopped_by_watchpoint): New function.
16191 (x86_stopped_data_address): New function.
16192 (x86_linux_new_process, x86_linux_new_thread): New functions.
16193 (x86_linux_prepare_to_resume): New function.
16194 (the_low_target): Add entries for insert_point, remove_point,
16195 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
16197 * server.c (debug_hw_points): New global.
16198 (monitor_show_help): Document set debug-hw-points.
16199 (handle_query): Process "set debug-hw-points".
16200 * server.h (debug_hw_points): Declare.
16201 (paddress): Declare.
16202 * utils.c (NUMCELLS, CELLSIZE): New macros.
16203 (get_sell, xsnprintf, paddress): New functions.
16204 * win32-arm-low.c (the_low_target): Add entries for insert_point,
16205 remove_point, stopped_by_watchpoint, stopped_data_address.
16206 * win32-i386-low.c: Include i386-low.h.
16207 (debug_reg_state): Replaces dr.
16208 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16209 (i386_dr_low_get_status): New function.
16210 (i386_insert_point, i386_remove_point): New functions.
16211 (i386_stopped_by_watchpoint): New function.
16212 (i386_stopped_data_address): New function.
16213 (i386_initial_stuff): Update.
16214 (get_thread_context,set_thread_context,i386_thread_added): Update.
16215 (the_low_target): Add entries for insert_point,
16216 remove_point, stopped_by_watchpoint, stopped_data_address.
16217 * win32-low.c (win32_insert_watchpoint): New function.
16218 (win32_remove_watchpoint): New function.
16219 (win32_stopped_by_watchpoint): New function.
16220 (win32_stopped_data_address): New function.
16221 (win32_target_ops): Add entries for insert_watchpoint,
16222 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
16223 * win32-low.h (win32_target_ops): New members insert_point,
16224 remove_point, stopped_by_watchpoint, stopped_data_address.
16226 2009-06-25 Pedro Alves <pedro@codesourcery.com>
16228 * server.c (process_serial_event): Re-return unsupported, not
16229 error, if the type isn't recognized. Re-allow supporting only
16230 insert or remove packets. Also call require_running for
16231 breakpoints. Add missing break statement to default case. Tidy.
16232 * target.h (struct target_ops): Rename insert_watchpoint to
16233 insert_point, and remove_watchpoint to remove_point.
16235 * linux-low.h (struct linux_target_ops): Likewise.
16236 * linux-low.c (linux_insert_watchpoint): Rename to ...
16237 (linux_insert_point): ... this. Adjust.
16238 (linux_remove_watchpoint): Rename to ...
16239 (linux_remove_point): ... this. Adjust.
16240 (linux_target_ops): Adjust.
16241 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
16242 (cris_insert_point): ... this.
16243 (cris_remove_watchpoint): Rename to ...
16244 (cris_remove_point): ... this.
16245 (the_low_target): Adjust.
16247 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16249 * server.c (handle_v_kill): Pass signal_pid to
16250 kill_inferior if multi_process is zero.
16252 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16254 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
16255 * target.h (target_ops): Comment for *_watchpoint to make it clear
16256 the functions can get types '0' and '1'.
16258 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16260 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
16261 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
16262 * regcache.c (get_regcache): Likewise.
16263 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
16264 * win32-low.c (child_fetch_inferior_registers): Remove check for
16267 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16268 Pedro Alves <pedro@codesourcery.com>
16270 * target.h (struct target_ops) <supports_multi_process>: New
16272 (target_supports_multi_process): New.
16273 * server.c (handle_query): Even if GDB reports support, only
16274 enable multi-process if the target also supports it. Report
16275 multi-process support only if the target backend supports it.
16276 * linux-low.c (linux_supports_multi_process): New function.
16277 (linux_target_ops): Install it as target_supports_multi_process
16280 2009-05-24 Doug Evans <dje@google.com>
16282 Global renaming of find_thread_pid to find_thread_ptid.
16283 * server.h (find_thread_ptid): Renamed from find_thread_pid.
16284 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
16285 All callers updated.
16287 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
16288 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
16291 * linux-low.c (get_stop_pc): Print pc if debug_threads.
16292 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
16293 (linux_resume_one_lwp): Ditto.
16295 2009-05-23 Doug Evans <dje@google.com>
16297 * linux-low.c (linux_resume_one_lwp): Change type of first arg
16298 from struct inferior_list_entry * to struct lwp_info *.
16299 All callers updated.
16301 2009-05-13 Doug Evans <dje@google.com>
16303 * linux-x86-low.c: Don't include assert.h.
16304 (x86_siginfo_fixup): Use fatal, not assert.
16305 (x86_arch_setup): Fix comment.
16307 2009-05-12 Doug Evans <dje@google.com>
16309 Biarch support for i386/amd64 gdbserver.
16310 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
16311 Add linux-x86-low.c.
16312 (linux-i386-low.o, linux-x86-64-low.o): Delete.
16313 (linux-x86-low.o): Add.
16314 * linux-x86-64-low.c: Delete.
16315 * linux-i386-low.c: Delete.
16316 * linux-x86-low.c: New file.
16317 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
16319 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16321 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
16322 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
16323 (linux_child_pid_to_exec_file): New function.
16324 (elf_64_header_p, elf_64_file_p): New functions.
16325 (siginfo_fixup): New function.
16326 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
16327 give target a chance to convert layout.
16328 * linux-low.h (linux_target_ops): New member siginfo_fixup.
16329 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
16331 2009-05-07 Doug Evans <dje@google.com>
16333 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16334 (regsets_store_inferior_registers): Ditto.
16336 2009-05-06 Pedro Alves <pedro@codesourcery.com>
16340 * linux-low.c (must_set_ptrace_flags): Delete.
16341 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16343 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16344 `lwp->must_set_ptrace_flags' instead.
16345 (linux_wait_for_event_1): Set ptrace options here.
16346 (linux_wait_1): ... not here.
16348 2009-04-30 Doug Evans <dje@google.com>
16350 * inferiors.c (started_inferior_callback): New function.
16351 (attached_inferior_callback): New function.
16352 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16353 * server.c (print_started_pid, print_attached_pid): New functions.
16354 (detach_or_kill_for_exit): New function.
16355 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16356 * server.h (have_started_inferiors_p): Declare.
16357 (have_attached_inferiors_p): Declare.
16359 * inferiors.c (remove_process): Fix memory leak, free process.
16360 * linux-low.c (linux_remove_process): New function.
16361 (linux_kill): Call it instead of remove_process.
16362 (linux_detach, linux_wait_1): Ditto.
16364 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16366 * configure.srv: Add x86 Windows CE target.
16368 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16370 * inferiors.c (get_thread_process): Make global.
16371 * server.h (get_thread_process): Add prototype.
16372 * thread-db.c (find_one_thread): Use get_thread_process
16373 instead of current_process.
16374 (thread_db_get_tls_address): Do not crash if called when
16375 thread layer is not yet initialized.
16377 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16379 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
16380 * spu-low.c (current_tid): Rename to ...
16381 (current_ptid): ... this.
16382 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
16383 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
16384 ptid_get_lwp (current_ptid) instead of current_tid.
16385 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
16386 instead of current_tid. Use find_process_pid to verify pid
16387 argument is valid. Pass proper argument to remove_process.
16388 (spu_thread_alive): Compare current_ptid instead of current_tid.
16389 (spu_resume): Likewise.
16391 2009-04-02 Pedro Alves <pedro@codesourcery.com>
16393 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16396 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16398 Implement the multiprocess extensions, and add linux multiprocess
16401 * server.h (ULONGEST): Declare.
16402 (struct ptid, ptid_t): New.
16403 (minus_one_ptid, null_ptid): Declare.
16404 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16405 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
16406 (struct inferior_list_entry): Change `id' type from unsigned from
16408 (struct sym_cache, struct breakpoint, struct
16409 process_info_private): Forward declare.
16410 (struct process_info): Declare.
16411 (current_process): Declare.
16412 (all_processes): Declare.
16413 (initialize_inferiors): Declare.
16414 (add_thread): Adjust to use ptid_t.
16415 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
16416 (add_process, remove_process, find_thread_pid): Declare.
16417 (find_inferior_id): Adjust to use ptid_t.
16418 (cont_thread, general_thread, step_thread): Change type to ptid_t.
16419 (multi_process): Declare.
16420 (push_event): Adjust to use ptid_t.
16421 (read_ptid, write_ptid): Declare.
16422 (prepare_resume_reply): Adjust to use ptid_t.
16423 (clear_symbol_cache): Declare.
16424 * inferiors.c (all_processes): New.
16425 (null_ptid, minus_one_ptid): New.
16426 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16427 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
16428 (add_thread): Change unsigned long to ptid. Remove gdb_id
16430 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
16431 (gdb_id_to_thread): Rename to ...
16432 (find_thread_pid): ... this. Change unsigned long to ptid.
16433 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16434 (loaded_dll, pull_pid_from_list): Adjust.
16435 (add_process, remove_process, find_process_pid)
16436 (get_thread_process, current_process, initialize_inferiors): New.
16437 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16438 (struct target_waitstatus) <related_pid>: Ditto.
16439 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16440 return type to int.
16441 (struct target_ops) <join>: Add `pid' argument.
16442 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16443 (struct target_ops) <wait>: Add `ptid' field. Change return type
16445 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16446 (mywait): Add `ptid' argument. Change return type to ptid_t.
16447 (target_pid_to_str): Declare.
16448 * target.c (set_desired_inferior): Adjust to use ptids.
16449 (mywait): Add new `ptid' argument. Adjust.
16450 (target_pid_to_str): New.
16451 * mem-break.h (free_all_breakpoints): Declare.
16452 * mem-break.c (breakpoints): Delelete.
16453 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16454 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16455 to use per-process breakpoint list.
16456 (free_all_breakpoints): New.
16457 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16458 (symbol_cache, all_symbols_looked_up): Delete.
16460 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16462 (prepare_resume_reply): Change ptid argument's type from unsigned
16463 long to ptid_t. Adjust. Implement W;process and X;process.
16464 (free_sym_cache, clear_symbol_cache): New.
16465 (look_up_one_symbol): Adjust to per-process symbol cache. *
16466 * server.c (cont_thread, general_thread, step_thread): Change type
16468 (attached): Delete.
16469 (multi_process): New.
16470 (last_ptid): Change type to ptid_t.
16471 (struct vstop_notif) <ptid>: Change type to ptid_t.
16472 (queue_stop_reply, push_event): Change `ptid' argument's type to
16474 (discard_queued_stop_replies): Add `pid' argument.
16475 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16476 changes. Don't reference the `attached' global.
16477 (attach_inferior): Adjust to mywait interface changes.
16478 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16479 features. Handle and report "multiprocess+". Handle
16481 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16483 (handle_v_kill): New.
16484 (handle_v_stopped): Adjust to use target_pid_to_str.
16485 (handle_v_requests): Allow multiple attaches and runs when
16486 multiprocess extensions are in effect. Handle "vKill".
16487 (myresume): Adjust to use ptids.
16488 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
16489 (handle_status): Adjust to discard_queued_stop_replies interface
16491 (first_thread_of, kill_inferior_callback)
16492 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
16493 (main): Call initialize_inferiors. Adjust to use ptids, killing
16494 and detaching from all inferiors. Handle multiprocess packet
16496 * linux-low.h: Include gdb_proc_service.h.
16497 (struct process_info_private): New.
16498 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
16499 <lwpid_of>: Use ptid_get_lwp.
16500 (get_lwp_thread): Adjust.
16501 (struct lwp_info): Add `dead' member.
16502 (find_lwp_pid): Declare.
16503 * linux-low.c (thread_db_active): Delete.
16504 (new_inferior): Adjust comment.
16505 (inferior_pid): Delete.
16506 (linux_add_process): New.
16507 (handle_extended_wait): Adjust.
16508 (add_lwp): Change unsigned long to ptid.
16509 (linux_create_inferior): Add process to processes table. Adjust
16510 to use ptids. Don't set new_inferior here.
16511 (linux_attach_lwp): Rename to ...
16512 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
16513 it. Adjust to use ptids.
16514 (linux_attach_lwp): New.
16515 (linux_attach): Add process to processes table. Don't set
16517 (struct counter): New.
16518 (second_thread_of_pid_p, last_thread_of_process_p): New.
16519 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
16520 multiple processes.
16521 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
16522 processes. Remove process from process table.
16523 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
16524 to multiple processes.
16525 (any_thread_of): New.
16526 (linux_detach): Add `pid' argument, and handle it. Remove process
16527 from processes table.
16528 (linux_join): Add `pid' argument. Handle it.
16529 (linux_thread_alive): Change unsighed long argument to ptid_t.
16530 Consider dead lwps as not being alive.
16531 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
16532 threads we're not interested in.
16533 (same_lwp, find_lwp_pid): New.
16534 (linux_wait_for_lwp): Change `pid' argument's type from int to
16536 (linux_wait_for_event): Rename to ...
16537 (linux_wait_for_event_1): ... this. Change `pid' argument's type
16538 from int to ptid_t. Adjust.
16539 (linux_wait_for_event): New.
16540 (linux_wait_1): Add `ptid' argument. Change return type to
16541 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
16542 that exit from the process table.
16543 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
16545 (mark_lwp_dead): New.
16546 (wait_for_sigstop): Adjust to use ptids. If a process exits while
16547 stopping all threads, mark its main lwp as dead.
16548 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
16550 (fetch_register, usr_store_inferior_registers)
16551 (regsets_fetch_inferior_registers)
16552 (regsets_store_inferior_registers, linux_read_memory)
16553 (linux_write_memory): Inline `inferior_pid'.
16554 (linux_look_up_symbols): Adjust to use per-process
16555 `thread_db_active'.
16556 (linux_request_interrupt): Adjust to use ptids.
16557 (linux_read_auxv): Inline `inferior_pid'.
16558 (initialize_low): Don't reference thread_db_active.
16559 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
16560 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
16561 (ps_getpid): Return the pid of the current inferior.
16562 * thread-db.c (proc_handle, thread_agent): Delete.
16563 (thread_db_create_event, thread_db_enable_reporting): Adjust to
16565 (find_one_thread): Change argument type to ptid_t. Adjust to
16567 (maybe_attach_thread): Adjust to per-process data and ptids.
16568 (thread_db_find_new_threads): Ditto.
16569 (thread_db_init): Ditto.
16570 * spu-low.c (spu_create_inferior, spu_attach): Add process to
16571 processes table. Adjust to use ptids.
16572 (spu_kill, spu_detach): Adjust interface. Remove process from
16574 (spu_join, spu_thread_alive): Adjust interface.
16575 (spu_wait): Adjust interface. Remove process from processes
16576 table. Adjust to use ptids.
16577 * win32-low.c (current_inferior_tid): Delete.
16578 (current_inferior_ptid): New.
16579 (debug_event_ptid): New.
16580 (thread_rec): Take a ptid. Adjust.
16581 (child_add_thread): Add `pid' argument. Adjust to use ptids.
16582 (child_delete_thread): Ditto.
16583 (do_initial_child_stuff): Add `attached' argument. Add process to
16585 (child_fetch_inferior_registers, child_store_inferior_registers):
16587 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
16588 (win32_attach): Pass 1 to do_initial_child_stuff.
16589 (win32_kill): Adjust interface. Remove process from processes
16591 (win32_detach): Ditto.
16592 (win32_join): Adjust interface.
16593 (win32_thread_alive): Take a ptid.
16594 (win32_resume): Adjust to use ptids.
16595 (get_child_debug_event): Ditto.
16596 (win32_wait): Adjust interface. Remove exiting process from
16599 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16601 Non-stop mode support.
16603 * server.h (non_stop): Declare.
16604 (gdb_client_data, handler_func): Declare.
16605 (delete_file_handler, add_file_handler, start_event_loop):
16607 (handle_serial_event, handle_target_event, push_event)
16608 (putpkt_notif): Declare.
16609 * target.h (enum resume_kind): New.
16610 (struct thread_resume): Replace `step' field by `kind' field.
16611 (TARGET_WNOHANG): Define.
16612 (struct target_ops) <wait>: Add `options' argument.
16613 <supports_non_stop, async, start_non_stop>: New fields.
16614 (target_supports_non_stop, target_async): New.
16615 (start_non_stop): Declare.
16616 (mywait): Add `options' argument.
16617 * target.c (mywait): Add `options' argument. Print child exit
16618 notifications here.
16619 (start_non_stop): New.
16620 * server.c (non_stop, own_buf, mem_buf): New globals.
16621 (struct vstop_notif): New.
16622 (notif_queue): New global.
16623 (queue_stop_reply, push_event, discard_queued_stop_replies)
16624 (send_next_stop_reply): New.
16625 (start_inferior): Adjust to use resume_kind. Adjust to mywait
16627 (attach_inferior): In non-stop mode, don't wait for the target
16629 (handle_general_set): Handle QNonStop.
16630 (handle_query): When handling qC, return the current general
16631 thread, instead of the first thread of the list.
16632 (handle_query): If the backend supports non-stop mode, include
16633 QNonStop+ in the qSupported query response.
16634 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
16636 (handle_v_attach, handle_v_run): Handle non-stop mode.
16637 (handle_v_stopped): New.
16638 (handle_v_requests): Report support for vCont;t. Handle vStopped.
16639 (myresume): Adjust to use resume_kind. Handle non-stop.
16640 (queue_stop_reply_callback): New.
16641 (handle_status): Handle non-stop mode.
16642 (main): Clear non_stop flag on reconnection. Use the event-loop.
16643 Refactor serial protocol handling from here ...
16644 (process_serial_event): ... to this new function. When GDB
16645 selects any thread, select one here. In non-stop mode, wait until
16646 GDB acks all pending events before exiting.
16647 (handle_serial_event, handle_target_event): New.
16648 * remote-utils.c (remote_open): Install remote_desc in the event
16650 (remote_close): Remove remote_desc from the event loop.
16651 (putpkt_binary): Rename to...
16652 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
16653 (putpkt_binary): New as wrapper around putpkt_binary_1.
16654 (putpkt_notif): New.
16655 (prepare_resume_reply): In non-stop mode, don't change the
16657 * event-loop.c: New.
16658 * Makefile.in (OBJ): Add event-loop.o.
16659 (event-loop.o): New rule.
16661 * linux-low.h (pid_of): Moved here.
16663 (get_lwp_thread): Use lwpid_of.
16664 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
16665 * linux-low.c (pid_of): Delete.
16666 (inferior_pid): Use lwpid_of.
16667 (linux_event_pipe): New.
16668 (target_is_async_p): New.
16670 (handle_extended_wait): Use lwpid_of.
16671 (add_lwp): Don't set lwpid field.
16672 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
16673 (linux_kill_one_lwp): If killing a running lwp, stop it first.
16674 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
16675 (linux_detach_one_lwp): If detaching from a running lwp, stop it
16676 first. Adjust to linux_wait_for_event interface changes. Use
16678 (linux_detach): Don't delete the main lwp here.
16679 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
16680 (status_pending_p): Don't consider explicitly suspended lwps.
16681 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
16682 pointer. Add OPTIONS argument. Change return type to int. Use
16683 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
16684 (linux_wait_for_event): Take an integer pid instead of a lwp_info
16685 pointer. Add status pointer argument. Return a pid instead of a
16686 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
16687 changes. In non-stop mode, don't switch to a random thread.
16688 (linux_wait): Rename to...
16689 (linux_wait_1): ... this. Add target_options argument, and handle
16690 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
16691 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
16692 clean exit and signal exit code. Don't stop all threads in
16693 non-stop mode. In all-stop mode, only stop all threads when
16694 reporting a stop to GDB. Handle explicit thread stop requests.
16695 (async_file_flush, async_file_mark): New.
16697 (send_sigstop): Use lwpid_of.
16698 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
16699 interface changes. In non-stop mode, don't switch to a random
16701 (linux_resume_one_lwp): Use lwpid_of.
16702 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
16703 (linux_resume_one_thread): ... this. Handle resume_stop. In
16704 non-stop mode, don't look for pending flag in all threads.
16705 (resume_status_pending_p): Don't consider explicitly suspended
16707 (my_waitpid): Reimplement. Emulate __WALL.
16708 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16710 (sigchld_handler, linux_supports_non_stop, linux_async)
16711 (linux_start_non_stop): New.
16712 (linux_target_ops): Register linux_supports_non_stop, linux_async
16713 and linux_start_non_stop.
16714 (initialize_low): Install SIGCHLD handler.
16715 * thread-db.c (thread_db_create_event, find_one_thread)
16716 (thread_db_get_tls_address): Use lwpid_of.
16717 * win32-low.c (win32_detach): Adjust to use resume_kind.
16718 (win32_wait): Add `options' argument.
16719 * spu-low.c (spu_resume): Adjust to use resume_kind.
16720 (spu_wait): Add `options' argument.
16722 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16724 Decouple target code from remote protocol.
16726 * target.h (enum target_waitkind): New.
16727 (struct target_waitstatus): New.
16728 (struct target_ops) <wait>: Return an unsigned long. Take a
16729 target_waitstatus pointer instead of a char pointer.
16730 (mywait): Likewise.
16731 * target.c (mywait): Change prototype to return an unsigned long.
16732 Take a target_waitstatus pointer instead of a char pointer. Adjust.
16733 * server.h (thread_from_wait, old_thread_from_wait): Delete
16735 (prepare_resume_reply): Change prototype to take a
16737 * server.c (thread_from_wait, old_thread_from_wait): Delete.
16738 (last_status, last_ptid): New.
16739 (start_inferior): Remove "statusptr" argument. Adjust. Return a
16740 pid instead of a signal.
16741 (attach_inferior): Remove "status" and "signal" parameters.
16743 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
16745 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
16746 (handle_v_requests, myresume): Remove "status" and "signal"
16747 parameters. Adjust.
16748 (handle_status): New.
16749 (main): Delete local `status'. Adjust.
16750 * remote-utils.c: Include target.h.
16751 (prepare_resume_reply): Change prototype to take a
16752 target_waitstatus. Adjust.
16754 * linux-low.c (linux_wait): Adjust to new target_ops->wait
16756 * spu-low.c (spu_wait): Adjust.
16757 * win32-low.c (enum target_waitkind, struct target_waitstatus):
16759 (win32_wait): Adjust.
16761 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16763 * target.h (struct thread_resume): Delete leave_stopped member.
16764 (struct target_ops): Add a `n' argument to the `resume' callback.
16765 * server.c (start_inferior): Adjust.
16766 (handle_v_cont, myresume): Adjust.
16767 * linux-low.c (check_removed_breakpoint): Adjust to resume
16768 interface change, and to removed leave_stopped field.
16769 (resume_ptr): Delete.
16770 (struct thread_resume_array): New.
16771 (linux_set_resume_request): Add new `arg' parameter. Adjust to
16772 resume interface change.
16773 (linux_continue_one_thread, linux_queue_one_thread)
16774 (resume_status_pending_p): Check if the resume field is NULL
16775 instead of checking the leave_stopped member.
16776 (linux_resume): Adjust to the target resume interface change.
16777 * spu-low.c (spu_resume): Adjust to the target resume interface
16779 * win32-low.c (win32_detach, win32_resume): Ditto.
16781 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16783 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
16785 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
16787 (linux_continue_one_thread): Only preserve the stepping flag if
16788 there's a pending breakpoint.
16790 2009-03-31 Pedro Alves <pedro@codesourcery.com>
16792 * server.c (main): After the inferior having exited, call
16793 remote_close before exiting gdbserver.
16795 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
16797 Fix size of FPSCR in Power 7 processors.
16798 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
16799 (PPC_FEATURE_HAS_DFP): New #define.
16800 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
16803 2009-03-23 Pedro Alves <pedro@codesourcery.com>
16805 * server.c (handle_query) Whitespace and formatting.
16807 2009-03-22 Pedro Alves <pedro@codesourcery.com>
16809 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
16810 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
16811 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
16812 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
16813 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
16814 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
16815 Makefile.in, configure.ac: Fix whitespace throughout.
16816 * configure: Regenerate.
16818 2009-03-22 Pedro Alves <pedro@codesourcery.com>
16820 * inferiors.c (find_inferior): Make it safe for the callback
16821 function to delete the currently iterated inferior.
16823 2009-03-22 Pedro Alves <pedro@codesourcery.com>
16825 * Makefile.in (linuw_low_h): Move higher.
16826 (thread-db.o): Depend on $(linux_low_h).
16828 2009-03-17 Pedro Alves <pedro@codesourcery.com>
16830 Rename "process" to "lwp" throughout.
16832 * linux-low.c (all_processes): Rename to...
16833 (all_lwps): ... this.
16834 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
16835 (add_process): Rename to ...
16836 (add_lwp): ... this. Adjust.
16837 (linux_create_inferior): Adjust.
16838 (linux_attach_lwp): Adjust.
16839 (linux_attach): Adjust.
16840 (linux_kill_one_process): Rename to ...
16841 (linux_kill_one_lwp): ... this. Adjust.
16842 (linux_kill): Adjust.
16843 (linux_detach_one_process): Rename to ...
16844 (linux_detach_one_lwp): ... this. Adjust.
16845 (linux_detach): Adjust.
16846 (check_removed_breakpoint): Adjust.
16847 (status_pending_p): Adjust.
16848 (linux_wait_for_process): Rename to ...
16849 (linux_wait_for_lwp): ... this. Adjust.
16850 (linux_wait_for_event): Adjust.
16851 (send_sigstop): Adjust.
16852 (wait_for_sigstop): Adjust.
16853 (stop_all_processes): Rename to ...
16854 (stop_all_lwps): ... this.
16855 (linux_resume_one_process): Rename to ...
16856 (linux_resume_one_lwp): ... this. Adjust.
16857 (linux_set_resume_request, linux_continue_one_thread)
16858 (linux_queue_one_thread, resume_status_pending_p)
16859 (usr_store_inferior_registers, regsets_store_inferior_registers)
16860 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16862 * linux-low.h (get_process): Rename to ...
16863 (get_lwp): ... this. Adjust.
16864 (get_thread_process): Rename to ...
16865 (get_thread_lwp): ... this. Adjust.
16866 (get_process_thread): Rename to ...
16867 (get_lwp_thread): ... this. Adjust.
16868 (struct process_info): Rename to ...
16869 (struct lwp_info): ... this.
16870 (all_processes): Rename to ...
16871 (all_lwps): ... this.
16872 * proc-service.c (ps_lgetregs): Adjust.
16873 * thread-db.c (thread_db_create_event, find_one_thread)
16874 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
16876 2009-03-14 Pedro Alves <pedro@codesourcery.com>
16878 * server.c (handle_query): Handle "qAttached".
16880 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
16882 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
16883 GPLv3, update license URL.
16885 2009-03-01 Doug Evans <dje@google.com>
16887 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
16888 (server_h): Add gdb_signals.h.
16889 (signals.o): Update.
16890 * server.h (target_signal_from_host,target_signal_to_host_p)
16891 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
16893 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
16895 * remote-utils.c (getpkt): Also generate remote-debug
16896 information if noack_mode is set.
16898 2009-02-06 Pedro Alves <pedro@codesourcery.com>
16900 * server.c (handle_query): Report qXfer:siginfo:read and
16901 qXfer:siginfo:write as supported and handle them.
16902 * target.h (struct target_ops) <qxfer_siginfo>: New field.
16903 * linux-low.c (linux_xfer_siginfo): New.
16904 (linux_target_ops): Set it.
16906 2009-01-26 Pedro Alves <pedro@codesourcery.com>
16908 * server.c (gdbserver_usage): Mention --remote-debug.
16909 (main): Accept '--remote-debug' switch.
16911 2009-01-18 Doug Evans <dje@google.com>
16913 * regcache.c (new_register_cache): No need to check result of xcalloc.
16914 * server.c (handle_search_memory): Back out calls to xmalloc,
16915 result is checked and error is returned to user upon failure.
16916 (handle_query): Ditto. Add more checks for result of malloc.
16917 (handle_v_cont): Check result of malloc, report error back to
16919 (handle_v_run): Ditto. Call freeargv.
16920 * server.h (freeargv): Declare.
16921 * utils.c (freeargv): New fn.
16923 2009-01-15 Doug Evans <dje@google.com>
16925 * gdbreplay.c (perror_with_name): Make arg const char *.
16926 * server.h (target_signal_to_name): Make return type const char *.
16927 * thread-db.c (thread_db_err_str): Make return type const char *.
16928 * utils.c (perror_with_name): Make arg const char *.
16930 2009-01-14 Pedro Alves <pedro@codesourcery.com>
16932 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
16933 when handling a EXIT_PROCESS_DEBUG_EVENT.
16935 2009-01-06 Joel Brobecker <brobecker@adacore.com>
16937 * gdbreplay.c (gdbreplay_version): Update copyright year.
16938 * server.c (gdbserver_version): Likewise.
16940 2009-01-05 Doug Evans <dje@google.com>
16942 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
16943 (handle_extended_wait): Improve comment.
16945 2008-12-13 Doug Evans <dje@google.com>
16947 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
16948 * server.h (ATTR_MALLOC): New macro.
16949 (xmalloc,xcalloc,xstrdup): Declare.
16950 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
16951 * inferiors.c: Ditto.
16952 * linux-low.c: Ditto.
16953 * mem-break.c: Ditto.
16954 * regcache.c: Ditto.
16955 * remote-utils.c: Ditto.
16958 * win32-low.c: Ditto.
16960 2008-12-12 Doug Evans <dje@google.com>
16962 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
16963 in debugging printf.
16965 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
16967 2008-12-09 Doug Evans <dje@google.com>
16969 * linux-low.h (struct process_info): Delete member tid, unused.
16970 * thread-db.c (find_one_thread): Update.
16971 (maybe_attach_thread): Update.
16973 2008-12-02 Pedro Alves <pedro@codesourcery.com>
16975 * target.h (struct target_ops): Add qxfer_osdata member.
16976 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
16978 (linux_qxfer_osdata): New functions.
16979 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
16981 * server.c (handle_query): Handle "qXfer:osdata:read:".
16982 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
16983 (buffer_xml_printf): New functions.
16984 * server.h (struct buffer): New.
16985 (buffer_grow_str, buffer_grow_str0): New macros.
16986 (buffer_grow, buffer_free, buffer_init, buffer_finish)
16987 (buffer_xml_printf): Declare.
16989 2008-11-24 Doug Evans <dje@google.com>
16991 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
16993 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
16995 * server.c (handle_v_run): Always use the supplied argument list.
16997 2008-11-19 Bob Wilson <bob.wilson@acm.org>
16999 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17000 (xtensa_regmap_table): Add entry for scompare1.
17002 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17004 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17005 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17006 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17007 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17008 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17009 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17010 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17011 XML target descriptions.
17012 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17013 when inferior is running on an ISA 2.05 or later processor. Add
17014 special case to return offset for full 64-bit slot of FPSCR when
17017 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17019 * Makefile.in (SFILES, clean): Added sparc64 files.
17020 (reg-sparc64.o, reg-sparc64.c): New.
17021 * configure.srv (sparc*-*-linux*): New configuration.
17022 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17023 syscall arguments for SPARC.
17024 (regsets_store_inferior_registers): Likewise.
17025 * linux-sparc-low.c: New file.
17027 2008-10-21 Doug Evans <dje@google.com>
17029 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17030 (READLINE_DIR,READLINE_DEP): Delete.
17031 (INTERNAL_CFLAGS): Update.
17032 (LINTFLAGS): Update.
17034 2008-10-10 Pedro Alves <pedro@codesourcery.com>
17036 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17037 whole argv from the last run, not just argv[0].
17039 2008-09-08 Pedro Alves <pedro@codesourcery.com>
17041 * regcache.c (new_register_cache): Return NULL if the register
17042 cache size isn't known yet.
17043 (free_register_cache): Avoid dereferencing a NULL regcache.
17045 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17047 * configure.srv: Merge MIPS and MIPS64.
17049 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17051 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17053 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
17055 * Makefile.in: Add required vsx dependencies.
17057 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17058 Declare init_registers_powerpc_vsx32l.
17059 Declare init_registers_powerpc_vsx64l.
17060 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17061 (ppc_arch_setup): Check for VSX in hwcap.
17062 (ppc_fill_vsxregset): New function.
17063 (ppc_store_vsxregset): New function.
17064 Add new VSX entry in regset_info target_regsets.
17066 * configure.srv: Add new VSX dependencies.
17068 2008-08-12 Pedro Alves <pedro@codesourcery.com>
17070 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17071 (remote_open): Set or clear transport_is_reliable.
17072 (putpkt_binary): Don't expect acks in noack mode.
17073 (getpkt): Don't send ack/nac in noack mode.
17074 * server.c (handle_general_set): Handle QStartNoAckMode.
17075 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17077 (main): Reset noack_mode on every connection.
17078 * server.h (noack_mode): Declare.
17080 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17082 * Makefile.in (GDBREPLAY_OBS): New variable.
17083 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17085 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17086 Daniel Jacobowitz <dan@codesourcery.com>
17088 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17089 (usr_store_inferior_registers): Likewise.
17090 (regsets_store_inferior_registers): Likewise.
17092 2008-07-31 Rolf Jansen <rj@surtec.com>
17093 Pedro Alves <pedro@codesourcery.com>
17095 * configure.ac: Check for memmem declaration.
17096 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17097 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17098 (disable_packet_qfThreadInfo): Unconditionally compile.
17099 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
17100 * configure, config.in: Regenerate.
17102 2008-07-28 Doug Kwan <dougkwan@google.com>
17104 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17105 (linux_write_memory): Remove declaration of errno.
17107 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17109 * linux-low.c (handle_extended_wait): Do not use "status"
17110 variable uninitialized.
17112 2008-07-07 Pedro Alves <pedro@codesourcery.com>
17114 * server.c (handle_v_attach): Inhibit reporting dll changes.
17116 2008-06-27 Pedro Alves <pedro@codesourcery.com>
17118 * remote-utils.c (prepare_resume_reply): If requested, don't
17119 output "thread:TID" in the T stop reply.
17121 * server.c (disable_packet_vCont, disable_packet_Tthread)
17122 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
17123 (handle_query): If requested, disable support for qC, qfThreadInfo
17125 (handle_v_requests): If requested, disable support for vCont.
17126 (gdbserver_show_disableable): New.
17127 (main): Handle --disable-packet and --disable-packet=LIST.
17129 * server.h (disable_packet_vCont, disable_packet_Tthread)
17130 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17132 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17134 * server.c (gdbserver_usage): Mention --version.
17136 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17138 * Makefile.in (gdbreplay.o): New rule.
17140 2008-06-06 Joseph Myers <joseph@codesourcery.com>
17142 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17143 message, not gdbserver.
17145 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
17146 Nathan Sidwell <nathan@codesourcery.com>
17147 Joseph Myers <joseph@codesourcery.com>
17149 * acinclude.m4: Include ../../config/acx.m4.
17150 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
17151 * configure, config.in: Regenerate.
17152 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
17153 * server.c (gdbserver_version): Print PKGVERSION.
17154 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
17155 (main): Adjust gdbserver_usage calls.
17156 * gdbreplay.c (version, host_name): Add declarations.
17157 (gdbreplay_version, gdbreplay_usage): New.
17158 (main): Accept --version and --help options.
17160 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17162 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17163 (arm_breakpoint_at): Handle Thumb.
17164 (the_low_target): Add comment.
17166 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17168 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17170 2008-05-09 Doug Evans <dje@google.com>
17172 * server.h (decode_search_memory_packet): Declare.
17173 * remote-utils.c (decode_search_memory_packet): New fn.
17174 * server.c (handle_search_memory_1): New fn.
17175 (handle_search_memory): New fn.
17176 (handle_query): Process qSearch:memory packets.
17178 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17180 * regcache.c (registers_length): Remove.
17181 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
17182 full register packet.
17183 * regcache.h (registers_length): Remove prototype.
17184 * server.h (PBUFSIZ): Define to 16384.
17186 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17188 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
17189 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
17190 powerpc-64l.o, and powerpc-altivec64l.o.
17191 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
17192 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
17193 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
17194 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
17195 rs6000/power-linux.xml, and rs6000/power64-linux.xml
17198 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
17199 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
17200 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
17201 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
17202 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
17203 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
17204 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
17205 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
17206 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
17207 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
17210 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
17211 (init_registers_powerpc_32l): ... this new prototype.
17212 (init_registers_powerpc_32): Remove, replace by ...
17213 (init_registers_powerpc_altivec32l): ... this new prototype.
17214 (init_registers_powerpc_e500): Remove, replace by ...
17215 (init_registers_powerpc_e500l): ... this new prototype.
17216 (init_registers_ppc64): Remove, replace by ...
17217 (init_registers_powerpc_64l): ... this new prototype.
17218 (init_registers_powerpc_64): Remove, replace by ...
17219 (init_registers_powerpc_altivec64l): ... this new prototype.
17220 (ppc_num_regs): Set to 73.
17221 (PT_ORIG_R3, PT_TRAP): Define if necessary.
17222 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
17223 (ppc_cannot_store_register): Handle orig_r3 and trap.
17224 (ppc_arch_setup): Update init_registers_... calls.
17225 (ppc_fill_gregset): Handle orig_r3 and trap.
17227 * inferiors.c (clear_inferiors): Reset current_inferior.
17229 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17231 * acinclude.m4: Add override.m4.
17232 * configure: Regenerate.
17234 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17236 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17237 initial call to init_register_ppc64.
17239 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17241 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17242 single powerpc*-*-linux* case.
17243 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17245 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17247 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
17248 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
17250 * linux-ppc-low.c: Include <elf.h>.
17251 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
17252 (ppc_hwcap): New global variable.
17253 (ppc_regmap): Remove __SPE__ #ifdef sections.
17254 (ppc_regmap_e500): New global variable.
17255 (ppc_cannot_store_register): Update __SPE__ special case.
17256 (ppc_get_hwcap): New function.
17257 (ppc_arch_setup): Use it to determine whether inferior supports
17258 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
17259 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
17260 Do not access registers if target does not support AltiVec.
17261 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
17262 Do not access registers if target does not support SPE.
17263 (target_regsets): Unconditionally include AltiVec and SPE regsets.
17265 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17267 * linux-low.c (disabled_regsets, num_regsets): New.
17268 (use_regsets_p): Delete.
17269 (linux_wait_for_process): Clear disabled_regsets.
17270 (regsets_fetch_inferior_registers): Check and set it.
17271 (regsets_store_inferior_registers): Likewise.
17272 (linux_fetch_registers, linux_store_registers): Do not use
17274 (initialize_low): Allocate disabled_regsets.
17276 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17278 * Makefile.in (LIBOBJS): New.
17279 (OBS): Use LIBOBJS.
17280 (memmem.o): New rule.
17281 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
17282 * configure: Regenerated.
17284 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17286 * server.c (handle_query): Never return "unsupported" for
17287 qXfer:features:read queries.
17289 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17291 * server.c (get_features_xml): Fix inverted condition.
17292 (handle_query): Always support qXfer:feature:read.
17294 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17296 * server.c (wrapper_argv): New.
17297 (start_inferior): Handle wrapper_argv. If set, expect an extra
17299 (gdbserver_usage): Document --wrapper.
17300 (main): Parse --wrapper.
17302 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17304 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
17305 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
17306 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
17307 (ppc_set_pc): Likewise.
17308 (ppc_arch_setup): New function.
17309 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
17310 of collect_register.
17311 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
17313 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17315 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
17316 instead of linux-ppc64-low.o.
17317 * linux-ppc64-low.c: Remove file.
17318 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
17319 (linux-ppc64-low.o): Remove rule.
17321 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
17322 (init_registers_powerpc_64): Likewise.
17323 (ppc_regmap): Conditionally define depending on __powerpc64__.
17324 (ppc_cannot_store_register): Do not special-case "fpscr" when
17325 compiled on __powerpc64__.
17326 (ppc_collect_ptrace_register): New function.
17327 (ppc_supply_ptrace_register): New function.
17328 (ppc_breakpoint): Change type to "unsigned int".
17329 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
17330 (the_low_target): Conditionally provide initializers for the
17331 arch_setup member depending on __powerpc64__. Install
17332 collect_ptrace_register and supply_ptrace_register members.
17334 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17336 * regcache.h (gdbserver_xmltarget): Add extern declaration.
17337 * server.c (gdbserver_xmltarget): Define.
17338 (get_features_xml): Use it to replace "target.xml" and arch_string.
17340 * configure.srv: Remove srv_xmltarget. Add XML files that were
17341 mentioned there to srv_xmlfiles instead. Remove conditional tests
17342 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
17343 srv_xmlfiles and srv_regobj to include all possible choices.
17344 * configure.ac (srv_xmltarget): Remove.
17345 (srv_xmlfiles): Do not add "target.xml".
17346 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
17347 checks for supplementary target information.
17348 * configure: Regenerate.
17349 * Makefile.in (XML_TARGET): Remove.
17350 (target.xml): Remove rule.
17351 (clean): Do not clean up target.xml.
17352 (.PRECIOUS): Do not mention target.xml.
17354 * target.h (struct target_ops): Remove arch_string member.
17355 * linux-low.c (linux_arch_string): Remove.
17356 (linux_target_ops): Remove arch_string initializer.
17357 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17358 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17359 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17360 * spu-low.c (spu_arch_string): Remove.
17361 (spu_target_ops): Remove arch_string initializer.
17362 * win32-low.c (win32_arch_string): Remove.
17363 (win32_target_ops): Remove arch_string initializer.
17364 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17365 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
17366 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
17368 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17370 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
17371 by collect_ptrace_register and supply_ptrace_register hooks.
17372 * linux-low.c (fetch_register): Use supply_ptrace_register callback
17373 instead of checking for the_low_target.left_pad_xfer.
17374 (usr_store_inferior_registers): Use collect_ptrace_register callback
17375 instead of checking for the_low_target.left_pad_xfer.
17377 * linux-s390-low.c (s390_collect_ptrace_register): New function.
17378 (s390_supply_ptrace_register): Likewise.
17379 (s390_fill_gregset): Call s390_collect_ptrace_register.
17380 (the_low_target): Update.
17382 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17383 (ppc_supply_ptrace_register): Likewise.
17384 (the_low_target): Update.
17386 * linux-i386-low.c (the_low_target): Update.
17387 * linux-x86-64-low.c (the_low_target): Update.
17389 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17391 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17392 reg-s390.o and reg-s390x.o.
17394 * linux-low.c (new_inferior): New global variable.
17395 (linux_create_inferior, linux_attach): Set it.
17396 (linux_wait_for_process): Call the_low_target.arch_setup after the
17397 target has stopped for the first time.
17398 (initialize_low): Do not call the_low_target.arch_setup.
17400 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
17401 (s390_set_pc): Likewise.
17402 (s390_arch_setup): New function.
17403 (the_low_target): Use s390_arch_setup as arch_setup routine.
17405 * regcache.c (realloc_register_cache): New function.
17406 (set_register_cache): Call it for each existing regcache.
17408 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17410 * server.h (init_registers): Remove prototype.
17412 * linux-low.h (struct linux_target_ops): Add arch_setup field.
17413 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
17414 instead of init_registers ().
17415 * linux-arm-low.c (init_registers_arm): Add prototype.
17416 (init_registers_arm_with_iwmmxt): Likewise.
17417 (the_low_target): Add initializer for arch_setup field.
17418 * linux-cris-low.c (init_registers_cris): Add prototype.
17419 (the_low_target): Add initializer for arch_setup field.
17420 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
17421 (the_low_target): Add initializer for arch_setup field.
17422 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
17423 (the_low_target): Add initializer for arch_setup field.
17424 * linux-ia64-low.c (init_registers_ia64): Add prototype.
17425 (the_low_target): Add initializer for arch_setup field.
17426 * linux-m32r-low.c (init_registers_m32r): Add prototype.
17427 (the_low_target): Add initializer for arch_setup field.
17428 * linux-m68k-low.c (init_registers_m68k): Add prototype.
17429 (the_low_target): Add initializer for arch_setup field.
17430 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
17431 (init_registers_mips64_linux): Likewise.
17432 (the_low_target): Add initializer for arch_setup field.
17433 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17434 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17435 (the_low_target): Add initializer for arch_setup field.
17436 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17437 (init_registers_powerpc_64): Likewise.
17438 (the_low_target): Add initializer for arch_setup field.
17439 * linux-s390-low.c (init_registers_s390): Add prototype.
17440 (init_registers_s390x): Likewise.
17441 (the_low_target): Add initializer for arch_setup field.
17442 * linux-sh-low.c (init_registers_sh): Add prototype.
17443 (the_low_target): Add initializer for arch_setup field.
17444 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17445 (the_low_target): Add initializer for arch_setup field.
17446 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17447 (the_low_target): Add initializer for arch_setup field.
17449 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17450 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17451 instead of init_registers ().
17452 * win32-arm-low.c (init_registers_arm): Add prototype.
17453 (the_low_target): Add initializer for arch_setup field.
17454 * win32-i386-low.c (init_registers_i386): Add prototype.
17455 (the_low_target): Add initializer for arch_setup field.
17457 * spu-low.c (init_registers_spu): Add prototype.
17458 (initialize_low): Call initialie_registers_spu () instead of
17459 initialize_registers ().
17461 2008-02-19 Pedro Alves <pedro@codesourcery.com>
17463 * server.c (handle_v_requests): When handling the vRun and vAttach
17464 packets, if already debugging a process, don't kill it. Return an
17467 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17469 * server.c (handle_query): Correct length check.
17471 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17473 * win32-low.c (do_initial_child_stuff): Add process handle
17474 parameter. Set current_process_handle and current_process_id from the
17475 parameters. Clear globals.
17476 (win32_create_inferior): Don't set current_process_handle and
17477 current_process_id here. Instead pass them on the call to
17478 do_initial_child_stuff.
17479 (win32_attach): Likewise.
17480 (win32_clear_inferiors): New.
17481 (win32_kill): Don't close the current process handle or the
17482 current thread handle here. Instead call win32_clear_inferiors.
17483 (win32_detach): Don't open a new handle to the process. Call
17484 win32_clear_inferiors.
17485 (win32_join): Don't rely on current_process_handle; open a new
17486 handle using the process id.
17487 (win32_wait): Call win32_clear_inferiors when the inferior process
17490 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
17492 * server.c (monitor_show_help): Add "exit".
17494 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
17496 * Makefile.in (SFILES): Add linux-xtensa-low.c.
17497 (clean): Add reg-xtensa.c.
17498 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
17499 * configure.srv (xtensa*-*-linux*) New target.
17500 * linux-xtensa-low.c: New.
17501 * xtensa-xtregs.c: New.
17503 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
17505 * hostio.c: Don't include errno.h.
17506 (errno_to_fileio_errno): Move to hostio-errno.
17507 * hostio.c: (hostio_error): Remove the error parameter. Defer the
17508 error number outputting to the target->hostio_last_error callback.
17509 (hostio_packet_error): Use FILEIO_EINVAL directly.
17510 (handle_open, handle_pread, hostio_error, handle_unlink): Update
17511 calls to hostio_error.
17512 * hostio-errno.c: New.
17513 * server.h (hostio_last_error_from_errno): Declare.
17514 * target.h (target_ops): Add hostio_last_error member.
17515 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
17516 as hostio_last_error handler.
17517 * spu-low.c (spu_target_ops): Likewise.
17518 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
17519 (wince_hostio_last_error): New functions.
17520 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
17521 as hostio_last_error handler.
17522 (win32_target_ops) [!_WIN32_WCE]: Register
17523 hostio_last_error_from_errno as hostio_last_error handler.
17524 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
17525 (hostio-errno.o): New rule.
17526 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
17527 * configure.srv (srv_hostio_err_objs): New variable. Default to
17529 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
17530 * configure: Regenerate.
17532 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17534 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
17535 (linux_kill, linux_detach): Clean up the process list.
17536 * remote-utils.c (remote_open): Improve port number parsing.
17537 (putpkt_binary, input_interrupt): Only send interrupts if the target
17539 * server.c (extended_protocol): Make static.
17540 (attached): Define earlier.
17541 (exit_requested, response_needed, program_argv): New variables.
17542 (target_running): New.
17543 (start_inferior): Clear attached here.
17544 (attach_inferior): Set attached here.
17545 (require_running): Define.
17546 (handle_query): Use require_running and target_running. Implement
17548 (handle_v_attach, handle_v_run): New.
17549 (handle_v_requests): Use require_running. Handle vAttach and vRun.
17550 (gdbserver_usage): Update.
17551 (main): Redo argument parsing. Handle --debug and --multi. Handle
17552 --attach along with other options or after the port. Save
17553 program_argv. Support no initial program. Resynchronize
17554 communication with GDB after an error. Handle "monitor exit".
17555 Use require_running and target_running. Always allow the extended
17556 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
17557 restart in extended mode.
17558 * README: Refer to the GDB manual. Update --attach usage.
17560 2007-12-20 Andreas Schwab <schwab@suse.de>
17562 * linux-low.c (STACK_SIZE): Define.
17563 (linux_tracefork_child): Use it. Use __clone2 on ia64.
17564 (linux_test_for_tracefork): Likewise.
17566 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
17568 * linux-low.c (linux_wait_for_event): Update messages. Do not
17569 reinsert auto-delete breakpoints.
17570 * mem-break.c (struct breakpoint): Change return type of handler to
17572 (set_breakpoint_at): Update handler type.
17573 (reinsert_breakpoint_handler): Return 1 instead of calling
17575 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
17577 (check_breakpoints): Delete auto-delete breakpoints and return 2.
17578 * mem-break.h (set_breakpoint_at): Update handler type.
17579 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
17580 * win32-low.c (auto_delete_breakpoint): New.
17581 (get_child_debug_event): Use it.
17583 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
17585 * configure.ac: Check for pread and pwrite.
17586 * hostio.c (handle_pread): Fall back to lseek and read.
17587 (handle_pwrite): Fall back to lseek and write.
17588 * config.in, configure: Regenerated.
17590 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
17592 * server.c (myresume): Add own_buf argument.
17593 (main): Update calls.
17595 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
17597 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
17598 * remote-utils.c (remote_open): Do not call disable_async_io.
17599 (block_async_io): Delete.
17600 (unblock_async_io): Make static.
17601 (initialize_async_io): New.
17602 * server.c (handle_v_cont): Handle async I/O here.
17603 (myresume): Likewise. Move other common resume tasks here...
17604 (main): ... from here. Call initialize_async_io. Disable async
17605 I/O before the main loop.
17606 * server.h (initialize_async_io): Declare.
17607 (block_async_io, unblock_async_io): Delete prototypes.
17608 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
17610 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
17612 * remote-utils.c (readchar): Allow binary data in received messages.
17614 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17616 * win32-low.c (attaching): New global.
17617 (win32_create_inferior): Clear the `attaching' global.
17618 (win32_attach): Set the `attaching' global.
17619 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
17620 attaching. Only set a breakpoint at the entry point if not
17623 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17625 * server.c (main): Don't report dll events on the initial
17626 connection on attaches.
17628 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17630 * server.c (main): Relax numerical bases supported for the pid of
17631 the --attach command line argument.
17633 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17635 * win32-low.c (win32_attach): Call OpenProcess before
17636 DebugActiveProcess, not after. Add last error output to error
17639 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
17641 * win32-low.c (win32_get_thread_context)
17642 (win32_set_thread_context): New functions.
17643 (thread_rec): Use win32_get_thread_context.
17644 (continue_one_thread, win32_resume): Use win32_set_thread_context.
17645 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
17648 2007-12-03 Leo Zayas
17649 Pedro Alves <pedro_alves@portugalmail.pt>
17651 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
17653 (child_add_thread): Minor cleanup.
17654 (child_continue): Resume artificially suspended threads before
17655 calling ContinueDebugEvent.
17656 (suspend_one_thread): New.
17657 (fake_breakpoint_event): New.
17658 (get_child_debug_event): Change return type to int. Check here if
17659 gdb sent an interrupt request. If a soft interrupt was requested,
17660 fake a breakpoint event. Return 0 if there is no event to handle,
17662 (win32_wait): Don't check here if gdb sent an interrupt request.
17663 Ensure there is a valid event to handle.
17664 (win32_request_interrupt): Add soft interruption method as last
17667 2007-12-03 Leo Zayas
17668 Pedro Alves <pedro_alves@portugalmail.pt>
17670 * win32-low.h (win32_thread_info): Add descriptions to the
17671 structure members. Replace `suspend_count' counter by a
17673 * win32-low.c (thread_rec): Update condition of when to get the
17674 context from the inferior. Rely on ContextFlags being set if it
17675 has already been retrieved. Only suspend the inferior thread if
17676 we haven't already. Warn if that fails.
17677 (continue_one_thread): s/suspend_count/suspended/. Only call
17678 ResumeThread once. Warn if that fails.
17680 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17682 * win32-low.c (win32_wait): Don't read from the inferior when it
17683 has already exited.
17685 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17687 * Makefile.in (win32_low_h): New variable.
17688 (win32-low.o): Add dependency on $(win32_low_h).
17689 (win32-arm-low.o, win32-i386-low.o): New rules.
17691 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17693 * hostio.c: Correct copyright year.
17695 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17697 * Makefile.in (OBS): Add hostio.o.
17698 (hostio.o): New rule.
17699 * server.h (handle_vFile): Declare.
17700 * hostio.c: New file.
17701 * server.c (handle_v_requests): Take packet_len and new_packet_len
17702 for binary packets. Call handle_vFile.
17703 (main): Update call to handle_v_requests.
17705 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
17707 * linux-low.c: Include <sched.h>.
17709 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
17711 * linux-low.c (linux_tracefork_grandchild): New.
17712 (linux_tracefork_child): Use clone.
17713 (linux_test_for_tracefork): Use clone; allocate and free a stack.
17715 2007-10-31 Joel Brobecker <brobecker@adacore.com>
17717 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
17719 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
17721 * linux-low.c (handle_extended_wait): Handle unexpected signals.
17723 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
17725 * inferiors.c (change_inferior_id): Delete.
17726 (add_pid_to_list, pull_pid_from_list): New.
17727 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
17728 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
17729 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
17730 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
17731 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
17732 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
17733 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
17734 (using_threads): Always set to 1.
17735 (handle_extended_wait): New.
17736 (add_process): Do not set TID.
17737 (linux_create_inferior): Set must_set_ptrace_flags.
17738 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
17739 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
17740 (linux_thread_alive): Rename TID argument to LWPID.
17741 (linux_wait_for_process): Handle unknown processes. Do not use TID.
17742 (linux_wait_for_event): Do not use TID or check using_threads. Update
17743 call to dead_thread_notify. Call handle_extended_wait.
17744 (linux_create_inferior): Use PTRACE_SETOPTIONS.
17745 (send_sigstop): Delete sigstop_sent.
17746 (wait_for_sigstop): Avoid TID.
17747 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
17748 (linux_test_for_tracefork): New.
17749 (linux_lookup_signals): Use thread_db_active and
17750 linux_supports_tracefork_flag.
17751 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
17752 * linux-low.h (get_process_thread): Avoid TID.
17753 (struct process_ifo): Move thread_known and tid to the end. Remove
17755 (linux_attach_lwp, thread_db_init): Update prototypes.
17756 * server.h (change_inferior_id): Delete prototype.
17757 (add_pid_to_list, pull_pid_from_list): New prototypes.
17758 * thread-db.c (thread_db_use_events): New.
17759 (find_first_thread): Rename to...
17760 (find_one_thread): ...this. Update callers and messages. Do not
17761 call fatal. Check thread_db_use_events. Do not call
17762 change_inferior_id or new_thread_notify.
17763 (maybe_attach_thread): Update. Do not call new_thread_notify.
17764 (thread_db_init): Set thread_db_use_events. Check use_events.
17765 * utils.c (fatal, warning): Correct message prefix.
17767 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
17769 * Makefile.in (clean): Remove new files.
17770 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
17771 (powerpc-64.o, powerpc-64.c): New rules.
17772 * configure.srv: Use alternate register sets for powerpc64-*-linux*
17773 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
17775 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
17777 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
17778 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
17779 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
17780 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
17781 (target_regsets): Add AltiVec and SPE register sets.
17782 * configure.ac: Check for AltiVec and SPE.
17783 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
17784 (ppc_fill_vrregset, ppc_store_vrregset): New.
17785 (target_regsets): Add AltiVec register set.
17786 * configure: Regenerated.
17788 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
17790 * linux-low.c (O_LARGEFILE): Define.
17791 (linux_read_memory): Use /proc/PID/mem.
17792 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
17793 * configure, config.in: Regenerated.
17795 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17797 * linux-low.c (linux_wait_for_event): Do not pass signals while
17800 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17802 * win32-low.c (create_process): New.
17803 (win32_create_inferior): Use create_process instead of
17804 CreateProcess. If create_process failed retry appending an ".exe"
17805 suffix. Store the GetLastError result immediatelly after
17806 create_process calls and use it on the call to error.
17808 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17810 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
17812 2007-08-23 Joel Brobecker <brobecker@adacore.com>
17814 * configure.ac: Switch license to GPLv3.
17816 2007-08-01 Michael Snyder <msnyder@access-company.com>
17818 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
17820 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
17822 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
17824 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
17825 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
17826 CloseToolhelp32Snapshot.
17827 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
17828 CloseToolhelp32Snapshot.
17830 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
17832 * server.c (main): Check for inferior exit before main loop.
17834 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
17836 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
17837 instead of on tmp_desc.
17839 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
17840 Daniel Jacobowitz <dan@codesourcery.com>
17842 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
17843 (add_thread): Minor cleanups.
17844 (clear_inferiors): Move lower in the file. Clear the DLL
17846 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
17847 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
17848 (xml_escape_text): New.
17849 * server.c (handle_query): Handle qXfer:libraries:read. Report it
17851 (handle_v_cont): Report errors.
17852 (gdbserver_version): Update.
17853 (main): Correct size of own_buf. Do not report initial DLL events.
17854 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
17855 (unloaded_dll, xml_escape_text): New.
17856 * win32-low.c (enum target_waitkind): Update comments.
17857 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
17858 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
17859 (win32_EnumProcessModules, win32_GetModuleInformation)
17860 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
17861 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
17862 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
17863 (win32_Module32First, win32_Module32Next, load_toolhelp)
17864 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
17865 (get_child_debug_event): Handle DLL events.
17866 (win32_wait): Likewise.
17868 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17870 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
17871 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
17873 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17875 * win32-low.c (handle_output_debug_string): Ignore event if not
17878 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17880 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
17882 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
17884 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
17886 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
17888 * inferiors.c (change_inferior_id): Add comment.
17889 * linux-low.c (check_removed_breakpoint): Add an early
17890 prototype. Improve debug output.
17891 (linux_attach): Doc update.
17892 (linux_detach_one_process, linux_detach): Clean up before releasing
17894 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
17895 * linux-low.h (struct process_info): Doc improvement.
17896 * mem-break.c (delete_all_breakpoints): New.
17897 * mem-break.h (delete_all_breakpoints): New prototype.
17898 * thread-db.c (find_first_thread): New.
17899 (thread_db_create_event): Call it instead of
17900 thread_db_find_new_threads. Clean up unused variables.
17901 (maybe_attach_thread): Remove first thread handling.
17902 (thread_db_find_new_threads): Use find_first_thread.
17903 (thread_db_get_tls_address): Likewise.
17905 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
17907 * thread-db.c (thread_db_find_new_threads): Add prototype.
17908 (thread_db_create_event): Check for the main thread before adding
17910 (maybe_attach_thread): Only enable event reporting if TID == 0.
17911 (thread_db_get_tls_address): Check for new threads.
17913 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
17915 * linux-low.c (linux_create_inferior): Try execv before execvp.
17916 * spu-low.c (spu_create_inferior): Likewise.
17918 2007-06-13 Mike Frysinger <vapier@gentoo.org>
17920 * linux-low.c (linux_create_inferior): Change execv to execvp.
17921 * spu-low.c (spu_create_inferior): Likewies.
17923 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
17925 * Makefile.in (clean): Clean new files instead of deleted ones.
17926 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
17927 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
17929 * configure.srv: Specify XML files and new regformats for MIPS and
17931 * linux-mips-low.c (mips_num_regs): Set to only used registers.
17932 (mips_regmap): Do not fetch $0. Remove unused registers. Add
17933 an entry for the restart register.
17934 (mips_cannot_fetch_register, mips_cannot_store_register)
17935 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
17936 register names to match the XML descriptions.
17937 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
17938 restart register instead of $0.
17940 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17941 Markus Deuling <deuling@de.ibm.com>
17943 * remote-utils.c (decode_xfer_write): New function.
17944 * server.h (decode_xfer_write): Add prototype.
17945 * server.c (handle_query): Add PACKET_LEN argument. Support
17946 qXfer:spu:read and qXfer:spu:write packets.
17947 (main): Pass packet_len to handle_query.
17948 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
17949 * target.h (target_ops): Add qxfer_spu.
17951 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17953 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
17954 accessing non-seekable spufs files.
17956 2007-05-16 Markus Deuling <deuling@de.ibm.com>
17958 * server.c (handle_query): Add reply for qC packet.
17960 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17961 Leo Zayas <lerele@champenstudios@com>
17963 * server.h (check_remote_input_interrupt_request): New function.
17964 * remote_utils.c (INVALID_DESCRIPTOR): New define.
17965 (remote_desc): Initialize with INVALID_DESCRIPTOR.
17966 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
17967 (check_remote_input_interrupt_request): New function.
17968 * server.h (check_remote_input_interrupt_request): Declare.
17969 * win32-low.c (winapi_DebugBreakProcess,
17970 winapi_GenerateConsoleCtrlEvent): New typedefs.
17971 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
17973 (win32_wait): Check for remote interrupt request
17974 with check_remote_input_interrupt_request.
17975 (win32_request_interrupt): New function.
17976 (win32_target_op): Set request_interrupt to win32_request_interrupt.
17978 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17980 * win32-low.c (debug_registers_changed,
17981 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
17982 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
17983 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
17984 (thread_rec): Get context using the low target.
17985 (child_add_thread): Call thread_added on the low target,
17986 which does the same thing.
17988 (do_initial_child_stuff): Remove debug registers references.
17989 Set context using the low target. Resume threads after
17990 setting the contexts.
17991 (child_continue): Remove dead variable. Remove debug
17992 registers references.
17993 (child_fetch_inferior_registers): Go through the low target.
17994 (do_child_store_inferior_registers): Remove.
17995 (child_store_inferior_registers): Go through the low target.
17996 (win32_resume): Remove debug registers references.
17997 Set context using the low target.
17998 (handle_exception): Change return type to void. Don't record
17999 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18000 first chance exception.
18001 (get_child_debug_event): Change return type to void. Remove
18002 goto loop. Always return after waiting for debug event.
18003 (win32_wait): Convert to switch statement. Handle spurious
18006 * win32-i386-low.c (debug_registers_changed,
18007 debug_registers_used): New.
18008 (initial_stuff): Rename to ...
18009 (i386_initial_stuff): ... this. Clear debug registers
18011 (store_debug_registers): Delete.
18012 (i386_get_thread_context): New.
18013 (load_debug_registers): Delete.
18014 (i386_set_thread_context): New.
18015 (i386_thread_added): New.
18016 (single_step): Rename to ...
18017 (i386_single_step): ... this.
18018 (do_fetch_inferior_registers): Rename to ...
18019 (i386_fetch_inferior_register): ... this.
18020 (i386_store_inferior_register): New.
18021 (the_low_target): Adapt to new interface.
18023 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18024 (arm_get_thread_context): New.
18025 (arm_set_thread_context): New.
18027 (do_fetch_inferior_registers): Rename to ...
18028 (arm_fetch_inferior_register): ... this.
18029 (arm_store_inferior_register): New.
18030 (arm_wince_breakpoint): Reimplement as unsigned long.
18031 (arm_wince_breakpoint_len): Define.
18032 (the_low_target): Adapt to new interface.
18034 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18035 load_debug_registers. Add get_thread_context, set_thread_context,
18036 thread_added and store_inferior_register. Rename
18037 fetch_inferior_registers to fetch_inferior_register.
18038 (regptr): Remove declaration.
18040 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18042 * linux-low.c (linux_detach): Change return type to int. Return 0.
18043 * spu-low.c (spu_detach): Likewise.
18045 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18047 * target.h (target_ops): Change return type of detach to int.
18049 (join_inferior): New.
18050 * server.c (main): Don't skip detach support on mingw32.
18051 If the inferior doesn't support detaching return error.
18052 Call join_inferior instead of using waitpid.
18053 * linux-low.c (linux_join): New.
18054 (linux_target_op): Add linux_join.
18055 * spu-low.c (spu_join): New.
18056 (spu_target_ops): Add spu_join.
18057 * win32-low.c (win32_detach): Adapt to new interface.
18058 Reopen current_process_handle before detaching. Issue a child
18059 resume before detaching.
18061 (win32_target_op): Add win32_join.
18063 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18065 * win32-low.c (win32-attach): Fix return value.
18066 * target.h (target_ops): Describe ATTACH return values.
18068 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18070 * win32-low.c (GETPROCADDRESS): Define.
18071 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18072 (winapi_DebugSetProcessKillOnExit): Likewise.
18073 (win32_create_inferior): Force usage of ansi CreateProcessA.
18074 (win32_attach): Use GETPROCADDRESS.
18075 (win32_detach): Likewise.
18077 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18079 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18081 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18083 * win32-low.c: Commit leftover changes from 2007-03-29.
18085 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18087 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18088 fields short instead of int. Add explicit padding.
18089 (i387_cache_to_fsave): Remove unnecessary casts.
18090 (i387_fsave_to_cache): Doc fix.
18091 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18093 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18095 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18096 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18098 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18100 * configure.srv (arm*-*-mingw32ce*): Move near the other
18103 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18105 * configure.ac: Add errno checking.
18106 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
18107 sys/file.h and malloc.h.
18108 (AC_CHECK_DECLS): Add perror.
18109 (srv_mingwce): Handle.
18110 * configure.srv (i[34567]86-*-cygwin*): Add
18111 win32-i386-low.o to srv_tgtobj.
18112 (i[34567]86-*-mingw*): Likewise.
18113 (arm*-*-mingw32ce*): Add case.
18114 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18115 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
18116 [__MINGW32CE__] (strerror): New function.
18117 [__MINGW32CE__] (errno): Define to GetLastError.
18118 [__MINGW32CE__] (COUNTOF): New macro.
18119 (remote_open): Remove extra close call.
18120 * mem-break.c (delete_breakpoint_at): New function.
18121 * mem-break.h (delete_breakpoint_at): Declare.
18122 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18123 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
18124 [USE_WIN32API] (read, write): Add char* casts.
18125 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
18126 * server.h: Include wincecompat.h on Windows CE.
18127 [HAVE_ERRNO_H]: Check.
18128 (perror): Declare if not declared.
18129 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
18130 (perror_with_name): Remove errno declaration.
18131 * wincecompat.h: New.
18132 * wincecompat.c: New.
18133 * win32-low.h: New.
18134 * win32-arm-low.c: New.
18135 * win32-i386-low.c: New.
18136 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
18137 (OUTMSG2): Make it safe.
18139 (COUNTOF): New macro.
18140 (NUM_REGS): Get it from the low target.
18141 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
18142 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
18143 (thread_rec): Let low target handle debug registers.
18144 (child_add_thread): Likewise.
18145 (child_init_thread_list): Likewise.
18146 (continue_one_thread): Likewise.
18148 (do_child_fetch_inferior_registers): Move to ...
18149 * win32-i386-low.c: ... here, and rename to ...
18150 (do_fetch_inferior_registers): ... this.
18151 * win32-low.c (child_fetch_inferior_registers):
18152 Go through the low target.
18153 (do_child_store_inferior_registers): Use regptr.
18154 (strwinerror): New function.
18155 (win32_create_inferior): Handle Windows CE.
18156 Use strwinerror instead of strerror on Windows error
18157 codes. Add program to the error output.
18158 Don't close the main thread handle on Windows CE.
18159 (win32_attach): Use coredll.dll on Windows CE.
18160 (win32_kill): Close current process and current
18162 (win32_detach): Use coredll.dll on Windows CE.
18163 (win32_resume): Let low target handle debug registers, and
18165 (handle_exception): Add/Remove initial breakpoint. Avoid
18166 non-existant WSTOPSIG on Windows CE.
18167 (win32_read_inferior_memory): Cast to remove warning.
18168 (win32_arch_string): Go through the low target.
18169 (initialize_low): Call set_breakpoint_data with the low
18170 target's breakpoint.
18171 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
18172 FOP_REGNUM, mappings): Move to ...
18173 * win32-i386-low.c: ... here.
18174 * win32-low.c (win32_thread_info): Move to ...
18175 * win32-low.h: ... here.
18176 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
18177 win32-arm-low.c and wincecompat.c.
18178 (all:): Add $EXEEXT.
18179 (install-only:): Likewise.
18180 (gdbserver:): Likewise.
18181 (gdbreplay:): Likewise.
18182 * config.in: Regenerate.
18183 * configure: Regenerate.
18185 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18187 * win32-low.c: Rename typedef thread_info to
18188 win32_thread_info throughout.
18190 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18192 * win32-i386-low.c: Rename to ...
18193 * win32-low.c: ... this.
18194 * configure.srv: Replace win32-i386-low.o with win32-low.o.
18195 * Makefile.in: Likewise.
18197 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18199 * remote-utils.c (monitor_output): Constify msg parameter.
18200 * server.h (monitor_output): Likewise.
18201 * win32-i386-low.c (handle_output_debug_string): New.
18202 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
18203 handle_output_debug_string.
18204 (get_child_debug_event): Likewise.
18206 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18208 * server.c (main): Correct strtoul check.
18210 2007-03-27 Jon Ringle <jon@ringle.org>
18212 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18214 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18216 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18218 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18220 * terminal.h: Check HAVE_SGTTY_H.
18222 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
18224 * remote-utils.c (remote_open): Print out the assigned port number.
18226 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18228 * remote-utils.c (monitor_output): New function.
18229 * server.c (debug_threads): Define here.
18230 (monitor_show_help): New function.
18231 (handle_query): Handle qRcmd.
18232 (main): Do not handle 'd' packet.
18233 * server.h (debug_threads, remote_debug, monitor_output): Declare.
18234 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
18237 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18239 * Makefile.in (EXEEXT): New.
18240 (clean): Use $(EXEEXT).
18242 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18244 * target.h (target_ops): Rename send_signal to request_interrupt,
18245 and remove enum target_signal parameter.
18246 * linux-low.c (linux_request_interrupt): Rename from
18247 linux_send_signal, and always send SIGINT.
18248 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
18249 and always send SIGINT.
18250 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
18252 (input_interrupt): Likewise.
18254 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18256 * server.c (get_features_xml): Check if target implemented
18258 * win32-i386-low.c (win32_arch_string): New.
18259 (win32_target_ops): Add win32_arch_string as arch_string member.
18261 2007-02-22 Markus Deuling <deuling@de.ibm.com>
18263 * spu-low.c (spu_arch_string): New.
18264 (spu_target_ops): Add spu_arch_string.
18266 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18268 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18269 * configure.ac: Do not check for terminal.h.
18270 * configure, config.in: Regenerated.
18272 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18274 * Makefile.in (OBS): Add $(XML_BUILTIN).
18275 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18277 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
18278 (arm-with-iwmmxt.c): New.
18279 * config.in, configure: Regenerate.
18280 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
18281 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
18282 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
18283 (arm*-*-linux*): Add iWMMXt and regset support.
18284 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
18285 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
18286 (arm_store_wmmxregset, target_regsets): New.
18287 * server.c (get_features_xml): Take annex argument. Check builtin
18289 (handle_query): Handle multiple annexes.
18291 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18293 * remote-utils.c [USE_WIN32API] (read, write): Define.
18294 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18297 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18299 * linux-i386-low.c (the_low_target): Set arch_string.
18300 * linux-x86-64-low.c (the_low_target): Likewise.
18301 * linux-low.c (linux_arch_string): New.
18302 (linux_target_ops): Add it.
18303 * linux-low.h (struct linux_target_ops): Add arch_string.
18304 * server.c (write_qxfer_response): Use const void * for DATA.
18305 (get_features_xml): New.
18306 (handle_query): Handle qXfer:features:read. Report it for qSupported.
18307 * target.h (struct target_ops): Add arch_string method.
18309 2007-01-03 Denis Pilat <denis.pilat@st.com>
18310 Daniel Jacobowitz <dan@codesourcery.com>
18312 * linux-low.c (linux_kill): Handle being called with no threads.
18313 * win32-i386-low.c (win32_kill): Likewise.
18314 (get_child_debug_event): Clear current_process_handle.
18316 2006-12-30 Denis PILAT <denis.pilat@st.com>
18317 Daniel Jacobowitz <dan@codesourcery.com>
18319 * remote-utils.c (remote_open): Check the type of specified
18320 serial port devices before opening them.
18321 * server.c (main): Kill the inferior if an error occurs during
18322 the first remote_open.
18324 2006-12-05 Markus Deuling <deuling@de.ibm.com>
18326 * README: Update supported targets.
18328 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18330 * Makefile.in (clean): Remove reg-mips64.c.
18331 (reg-mips64.c, reg-mips64.o): New rules.
18332 * configure.srv: Handle mips64. Include regset support for mips.
18333 * linux-mips-low.c (union mips_register): New.
18334 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
18335 (mips_breakpoint, mips_breakpoint_at): Use int.
18336 (mips_collect_register, mips_supply_register)
18337 (mips_collect_register_32bit, mips_supply_register_32bit)
18338 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18339 (mips_store_fpregset, target_regsets): New.
18340 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
18342 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18344 * configure.srv: Add target "spu*-*-*".
18345 * Makefile.in (clean): Remove reg-spu.c.
18346 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
18347 * spu-low.c: New file.
18349 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18351 * configure.ac: Correct td_thr_tls_get_addr test.
18352 * configure: Regenerated.
18354 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18356 * linux-low.c (linux_wait_for_event): Reformat. Use the
18357 pass_signals array.
18358 * remote-utils.c (decode_address_to_semicolon): New.
18359 * server.c (pass_signals, handle_general_set): New.
18360 (handle_query): Mention QPassSignals for qSupported.
18361 (main): Call handle_general_set.
18362 * server.h (pass_signals, decode_address_to_semicolon): New.
18364 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18366 * server.c (handle_query): Correct error handling for read_auxv.
18368 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18370 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
18371 and srv_linux_thread_db to yes.
18372 * linux-s390-low.c (s390_fill_gregset): New function.
18373 (target_regsets): Define data structure.
18375 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18377 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
18378 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
18379 * config.in, configure: Regenerated.
18380 * inferiors.c (gdb_id_to_thread): New function.
18381 (gdb_id_to_thread_id): Use it.
18382 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
18383 * linux-low.h (struct process_info): Add th member.
18384 (thread_db_get_tls_address): New prototype.
18385 * remote-utils.c (decode_address): Make non-static.
18386 * server.c (handle_query): Handle qGetTLSAddr.
18387 * server.h (gdb_id_to_thread, decode_address): New prototypes.
18388 * target.h (struct target_ops): Add get_tls_address.
18389 * thread-db.c (maybe_attach_thread): Save the thread handle.
18390 (thread_db_get_tls_address): New.
18392 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18394 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
18395 (linux_resume_one_process): Take a siginfo_t *. Update all
18396 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
18397 (struct pending_signals): Add a siginfo_t.
18398 (linux_wait_for_process): Always set last_status.
18399 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
18400 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
18401 * linux-low.h (struct process_info): Add last_status.
18403 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18405 * remote-utils.c (try_rle): New function.
18406 (putpkt_binary): Use it.
18408 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18410 * Makefile.in (clean): Clean reg-x86-64-linux.c.
18411 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
18412 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
18413 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
18414 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
18417 2006-08-08 Richard Sandiford <richard@codesourcery.com>
18419 * server.c (terminal_fd): New variable.
18420 (old_foreground_pgrp): Likewise.
18421 (restore_old_foreground_pgrp): New function.
18422 (start_inferior): Record the terminal file descriptor in terminal_fd
18423 and its original foreground group in old_foreground_pgrp. Register
18424 restore_old_foreground_pgrp with atexit().
18426 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18428 * server.c (handle_query): Correct qPart to qXfer.
18430 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18432 * configure.ac: Check for more headers which are missing on
18433 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18434 * configure.srv: Add Cygwin and mingw32.
18435 * remote-utils.c: Don't include headers unconditionally which
18436 are missing on mingw32. Include <winsock.h> for mingw32.
18437 (remote_open): Adjust for mingw32 support. Flush
18438 standard error after writing to it.
18439 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18440 (unblock_async_io, enable_async_io, disable_async_io)
18441 (readchar, getpkt): Update for Winsock support.
18442 (prepare_resume_reply): Expect a protocol signal number.
18443 * server.c: Disable <sys/wait.h> on mingw32.
18444 (start_inferior): Adjust for mingw32 support. Flush
18445 standard error after writing to it.
18446 (attach_inferior): Likewise. Use protocol signal
18448 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18450 * win32-i386-low.c: New file.
18451 * Makefile.in (XM_CLIBS): Set.
18452 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18453 (win32-i386-low.o): New dependency rule.
18454 * linux-low.c (linux_wait): Use target signal numbers.
18455 * target.h (struct target_ops): Doc fix.
18456 * server.h (target_signal_to_name): New prototype.
18457 * gdbreplay.c: Don't include headers unconditionally which
18458 are missing on mingw32. Include <winsock.h> for mingw32.
18459 (remote_close, remote_open): Adjust for Winsock support.
18460 * configure, config.in: Regenerated.
18462 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18464 * server.c (decode_xfer_read, write_qxfer_response): New.
18465 (handle_query): Take a packet length argument. Handle
18466 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18467 the qSupported response.
18468 (main): Update call to handle_query.
18470 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18472 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18473 (putpkt_binary): Renamed from putpkt and adjusted for binary
18475 (putpkt): New wrapper for putpkt_binary.
18476 (readchar): Don't mask off the high bit.
18477 (decode_X_packet): New function.
18478 * server.c (main): Call putpkt_binary if a handler sets the packet
18479 length. Save the length of the incoming packet. Handle 'X'.
18480 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18482 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
18484 * server.c (handle_query): Handle qSupported.
18486 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18488 * remote-utils.c (all_symbols_looked_up): New variable.
18489 (look_up_one_symbol): Check it.
18490 * server.h (look_up_one_symbol): New declaration.
18491 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
18493 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
18495 * Makefile.in (linux-arm-low.o): Update dependencies.
18496 * linux-arm-low.c: Include "gdb_proc_service.h".
18497 (PTRACE_GET_THREAD_AREA): Define.
18498 (ps_get_thread_area): New function.
18500 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
18502 * configure.srv (m68k*-*-uclinux*): New target.
18503 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
18504 (linux_resume_one_process): Remove extraneous cast.
18505 (linux_read_offsets): New.
18506 (linux_target_op): Add linux_read_offsets on mmuless systems.
18507 * server.c (handle_query): Add qOffsets logic.
18508 * target.h (struct target_ops): Add read_offsets.
18510 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18512 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
18513 (PTRACE_GET_THREAD_AREA): Define.
18514 (ps_get_thread_area): New function.
18515 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
18516 (linux-x86-64-low.o): Update.
18518 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
18520 * configure.ac: Remove checks for prfpregset_t.
18521 * gdb_proc_service.h: New file.
18522 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
18523 new "gdb_proc_service.h".
18524 * proc-service.c: Likewise.
18525 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
18526 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
18527 * Makefile.in (gdb_proc_service_h): Updated.
18528 * configure, config.in: Regenerated.
18530 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18532 * remote-utils.c (prepare_resume_reply): Move declaration
18533 of gdb_id_from_wait to the top of the block.
18535 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
18537 * linux-low.c (regsets_store_inferior_registers): Read the regset
18538 from the target before filling it.
18540 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18542 * server.c (attach_inferior): Return SIGTRAP for a successful
18545 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18547 * Makefile.in (OBS): Add version.o.
18548 (STAGESTUFF): Delete.
18549 (version.o): Add dependencies.
18550 (version.c): Replace rule.
18551 (clean): Remove version.c.
18552 * server.c (gdbserver_version): New.
18553 (gdbserver_usage): Use printf.
18554 (main): Handle --version and --help.
18555 * server.h (version, host_name): Add declarations.
18557 2005-12-23 Eli Zaretskii <eliz@gnu.org>
18569 * linux-x86-64-low.c:
18571 * linux-s390-low.c:
18572 * linux-ppc64-low.c:
18574 * linux-mips-low.c:
18575 * linux-m68k-low.c:
18576 * linux-m32r-low.c:
18579 * linux-ia64-low.c:
18580 * linux-i386-low.c:
18581 * linux-crisv32-low.c:
18593 * gdbserver.1: Add (C) after Copyright. Update the FSF
18596 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
18598 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
18599 (arm_breakpoint_at): Recognize both breakpoints.
18600 (the_low_target): Use the correct breakpoint instruction.
18602 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
18604 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
18605 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
18606 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
18607 (the_low_target): Update.
18609 2005-10-25 Andreas Schwab <schwab@suse.de>
18611 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
18613 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
18614 (ia64_num_regs): Reduce to 462.
18616 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
18618 * acinclude.m4: Correct quoting.
18619 * aclocal.m4: Regenerated.
18621 Suggested by SZOKOVACS Robert <szo@ies.hu>:
18622 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
18623 (thread_db_init): Call thread_db_err_str.
18624 * configure.ac: Check for TD_VERSION.
18625 * config.in, configure: Regenerated.
18627 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18629 * server.h (error, fatal, warning): Add ATTR_FORMAT.
18631 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18633 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
18634 is not available. Define HAVE_PTRACE_GETREGS if it is.
18635 * config.in, configure: Regenerated.
18636 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
18637 * linux-i386-low.c, linux-m68k-low.c: Update to use
18638 HAVE_PTRACE_GETREGS.
18639 * linux-low.c (regsets_fetch_inferior_registers)
18640 (regsets_store_inferior_registers): Only return 0 if we processed
18642 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
18643 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
18645 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18647 * inferiors.c (struct thread_info): Add gdb_id.
18648 (add_thread): Add gdb_id argument.
18649 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
18650 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
18651 calls to add_thread.
18652 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
18653 * server.c (handle_query): Use thread_to_gdb_id.
18654 (handle_v_cont, main): Use gdb_id_to_thread_id.
18655 * server.h (add_thread): Update prototype.
18656 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
18659 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
18661 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
18662 left-padded registers.
18663 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
18664 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
18666 2005-07-01 Steve Ellcey <sje@cup.hp.com>
18668 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
18669 * configure: Regenerate.
18670 * config.in: Regenerate.
18671 * server.h (NEED_DECLARATION_STRERROR):
18672 Replace with !HAVE_DECL_STRERROR.
18674 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
18676 * linux-low.c (linux_wait, linux_send_signal): Don't test
18677 an unsigned long variable for > 0 if it could be MAX_ULONG.
18678 * server.c (myresume): Likewise.
18679 * target.c (set_desired_inferior): Likewise.
18681 2005-06-13 Mark Kettenis <kettenis@gnu.org>
18683 * configure.ac: Simplify and improve check for socklen_t.
18684 * configure, config.in: Regenerate.
18686 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
18688 * acconfig.h: Remove.
18689 * configure.ac: Add a test for socklen_t. Use three-argument
18690 AC_DEFINE throughout.
18691 * config.in: Regenerated using autoheader 2.59.
18692 * configure: Regenerated.
18694 * gdbreplay.c (socklen_t): Provide a default.
18695 (remote_open): Use socklen_t.
18696 * remote-utils.c (socklen_t): Provide a default.
18697 (remote_open): Use socklen_t.
18698 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
18701 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
18703 * linux-low.c (linux_read_memory, linux_write_memory)
18704 (linux_read_auxv): Likewise.
18705 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
18706 (check_mem_write): Likewise.
18707 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
18709 * regcache.c (struct inferior_rgcache_data, registers_to_string)
18710 (registers_from_string, register_data): Likewise.
18711 * server.c (handle_query, main): Likewise.
18712 * server.h (convert_ascii_to_int, convert_int_to_ascii)
18713 (decode_M_packet): Likewise.
18714 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
18715 * target.h (struct target_ops): Update read_memory, write_memory,
18717 (read_inferior_memory, write_inferior_memory): Update.
18718 * linux-low.h (struct linux_target_ops): Change type of breakpoint
18719 to unsigned char *.
18720 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
18721 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
18722 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
18723 linux-s390-low.c, linux-sh-low.c: Update for changes in
18724 read_inferior_memory and the_low_target->breakpoint.
18726 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
18728 * Makefile.in (SFILES): Add linux-ppc64-low.c.
18729 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
18730 * configure.srv: Add powerpc64-*-linux*.
18731 * linux-ppc64-low.c: New file.
18733 2005-05-23 Orjan Friberg <orjanf@axis.com>
18735 * linux-cris-low.c: New file with support for CRIS.
18736 * linux-crisv32-low.c: Ditto for CRISv32.
18737 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
18738 (clean): Add reg-cris.c and reg-crisv32.c.
18739 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
18740 reg-crisv32.o, and reg-crisv32.c to make rules.
18741 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
18742 recognized targets.
18744 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
18746 * linux-low.c (fetch_register): Ensure buffer size is a multiple
18747 of sizeof (PTRACE_XFER_TYPE).
18748 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
18750 2005-05-12 Orjan Friberg <orjanf@axis.com>
18752 * target.h (struct target_ops): Add insert_watchpoint,
18753 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
18754 pointers for hardware watchpoint support.
18755 * linux-low.h (struct linux_target_ops): Ditto.
18756 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
18757 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
18758 to linux_target_ops.
18759 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
18761 * server.c (main): Recognize 'Z' and 'z' packets.
18763 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
18765 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
18766 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
18767 (the_low_target): Add new members.
18769 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18771 * proc-service.c (ps_lgetregs): Search all_processes instead of
18774 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18776 * server.c (start_inferior): Change return type to int.
18777 (attach_inferior): Change sigptr to int *.
18778 (handle_v_cont, handle_v_requests): Change signal to int *.
18779 (main): Change signal to int.
18781 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
18783 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
18784 * configure.srv: Add m32r*-*-linux*.
18785 * linux-m32r-low.c: New file.
18787 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
18789 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
18791 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18793 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
18794 Take unsigned long arguments for PIDs.
18795 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
18796 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
18797 (wait_for_sigstop, linux_resume_one_process)
18798 (regsets_fetch_inferior_registers, linux_send_signal)
18799 (linux_read_auxv): Likewise. Update the types of variables holding
18800 PIDs. Update format string specifiers.
18801 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
18802 * remote-utils.c (prepare_resume_reply): Likewise.
18803 * server.c (cont_thread, general_thread, step_thread)
18804 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
18806 (handle_query): Update format specifiers.
18807 (handle_v_cont, main): Use strtoul for thread IDs.
18808 * server.h (struct inferior_list_entry): Use unsigned long for ID.
18809 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
18810 (general_thread, step_thread, thread_from_wait)
18811 (old_thread_from_wait): Update.
18812 * target.h (struct thread_resume): Use unsigned long for THREAD.
18813 (struct target_ops): Use unsigned long for arguments to attach and
18816 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
18818 * acinclude.m4: Include bfd/bfd.m4 directly.
18819 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
18820 <agriffis@toolchain.org>.
18821 * aclocal.m4, configure: Regenerated.
18823 2005-01-07 Andrew Cagney <cagney@gnu.org>
18825 * configure.ac: Rename configure.in, require autoconf 2.59.
18826 * configure: Re-generate.
18828 2004-12-08 Daniel Jacobowitz <dan@debian.org>
18830 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
18831 LIBS when finished.
18832 * aclocal.m4: Regenerated.
18833 * configure: Regenerated.
18835 2004-11-21 Andreas Schwab <schwab@suse.de>
18837 * linux-m68k-low.c (m68k_num_gregs): Define.
18838 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
18839 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
18840 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
18841 (m68k_breakpoint_at): New. Add to the_low_target.
18843 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
18844 srv_linux_thread_db to yes.
18846 2004-10-20 Joel Brobecker <brobecker@gnat.com>
18848 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
18849 (ARCH_SET_FS): Likewise.
18850 (ARCH_GET_FS): Likewise.
18851 (ARCH_GET_GS): Likewise.
18853 2004-10-16 Daniel Jacobowitz <dan@debian.org>
18855 * linux-i386-low.c (ps_get_thread_area): New.
18856 * linux-x86-64-low.c (ps_get_thread_area): New.
18857 * linux-low.c: Include <sys/syscall.h>.
18858 (linux_kill_one_process): Don't kill the first thread here.
18859 (linux_kill): Kill the first thread here.
18860 (kill_lwp): New function.
18861 (send_sigstop, linux_send_signal): Use it.
18862 * proc-service.c: Clean up #ifdefs.
18863 (fpregset_info): Delete.
18864 (ps_lgetregs): Update and enable implementation.
18865 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
18867 * remote-utils.c (struct sym_cache, symbol_cache): New.
18868 (input_interrupt): Print a clearer message.
18869 (async_io_enabled): New variable.
18870 (enable_async_io, disable_async_io): Use it. Update comments.
18871 (look_up_one_symbol): Use the symbol cache.
18872 * thread-db.c (thread_db_look_up_symbols): New function.
18873 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
18875 2004-10-16 Daniel Jacobowitz <dan@debian.org>
18877 * configure.in: Test for -rdynamic.
18878 * configure: Regenerated.
18879 * Makefile (INTERNAL_LDFLAGS): New.
18880 (gdbserver, gdbreplay): Use it.
18882 2004-09-02 Andrew Cagney <cagney@gnu.org>
18884 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
18886 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
18888 * linux-low.c (linux_wait): Clear all_processes list also.
18890 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
18892 * linux-low.c: Include <errno.h>. Remove extern declaration of
18895 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
18897 * gdbreplay.c, server.h, utils.c: Update copyright years.
18899 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18901 * server.c (main): Print child status or termination signal from
18902 variable 'signal', not 'sig'.
18904 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18906 * linux-low.c (linux_read_memory): Change return type to
18907 int. Check for and return error from ptrace().
18908 * target.c (read_inferior_memory): Change return type to int. Pass
18909 back return status from the_target->read_memory().
18910 * target.h (struct target_ops): Adapt *read_memory() prototype.
18912 (read_inferior_memory): Adapt prototype.
18913 * server.c (main): Return an error packet if
18914 read_inferior_memory() returns an error.
18916 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
18918 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
18919 Unify with other clean targets.
18921 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18923 * server.c (handle_v_cont): Call set_desired_inferior.
18925 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18927 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
18929 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18931 * linux-low.c (linux_wait): Unblock async I/O.
18932 (linux_resume): Block and enable async I/O.
18933 * remote-utils.c (block_async_io, unblock_async_io): New functions.
18934 * server.h (block_async_io, unblock_async_io): Add prototypes.
18936 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18938 * remote-utils.c (remote_open): Print a status notice after
18939 opening a TCP port.
18940 * server.c (attach_inferior): Print a status notice after
18943 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
18945 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
18947 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
18949 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
18951 * server.c, target.h: Update copyright years.
18953 2004-02-25 Roland McGrath <roland@redhat.com>
18955 * target.h (struct target_ops): New member `read_auxv'.
18956 * server.c (handle_query): Handle qPart:auxv:read: query using that.
18957 * linux-low.c (linux_read_auxv): New function.
18958 (linux_target_ops): Initialize `read_auxv' member to that.
18960 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18962 Committed by Jim Blandy <jimb@redhat.com>.
18964 * linux-s390-low.c (s390_num_regs): Update.
18965 (s390_regmap): Remove control registers. Use __s390x__ predefine
18966 instead of GPR_SIZE to distiguish s390 and s390x targets.
18968 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
18970 * linux-low.c: Update copyright year.
18971 (check_removed_breakpoint): Clear pending_is_breakpoint.
18972 (linux_set_resume_request, linux_queue_one_thread)
18973 (resume_status_pending_p): New functions.
18974 (linux_continue_one_thread): Use process->resume.
18975 (linux_resume): Only resume threads if there are no pending events.
18976 * linux-low.h (struct process_info): Add resume request
18979 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
18981 * regcache.c (new_register_cache): Clear the allocated register
18982 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
18984 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
18986 * linux-low.c (linux_resume): Take a struct thread_resume *
18988 (linux_wait): Update call.
18989 (resume_ptr): New static variable.
18990 (linux_continue_one_thread): Renamed from
18991 linux_continue_one_process. Use resume_ptr.
18992 (linux_resume): Use linux_continue_one_thread.
18993 * server.c (handle_v_cont, handle_v_requests): New functions.
18994 (myresume): New function.
18995 (main): Handle 'v' case.
18996 * target.h (struct thread_resume): New type.
18997 (struct target_ops): Change argument of "resume" to struct
18999 (myresume): Delete macro.
19001 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19003 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19004 (uninstall): Support DESTDIR.
19006 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19008 * configure.srv: Add xscale*linux copy of arm*linux entry.
19010 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
19012 * linux-arm-low.c (arm_reinsert_addr): New function.
19013 (the_low_target): Add arm_reinsert_addr.
19015 2003-07-08 Mark Kettenis <kettenis@gnu.org>
19017 * mem-break.c: Remove whitespace at end of file.
19019 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19021 * configure.in: Check whether we need to prototype strerror.
19022 * server.h: Optionally prototype strerror.
19023 * gdbreplay.c (perror_with_name): Use strerror.
19024 * linux-low.c (linux_attach_lwp): Use strerror.
19025 * utils.c (perror_with_name): Use strerror.
19026 * config.in, configure: Regenerated.
19028 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19030 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19031 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19033 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
19035 * Makefile.in (SFILES): Update.
19036 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19037 low-sun3.c: Remove files.
19039 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
19041 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19042 (linux_detach_one_process, linux_detach): New functions.
19043 (linux_target_ops): Add linux_detach.
19044 * server.c (main): Handle 'D' packet.
19045 * target.h (struct target_ops): Add "detach" member.
19046 (detach_inferior): Define.
19048 2003-06-13 Mark Kettenis <kettenis@gnu.org>
19050 From Kelley Cook <kelleycook@wideopenwest.com>:
19051 * configure.srv: Accept i[34567]86 variants.
19053 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
19055 * linux-low.c (linux_wait_for_event): Correct comment typos.
19056 (linux_resume_one_process): Call check_removed_breakpoint.
19057 (linux_send_signal): New function.
19058 (linux_target_ops): Add linux_send_signal.
19059 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19061 * target.h (struct target_ops): Add send_signal.
19063 2003-05-29 Jim Blandy <jimb@redhat.com>
19065 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19066 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19067 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19068 away part of the register's value.
19070 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
19072 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19073 (linux_wait_for_event, linux_init_signals): Likewise.
19075 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
19077 * configure.in: Check for stdlib.h.
19078 * configure: Regenerated.
19079 * config.in: Regenerated.
19081 2003-01-04 Andreas Schwab <schwab@suse.de>
19083 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19085 2003-01-02 Andrew Cagney <ac131313@redhat.com>
19087 * Makefile.in: Remove obsolete code.
19089 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
19091 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19092 defined(PT_FPR0_HI).
19094 2002-11-17 Stuart Hughes <seh@zee2.com>
19096 * linux-arm-low.c (arm_num_regs): Increase.
19097 (arm_regmap): Include status register.
19099 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
19101 * linux-low.c (register_addr): Remove incorrect -1 check.
19103 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
19105 * linux-low.c (linux_create_inferior): Call setpgid. Return
19107 (unstopped_p, linux_signal_pid): Remove.
19108 (linux_target_ops): Remove linux_signal_pid.
19109 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
19110 global instead of target method.
19111 * target.h (struct target_ops): Remove signal_pid. Update comment
19112 for create_inferior.
19113 * server.c (signal_pid): New variable.
19114 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
19115 gdbserver. Set the child to be the foreground process group.
19116 (attach_inferior): Set signal_pid.
19118 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
19120 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19122 2002-08-20 Jim Blandy <jimb@redhat.com>
19124 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19127 2002-08-01 Andrew Cagney <cagney@redhat.com>
19129 * Makefile.in: Make chill references obsolete.
19131 2002-07-24 Kevin Buettner <kevinb@redhat.com>
19133 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19134 * configure: Regenerate.
19135 * config.in: Regenerate.
19137 2002-07-09 David O'Brien <obrien@FreeBSD.org>
19139 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19140 (perror_with_name, remote_close, remote_open, expect, play): Static.
19142 2002-07-04 Michal Ludvig <mludvig@suse.cz>
19144 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
19145 byte offsets instead of an array of indexes.
19146 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19148 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
19150 * regcache.c: Add comment.
19152 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
19154 * thread-db.c: New file.
19155 * proc-service.c: New file.
19156 * acinclude.m4: New file.
19157 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
19158 proc-service.o, and thread-db.o.
19159 (linux-low.o): Add USE_THREAD_DB.
19160 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
19161 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
19162 * aclocal.m4: Regenerated.
19163 * config.in: Regenerated.
19164 * configure: Regenerated.
19165 * configure.in: Check for proc_service.h, sys/procfs.h,
19166 thread_db.h, and linux/elf.h headrs.
19167 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
19168 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
19169 Check for -lthread_db and thread support.
19170 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
19171 PowerPC, and SuperH.
19172 * i387-fp.c: Constify arguments.
19173 * i387-fp.h: Likewise.
19174 * inferiors.c: (struct thread_info): Renamed from
19175 `struct inferior_info'. Remove PID member. Use generic inferior
19176 list header. All uses updated.
19177 (inferiors, signal_pid): Removed.
19178 (all_threads): New variable.
19179 (get_thread): Define.
19180 (add_inferior_to_list): New function.
19181 (for_each_inferior): New function.
19182 (change_inferior_id): New function.
19183 (add_inferior): Removed.
19184 (remove_inferior): New function.
19185 (add_thread): New function.
19186 (free_one_thread): New function.
19187 (remove_thread): New function.
19188 (clear_inferiors): Use for_each_inferior and free_one_thread.
19189 (find_inferior): New function.
19190 (find_inferior_id): New function.
19191 (inferior_target_data): Update argument type.
19192 (set_inferior_target_data): Likewise.
19193 (inferior_regcache_data): Likewise.
19194 (set_inferior_regcache_data): Likewise.
19195 * linux-low.c (linux_bp_reinsert): Remove.
19196 (all_processes, stopping_threads, using_thrads)
19197 (struct pending_signals, debug_threads, pid_of): New.
19198 (inferior_pid): Replace with macro.
19199 (struct inferior_linux_data): Remove.
19200 (get_stop_pc, add_process): New functions.
19201 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
19202 Use add_process and add_thread.
19203 (linux_attach_lwp): New function, based on old linux_attach. Use
19204 add_process and add_thread. Set stop_expected for new threads.
19205 (linux_attach): New function.
19206 (linux_kill_one_process): New function.
19207 (linux_kill): Kill all LWPs.
19208 (linux_thread_alive): Use find_inferior_id.
19209 (check_removed_breakpoints, status_pending_p): New functions.
19210 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
19211 Update. Use WNOHANG. Wait for cloned processes also. Update process
19212 struct for the found process.
19213 (linux_wait_for_event): New function.
19214 (linux_wait): Use it. Support LWPs.
19215 (send_sigstop, wait_for_sigstop, stop_all_processes)
19216 (linux_resume_one_process, linux_continue_one_process): New functions.
19217 (linux_resume): Support LWPs.
19218 (REGISTER_RAW_SIZE): Remove.
19219 (fetch_register): Use register_size instead. Call supply_register.
19220 (usr_store_inferior_registers): Likewise. Call collect_register.
19221 Fix recursive case.
19222 (regsets_fetch_inferior_registers): Improve error message.
19223 (regsets_store_inferior_registers): Add debugging.
19224 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
19225 (unstopped_p, linux_signal_pid): New functions.
19226 (linux_target_ops): Add linux_signal_pid.
19227 (linux_init_signals): New function.
19228 (initialize_low): Call it. Initialize using_threads.
19229 * regcache.c (inferior_regcache_data): Add valid
19231 (get_regcache): Fetch registers lazily. Add fetch argument
19232 and update all callers.
19233 (regcache_invalidate_one, regcache_invalidate): New
19235 (new_register_cache): Renamed from create_register_cache.
19236 Return the new regcache.
19237 (free_register_cache): Change argument to a void *.
19238 (registers_to_string, registers_from_string): Call get_regcache
19239 with fetch flag set.
19240 (register_data): Make static. Pass fetch flag to get_regcache.
19241 (supply_register): Call get_regcache with fetch flag clear.
19242 (collect_register): Call get_regcache with fetch flag set.
19243 (collect_register_as_string): New function.
19244 * regcache.h: Update.
19245 * remote-utils.c (putpkt): Flush after debug output and use
19247 Handle input interrupts while waiting for an ACK.
19248 (input_interrupt): Use signal_pid method.
19249 (getpkt): Flush after debug output and use stderr.
19250 (outreg): Use collect_register_as_string.
19251 (new_thread_notify, dead_thread_notify): New functions.
19252 (prepare_resume_reply): Check using_threads. Set thread_from_wait
19253 and general_thread.
19254 (look_up_one_symbol): Flush after debug output.
19255 * server.c (step_thread, server_waiting): New variables.
19256 (start_inferior): Don't use signal_pid. Update call to mywait.
19257 (attach_inferior): Update call to mywait.
19258 (handle_query): Handle qfThreadInfo and qsThreadInfo.
19259 (main): Don't fetch/store registers explicitly. Use
19260 set_desired_inferior. Support proposed ``Hs'' packet. Update
19262 * server.h: Update.
19263 (struct inferior_list, struct_inferior_list_entry): New.
19264 * target.c (set_desired_inferior): New.
19265 (write_inferior_memory): Constify.
19266 (mywait): New function.
19267 * target.h: Update.
19268 (struct target_ops): New signal_pid method.
19269 (mywait): Removed macro, added prototype.
19271 * linux-low.h (regset_func): Removed.
19272 (regset_fill_func, regset_store_func): New.
19273 (enum regset_type): New.
19274 (struct regset_info): Add type field. Use new operation types.
19275 (struct linux_target_ops): stop_pc renamed to get_pc.
19276 Add decr_pc_after_break and breakpoint_at.
19277 (get_process, get_thread_proess, get_process_thread)
19278 (strut process_info, all_processes, linux_attach_lwp)
19279 (thread_db_init): New.
19281 * linux-arm-low.c (arm_get_pc, arm_set_pc,
19282 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
19283 (the_low_target): Add new members.
19284 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
19285 (i386_store_fpxregset): Constify.
19286 (target_regsets): Add new kind identifier.
19287 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
19288 (i386_set_pc): Add debugging.
19289 (i386_breakpoint_at): New function.
19290 (the_low_target): Add new members.
19291 * linux-mips-low.c (mips_get_pc, mips_set_pc)
19292 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
19293 (mips_breakpoint_at): New.
19294 (the_low_target): Add new members.
19295 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
19296 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
19297 (the_low_target): Add new members.
19298 * linux-sh-low.c (sh_get_pc, sh_set_pc)
19299 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
19300 (the_low_target): Add new members.
19301 * linux-x86-64-low.c (target_regsets): Add new kind
19304 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
19306 From Martin Pool <mbp@samba.org>:
19307 * server.c (gdbserver_usage): New function.
19310 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
19312 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19313 stop_at -> stop_pc.
19315 2002-05-04 Andrew Cagney <ac131313@redhat.com>
19317 * Makefile.in: Remove obsolete code.
19319 2002-04-24 Michal Ludvig <mludvig@suse.cz>
19321 * linux-low.c (regsets_fetch_inferior_registers),
19322 (regsets_store_inferior_registers): Removed cast to int from
19324 * regcache.h: Added declaration of struct inferior_info.
19326 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19328 * inferiors.c (struct inferior_info): Add regcache_data.
19329 (add_inferior): Call create_register_cache.
19330 (clear_inferiors): Call free_register_cache.
19331 (inferior_regcache_data, set_inferior_regcache_data): New functions.
19332 * regcache.c (struct inferior_regcache_data): New.
19333 (registers): Remove.
19334 (get_regcache): New function.
19335 (create_register_cache, free_register_cache): New functions.
19336 (set_register_cache): Don't initialize the register cache here.
19337 (registers_to_string, registers_from_string, register_data): Call
19339 * regcache.h: Add prototypes.
19340 * server.h: Likewise.
19342 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19344 * mem-break.c: New file.
19345 * mem-break.h: New file.
19346 * Makefile.in: Add mem-break.o rule; update server.h
19348 * inferiors.c (struct inferior_info): Add target_data
19350 (clear_inferiors): Free target_data member if set.
19351 (inferior_target_data, set_inferior_target_data): New functions.
19352 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19353 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19354 * linux-low.c (linux_bp_reinsert): New variable.
19355 (struct inferior_linux_data): New.
19356 (linux_create_inferior): Use set_inferior_target_data.
19357 (linux_attach): Likewise. Call add_inferior.
19358 (linux_wait_for_one_inferior): New function.
19359 (linux_wait): Call it.
19360 (linux_write_memory): Add const.
19361 (initialize_low): Call set_breakpoint_data.
19362 * linux-low.h (struct linux_target_ops): Add breakpoint
19364 * server.c (attach_inferior): Remove extra add_inferior
19366 * server.h: Include mem-break.h. Update inferior.c
19368 * target.c (read_inferior_memory)
19369 (write_inferior_memory): New functions.
19370 * target.h (read_inferior_memory)
19371 (write_inferior_memory): Change macros to prototypes.
19372 (struct target_ops): Update comments. Add const to write_memory
19375 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
19377 * linux-low.c (usr_store_inferior_registers): Support
19378 registers which are allowed to fail to store.
19379 * linux-low.h (linux_target_ops): Likewise.
19380 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
19381 (ppc_cannot_store_register): FPSCR may not be storable.
19383 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19385 * server.h: Include <string.h> if HAVE_STRING_H.
19386 * ChangeLog: Correct paths in last ChangeLog entry.
19388 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19390 * linux-low.h: Remove obsolete prototypes.
19391 (struct linux_target_ops): New.
19392 (extern the_low_target): New.
19393 * linux-low.c (num_regs, regmap): Remove declarations.
19394 (register_addr): Use the_low_target explicitly.
19395 (fetch_register): Likewise.
19396 (usr_fetch_inferior_registers): Likewise.
19397 (usr_store_inferior_registers): Likewise.
19398 * linux-arm-low.c (num_regs): Remove.
19399 (arm_num_regs): Define.
19400 (arm_regmap): Renamed from regmap, made static.
19401 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
19403 (arm_cannot_store_register): Renamed from cannot_store_register,
19405 (the_low_target): New.
19406 * linux-i386-low.c (num_regs): Remove.
19407 (i386_num_regs): Define.
19408 (i386_regmap): Renamed from regmap, made static.
19409 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
19411 (i386_cannot_store_register): Renamed from cannot_store_register,
19413 (the_low_target): New.
19414 * linux-ia64-low.c (num_regs): Remove.
19415 (ia64_num_regs): Define.
19416 (ia64_regmap): Renamed from regmap, made static.
19417 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
19419 (ia64_cannot_store_register): Renamed from cannot_store_register,
19421 (the_low_target): New.
19422 * linux-m68k-low.c (num_regs): Remove.
19423 (m68k_num_regs): Define.
19424 (m68k_regmap): Renamed from regmap, made static.
19425 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
19427 (m68k_cannot_store_register): Renamed from cannot_store_register,
19429 (the_low_target): New.
19430 * linux-mips-low.c (num_regs): Remove.
19431 (mips_num_regs): Define.
19432 (mips_regmap): Renamed from regmap, made static.
19433 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19435 (mips_cannot_store_register): Renamed from cannot_store_register,
19437 (the_low_target): New.
19438 * linux-ppc-low.c (num_regs): Remove.
19439 (ppc_num_regs): Define.
19440 (ppc_regmap): Renamed from regmap, made static.
19441 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19443 (ppc_cannot_store_register): Renamed from cannot_store_register,
19445 (the_low_target): New.
19446 * linux-s390-low.c (num_regs): Remove.
19447 (s390_num_regs): Define.
19448 (s390_regmap): Renamed from regmap, made static.
19449 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19451 (s390_cannot_store_register): Renamed from cannot_store_register,
19453 (the_low_target): New.
19454 * linux-sh-low.c (num_regs): Remove.
19455 (sh_num_regs): Define.
19456 (sh_regmap): Renamed from regmap, made static.
19457 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19459 (sh_cannot_store_register): Renamed from cannot_store_register,
19461 (the_low_target): New.
19462 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19463 (the_low_target): New.
19465 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19467 * Makefile.in: Add stamp-h target.
19468 * configure.in: Create stamp-h.
19469 * configure: Regenerated.
19471 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19473 * inferiors.c: New file.
19474 * target.c: New file.
19475 * target.h: New file.
19476 * Makefile.in: Add target.o and inferiors.o. Update
19478 * linux-low.c (inferior_pid): New static variable,
19479 moved from server.c.
19480 (linux_create_inferior): Renamed from create_inferior.
19481 Call add_inferior. Return 0 on success instead of a PID.
19482 (linux_attach): Renamed from myattach.
19483 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
19484 (linux_thread_alive): Renamed from mythread_alive.
19485 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
19487 (linux_resume): Renamed from myresume. Add missing ``return 0''.
19488 (regsets_store_inferior_registers): Correct error message.
19489 Add missing ``return 0''.
19490 (linux_fetch_registers): Renamed from fetch_inferior_registers.
19491 (linux_store_registers): Renamed from store_inferior_registers.
19492 (linux_read_memory): Renamed from read_inferior_memory.
19493 (linux_write_memory): Renamed from write_inferior_memory.
19494 (linux_target_ops): New structure.
19495 (initialize_low): Call set_target_ops ().
19496 * remote-utils.c (unhexify): New function.
19497 (hexify): New function.
19498 (input_interrupt): Send signals to ``signal_pid''.
19499 * server.c (inferior_pid): Remove.
19500 (start_inferior): Update create_inferior call.
19501 (attach_inferior): Call add_inferior.
19502 (handle_query): New function.
19503 (main): Call handle_query for `q' packets.
19504 * server.h: Include "target.h". Remove obsolete prototypes.
19505 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
19507 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19509 * Makefile.in: Add WARN_CFLAGS. Update configury
19511 * configure.in: Check for <string.h>
19512 * configure: Regenerate.
19513 * config.in: Regenerate.
19514 * gdbreplay.c: Include needed system headers.
19515 (remote_open): Remove strchr prototype.
19516 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
19517 * regcache.c (supply_register): Change buf argument to const void *.
19518 (supply_register_by_name): Likewise.
19519 (collect_register): Change buf argument to void *.
19520 (collect_register_by_name): Likewise.
19521 * regcache.h: Add missing prototypes.
19522 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
19523 * server.c (handle_query): New function.
19524 (attached): New static variable, moved out of main.
19525 (main): Quiet longjmp clobber warnings.
19526 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
19527 * utils.c (error): Remove NORETURN.