1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 * linux-low.h (the_linux_target): New extern declaration.
4 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
6 (the_linux_target): Remove.
7 * linux-x86-low.cc (class x86_target): New class.
8 (the_x86_target): New static object.
9 (the_linux_target): Define as pointer to the_x86_target.
10 * linux-aarch64-low.cc (class aarch64_target): New class.
11 (the_aarch64_target): New static object.
12 (the_linux_target): Define as pointer to the_aarch64_target.
13 * linux-arm-low.cc (class arm_target): New class.
14 (the_arm_target): New static object.
15 (the_linux_target): Define as pointer to the_arm_target.
16 * linux-bfin-low.cc (class bfin_target): New class.
17 (the_bfin_target): New static object.
18 (the_linux_target): Define as pointer to the_bfin_target.
19 * linux-cris-low.cc (class cris_target): New class.
20 (the_cris_target): New static object.
21 (the_linux_target): Define as pointer to the_cris_target.
22 * linux-crisv32-low.cc (class crisv32_target): New class.
23 (the_crisv32_target): New static object.
24 (the_linux_target): Define as pointer to the_crisv32_target.
25 * linux-ia64-low.cc (class ia64_target): New class.
26 (the_ia64_target): New static object.
27 (the_linux_target): Define as pointer to the_ia64_target.
28 * linux-m32r-low.cc (class m32r_target): New class.
29 (the_m32r_target): New static object.
30 (the_linux_target): Define as pointer to the_m32r_target.
31 * linux-m68k-low.cc (class m68k_target): New class.
32 (the_m68k_target): New static object.
33 (the_linux_target): Define as pointer to the_m68k_target.
34 * linux-mips-low.cc (class mips_target): New class.
35 (the_mips_target): New static object.
36 (the_linux_target): Define as pointer to the_mips_target.
37 * linux-nios2-low.cc (class nios2_target): New class.
38 (the_nios2_target): New static object.
39 (the_linux_target): Define as pointer to the_nios2_target.
40 * linux-ppc-low.cc (class ppc_target): New class.
41 (the_ppc_target): New static object.
42 (the_linux_target): Define as pointer to the_ppc_target.
43 * linux-riscv-low.cc (class riscv_target): New class.
44 (the_riscv_target): New static object.
45 (the_linux_target): Define as pointer to the_riscv_target.
46 * linux-s390-low.cc (class s390_target): New class.
47 (the_s390_target): New static object.
48 (the_linux_target): Define as pointer to the_s390_target.
49 * linux-sh-low.cc (class sh_target): New class.
50 (the_sh_target): New static object.
51 (the_linux_target): Define as pointer to the_sh_target.
52 * linux-sparc-low.cc (class sparc_target): New class.
53 (the_sparc_target): New static object.
54 (the_linux_target): Define as pointer to the_sparc_target.
55 * linux-tic6x-low.cc (class tic6x_target): New class.
56 (the_tic6x_target): New static object.
57 (the_linux_target): Define as pointer to the_tic6x_target.
58 * linux-tile-low.cc (class tile_target): New class.
59 (the_tile_target): New static object.
60 (the_linux_target): Define as pointer to the_tile_target.
61 * linux-xtensa-low.cc (class xtensa_target): New class.
62 (the_xtensa_target): New static object.
63 (the_linux_target): Define as pointer to the_xtensa_target.
65 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
67 Turn some static functions in linux-low.cc into private methods of
70 * linux-low.cc (handle_extended_wait): Turn into ...
71 (linux_process_target::handle_extended_wait): ...this. Call
72 'mourn' on 'this' object instead of 'the_target'.
73 (maybe_move_out_of_jump_pad): Turn into...
74 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
75 (linux_low_filter_event): Turn into...
76 (linux_process_target::filter_event): ...this.
77 (linux_wait_for_event_filtered): Turn into...
78 (linux_process_target::wait_for_event_filtered): ...this.
79 (linux_wait_for_event): Turn into...
80 (linux_process_target::wait_for_event): ...this.
81 (linux_wait_1): Turn into...
82 (linux_process_target::wait_1): ...this.
83 (wait_for_sigstop): Turn into...
84 (linux_process_target::wait_for_sigstop): ...this.
85 (move_out_of_jump_pad_callback): Turn into...
86 (linux_process_target::move_out_of_jump_pad): ...this.
87 (stop_all_lwps): Turn into...
88 (linux_process_target::stop_all_lwps): ...this.
89 (start_step_over): Turn into...
90 (linux_process_target::start_step_over): ...this.
91 (complete_ongoing_step_over): Turn into...
92 (linux_process_target::complete_ongoing_step_over): ...this.
93 (proceed_all_lwps): Turn into...
94 (linux_process_target::proceed_all_lwps): ...this.
95 (unstop_all_lwps): Turn into...
96 (linux_process_target::unstop_all_lwps): ...this.
98 * linux-low.h (class linux_process_target)
99 <handle_extended_wait>
100 <maybe_move_out_of_jump_pad>
102 <wait_for_event_filtered>
106 <move_out_of_jump_pad>
109 <complete_ongoing_step_over>
111 <unstop_all_lwps>: Declare.
113 Update the callers below.
115 * linux-low.cc (linux_process_target::attach): Update.
116 (linux_process_target::stabilize_threads): Ditto.
117 (linux_process_target::wait): Ditto.
119 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
121 * linux-low.h (struct linux_target_ops): Update the comment for
122 'cannot_store_register' to return 0 or 1.
123 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
126 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
128 * config.in: Re-generate.
129 * configure: Re-generate.
131 2020-03-17 Kamil Rytarowski <n54@gmx.com>
133 * regcache.cc (find_register_by_number): Update.
134 * tdesc.cc (init_target_desc): Likewise.
135 * tdesc.h (target_desc::reg_defs): Likewise.
137 2020-03-12 Tom Tromey <tom@tromey.com>
139 * configure: Rebuild.
140 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
141 (WIN32APILIBS): New subst.
142 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
144 (gdbsupport/%.o): Remove target.
145 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
146 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
147 (WIN32APILIBS): New variable.
148 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
149 (gdbreplay$(EXEEXT)): Likewise.
151 2020-03-12 Tom Tromey <tom@tromey.com>
153 * config.in, configure: Rebuild.
154 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
155 * acinclude.m4: Include gettext-sister.m4.
156 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
158 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
159 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
161 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
163 * acinclude.m4: Update path to selftest.m4.
165 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
167 * configure.ac: Don't source bfd/development.sh, move
168 GDB_AC_COMMON higher.
169 * configure: Re-generate.
171 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
173 * configure: Re-generate.
175 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
177 * configure: Re-generate.
179 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
181 * .dir-locals.el: New file.
183 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
185 * .gitattributes: New file.
187 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
189 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
190 reply into an S reply.
191 * server.cc (disable_packet_T): New global.
192 (captured_main): Set new global when appropriate.
193 * server.h (disable_packet_T): Declare.
195 2020-02-21 Tom Tromey <tom@tromey.com>
197 * Makefile.in (mostlyclean): New target.
199 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
201 * target.h (struct process_stratum_target): Remove.
202 (class process_target): Rename to ...
203 (class process_stratum_target): ... this.
204 * linux-low.h (class linux_process_target): Derive from
205 'process_stratum_target'.
206 * linux-low.cc (linux_target_ops): Remove.
207 (initialize_low): Set the_target to the singleton instance of
208 linux_process_target.
209 * lynx-low.h (class lynx_process_target): Derive from
210 'process_stratum_target'.
211 * lynx-low.cc (lynx_target_ops): Remove.
212 (initialize_low): Set the_target to the singleton instance of
214 * nto-low.h (class nto_process_target): Derive from
215 'process_stratum_target'.
216 * nto-low.cc (nto_target_ops): Remove.
217 (initialize_low): Set the_target to the singleton instance of
219 * win32-low.h (class win32_process_target): Derive from
220 'process_stratum_target'.
221 * win32-low.cc (win32_target_ops): Remove.
222 (initialize_low): Set the_target to the singleton instance of
223 win32_process_target.
225 Replace 'the_target->pt' with 'the_target' in the uses below.
227 * hostio.cc (hostio_error)
232 * linux-aarch32-low.cc (arm_breakpoint_at)
233 * linux-aarch64-low.cc (aarch64_breakpoint_at)
234 * linux-arm-low.cc (arm_sigreturn_next_pc)
236 (arm_get_syscall_trapinfo)
237 * linux-cris-low.cc (cris_breakpoint_at)
238 * linux-crisv32-low.cc (cris_breakpoint_at)
239 * linux-low.cc (handle_extended_wait)
242 (linux_process_target::breakpoint_kind_from_pc)
244 * linux-m32r-low.cc (m32r_breakpoint_at)
245 * linux-mips-low.cc (mips_breakpoint_at)
246 * linux-nios2-low.cc (nios2_breakpoint_at)
247 * linux-ppc-low.cc (ppc_breakpoint_at)
248 * linux-s390-low.cc (s390_get_hwcap)
249 * linux-sh-low.cc (sh_breakpoint_at)
250 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
251 (sparc_store_gregset_from_stack)
252 (sparc_breakpoint_at)
253 * linux-tic6x-low.cc (tic6x_breakpoint_at)
254 * linux-tile-low.cc (tile_breakpoint_at)
255 * linux-x86-low.cc (x86_breakpoint_at)
256 * linux-xtensa-low.cc (xtensa_breakpoint_at)
257 * mem-break.cc (bp_size)
259 (insert_memory_breakpoint)
260 (set_raw_breakpoint_at)
261 (delete_raw_breakpoint)
263 (uninsert_raw_breakpoint)
264 (reinsert_raw_breakpoint)
265 (validate_inserted_breakpoint)
266 * regcache.cc (regcache_read_pc)
268 * remote-utils.cc (putpkt_binary_1)
271 (prepare_resume_reply)
272 * server.cc (handle_general_set)
275 (handle_qxfer_exec_file)
276 (handle_qxfer_libraries_svr4)
277 (handle_qxfer_osdata)
278 (handle_qxfer_siginfo)
283 (queue_stop_reply_callback)
285 * target.cc (prepare_to_access_memory)
286 (done_accessing_memory)
287 (read_inferior_memory)
288 (target_write_memory)
289 (target_stop_and_wait)
291 (target_mourn_inferior)
292 (target_continue_no_signal)
294 (target_supports_multi_process)
297 (target_create_inferior)
298 (target_post_create_inferior)
300 (target_supports_fork_events)
301 (target_supports_vfork_events)
302 (target_supports_exec_events)
303 (target_handle_new_gdb_connection)
306 (fetch_inferior_registers)
307 (store_inferior_registers)
309 (target_supports_non_stop)
311 (target_process_qsupported)
312 (target_supports_catch_syscall)
313 (target_get_ipa_tdesc_idx)
314 (target_supports_tracepoints)
315 (target_supports_fast_tracepoints)
316 (target_get_min_fast_tracepoint_insn_len)
317 (target_thread_stopped)
320 (target_stabilize_threads)
321 (target_install_fast_tracepoint_jump_pad)
323 (target_supports_disable_randomization)
324 (target_supports_agent)
325 (target_enable_btrace)
326 (target_disable_btrace)
328 (target_read_btrace_conf)
329 (target_supports_range_stepping)
330 (target_supports_stopped_by_sw_breakpoint)
331 (target_stopped_by_sw_breakpoint)
332 (target_supports_stopped_by_hw_breakpoint)
333 (target_supports_hardware_single_step)
334 (target_stopped_by_hw_breakpoint)
335 (target_breakpoint_kind_from_pc)
336 (target_breakpoint_kind_from_current_state)
337 (target_supports_software_single_step)
338 (target_core_of_thread)
340 (target_thread_handle)
341 * win32-low.cc (do_initial_child_stuff)
343 Rename target op default definitions listed below.
345 * target.cc (process_target::post_create_inferior): Rename as ...
346 (process_stratum_target::post_create_inferior): ... this.
347 (process_target::prepare_to_access_memory): Rename as ...
348 (process_stratum_target::prepare_to_access_memory): ... this.
349 (process_target::done_accessing_memory): Rename as ...
350 (process_stratum_target::done_accessing_memory): ... this.
351 (process_target::look_up_symbols): Rename as ...
352 (process_stratum_target::look_up_symbols): ... this.
353 (process_target::supports_read_auxv): Rename as ...
354 (process_stratum_target::supports_read_auxv): ... this.
355 (process_target::read_auxv): Rename as ...
356 (process_stratum_target::read_auxv): ... this.
357 (process_target::supports_z_point_type): Rename as ...
358 (process_stratum_target::supports_z_point_type): ... this.
359 (process_target::insert_point): Rename as ...
360 (process_stratum_target::insert_point): ... this.
361 (process_target::remove_point): Rename as ...
362 (process_stratum_target::remove_point): ... this.
363 (process_target::stopped_by_sw_breakpoint): Rename as ...
364 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
365 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
366 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
367 (process_target::stopped_by_hw_breakpoint): Rename as ...
368 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
369 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
370 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
371 (process_target::supports_hardware_single_step): Rename as ...
372 (process_stratum_target::supports_hardware_single_step): ... this.
373 (process_target::stopped_by_watchpoint): Rename as ...
374 (process_stratum_target::stopped_by_watchpoint): ... this.
375 (process_target::stopped_data_address): Rename as ...
376 (process_stratum_target::stopped_data_address): ... this.
377 (process_target::supports_read_offsets): Rename as ...
378 (process_stratum_target::supports_read_offsets): ... this.
379 (process_target::read_offsets): Rename as ...
380 (process_stratum_target::read_offsets): ... this.
381 (process_target::supports_get_tls_address): Rename as ...
382 (process_stratum_target::supports_get_tls_address): ... this.
383 (process_target::get_tls_address): Rename as ...
384 (process_stratum_target::get_tls_address): ... this.
385 (process_target::hostio_last_error): Rename as ...
386 (process_stratum_target::hostio_last_error): ... this.
387 (process_target::supports_qxfer_osdata): Rename as ...
388 (process_stratum_target::supports_qxfer_osdata): ... this.
389 (process_target::qxfer_osdata): Rename as ...
390 (process_stratum_target::qxfer_osdata): ... this.
391 (process_target::supports_qxfer_siginfo): Rename as ...
392 (process_stratum_target::supports_qxfer_siginfo): ... this.
393 (process_target::qxfer_siginfo): Rename as ...
394 (process_stratum_target::qxfer_siginfo): ... this.
395 (process_target::supports_non_stop): Rename as ...
396 (process_stratum_target::supports_non_stop): ... this.
397 (process_target::async): Rename as ...
398 (process_stratum_target::async): ... this.
399 (process_target::start_non_stop): Rename as ...
400 (process_stratum_target::start_non_stop): ... this.
401 (process_target::supports_multi_process): Rename as ...
402 (process_stratum_target::supports_multi_process): ... this.
403 (process_target::supports_fork_events): Rename as ...
404 (process_stratum_target::supports_fork_events): ... this.
405 (process_target::supports_vfork_events): Rename as ...
406 (process_stratum_target::supports_vfork_events): ... this.
407 (process_target::supports_exec_events): Rename as ...
408 (process_stratum_target::supports_exec_events): ... this.
409 (process_target::handle_new_gdb_connection): Rename as ...
410 (process_stratum_target::handle_new_gdb_connection): ... this.
411 (process_target::handle_monitor_command): Rename as ...
412 (process_stratum_target::handle_monitor_command): ... this.
413 (process_target::core_of_thread): Rename as ...
414 (process_stratum_target::core_of_thread): ... this.
415 (process_target::supports_read_loadmap): Rename as ...
416 (process_stratum_target::supports_read_loadmap): ... this.
417 (process_target::read_loadmap): Rename as ...
418 (process_stratum_target::read_loadmap): ... this.
419 (process_target::process_qsupported): Rename as ...
420 (process_stratum_target::process_qsupported): ... this.
421 (process_target::supports_tracepoints): Rename as ...
422 (process_stratum_target::supports_tracepoints): ... this.
423 (process_target::read_pc): Rename as ...
424 (process_stratum_target::read_pc): ... this.
425 (process_target::write_pc): Rename as ...
426 (process_stratum_target::write_pc): ... this.
427 (process_target::supports_thread_stopped): Rename as ...
428 (process_stratum_target::supports_thread_stopped): ... this.
429 (process_target::thread_stopped): Rename as ...
430 (process_stratum_target::thread_stopped): ... this.
431 (process_target::supports_get_tib_address): Rename as ...
432 (process_stratum_target::supports_get_tib_address): ... this.
433 (process_target::get_tib_address): Rename as ...
434 (process_stratum_target::get_tib_address): ... this.
435 (process_target::pause_all): Rename as ...
436 (process_stratum_target::pause_all): ... this.
437 (process_target::unpause_all): Rename as ...
438 (process_stratum_target::unpause_all): ... this.
439 (process_target::stabilize_threads): Rename as ...
440 (process_stratum_target::stabilize_threads): ... this.
441 (process_target::supports_fast_tracepoints): Rename as ...
442 (process_stratum_target::supports_fast_tracepoints): ... this.
443 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
444 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
445 (process_target::emit_ops): Rename as ...
446 (process_stratum_target::emit_ops): ... this.
447 (process_target::supports_disable_randomization): Rename as ...
448 (process_stratum_target::supports_disable_randomization): ... this.
449 (process_target::supports_qxfer_libraries_svr4): Rename as ...
450 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
451 (process_target::qxfer_libraries_svr4): Rename as ...
452 (process_stratum_target::qxfer_libraries_svr4): ... this.
453 (process_target::supports_agent): Rename as ...
454 (process_stratum_target::supports_agent): ... this.
455 (process_target::enable_btrace): Rename as ...
456 (process_stratum_target::enable_btrace): ... this.
457 (process_target::disable_btrace): Rename as ...
458 (process_stratum_target::disable_btrace): ... this.
459 (process_target::read_btrace): Rename as ...
460 (process_stratum_target::read_btrace): ... this.
461 (process_target::read_btrace_conf): Rename as ...
462 (process_stratum_target::read_btrace_conf): ... this.
463 (process_target::supports_range_stepping): Rename as ...
464 (process_stratum_target::supports_range_stepping): ... this.
465 (process_target::supports_pid_to_exec_file): Rename as ...
466 (process_stratum_target::supports_pid_to_exec_file): ... this.
467 (process_target::pid_to_exec_file): Rename as ...
468 (process_stratum_target::pid_to_exec_file): ... this.
469 (process_target::supports_multifs): Rename as ...
470 (process_stratum_target::supports_multifs): ... this.
471 (process_target::multifs_open): Rename as ...
472 (process_stratum_target::multifs_open): ... this.
473 (process_target::multifs_unlink): Rename as ...
474 (process_stratum_target::multifs_unlink): ... this.
475 (process_target::multifs_readlink): Rename as ...
476 (process_stratum_target::multifs_readlink): ... this.
477 (process_target::breakpoint_kind_from_pc): Rename as ...
478 (process_stratum_target::breakpoint_kind_from_pc): ... this.
479 (process_target::breakpoint_kind_from_current_state): Rename as ...
480 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
481 (process_target::thread_name): Rename as ...
482 (process_stratum_target::thread_name): ... this.
483 (process_target::thread_handle): Rename as ...
484 (process_stratum_target::thread_handle): ... this.
485 (process_target::supports_software_single_step): Rename as ...
486 (process_stratum_target::supports_software_single_step): ... this.
487 (process_target::supports_catch_syscall): Rename as ...
488 (process_stratum_target::supports_catch_syscall): ... this.
489 (process_target::get_ipa_tdesc_idx): Rename as ...
490 (process_stratum_target::get_ipa_tdesc_idx): ... this.
492 2020-02-20 Pedro Alves <palves@redhat.com>
494 * target.cc (set_target_ops): Simply copy the given target pointer
495 instead of creating a copy of the pointed object.
497 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
499 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
502 * target.h (struct process_stratum_target): Remove the target op.
503 (class process_target): Add the target op.
504 (target_get_ipa_tdesc_idx): Update the macro.
505 * target.cc (process_target::get_ipa_tdesc_idx): Define.
507 Update the derived classes and callers below.
509 * linux-low.cc (linux_target_ops): Update.
510 (linux_get_ipa_tdesc_idx): Turn into ...
511 (linux_process_target::get_ipa_tdesc_idx): ... this.
512 * linux-low.h (class linux_process_target): Update.
513 * lynx-low.cc (lynx_target_ops): Update.
514 * nto-low.cc (nto_target_ops): Update.
515 * win32-low.cc (win32_target_ops): Update.
517 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
519 Turn process_stratum_target's supports_catch_syscall op into a
520 method of process_target.
522 * target.h (struct process_stratum_target): Remove the target op.
523 (class process_target): Add the target op.
524 (target_supports_catch_syscall): Update the macro.
525 * target.cc (process_target::supports_catch_syscall): Define.
527 Update the derived classes and callers below.
529 * linux-low.cc (linux_target_ops): Update.
530 (linux_supports_catch_syscall): Turn into ...
531 (linux_process_target::supports_catch_syscall): ... this.
532 * linux-low.h (class linux_process_target): Update.
533 * lynx-low.cc (lynx_target_ops): Update.
534 * nto-low.cc (nto_target_ops): Update.
535 * win32-low.cc (win32_target_ops): Update.
537 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
539 Turn process_stratum_target's supports_software_single_step op
540 into a method of process_target.
542 * target.h (struct process_stratum_target): Remove the target op.
543 (class process_target): Add the target op.
544 (target_supports_software_single_step): Update the macro.
545 * target.cc (process_target::supports_software_single_step): Define.
547 Update the derived classes and callers below.
549 * linux-low.cc (linux_target_ops): Update.
550 (linux_supports_software_single_step): Turn into ...
551 (linux_process_target::supports_software_single_step): ... this.
552 * linux-low.h (class linux_process_target): Update.
553 * lynx-low.cc (lynx_target_ops): Update.
554 * nto-low.cc (nto_target_ops): Update.
555 * win32-low.cc (win32_target_ops): Update.
557 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
559 Turn process_stratum_target's thread_name and thread_handle ops
560 into methods of process_target.
562 * target.h (struct process_stratum_target): Remove the target ops.
563 (class process_target): Add the target ops.
564 (target_thread_name): Update the macro.
565 (target_thread_handle): Update the macro.
566 * target.cc (process_target::thread_name): Define.
567 (process_target::thread_handle): Define.
569 Update the derived classes and callers below.
571 * linux-low.cc (linux_target_ops): Update.
572 (linux_process_target::thread_name): Define.
573 (linux_process_target::thread_handle): Define.
574 * linux-low.h (class linux_process_target): Update.
575 * lynx-low.cc (lynx_target_ops): Update.
576 * nto-low.cc (nto_target_ops): Update.
577 * win32-low.cc (win32_target_ops): Update.
579 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
581 Turn process_stratum_target's breakpoint_kind_from_pc,
582 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
583 ops into methods of process_target.
585 * target.h (struct process_stratum_target): Remove the target op.
586 (class process_target): Add the target op.
587 (target_breakpoint_kind_from_pc): Update the macro.
588 (target_breakpoint_kind_from_current_state): Update the macro.
589 (default_breakpoint_kind_from_pc): Remove declaration.
590 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
591 (process_target::breakpoint_kind_from_pc): ... this.
592 (process_target::breakpoint_kind_from_current_state): Define.
594 Update the derived classes and callers below.
596 * mem-break.cc (bp_size): Update.
598 * linux-low.cc (linux_target_ops): Update.
599 (linux_wait_1): Update.
600 (linux_breakpoint_kind_from_pc): Turn into ...
601 (linux_process_target::breakpoint_kind_from_pc): ... this.
602 (linux_sw_breakpoint_from_kind): Turn into ...
603 (linux_process_target::sw_breakpoint_from_kind): ... this.
604 (linux_breakpoint_kind_from_current_state): Turn into ...
605 (linux_process_target::breakpoint_kind_from_current_state): ... this.
606 * linux-low.h (class linux_process_target): Update.
607 * lynx-low.cc (lynx_target_ops): Update.
608 (lynx_process_target::sw_breakpoint_from_kind): Define.
609 * lynx-low.h (class lynx_process_target): Update.
610 * nto-low.cc (nto_target_ops): Update.
611 (nto_sw_breakpoint_from_kind): Turn into ...
612 (nto_process_target::sw_breakpoint_from_kind): ... this.
613 * nto-low.h (class nto_process_target): Update.
614 * win32-low.cc (win32_target_ops): Update.
615 (win32_sw_breakpoint_from_kind): Turn into ...
616 (win32_process_target::sw_breakpoint_from_kind): ... this.
617 * win32-low.h (class win32_process_target): Update.
619 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
621 Turn process_stratum_target's multifs_open, multifs_readlink,
622 multifs_unlink ops into methods of process_target.
624 * target.h (struct process_stratum_target): Remove the target ops.
625 (class process_target): Add the target ops. Also add
627 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
629 (process_target::supports_multifs): Define.
630 (process_target::multifs_open): Define.
631 (process_target::multifs_readlink): Define.
632 (process_target::multifs_unlink): Define.
634 Update the derived classes and callers below.
636 * hostio.cc (handle_setfs): Update.
637 (handle_open): Update.
638 (handle_unlink): Update.
639 (handle_readlink): Update.
640 * linux-low.cc (linux_target_ops): Update.
641 (linux_process_target::supports_multifs): Define.
642 (linux_process_target::multifs_open): Define.
643 (linux_process_target::multifs_readlink): Define.
644 (linux_process_target::multifs_unlink): Define.
645 * linux-low.h (class linux_process_target): Update.
646 * lynx-low.cc (lynx_target_ops): Update.
647 * nto-low.cc (nto_target_ops): Update.
648 * win32-low.cc (win32_target_ops): Update.
650 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
652 Turn process_stratum_target's pid_to_exec_file op into a method
655 * target.h (struct process_stratum_target): Remove the target op.
656 (class process_target): Add the target op. Also add
657 'supports_pid_to_exec_file'.
658 * target.cc (process_target::pid_to_exec_file): Define.
659 (process_target::supports_pid_to_exec_file): Define.
661 Update the derived classes and callers below.
663 * server.cc (handle_qxfer_exec_file): Update.
664 (handle_query): Update.
665 * linux-low.cc (linux_target_ops): Update.
666 (linux_process_target::supports_pid_to_exec_file): Define.
667 (linux_process_target::pid_to_exec_file): Define.
668 * linux-low.h (class linux_process_target): Update.
669 * lynx-low.cc (lynx_target_ops): Update.
670 * nto-low.cc (nto_target_ops): Update.
671 * win32-low.cc (win32_target_ops): Update.
673 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
675 Turn process_stratum_target's supports_range_stepping op into a
676 method of process_target.
678 * target.h (struct process_stratum_target): Remove the target op.
679 (class process_target): Add the target op.
680 (target_supports_range_stepping): Update the macro.
681 * target.cc (process_target::supports_range_stepping): Define.
683 Update the derived classes and callers below.
685 * linux-low.cc (linux_target_ops): Update.
686 (linux_supports_range_stepping): Turn into ...
687 (linux_process_target::supports_range_stepping): ... this.
688 * linux-low.h (class linux_process_target): Update.
689 * lynx-low.cc (lynx_target_ops): Update.
690 * nto-low.cc (nto_target_ops): Update.
691 * win32-low.cc (win32_target_ops): Update.
693 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
695 Turn process_stratum_target's btrace-related ops (enable_btrace,
696 disable_btrace, read_btrace, read_btrace_conf) into methods of
699 * target.h (struct process_stratum_target): Remove the target ops.
700 (class process_target): Add the target ops.
701 (target_enable_btrace): Update.
702 (target_disable_btrace): Update.
703 (target_read_btrace): Update.
704 (target_read_btrace_conf): Update.
705 * target.cc (process_target::enable_btrace): Define.
706 (process_target::disable_btrace): Define.
707 (process_target::read_btrace): Define.
708 (process_target::read_btrace_conf): Define.
710 Update the derived classes and callers below.
712 * linux-low.cc (linux_target_ops): Update.
713 (linux_process_target:enable_btrace): Define as a wrapper around
715 (linux_low_disable_btrace): Turn into ...
716 (linux_process_target::disable_btrace): ... this.
717 (linux_low_read_btrace): Turn into ...
718 (linux_process_target::read_btrace): ... this.
719 (linux_low_btrace_conf): Turn into ...
720 (linux_process_target::read_btrace_conf): ... this.
721 * linux-low.h (class linux_process_target): Update.
722 * lynx-low.cc (lynx_target_ops): Update.
723 * nto-low.cc (nto_target_ops): Update.
724 * win32-low.cc (win32_target_ops): Update.
726 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
728 Turn process_stratum_target's supports_agent op into a method of
731 * target.h (struct process_stratum_target): Remove the target op.
732 (class process_target): Add the target op.
733 (target_supports_agent): Update the macro.
734 * target.cc (process_target::supports_agent): Define.
736 Update the derived classes and callers below.
738 * linux-low.cc (linux_target_ops): Update.
739 (linux_supports_agent): Turn into ...
740 (linux_process_target::supports_agent): ... this.
741 * linux-low.h (class linux_process_target): Update.
742 * lynx-low.cc (lynx_target_ops): Update.
743 * nto-low.cc (nto_target_ops): Update.
744 * win32-low.cc (win32_target_ops): Update.
746 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
748 Turn process_stratum_target's qxfer_libraries_svr4 op into a
749 method of process_target.
751 * target.h (struct process_stratum_target): Remove the target op.
752 (class process_target): Add the target op. Also add
753 'supports_qxfer_libraries_svr4'.
754 * target.cc (process_target::qxfer_libraries_svr4): Define.
755 (process_target::supports_qxfer_libraries_svr4): Define.
757 Update the derived classes and callers below.
759 * server.cc (handle_qxfer_libraries_svr4): Update.
760 (handle_query): Update.
761 * linux-low.cc (linux_target_ops): Update.
762 (linux_process_target::supports_qxfer_libraries_svr4): Define.
763 (linux_qxfer_libraries_svr4): Turn into ...
764 (linux_process_target::qxfer_libraries_svr4): ... this.
765 * linux-low.h (class linux_process_target): Update.
766 * lynx-low.cc (lynx_target_ops): Update.
767 * nto-low.cc (nto_target_ops): Update.
768 * win32-low.cc (win32_target_ops): Update.
770 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
772 Turn process_stratum_target's supports_disable_randomization op
773 into a method of process_target.
775 * target.h (struct process_stratum_target): Remove the target op.
776 (class process_target): Add the target op.
777 (target_supports_disable_randomization): Update the macro.
778 * target.cc (process_target::supports_disable_randomization): Define.
780 Update the derived classes and callers below.
782 * linux-low.cc (linux_target_ops): Update.
783 (linux_supports_disable_randomization): Turn into ...
784 (linux_process_target::supports_disable_randomization): ... this.
785 * linux-low.h (class linux_process_target): Update.
786 * lynx-low.cc (lynx_target_ops): Update.
787 * nto-low.cc (nto_target_ops): Update.
788 * win32-low.cc (win32_target_ops): Update.
790 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
792 Turn process_stratum_target's emit_ops op into a method of
795 * target.h (struct process_stratum_target): Remove the target op.
796 (class process_target): Add the target op.
797 (target_emit_ops): Update the macro.
798 * target.cc (process_target::emit_ops): Define.
800 Update the derived classes and callers below.
802 * linux-low.cc (linux_target_ops): Update.
803 (linux_emit_ops): Turn into ...
804 (linux_process_target::emit_ops): ... this.
805 * linux-low.h (class linux_process_target): Update.
806 * lynx-low.cc (lynx_target_ops): Update.
807 * nto-low.cc (nto_target_ops): Update.
808 * win32-low.cc (win32_target_ops): Update.
810 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
812 Turn process_stratum_target's install_fast_tracepoint_jump_pad
813 and get_min_fast_tracepoint_insn_len ops into methods of
816 * target.h (struct process_stratum_target): Remove the target ops.
817 (class process_target): Add the target ops. Also add
818 'supports_fast_tracepoints'.
819 (target_supports_fast_tracepoints): Update the macro.
820 (target_get_min_fast_tracepoint_insn_len): Update the macro.
821 (install_fast_tracepoint_jump_pad): Update and rename the macro
823 (target_install_fast_tracepoint_jump_pad): ... this.
824 * target.cc (process_target::supports_fast_tracepoints): Define.
825 (process_target::install_fast_tracepoint_jump_pad): Define.
826 (process_target::get_min_fast_tracepoint_insn_len): Define.
828 Update the derived classes and callers below.
830 * tracepoint.cc (install_fast_tracepoint): Update.
831 * linux-low.cc (linux_target_ops): Update.
832 (linux_process_target::supports_fast_tracepoints): Define.
833 (linux_install_fast_tracepoint_jump_pad): Turn into ...
834 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
835 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
836 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
837 * linux-low.h (class linux_process_target): Update.
838 * lynx-low.cc (lynx_target_ops): Update.
839 * nto-low.cc (nto_target_ops): Update.
840 * win32-low.cc (win32_target_ops): Update.
842 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
844 Turn process_stratum_target's stabilize_threads op into a
845 method of process_target.
847 * target.h (struct process_stratum_target): Remove the target op.
848 (class process_target): Add the target op.
849 (target_stabilize_threads): Update the macro.
850 * target.cc (process_target::stabilize_threads): Define.
852 Update the derived classes and callers below.
854 * server.cc (handle_status): Update.
855 * tracepoint.cc (cmd_qtdp): Update.
856 (cmd_qtstart): Update.
857 * linux-low.cc (linux_target_ops): Update.
858 (linux_stabilize_threads): Turn into ...
859 (linux_process_target::stabilize_threads): ... this.
860 (linux_wait_1): Update.
861 * linux-low.h (class linux_process_target): Update.
862 * lynx-low.cc (lynx_target_ops): Update.
863 * nto-low.cc (nto_target_ops): Update.
864 * win32-low.cc (win32_target_ops): Update.
866 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
868 Turn process_stratum_target's pause_all and unpause_all ops
869 into methods of process_target.
871 * target.h (struct process_stratum_target): Remove the target ops.
872 (class process_target): Add the target ops.
873 (pause_all): Update the macro and rename to...
874 (target_pause_all): ... this.
875 (unpause_all): Update the macro and rename to...
876 (target_unpause_all): ... this.
877 * target.cc (process_target::pause_all): Define.
878 (process_target::unpause_all): Define.
880 Update the derived classes and callers below.
882 * server.cc (handle_status): Update.
883 * tracepoint.cc (clear_installed_tracepoints): Update.
885 (cmd_qtstart): Update.
886 (stop_tracing): Update.
887 (cmd_qtstatus): Update.
888 (upload_fast_traceframes): Update.
889 (run_inferior_command): Update.
890 * linux-low.cc (linux_target_ops): Update.
891 (linux_pause_all): Turn into ...
892 (linux_process_target::pause_all): ... this.
893 (linux_unpause_all): Turn into ...
894 (linux_process_target::unpause_all): ... this.
895 (linux_process_target::prepare_to_access_memory): Update.
896 (linux_process_target::done_accessing_memory): Update.
897 * linux-low.h (class linux_process_target): Update.
898 * lynx-low.cc (lynx_target_ops): Update.
899 * nto-low.cc (nto_target_ops): Update.
900 * win32-low.cc (win32_target_ops): Update.
902 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
904 Turn process_stratum_target's get_tib_address op into a method of
907 * target.h (struct process_stratum_target): Remove the target op.
908 (class process_target): Add the target op. Also add
909 'supports_get_tib_address'.
910 * target.cc (process_target::get_tib_address): Define.
911 (process_target::supports_get_tib_address): Define.
913 Update the derived classes and callers below.
915 * server.cc (handle_query): Update.
916 * linux-low.cc (win32_target_ops): Update.
917 * lynx-low.cc (lynx_target_ops): Update.
918 * nto-low.cc (nto_target_ops): Update.
919 * win32-low.cc (win32_target_ops): Update.
920 (win32_process_target::supports_get_tib_address): Define.
921 (win32_get_tib_address): Turn into ...
922 (win32_process_target::get_tib_address): ... this.
923 * win32-low.h (class win32_process_target): Update.
925 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
927 Turn process_stratum_target's thread_stopped op into a method of
930 * target.h (struct process_stratum_target): Remove the target op.
931 (class process_target): Add the target op. Also add
932 'supports_thread_stopped'.
933 (target_thread_stopped): Update the macro.
934 * target.cc (process_target::thread_stopped): Define.
935 (process_target::supports_thread_stopped): Define.
936 (prepare_to_access_memory): Update.
938 Update the derived classes and callers below.
940 * server.cc (queue_stop_reply_callback): Update.
941 * linux-low.cc (linux_target_ops): Update.
942 (linux_process_target::supports_thread_stopped): Define.
943 (linux_thread_stopped): Turn into ...
944 (linux_process_target::thread_stopped): ... this.
945 * linux-low.h (class linux_process_target): Update.
946 * lynx-low.cc (lynx_target_ops): Update.
947 * nto-low.cc (nto_target_ops): Update.
948 * win32-low.cc (win32_target_ops): Update.
950 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
952 Turn process_stratum_target's read_pc and write_pc ops into
953 methods of process_target.
955 * target.h (struct process_stratum_target): Remove the target ops.
956 (class process_target): Add the target ops.
957 * target.cc (process_target::read_pc): Define.
958 (process_target::write_pc): Define.
960 Update the derived classes and callers below.
962 * regcache.cc (regcache_read_pc): Update.
963 (regcache_write_pc): Update.
964 * linux-low.cc (linux_target_ops): Update.
965 (linux_read_pc): Turn into ...
966 (linux_process_target::read_pc): ... this.
967 (linux_write_pc): Turn into ...
968 (linux_process_target::write_pc): ... 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 * win32-low.cc (win32_target_ops): Update.
974 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
976 Turn process_stratum_target's supports_tracepoints op into a
977 method of process_target.
979 * target.h (struct process_stratum_target): Remove the target op.
980 (class process_target): Add the target op.
981 (target_supports_tracepoints): Update the macro.
982 * target.cc (process_target::supports_tracepoints): Define.
984 Update the derived classes and callers below.
986 * linux-low.cc (linux_target_ops): Update.
987 (linux_supports_tracepoints): Turn into ...
988 (linux_process_target::supports_tracepoints): ... this.
989 * linux-low.h (class linux_process_target): Update.
990 * lynx-low.cc (lynx_target_ops): Update.
991 * nto-low.cc (nto_target_ops): Update.
992 * win32-low.cc (win32_target_ops): Update.
994 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
996 Turn process_stratum_target's process_qsupported op into a method
999 * target.h (struct process_stratum_target): Remove the target op.
1000 (class process_target): Add the target op.
1001 (target_process_qsupported): Update the macro.
1002 * target.cc (process_target::process_qsupported): Define.
1004 Update the derived classes and callers below.
1006 * linux-low.cc (linux_target_ops): Update.
1007 (linux_process_qsupported): Turn into ...
1008 (linux_process_target::process_qsupported): ... this.
1009 * linux-low.h (class linux_process_target): Update.
1010 * lynx-low.cc (lynx_target_ops): Update.
1011 * nto-low.cc (nto_target_ops): Update.
1012 * win32-low.cc (win32_target_ops): Update.
1014 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1016 Turn process_stratum_target's read_loadmap op into a method of
1019 * target.h (struct process_stratum_target): Remove the target op.
1020 (class process_target): Add the target op. Also add
1021 'supports_read_loadmap'.
1022 * target.cc (process_target::read_loadmap): Define.
1023 (process_target::supports_read_loadmap): Define.
1025 Update the derived classes and callers below.
1027 * server.cc (handle_qxfer_fdpic): Update.
1028 (handle_query): Update.
1029 * linux-low.cc (linux_target_ops): Update.
1030 (linux_process_target::supports_read_loadmap): Define.
1031 (linux_read_loadmap): Turn into ...
1032 (linux_process_target::read_loadmap): ... this.
1033 * linux-low.h (class linux_process_target): Update.
1034 * lynx-low.cc (lynx_target_ops): Update.
1035 * nto-low.cc (nto_target_ops): Update.
1036 * win32-low.cc (win32_target_ops): Update.
1038 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1040 Turn process_stratum_target's core_of_thread op into a method of
1043 * target.h (struct process_stratum_target): Remove the target op.
1044 (class process_target): Add the target op.
1045 (target_core_of_thread): Update the macro.
1046 * target.cc (process_target::core_of_thread): Define.
1048 Update the derived classes and callers below.
1050 * linux-low.cc (linux_target_ops): Update.
1051 (linux_process_target::core_of_thread): Define.
1052 * linux-low.h (class linux_process_target): Update.
1053 * lynx-low.cc (lynx_target_ops): Update.
1054 * nto-low.cc (nto_target_ops): Update.
1055 * win32-low.cc (win32_target_ops): Update.
1057 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1059 Turn process_stratum_target's handle_monitor_command op into a
1060 method of process_target.
1062 * target.h (struct process_stratum_target): Remove the target op.
1063 (class process_target): Add the target op.
1064 (target_handle_monitor_command): Update the macro.
1065 * target.cc (process_target::handle_monitor_command): Define.
1067 Update the derived classes and callers below.
1069 * server.cc (handle_query): Update.
1070 * linux-low.cc (linux_target_ops): Update.
1071 (linux_process_target::handle_monitor_command): Define.
1072 * linux-low.h (class linux_process_target): Update.
1073 * lynx-low.cc (lynx_target_ops): Update.
1074 * nto-low.cc (nto_target_ops): Update.
1075 * win32-low.cc (win32_target_ops): Update.
1077 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1079 Turn process_stratum_target's handle_new_gdb_connection op into a
1080 method of process_target.
1082 * target.h (struct process_stratum_target): Remove the target op.
1083 (class process_target): Add the target op.
1084 (target_handle_new_gdb_connection): Update the macro.
1085 * target.cc (process_target::handle_new_gdb_connection): Define.
1087 Update the derived classes and callers below.
1089 * linux-low.cc (linux_target_ops): Update.
1090 (linux_handle_new_gdb_connection): Turn into ...
1091 (linux_process_target::handle_new_gdb_connection): ... this.
1092 * linux-low.h (class linux_process_target): Update.
1093 * lynx-low.cc (lynx_target_ops): Update.
1094 * nto-low.cc (nto_target_ops): Update.
1095 * win32-low.cc (win32_target_ops): Update.
1097 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1099 Turn process_stratum_target's supports_fork_events,
1100 supports_vfork_events, and supports_exec_events ops into methods
1103 * target.h (struct process_stratum_target): Remove the target ops.
1104 (class process_target): Add the target ops.
1105 (target_supports_fork_events): Update the macro.
1106 (target_supports_vfork_events): Update the macro.
1107 (target_supports_exec_events): Update the macro.
1108 * target.cc (process_target::supports_fork_events): Define.
1109 (process_target::supports_vfork_events): Define.
1110 (process_target::supports_exec_events): Define.
1112 Update the derived classes and callers below.
1114 * linux-low.cc (linux_target_ops): Update.
1115 (linux_supports_fork_events): Turn into ...
1116 (linux_process_target::supports_fork_events): ... this.
1117 (linux_supports_vfork_events): Turn into ...
1118 (linux_process_target::supports_vfork_events): ... this.
1119 (linux_supports_exec_events): Turn into ...
1120 (linux_process_target::supports_exec_events): ... this.
1121 * linux-low.h (class linux_process_target): Update.
1122 * lynx-low.cc (lynx_target_ops): Update.
1123 * nto-low.cc (nto_target_ops): Update.
1124 * win32-low.cc (win32_target_ops): Update.
1126 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1128 Turn process_stratum_target's supports_multi_process op into a
1129 method of process_target.
1131 * target.h (struct process_stratum_target): Remove the target op.
1132 (class process_target): Add the target op.
1133 * target.cc (process_target::supports_multi_process): Define.
1134 (target_supports_multi_process): Update.
1136 Update the derived classes and callers below.
1138 * linux-low.cc (linux_target_ops): Update.
1139 (linux_supports_multi_process): Turn into ...
1140 (linux_process_target::supports_multi_process): ... this.
1141 * linux-low.h (class linux_process_target): Update.
1142 * lynx-low.cc (lynx_target_ops): Update.
1143 * nto-low.cc (nto_target_ops): Update.
1144 * win32-low.cc (win32_target_ops): Update.
1146 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1148 Turn process_stratum_target's supports_non_stop, async, and
1149 start_non_stop ops into methods of process_target.
1151 * target.h (struct process_stratum_target): Remove the target ops.
1152 (class process_target): Add the target ops.
1153 (target_supports_non_stop): Update the macro.
1154 (target_async): Update the macro.
1155 (start_non_stop): Remove declaration.
1156 * target.cc (process_target::supports_non_stop): Define.
1157 (process_target::async): Define.
1158 (process_target::start_non_stop): Define.
1159 (start_non_stop): Remove.
1161 Update the derived classes and callers below.
1163 * server.cc (handle_qxfer_siginfo): Update.
1164 (handle_query): Update.
1165 * linux-low.cc (linux_target_ops): Update.
1166 (linux_supports_non_stop): Turn into ...
1167 (linux_process_target::supports_non_stop): ... this.
1168 (linux_async): Turn into ...
1169 (linux_process_target::async): ... this.
1170 (linux_start_non_stop): Turn into ...
1171 (linux_process_target::start_non_stop): ... this.
1172 * linux-low.h (class linux_process_target): Update.
1173 * lynx-low.cc (lynx_target_ops): Update.
1174 * nto-low.cc (nto_target_ops): Update.
1175 (nto_supports_non_stop): Remove; rely on the default behavior
1177 * win32-low.cc (win32_target_ops): Update.
1179 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1181 Turn process_stratum_target's qxfer_siginfo op into a method of
1184 * target.h (struct process_stratum_target): Remove the target op.
1185 (class process_target): Add the target op. Also add
1186 'supports_qxfer_siginfo'.
1187 * target.cc (process_target::qxfer_siginfo): Define.
1188 (process_target::supports_qxfer_siginfo): Define.
1190 Update the derived classes and callers below.
1192 * server.cc (handle_qxfer_siginfo): Update.
1193 (handle_query): Update.
1194 * linux-low.cc (linux_target_ops): Update.
1195 (linux_process_target::supports_qxfer_siginfo): Define.
1196 (linux_xfer_siginfo): Turn into ...
1197 (linux_process_target::qxfer_siginfo): ... this.
1198 * linux-low.h (class linux_process_target): Update.
1199 * lynx-low.cc (lynx_target_ops): Update.
1200 * nto-low.cc (nto_target_ops): Update.
1201 * win32-low.cc (win32_target_ops): Update.
1203 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1205 Turn process_stratum_target's qxfer_osdata op into a method of
1208 * target.h (struct process_stratum_target): Remove the target op.
1209 (class process_target): Add the target op. Also add
1210 'supports_qxfer_osdata'.
1211 * target.cc (process_target::qxfer_osdata): Define.
1212 (process_target::supports_qxfer_osdata): Define.
1214 Update the derived classes and callers below.
1216 * server.cc (handle_qxfer_osdata): Update.
1217 (handle_query): Update.
1218 * linux-low.cc (linux_target_ops): Update.
1219 (linux_process_target::supports_qxfer_osdata): Define.
1220 (linux_qxfer_osdata): Turn into ...
1221 (linux_process_target::qxfer_osdata): ... this.
1222 * linux-low.h (class linux_process_target): Update.
1223 * lynx-low.cc (lynx_target_ops): Update.
1224 * nto-low.cc (nto_target_ops): Update.
1225 * win32-low.cc (win32_target_ops): Update.
1227 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1229 Turn process_stratum_target's hostio_last_error op into a
1230 method of process_target.
1232 * target.h (struct process_stratum_target): Remove the target op.
1233 (class process_target): Add the target op.
1234 * target.cc: Add "hostio.h" to includes.
1235 (process_target::hostio_last_error): Define.
1237 Update the derived classes and callers below.
1239 * hostio.cc (hostio_error): Update.
1240 * linux-low.cc: Remove "hostio.h" from includes.
1241 (linux_target_ops): Update.
1242 * lynx-low.cc (lynx_target_ops): Update.
1243 * nto-low.cc (nto_target_ops): Update.
1244 * win32-low.h (class win32_process_target): Update.
1245 * win32-low.cc (win32_target_ops): Update.
1246 (wince_hostio_last_error): Turn into ...
1247 (win32_process_target::hostio_last_error): ... this.
1249 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1251 Turn process_stratum_target's get_tls_address op into a method of
1254 * target.h (struct process_stratum_target): Remove the target op.
1255 (class process_target): Add the target op. Also add
1256 'supports_get_tls_address'.
1257 * target.cc (process_target::get_tls_address): Define.
1258 (process_target::supports_get_tls_address): Define.
1260 Update the derived classes and callers below.
1262 * server.cc (handle_query): Update.
1263 * linux-low.cc (linux_target_ops): Update.
1264 (linux_process_target::supports_get_tls_address): Define.
1265 (linux_process_target::get_tls_address): Define.
1266 * linux-low.h (class linux_process_target): Update.
1267 * lynx-low.cc (lynx_target_ops): Update.
1268 * nto-low.cc (nto_target_ops): Update.
1269 * win32-low.cc (win32_target_ops): Update.
1271 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1273 Turn process_stratum_target's read_offsets op into a method of
1276 * target.h (struct process_stratum_target): Remove the target op.
1277 (class process_target): Add the target op. Also add
1278 'supports_read_offsets'.
1279 * target.cc (process_target::read_offsets): Define.
1280 (process_target::supports_read_offsets): Define.
1282 Update the derived classes and callers below.
1284 * server.cc (handle_query): Update.
1285 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1286 (linux_target_ops): Update.
1287 (linux_process_target::supports_read_offsets): Define.
1288 (linux_read_offsets): Turn into ...
1289 (linux_process_target::read_offsets): ... this.
1290 * linux-low.h (class linux_process_target): Update.
1291 * lynx-low.cc (lynx_target_ops): Update.
1292 * nto-low.cc (nto_target_ops): Update.
1293 * win32-low.cc (win32_target_ops): Update.
1295 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1297 Turn process_stratum_target's stopped_by_watchpoint and
1298 stopped_data_address ops into methods of process_target.
1300 * target.h (struct process_stratum_target): Remove the target ops.
1301 (class process_target): Add the target ops.
1302 * target.cc (process_target::stopped_by_watchpoint): Define.
1303 (process_target::stopped_data_address): Define.
1305 Update the derived classes and callers below.
1307 * remote-utils.cc (prepare_resume_reply): Update.
1308 * linux-low.cc (linux_target_ops): Update.
1309 (linux_stopped_by_watchpoint): Turn into ...
1310 (linux_process_target::stopped_by_watchpoint): ... this.
1311 (linux_stopped_data_address): Turn into ...
1312 (linux_process_target::stopped_data_address): ... this.
1313 * linux-low.h (class linux_process_target): Update.
1314 * lynx-low.cc (lynx_target_ops): Update.
1315 * nto-low.cc (nto_target_ops): Update.
1316 (nto_stopped_by_watchpoint): Turn into ...
1317 (nto_process_target::stopped_by_watchpoint): ... this.
1318 (nto_stopped_data_address): Turn into ...
1319 (nto_process_target::stopped_data_address): ... this.
1320 * nto-low.h (class nto_process_target): Update.
1321 * win32-low.cc (win32_target_ops): Update.
1322 (win32_stopped_by_watchpoint): Turn into ...
1323 (win32_process_target::stopped_by_watchpoint): ... this.
1324 (win32_stopped_data_address): Turn into ...
1325 (win32_process_target::stopped_data_address): ... this.
1326 * win32-low.h (class win32_process_target): Update.
1328 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1330 Turn process_stratum_target's supports_hardware_single_step op into
1331 a method of process_target.
1333 * target.h (struct process_stratum_target): Remove the target op.
1334 (class process_target): Add the target op.
1335 (target_supports_hardware_single_step): Update the macro.
1336 (target_can_do_hardware_single_step): Remove declaration.
1337 * target.cc (process_target::supports_hardware_single_step): Define.
1338 (target_can_do_hardware_single_step): Remove.
1340 Update the derived classes and callers below.
1342 * linux-low.h (class linux_process_target): Update.
1343 * linux-low.cc (linux_target_ops): Update.
1344 (linux_supports_hardware_single_step): Turn into ...
1345 (linux_process_target::supports_hardware_single_step): ... this.
1346 * lynx-low.h (class lynx_process_target): Update.
1347 * lynx-low.cc (lynx_target_ops): Update.
1348 (lynx_process_target::supports_hardware_single_step): Define.
1349 * nto-low.h (class nto_process_target): Update.
1350 * nto-low.cc (nto_target_ops): Update.
1351 (nto_process_target::supports_hardware_single_step): Define.
1352 * win32-low.h (class win32_process_target): Update.
1353 * win32-low.cc (win32_target_ops): Update.
1354 (win32_process_target::supports_hardware_single_step): Define.
1356 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1358 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1359 ops into methods of process_target.
1361 * target.h (struct process_stratum_target): Remove the target ops.
1362 (class process_target): Add the target ops.
1363 (target_stopped_by_hw_breakpoint): Update the macro.
1364 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1365 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1366 (process_target::supports_stopped_by_hw_breakpoint): Define.
1368 Update the derived classes and callers below.
1370 * linux-low.cc (linux_target_ops): Update.
1371 (linux_stopped_by_hw_breakpoint): Turn into ...
1372 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1373 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1374 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1375 * linux-low.h (class linux_process_target): Update.
1376 * lynx-low.cc (lynx_target_ops): Update.
1377 * nto-low.cc (nto_target_ops): Update.
1378 * win32-low.cc (win32_target_ops): Update.
1380 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1382 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1383 ops into methods of process_target.
1385 * target.h (struct process_stratum_target): Remove the target ops.
1386 (class process_target): Add the target ops.
1387 (target_stopped_by_sw_breakpoint): Update the macro.
1388 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1389 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1390 (process_target::supports_stopped_by_sw_breakpoint): Define.
1392 Update the derived classes and callers below.
1394 * linux-low.cc (linux_target_ops): Update.
1395 (linux_stopped_by_sw_breakpoint): Turn into ...
1396 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1397 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1398 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1399 * linux-low.h (class linux_process_target): Update.
1400 * lynx-low.cc (lynx_target_ops): Update.
1401 * nto-low.cc (nto_target_ops): Update.
1402 * win32-low.cc (win32_target_ops): Update.
1404 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1406 Turn process_stratum_target's insert_point and remove_point ops
1407 into methods of process_target.
1409 * target.h (struct process_stratum_target): Remove the target ops.
1410 (class process_target): Add the target ops.
1411 * target.cc (process_target::insert_point): Define.
1412 (process_target::remove_point): Define.
1414 Update the derived classes and callers below.
1416 * mem-break.cc (set_raw_breakpoint_at): Update.
1417 (delete_raw_breakpoint): Update.
1418 (uninsert_raw_breakpoint): Update.
1419 (reinsert_raw_breakpoint): Update.
1420 * linux-low.cc (linux_target_ops): Update.
1421 (linux_insert_point): Turn into ...
1422 (linux_process_target::insert_point): ... this.
1423 (linux_remove_point): Turn into ...
1424 (linux_process_target::remove_point): ... this.
1425 * linux-low.h (class linux_process_target): Update.
1426 * lynx-low.cc (lynx_target_ops): Update.
1427 * nto-low.cc (nto_target_ops): Update.
1428 (nto_insert_point): Turn into ...
1429 (nto_process_target::insert_point): ... this.
1430 (nto_remove_point): Turn into ...
1431 (nto_process_target::remove_point): ... this.
1432 * nto-low.h (class nto_process_target): Update.
1433 * win32-low.cc (win32_target_ops): Update.
1434 (win32_insert_point): Turn into ...
1435 (win32_process_target::insert_point): ... this.
1436 (win32_remove_point): Turn into ...
1437 (win32_process_target::remove_point): ... this.
1438 * win32-low.h (class win32_process_target): Update.
1440 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1442 Turn process_stratum_target's supports_z_point_type op into a
1443 method of process_target.
1445 * target.h (struct process_stratum_target): Remove the target op.
1446 (class process_target): Add the target op.
1447 * target.cc (process_target::supports_z_point_type): Define.
1449 Update the derived classes and callers below.
1451 * mem-break.cc (z_type_supported): Update.
1452 * linux-low.cc (linux_target_ops): Update.
1453 (linux_supports_z_point_type): Turn into ...
1454 (linux_process_target::supports_z_point_type): ... this.
1455 * linux-low.h (class linux_process_target): Update.
1456 * lynx-low.cc (lynx_target_ops): Update.
1457 * nto-low.cc (nto_target_ops): Update.
1458 (nto_supports_z_point_type): Turn into ...
1459 (nto_process_target::supports_z_point_type): ... this.
1460 * nto-low.h (class nto_process_target): Update.
1461 * win32-low.cc (win32_target_ops): Update.
1462 (win32_supports_z_point_type): Turn into ...
1463 (win32_process_target::supports_z_point_type): ... this.
1464 * win32-low.h (class win32_process_target): Update.
1466 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1468 Turn process_stratum_target's read_auxv op into a method of
1471 * target.h (class process_stratum_target): Remove the target op.
1472 (struct process_target): Add the target op. Also add
1473 'supports_read_auxv'.
1474 * target.cc (process_target::read_auxv): Define.
1475 (process_target::supports_read_auxv): Define.
1477 Update the derived classes and callers below.
1479 * server.cc (handle_qxfer_auxv): Update.
1480 (handle_query): Update.
1481 * linux-low.cc (linux_target_ops): Update.
1482 (linux_process_target::supports_read_auxv): Define.
1483 (linux_read_auxv): Turn into ...
1484 (linux_process_target::read_auxv): ... this.
1485 * linux-low.h (class linux_process_target): Update.
1486 * lynx-low.cc (lynx_target_ops): Update.
1487 * nto-low.cc (nto_target_ops): Update.
1488 (nto_process_target::supports_read_auxv): Define.
1489 (nto_read_auxv): Turn into ...
1490 (nto_process_target::read_auxv): ... this.
1491 * nto-low.h (class nto_process_target): Update.
1492 * win32-low.cc (win32_target_ops): Update.
1494 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1496 Turn process_stratum_target's request_interrupt op into a method of
1499 * target.h (struct process_stratum_target): Remove the target op.
1500 (class process_target): Add the target op.
1502 Update the derived classes and callers below.
1504 * remote-utils.cc (putpkt_binary_1): Update.
1505 (input_interrupt): Update.
1507 * server.cc (handle_v_requests): Update.
1508 * linux-low.cc (linux_target_ops): Update.
1509 (linux_request_interrupt): Turn into ...
1510 (linux_process_target::request_interrupt): ... this.
1511 * linux-low.h (class linux_process_target): Update.
1512 * lynx-low.cc (lynx_target_ops): Update.
1513 (lynx_request_interrupt): Turn into ...
1514 (lynx_process_target::request_interrupt): ... this.
1515 * lynx-low.h (class lynx_process_target): Update.
1516 * nto-low.cc (nto_target_ops): Update.
1517 (nto_request_interrupt): Turn into ...
1518 (nto_process_target::request_interrupt): ... this.
1519 * nto-low.h (class nto_process_target): Update.
1520 * win32-low.cc (win32_target_ops): Update.
1521 (win32_request_interrupt): Turn into ...
1522 (win32_process_target::request_interrupt): ... this.
1523 * win32-low.h (class win32_process_target): Update.
1525 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1527 Turn process_stratum_target's look_up_symbols op into a method of
1530 * target.h (struct process_stratum_target): Remove the target op.
1531 (class process_target): Add the target op.
1532 * target.cc (process_target::look_up_symbols): Define.
1534 Update the derived classes and callers below.
1536 * server.cc (handle_query): Update.
1537 * linux-low.cc (linux_target_ops): Update.
1538 (linux_look_up_symbols): Turn into ...
1539 (linux_process_target::look_up_symbols): ... this.
1540 * linux-low.h (class linux_process_target): Update.
1541 * lynx-low.cc (lynx_target_ops): Update.
1542 * nto-low.cc (nto_target_ops): Update.
1543 * win32-low.cc (win32_target_ops): Update.
1545 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1547 Turn process_stratum_target's read_memory and write_memory
1548 ops into methods of process_target.
1550 * target.h (struct process_stratum_target): Remove the target ops.
1551 (class process_target): Add the target ops.
1553 Update the derived classes and callers below.
1555 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1556 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1557 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1558 (arm_get_syscall_trapinfo): Update.
1559 * linux-cris-low.cc (cris_breakpoint_at): Update.
1560 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1561 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1562 * linux-mips-low.cc (mips_breakpoint_at): Update.
1563 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1564 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1565 * linux-sh-low.cc (sh_breakpoint_at): Update.
1566 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1567 (sparc_store_gregset_from_stack): Update.
1568 (sparc_breakpoint_at): Update.
1569 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1570 * linux-tile-low.cc (tile_breakpoint_at): Update.
1571 * linux-x86-low.cc (x86_breakpoint_at): Update.
1572 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1573 * mem-brea.cc (insert_memory_breakpoint): Update.
1574 (validate_inserted_breakpoint): Update.
1575 * target.cc (read_inferior_memory): Update.
1576 (target_write_memory): Update.
1577 * linux-low.cc (linux_target_ops): Update.
1578 (linux_read_memory): Make a wrapper around the read_memory target
1580 (linux_process_target::read_memory): Rename from linux_read_memory.
1581 (linux_write_memory): Turn into ...
1582 (linux_process_target::write_memory): ... this.
1583 * linux-low.h (class linux_process_target): Update.
1584 * lynx-low.cc (lynx_target_ops): Update.
1585 (lynx_read_memory): Turn into ...
1586 (lynx_process_target::read_memory): ... this.
1587 (lynx_write_memory): Turn into ...
1588 (lynx_process_target::write_memory): ... this.
1589 * lynx-low.h (class lynx_process_target): Update.
1590 * nto-low.cc (nto_target_ops): Update.
1591 (nto_read_memory): Turn into ...
1592 (nto_process_target::read_memory): ... this.
1593 (nto_write_memory): Turn into ...
1594 (nto_process_target::write_memory): ... this.
1595 * nto-low.h (class nto_process_target): Update.
1596 * win32-low.cc (win32_target_ops): Update.
1597 (win32_read_inferior_memory): Turn into ...
1598 (win32_process_target::read_memory): ... this.
1599 (win32_write_inferior_memory): Turn into ...
1600 (win32_process_target::write_memory): ... this.
1601 * win32-low.h (class win32_process_target): Update.
1603 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1605 Turn process_stratum_target's prepare_to_access_memory and
1606 done_accessing_memory ops into methods of process_target.
1608 * target.h (struct process_stratum_target): Remove the target ops.
1609 (class process_target): Add the target ops.
1610 * target.cc (process_target::prepare_to_access_memory): Define.
1611 (process_target::done_accessing_memory): Define.
1612 (prepare_to_access_memory): Update.
1613 (done_accessing_memory): Update.
1615 Update the derived classes and callers below.
1617 * linux-low.cc (linux_target_ops): Update.
1618 (linux_prepare_to_access_memory): Turn into ...
1619 (linux_process_target::prepare_to_access_memory): ... this.
1620 (linux_done_accessing_memory): Turn into ...
1621 (linux_process_target::done_accessing_memory): ... this.
1622 * linux-low.h (class linux_process_target): Update.
1623 * lynx-low.cc (lynx_target_ops): Update.
1624 * nto-low.cc (nto_target_ops): Update.
1625 * win32-low.cc (win32_target_ops): Update.
1627 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1629 Turn process_stratum_target's fetch_registers and store_registers
1630 ops into methods of process_target.
1632 * target.h (struct process_stratum_target): Remove the target ops.
1633 (class process_target): Add the target ops.
1634 (fetch_inferior_registers): Update the macro.
1635 (store_inferior_registers): Update the macro.
1637 Update the derived classes and callers below.
1639 * linux-low.cc (linux_target_ops): Update.
1640 (linux_fetch_registers): Turn into ...
1641 (linux_process_target::fetch_registers): ... this.
1642 (linux_store_registers): Turn into ...
1643 (linux_process_target::store_registers): ... this.
1644 * linux-low.h (class linux_process_target): Update.
1645 * lynx-low.cc (lynx_target_ops): Update.
1646 (lynx_fetch_registers): Turn into ...
1647 (lynx_process_target::fetch_registers): ... this.
1648 (lynx_store_registers): Turn into ...
1649 (lynx_process_target::store_registers): ... this.
1650 * lynx-low.h (class lynx_process_target): Update.
1651 * nto-low.cc (nto_target_ops): Update.
1652 (nto_fetch_registers): Turn into ...
1653 (nto_process_target::fetch_registers): ... this.
1654 (nto_store_registers): Turn into ...
1655 (nto_process_target::store_registers): ... this.
1656 * nto-low.h (class nto_process_target): Update.
1657 * win32-low.cc (win32_target_ops): Update.
1658 (win32_fetch_inferior_registers): Turn into ...
1659 (win32_process_target::fetch_registers): ... this.
1660 (win32_store_inferior_registers): Turn into ...
1661 (win32_process_target::store_registers): ... this.
1662 * win32-low.h (class win32_process_target): Update.
1664 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1666 Turn process_stratum_target's wait op into a method of
1669 * target.h (struct process_stratum_target): Remove the target op.
1670 (class process_target): Add the target op.
1672 Update the derived classes and callers below.
1674 * target.cc (target_wait): Update.
1675 * linux-low.cc (linux_target_ops): Update.
1676 (linux_wait): Turn into ...
1677 (linux_process_target::wait): ... this.
1678 * linux-low.h (class linux_process_target): Update.
1679 * lynx-low.cc (lynx_target_ops): Update.
1680 (lynx_wait): Turn into ...
1681 (lynx_process_target::wait): ... this.
1682 * lynx-low.h (class lynx_process_target): Update.
1683 * nto-low.cc (nto_target_ops): Update.
1684 (nto_wait): Turn into ...
1685 (nto_process_target::wait): ... this.
1686 * nto-low.h (class nto_process_target): Update.
1687 * win32-low.cc (win32_target_ops): Update.
1688 (win32_wait): Turn into ...
1689 (win32_process_target::wait): ... this.
1690 (do_initial_child_stuff): Update.
1691 * win32-low.h (class win32_process_target): Update.
1693 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1695 Turn process_stratum_target's resume op into a method of
1698 * target.h (struct process_stratum_target): Remove the target op.
1699 (class process_target): Add the target op.
1701 Update the derived classes and callers below.
1703 * server.cc (resume): Update.
1704 * target.cc (target_stop_and_wait): Update.
1705 (target_continue_no_signal): Update.
1706 (target_continue): Update.
1707 * linux-low.cc (linux_target_ops): Update.
1708 (linux_resume): Turn into ...
1709 (linux_process_target::resume): ... this.
1710 * linux-low.h (class linux_process_target): Update.
1711 * lynx-low.cc (lynx_target_ops): Update.
1712 (lynx_resume): Turn into ...
1713 (lynx_process_target::resume): ... this.
1714 * lynx-low.h (class lynx_process_target): Update.
1715 * nto-low.cc (nto_target_ops): Update.
1716 (nto_resume): Turn into ...
1717 (nto_process_target::resume): ... this.
1718 * nto-low.h (class nto_process_target): Update.
1719 * win32-low.cc (win32_target_ops): Update.
1720 (win32_resume): Turn into ...
1721 (win32_process_target::resume): ... this.
1722 (win32_process_target::detach): Update.
1723 (do_initial_child_stuff): Update.
1724 * win32-low.h (class win32_process_target): Update.
1726 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1728 Turn process_stratum_target's thread_alive op into a method of
1731 * target.h (struct process_stratum_target): Remove the target op.
1732 (class process_target): Add the target op.
1733 (mythread_alive): Update the macro.
1735 Update the derived classes and callers below.
1737 * linux-low.cc (linux_target_ops): Update.
1738 (linux_thread_alive): Turn into ...
1739 (linux_process_target::thread_alive): ... this.
1740 (wait_for_sigstop): Update.
1741 * linux-low.h (class linux_process_target): Update.
1742 * lynx-low.cc (lynx_target_ops): Update.
1743 (lynx_thread_alive): Turn into ...
1744 (lynx_process_target::thread_alive): ... this.
1745 * lynx-low.h (class lynx_process_target): Update.
1746 * nto-low.cc (nto_target_ops): Update.
1747 (nto_thread_alive): Turn into ...
1748 (nto_process_target::thread_alive): ... this.
1749 * nto-low.h (class nto_process_target): Update.
1750 * win32-low.cc (win32_target_ops): Update.
1751 (win32_thread_alive): Turn into ...
1752 (win32_process_target::thread_alive): ... this.
1753 * win32-low.h (class win32_process_target): Update.
1755 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1757 Turn process_stratum_target's join op into a method of
1760 * target.h (struct process_stratum_target): Remove the target op.
1761 (class process_target): Add the target op.
1762 (join_inferior): Update the macro.
1764 Update the derived classes and callers below.
1766 * linux-low.cc (linux_target_ops): Update.
1767 (linux_join): Turn into ...
1768 (linux_process_target::join): ... this.
1769 * linux-low.h (class linux_process_target): Update.
1770 * lynx-low.cc (lynx_target_ops): Update.
1771 (lynx_join): Turn into ...
1772 (lynx_process_target::join): ... this.
1773 * lynx-low.h (class lynx_process_target): Update.
1774 * nto-low.cc (nto_target_ops): Update.
1775 (nto_process_target::join): Define.
1776 * nto-low.h (class nto_process_target): Update.
1777 * win32-low.cc (win32_target_ops): Update.
1778 (win32_join): Turn into ...
1779 (win32_process_target::join): ... this.
1780 * win32-low.h (class win32_process_target): Update.
1782 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1784 Turn process_stratum_target's mourn op into a method of
1787 * target.h (struct process_stratum_target): Remove the target op.
1788 (class process_target): Add the target op.
1790 Update the derived classes and callers below.
1792 * target.cc (target_mourn_inferior): Update.
1793 * linux-low.cc (linux_target_ops): Update.
1794 (linux_mourn): Turn into ...
1795 (linux_process_target::mourn): ... this.
1796 (handle_extended_wait): Update.
1797 (linux_process_target::kill): Update.
1798 (linux_process_target::detach): Update.
1799 * linux-low.h (class linux_process_target): Update.
1800 * lynx-low.cc (lynx_target_ops): Update.
1801 (lynx_mourn): Turn into ...
1802 (lynx_process_target::mourn): ... this.
1803 * lynx-low.h (class lynx_process_target): Update.
1804 * nto-low.cc (nto_target_ops): Update.
1805 (nto_mourn): Turn into ...
1806 (nto_process_target::mourn): ... this.
1807 * nto-low.h (class nto_process_target): Update.
1808 * win32-low.cc (win32_target_ops): Update.
1809 (win32_mourn): Turn into ...
1810 (win32_process_target::mourn): ... this.
1811 * win32-low.h (class win32_process_target): Update.
1813 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1815 Turn process_stratum_target's detach op into a method of
1818 * target.h (struct process_stratum_target): Remove the target op.
1819 (class process_target): Add the target op.
1820 (detach_inferior): Update the macro.
1822 Update the derived classes and callers below.
1824 * linux-low.cc (linux_target_ops): Update.
1825 (linux_detach): Turn into ...
1826 (linux_process_target::detach): ... this.
1827 * linux-low.h (class linux_process_target): Update.
1828 * lynx-low.cc (lynx_target_ops): Update.
1829 (lynx_detach): Turn into ...
1830 (lynx_process_target::detach): ... this.
1831 * lynx-low.h (class lynx_process_target): Update.
1832 * nto-low.cc (nto_target_ops): Update.
1833 (nto_detach): Turn into ...
1834 (nto_process_target::detach): ... this.
1835 * nto-low.h (class nto_process_target): Update.
1836 * win32-low.cc (win32_target_ops): Update.
1837 (win32_detach): Turn into ...
1838 (win32_process_target::detach): ... this.
1839 * win32-low.h (class win32_process_target): Update.
1841 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1843 Turn process_stratum_target's kill op into a method of
1846 * target.h (struct process_stratum_target): Remove the target op.
1847 (class process_target): Add the target op.
1849 Update the derived classes and callers below.
1851 * target.cc (kill_inferior): Update.
1852 * linux-low.cc (linux_target_ops): Update.
1853 (linux_kill): Turn into ...
1854 (linux_process_target::kill): ... this.
1855 * linux-low.h (class linux_process_target): Update.
1856 * lynx-low.cc (lynx_target_ops): Update.
1857 (lynx_kill): Turn into ...
1858 (lynx_process_target::kill): ... this.
1859 * lynx-low.h (class lynx_process_target): Update.
1860 * nto-low.cc (nto_target_ops): Update.
1861 (nto_kill): Turn into ...
1862 (nto_process_target::kill): ... this.
1863 * nto-low.h (class nto_process_target): Update.
1864 * win32-low.cc (win32_target_ops): Update.
1865 (win32_kill): Turn into ...
1866 (win32_process_target::kill): ... this.
1867 * win32-low.h (class win32_process_target): Update.
1869 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1871 Turn process_stratum_target's attach op into a method of
1874 * target.h (struct process_stratum_target): Remove the target op.
1875 (class process_target): Add the target op.
1876 (myattach): Update the macro.
1878 Update the derived classes and callers below.
1880 * linux-low.cc (linux_target_ops): Update.
1881 (linux_attach): Turn into ...
1882 (linux_process_target::attach): ... this.
1883 * linux-low.h (class linux_process_target): Update.
1884 * lynx-low.cc (lynx_target_ops): Update.
1885 (lynx_attach): Turn into ...
1886 (lynx_process_target::attach): ... this.
1887 * lynx-low.h (class lynx_process_target): Update.
1888 * nto-low.cc (nto_target_ops): Update.
1889 (nto_attach): Turn into ...
1890 (nto_process_target::attach): ... this.
1891 * nto-low.h (class nto_process_target): Update.
1892 * win32-low.cc (win32_target_ops): Update.
1893 (win32_attach): Turn into ...
1894 (win32_process_target::attach): ... this.
1895 * win32-low.h (class win32_process_target): Update.
1897 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1899 Turn process_stratum_target's post_create_inferior op into a method
1902 * target.h (struct process_stratum_target): Remove the target op.
1903 (class process_target): Add the target op.
1904 (target_post_create_inferior): Update the macro.
1905 * target.cc (process_target::post_create_inferior): Define.
1907 Update the derived classes and callers below.
1909 * linux-low.cc (linux_target_ops): Update.
1910 (linux_post_create_inferior): Turn into ...
1911 (linux_process_target::post_create_inferior): ... this.
1912 * linux-low.h (class linux_process_target): Update.
1913 * lynx-low.cc (lynx_target_ops): Update.
1914 * nto-low.cc (nto_target_ops): Update.
1915 * win32-low.cc (win32_target_ops): Update.
1917 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1919 Turn process_stratum_target's create_inferior op into a method of
1922 * target.h (struct process_stratum_target): Remove the target op.
1923 (class process_target): Add the target op.
1924 (create_inferior): Rename the macro to ...
1925 (target_create_inferior): ... this.
1927 Update the derived classes and callers below.
1929 * server.cc (handle_v_run): Update.
1930 (captured_main): Update.
1931 (process_serial_event): Update.
1932 * linux-low.cc (linux_target_ops): Update.
1933 (linux_create_inferior): Turn into ...
1934 (linux_process_target::create_inferior): ... this.
1935 * linux-low.h (class linux_process_target): Update.
1936 * lynx-low.cc (lynx_target_ops): Update.
1937 (lynx_create_inferior): Turn into ...
1938 (lynx_process_target::create_inferior): ... this.
1939 * lynx-low.h (class lynx_process_target): Update.
1940 * nto-low.cc (nto_target_ops): Update.
1941 (nto_create_inferior): Turn into ...
1942 (nto_process_target::create_inferior): ... this.
1943 * nto-low.h (class nto_process_target): Update.
1944 * win32-low.cc (win32_target_ops): Update.
1945 (win32_create_inferior): Turn into ...
1946 (win32_process_target::create_inferior): ... this.
1947 * win32-low.h (class win32_process_target): Update.
1949 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1951 * target.h (class process_target): New class definition.
1952 (struct process_stratum_target) <pt>: New field with type
1954 * linux-low.h (class linux_process_target): Define as a derived
1955 class of 'process_target'.
1956 * linux-low.cc (linux_target_ops): Add a linux_process_target*
1958 * lynx-low.h (class lynx_process_target): Define as a derived
1959 class of 'process_target'.
1960 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
1962 * nto-low.h (class nto_process_target): Define as a derived
1963 class of 'process_target'.
1964 * nto-low.cc (nto_target_ops): Add an nto_process_target*
1966 * win32-low.h (class win32_process_target): Define as a derived
1967 class of 'process_target'.
1968 * win32-low.cc (win32_target_ops): Add a win32_process_target*
1971 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1973 * configure: Regenerate.
1975 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
1976 Andrew Burgess <andrew.burgess@embecosm.com>
1978 * linux-riscv-low.cc: New file.
1979 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
1980 and nat/riscv-linux-tdesc.c.
1981 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
1982 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
1985 2020-02-14 Tom Tromey <tom@tromey.com>
1987 * acinclude.m4: Don't include acx_configure_dir.m4.
1988 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
1989 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
1990 (all, install-only, uninstall, clean-info, clean)
1991 (maintainer-clean): Don't recurse.
1992 (subdir_do, all-lib): Remove.
1993 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
1995 (generated_files): Update.
1996 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
1997 * configure: Rebuild.
1998 * configure.ac: Don't configure gnulib or libiberty.
2001 2020-02-14 Eli Zaretskii <eliz@gnu.org>
2003 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
2004 preparing the command line for CreateProcess.
2005 (win32_create_inferior): Reflect the program name in debugging
2006 output that shows the process and its command line.
2008 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
2010 * Makefile.in: Rename source files from .c to .cc.
2011 * %.c: Rename to %.cc.
2012 * configure.ac: Rename server.c to server.cc.
2013 * configure: Re-generate.
2015 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
2017 * Makefile.in: Rename gdbsupport source files from .c to .cc.
2019 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
2021 * win32-low.c (win32_create_inferior): Set signal_pid.
2023 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
2024 Pedro Alves <palves@redhat.com>
2026 Skip building gdbserver in a cross-configuration.
2027 * configure.srv: Set $gdbserver_host depending on whether $target
2028 is $host. Use $gdbserver_host instead of $host.
2030 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2032 * configure: Re-generate.
2034 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2036 * configure: Re-generate.
2038 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2040 * acinclude.m4: Update warning.m4 path.
2042 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
2044 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
2045 (handle_exception): Set siginfo_er.
2046 (win32_xfer_siginfo): New function.
2048 2020-02-07 Tom Tromey <tom@tromey.com>
2049 Pedro Alves <palves@redhat.com>
2051 * README: Update build documentation.
2052 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
2054 * configure.ac: Update paths.
2055 * configure: Rebuild.
2056 * acinclude.m4: Update paths.
2057 * Makefile.in: Update include paths.
2058 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
2059 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
2060 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
2061 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
2062 (%-generated.c): Update paths.
2063 * Move entire directory from ../gdb/gdbserver.
2065 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
2067 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
2069 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2071 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
2072 assignment instead of srv_linux_obj.
2074 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
2076 * server.c (handle_qxfer_libraries): Write segment-address with
2079 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
2081 * Makefile.in (install-strip): New target.
2082 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
2083 * aclocal.m4: Regenerate.
2084 * configure: Regenerate.
2085 * configure.ac: Add AM_PROG_INSTALL_STRIP.
2087 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2089 * Makefile.in (SFILES): Adjust paths to point to real files.
2090 (OBS): Move waitstatus.o to target/waitstatus.o.
2091 (TAGS): Transform paths appropriately.
2093 (nat/%.o): ... this pattern rule.
2095 (target/%.o): ... this pattern rule.
2096 * configure.srv: Adjust paths throughout to include nat/ prefix
2097 with the revant files.
2098 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
2099 * configure: Regenerate.
2101 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2103 * Makefile.in (TAGS): Remove config files from the recipe.
2105 2020-01-14 Tom Tromey <tom@tromey.com>
2107 * configure: Rebuild.
2108 * configure.ac: Remove any checks that were added to common.m4.
2109 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
2112 2020-01-14 Tom Tromey <tom@tromey.com>
2114 * server.h: Include config.h.
2115 * gdbreplay.c: Include config.h.
2116 * configure: Rebuild.
2117 * configure.ac: Don't source common.host.
2118 * acinclude.m4: Update path.
2119 * Makefile.in (INCSUPPORT): New variable.
2120 (INCLUDE_CFLAGS): Add INCSUPPORT.
2121 (SFILES): Update paths.
2122 (version-generated.c): Update path to create-version.sh.
2123 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
2125 2020-01-14 Tom Tromey <tom@tromey.com>
2127 * configure.ac (LIBS): Use WIN32APILIBS.
2128 (USE_WIN32API): Don't define.
2129 * configure: Rebuild.
2131 2020-01-14 Tom Tromey <tom@tromey.com>
2133 * configure: Rebuild.
2135 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2137 * Makefile.in (%-generated.c): Remove rule for files from
2140 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2142 * configure: Re-generate.
2144 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2146 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
2148 * tracepoint.c (stop_tracing, flush_trace_buffer,
2149 about_to_request_buffer_space, get_trace_state_variable_value,
2150 set_trace_state_variable_value, gdb_collect): Add declaration.
2152 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2154 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
2155 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
2156 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
2157 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
2158 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
2161 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2163 * inferiors.c: Include gdbsupport/common-inferior.h.
2165 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2167 * hostio-errno.c: Include hostio.h.
2169 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2171 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
2174 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2176 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
2177 * linux-arm-tdesc.h: Include arch/arm.h.
2179 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2181 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
2183 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2185 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
2186 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
2188 2020-01-10 Pedro Alves <palves@redhat.com>
2190 * fork-child.c (post_fork_inferior): Pass target down to
2192 * inferiors.c (switch_to_thread): Add process_stratum_target
2194 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
2195 * nto-low.c (nto_target_ops): Now a process_stratum_target.
2196 * linux-low.c (linux_target_ops): Now a process_stratum_target.
2197 * remote-utils.c (prepare_resume_reply): Pass the target to
2199 * target.c (the_target): Now a process_stratum_target.
2200 (done_accessing_memory): Pass the target to switch_to_thread.
2201 (set_target_ops): Ajust to use process_stratum_target.
2202 * target.h (struct target_ops): Rename to ...
2203 (struct process_stratum_target): ... this.
2204 (the_target, set_target_ops): Adjust.
2205 (prepare_to_access_memory): Adjust comment.
2206 * win32-low.c (child_xfer_memory): Adjust to use
2207 process_stratum_target.
2208 (win32_target_ops): Now a process_stratum_target.
2210 2020-01-06 Eli Zaretskii <eliz@gnu.org>
2211 Pedro Alves <palves@redhat.com>
2213 * win32-low.c (get_child_debug_event): Extract the fatal exception
2214 from the exit status and convert to the equivalent Posix signal
2216 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2217 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2219 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
2221 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2223 2020-01-01 Joel Brobecker <brobecker@adacore.com>
2225 * server.c (gdbserver_version): Change copyright year to 2020.
2226 * gdbreplay.c (gdbreplay_version): Likewise.
2228 2019-12-19 Christian Biesinger <cbiesinger@google.com>
2230 * configure: Regenerate.
2231 * configure.ac: Quote variable arguments of test.
2233 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2235 * Makefile.in: Fix build with GNU Make 3.81
2237 2019-12-16 Tom Tromey <tromey@adacore.com>
2239 * server.c (get_exec_file): Constify result.
2241 2019-12-10 Christian Biesinger <cbiesinger@google.com>
2243 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2244 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2245 * config.in: Regenerate.
2246 * configure: Regenerate.
2247 * configure.ac: Don't check for strerror.
2248 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2249 Call safe_strerror instead of strerror.
2250 * server.h (strerror): Remove this now-unnecessary declaration.
2251 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2253 (gdb_agent_helper_thread): Likewise.
2254 * utils.c (perror_with_name): Likewise.
2256 2019-11-26 Tom Tromey <tom@tromey.com>
2258 * configure, config.in: Rebuild.
2260 2019-11-26 Tom Tromey <tom@tromey.com>
2262 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2263 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2265 * configure, config.in: Rebuild.
2267 2019-11-26 Tom Tromey <tom@tromey.com>
2269 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2270 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2271 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2272 * acinclude.m4: Include ax_pthread.m4.
2273 * config.in, configure: Rebuild.
2275 2019-11-26 Christian Biesinger <cbiesinger@google.com>
2277 * debug.c (debug_set_output): Call safe_strerror instead of
2279 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2280 (linux_kill_one_lwp): Likewise.
2281 (linux_detach_one_lwp): Likewise.
2282 (linux_wait_for_event_filtered): Likewise.
2283 (store_register): Likewise.
2284 * lynx-low.c (lynx_attach): Likewise.
2285 * mem-break.c (insert_memory_breakpoint): Likewise.
2286 (remove_memory_breakpoint): Likewise.
2287 (delete_fast_tracepoint_jump): Likewise.
2288 (set_fast_tracepoint_jump): Likewise.
2289 (uninsert_fast_tracepoint_jumps_at): Likewise.
2290 (reinsert_fast_tracepoint_jumps_at): Likewise.
2291 * nto-low.c (nto_xfer_memory): Likewise.
2292 (nto_resume): Likewise.
2294 2019-11-20 Luis Machado <luis.machado@linaro.org>
2296 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2297 instead of register count.
2298 * tdesc.c (tdesc_contains_feature): New function.
2299 * tdesc.h (tdesc_contains_feature): New prototype.
2301 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2303 * Makefile.in: Add safe-strerror.c.
2304 * configure: Regenerate.
2305 * configure.ac: Don't source common.host.
2307 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2309 * config.in: Regenerate.
2310 * configure: Regenerate.
2312 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2314 * ax.c (ax_printf): Handle size_t_arg.
2316 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2318 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2319 * mi/mi-main.c (output_cores): Likewise.
2320 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2321 (linux_xfer_osdata_modules): Likewise.
2322 * remote.c (register_remote_support_xml): Likewise.
2323 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2324 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2326 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2328 * configure: Regenerate.
2329 * configure.ac: Remove check for strerror_r.
2331 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2333 * config.in: Regenerate.
2334 * configure: Regenerate.
2335 * configure.ac: Also check for strerror_r.
2337 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2339 * ax.h (debug_agent): Remove duplicate declaration.
2341 2019-10-26 Tom de Vries <tdevries@suse.de>
2343 * linux-aarch64-low.c: Fix typos in comments.
2344 * linux-arm-low.c: Same.
2345 * linux-low.c: Same.
2346 * linux-ppc-low.c: Same.
2347 * proc-service.c: Same.
2350 * tracepoint.c: Same.
2351 * win32-low.c: Same.
2353 2019-10-25 Tom Tromey <tromey@adacore.com>
2355 * utils.c (xstrdup): Remove.
2357 2019-10-23 Tom Tromey <tom@tromey.com>
2359 * configure, config.in: Rebuild.
2361 2019-10-23 Tom Tromey <tom@tromey.com>
2363 * configure: Rebuild.
2364 * acinclude.m4: Use m4_include, not sinclude.
2366 2019-10-17 Tom Tromey <tromey@adacore.com>
2368 * configure: Rebuild.
2369 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2370 in AC_CONFIG_FILES invocation.
2371 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2374 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2376 * server.c: Include xml-builtin.h.
2377 (get_xml_features): Don't declare xml_builtins here.
2379 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2381 * Makefile.in: Remove references to vec-ipa.o.
2383 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2385 * Makefile.in: Remove references to vec.c.
2387 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2389 * server.c (server_waiting): Change to bool.
2390 (extended_protocol): Likewise.
2391 (response_needed): Likewise.
2392 (exit_requested): Likewise.
2393 (run_once): Likewise.
2394 (report_no_resumed): Likewise.
2395 (non_stop): Likewise.
2396 (disable_packet_vCont): Likewise.
2397 (disable_packet_Tthread): Likewise.
2398 (disable_packet_qC): Likewise.
2399 (disable_packet_qfThreadInfo): Likewise.
2400 (handle_general_set): Update.
2401 (handle_detach): Update.
2402 (handle_monitor_command): Update.
2403 (handle_query): Update.
2404 (captured_main): Update.
2405 (process_serial_event): Update.
2406 * server.h (server_waiting): Change to bool.
2407 (disable_packet_vCont): Likewise.
2408 (disable_packet_Tthread): Likewise.
2409 (disable_packet_qC): Likewise.
2410 (disable_packet_qfThreadInfo): Likewise.
2411 (run_once): Likewise.
2412 (non_stop): Likewise.
2413 * target.c (target_stop_and_wait): Update.
2415 2019-10-02 Tom Tromey <tromey@adacore.com>
2417 * Makefile.in (SFILES): Add common-inferior.c.
2418 (OBS): Add common-inferior.o.
2419 * server.c (startup_with_shell): Don't define.
2421 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2423 * linux-low.c (linux_low_read_btrace): Update for change to
2426 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2428 * debug.c (debug_threads): Remove comment in favor of the header.
2429 * debug.h (using_threads): Add declaration.
2430 (debug_threads): Add comment.
2431 * linux-aarch64-low.c: Include debug.h and remove declaration of
2433 * nto-low.c: Likewise.
2434 * remote-utils.c: Likewise.
2435 * thread-db.c: Likewise.
2437 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2439 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2440 and powerpc-cell64l-ipa.o.
2441 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2442 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2443 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2446 * spu-low.c: Remove file.
2448 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2449 (parse_spufs_run): Remove.
2450 (ppc_get_pc): Remove Cell/B.E. support.
2451 (ppc_set_pc): Likewise.
2452 (ppc_breakpoint_at): Likewise.
2453 (ppc_arch_setup): Likewise.
2454 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2455 tdesc_powerpc_cell32l.
2456 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2457 or init_registers_powerpc_cell32l.
2458 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2459 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2460 or init_registers_powerpc_cell32l.
2461 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2462 (init_registers_powerpc_cell32l): Remove prototype.
2463 (init_registers_powerpc_cell64l): Likewise.
2465 * target.h (struct target_ops): Remove qxfer_spu member.
2466 * server.c (handle_qxfer_spu): Remove.
2467 (qxfer_packets): Remove entry for "spu".
2468 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2469 * linux-low.c (SPUFS_MAGIC): Remove.
2470 (spu_enumerate_spu_ids): Remove.
2471 (linux_qxfer_spu): Remove.
2472 (linux_target_ops): Remove qxfer_spu member.
2473 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2474 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2475 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2477 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2479 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2480 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2481 * config.in: Regenerate.
2482 * configure: Regenerate.
2484 2019-08-15 Tom Tromey <tromey@adacore.com>
2486 * target.c (target_write_memory): Use gdb::byte_vector.
2488 2019-08-15 Tom Tromey <tromey@adacore.com>
2490 * tracepoint.c (write_inferior_data_pointer)
2491 (write_inferior_integer, write_inferior_int8)
2492 (write_inferior_uinteger, m_tracepoint_action_download)
2493 (r_tracepoint_action_download, x_tracepoint_action_download)
2494 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2495 (download_agent_expr, download_tracepoint_1)
2496 (download_trace_state_variables, upload_fast_traceframes): Update.
2497 * server.c (gdb_write_memory): Update.
2498 * remote-utils.c (relocate_instruction): Update.
2499 * proc-service.c (ps_pdwrite): Update.
2500 * mem-break.c (remove_memory_breakpoint)
2501 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2502 (uninsert_fast_tracepoint_jumps_at)
2503 (reinsert_fast_tracepoint_jumps_at): Update.
2504 * linux-x86-low.c (append_insns)
2505 (i386_install_fast_tracepoint_jump_pad)
2506 (amd64_write_goto_address, i386_write_goto_address): Update.
2507 * linux-s390-low.c (append_insns, s390_write_goto_address):
2509 * linux-ppc-low.c (ppc_relocate_instruction)
2510 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
2511 (ppc_write_goto_address): Update.
2512 * linux-aarch64-low.c (append_insns): Update.
2513 * target.h (struct target_ops): Update.
2514 (write_inferior_memory): Don't declare.
2515 * target.c (target_write_memory): Rename from
2516 write_inferior_memory. Remove old target_write_memory.
2518 2019-08-15 Tom Tromey <tromey@adacore.com>
2520 * target.c (write_inferior_memory): Use std::vector.
2522 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2525 * configure.ac: Drop enable-libmcheck support.
2526 * configure, config.in: Rebuild.
2527 * acinclude.m4: Don't include it.
2529 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2531 * configure.srv: Remove Arm xml files.
2533 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2535 * configure.srv: Add new files. Remove xml generated files.
2536 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2538 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2539 * linux-aarch32-tdesc.c: New file.
2540 * linux-aarch32-tdesc.h: New file.
2541 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2542 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2543 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2544 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2545 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2546 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2547 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2548 (arm_read_description): Call arm_linux_read_description.
2549 (initialize_low_arch): Don't init registers.
2550 * linux-arm-tdesc.c: New file.
2551 * linux-arm-tdesc.h: New file.
2553 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2555 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2556 Move counter inside for.
2557 (arm_read_description): Check ptrace earlier.
2558 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2560 2019-07-09 Tom Tromey <tom@tromey.com>
2562 * configure: Rebuild.
2563 * configure.ac: Change common to gdbsupport.
2564 * acinclude.m4: Change common to gdbsupport.
2565 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2566 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2567 common to gdbsupport.
2568 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2569 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2570 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2571 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2572 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2573 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2574 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2575 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2576 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2577 common to gdbsupport.
2579 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2581 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2583 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2585 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2587 * configure.srv: Remove legacy xml.
2588 * linux-aarch64-low.c (initialize_low_arch): Remove
2589 initialize_low_tdesc call.
2590 * linux-aarch64-tdesc-selftest.c: Remove file.
2591 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2592 * linux-x86-low.c (initialize_low_arch): Remove
2593 initialize_low_tdesc call.
2594 * linux-x86-tdesc-selftest.c: Remove file.
2595 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2597 2019-06-20 Tom de Vries <tdevries@suse.de>
2599 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2600 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2602 2019-06-19 Tom de Vries <tdevries@suse.de>
2604 * debug.h (debug_write): Change return type to ssize_t.
2605 * debug.c (debug_write): Same.
2607 2019-06-14 Tom Tromey <tom@tromey.com>
2609 * configure.ac: Use new path to gnulib.
2610 * configure: Rebuild.
2611 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2614 2019-06-11 Tom Tromey <tom@tromey.com>
2616 * Makefile.in (SFILES): Add alloc.c.
2618 (IPA_OBJS): Add alloc-ipa.o.
2619 (alloc-ipa.o): New target.
2620 (%.o: ../%.c): New pattern rule.
2622 2019-06-10 Tom Tromey <tromey@adacore.com>
2624 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
2625 end warning with a newline.
2626 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
2628 * thread-db.c (attach_thread): Don't end warning with a newline.
2629 (thread_db_notice_clone): Likewise.
2630 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
2632 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2633 end warning with a newline.
2635 2019-06-04 Pedro Alves <palves@redhat.com>
2637 * server.c (captured_main): Use make_unique_xstrdup.
2639 2019-06-02 Tom Tromey <tom@tromey.com>
2641 * gdbreplay.c (fromhex): Remove.
2642 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2644 2019-05-29 Tom Tromey <tromey@adacore.com>
2646 * configure: Rebuild.
2648 2019-05-06 Kevin Buettner <kevinb@redhat.com>
2650 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2651 sign extension code on 32-bit builds.
2653 2019-05-03 Eli Zaretskii <eliz@gnu.org>
2656 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2658 2019-04-19 Tom Tromey <tom@tromey.com>
2660 * server.c (struct vstop_notif): Derive from notif_event.
2662 (queue_stop_reply): Update.
2663 (remove_all_on_match_ptid): Change type. Rewrite.
2664 (discard_queued_stop_replies): Rewrite.
2665 (in_queued_stop_replies_ptid): Change type.
2666 (in_queued_stop_replies): Rewrite.
2667 (notif_stop): Update.
2668 (queue_stop_reply_callback): Update.
2669 (captured_main): Don't call initialize_notif.
2670 (push_stop_notification): Update.
2671 * notif.c (notif_write_event, handle_notif_ack)
2672 (notif_event_enque, notif_push): Update.
2673 (notif_event_xfree, initialize_notif): Remove.
2674 * notif.h (struct notif_event): Include <list>, not
2676 (struct notif_server) <queue>: Now a std::list.
2677 (notif_event_p): Remove typedef.
2678 (initialize_notif): Don't declare.
2679 (struct notif_event): Add virtual destructor.
2681 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2683 * ax.c (ax_vdebug): Call debug_printf.
2684 * debug.c (debug_write): New function.
2685 * debug.h (debug_write): New declaration.
2686 * linux-low.c (sigchld_handler): Call debug_write.
2688 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2690 * debug.c (debug_set_output): New function.
2691 (debug_vprintf): Send output to debug_file.
2692 (debug_flush): Likewise.
2693 * debug.h (debug_set_output): New declaration.
2694 * server.c (handle_monitor_command): Add debug-file option.
2695 (captured_main): Likewise.
2697 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2699 * debug.c (remote_debug): Add definition.
2700 * debug.h (remote_debug): Add declaration.
2701 * hostio.c (remote_debug): Remove declaration.
2702 * remote-utils.c (struct ui_file): Likewise.
2703 (remote_debug): Likewise.
2704 * remote-utils.h (remote_debug): Likewise,
2705 * server.c (remote_debug): Remove definition.
2707 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2709 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2710 when using a 64-bit gdbserver.
2712 2019-04-09 Tom Tromey <tromey@adacore.com>
2714 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2716 2019-04-08 Tom Tromey <tom@tromey.com>
2718 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2720 (linux_resume_one_lwp): Likewise.
2722 2019-04-08 Tom Tromey <tom@tromey.com>
2724 * gdbreplay.c: Update.
2725 * linux-low.c: Update.
2728 2019-04-08 Tom Tromey <tom@tromey.com>
2730 * server.c: Use C++ exception handling.
2731 * linux-low.c: Use C++ exception handling.
2732 * gdbreplay.c: Use C++ exception handling.
2734 2019-04-08 Tom Tromey <tom@tromey.com>
2736 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
2737 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
2738 (captured_main, main): Update.
2739 * gdbreplay.c (main): Update.
2741 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2743 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
2744 value in argument pointer, return 1 if the entry is found and 0
2745 otherwise. Move comment.
2746 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
2747 * linux-low.h (linux_get_auxv): Declare.
2748 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
2750 2019-04-05 Tom Tromey <tromey@adacore.com>
2752 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2755 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2757 * linux-low.c (AT_HWCAP2): Add define if not already included.
2759 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2761 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
2762 (aarch64_arch_setup): Call linux_get_hwcap.
2763 * linux-arm-low.c (arm_get_hwcap): Remove function.
2764 (arm_read_description): Call linux_get_hwcap.
2765 * linux-low.c (linux_get_auxv): New function.
2766 (linux_get_hwcap): Likewise.
2767 (linux_get_hwcap2): Likewise.
2768 * linux-low.h (linux_get_hwcap): New declaration.
2769 (linux_get_hwcap2): Likewise.
2770 * linux-ppc-low.c (ppc_get_auxv): Remove function.
2771 (ppc_arch_setup): Call linux_get_hwcap.
2772 * linux-s390-low.c (s390_get_hwcap): Remove function.
2773 (s390_arch_setup): Call linux_get_hwcap.
2775 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2776 Jiong Wang <jiong.wang@arm.com>
2778 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2779 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2781 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2783 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2784 Jiong Wang <jiong.wang@arm.com>
2786 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2787 (aarch64_get_hwcap): New function.
2788 (aarch64_arch_setup): Read APIA hwcap.
2790 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2791 Jiong Wang <jiong.wang@arm.com>
2793 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
2794 (initialize_low_tracepoint): Likewise.
2795 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
2796 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
2797 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
2798 (aarch64_linux_read_description): Likewise.
2799 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
2801 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2803 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
2804 i386_create_target_description for 'segments' parameter.
2805 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
2806 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2807 * win32-i386-low.c (i386_arch_setup): Likewise.
2809 2019-03-12 Tom Tromey <tromey@adacore.com>
2811 * linux-low.c (iterate_over_lwps): Update.
2813 2019-03-06 Tom Tromey <tom@tromey.com>
2815 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2816 (captured_main): Use SCOPE_EXIT.
2818 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2820 * configure.srv: Use '$enable_unittest' instead of '$development'
2821 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2824 2019-02-27 Tom Tromey <tromey@adacore.com>
2826 * gdbreplay.c (logchar): Handle \r\n.
2828 2019-02-07 Alan Hayward <alan.hayward@arm.com>
2830 * linux-low.c (linux_attach): Add process before lwp.
2831 * server.c (attach_inferior): Check if already attached.
2833 2019-02-07 Tom Tromey <tom@tromey.com>
2835 * x86-tdesc.h: Rename include guard.
2836 * x86-low.h: Add include guard.
2837 * wincecompat.h: Rename include guard.
2838 * win32-low.h: Add include guard.
2839 * utils.h: Rename include guard.
2840 * tracepoint.h: Rename include guard.
2841 * tdesc.h: Rename include guard.
2842 * target.h: Rename include guard.
2843 * server.h: Rename include guard.
2844 * remote-utils.h: Rename include guard.
2845 * regcache.h: Rename include guard.
2846 * nto-low.h: Rename include guard.
2847 * notif.h: Add include guard.
2848 * mem-break.h: Rename include guard.
2849 * lynx-low.h: Add include guard.
2850 * linux-x86-tdesc.h: Add include guard.
2851 * linux-s390-tdesc.h: Add include guard.
2852 * linux-ppc-tdesc-init.h: Add include guard.
2853 * linux-low.h: Add include guard.
2854 * linux-aarch64-tdesc.h: Add include guard.
2855 * linux-aarch32-low.h: Add include guard.
2856 * inferiors.h: Rename include guard.
2857 * i387-fp.h: Rename include guard.
2858 * hostio.h: Rename include guard.
2859 * gdbthread.h: Rename include guard.
2860 * gdb_proc_service.h: Rename include guard.
2861 * event-loop.h: Rename include guard.
2862 * dll.h: Rename include guard.
2863 * debug.h: Rename include guard.
2864 * ax.h: Rename include guard.
2866 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2869 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2870 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2872 2019-01-25 Tom Tromey <tom@tromey.com>
2874 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2876 2019-01-25 Tom Tromey <tom@tromey.com>
2878 * win32-low.c: Fix common/ includes.
2879 * win32-i386-low.c: Fix common/ includes.
2880 * tracepoint.c: Fix common/ includes.
2881 * thread-db.c: Fix common/ includes.
2882 * target.h: Fix common/ includes.
2883 * symbol.c: Fix common/ includes.
2884 * spu-low.c: Fix common/ includes.
2885 * server.h: Fix common/ includes.
2886 * server.c: Fix common/ includes.
2887 * remote-utils.c: Fix common/ includes.
2888 * regcache.h: Fix common/ includes.
2889 * regcache.c: Fix common/ includes.
2890 * nto-x86-low.c: Fix common/ includes.
2891 * notif.h: Fix common/ includes.
2892 * mem-break.h: Fix common/ includes.
2893 * lynx-low.c: Fix common/ includes.
2894 * lynx-i386-low.c: Fix common/ includes.
2895 * linux-x86-tdesc-selftest.c: Fix common/ includes.
2896 * linux-x86-low.c: Fix common/ includes.
2897 * linux-low.c: Fix common/ includes.
2898 * inferiors.h: Fix common/ includes.
2899 * i387-fp.c: Fix common/ includes.
2900 * hostio.c: Fix common/ includes.
2901 * hostio-errno.c: Fix common/ includes.
2902 * gdbthread.h: Fix common/ includes.
2903 * gdbreplay.c: Fix common/ includes.
2904 * fork-child.c: Fix common/ includes.
2905 * event-loop.c: Fix common/ includes.
2907 (enum gdb_agent_op): Fix common/ includes.
2909 2019-01-21 Tom Tromey <tom@tromey.com>
2911 * tracepoint.c: Fix includes.
2912 * remote-utils.c: Fix includes.
2913 * linux-x86-low.c: Fix includes.
2915 2019-01-01 Joel Brobecker <brobecker@adacore.com>
2917 * gdbreplay.c (gdbreplay_version): Update copyright year in
2919 * server.c (gdbserver_version): Likewise.
2921 2018-12-05 Alan Hayward <alan.hayward@arm.com>
2923 * linux-low.c (add_lwp): Switch ordering.
2925 2018-11-29 Tom Tromey <tom@tromey.com>
2927 * win32-low.c (win32_join): Take pid, not process.
2928 * target.h (struct target_ops) <join>: Change argument type.
2929 (join_inferior): Change argument name.
2930 * spu-low.c (spu_join): Take pid, not process.
2931 * server.c (handle_detach): Preserve pid before destroying
2933 * lynx-low.c (lynx_join): Take pid, not process.
2934 * linux-low.c (linux_join): Take pid, not process.
2936 2018-11-23 Alan Hayward <alan.hayward@arm.com>
2938 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
2939 (aarch64_cannot_fetch_register): Likewise.
2940 (struct linux_target_ops): Update references.
2942 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2944 * linux-ppc-low.c: Include nat/linux-ptrace.h.
2946 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2948 * configure.srv (ipa_ppc_linux_regobj): Add
2949 powerpc-isa207-htm-vsx32l-ipa.o and
2950 powerpc-isa207-htm-vsx64l-ipa.o.
2951 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
2952 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
2953 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
2954 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
2955 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
2956 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
2957 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
2958 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
2959 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
2960 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
2961 (init_registers_powerpc_isa207_htm_vsx32l)
2962 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
2963 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
2964 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
2965 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
2966 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
2967 (ppc_store_tm_ctarregset): New functions.
2968 (ppc_regsets): Add entries for HTM regsets.
2969 (ppc_arch_setup): Set htm in features struct when needed. Set
2970 sizes for the HTM regsets.
2971 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
2972 (initialize_low_arch): Call
2973 init_registers_powerpc_isa207_htm_vsx32l and
2974 init_registers_powerpc_isa207_htm_vsx64l.
2975 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
2976 PPC_TDESC_ISA207_HTM_VSX.
2977 (initialize_low_tracepoint): Call
2978 init_registers_powerpc_isa207_htm_vsx32l and
2979 init_registers_powerpc_isa207_htm_vsx64l.
2981 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2983 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
2984 rs6000/power-linux-pmu.xml to srv_xmlfiles.
2985 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
2986 (ppc_store_pmuregset): New functions.
2987 (ppc_regsets): Add entries for ebb and pmu regsets.
2988 (ppc_arch_setup): Set isa207 in features struct if the ebb and
2989 pmu regsets are available. Set sizes for these regsets.
2991 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2993 * configure.srv (ipa_ppc_linux_regobj): Add
2994 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
2995 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
2996 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
2997 rs6000/powerpc-isa207-vsx32l.xml, and
2998 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
2999 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3000 <PPC_TDESC_ISA207_VSX>: New enum value.
3001 (init_registers_powerpc_isa207_vsx32l): Declare.
3002 (init_registers_powerpc_isa207_vsx64l): Declare.
3003 * linux-ppc-low.c (ppc_fill_tarregset): New function.
3004 (ppc_store_tarregset): New function.
3005 (ppc_regsets): Add entry for the TAR regset.
3006 (ppc_arch_setup): Set isa207 in features struct when needed. Set
3007 size for the TAR regsets.
3008 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
3009 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
3010 and init_registers_powerpc_isa207_vsx64l.
3011 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
3012 (initialize_low_tracepoint): Call
3013 init_registers_powerpc_isa207_vsx32l and
3014 init_registers_powerpc_isa207_vsx64l.
3016 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3017 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3019 * configure.srv (ipa_ppc_linux_regobj): Add
3020 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
3021 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
3022 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
3023 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
3024 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
3025 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
3026 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
3027 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3028 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
3029 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
3030 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
3031 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
3032 (ppc_hwcap): Add comment.
3033 (ppc_hwcap2): New global.
3034 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
3035 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
3036 (ppc_regsets): Add entries for the DSCR and PPR regsets.
3037 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
3038 when needed. Set sizes for the the DSCR and PPR regsets.
3039 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
3040 (initialize_low_arch): Call
3041 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
3042 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
3043 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
3044 PPC_TDESC_ISA205_PPR_DSCR_VSX.
3045 (initialize_low_tracepoint): Call
3046 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
3047 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
3049 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3051 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
3053 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
3054 Simon Marchi <simark@simark.ca>
3056 * acinclude.m4: Include "../selftest.m4".
3057 * configure: Regenerate.
3058 * configure.ac: Use "GDB_AC_SELFTEST".
3059 * configure.srv: Use "$enable_unittests" instead of
3060 "$development" when checking whether unit tests have been
3062 * server.c (captured_main): Update message informing that
3063 selftests have been disabled.
3065 2018-10-04 Tom Tromey <tom@tromey.com>
3067 * configure: Rebuild.
3069 2018-10-04 Tom Tromey <tom@tromey.com>
3071 * server.c (handle_status): Rename inner "thread".
3072 (process_serial_event): Declare "res" in 'm' case.
3073 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
3074 (iterate_over_lwps): Rename inner "thread".
3075 (linux_qxfer_libraries_svr4): Rename inner "len".
3076 * gdbthread.h (find_thread_in_random): Rename inner "thread".
3078 2018-10-01 Gary Benson <gbenson@redhat.com>
3080 * gdb_proc_service.h: Moved common code to
3081 common/gdb_proc_service.h.
3083 2018-10-01 Gary Benson <gbenson@redhat.com>
3085 * gdb_proc_service.h: Synchronize comments and whitespace with
3086 GDB's version of this file.
3088 2018-09-25 Tom Tromey <tom@tromey.com>
3090 * configure: Rebuild.
3091 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
3093 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3095 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
3096 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
3097 ($(IPA_LIB)): Sort IPA_OBJS.
3099 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3101 * Makefile.in: Remove references to $(ADD_DEPS).
3103 2018-09-16 Tom Tromey <tom@tromey.com>
3105 * remote-utils.c (remote_open): Use GNU style for metasyntactic
3107 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
3110 2018-09-05 Tom Tromey <tom@tromey.com>
3112 * configure: Rebuild.
3114 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3117 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
3119 2018-08-27 Tom Tromey <tom@tromey.com>
3122 * configure: Rebuild.
3124 2018-08-27 Tom Tromey <tom@tromey.com>
3126 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
3127 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
3128 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
3129 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
3130 (s390x_emit_stack_adjust): Add casts to unsigned char.
3132 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
3136 * server.h (struct client_state) <disable_randomization>:
3139 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3141 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
3143 (mips_supply_ptrace_register): Likewise.
3145 2018-07-22 Tom Tromey <tom@tromey.com>
3147 * configure: Rebuild.
3149 2018-07-22 Tom Tromey <tom@tromey.com>
3151 * win32-low.c (win32_create_inferior): Remove unused variables.
3152 * gdbreplay.c (remote_open): Remove unused variable.
3153 * remote-utils.c (remote_prepare): Remove unused variable.
3154 * x86-tdesc.h (X86_TDESC_H): Define.
3155 (amd64_expedite_regs): Define conditionally.
3156 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
3157 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
3158 * remote-utils.c (readchar): Remove unused variable.
3160 2018-07-13 Pedro Alves <palves@redhat.com>
3162 * linux-low.c (linux_kill): Change parameter to process_info
3163 pointer instead of pid. Adjust.
3164 * lynx-low.c (lynx_kill): Likewise.
3165 * nto-low.c (nto_kill): Likewise.
3166 * spu-low.c (spu_kill): Likewise.
3167 * win32-low.c (win32_kill): Likewise.
3168 * server.c (handle_v_kill, kill_inferior_callback)
3169 (detach_or_kill_for_exit): Adjust.
3170 * target.c (kill_inferior): Change parameter to process_info
3171 pointer instead of pid. Adjust.
3172 * target.h (struct target_ops) <kill>: Change parameter to
3173 process_info pointer instead of pid. Adjust all implementations
3175 (kill_inferior): Likewise.
3177 2018-07-13 Pedro Alves <palves@redhat.com>
3179 * linux-low.c (linux_detach, linux_join): Change parameter to
3180 process_info pointer instead of pid. Adjust.
3181 * lynx-low.c (lynx_detach, lynx_join): Likewise.
3182 * nto-low.c (nto_detach): Likewise.
3183 * spu-low.c (spu_detach, spu_join): Likewise.
3184 * win32-low.c (win32_detach, win32_join): Likewise.
3185 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
3186 * target.h (struct target_ops) <detach, join>: Change parameter to
3187 process_info pointer instead of pid. Adjust all implementations
3189 (detach_inferior, join_inferior): Rename 'pid' parameter to
3192 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3193 Jan Kratochvil <jan.kratochvil@redhat.com>
3194 Paul Fertser <fercerpav@gmail.com>
3195 Tsutomu Seki <sekiriki@gmail.com>
3197 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3198 (OBS): Add 'common/netstuff.o'.
3199 (GDBREPLAY_OBS): Likewise.
3200 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3201 (remote_open): Implement support for IPv6
3203 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3205 (handle_accept_event): Accept connections from IPv6 sources.
3206 (remote_prepare): Handle IPv6-style hostnames; implement
3207 support for IPv6 connections.
3208 (remote_open): Implement support for printing connections from
3211 2018-07-11 Pedro Alves <palves@redhat.com>
3214 * mem-break.c (any_persistent_commands): Add process_info
3215 parameter and use it instead of relying on the current process.
3216 Change return type to bool.
3217 * mem-break.h (any_persistent_commands): Add process_info
3218 parameter and change return type to bool.
3219 * server.c (handle_detach): Remove require_running_or_return call.
3220 Look up the process_info for the process we're about to detach.
3221 If not found, return back error to GDB. Adjust
3222 any_persistent_commands call to pass down a process pointer.
3224 2018-07-11 Pedro Alves <palves@redhat.com>
3226 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3227 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3228 instead of collect_register_by_name.
3229 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3230 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3232 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3233 Pedro Alves <palves@redhat.com>
3235 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3237 2018-07-03 Tom Tromey <tom@tromey.com>
3239 * linux-low.c: Update.
3240 * lynx-low.c: Update.
3241 * mem-break.c: Update.
3242 * nto-low.c: Update.
3243 * remote-utils.c: Update.
3245 * spu-low.c: Update.
3247 * win32-low.c: Update.
3249 2018-07-03 Tom Tromey <tom@tromey.com>
3253 2018-07-03 Tom Tromey <tom@tromey.com>
3255 * linux-low.c: Update.
3257 2018-07-03 Tom Tromey <tom@tromey.com>
3261 2018-07-03 Tom Tromey <tom@tromey.com>
3263 * linux-low.c: Update.
3264 * linux-mips-low.c: Update.
3265 * lynx-low.c: Update.
3266 * nto-low.c: Update.
3267 * remote-utils.c: Update.
3269 * spu-low.c: Update.
3271 * thread-db.c: Update.
3273 2018-07-03 Tom Tromey <tom@tromey.com>
3275 * linux-low.c: Update.
3276 * linux-mips-low.c: Update.
3277 * lynx-low.c: Update.
3278 * mem-break.c: Update.
3279 * nto-low.c: Update.
3280 * remote-utils.c: Update.
3282 * spu-low.c: Update.
3284 * tracepoint.c: Update.
3286 2018-07-03 Tom Tromey <tom@tromey.com>
3288 * linux-low.c: Update.
3289 * linux-ppc-low.c: Update.
3290 * linux-x86-low.c: Update.
3291 * proc-service.c: Update.
3293 * spu-low.c: Update.
3294 * thread-db.c: Update.
3295 * win32-low.c: Update.
3297 2018-07-03 Tom Tromey <tom@tromey.com>
3299 * linux-low.c: Update.
3300 * lynx-low.c: Update.
3301 * nto-low.c: Update.
3302 * remote-utils.c: Update.
3303 * spu-low.c: Update.
3304 * thread-db.c: Update.
3305 * win32-low.c: Update.
3307 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3309 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3310 parameter in call to 'amd64_create_target_description'.
3312 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3314 * x86-tdesc.h: Remove executable permission flag.
3316 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3318 * configure.ac: Remove AC_PREREQ, add missing quoting.
3319 * configure: Re-generate.
3320 * config.in: Re-generate.
3321 * aclocal.m4: Re-generate.
3323 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3325 * tracepoint.h (current_traceframe): Remove declaration.
3327 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3329 * linux-aarch64-low.c (is_sve_tdesc): New function.
3330 (aarch64_sve_regs_copy_to_regcache): Likewise.
3331 (aarch64_sve_regs_copy_from_regcache): Likewise.
3332 (aarch64_regs_info): Add SVE checks.
3333 (initialize_low_arch): Initialize SVE.
3335 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3337 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3339 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3341 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3342 (initialize_low_tracepoint): Likewise
3343 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3344 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3346 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3348 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3350 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3352 * server.h (PBUFSIZ): Increase size
3354 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3356 * regcache.c (regcache::raw_compare): New function.
3357 * regcache.h (regcache::raw_compare): New declaration.
3359 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3361 * regcache.c (new_register_cache): Use new.
3362 (free_register_cache): Use delete.
3363 (register_data): Use const.
3364 (supply_register): Move body inside regcache.
3365 (regcache::raw_supply): New override function.
3366 (collect_register): Move body inside regcache.
3367 (regcache::raw_collect): New override function.
3368 (regcache::get_register_status): New override function.
3369 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3371 2018-06-09 Tom Tromey <tom@tromey.com>
3373 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3375 (event_queue): Use std::queue.
3376 (gdb_event_xfree): Remove.
3377 (initialize_event_loop, process_event, wait_for_event): Update.
3379 2018-06-08 Stan Cox <scox@redhat.com>
3381 * win32-low.c (win32_create_inferior): last_ptid and last_status
3382 moved to client_state.
3384 2018-06-08 Pedro Alves <palves@redhat.com>
3386 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3387 common/common-exceptions.o, common/common-utils.o,
3388 common/errors.o, common/print-utils.o and utils.o.
3389 * gdbreplay.c: Include "common-defs.h" instead of the two
3390 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3391 string.h or alloca.h.
3392 (perror_with_name): Delete.
3393 (remote_open): Use xstrdup instead of strdup.
3394 (main): Rename to ...
3395 (captured_main): ... this.
3398 2018-06-08 Tom Tromey <tom@tromey.com>
3400 * linux-low.c (linux_low_read_btrace): Update.
3402 2018-06-04 Stan Cox <scox@redhat.com>
3404 * server.h (struct client_state): New.
3405 * server.c (cont_thread, general_thread, multi_process)
3406 (report_fork_events, report_vfork_events, report_exec_events)
3407 (report_thread_events, swbreak_feature, hwbreak_feature)
3408 (vCont_supported, disable_randomization, pass_signals)
3409 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3410 Moved to client_state.
3411 * remote-utils.c (remote_debug, noack_mode)
3412 (transport_is_reliable): Moved to client_state.
3413 * tracepoint.c (current_traceframe): Moved to client_state.
3416 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3417 linux-low.c, remote-utils.h, target.c: Use client_state.
3419 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3421 * configure.srv: Add new c/h file.
3423 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3425 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3428 2018-05-25 Maciej W. Rozycki <macro@mips.com>
3430 * gdb.arch/mips-fpregset-core.exp: New test.
3431 * gdb.arch/mips-fpregset-core.c: New test source.
3433 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3436 * hostio.c (require_int): Do not report overflow for integers
3437 between 0xfffffff and 0x7fffffff.
3439 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3441 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3442 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3443 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3445 (the_low_target): Wire them.
3447 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3449 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3450 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3451 mode. Call collect_register_by_name with vscr using
3452 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3453 (ppc_store_vrregset): Add and set vscr_offset variable as in
3454 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3457 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3459 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3460 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3461 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3463 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3465 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3466 (ppc_store_vsxregset): Likewise.
3467 (ppc_fill_vrregset): Likewise.
3468 (ppc_store_vrregset): Likewise.
3469 (ppc_fill_evrregset): Likewise.
3470 (ppc_store_evrregset): Likewise.
3471 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3472 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3475 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3477 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3478 wordsize of the inferior. Call ppc_linux_target_wordsize.
3480 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3482 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3483 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3484 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3485 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3486 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3487 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3488 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3489 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3490 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3491 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3492 (tdesc_powerpc_e500l): Remove.
3493 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3494 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3495 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3496 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3498 (ppc_arch_setup): Remove target description matching code. Fill a
3499 ppc_linux_features struct and call ppc_linux_match_description
3502 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3504 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3505 width of the requested register exceeds the width of the
3507 (mips_cannot_store_register): Likewise.
3509 2018-05-21 Maciej W. Rozycki <macro@mips.com>
3511 * linux-mips-low.c (mips_fetch_register): New function. Update
3513 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3514 (the_low_target): Wire `mips_fetch_register'.
3516 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3518 * lynx-i386-low.c (LYNXOS_178): New macro.
3519 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3520 the layout on LynxOS-178.
3521 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3522 handle floating point registers that are not supported by
3525 2018-05-10 Tom Tromey <tom@tromey.com>
3527 * configure: Rebuild.
3529 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3532 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3533 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3534 Use it to set the expedite_regs field in the given tdesc.
3535 * x86-tdesc.h: New file.
3536 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3537 Adjust following the addition of the new expedite_regs parameter
3538 to init_target_desc.
3539 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3540 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3541 (i386_linux_read_description, amd64_linux_read_description):
3542 Adjust following the addition of the new expedite_regs parameter
3543 to init_target_desc.
3544 * lynx-i386-low.c: #include "x86-tdesc.h".
3545 (lynx_i386_arch_setup): Adjust following the addition of the new
3546 expedite_regs parameter to init_target_desc.
3547 * nto-x86-low.c: #include "x86-tdesc.h".
3548 (nto_x86_arch_setup): Adjust following the addition of the new
3549 expedite_regs parameter to init_target_desc.
3550 * win32-i386-low.c: #include "x86-tdesc.h".
3551 (i386_arch_setup): Adjust following the addition of the new
3552 expedite_regs parameter to init_target_desc.
3554 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3557 * win32-low.c (win32_create_inferior): Add call to my_wait
3558 setting last_status global.
3560 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3563 * win32-low.c (create_process): Only call gdb_tilde_expand if
3564 inferior_cwd is not NULL.
3566 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3568 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3569 registers to the cache if their values have changed.
3570 (i387_xsave_to_cache): Provide default values for x87 control
3571 registers when these features are available, but disabled.
3572 * regcache.c (supply_register_by_name_zeroed): New function.
3573 * regcache.h (supply_register_by_name_zeroed): Declare new
3576 2018-05-07 Tom Tromey <tom@tromey.com>
3578 * configure: Rebuild.
3580 2018-05-04 Tom Tromey <tom@tromey.com>
3582 * configure: Rebuild.
3584 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3585 Pedro Alves <palves@redhat.com>
3587 * linux-aarch64-low.c (aarch64_stopped_data_address):
3590 2018-04-27 Tom Tromey <tom@tromey.com>
3592 * configure: Rebuild.
3594 2018-04-23 Tom Tromey <tom@tromey.com>
3596 * configure: Rebuild.
3598 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3600 * Makefile.in (depcomp): Add "..".
3601 (all_deps_files): New and use it.
3603 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3605 * configure.srv (aarch64*-*-linux*): Don't include xml.
3606 (i[34567]86-*-cygwin*): Likewise.
3607 (i[34567]86-*-linux*): Likewise.
3608 (i[34567]86-*-lynxos*): Likewise.
3609 (i[34567]86-*-mingw32ce*): Likewise.
3610 (i[34567]86-*-mingw*): Likewise.
3611 (i[34567]86-*-nto*): Likewise.
3612 (tic6x-*-uclinux): Likewise.
3613 (x86_64-*-linux*): Likewise.
3614 (x86_64-*-mingw*): Likewise.
3615 (x86_64-*-cygwin*): Likewise.
3617 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3619 * tdesc.c: Remove xml parameter.
3621 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3623 * server.c (get_features_xml): Remove cast.
3624 * tdesc.c (void target_desc::accept): Fill in function.
3625 (tdesc_get_features_xml): Remove old xml creation.
3626 (print_xml_feature::visit_pre): Add xml vistor.
3627 * tdesc.h (struct target_desc): Make xmltarget mutable.
3628 (tdesc_get_features_xml): Remove declaration.
3630 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3632 * tdesc.c (tdesc_architecture_name): Add new function.
3633 (tdesc_osabi_name): Likewise.
3634 (tdesc_get_features_xml): Use new functions.
3636 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3638 * tdesc.c (tdesc_create_flags): Remove.
3639 (tdesc_add_flag): Likewise.
3640 (tdesc_named_type): Likewise.
3641 (tdesc_create_union): Likewise.
3642 (tdesc_create_struct): Likewise.
3643 (tdesc_create_vector): Likewise.
3644 (tdesc_add_bitfield): Likewise.
3645 (tdesc_add_field): Likewise.
3646 (tdesc_set_struct_size): Likewise.
3648 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3650 * tdesc.c (~target_desc): Remove implictly deleted items.
3651 (init_target_desc): Iterate all features.
3652 (tdesc_get_features_xml): Use vector.
3653 (tdesc_create_feature): Create feature.
3654 * tdesc.h (tdesc_feature) Remove
3655 (target_desc): Add features.
3657 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3659 * Makefile.in: Add common/tdesc.c
3660 * tdesc.c (init_target_desc): init all reg_defs from register
3662 (tdesc_create_reg): Create tdesc_reg.
3663 * tdesc.h (tdesc_feature): Add register vector.
3665 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3667 * tdesc.h (struct target_desc) <features>: Change type to
3668 std::vector<std::string>.
3669 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
3671 (tdesc_get_features_xml): Likewise.
3672 (tdesc_create_feature): Likewise.
3674 2018-03-26 Alan Hayward <alan.hayward@arm.com>
3676 * regcache.c (find_register_by_number): Return a ref.
3677 (find_regno): Use references.
3678 (register_size): Likewise.
3679 (register_data): Likewise.
3680 * tdesc.c (target_desc::~target_desc): Remove free calls.
3681 (target_desc::operator==): Use std::vector compare.
3682 (init_target_desc): Use reference.
3683 (tdesc_create_reg): Use reg constructors.
3684 * tdesc.h (struct target_desc): Replace pointer with object.
3686 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3688 * regcache.c (find_register_by_number): Make static.
3689 (find_regno): Use find_register_by_number
3690 * regcache.h (struct reg): Remove declaration.
3692 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3694 * tdesc.c (target_desc::~target_desc): Move to here.
3695 (target_desc::operator==): Likewise.
3696 * tdesc.h (target_desc::~target_desc): Move from here.
3697 (target_desc::operator==): Likewise.
3699 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3701 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3703 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3705 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3707 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
3708 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
3709 and init_registers_s390_gs_linux64.
3711 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3713 * linux-s390-low.c (s390_fill_gs): Remove function.
3714 (s390_fill_gsbc): Remove function.
3715 (s390_regsets): Set fill functions for the guarded storage regsets
3718 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3720 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
3721 the word size. Add comment.
3722 (s390_get_wordsize): New function.
3723 (s390_arch_setup): No longer select a temporary tdesc to fetch the
3724 pswm with it. Instead, use s390_get_wordsize to determine the
3725 word size first and derive the correct tdesc from that directly.
3727 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3729 * Makefile.in: Include silent-rules.mk.
3730 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
3731 (COMPILE): Add ECHO_CXX.
3732 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3733 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3734 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
3735 (version-generated.c): Add ECHO_GEN.
3736 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
3737 (IPAGENT_COMPILE): Add ECHO_CXX.
3738 (%-generated.c): Add ECHO_REGDAT.
3740 2018-03-14 Tom Tromey <tom@tromey.com>
3743 * ax.c (ax_printf): Special case for NULL.
3745 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3747 * linux-low.c (linux_qxfer_libraries_svr4): Use
3748 xml_escape_text_append.
3750 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3752 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3754 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3756 * server.c (handle_general_set): Remove unnecessary xstrdup.
3758 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3760 * server.c (parse_debug_format_options): Adjust to
3761 delim_string_to_char_ptr_vec changes.
3762 * thread-db.c (thread_db_load_search): Adjust to
3763 dirnames_to_char_ptr_vec changes.
3765 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3767 * target.h (target_enable_btrace, target_disable_btrace)
3768 (target_read_btrace, target_read_btrace_conf): Turn macro into
3769 inline function. Throw error if target method is not defined.
3770 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
3771 check for btrace target method. Be prepared to handle exceptions
3772 from btrace target methods.
3774 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3776 * server.c (captured_main): Change order of error message printed
3777 when the current working directory cannot be found.
3779 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3781 * server.c: Include "filenames.h" and "pathstuff.h".
3782 (program_name): Delete variable.
3783 (program_path): New anonymous class.
3784 (get_exec_wrapper): Use "program_path" instead of
3786 (handle_v_run): Likewise.
3787 (captured_main): Likewise.
3788 (process_serial_event): Likewise.
3790 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3792 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
3793 (OBJS): Add "pathstuff.o".
3794 * server.c (current_directory): New global variable.
3795 (captured_main): Initialize "current_directory".
3797 2018-02-26 Alan Hayward <alan.hayward@arm.com>
3799 * tdesc.c: Use common/tdesc.h.
3800 * tdesc.h: Likewise.
3802 2018-02-20 Alan Hayward <alan.hayward@arm.com>
3803 Simon Marchi <simon.marchi@ericsson.com>
3805 * Makefile.in: Switch order of make rules.
3807 2018-02-19 Alan Hayward <alan.hayward@arm.com>
3809 * Makefile.in: Add common directory in build.
3810 * configure.ac: Add common reference.
3811 * configure: Regenerate.
3813 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3815 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
3816 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
3817 * spu-low.c (spu_target_ops): Likewise.
3818 * win32-low.c (win32_target_ops): Likewise.
3819 * server.c (supported_btrace_packets): Report packets unconditionally.
3820 * target.h (target_ops) <supports_btrace>: Remove.
3821 (target_supports_btrace): Remove.
3823 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3825 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3826 (handle_btrace_disable): Change return type to void. Use exceptions
3828 (handle_btrace_general_set): Catch exception and copy message to
3831 2018-02-08 Tom Tromey <tom@tromey.com>
3833 * linux-low.c (install_software_single_step_breakpoints): Use
3834 make_scoped_restore.
3835 * inferiors.c (make_cleanup_restore_current_thread): Remove.
3836 (do_restore_current_thread_cleanup): Remove.
3837 * gdbthread.h (make_cleanup_restore_current_thread): Don't
3840 2018-02-08 Tom Tromey <tom@tromey.com>
3842 * mem-break.c (set_raw_breakpoint_at): Use
3843 gdb::unique_xmalloc_ptr.
3845 2018-01-30 Pedro Alves <palves@redhat.com>
3848 * target.c (target_terminal::terminal_state): Rename to ...
3849 (target_terminal::m_terminal_state): ... this.
3851 2018-01-19 James Clarke <jrtc27@jrtc27.com>
3853 * linux-low.c (handle_extended_wait): Surround call to
3854 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3856 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3858 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3859 linux_ptrace_attach_fail_reason_string now returning an
3861 (linux_attach): Likewise.
3862 * thread-db.c (attach_thread): Likewise.
3864 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3867 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3868 checking for fs_base/gs_base fields in struct user_regs_struct.
3869 * configure: Regenerate.
3871 2018-01-16 Yao Qi <yao.qi@linaro.org>
3874 * linux-low.c (fetch_register): Call supply_register instead of
3877 2018-01-08 Yao Qi <yao.qi@linaro.org>
3878 Simon Marchi <simon.marchi@ericsson.com>
3880 * Makefile.in (OBS): Remove selftest.o.
3881 * configure.ac: Set srv_selftest_objs if $development is true.
3882 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
3883 * configure: Re-generated.
3884 * server.c (captured_main): Wrap variable selftest_filter with
3887 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
3889 * server.c (parse_debug_format_options): Return std::string.
3890 (handle_monitor_command, captured_main): Adjust.
3892 2018-01-05 Pedro Alves <palves@redhat.com>
3895 * server.c (captured_main): Pass quiet=false to
3896 save_original_signals_state.
3898 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3900 * gdbreplay.c (gdbreplay_version): Update copyright year in
3902 * server.c (gdbserver_version): Likewise.
3904 2017-12-08 Tom Tromey <tom@tromey.com>
3906 * ax.c (ax_printf): Update.
3908 2017-12-07 Yao Qi <yao.qi@linaro.org>
3910 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
3911 aarch64_linux_read_description.
3912 * linux-amd64-ipa.c (idx2mask): New array.
3913 (get_ipa_tdesc): Move idx2mask out.
3914 (initialize_low_tracepoint): Initialize target descriptions.
3915 * linux-i386-ipa.c (idx2mask): New array.
3916 (get_ipa_tdesc): Move idx2mask out.
3917 (initialize_low_tracepoint): Initialize target descriptions.
3919 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
3921 * tdesc.c (struct tdesc_type): Change return type.
3922 (tdesc_add_flag): Change parameter type.
3923 (tdesc_add_bitfield): Likewise.
3924 (tdesc_add_field): Likewise.
3925 (tdesc_set_struct_size): Likewise.
3927 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
3929 * regcache.c (registers_to_string): Remove unused variable.
3931 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3933 * inferiors.c (for_each_inferior_with_data): Remove.
3934 * inferiors.h (for_each_inferior_with_data): Remove.
3935 * server.c (handle_qxfer_threads_worker): Change parameter type.
3936 (handle_qxfer_threads_proper): Use for_each_thread.
3938 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3940 * inferiors.c (for_each_inferior): Remove.
3941 (clear_inferiors): Use for_each_thread.
3942 * inferiors.h (for_each_inferior): Remove.
3943 * linux-low.c (linux_wait_for_event_filtered): Use
3945 (linux_stabilize_threads): Likewise.
3946 * regcache.c (regcache_release): Likewise.
3947 * server.c (gdb_wants_all_threads_stopped): Likewise.
3948 (clear_pending_status_callback): Remove.
3949 (handle_status): Use for_each_thread.
3950 (captured_main): Likewise.
3951 * win32-low.c (child_init_thread_list): Likewise.
3952 (win32_clear_inferiors): Likewise.
3953 (fake_breakpoint_event): Likewise.
3955 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3957 * inferiors.h (find_inferior): Remove.
3958 * inferiors.c (find_inferior): Remove.
3960 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3962 * linux-low.c (resume_status_pending_p): Update comment.
3963 (need_step_over_p): Update comment.
3965 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3967 * linux-low.c (proceed_one_lwp): Return void, change parameter
3969 (unsuspend_and_proceed_one_lwp): Likewise.
3970 (proceed_all_lwps): Use for_each_thread.
3971 (unstop_all_lwps): Likewise.
3973 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3975 * linux-low.c (linux_resume_one_thread): Return void, take
3977 (linux_resume): Use for_each_thread.
3979 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3981 * linux-low.c (send_sigstop_callback): Return void, change
3982 parameter type. Rename to...
3983 (send_sigstop): ... this.
3984 (suspend_and_send_sigstop_callback): Return void, change parameter
3986 (suspend_and_send_sigstop): ... this.
3987 (stop_all_lwps): Use for_each_thread.
3989 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3991 * linux-low.c (lwp_running): Return bool, remove unused
3993 (linux_stabilize_threads): Use find_thread.
3995 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
3997 * linux-low.c (select_singlestep_lwp_callback): Remove.
3998 (count_events_callback): Remove.
3999 (select_event_lwp_callback): Remove.
4000 (select_event_lwp): Use find_thread/for_each_thread.
4002 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4004 * linux-low.c (not_stopped_callback): Return bool, take filter
4006 (linux_wait_for_event_filtered): Use find_thread.
4007 (linux_wait_1): Likewise.
4009 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4011 * linux-low.c (same_lwp): Remove.
4012 (find_lwp_pid): Use find_thread.
4014 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4016 * linux-low.c (delete_lwp_callback): Remove.
4017 (linux_mourn): Use for_each_thread.
4019 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4021 * linux-low.c (linux_detach_lwp_callback): Return void, remove
4022 args parameter, don't check for pid.
4023 (linux_detach): Use for_each_thread.
4025 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4027 * linux-low.c (struct counter): Remove.
4028 (second_thread_of_pid_p): Remove.
4029 (last_thread_of_process_p): Use find_thread.
4031 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4033 * inferiors.c (find_inferior_in_random): Remove.
4034 * inferiors.h (find_inferior_in_random): Remove.
4035 * linux-low.c (status_pending_p_callback): Return bool, accept
4036 parameter ptid directly.
4037 (linux_wait_for_event_filtered): Use find_thread_in_random.
4038 (linux_wait_1): Likewise.
4040 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4042 * inferiors.c (find_inferior_id): Remove.
4043 (find_thread_ptid): Move implemention from find_inferior_id to
4045 * inferiors.h (find_inferior_id): Remove.
4046 * server.c (handle_status): Use find_thread_ptid.
4047 (process_serial_event): Likewise.
4048 * thread-db.c (find_one_thread): Likewise.
4049 (thread_db_thread_handle): Likewise.
4050 * win32-low.c (thread_rec): Likewise.
4051 (child_delete_thread): Likewise.
4052 (win32_thread_alive): Likewise.
4053 (get_child_debug_event): Likewise.
4055 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4057 * linux-mips-low.c (update_watch_registers_callback): Return
4058 void, remove pid_p parameter, don't check for pid.
4059 (mips_insert_point, mips_remove_point): Use for_each_thread.
4061 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4063 * lynx.low (lynx_delete_thread_callback): Remove.
4064 (lynx_mourn): Use for_each_thread.
4066 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4068 * regcache.c (regcache_invalidate_one): Remove.
4069 (regcache_invalidate_pid): use for_each_thread.
4071 2017-11-26 Tom Tromey <tom@tromey.com>
4073 * linux-low.c (linux_create_inferior): Update.
4075 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
4077 * spu-low.c (spu_create_inferior): Fix typo in argument name.
4079 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4081 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
4082 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4083 * linux-aarch64-tdesc-selftest.c: New file.
4084 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4086 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4088 * configure.srv: Add new file.
4089 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4090 * linux-aarch64-tdesc-selftest.c: New file.
4091 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4093 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4095 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
4096 * linux-aarch64-low.c (initialize_low_arch): Remove init.
4097 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
4099 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4101 * configure.srv: Add new files.
4102 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
4103 aarch64_linux_read_description.
4104 * linux-aarch64-low.c (aarch64_linux_read_description):
4105 Merge with aarch64_arch_setup.
4106 (aarch64_arch_setup): Call aarch64_linux_read_description.
4107 * linux-aarch64-tdesc.c: New file.
4108 * linux-aarch64-tdesc.h: New file.
4110 2017-11-24 Yao Qi <yao.qi@linaro.org>
4112 * configure.srv: Set $srv_regobj for tic6x-linux.
4113 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
4114 (tic6x_read_description): Move some code to tic6x_arch_setup.
4115 (tic6x_tdesc_test): New function.
4116 (initialize_low_arch): Call selftests::register_test.
4118 2017-11-22 Yao Qi <yao.qi@linaro.org>
4120 * remote-utils.c (prepare_resume_reply): Use memcpy.
4122 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4124 * linux-low.c (kill_one_lwp_callback): Return void, take
4125 argument directly, don't filter on pid.
4126 (linux_kill): Use for_each_thread.
4128 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4130 * linux-low.c (need_step_over_p): Return bool, remove dummy
4132 (linux_resume, proceed_all_lwps): Use find_thread.
4134 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4136 * linux-low.c (resume_status_pending_p): Return bool, remove
4138 (linux_resume): Use find_thread.
4140 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4142 * linux-low.c (struct thread_resume_array): Remove.
4143 (linux_set_resume_request): Return void, take arguments
4145 (linux_resume): Use for_each_thread.
4147 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4149 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
4150 return bool, remove data argument.
4151 (linux_stabilize_threads): Use find_thread.
4153 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4155 * linux-low.c (unsuspend_one_lwp): Remove.
4156 (unsuspend_all_lwps): Use for_each_thread, inline code from
4159 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4161 * gdbthread.h (find_thread): Add overload with ptid_t filter.
4162 * linux-low.c (struct iterate_over_lwps_args): Remove.
4163 (iterate_over_lwps_filter): Remove.
4164 (iterate_over_lwps): Use find_thread.
4166 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4168 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
4169 (linux_handle_new_gdb_connection): Use for_each_thread, inline
4170 code from reset_lwp_ptrace_options_callback.
4172 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4174 * linux-arm-low.c (struct update_registers_data): Remove.
4175 (update_registers_callback): Return void, take arguments
4176 directly, don't check thread's pid.
4177 (arm_insert_point, arm_remove_point): Use for_each_thread.
4179 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4181 * win32-low.c (continue_one_thread): Return void, take argument
4183 (child_continue): Use for_each_thread.
4185 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4187 * win32-i386-low.c (update_debug_registers_callback): Rename
4189 (update_debug_registers): ... this, return void, remove pid_p arg.
4190 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
4192 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4194 * inferiors.h (struct process_info): Add constructor, initialize
4196 <syscalls_to_catch>: Change type to std::vector<int>.
4197 * inferiors.c (add_process): Allocate process_info with new.
4198 (remove_process): Free process_info with delete.
4199 * linux-low.c (handle_extended_wait): Adjust.
4200 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4201 * server.c (handle_general_set): Adjust.
4203 2017-11-16 Pedro Alves <palves@redhat.com>
4205 * remote-utils.c (remote_close): Block SIGIO signals instead of
4206 uninstalling the SIGIO handler.
4208 2017-11-16 Alan Hayward <alan.hayward@arm.com>
4210 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4212 2017-11-16 Yao Qi <yao.qi@linaro.org>
4214 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4215 (tic6x_store_gregset): Likewise.
4216 (tic6x_usrregs_info): Move it up.
4218 2017-11-15 Alan Hayward <alan.hayward@arm.com>
4220 * Makefile.in: Update arch rules.
4221 * configure.srv: Explicitly mark arch/ files.
4223 2017-11-13 Andreas Schwab <schwab@suse.de>
4225 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4227 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4229 2017-11-06 Pedro Alves <palves@redhat.com>
4231 * config.in, configure: Regenerate.
4233 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4235 * target.c (struct thread_search): Remove.
4236 (thread_search_callback): Remove.
4237 (prepare_to_access_memory): Use for_each_thread instead of
4238 find_inferior. Inline code from thread_search_callback.
4240 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4242 * server.c (struct visit_actioned_threads_data): Remove.
4243 (visit_actioned_threads): Change prototype to take arguments
4245 (resume): Use find_thread instead of find_inferior.
4247 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4249 * server.c (queue_stop_reply_callback): Change prototype, return
4251 (find_status_pending_thread_callback): Remove.
4252 (handle_status): Replace find_inferior with find_thread and
4255 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4257 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4259 (aarch64_store_gregset): Likewise.
4260 (aarch64_fill_fpregset): Likewise.
4261 (aarch64_store_fpregset): Likewise.
4263 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4265 * gdbthread.h (find_thread, for_each_thread): New functions.
4266 * inferiors.c (thread_of_pid): Remove.
4267 (find_any_thread_of_pid): Use find_thread.
4268 * linux-low.c (num_lwps): Use for_each_thread.
4270 2017-10-17 Yao Qi <yao.qi@linaro.org>
4272 * Makefile.in: Remove one rule.
4273 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4275 2017-10-17 Yao Qi <yao.qi@linaro.org>
4277 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4278 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4280 2017-10-17 Yao Qi <yao.qi@linaro.org>
4282 * configure.srv: Rename arm.o with arch/arm.o.
4284 2017-10-17 Yao Qi <yao.qi@linaro.org>
4286 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4287 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4288 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4289 (arch-i386.o, arch-amd64.o): Remove rules.
4290 (arch/%.o): New rule.
4291 Update POSTCOMPILE and COMPILE.pre.
4292 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4293 * configure: Re-generated.
4294 * configure.srv: Replace arch-i386.o with arch/i386.o.
4295 Replace arch-amd64.o with arch/amd64.o.
4297 2017-10-16 Yao Qi <yao.qi@linaro.org>
4299 * configure: Regenerated.
4301 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4303 * inferiors.h: (struct inferior_list): Remove.
4304 (struct inferior_list_entry); Remove.
4305 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4306 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4307 get_first_inferior): Remove.
4308 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4309 find_inferior_id, find_inferior_in_random): Change signature.
4310 * inferiors.c (all_threads): Change type to
4311 std::list<thread_info *>.
4312 (get_thread): Remove macro.
4313 (find_inferior, find_inferior_id): Change signature, implement
4315 (find_inferior_in_random): Change signature, implement using
4316 find_thread_in_random.
4317 (for_each_inferior, for_each_inferior_with_data): Change
4318 signature, implement using for_each_thread.
4319 (add_inferior_to_list, remove_inferior): Remove.
4320 (add_thread, get_first_thread, thread_of_pid,
4321 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4322 (get_first_inferior, one_inferior_p, clear_inferior_list):
4324 (clear_inferiors, get_thread_process): Update.
4325 * gdbthread.h: Include <list>.
4326 (struct thread_info) <entry>: Remove field.
4328 (all_threads): Change type to std::list<thread_info *>.
4329 (get_first_inferior): Add doc.
4330 (find_thread, for_each_thread, find_thread_in_random): New
4332 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4333 * linux-arm-low.c (update_registers_callback): Update.
4334 * linux-low.c (second_thread_of_pid_p): Update.
4335 (kill_one_lwp_callback, linux_detach_lwp_callback,
4336 delete_lwp_callback, status_pending_p_callback, same_lwp,
4337 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4338 iterate_over_lwps, not_stopped_callback,
4339 resume_stopped_resumed_lwps, count_events_callback,
4340 select_singlestep_lwp_callback, select_event_lwp_callback,
4341 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4342 suspend_and_send_sigstop_callback, wait_for_sigstop,
4343 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4344 lwp_running, linux_set_resume_request, resume_status_pending_p,
4345 need_step_over_p, start_step_over, linux_resume_one_thread,
4346 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4347 reset_lwp_ptrace_options_callback): Update.
4348 * linux-mips-low.c (update_watch_registers_callback): Update.
4349 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4351 (free_register_cache_thread_one): Remove.
4352 (regcache_release): Update.
4353 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4354 handle_qxfer_threads_worker): Update.
4355 (handle_query): Update, use list iterator.
4356 (visit_actioned_threads, handle_pending_status,
4357 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4358 clear_pending_status_callback, set_pending_status_callback,
4359 find_status_pending_thread_callback, handle_status,
4360 process_serial_event): Update.
4361 * target.c (thread_search_callback): Update.
4362 * thread-db.c (thread_db_get_tls_address): Update.
4363 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4365 * win32-i386-low.c (update_debug_registers_callback): Update.
4366 * win32-low.c (delete_thread_info, child_delete_thread,
4367 continue_one_thread, suspend_one_thread,
4368 get_child_debug_event): Adjust.
4370 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4372 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4373 * inferiors.h: Include <list>.
4374 (struct process_info) <entry>: Remove field.
4376 (pid_of): Change macro to function.
4377 (ptid_of, lwpid_of): Remove macro.
4378 (all_processes): Change type to std::list<process_info *>.
4379 (ALL_PROCESSES): Remove macro.
4380 (for_each_process, find_process): New function.
4381 * inferiors.c (all_processes): Change type to
4382 std::list<process_info *>.
4383 (find_thread_process): Adjust.
4384 (add_process): Likewise.
4385 (remove_process): Likewise.
4386 (find_process_pid): Likewise.
4387 (get_first_process): Likewise.
4388 (started_inferior_callback): Remove.
4389 (have_started_inferiors_p): Adjust.
4390 (attached_inferior_callback): Remove.
4391 (have_attached_inferiors_p): Adjust.
4392 * linux-low.c (check_zombie_leaders): Likewise.
4393 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4394 (x86_linux_update_xmltarget): Adjust.
4395 * server.c (handle_query): Likewise.
4396 (gdb_reattached_process): Remove.
4397 (handle_status): Adjust.
4398 (kill_inferior_callback): Likewise.
4399 (detach_or_kill_inferior): Remove.
4400 (print_started_pid): Likewise.
4401 (print_attached_pid): Likewise.
4402 (detach_or_kill_for_exit): Update.
4403 (process_serial_event): Likewise.
4404 * linux-arm-low.c (arm_new_fork): Likewise.
4406 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4408 * dll.h: Include <list>.
4409 (struct dll_info): Add constructor.
4410 <entry>: Remove field.
4411 (all_dlls): Change type to std::list<dll_info>.
4412 * dll.c: Include <algorithm>.
4413 (get_dll): Remove macro.
4414 (all_dlls): Change type to std::list<dll_info *>.
4415 (free_one_dll): Remove.
4416 (match_dll): Likewise.
4417 (loaded_dll): Adjust.
4418 (unloaded_dll): Adjust to all_dlls type change, use
4419 std::find_if. Inline code from match_dll.
4420 (clear_dlls): Adjust to all_dlls type change.
4421 * server.c (emit_dll_description): Remove.
4422 (handle_qxfer_libraries): Adjust to all_dlls type change,
4423 integrate emit_dll_description's functionality.
4425 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4427 * linux-low.h (struct linux_target_ops) <delete_process>: New
4429 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4430 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4431 (struct linux_target_ops): Add delete_process callback.
4432 * linux-arm-low.c (arm_delete_process): New.
4433 (struct linux_target_ops): Add delete_process callback.
4434 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4435 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4436 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4437 * linux-mips-low.c (mips_linux_delete_process): New.
4438 (struct linux_target_ops): Add delete_process callback.
4439 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4440 * linux-s390-low.c (struct linux_target_ops): Likewise.
4441 * linux-sh-low.c (struct linux_target_ops): Likewise.
4442 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4443 * linux-tile-low.c (struct linux_target_ops): Likewise.
4444 * linux-x86-low.c (x86_linux_delete_process): New.
4445 (struct linux_target_ops): Add delete_process callback.
4446 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4448 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4450 * linux-aarch64-low.c (the_low_target): Add thread delete
4452 * linux-arm-low.c (arm_delete_thread): New function.
4453 (the_low_target): Add thread delete callback.
4454 * linux-bfin-low.c (the_low_target): Likewise.
4455 * linux-crisv32-low.c (the_low_target): Likewise.
4456 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4458 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4460 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4461 * linux-mips-low.c (mips_linux_delete_thread): New function.
4462 (the_low_target): Add thread delete callback.
4463 * linux-ppc-low.c (the_low_target): Likewise.
4464 * linux-s390-low.c (the_low_target): Likewise.
4465 * linux-sh-low.c (the_low_target): Likewise.
4466 * linux-tic6x-low.c (the_low_target): Likewise.
4467 * linux-tile-low.c (the_low_target): Likewise.
4468 * linux-x86-low.c (the_low_target): Likewise.
4469 * linux-xtensa-low.c (the_low_target): Likewise.
4471 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4473 * win32-low.c: Include "common-inferior.h".
4475 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4477 * inferiors.c (set_inferior_cwd): New function.
4478 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4479 (handle_query): Inform that QSetWorkingDir is supported.
4480 * win32-low.c (create_process): Pass the inferior's cwd to
4483 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4485 * inferiors.c (current_inferior_cwd): New global variable.
4486 (get_inferior_cwd): New function.
4487 * inferiors.h (struct process_info) <cwd>: New field.
4489 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4491 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4492 (OBS): Add gdb_tilde_expand.o.
4494 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4496 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4497 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4499 2017-09-29 Pedro Alves <palves@redhat.com>
4501 * ax.c (gdb_parse_agent_expr): Constify.
4502 * ax.h (gdb_parse_agent_expr): Constify.
4503 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4505 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4506 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4507 * remote-utils.h (read_ptid): Constify.
4508 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
4509 (process_point_options, process_serial_event): Constify.
4510 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
4511 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
4512 (cmd_qtbuffer): Constify.
4514 2017-09-29 Pedro Alves <palves@redhat.com>
4516 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4519 2017-09-29 Pedro Alves <palves@redhat.com>
4521 * linux-low.c (handle_extended_wait): Pass parent thread instead
4522 of process to thread_db_notice_clone.
4523 * linux-low.h (thread_db_notice_clone): Replace parent process
4524 parameter with parent thread parameter.
4525 * thread-db.c (find_one_thread): Add comment.
4526 (thread_db_notice_clone): Replace parent process parameter with
4527 parent thread parameter. Temporarily switch to the parent thread.
4529 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4531 * gdbthread.h: Include "common-gdbthread.h".
4532 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4533 "if" when validating the ptid.
4534 * remote-utils.c: Include "gdbthread.h".
4535 (prepare_resume_reply): Use "switch_to_thread".
4536 * target.c (done_accessing_memory): Likewise.
4538 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4540 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4541 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4542 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4543 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4544 s390x-gs-linux64-ipa.o to ipa_obj.
4545 * linux-s390-low.c (HWCAP_S390_GS): New define.
4546 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4548 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4549 (s390_arch_setup): Check for guarded-storage support and choose
4551 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4552 init_registers_s390x_gs_linux64.
4553 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4555 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4556 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4558 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4560 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4562 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4564 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4565 (thread_db_thread_handle): Declare.
4566 * linux-low.c (linux_target_ops): Initialize thread_handle.
4567 * server.c (handle_qxfer_threads_worker): Add support for
4569 * target.h (struct target_ops): Add new function pointer,
4571 (target_thread_handle): Define.
4572 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4574 (thread_db_thread_handle): New function.
4576 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4578 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4579 * linux-low.h (thread_db_notice_clone): Declare.
4580 * thread-db.c (thread_db_notice_clone): New function.
4582 2017-09-21 Pedro Alves <palves@redhat.com>
4584 * server.c (gdb_read_memory, handle_status, process_serial_event)
4585 (handle_serial_event, handle_target_event): Adjust to
4586 set_desired_thread prototype change.
4587 * target.c (set_desired_thread): Remove 'use_general' parameter
4589 * target.h (set_desired_thread): Remove 'use_general' parameter.
4591 2017-09-20 Tom Tromey <tom@tromey.com>
4593 * target.c (target_terminal::terminal_state): Define.
4594 (target_terminal::init): Rename from target_terminal_init.
4595 (target_terminal::inferior): Rename from
4596 target_terminal_inferior.
4597 (target_terminal::ours): Rename from target_terminal_ours.
4598 (target_terminal::ours_for_output, target_terminal::info): New.
4600 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4602 * server.c (accumulate_file_name_length): Remove.
4603 (emit_dll_description): Adjust to std::string change.
4604 (handle_qxfer_libraries): Use std::string to hold document.
4606 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4608 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4609 return type of xml_escape_text.
4610 * server.c (emit_dll_description): Likewise.
4612 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4614 * server.c (captured_main): Accept argument for --selftest.
4615 Update run_tests call.
4616 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
4617 when registering selftests.
4619 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4621 * regcache.c (get_thread_regcache): Update code to use "std::vector"
4622 instead of "VEC" for "target_desc.reg_defs".
4623 (regcache_cpy): Likewise.
4624 (registers_to_string): Likewise.
4625 (registers_from_string): Likewise.
4626 (find_regno): Likewise.
4627 (supply_regblock): Likewise.
4628 (regcache_raw_read_unsigned): Likewise.
4629 * tdesc.c (init_target_desc): Likewise.
4630 (tdesc_create_reg): Likewise.
4631 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
4632 (struct target_desc) <reg_defs>: Convert to "std::vector".
4633 (target_desc): Do not initialize "reg_defs".
4634 (~target_desc): Update code to use "std::vector" instead of "VEC"
4635 for "target_desc.reg_defs".
4636 (operator==): Likewise.
4638 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4640 * inferiors.h (thread_to_gdb_id): Remove.
4641 * inferiors.c (thread_to_gdb_id): Remove.
4642 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
4643 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
4644 lynx_store_registers, lynx_read_memory, lynx_write_memory):
4646 * nto-low.c (nto_fetch_registers, nto_store_registers,
4647 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4649 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4651 * inferiors.h (gdb_id_to_thread_id): Remove.
4652 * inferiors.c (gdb_id_to_thread_id): Remove.
4653 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
4654 removal. Move pid declaration closer to where it's used.
4656 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4658 * server.c (handle_detach): New function.
4659 (process_serial_event): Move code out, call handle_detach.
4661 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4663 * server.c (require_running): Rename to ...
4664 (require_running_or_return): ... this ...
4665 (require_running_or_break): ... and this.
4666 (handle_query, process_serial_event): Adjust.
4668 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4670 * linux-low.c (linux_set_resume_request): Remove unused
4673 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4675 * server.c (first_thread_of): Remove.
4676 (process_serial_event): Replace usage of first_thread_of with
4677 find_any_thread_of_pid.
4678 * tracepoint.c (same_process_p): Remove.
4679 (gdb_agent_about_to_close): Replace usage of same_process_p with
4680 find_any_thread_of_pid.
4681 * linux-x86-low.c (same_process_callback): Remove.
4682 (x86_arch_setup_process_callback): Replace usage of
4683 same_process_callback with find_any_thread_of_pid.
4684 * thread-db.c (any_thread_of): Remove.
4685 (switch_to_process): Replace usage of any_thread_of with
4686 find_any_thread_of_pid.
4687 * inferiors.c (thread_pid_matches_callback): Remove.
4688 (find_thread_process): Adjust to use find_any_thread_of_pid.
4690 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4692 * regcache.c (get_thread_regcache): Guard calls to "memset"
4695 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4697 * linux-low.c (handle_extended_wait): Use
4698 "allocate_target_description" instead of "XNEW".
4699 * linux-x86-low.c (initialize_low_arch): Likewise.
4701 2017-09-05 Yao Qi <yao.qi@linaro.org>
4703 * configure.srv (srv_i386_regobj): Remove.
4704 (srv_amd64_regobj): Remove.
4705 (srv_regobj): Set it to "" for x86 non-linux targets.
4706 * linux-x86-tdesc.c (i386_linux_read_description):
4707 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
4708 (init_registers_i386): Remove the declaration.
4709 (tdesc_i386): Remove the declaration.
4710 (lynx_i386_arch_setup): Call i386_create_target_description.
4711 * nto-x86-low.c: Likewise.
4712 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
4713 [!__x86_64__]: include arch/i386.h.
4714 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
4716 2017-09-05 Yao Qi <yao.qi@linaro.org>
4718 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4719 i386/amd64-XXX-linux from it.
4721 2017-09-05 Yao Qi <yao.qi@linaro.org>
4723 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4725 (ipa_amd64_linux_regobj): Remove.
4726 (ipa_x32_linux_regobj): Remove.
4728 2017-09-05 Yao Qi <yao.qi@linaro.org>
4730 * Makefile.in (arch-amd64.o): New rule.
4731 * configure.srv: Append arch-amd64.o.
4732 * linux-amd64-ipa.c: Include common/x86-xstate.h.
4733 (get_ipa_tdesc): Call amd64_linux_read_description.
4734 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
4735 and init_registers_amd64_XXX.
4736 * linux-x86-low.c (x86_linux_read_description): Call
4737 amd64_linux_read_description.
4738 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
4739 (initialize_low_arch): Don't call init_registers_x32_XXX and
4740 init_registers_amd64_XXX.
4741 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
4742 and tdesc_amd64_XXX.
4743 [__x86_64__] (amd64_tdesc_test): New function.
4744 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
4745 and init_registers_amd64_XXX.
4746 * linux-x86-tdesc.c: Include arch/amd64.h.
4747 (xcr0_to_tdesc_idx): New function.
4748 (i386_linux_read_description): New function.
4749 (amd64_get_ipa_tdesc_idx): New function.
4750 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
4751 (amd64_get_ipa_tdesc): Declare.
4753 2017-09-05 Yao Qi <yao.qi@linaro.org>
4755 * configure.srv (srv_i386_linux_xmlfiles): Remove
4756 i386/i386-XXX-linux.xml from it.
4758 2017-09-05 Yao Qi <yao.qi@linaro.org>
4760 * configure.srv: Set srv_i386_linux_regobj empty if $development
4762 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
4763 initialize_low_tdesc.
4764 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
4765 with #if initialize_low_tdesc.
4766 * linux-x86-tdesc-selftest.c: New file.
4767 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
4769 2017-09-05 Yao Qi <yao.qi@linaro.org>
4771 * Makefile.in (arch-i386.o): New rule.
4772 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
4773 (x86_64-*-linux*): Likewise.
4774 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
4775 include arch/i386.h.
4776 (i386_linux_read_description): Remove code and call
4777 i386_create_target_description.
4778 * tdesc.c (allocate_target_description): New function.
4779 * tdesc.h (set_tdesc_architecture): Remove declaration.
4780 (set_tdesc_osabi): Likewise.
4782 2017-09-05 Yao Qi <yao.qi@linaro.org>
4784 * linux-x86-tdesc.c: Don't include <inttypes.h>.
4785 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
4786 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
4788 * server.c (get_features_xml): Call tdesc_get_features_xml.
4789 * tdesc.c (set_tdesc_architecture): New function.
4790 (set_tdesc_osabi): New function.
4791 (tdesc_get_features_xml): New function.
4792 (tdesc_create_feature): Add an argument.
4793 * tdesc.h (struct target_desc) <features>: New field.
4794 <arch, osabi>: New field.
4795 (~target_desc): xfree features, arch, and osabi.
4796 (target_desc::oerator==): Don't compare .xmltarget.
4797 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
4798 (set_tdesc_osabi): Likewise.
4799 (tdesc_get_features_xml): Likewise.
4801 2017-09-05 Yao Qi <yao.qi@linaro.org>
4803 * linux-x86-tdesc.c: Include selftest.h.
4804 (i386_tdesc_test): New function.
4805 (initialize_low_tdesc): Call selftests::register_test.
4806 * tdesc.h: Include regdef.h.
4807 (target_desc): Override operator == and !=.
4809 2017-09-05 Yao Qi <yao.qi@linaro.org>
4811 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
4812 (ipa_obj): Likewise.
4813 * linux-i386-ipa.c: Include common/x86-xstate.h
4814 (get_ipa_tdesc): Call i386_linux_read_description.
4815 (initialize_low_tracepoint): Don't call init_registers_XXX
4816 functions, call initialize_low_tdesc instead.
4817 * linux-x86-low.c (x86_linux_read_description): Call
4818 i386_linux_read_description.
4819 (initialize_low_arch): Don't call init_registers_i386_XXX
4820 functions, call initialize_low_tdesc.
4821 * linux-x86-tdesc.c: New file.
4822 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
4823 (i386_get_ipa_tdesc_idx): Declare.
4824 (i386_get_ipa_tdesc): Declare.
4825 (initialize_low_tdesc): Declare.
4827 2017-09-05 Yao Qi <yao.qi@linaro.org>
4829 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4832 2017-09-05 Yao Qi <yao.qi@linaro.org>
4834 * Makefile.in (IPA_OBJS): Add vec-ipa.o
4835 * regcache.c (get_thread_regcache): Use VEC_length.
4836 (init_register_cache): Likewise.
4837 (regcache_cpy): Likewise.
4838 (registers_to_string): Iterate reg_defs via VEC_iterate.
4839 (find_regno): Likewise.
4840 (find_register_by_number): Use VEC_index.
4841 (register_size): Call find_register_by_number.
4842 (register_data): Call find_register_by_number.
4843 (supply_regblock): Use VEC_length.
4844 (regcache_raw_read_unsigned): Likewise.
4845 * tdesc.c (init_target_desc): Iterate reg_defs via
4847 (default_description): Update initializer.
4848 (copy_target_description): Don't update field num_registers.
4849 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
4850 <num_registers>: Remove.
4852 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4854 * Makefile.in (.SECONDARY): Define target.
4856 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4858 * linux-low.c (linux_wait_1): Adjust.
4859 * server.c (queue_stop_reply_callback): Adjust.
4861 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4863 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
4864 QEnvironmentUnset and QEnvironmentReset packets.
4865 (handle_query): Inform remote that QEnvironmentHexEncoded,
4866 QEnvironmentUnset and QEnvironmentReset are supported.
4868 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4870 * inferiors.h (inferior_target_data): Rename to ...
4871 (thread_target_data): ... this.
4872 (inferior_regcache_data): Rename to ...
4873 (thread_regcache_data): ... this.
4874 (set_inferior_regcache_data): Rename to ...
4875 (set_thread_regcache_data): ... this.
4876 * inferiors.c (inferior_target_data): Rename to ...
4877 (thread_target_data): ... this.
4878 (inferior_regcache_data): Rename to ...
4879 (thread_regcache_data): ... this.
4880 (set_inferior_regcache_data): Rename to ...
4881 (set_thread_regcache_data): ... this.
4882 (free_one_thread): Update.
4883 * linux-low.h (get_thread_lwp): Update.
4884 * regcache.c (get_thread_regcache): Update.
4885 (regcache_invalidate_thread): Update.
4886 (free_register_cache_thread): Update.
4887 * win32-i386-low.c (update_debug_registers_callback): Update.
4888 (win32_get_current_dr): Update.
4889 * win32-low.c (thread_rec): Update.
4890 (delete_thread_info): Update.
4891 (continue_one_thread): Update.
4892 (suspend_one_thread): Update.
4894 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
4896 * inferiors.c (set_inferior_target_data): Remove.
4897 * inferiors.h (set_inferior_target_data): Remove.
4899 2017-08-18 Yao Qi <yao.qi@linaro.org>
4901 * Makefile.in (OBS): Add selftest.o.
4902 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
4903 * configure, config.in: Re-generated.
4904 * server.c: Include common/sefltest.h.
4905 (captured_main): Handle option --selftest.
4907 2017-08-09 Yao Qi <yao.qi@linaro.org>
4909 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
4910 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
4911 i386-avx-mpx.o and i386-mmx.o.
4912 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
4913 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
4914 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
4915 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
4916 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
4917 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
4918 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
4919 i386/amd64-avx-mpx.xml.
4921 2017-08-09 Yao Qi <yao.qi@linaro.org>
4923 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
4924 and x32-avx-avx512.o.
4925 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
4926 i386/x32-avx-avx512.xml.
4928 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
4930 * tracepoint.h (enum class fast_tpoint_collect_result): New
4932 (fast_tracepoint_collecting): Change return type to
4933 fast_tpoint_collect_result.
4934 * tracepoint.c (fast_tracepoint_collecting): Likewise.
4935 * linux-low.h: Include tracepoint.h.
4936 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
4937 fast_tpoint_collect_result.
4938 * linux-low.c (handle_tracepoints): Adjust.
4939 (linux_fast_tracepoint_collecting): Change return type to
4940 fast_tpoint_collect_result.
4941 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
4942 linux_wait_1, stuck_in_jump_pad_callback,
4943 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
4944 proceed_one_lwp): Adjust to type change.
4946 2017-07-10 Yao Qi <yao.qi@linaro.org>
4948 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
4950 2017-06-29 Yao Qi <yao.qi@linaro.org>
4952 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
4954 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
4956 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
4958 * Makefile.in (IPA_OBJS): Sort and format one item per line.
4960 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
4962 * linux-low.c (linux_create_inferior): Adjust code to access the
4963 environment information via 'gdb_environ' class.
4964 * lynx-low.c (lynx_create_inferior): Likewise.
4965 * server.c (our_environ): Make it an instance of 'gdb_environ'.
4966 (get_environ): Return a pointer to 'our_environ'.
4967 (captured_main): Initialize 'our_environ'.
4968 * server.h (get_environ): Adjust prototype.
4969 * spu-low.c (spu_create_inferior): Adjust code to access the
4970 environment information via 'gdb_environ' class.
4972 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4974 * linux-low.c (linux_read_memory, linux_write_memory): Remove
4975 usage of "register" keyword.
4977 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4979 * configure: Re-generate.
4981 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4983 * configure: Re-generate.
4985 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
4987 * Makefile.in (COMPILE.pre): Add "-x c++".
4989 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
4991 * fork-child.c: Conditionally include <signal.h>.
4993 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
4995 * server.c (handle_general_set): Handle new packet
4996 "QStartupWithShell".
4997 (handle_query): Add "QStartupWithShell" to the list of supported
4999 (gdbserver_usage): Add help text explaining the
5000 new "--startup-with-shell" and "--no-startup-with-shell" CLI
5002 (captured_main): Recognize and act upon the presence of the new
5005 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5006 Pedro Alves <palves@redhat.com>
5008 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
5009 * configure: Regenerate.
5010 * configure.srv (srv_linux_obj): Add "fork-child.o" and
5012 (i[34567]86-*-lynxos*): Likewise.
5013 (spu*-*-*): Likewise.
5014 * fork-child.c: New file.
5015 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
5017 (linux_ptrace_fun): New function.
5018 (linux_create_inferior): Adjust function prototype to reflect
5019 change on "target.h". Adjust function code to use
5021 (linux_request_interrupt): Delete "signal_pid".
5022 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
5023 (lynx_ptrace_fun): New function.
5024 (lynx_create_inferior): Adjust function prototype to reflect
5025 change on "target.h". Adjust function code to use
5027 * nto-low.c (nto_create_inferior): Adjust function prototype and
5028 code to reflect change on "target.h". Update comments.
5029 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
5030 "common-terminal.h" and "environ.h".
5031 (terminal_fd): Moved to fork-child.c.
5032 (old_foreground_pgrp): Likewise.
5033 (restore_old_foreground_pgrp): Likewise.
5034 (last_status): Make it global.
5035 (last_ptid): Likewise.
5036 (our_environ): New variable.
5037 (startup_with_shell): Likewise.
5038 (program_name): Likewise.
5039 (program_argv): Rename to...
5040 (program_args): ...this.
5041 (wrapper_argv): New variable.
5042 (start_inferior): Delete function.
5043 (get_exec_wrapper): New function.
5044 (get_exec_file): Likewise.
5045 (get_environ): Likewise.
5046 (prefork_hook): Likewise.
5047 (post_fork_inferior): Likewise.
5048 (postfork_hook): Likewise.
5049 (postfork_child_hook): Likewise.
5050 (handle_v_run): Update code to deal with arguments coming from the
5051 remote host. Update calls from "start_inferior" to
5053 (captured_main): Likewise. Initialize environment variable. Call
5055 * server.h (post_fork_inferior): New prototype.
5056 (get_environ): Likewise.
5057 (last_status): Declare.
5058 (last_ptid): Likewise.
5059 (signal_pid): Likewise.
5060 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
5061 (spu_ptrace_fun): New function.
5062 (spu_create_inferior): Adjust function prototype to reflect change
5063 on "target.h". Adjust function code to use "fork_inferior".
5064 * target.c (target_terminal_init): New function.
5065 (target_terminal_inferior): Likewise.
5066 (target_terminal_ours): Likewise.
5067 * target.h: Include <vector>.
5068 (struct target_ops) <create_inferior>: Update prototype.
5069 (create_inferior): Update macro.
5070 * utils.c (gdb_flush_out_err): New function.
5071 * win32-low.c (win32_create_inferior): Adjust function prototype
5072 and code to reflect change on "target.h".
5074 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5076 * inferiors.c (switch_to_thread): New function.
5078 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5080 * Makefile.in (SFILE): Add "common/job-control.c".
5081 (OBS): Add "job-control.o".
5083 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5085 * Makefile: Remove "@host_makefile_frag@".
5087 2017-05-05 Pedro Alves <palves@redhat.com>
5089 * configure: Regenerate.
5091 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5093 * configure: Regenerate.
5095 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5097 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
5098 software_single_step change of return type to
5099 std::vector<CORE_ADDR>.
5100 * linux-low.c (install_software_single_step_breakpoints):
5102 * linux-low.h (install_software_single_step_breakpoints):
5105 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5107 * remote-utils.c: Include "gdb_termios.h" instead of
5109 * terminal.h: Delete file.
5111 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5113 * server.c: Include <vector>.
5114 <program_argv, wrapper_argv>: Convert to std::vector.
5115 (start_inferior): Rewrite function to use C++.
5116 (handle_v_run): Likewise. Update code that calculates the argv
5117 based on the vRun packet; use C++.
5118 (captured_main): Likewise.
5120 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
5122 * server.c (handle_v_cont): Initialize thread_resume::thread
5125 2017-04-05 Pedro Alves <palves@redhat.com>
5127 * configure: Regenerate.
5129 2017-04-05 Pedro Alves <palves@redhat.com>
5131 * gdbreplay.c (sync_error): Constify.
5132 * linux-x86-low.c (push_opcode): Constify.
5134 2017-04-05 Pedro Alves <palves@redhat.com>
5136 * win32-low.c (get_child_debug_event)
5137 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
5138 Report TARGET_WAITKIND_SPURIOUS instead.
5140 2017-04-05 Pedro Alves <palves@redhat.com>
5142 * remote-utils.c (remote_prepare, remote_open): Constify.
5143 * remote-utils.h (remote_prepare, remote_open): Constify.
5144 * server.c (captured_main): Constify 'port' handling.
5146 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
5148 * Makefile.in (clean): Clear .deps.
5150 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
5152 * .gitignore: Remove generated files, replace with wildcard.
5153 * (clean): Replace removal of generated files with wildcard.
5154 (version.c): Replace with...
5155 (version-generated.c): ...this.
5156 (xml-builtin.c): Replace with...
5157 (xml-builtin-generated.c): ...this.
5158 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
5159 (%.c: *regformats*): Replace with...
5160 (%-generated.c: *regformats*): ...this.
5162 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5164 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
5165 (xtensa_fill_gregset): Call collect_register_by_name for
5167 (xtensa_store_gregset): Call supply_register_by_name for
5170 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5172 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
5173 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
5174 (xtensa_store_gregset): Call supply_register for all registers in
5175 a0_regnum..a0_regnum + C0_NREGS range.
5177 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5179 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
5180 (ax-ipa.o: ax.c): Remove.
5181 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
5182 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
5183 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
5184 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
5185 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
5187 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5189 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
5190 (print-utils-ipa.o: ../common/print-utils.c): Remove.
5191 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
5192 (errors-ipa.o: ../common/errors.c): Remove.
5193 (format-ipa.o: ../common/format.c): Remove.
5194 (common-utils-ipa.o: ../common/common-utils.c): Remove.
5196 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5198 * Makefile.in (%-ipa.o: %.c): New rule.
5199 (tracepoint-ipa.o: tracepoint.c): Remove.
5200 (utils-ipa.o: utils.c): Remove.
5201 (remote-utils-ipa.o: remote-utils.c): Remove.
5202 (regcache-ipa.o: regcache.c): Remove.
5203 (i386-linux-ipa.o: i386-linux.c): Remove.
5204 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5205 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5206 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5207 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5208 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5209 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5210 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5211 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5212 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5213 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5214 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5215 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5216 (aarch64-ipa.o: aarch64.c): Remove.
5217 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5218 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5219 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5220 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5221 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5222 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5223 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5224 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5225 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5226 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5227 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5228 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5229 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5230 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5231 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5232 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5233 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5234 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5235 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5236 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5237 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5238 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5239 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5240 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5241 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5242 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5243 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5244 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5245 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5246 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5247 (tdesc-ipa.o: tdesc.c): Remove.
5248 (x32-linux-ipa.o: x32-linux.c): Remove.
5249 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5250 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5252 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5254 * Makefile.in (%.o: ../arch/%.c): New rule.
5255 (arm.o: ../arch/arm.c): Remove.
5256 (arm-linux.o: ../arch/arm-linux.c): Remove.
5257 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5258 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5260 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5262 * Makefile.in (%.o: ../nat/%.c): New rule.
5263 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5264 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5265 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5266 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5267 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5268 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5269 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5270 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5271 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5272 (linux-personality.o: ../nat/linux-personality.c): Remove.
5273 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5274 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5275 (x86-linux.o: ../nat/x86-linux.c): Remove.
5276 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5277 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5279 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5281 * Makefile.in (%.o: ../common/%.c): New rule.
5282 (signals.o: ../common/signals.c): Remove.
5283 (print-utils.o: ../common/print-utils.c): Remove.
5284 (rsp-low.o: ../common/rsp-low.c): Remove.
5285 (common-utils.o: ../common/common-utils.c): Remove.
5286 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5287 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5288 (vec.o: ../common/vec.c): Remove.
5289 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5290 (xml-utils.o: ../common/xml-utils.c): Remove.
5291 (ptid.o: ../common/ptid.c): Remove.
5292 (buffer.o: ../common/buffer.c): Remove.
5293 (format.o: ../common/format.c): Remove.
5294 (filestuff.o: ../common/filestuff.c): Remove.
5295 (agent.o: ../common/agent.c): Remove.
5296 (errors.o: ../common/errors.c): Remove.
5297 (environ.o: ../common/environ.c): Remove.
5298 (common-debug.o: ../common/common-debug.c): Remove.
5299 (cleanups.o: ../common/cleanups.c): Remove.
5300 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5301 (fileio.o: ../common/fileio.c): Remove.
5302 (common-regcache.o: ../common/common-regcache.c): Remove.
5303 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5304 (new-op.o: ../common/new-op.c): Remove.
5305 (btrace-common.o: ../common/btrace-common.c): Remove.
5307 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5309 * Makefile.in (%.o: ../target/%.c): New rule.
5310 (waitstatus.o: ../target/waitstatus.c): Remove.
5312 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5315 (%.c: ../regformats/%.dat,
5316 (%.c: ../regformats/arm/%.dat,
5317 (%.c: ../regformats/i386/%.dat,
5318 (%.c: ../regformats/rs6000/%.dat): New rules.
5319 (aarch64.c): Remove.
5320 (reg-arm.c): Remove.
5321 (arm-with-iwmmxt.c): Remove.
5322 (arm-with-vfpv2.c): Remove.
5323 (arm-with-vfpv3.c): Remove.
5324 (arm-with-neon.c): Remove.
5325 (reg-bfin.c): Remove.
5326 (reg-cris.c): Remove.
5327 (reg-crisv32.c): Remove.
5329 (i386-linux.c): Remove.
5330 (i386-avx.c): Remove.
5331 (i386-avx-linux.c): Remove.
5332 (i386-avx-avx512.c): Remove.
5333 (i386-avx-avx512-linux.c): Remove.
5334 (i386-mpx.c): Remove.
5335 (i386-mpx-linux.c): Remove.
5336 (i386-avx-mpx-avx512-pku.c): Remove.
5337 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5338 (i386-avx-mpx.c): Remove.
5339 (i386-avx-mpx-linux.c): Remove.
5340 (i386-mmx.c): Remove.
5341 (i386-mmx-linux.c): Remove.
5342 (reg-ia64.c): Remove.
5343 (reg-m32r.c): Remove.
5344 (reg-m68k.c): Remove.
5346 (mips-linux.c): Remove.
5347 (mips-dsp-linux.c): Remove.
5348 (mips64-linux.c): Remove.
5349 (mips64-dsp-linux.c): Remove.
5350 (nios2-linux.c): Remove.
5351 (powerpc-32.c): Remove.
5352 (powerpc-32l.c): Remove.
5353 (powerpc-altivec32l.c): Remove.
5354 (powerpc-cell32l.c): Remove.
5355 (powerpc-vsx32l.c): Remove.
5356 (powerpc-isa205-32l.c): Remove.
5357 (powerpc-isa205-altivec32l.c): Remove.
5358 (powerpc-isa205-vsx32l.c): Remove.
5359 (powerpc-e500l.c): Remove.
5360 (powerpc-64l.c): Remove.
5361 (powerpc-altivec64l.c): Remove.
5362 (powerpc-cell64l.c): Remove.
5363 (powerpc-vsx64l.c): Remove.
5364 (powerpc-isa205-64l.c): Remove.
5365 (powerpc-isa205-altivec64l.c): Remove.
5366 (powerpc-isa205-vsx64l.c): Remove.
5367 (s390-linux32.c): Remove.
5368 (s390-linux32v1.c): Remove.
5369 (s390-linux32v2.c): Remove.
5370 (s390-linux64.c): Remove.
5371 (s390-linux64v1.c): Remove.
5372 (s390-linux64v2.c): Remove.
5373 (s390-te-linux64.c): Remove.
5374 (s390-vx-linux64.c): Remove.
5375 (s390-tevx-linux64.c): Remove.
5376 (s390x-linux64.c): Remove.
5377 (s390x-linux64v1.c): Remove.
5378 (s390x-linux64v2.c): Remove.
5379 (s390x-te-linux64.c): Remove.
5380 (s390x-vx-linux64.c): Remove.
5381 (s390x-tevx-linux64.c): Remove.
5382 (tic6x-c64xp-linux.c): Remove.
5383 (tic6x-c64x-linux.c): Remove.
5384 (tic6x-c62x-linux.c): Remove.
5386 (reg-sparc64.c): Remove.
5387 (reg-spu.c): Remove.
5389 (amd64-linux.c): Remove.
5390 (amd64-avx.c): Remove.
5391 (amd64-avx-linux.c): Remove.
5392 (amd64-avx-avx512.c): Remove.
5393 (amd64-avx-avx512-linux.c): Remove.
5394 (amd64-mpx.c): Remove.
5395 (amd64-mpx-linux.c): Remove.
5396 (amd64-avx-mpx-avx512-pku.c): Remove.
5397 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5398 (amd64-avx-mpx.c): Remove.
5399 (amd64-avx-mpx-linux.c): Remove.
5401 (x32-linux.c): Remove.
5402 (x32-avx.c): Remove.
5403 (x32-avx-linux.c): Remove.
5404 (x32-avx-avx512.c): Remove.
5405 (x32-avx-avx512-linux.c): Remove.
5406 (reg-xtensa.c): Remove.
5407 (reg-tilegx.c): Remove.
5408 (reg-tilegx32.c): Remove.
5410 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5412 * Makefile.in (SFILES): Add "common/environ.c".
5413 (OBJS): Add "common/environ.h".
5415 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5417 * configure.ac: Check if the fs_base and gs_base members of
5418 `struct user_regs_struct' exist.
5419 * config.in: Regenerated.
5420 * configure: Likewise.
5422 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5424 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5426 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5427 (get_next_pcs_syscall_next_pc): Likewise.
5429 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
5431 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5432 * nto-x86-low.c: Likewise.
5434 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5436 * Makefile.in: Include disable-implicit-rules.mk.
5438 2016-11-23 Pedro Alves <palves@redhat.com>
5440 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5441 (debug_vprintf): Use std::chrono::steady_clock instead of
5442 gettimeofday. Use '.' instead of ':'.
5443 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5444 (get_timestamp): Use std::chrono::steady_clock instead of
5447 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5449 * Makefile.in: Fix whitespace formatting.
5451 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5453 * Makefile.in (SFILES, OBS): Flatten list and order
5456 2016-11-23 Pedro Alves <palves@redhat.com>
5458 * event-loop.c (handle_file_event): Use warning.
5459 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5460 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5463 2016-11-23 Pedro Alves <palves@redhat.com>
5465 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5467 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5468 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5469 debug_printf and debug_flush for debug output.
5470 * server.c (handle_general_set): Likewise.
5471 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5474 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5476 * Makefile.in (.c.o): Replace rule with ...
5477 (%.o: %.c): ... this one.
5479 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5481 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5482 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5484 * configure.ac: Remove checks for the make program.
5485 * configure: Re-generate.
5487 2016-10-28 Pedro Alves <palves@redhat.com>
5489 * Makefile.in (CXX_DIALECT): Get from configure.
5490 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5491 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5492 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5493 * config.in: Regenerate.
5494 * configure: Regenerate.
5496 2016-10-27 Yao Qi <yao.qi@linaro.org>
5498 * linux-low.c (linux_supports_range_stepping): Return true if
5499 can_software_single_step return true.
5501 2016-10-27 Yao Qi <yao.qi@linaro.org>
5503 * inferiors.c (find_inferior_in_random): New function.
5504 * inferiors.h (find_inferior_in_random): Declare.
5505 * linux-low.c (linux_wait_for_event_filtered): Call
5506 find_inferior_in_random instead of find_inferior.
5508 2016-10-27 Yao Qi <yao.qi@linaro.org>
5510 * linux-low.c (linux_wait_1): If single-step breakpoints are
5511 inserted, remove them.
5513 2016-10-26 Pedro Alves <palves@redhat.com>
5515 * linux-low.c (handle_extended_wait): Link parent/child fork
5517 (linux_wait_1): Unlink them.
5518 (linux_set_resume_request): Ignore resume requests for
5519 already-resumed and unhandled fork child threads.
5520 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5521 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5523 (handle_v_requests) <vCont>: Don't call require_running.
5524 * server.h (in_queued_stop_replies): New declaration.
5526 2016-10-24 Yao Qi <yao.qi@linaro.org>
5529 * linux-aarch64-low.c (append_insns): Cast the return value to
5532 2016-10-10 Yao Qi <yao.qi@linaro.org>
5534 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5536 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5538 * target.c (target_supports_multi_process): New function, moved
5540 * target.h (target_supports_multi_process): ... here. Remove
5543 2016-10-05 Tom Tromey <tom@tromey.com>
5546 * tracepoint.c (handle_tracepoint_bkpts): Check
5547 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5549 2016-10-05 Yao Qi <yao.qi@linaro.org>
5551 * configure.srv: Update the path of arm-*.xml files.
5553 2016-10-05 Terry Guo <terry.guo@arm.com>
5554 Yao Qi <yao.qi@linaro.org>
5556 * Makefile.in: Adjust the path of rules.
5557 * configure.srv: Update the path of xml files.
5558 * regformats/arm-with-iwmmxt.dat: Regenerated.
5559 * regformats/arm-with-neon.dat: Likewise.
5560 * regformats/arm-with-vfpv2.dat: Likewise.
5561 * regformats/arm-with-vfpv3.dat Likewise.
5563 2016-09-30 Yao Qi <yao.qi@linaro.org>
5566 * target.c (target_stop_and_wait): Don't call
5567 target_continue_no_signal, use resume_stop instead.
5569 2016-09-26 Yao Qi <yao.qi@linaro.org>
5571 * linux-low.c (linux_wait_1): Call debug_exit.
5573 2016-09-23 Pedro Alves <palves@redhat.com>
5575 * Makefile.in (SFILES): Add common/new-op.c.
5576 (OBS): Add common/new-op.o.
5577 (new-op.o): New rule.
5579 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5581 * .gitinore: Ignore more files.
5583 2016-09-21 Yao Qi <yao.qi@linaro.org>
5585 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5588 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5590 * server.c (start_inferior): Call target_mourn_inferior instead of
5591 mourn_inferior; pass ptid_t argument to it.
5593 (handle_target_event): Likewise.
5594 * target.c (target_mourn_inferior): New function.
5595 * target.h (mourn_inferior): Delete macro.
5597 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5599 * linux-low.c (lwp_is_stepping): New function.
5601 2016-09-06 Carl Love <cel@us.ibm.com>
5603 * server.c (start_inferior): Fixed comment, requested comment change
5604 didn't get updated correctly. Removed reference to ptrace () call as
5605 it is only true on Linux systems.
5607 2016-09-06 Carl Love <cel@us.ibm.com>
5609 * server.c (start_inferior): Do not call
5610 function target_post_create_inferior () if the
5611 inferior process has already exited.
5613 2016-09-05 Pedro Alves <palves@redhat.com>
5615 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
5616 (COMPILE.pre, CC_LD): Use CXX directly.
5617 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
5618 * acinclude.m4: Don't include build-with-cxx.m4.
5619 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
5620 * configure: Regenerate.
5622 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5625 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5626 call writing data to own_buf.
5628 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5630 * target.c (mywait): Call target_wait instead of
5632 (target_wait): New function.
5634 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5636 * server.c (start_inferior): New variable 'ptid'. Replace calls
5637 to the_target->resume by target_continue{,_no_signal}, depending
5639 * target.c (target_stop_and_wait): Call target_continue_no_signal
5640 instead of the_target->resume.
5641 (target_continue): New function.
5643 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5645 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5647 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5650 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5652 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
5653 * linux-arm-low.c (ps_get_thread_area): Likewise.
5654 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
5655 * linux-m68k-low.c (ps_get_thread_area): Likewise.
5656 * linux-mips-low.c (ps_get_thread_area): Likewise.
5657 * linux-nios2-low.c (ps_get_thread_area): Likewise.
5658 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
5659 * linux-x86-low.c (ps_get_thread_area): Likewise.
5660 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
5662 2016-08-19 Pedro Alves <palves@redhat.com>
5664 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5666 2016-08-19 Pedro Alves <palves@redhat.com>
5668 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5669 comment. Use memcpy instead of casting through unsigned long.
5671 2016-08-19 Pedro Alves <palves@redhat.com>
5673 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5674 allocating around 0x80000000.
5676 2016-08-19 Pedro Alves <palves@redhat.com>
5679 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
5680 (x32-avx512-linux-ipa.o): New rules.
5681 * configure.ac (x86_64-*-linux*): New x32 check.
5682 * configure.srv (ipa_x32_linux_regobj): New.
5683 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
5684 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
5686 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5688 * configure: Regenerate.
5690 2016-08-09 Pedro Alves <palves@redhat.com>
5693 * Makefile.in (OBS): Add signals-state-save-restore.o.
5694 (signals-state-save-restore.o): New rule.
5695 * config.in: Regenerate.
5696 * configure: Regenerate.
5697 * linux-low.c: Include "signals-state-save-restore.h".
5698 (linux_create_inferior): Call
5699 restore_original_signals_state.
5700 * server.c: Include "dispositions-save-restore.h".
5701 (captured_main): Call save_original_signals_state.
5703 2016-08-05 Pedro Alves <palves@redhat.com>
5705 * configure: Regenerate.
5707 2016-08-04 Yao Qi <yao.qi@linaro.org>
5709 * linux-low.c (regsets_fetch_inferior_registers): Check
5710 errno is ESRCH or not.
5712 2016-08-02 Yao Qi <yao.qi@linaro.org>
5714 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
5715 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
5716 (thread_db_load_search): Update.
5717 (try_thread_db_load_1): Don't look for td_ta_event_addr,
5718 td_ta_set_event and td_ta_event_getmsg.
5720 2016-07-26 Pedro Alves <palves@redhat.com>
5723 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
5724 of unsigned long for 64-bit registers and use uint32_t instead of
5725 unsigned int for 32-bit registers.
5727 2016-07-26 Pedro Alves <palves@redhat.com>
5729 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5732 2016-07-21 Tom Tromey <tom@tromey.com>
5734 * configure: Rebuild.
5736 2016-07-21 Yao Qi <yao.qi@linaro.org>
5738 * mem-break.c (find_gdb_breakpoint): Cast bp to
5739 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5741 2016-07-21 Yao Qi <yao.qi@linaro.org>
5743 * server.c (handle_v_requests): Support s and S actions
5744 if target_supports_software_single_step return true.
5746 2016-07-21 Yao Qi <yao.qi@linaro.org>
5748 * linux-low.c (resume_stopped_resumed_lwps): If resume request
5749 is resume_step, call maybe_hw_step.
5750 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
5752 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5754 (proceed_one_lwp): If resume request is resume_step, install
5755 reinsert breakpoints and call maybe_hw_step.
5757 2016-07-21 Yao Qi <yao.qi@linaro.org>
5759 * linux-low.c (proceed_one_lwp): Declare.
5760 (linux_resume_one_thread): Remove local variable 'step'.
5761 Lift code enqueue signal. Call proceed_one_lwp instead of
5762 linux_resume_one_lwp.
5764 2016-07-21 Yao Qi <yao.qi@linaro.org>
5766 * linux-low.c (linux_resume_one_thread): Call
5767 enqueue_pending_signal.
5769 2016-07-21 Yao Qi <yao.qi@linaro.org>
5771 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5772 * inferiors.c (do_restore_current_thread_cleanup): New function.
5773 (make_cleanup_restore_current_thread): Likewise.
5774 * linux-low.c (install_software_single_step_breakpoints): Call
5775 make_cleanup_restore_current_thread. Switch current_thread to
5778 2016-07-21 Yao Qi <yao.qi@linaro.org>
5780 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
5781 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
5782 (clone_one_breakpoint): Likewise.
5783 (delete_reinsert_breakpoints): Change parameter to thread.
5785 (has_reinsert_breakpoints): Likewise.
5786 (uninsert_reinsert_breakpoints): Likewise.
5787 (reinsert_reinsert_breakpoints): Likewise.
5788 * mem-break.h (set_reinsert_breakpoint): Update declaration.
5789 (delete_reinsert_breakpoints): Likewise.
5790 (reinsert_reinsert_breakpoints): Likewise.
5791 (uninsert_reinsert_breakpoints): Likewise.
5792 (has_reinsert_breakpoints): Likewise.
5794 2016-07-21 Yao Qi <yao.qi@linaro.org>
5796 * inferiors.c (get_thread_process): Make parameter const.
5797 * inferiors.h (get_thread_process): Update declaration.
5798 * mem-break.c (clone_all_breakpoints): Remove all parameters.
5799 Add new parameters child_thread and parent_thread. Callers
5801 * mem-break.h (clone_all_breakpoints): Update declaration.
5803 2016-07-21 Yao Qi <yao.qi@linaro.org>
5805 * mem-break.c (struct breakpoint) <cond_list>: Remove.
5806 <command_list, handler>: Remove.
5807 (struct gdb_breakpoint): New.
5808 (struct other_breakpoint): New.
5809 (struct reinsert_breakpoint): New.
5810 (is_gdb_breakpoint): New function.
5811 (any_persistent_commands): Update command_list if
5812 is_gdb_breakpoint returns true.
5813 (set_breakpoint): Create breakpoints according to their types.
5814 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
5815 (set_gdb_breakpoint_1): Likewise.
5816 (set_gdb_breakpoint): Likewise.
5817 (clear_breakpoint_conditions): Change parameter type to
5818 'struct gdb_breakpoint *'.
5819 (clear_breakpoint_commands): Likewise.
5820 (clear_breakpoint_conditions_and_commands): Likewise.
5821 (add_condition_to_breakpoint): Likewise.
5822 (add_breakpoint_condition): Likewise.
5823 (add_commands_to_breakpoint): Likewise.
5824 (check_breakpoints): Check other_breakpoint.
5825 (clone_one_breakpoint): Clone breakpopint according to its type.
5826 * mem-break.h (struct gdb_breakpoint): Declare.
5827 (set_gdb_breakpoint): Update declaration.
5828 (clear_breakpoint_conditions_and_commands): Likewise.
5829 (add_breakpoint_condition): Likewise.
5830 (add_breakpoint_commands): Likewise.
5831 * server.c (process_point_options): Change parameter type to
5832 'struct gdb_breakpoint *'.
5834 2016-07-21 Yao Qi <yao.qi@linaro.org>
5836 * mem-break.c (set_breakpoint_at): Rename it to ...
5837 (set_breakpoint_type_at): ... it.
5838 (set_breakpoint_at): Call set_breakpoint_type_at.
5839 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
5840 * mem-break.h (set_breakpoint_at): Update comments.
5842 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5844 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5846 (nios2_store_gregset): Likewise.
5848 2016-07-01 Pedro Alves <palves@redhat.com>
5849 Antoine Tremblay <antoine.tremblay@ericsson.com>
5851 * linux-low.c: Change interface to take the target lwp_info
5852 pointer directly and return void. Handle detaching from a zombie
5854 (linux_detach_lwp_callback): New function.
5855 (linux_detach): Detach from the leader thread after detaching from
5858 2016-06-28 Yao Qi <yao.qi@linaro.org>
5860 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
5861 for variable new_offset.
5862 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5863 (aarch64_ftrace_insn_reloc_cb): Likewise.
5864 (aarch64_ftrace_insn_reloc_tb): Likewise.
5865 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5866 PRIx64 instead of PRIx32.
5868 2016-06-28 Yao Qi <yao.qi@linaro.org>
5870 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5871 (the_low_target): Install arm_get_syscall_trapinfo.
5873 2016-06-28 Yao Qi <yao.qi@linaro.org>
5875 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5877 (the_low_target): Install aarch64_get_syscall_trapinfo.
5879 2016-06-28 Yao Qi <yao.qi@linaro.org>
5881 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
5883 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
5884 Remove parameter sysno.
5885 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
5888 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5890 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
5891 (s390_emit_ne_goto): Likewise.
5892 (s390_emit_lt_goto): Likewise.
5893 (s390_emit_le_goto): Likewise.
5894 (s390_emit_gt_goto): Likewise.
5895 (s390_emit_ge_goto): Likewise.
5896 (s390x_emit_eq_goto): Likewise.
5897 (s390x_emit_ne_goto): Likewise.
5898 (s390x_emit_lt_goto): Likewise.
5899 (s390x_emit_le_goto): Likewise.
5900 (s390x_emit_gt_goto): Likewise.
5901 (s390x_emit_ge_goto): Likewise.
5902 (s390_emit_ops_impl): Mark variable static.
5903 (s390x_emit_ops): Likewise.
5905 2016-06-17 Yao Qi <yao.qi@linaro.org>
5907 * linux-low.c (handle_extended_wait): Call
5908 uninsert_reinsert_breakpoints for the parent process. Remove
5909 reinsert breakpoints from the child process. Reinsert them to
5910 the parent process when vfork is done.
5911 * mem-break.c (uninsert_reinsert_breakpoints): New function.
5912 (reinsert_reinsert_breakpoints): New function.
5913 * mem-break.h (uninsert_reinsert_breakpoints): Declare
5914 (reinsert_reinsert_breakpoints): Declare.
5916 2016-06-17 Yao Qi <yao.qi@linaro.org>
5918 * linux-low.c (handle_extended_wait): If the parent is doing
5919 step-over, remove the reinsert breakpoints from the forked child.
5921 2016-06-17 Yao Qi <yao.qi@linaro.org>
5923 * linux-low.c (unsuspend_all_lwps): Declare.
5924 (linux_low_filter_event): If thread exited, call finish_step_over.
5925 If step-over is finished, unsuspend other threads.
5927 2016-06-17 Yao Qi <yao.qi@linaro.org>
5929 * linux-low.c (linux_resume_one_lwp_throw): Assert
5930 has_reinsert_breakpoints returns false.
5931 * mem-break.c (delete_disabled_breakpoints): Assert
5932 bp type isn't reinsert_breakpoint.
5934 2016-06-17 Yao Qi <yao.qi@linaro.org>
5936 * linux-low.c (maybe_hw_step): New function.
5937 (linux_resume_one_lwp_throw): Call maybe_hw_step.
5938 (finish_step_over): Switch current_thread to lwp temporarily,
5939 and assert has_reinsert_breakpoints returns true.
5940 (proceed_one_lwp): Call maybe_hw_step.
5941 * mem-break.c (has_reinsert_breakpoints): New function.
5942 * mem-break.h (has_reinsert_breakpoints): Declare.
5944 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
5946 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
5948 2016-05-17 Yao Qi <yao.qi@linaro.org>
5950 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
5951 instead of find_inferior.
5953 2016-05-05 Yao Qi <yao.qi@linaro.org>
5955 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
5956 Initialize res to zero.
5958 2016-05-05 Yao Qi <yao.qi@linaro.org>
5960 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
5963 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5965 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
5966 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
5967 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
5969 2016-04-28 Par Olsson <par.olsson@windriver.com>
5970 Simon Marchi <simon.marchi@ericsson.com>
5972 * tracepoint.c (write_inferior_int8): New function.
5973 (cmd_qtenable_disable): Write enable flag using
5974 write_inferior_int8.
5976 2016-04-25 Yao Qi <yao.qi@linaro.org>
5978 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
5979 (need_step_over_p): Return zero if the LWP has pending signals
5980 can be delivered on software single step target.
5982 2016-04-25 Yao Qi <yao.qi@linaro.org>
5984 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
5985 return instead of error.
5987 2016-04-22 Yao Qi <yao.qi@linaro.org>
5989 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
5992 2016-04-22 Yao Qi <yao.qi@linaro.org>
5994 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
5995 signal when stepping over breakpoint with software single
5998 2016-04-21 Pedro Alves <palves@redhat.com>
6000 * linux-s390-low.c (s390_collect_ptrace_register)
6001 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
6003 (s390_check_regset): Use void * instead of gdb_byte *.
6005 2016-04-20 Pedro Alves <palves@redhat.com>
6007 * configure: Renegerate.
6009 2016-04-20 Yao Qi <yao.qi@linaro.org>
6011 * linux-aarch32-low.c: Include "arch/arm-linux.h".
6012 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
6014 (arm_store_gregset): Likewise.
6016 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
6018 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
6019 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
6020 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
6021 (amd64-avx-mpx-linux.c): New rules.
6022 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
6023 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
6024 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
6025 (srv_amd64_regobj): Add amd64-avx-mpx.o.
6026 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
6027 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
6028 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
6029 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
6030 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
6031 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
6032 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
6033 * linux-x86-low.c (x86_linux_read_description): Add case for
6034 X86_XSTATE_AVX_MPX_MASK.
6035 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
6036 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
6037 init_registers_i386_avx_mpx_linux.
6038 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
6039 (initialize_low_tracepoint): Call
6040 init_registers_i386_avx_mpx_linux.
6041 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
6042 (initialize_low_tracepoint): Call
6043 init_registers_amd64_avx_mpx_linux.
6044 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
6045 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
6046 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
6049 2016-04-18 Pedro Alves <palves@redhat.com>
6051 * configure: Regenerate.
6053 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
6055 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
6056 (aarch64_emit_sub): Likewise.
6058 2016-04-12 Pedro Alves <palves@redhat.com>
6060 * utils.c (prepare_to_throw_exception): Delete.
6062 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
6064 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
6066 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
6068 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
6070 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
6072 * linux-aarch64-ipa.c: Add <elf.h> include.
6073 * linux-ppc-ipa.c: Add <elf.h> include.
6074 * linux-s390-ipa.c: Add <elf.h> include.
6076 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6078 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
6079 (get_raw_reg_ptr): Likewise.
6080 (get_trace_state_variable_value_ptr): Likewise.
6081 (set_trace_state_variable_value_ptr): Likewise.
6082 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
6085 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6086 Marcin Kościelnicki <koriakin@0x04.net>
6089 * linux-ppc-low.c (emit_insns): New function.
6090 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
6091 (ppc_emit_prologue): New function.
6092 (ppc_emit_epilogue): New function.
6093 (ppc_emit_add): New function.
6094 (ppc_emit_sub): New function.
6095 (ppc_emit_mul): New function.
6096 (ppc_emit_lsh): New function.
6097 (ppc_emit_rsh_signed): New function.
6098 (ppc_emit_rsh_unsigned): New function.
6099 (ppc_emit_ext): New function.
6100 (ppc_emit_zero_ext): New function.
6101 (ppc_emit_log_not): New function.
6102 (ppc_emit_bit_and): New function.
6103 (ppc_emit_bit_or): New function.
6104 (ppc_emit_bit_xor): New function.
6105 (ppc_emit_bit_not): New function.
6106 (ppc_emit_equal): New function.
6107 (ppc_emit_less_signed): New function.
6108 (ppc_emit_less_unsigned): New function.
6109 (ppc_emit_ref): New function.
6110 (ppc_emit_const): New function.
6111 (ppc_emit_reg): New function.
6112 (ppc_emit_pop): New function.
6113 (ppc_emit_stack_flush): New function.
6114 (ppc_emit_swap): New function.
6115 (ppc_emit_stack_adjust): New function.
6116 (ppc_emit_call): New function.
6117 (ppc_emit_int_call_1): New function.
6118 (ppc_emit_void_call_2): New function.
6119 (ppc_emit_if_goto): New function.
6120 (ppc_emit_goto): New function.
6121 (ppc_emit_eq_goto): New function.
6122 (ppc_emit_ne_goto): New function.
6123 (ppc_emit_lt_goto): New function.
6124 (ppc_emit_le_goto): New function.
6125 (ppc_emit_gt_goto): New function.
6126 (ppc_emit_ge_goto): New function.
6127 (ppc_write_goto_address): New function.
6128 (ppc_emit_ops_impl): New static variable.
6129 (ppc64v1_emit_prologue): New function.
6130 (ppc64v2_emit_prologue): New function.
6131 (ppc64_emit_epilogue): New function.
6132 (ppc64_emit_add): New function.
6133 (ppc64_emit_sub): New function.
6134 (ppc64_emit_mul): New function.
6135 (ppc64_emit_lsh): New function.
6136 (ppc64_emit_rsh_signed): New function.
6137 (ppc64_emit_rsh_unsigned): New function.
6138 (ppc64_emit_ext): New function.
6139 (ppc64_emit_zero_ext): New function.
6140 (ppc64_emit_log_not): New function.
6141 (ppc64_emit_bit_and): New function.
6142 (ppc64_emit_bit_or): New function.
6143 (ppc64_emit_bit_xor): New function.
6144 (ppc64_emit_bit_not): New function.
6145 (ppc64_emit_equal): New function.
6146 (ppc64_emit_less_signed): New function.
6147 (ppc64_emit_less_unsigned): New function.
6148 (ppc64_emit_ref): New function.
6149 (ppc64_emit_const): New function.
6150 (ppc64v1_emit_reg): New function.
6151 (ppc64v2_emit_reg): New function.
6152 (ppc64_emit_pop): New function.
6153 (ppc64_emit_stack_flush): New function.
6154 (ppc64_emit_swap): New function.
6155 (ppc64v1_emit_call): New function.
6156 (ppc64v2_emit_call): New function.
6157 (ppc64v1_emit_int_call_1): New function.
6158 (ppc64v2_emit_int_call_1): New function.
6159 (ppc64v1_emit_void_call_2): New function.
6160 (ppc64v2_emit_void_call_2): New function.
6161 (ppc64_emit_if_goto): New function.
6162 (ppc64_emit_eq_goto): New function.
6163 (ppc64_emit_ne_goto): New function.
6164 (ppc64_emit_lt_goto): New function.
6165 (ppc64_emit_le_goto): New function.
6166 (ppc64_emit_gt_goto): New function.
6167 (ppc64_emit_ge_goto): New function.
6168 (ppc64v1_emit_ops_impl): New static variable.
6169 (ppc64v2_emit_ops_impl): New static variable.
6170 (ppc_emit_ops): New function.
6171 (linux_low_target): Wire in ppc_emit_ops.
6173 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6174 Marcin Kościelnicki <koriakin@0x04.net>
6177 * Makefile.in: Add powerpc-*-ipa.o
6178 * configure.srv: Add ipa_obj for powerpc*-linux.
6179 * linux-ppc-ipa.c: New file.
6180 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
6182 (PPC_FIELD): New macro.
6183 (PPC_SEXT): New macro.
6184 (PPC_OP6): New macro.
6185 (PPC_BO): New macro.
6186 (PPC_LI): New macro.
6187 (PPC_BD): New macro.
6188 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
6189 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
6190 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
6191 (ppc_get_thread_area): New function.
6192 (is_elfv2_inferior): New function.
6193 (gen_ds_form): New function.
6194 (GEN_STD): New macro.
6195 (GEN_STDU): New macro.
6196 (GEN_LD): New macro.
6197 (GEN_LDU): New macro.
6198 (gen_d_form): New function.
6199 (GEN_ADDI): New macro.
6200 (GEN_ADDIS): New macro.
6201 (GEN_LI): New macro.
6202 (GEN_LIS): New macro.
6203 (GEN_ORI): New macro.
6204 (GEN_ORIS): New macro.
6205 (GEN_LWZ): New macro.
6206 (GEN_STW): New macro.
6207 (GEN_STWU): New macro.
6208 (gen_xfx_form): New function.
6209 (GEN_MFSPR): New macro.
6210 (GEN_MTSPR): New macro.
6211 (GEN_MFCR): New macro.
6212 (GEN_MTCR): New macro.
6213 (GEN_SYNC): New macro.
6214 (GEN_LWSYNC): New macro.
6215 (gen_x_form): New function.
6216 (GEN_OR): New macro.
6217 (GEN_MR): New macro.
6218 (GEN_LWARX): New macro.
6219 (GEN_STWCX): New macro.
6220 (GEN_CMPW): New macro.
6221 (gen_md_form): New function.
6222 (GEN_RLDICL): New macro.
6223 (GEN_RLDICR): New macro.
6224 (gen_i_form): New function.
6226 (GEN_BL): New macro.
6227 (gen_b_form): New function.
6228 (GEN_BNE): New macro.
6229 (GEN_LOAD): New macro.
6230 (GEN_STORE): New macro.
6231 (gen_limm): New function.
6232 (gen_atomic_xchg): New function.
6233 (gen_call): New function.
6234 (ppc_relocate_instruction): New function.
6235 (ppc_install_fast_tracepoint_jump_pad): New function.
6236 (ppc_get_min_fast_tracepoint_insn_len): New function.
6237 (ppc_get_ipa_tdesc_idx): New function.
6238 (the_low_target): Wire in the new functions.
6239 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6241 * linux-ppc-tdesc.h: New file.
6243 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6245 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6246 (alloc_jump_pad_buffer): New function.
6247 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6248 (alloc_jump_pad_buffer): New function.
6249 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6250 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6251 (alloc_jump_pad_buffer): New function.
6252 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6253 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6254 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6255 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6257 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6259 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6260 * linux-amd64-ipa.c: Likewise.
6261 * linux-i386-ipa.c: Likewise.
6262 * linux-s390-ipa.c: Likewise.
6263 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6264 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6265 set_trace_state_variable_value_ptr.
6266 (struct ipa_sym_addresses): Likewise.
6267 (symbol_list): Likewise.
6268 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6269 accessing gdb_collect directly.
6270 (gdb_collect_ptr_type): New typedef.
6271 (get_raw_reg_ptr_type): New typedef.
6272 (get_trace_state_variable_value_ptr_type): New typedef.
6273 (set_trace_state_variable_value_ptr_type): New typedef.
6274 (gdb_collect_ptr): New global.
6275 (get_raw_reg_ptr): New global.
6276 (get_trace_state_variable_value_ptr): New global.
6277 (set_trace_state_variable_value_ptr): New global.
6278 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6279 accessing get_raw_reg directly.
6280 (get_get_tsv_func_addr): Likewise for
6281 get_trace_state_variable_value_ptr.
6282 (get_set_tsv_func_addr): Likewise for
6283 set_trace_state_variable_value_ptr.
6284 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6286 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6288 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6290 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6292 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6294 (relocate_instruction): Remove own_buf.
6295 * server.c (own_buf): Make global.
6296 (handle_v_requests): Make global.
6297 * server.h (own_buf): New declaration.
6298 (handle_v_requests): New prototype.
6300 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6303 * linux-s390-low.c (add_insns): New function.
6304 (s390_emit_prologue): New function.
6305 (s390_emit_epilogue): New function.
6306 (s390_emit_add): New function.
6307 (s390_emit_sub): New function.
6308 (s390_emit_mul): New function.
6309 (s390_emit_lsh): New function.
6310 (s390_emit_rsh_signed): New function.
6311 (s390_emit_rsh_unsigned): New function.
6312 (s390_emit_ext): New function.
6313 (s390_emit_log_not): New function.
6314 (s390_emit_bit_and): New function.
6315 (s390_emit_bit_or): New function.
6316 (s390_emit_bit_xor): New function.
6317 (s390_emit_bit_not): New function.
6318 (s390_emit_equal): New function.
6319 (s390_emit_less_signed): New function.
6320 (s390_emit_less_unsigned): New function.
6321 (s390_emit_ref): New function.
6322 (s390_emit_if_goto): New function.
6323 (s390_emit_goto): New function.
6324 (s390_write_goto_address): New function.
6325 (s390_emit_litpool): New function.
6326 (s390_emit_const): New function.
6327 (s390_emit_call): New function.
6328 (s390_emit_reg): New function.
6329 (s390_emit_pop): New function.
6330 (s390_emit_stack_flush): New function.
6331 (s390_emit_zero_ext): New function.
6332 (s390_emit_swap): New function.
6333 (s390_emit_stack_adjust): New function.
6334 (s390_emit_set_r2): New function.
6335 (s390_emit_int_call_1): New function.
6336 (s390_emit_void_call_2): New function.
6337 (s390_emit_eq_goto): New function.
6338 (s390_emit_ne_goto): New function.
6339 (s390_emit_lt_goto): New function.
6340 (s390_emit_le_goto): New function.
6341 (s390_emit_gt_goto): New function.
6342 (s390_emit_ge_goto): New function.
6343 (s390x_emit_prologue): New function.
6344 (s390x_emit_epilogue): New function.
6345 (s390x_emit_add): New function.
6346 (s390x_emit_sub): New function.
6347 (s390x_emit_mul): New function.
6348 (s390x_emit_lsh): New function.
6349 (s390x_emit_rsh_signed): New function.
6350 (s390x_emit_rsh_unsigned): New function.
6351 (s390x_emit_ext): New function.
6352 (s390x_emit_log_not): New function.
6353 (s390x_emit_bit_and): New function.
6354 (s390x_emit_bit_or): New function.
6355 (s390x_emit_bit_xor): New function.
6356 (s390x_emit_bit_not): New function.
6357 (s390x_emit_equal): New function.
6358 (s390x_emit_less_signed): New function.
6359 (s390x_emit_less_unsigned): New function.
6360 (s390x_emit_ref): New function.
6361 (s390x_emit_if_goto): New function.
6362 (s390x_emit_const): New function.
6363 (s390x_emit_call): New function.
6364 (s390x_emit_reg): New function.
6365 (s390x_emit_pop): New function.
6366 (s390x_emit_stack_flush): New function.
6367 (s390x_emit_zero_ext): New function.
6368 (s390x_emit_swap): New function.
6369 (s390x_emit_stack_adjust): New function.
6370 (s390x_emit_int_call_1): New function.
6371 (s390x_emit_void_call_2): New function.
6372 (s390x_emit_eq_goto): New function.
6373 (s390x_emit_ne_goto): New function.
6374 (s390x_emit_lt_goto): New function.
6375 (s390x_emit_le_goto): New function.
6376 (s390x_emit_gt_goto): New function.
6377 (s390x_emit_ge_goto): New function.
6378 (s390_emit_ops): New function.
6379 (struct linux_target_ops): Fill in emit_ops hook.
6381 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6384 * Makefile.in: Add s390 IPA files.
6385 * configure.srv: Build IPA for s390.
6386 * linux-s390-ipa.c: New file.
6387 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6388 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6389 (tdesc_s390_linux32): Likewise.
6390 (init_registers_s390_linux32v1): Likewise.
6391 (tdesc_s390_linux32v1): Likewise.
6392 (init_registers_s390_linux32v2): Likewise.
6393 (tdesc_s390_linux32v2): Likewise.
6394 (init_registers_s390_linux64): Likewise.
6395 (tdesc_s390_linux64): Likewise.
6396 (init_registers_s390_linux64v1): Likewise.
6397 (tdesc_s390_linux64v1): Likewise.
6398 (init_registers_s390_linux64v2): Likewise.
6399 (tdesc_s390_linux64v2): Likewise.
6400 (init_registers_s390_te_linux64): Likewise.
6401 (tdesc_s390_te_linux64): Likewise.
6402 (init_registers_s390_vx_linux64): Likewise.
6403 (tdesc_s390_vx_linux64): Likewise.
6404 (init_registers_s390_tevx_linux64): Likewise.
6405 (tdesc_s390_tevx_linux64): Likewise.
6406 (init_registers_s390x_linux64): Likewise.
6407 (tdesc_s390x_linux64): Likewise.
6408 (init_registers_s390x_linux64v1): Likewise.
6409 (tdesc_s390x_linux64v1): Likewise.
6410 (init_registers_s390x_linux64v2): Likewise.
6411 (tdesc_s390x_linux64v2): Likewise.
6412 (init_registers_s390x_te_linux64): Likewise.
6413 (tdesc_s390x_te_linux64): Likewise.
6414 (init_registers_s390x_vx_linux64): Likewise.
6415 (tdesc_s390x_vx_linux64): Likewise.
6416 (init_registers_s390x_tevx_linux64): Likewise.
6417 (tdesc_s390x_tevx_linux64): Likewise.
6418 (have_hwcap_s390_vx): New static variable.
6419 (s390_arch_setup): Fill have_hwcap_s390_vx.
6420 (s390_get_thread_area): New function.
6421 (s390_ft_entry_gpr_esa): New const.
6422 (s390_ft_entry_gpr_zarch): New const.
6423 (s390_ft_entry_misc): New const.
6424 (s390_ft_entry_fr): New const.
6425 (s390_ft_entry_vr): New const.
6426 (s390_ft_main_31): New const.
6427 (s390_ft_main_64): New const.
6428 (s390_ft_exit_fr): New const.
6429 (s390_ft_exit_vr): New const.
6430 (s390_ft_exit_misc): New const.
6431 (s390_ft_exit_gpr_esa): New const.
6432 (s390_ft_exit_gpr_zarch): New const.
6433 (append_insns): New function.
6434 (s390_relocate_instruction): New function.
6435 (s390_install_fast_tracepoint_jump_pad): New function.
6436 (s390_get_min_fast_tracepoint_insn_len): New function.
6437 (s390_get_ipa_tdesc_idx): New function.
6438 (struct linux_target_ops): Wire in the above functions.
6439 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6440 * linux-s390-tdesc.h: New file.
6442 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6444 * linux-s390-low.c (s390_supports_tracepoints): New function.
6445 (struct linux_target_ops): Fill supports_tracepoints hook.
6447 2016-03-18 Yao Qi <yao.qi@linaro.org>
6449 * linux-low.c (lwp_signal_can_be_delivered): New function.
6450 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6452 2016-03-18 Yao Qi <yao.qi@linaro.org>
6454 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6455 0 if signal is enqueued. Remove 'signal' from one debugging
6456 message. Move one debugging message to some lines below.
6457 Remove code setting 'signal' to 0.
6459 2016-03-18 Yao Qi <yao.qi@linaro.org>
6461 * linux-low.c (linux_low_filter_event): Remove redundant
6462 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6464 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6466 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6467 (struct linux_target_ops): Wire in the above.
6469 2016-03-03 Yao Qi <yao.qi@linaro.org>
6471 * linux-low.c: Update comments to start_step_over.
6473 2016-03-03 Yao Qi <yao.qi@linaro.org>
6476 * linux-low.c (handle_extended_wait): Set child suspended
6477 if event_lwp->bp_reinsert isn't zero.
6479 2016-03-02 Yao Qi <yao.qi@linaro.org>
6481 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6482 enqueue_pending_signal.
6484 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6486 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6489 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6491 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6492 (s390_regmap_3264) [!__s390x__]: New global.
6493 (s390_collect_ptrace_register): Skip map entries containing -1.
6494 (s390_supply_ptrace_register): Ditto.
6495 (s390_fill_gprs_high): New function.
6496 (s390_store_gprs_high): New function.
6497 (s390_regsets): Add NT_S390_HIGH_GPRS.
6498 (s390_get_hwcap): Enable on 31-bit.
6499 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6500 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6501 Detect NT_S390_HIGH_GPRS.
6502 (s390_usrregs_info_3264): Enable on 31-bit.
6503 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6504 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6506 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6509 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
6510 * configure.srv: Ditto.
6511 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
6512 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
6513 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
6514 (init_registers_amd64_linux): Remove prototype.
6515 (tdesc_amd64_linux): Remove declaration.
6516 (get_ipa_tdesc): New function.
6517 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6518 initialize remaining tdescs.
6519 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6520 (init_registers_i386_linux): Remove prototype.
6521 (tdesc_i386_linux): Remove declaration.
6522 (get_ipa_tdesc): New function.
6523 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6524 initialize remaining tdescs.
6525 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6526 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6527 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6528 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6529 (x86_get_ipa_tdesc_idx): New function.
6530 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6531 * linux-x86-tdesc.h: New file.
6532 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6533 (target_get_ipa_tdesc_idx): New macro.
6534 * tracepoint.c (ipa_tdesc_idx): New macro.
6535 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6536 (symbol_list): Add ipa_tdesc_idx.
6537 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6538 (ipa_tdesc): Remove.
6539 (ipa_tdesc_idx): New variable.
6540 (get_context_regcache): Use get_ipa_tdesc.
6541 (gdb_collect): Ditto.
6543 * tracepoint.h (get_ipa_tdesc): New prototype.
6544 (ipa_tdesc): Remove.
6546 2016-02-24 Pedro Alves <palves@redhat.com>
6548 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6549 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6550 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6551 Factor out common code between the USE_SIGTRAP_SIGINFO and
6552 !USE_SIGTRAP_SIGINFO blocks.
6553 (linux_low_filter_event): Call save_stop_reason instead of
6554 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6556 (linux_wait_1): Update comments.
6558 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
6560 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6561 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6562 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6563 ppc_insert_point, ppc_remove_point.
6565 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6567 * linux-s390-low.c (s390_supports_z_point_type): New function.
6568 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6570 2016-02-16 Yao Qi <yao.qi@linaro.org>
6572 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6573 PC. Get pc from regcache_read_pc.
6575 2016-02-12 Yao Qi <yao.qi@linaro.org>
6577 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6578 or linux_get_pc_32bit.
6579 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6581 2016-02-12 Yao Qi <yao.qi@linaro.org>
6583 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6584 arm_linux_get_next_pcs_fixup.
6586 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6588 * tracepoint.c (x_tracepoint_action_download): Change
6589 write_inferior_data_ptr to write_inferior_data_pointer.
6590 (cmd_qtstart): Likewise.
6591 (write_inferior_data_ptr): Remove.
6592 (download_agent_expr): Change write_inferior_data_ptr to
6593 write_inferior_data_pointer.
6594 (download_tracepoint_1): Likewise.
6595 (download_tracepoint): Likewise.
6596 (download_trace_state_variables): Likewise.
6598 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
6599 Marcin Kościelnicki <koriakin@0x04.net>
6601 * tracepoint.c (struct tracepoint_action_ops): Remove.
6602 (struct tracepoint_action): Remove ops.
6603 (m_tracepoint_action_download, r_tracepoint_action_download)
6604 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6605 size and offset accordingly.
6606 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6607 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6608 (tracepoint_action_send, tracepoint_action_download): New functions.
6609 Helpers for trace action handlers.
6610 (add_tracepoint_action): Remove setup actions ops.
6611 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6613 2016-02-10 Yao Qi <yao.qi@linaro.org>
6615 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6617 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6619 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6621 * configure: Regenerate.
6623 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6625 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
6626 void * to gdb_byte *.
6627 * linux-low.c (siginfo_fixup): Likewise.
6628 (linux_xfer_siginfo): Likewise.
6629 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
6631 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6633 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6635 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6637 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6639 * linux-x86-low.c [__x86_64__]: Include
6640 "nat/amd64-linux-siginfo.h".
6641 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6642 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6643 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6644 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6645 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6646 (cpt_si_fd, si_timerid, si_overrun): Move from
6647 nat/amd64-linux-siginfo.c.
6648 * Makefile.in (amd64-linux-siginfo.o:): New rule.
6650 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6652 * server.c (skip_to_semicolon): Remove.
6653 (process_point_options): Use strchrnul instead of
6656 2016-01-26 Yao Qi <yao.qi@linaro.org>
6658 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
6659 * linux-low.c (install_software_single_step_breakpoints): Don't
6660 call regcache_read_pc.
6661 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
6664 2016-01-26 Yao Qi <yao.qi@linaro.org>
6666 * linux-low.c (install_software_single_step_breakpoints): Call
6667 regcache_read_pc instead of get_pc.
6669 2016-01-26 Yao Qi <yao.qi@linaro.org>
6671 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
6672 (unblock_async_io): Rename to ...
6673 (block_unblock_async_io): ... it. New function.
6674 (enable_async_io): Don't install SIGIO handler. Unblock it
6676 (disable_async_io): Don't ignore SIGIO. Block it instead.
6677 (initialize_async_io): Install SIGIO handler. Don't call
6680 2016-01-26 Yao Qi <yao.qi@linaro.org>
6682 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6683 first character is '\003', call *the_target->request_interrupt.
6685 2016-01-25 Yao Qi <yao.qi@linaro.org>
6687 * remote-utils.c (new_thread_notify): Remove.
6688 (dead_thread_notify): Likewise.
6689 * remote-utils.h (new_thread_notify): Remove declaration.
6690 (dead_thread_notify): Likewise.
6692 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6694 * gdb.trace/pending.exp: Fix expected message on continue.
6696 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6698 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
6699 it works properly on big-endian machines where sizeof (CORE_ADDR)
6702 2016-01-21 Pedro Alves <palves@redhat.com>
6704 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6705 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6706 * configure: Regenerate.
6708 2016-01-21 Yao Qi <yao.qi@linaro.org>
6710 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
6711 is_thumb and set it according to CPSR saved on the stack.
6712 (get_next_pcs_syscall_next_pc): Pass is_thumb to
6713 arm_sigreturn_next_pc.
6715 2016-01-18 Yao Qi <yao.qi@linaro.org>
6717 * linux-low.c (linux_set_pc_64bit): New function.
6718 (linux_get_pc_64bit): New function.
6719 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
6721 * linux-sparc-low.c (debug_threads): Remove declaration.
6722 (sparc_get_pc): Remove.
6723 (the_low_target): Use linux_get_pc_64bit instead of
6725 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6726 (the_low_target): Use linux_get_pc_64bit and
6729 2016-01-18 Yao Qi <yao.qi@linaro.org>
6731 * linux-arm-low.c (debug_threads): Remove declaration.
6732 (arm_get_pc, arm_set_pc): Remove.
6733 (the_low_target): Use linux_get_pc_32bit and
6735 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6736 (the_low_target): Use linux_get_pc_32bit and
6738 * linux-cris-low.c (debug_threads): Remove declaration.
6739 (cris_get_pc, cris_set_pc,): Remove.
6740 (the_low_target): Use linux_get_pc_32bit and
6742 * linux-crisv32-low.c (debug_threads): Remove declaration.
6743 (cris_get_pc, cris_set_pc): Remove.
6744 (the_low_target): Use linux_get_pc_32bit and
6746 * linux-low.c: Include inttypes.h.
6747 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
6748 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
6749 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
6750 (the_low_target): Use linux_get_pc_32bit and
6752 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6753 (the_low_target): Use linux_get_pc_32bit and
6755 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6756 (the_low_target): Use linux_get_pc_32bit and
6758 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6759 (the_low_target): Use linux_get_pc_32bit and
6761 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6762 (the_low_target): Use linux_get_pc_32bit and
6765 2016-01-18 Gary Benson <gbenson@redhat.com>
6767 * configure.ac (AC_FUNC_FORK): New check.
6768 * config.in: Regenerate.
6769 * configure: Likewise.
6771 2016-01-14 Yao Qi <yao.qi@linaro.org>
6773 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
6774 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
6775 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
6776 arm_get_next_pcs_ctor.
6778 2016-01-12 Josh Stone <jistone@redhat.com>
6779 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6781 * inferiors.h: Include "gdb_vecs.h".
6782 (struct process_info): Add syscalls_to_catch.
6783 * inferiors.c (remove_process): Free syscalls_to_catch.
6784 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
6785 syscall_return stops.
6786 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
6787 * server.c (handle_general_set): Handle QCatchSyscalls.
6788 (handle_query): Report support for QCatchSyscalls.
6789 * target.h (struct target_ops): Add supports_catch_syscall.
6790 (target_supports_catch_syscall): New macro.
6791 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
6792 (struct lwp_info): Add syscall_state.
6793 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
6794 Maintain syscall_state and syscalls_to_catch across exec.
6795 (get_syscall_trapinfo): New function, proxy to the_low_target.
6796 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
6797 (linux_low_filter_event): Toggle syscall_state entry/return for
6798 syscall traps, and set it ignored for all others.
6799 (gdb_catching_syscalls_p): New function.
6800 (gdb_catch_this_syscall_p): New function.
6801 (linux_wait_1): Handle SYSCALL_SIGTRAP.
6802 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
6803 (linux_supports_catch_syscall): New function.
6804 (linux_target_ops): Install it.
6805 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
6806 (the_low_target): Install it.
6808 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6810 * acinclude.m4: Include new ../warning.m4 file.
6811 * configure: Regenerated.
6812 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6814 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6816 * ax.c (is_goto_target): Mark static.
6817 * linux-low.c (register_addr): Likewise.
6818 (linux_fetch_registers, linux_store_registers): Likewise.
6819 * mem-break.c (any_persistent_commands): Fix old prototype.
6820 (add_commands_to_breakpoint): Mark static.
6821 * regcache.c (find_register_by_name): Delete unused func.
6822 * remote-utils.c (hex_or_minus_one): Mark static.
6823 * server.c (monitor_show_help): Mark static.
6824 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
6825 handle_v_requests): Likewise.
6827 2016-01-12 Pedro Alves <palves@redhat.com>
6829 Remove use of the registered trademark symbol throughout.
6831 2016-01-08 Yao Qi <yao.qi@linaro.org>
6833 * remote-utils.c (getpkt): If c is '\003', call target hook
6836 2016-01-06 Yao Qi <yao.qi@linaro.org>
6838 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
6839 linux-aarch32-low.c.
6840 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6841 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6842 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6843 (thumb2_breakpoint): Declare.
6844 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
6845 linux-aarch32-low.h.
6846 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6847 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6848 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6850 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6852 * gdbreplay.c (gdbreplay_version): Change copyright year in
6854 * server.c (gdbserver_version): Likewise.
6856 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6858 * server.c (crc32_table): Delete.
6859 (crc32): Use libiberty's xcrc32 function.
6861 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6863 * lynx-low.c (lynx_delete_thread_callback): New function.
6864 (lynx_mourn): Properly delete our process and all of its
6865 threads. Remove call to clear_inferiors.
6867 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6869 * target.c (thread_search_callback): Add check that
6870 the thread_stopped target callback is not NULL before
6873 2015-12-21 Yao Qi <yao.qi@linaro.org>
6875 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6878 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6880 * server.c (handle_query): Call target_supports_software_single_step.
6882 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6884 * linux-low.c (single_step): New function.
6885 (linux_resume_one_lwp_throw): Call single_step.
6886 (start_step_over): Likewise.
6888 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6890 * Makefile.in (SFILES): Append arch/arm-linux.c,
6891 arch/arm-get-next-pcs.c.
6892 (arm-linux.o): New rule.
6893 (arm-get-next-pcs.o): New rule.
6894 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
6896 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
6897 to linux-aarch32-low.c.
6898 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6899 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6900 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6901 (thumb2_breakpoint_len): Likewise.
6902 (arm_is_thumb_mode): Make non-static.
6903 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
6904 from linux-aarch32-low.c.
6905 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6906 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6907 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6908 (thumb2_breakpoint_len): Likewise.
6909 (arm_is_thumb_mode): New declaration.
6910 * linux-arm-low.c: Include arch/arm-linux.h
6911 aarch/arm-get-next-pcs.h, sys/syscall.h.
6912 (get_next_pcs_ops): New struct.
6913 (get_next_pcs_addr_bits_remove): New function.
6914 (get_next_pcs_is_thumb): New function.
6915 (get_next_pcs_read_memory_unsigned_integer): Likewise.
6916 (arm_sigreturn_next_pc): Likewise.
6917 (get_next_pcs_syscall_next_pc): Likewise.
6918 (arm_gdbserver_get_next_pcs): Likewise.
6919 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
6921 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
6922 * server.h: Include gdb_vecs.h.
6924 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6926 * Makefile.in (SFILES): Append common/common-regcache.c.
6927 (OBS): Append common-regcache.o.
6928 (common-regcache.o): New rule.
6929 * regcache.c (init_register_cache): Initialize cache to
6931 (regcache_raw_read_unsigned): New function.
6932 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
6933 register_status enum.
6935 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6937 * linux-aarch64-low.c (the_low_targets): Rename
6938 breakpoint_reinsert_addr to get_next_pcs.
6939 * linux-arm-low.c (the_low_targets): Likewise.
6940 * linux-bfin-low.c (the_low_targets): Likewise.
6941 * linux-cris-low.c (the_low_targets): Likewise.
6942 * linux-crisv32-low.c (the_low_targets): Likewise.
6943 * linux-low.c (can_software_single_step): Likewise.
6944 (install_software_single_step_breakpoints): New function.
6945 (start_step_over): Use install_software_single_step_breakpoints.
6946 * linux-low.h: New CORE_ADDR vector.
6947 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
6949 * linux-mips-low.c (the_low_targets): Likewise.
6950 * linux-nios2-low.c (the_low_targets): Likewise.
6951 * linux-sparc-low.c (the_low_targets): Likewise.
6953 2015-12-17 Pedro Alves <palves@redhat.com>
6955 * linux-low.c (linux_kill_one_lwp): Remove references to
6957 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
6959 (linux_init_signals): Delete.
6960 (initialize_low): Adjust.
6961 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
6963 2015-12-16 Pedro Alves <palves@redhat.com>
6965 * configure.ac (compiler warning flags): When testing a
6966 -Wno-foo option, check whether -Wfoo works instead.
6967 * configure: Regenerate.
6969 2015-12-11 Don Breazeal <donb@codesourcery.com>
6971 * server.c (process_serial_event): Don't exit from gdbserver
6972 in remote mode if there are still active inferiors.
6974 2015-12-11 Yao Qi <yao.qi@linaro.org>
6976 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
6977 arm_breakpoint_at if the process is 32-bit.
6979 2015-12-11 Yao Qi <yao.qi@linaro.org>
6981 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
6984 2015-12-07 Yao Qi <yao.qi@linaro.org>
6986 * configure.srv: Append arm.o to srv_tgtobj for
6987 aarch64*-*-linux* target.
6988 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
6989 from linux-arm-low.c.
6990 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6991 (arm_breakpoint_len, thumb_breakpoint): Likewise.
6992 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
6993 (thumb2_breakpoint_len): Likewise.
6994 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
6995 (arm_breakpoint_kinds): Likewise.
6996 (arm_breakpoint_kind_from_pc): Likewise.
6997 (arm_sw_breakpoint_from_kind): Likewise.
6998 (arm_breakpoint_kind_from_current_state): Likewise.
6999 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
7000 (arm_sw_breakpoint_from_kind): Declare.
7001 (arm_breakpoint_kind_from_current_state): Declare.
7002 (arm_breakpoint_at): Declare.
7003 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
7004 arm_sw_breakpoint_from_kind if process is 32-bit.
7005 (aarch64_breakpoint_kind_from_pc): New function.
7006 (aarch64_breakpoint_kind_from_current_state): New function.
7007 (the_low_target): Initialize fields breakpoint_kind_from_pc
7008 and breakpoint_kind_from_current_state.
7009 * linux-arm-low.c (arm_breakpoint_kinds): Move to
7010 linux-aarch32-low.c.
7011 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
7012 (arm_breakpoint, arm_breakpoint_len): Likewise.
7013 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
7014 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7015 (arm_is_thumb_mode): Likewise.
7016 (arm_breakpoint_at): Likewise.
7017 (arm_breakpoint_kind_from_pc): Likewise.
7018 (arm_sw_breakpoint_from_kind): Likewise.
7019 (arm_breakpoint_kind_from_current_state): Likewise.
7022 2015-08-04 Yao Qi <yao.qi@linaro.org>
7024 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7025 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7026 * server.c (extended_protocol): Remove "static".
7027 * server.h (extended_protocol): Declare it.
7029 2015-12-04 Josh Stone <jistone@redhat.com>
7031 * target.h (struct target_ops) <arch_setup>: Rename to ...
7032 (struct target_ops) <post_create_inferior>: ... this.
7033 (target_arch_setup): Rename to ...
7034 (target_post_create_inferior): ... this, calling post_create_inferior.
7035 * server.c (start_inferior): Update target_arch_setup calls to
7036 target_post_create_inferior.
7037 * linux-low.c (linux_low_ptrace_options): Forward declare.
7038 (linux_arch_setup): Update its comment for general use.
7039 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
7040 (struct linux_target_ops): Use linux_post_create_inferior.
7041 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
7042 to post_create_inferior.
7043 * nto-low.c (struct nto_target_ops): Likewise.
7044 * spu-low.c (struct spu_target_ops): Likewise.
7045 * win32-low.c (struct win32_target_ops): Likewise.
7047 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
7049 * linux-arm-low.c: Remove duplicate arch/arm.h include.
7051 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7053 * linux-arm-low.c (arm_reinsert_addr): Remove function.
7054 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
7055 * linux-cris-low.c (cris_reinsert_addr> Remove function.
7056 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7057 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
7058 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7059 * linux-mips-low.c (mips_reinsert_addr): Remove function.
7060 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7061 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
7062 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7063 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
7064 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7066 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7068 * linux-low.c (linux_look_up_symbols): Don't call
7069 linux_supports_traceclone.
7070 * linux-low.h (thread_db_init): Remove use_events argument.
7071 * thread-db.c (thread_db_use_event): Remove global variable.
7072 (struct thread_db) <td_thr_event_enable_p>: Remove field.
7073 (struct thread_db) <td_create_bp>: Remove field.
7074 (thread_db_create_event): Remove function.
7075 (thread_db_enable_reporting): Likewise.
7076 (find_one_thread): Don't check for thread_db_use_events.
7077 (attach_thread): Likewise.
7078 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
7079 (try_thread_db_load_1): Don't check for thread_db_use_events.
7080 (thread_db_init): Remove use_events argument and thread events
7082 (remove_thread_event_breakpoints): Remove function.
7083 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
7085 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7087 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
7089 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7090 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
7091 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7092 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
7093 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
7095 * linux-crisv32-low.c (cris_supports_hardware_single_step):
7097 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7098 * linux-low.c (can_hardware_single_step): Use
7099 supports_hardware_single_step.
7100 (can_software_single_step): New function.
7101 (start_step_over): Call can_software_single_step.
7102 (linux_supports_hardware_single_step): New function.
7103 (struct target_ops) <supports_software_single_step>: Initialize.
7104 * linux-low.h (struct linux_target_ops)
7105 <supports_hardware_single_step>: Initialize.
7106 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
7107 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7108 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
7109 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
7110 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
7111 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7112 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
7113 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7114 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
7115 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
7117 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
7118 (struct linux_target_ops) <tile_supports_hardware_single_step>:
7120 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
7121 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7122 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
7124 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7125 * target.h (struct target_ops): <supports_software_single_step>:
7127 (target_supports_software_single_step): New macro.
7129 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7131 * linux-low.c (linux_wait_1): Fix pc advance condition.
7132 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
7133 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
7135 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7137 * linux-arm-low.c (arm_is_thumb_mode): New function.
7138 (arm_breakpoint_at): Use arm_is_thumb_mode.
7139 (arm_breakpoint_kind_from_current_state): New function.
7140 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
7142 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
7143 (linux_breakpoint_kind_from_current_state): New function.
7144 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
7145 * linux-low.h (struct linux_target_ops)
7146 <breakpoint_kind_from_current_state>: New field.
7147 * target.h (struct target_ops): Likewise.
7148 (target_breakpoint_kind_from_current_state): New macro.
7150 2015-11-30 Pedro Alves <palves@redhat.com>
7152 * linux-low.c (linux_resume): Wake up the event loop before
7155 2015-11-30 Pedro Alves <palves@redhat.com>
7157 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
7159 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
7161 * target.c (struct thread_search): New structure.
7162 (thread_search_callback): New function.
7163 (prev_general_thread): New global.
7164 (prepare_to_access_memory, done_accessing_memory): New functions.
7165 * target.h (prepare_to_access_memory, done_accessing_memory):
7166 Replace macros with function declarations.
7168 2015-11-30 Pedro Alves <palves@redhat.com>
7171 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
7172 report TARGET_WAITKIND_NO_RESUMED.
7173 * remote-utils.c (prepare_resume_reply): Handle
7174 TARGET_WAITKIND_NO_RESUMED.
7175 * server.c (report_no_resumed): New global.
7176 (handle_query) <qSupported>: Handle "no-resumed+". Report
7177 "no-resumed+" support.
7178 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
7179 return error if the client doesn't support no-resumed events.
7180 (push_stop_notification): New function.
7181 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
7182 events if the client supports them.
7184 2015-11-30 Pedro Alves <palves@redhat.com>
7186 * linux-low.c (thread_still_has_status_pending_p): Don't check
7188 (lwp_resumed): New function.
7189 (status_pending_p_callback): Return early if the LWP is not
7190 supposed to be resumed.
7192 2015-11-30 Pedro Alves <palves@redhat.com>
7194 * linux-low.c (handle_extended_wait): Assert that the LWP's
7195 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
7196 thread create events, leave the new child's status pending.
7197 (linux_low_filter_event): If GDB wants to hear about thread exit
7198 events, leave the LWP marked dead and don't delete it.
7199 (linux_wait_for_event_filtered): Don't check for thread exit.
7200 (filter_exit_event): New function.
7201 (linux_wait_1): Use it, when returning an exit event.
7202 (linux_resume_one_lwp_throw): Assert that the LWP's
7203 waitstatus is TARGET_WAITKIND_IGNORE.
7204 * remote-utils.c (prepare_resume_reply): Handle
7205 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7206 * server.c (report_thread_events): New global.
7207 (handle_general_set): Handle QThreadEvents.
7208 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7209 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7210 TARGET_WAITKIND_THREAD_EXITED.
7211 * server.h (report_thread_events): Declare.
7213 2015-11-30 Pedro Alves <palves@redhat.com>
7215 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7216 the thread's last_resume_kind was resume_stop.
7218 2015-11-30 Pedro Alves <palves@redhat.com>
7220 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7223 2015-11-30 Pedro Alves <palves@redhat.com>
7225 * server.c (handle_v_requests): Handle vCtrlC.
7227 2015-11-30 Pedro Alves <palves@redhat.com>
7229 * gdbthread.h (find_any_thread_of_pid): Declare.
7230 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7232 * server.c (handle_query): If current_thread is NULL, look for
7233 another thread of the selected process.
7235 2015-11-26 Daniel Colascione <dancol@dancol.org>
7236 Simon Marchi <simon.marchi@ericsson.com>
7238 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7239 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7241 * target.h (struct target_ops) <thread_name>: New field.
7242 (target_thread_name): New macro.
7244 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7246 * regcache.h (regcache_invalidate_pid): Add declaration.
7247 * regcache.c (regcache_invalidate_pid): New function, extracted
7248 from regcache_invalidate.
7249 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7250 Add trivial documentation comment.
7251 * lynx-low.c: Use regcache_invalidate_pid instead of
7252 regcache_invalidate.
7254 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7256 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7257 and Elf64_auxv_t if the target is Android.
7259 2015-11-22 Doug Evans <xdje42@gmail.com>
7261 * target.h: #include <sys/types.h>.
7263 2015-11-19 Pedro Alves <palves@redhat.com>
7265 * linux-low.c (linux_process_qsupported): Change prototype.
7267 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7269 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7270 and adjust to loop over all features.
7271 * server.c (handle_query) <qSupported>: Adjust to call
7272 target_process_qsupported once, passing it a vector of unprocessed
7274 * target.h (struct target_ops) <process_qsupported>: Change
7276 (target_process_qsupported): Adjust.
7278 2015-11-19 Pedro Alves <palves@redhat.com>
7280 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7282 * configure: Regenerate.
7284 2015-11-19 Pedro Alves <palves@redhat.com>
7286 * configure: Regenerate.
7288 2015-11-19 Yao Qi <yao.qi@linaro.org>
7290 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7293 2015-11-19 Yao Qi <yao.qi@linaro.org>
7295 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7296 (struct aarch64_operand): Move enum out.
7298 2015-11-19 Yao Qi <yao.qi@linaro.org>
7300 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7301 struct user_fpsimd_state *.
7302 (aarch64_store_fpregset): Likewise.
7304 2015-11-19 Yao Qi <yao.qi@linaro.org>
7306 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7307 struct user_pt_regs *.
7308 (aarch64_store_gregset): Likewise.
7310 2015-11-18 Pedro Alves <palves@redhat.com>
7312 * Makefile.in (all_object_files): Add $IPA_OBJS.
7314 2015-11-17 Pedro Alves <palves@redhat.com>
7316 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7317 GDB_SIGNAL_0 and gdb_signal_to_string.
7319 2015-11-17 Pedro Alves <palves@redhat.com>
7321 * win32-low.c (handle_output_debug_string): Remove parameter.
7322 (win32_kill): Remove our_status local and adjust call to
7323 handle_output_debug_string.
7324 (get_child_debug_event): Adjust call to
7325 handle_output_debug_string.
7327 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7329 * linux-mips-low.c (mips_fill_gregset): Add cast.
7330 (mips_store_gregset): Likewise.
7331 (mips_fill_fpregset): Likewise.
7332 (mips_store_fpregset): Likewise.
7334 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7336 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7339 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7341 * linux-mips-low.c (mips_linux_new_thread): Change type of
7342 watch_type to enum target_hw_bp_type.
7344 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7346 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7347 Change return type to arm_hwbp_type.
7349 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7351 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7352 (arm_store_gregset): Likewise.
7353 * linux-arm-low.c (arm_get_hwcap): Likewise.
7354 (arm_read_description): Likewise.
7356 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7358 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7360 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7362 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7363 (ppc_fill_vsxregset): Likewise.
7364 (ppc_store_vsxregset): Likewise.
7365 (ppc_fill_vrregset): Likewise.
7366 (ppc_store_vrregset): Likewise.
7367 (ppc_fill_evrregset): Likewise.
7368 (ppc_store_evrregset): Likewise.
7370 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7372 * linux-ppc-low.c (ppc_usrregs_info): Remove
7373 forward-declaration.
7374 (ppc_arch_setup): Move lower in file.
7376 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7378 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7379 (ps_pdwrite): Likewise.
7381 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7383 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7384 to after assert checks.
7386 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7388 * proc-service.c (ps_pdread): Add/adjust casts.
7389 (ps_pdwrite): Add/adjust casts.
7391 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7393 * server.c (handle_search_memory_1): Cast return value of
7396 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7398 * server.c (write_qxfer_response): Change type of data to
7401 2015-10-29 Pedro Alves <palves@redhat.com>
7403 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7405 2015-10-29 Pedro Alves <palves@redhat.com>
7407 * tracepoint.c (clear_installed_tracepoints): Add casts.
7409 2015-10-29 Pedro Alves <palves@redhat.com>
7411 * server.c (handle_v_cont, process_serial_event): Add enum
7412 gdb_signal casts to signal parsing code.
7414 2015-10-29 Pedro Alves <palves@redhat.com>
7416 * linux-low.h (NULL_REGSET): Define.
7417 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7418 * linux-arm-low.c (arm_regsets): Likewise.
7419 * linux-crisv32-low.c (cris_regsets): Likewise.
7420 * linux-m68k-low.c (m68k_regsets): Likewise.
7421 * linux-mips-low.c (mips_regsets): Likewise.
7422 * linux-nios2-low.c (nios2_regsets): Likewise.
7423 * linux-ppc-low.c (ppc_regsets): Likewise.
7424 * linux-s390-low.c (s390_regsets): Likewise.
7425 * linux-sh-low.c (sh_regsets): Likewise.
7426 * linux-sparc-low.c (sparc_regsets): Likewise.
7427 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7428 * linux-tile-low.c (tile_regsets): Likewise.
7429 * linux-x86-low.c (x86_regsets): Likewise.
7430 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7432 2015-10-29 Pedro Alves <palves@redhat.com>
7434 * linux-low.h (NULL_REGSET): Define.
7435 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7436 * linux-arm-low.c (arm_regsets): Likewise.
7437 * linux-crisv32-low.c (cris_regsets): Likewise.
7438 * linux-m68k-low.c (m68k_regsets): Likewise.
7439 * linux-mips-low.c (mips_regsets): Likewise.
7440 * linux-nios2-low.c (nios2_regsets): Likewise.
7441 * linux-ppc-low.c (ppc_regsets): Likewise.
7442 * linux-s390-low.c (s390_regsets): Likewise.
7443 * linux-sh-low.c (sh_regsets): Likewise.
7444 * linux-sparc-low.c (sparc_regsets): Likewise.
7445 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7446 * linux-tile-low.c (tile_regsets): Likewise.
7447 * linux-x86-low.c (x86_regsets): Likewise.
7448 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7450 2015-10-26 Doug Evans <dje@google.com>
7452 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7454 2015-10-26 Doug Evans <dje@google.com>
7456 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7458 2015-10-26 Doug Evans <dje@google.com>
7460 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7462 (attach_thread, find_new_threads_callback): Ditto.
7464 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7466 * mem-break.h (set_breakpoint_data): Remove.
7468 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7470 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7471 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7472 (initialize_low): Remove set_breakpoint_data call.
7473 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7474 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7475 (initialize_low): Remove set_breakpoint_data call.
7476 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7477 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7478 (initialize_low): Remove set_breakpoint_data call.
7480 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7482 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7483 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7484 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7485 * target.h (target_breakpoint_kind_from_pc): New macro.
7487 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7489 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7490 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7491 the default breakpoint kind.
7493 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7495 * linux-arm-low.c (arm_supports_z_point_type): Add software
7498 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7500 * linux-arm-low.c: Refactor breakpoint definitions.
7501 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7502 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7504 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7506 * Makefile.in: Add arm.c/o.
7507 * configure.srv: Likewise.
7508 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
7509 (arm_breakpoint_kind_from_pc): New function.
7510 (arm_sw_breakpoint_from_kind): Return proper kind.
7511 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
7513 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7515 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7517 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7518 (struct raw_breakpoint) <size>: Remove.
7519 (struct raw_breakpoint) <kind>: Add.
7520 (bp_size): New function.
7521 (bp_opcode): Likewise.
7522 (find_raw_breakpoint_at): Adjust for kind.
7523 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7524 (remove_memory_breakpoint): Adjust for kind call bp_size.
7525 (set_raw_breakpoint_at): Adjust for kind.
7526 (set_breakpoint): Likewise.
7527 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7528 (delete_raw_breakpoint): Adjust for kind.
7529 (delete_breakpoint): Likewise.
7530 (find_gdb_breakpoint): Likewise.
7531 (set_gdb_breakpoint_1): Likewise.
7532 (set_gdb_breakpoint): Likewise.
7533 (delete_gdb_breakpoint_1): Likewise.
7534 (delete_gdb_breakpoint): Likewise.
7535 (uninsert_raw_breakpoint): Likewise.
7536 (reinsert_raw_breakpoint): Likewise.
7537 (set_breakpoint_data): Remove.
7538 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7539 (check_mem_read): Adjust for kind call bp_size.
7540 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7541 (clone_one_breakpoint): Adjust for kind.
7542 * mem-break.h (set_gdb_breakpoint): Likewise.
7543 (delete_gdb_breakpoint): Likewise.
7544 * server.c (process_serial_event): Likewise.
7546 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7548 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7549 (struct linux_target_ops) <breakpoint>: Remove.
7550 (struct linux_target_ops) <breakpoint_len>: Remove.
7551 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7552 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7553 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7554 (arm_sw_breakpoint_from_kind): New function.
7555 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7556 (struct linux_target_ops) <breakpoint>: Remove.
7557 (struct linux_target_ops) <breakpoint_len>: Remove.
7558 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7559 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7560 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7561 (struct linux_target_ops) <breakpoint>: Remove.
7562 (struct linux_target_ops) <breakpoint_len>: Remove.
7563 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7564 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7565 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7566 (struct linux_target_ops) <breakpoint>: Remove.
7567 (struct linux_target_ops) <breakpoint_len>: Remove.
7568 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7569 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7570 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7571 and sw_breakpoint_from_kind to increment the pc.
7572 (linux_breakpoint_kind_from_pc): New function.
7573 (linux_sw_breakpoint_from_kind): New function.
7574 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7575 (initialize_low): Call breakpoint_kind_from_pc and
7576 sw_breakpoint_from_kind to replace breakpoint_data/len.
7577 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7579 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7580 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
7581 (struct linux_target_ops) <breakpoint>: Remove.
7582 (struct linux_target_ops) <breakpoint_len>: Remove.
7583 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7584 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7585 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7586 (struct linux_target_ops) <breakpoint>: Remove.
7587 (struct linux_target_ops) <breakpoint_len>: Remove.
7588 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7589 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7590 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
7591 (struct linux_target_ops) <breakpoint>: Remove.
7592 (struct linux_target_ops) <breakpoint_len>: Remove.
7593 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7594 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7595 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7596 (struct linux_target_ops) <breakpoint>: Remove.
7597 (struct linux_target_ops) <breakpoint_len>: Remove.
7598 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7599 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7600 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7601 (struct linux_target_ops) <breakpoint>: Remove.
7602 (struct linux_target_ops) <breakpoint_len>: Remove.
7603 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7604 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7605 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7606 (struct linux_target_ops) <breakpoint>: Remove.
7607 (struct linux_target_ops) <breakpoint_len>: Remove.
7608 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7609 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7610 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7611 (struct linux_target_ops) <breakpoint>: Remove.
7612 (struct linux_target_ops) <breakpoint_len>: Remove.
7613 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7614 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7615 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
7616 (struct linux_target_ops) <breakpoint>: Remove.
7617 (struct linux_target_ops) <breakpoint_len>: Remove.
7618 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7619 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7620 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
7621 (struct linux_target_ops) <breakpoint>: Remove.
7622 (struct linux_target_ops) <breakpoint_len>: Remove.
7623 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7624 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7625 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
7626 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
7627 (struct linux_target_ops) <breakpoint>: Remove.
7628 (struct linux_target_ops) <breakpoint_len>: Remove.
7629 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7630 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7631 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
7632 (struct linux_target_ops) <breakpoint>: Remove.
7633 (struct linux_target_ops) <breakpoint_len>: Remove.
7634 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7635 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7637 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7639 * linux-cris-low.c (cris_get_pc): Remove void arg.
7641 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7643 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7646 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7648 * inferiors.c (thread_pid_matches_callback): New function.
7649 (find_thread_process): New function.
7650 (remove_thread): Reset current_thread.
7651 (remove_process): Assert threads have been removed first.
7653 2015-10-15 Yao Qi <yao.qi@linaro.org>
7655 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7657 (aarch64_remove_point): Likewise.
7658 * regcache.c (regcache_register_size): New function.
7660 2015-10-12 Yao Qi <yao.qi@linaro.org>
7662 * linux-aarch64-low.c: Update all callers as emit_load_store
7663 is renamed to aarch64_emit_load_store.
7665 2015-10-12 Yao Qi <yao.qi@linaro.org>
7667 * linux-aarch64-low.c: Update all callers of function renaming
7668 from emit_insn to aarch64_emit_insn.
7670 2015-10-12 Yao Qi <yao.qi@linaro.org>
7672 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7673 arch/aarch64-insn.h.
7674 (struct aarch64_memory_operand): Likewise.
7676 (emit_insn): Move to arch/aarch64-insn.c.
7677 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
7678 (emit_load_store): Move to arch/aarch64-insn.c.
7679 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
7680 (can_encode_int32): Remove.
7682 2015-10-12 Yao Qi <yao.qi@linaro.org>
7684 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
7685 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
7686 (aarch64_relocate_instruction): Likewise.
7687 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
7688 (struct aarch64_insn_visitor): Likewise.
7690 2015-10-12 Yao Qi <yao.qi@linaro.org>
7692 * linux-aarch64-low.c (struct aarch64_insn_data): New.
7693 (struct aarch64_insn_visitor): New.
7694 (struct aarch64_insn_relocation_data): New.
7695 (aarch64_ftrace_insn_reloc_b): New function.
7696 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7697 (aarch64_ftrace_insn_reloc_cb): Likewise.
7698 (aarch64_ftrace_insn_reloc_tb): Likewise.
7699 (aarch64_ftrace_insn_reloc_adr): Likewise.
7700 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
7701 (aarch64_ftrace_insn_reloc_others): Likewise.
7703 (aarch64_relocate_instruction): Use visitor.
7705 2015-10-12 Yao Qi <yao.qi@linaro.org>
7707 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
7708 int. Add argument buf.
7709 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
7710 aarch64_relocate_instruction.
7712 2015-10-12 Yao Qi <yao.qi@linaro.org>
7714 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7715 argument insn. Remove local variable insn. Don't call
7717 (aarch64_install_fast_tracepoint_jump_pad): Call
7720 2015-09-30 Yao Qi <yao.qi@linaro.org>
7722 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7723 (emit_load_store_pair): Likewise.
7725 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7727 * dll.c (match_dll): Add cast(s).
7728 (unloaded_dll): Likewise.
7729 * linux-low.c (second_thread_of_pid_p): Likewise.
7730 (delete_lwp_callback): Likewise.
7731 (count_events_callback): Likewise.
7732 (select_event_lwp_callback): Likewise.
7733 (linux_set_resume_request): Likewise.
7734 * server.c (accumulate_file_name_length): Likewise.
7735 (emit_dll_description): Likewise.
7736 (handle_qxfer_threads_worker): Likewise.
7737 (visit_actioned_threads): Likewise.
7738 * thread-db.c (any_thread_of): Likewise.
7739 * tracepoint.c (same_process_p): Likewise.
7740 (match_blocktype): Likewise.
7741 (build_traceframe_info_xml): Likewise.
7743 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7745 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7747 (gdb_unparse_agent_expr): Likewise.
7748 * hostio.c (require_data): Likewise.
7749 (handle_pread): Likewise.
7750 * linux-low.c (disable_regset): Likewise.
7751 (fetch_register): Likewise.
7752 (store_register): Likewise.
7753 (get_dynamic): Likewise.
7754 (linux_qxfer_libraries_svr4): Likewise.
7755 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
7756 (set_fast_tracepoint_jump): Likewise.
7757 (uninsert_fast_tracepoint_jumps_at): Likewise.
7758 (reinsert_fast_tracepoint_jumps_at): Likewise.
7759 (validate_inserted_breakpoint): Likewise.
7760 (clone_agent_expr): Likewise.
7761 * regcache.c (init_register_cache): Likewise.
7762 * remote-utils.c (putpkt_binary_1): Likewise.
7763 (decode_M_packet): Likewise.
7764 (decode_X_packet): Likewise.
7765 (look_up_one_symbol): Likewise.
7766 (relocate_instruction): Likewise.
7767 (monitor_output): Likewise.
7768 * server.c (handle_search_memory): Likewise.
7769 (handle_qxfer_exec_file): Likewise.
7770 (handle_qxfer_libraries): Likewise.
7771 (handle_qxfer): Likewise.
7772 (handle_query): Likewise.
7773 (handle_v_cont): Likewise.
7774 (handle_v_run): Likewise.
7775 (captured_main): Likewise.
7776 * target.c (write_inferior_memory): Likewise.
7777 * thread-db.c (try_thread_db_load_from_dir): Likewise.
7778 * tracepoint.c (init_trace_buffer): Likewise.
7779 (add_tracepoint_action): Likewise.
7780 (add_traceframe): Likewise.
7781 (add_traceframe_block): Likewise.
7782 (cmd_qtdpsrc): Likewise.
7783 (cmd_qtdv): Likewise.
7784 (cmd_qtstatus): Likewise.
7785 (response_source): Likewise.
7786 (response_tsv): Likewise.
7787 (cmd_qtnotes): Likewise.
7788 (gdb_collect): Likewise.
7789 (initialize_tracepoint): Likewise.
7791 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7793 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
7794 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
7795 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
7797 (enum aarch64_condition_codes): New enum.
7798 (w0): New static global.
7801 (struct aarch64_memory_operand) <type>: New
7802 MEMORY_OPERAND_POSTINDEX type.
7803 (postindex_memory_operand): New helper function.
7804 (emit_ret): New function.
7805 (emit_load_store_pair): New function, factored out of emit_stp
7806 with support for MEMORY_OPERAND_POSTINDEX.
7807 (emit_stp): Rewrite using emit_load_store_pair.
7808 (emit_ldp): New function.
7809 (emit_load_store): Likewise.
7810 (emit_ldr): Mention post-index instruction in comment.
7811 (emit_ldrh): New function.
7812 (emit_ldrb): New function.
7813 (emit_ldrsw): Mention post-index instruction in comment.
7814 (emit_str): Likewise.
7815 (emit_subs): New function.
7816 (emit_cmp): Likewise.
7817 (emit_and): Likewise.
7818 (emit_orr): Likewise.
7819 (emit_orn): Likewise.
7820 (emit_eor): Likewise.
7821 (emit_mvn): Likewise.
7822 (emit_lslv): Likewise.
7823 (emit_lsrv): Likewise.
7824 (emit_asrv): Likewise.
7825 (emit_mul): Likewise.
7826 (emit_sbfm): Likewise.
7827 (emit_sbfx): Likewise.
7828 (emit_ubfm): Likewise.
7829 (emit_ubfx): Likewise.
7830 (emit_csinc): Likewise.
7831 (emit_cset): Likewise.
7832 (emit_nop): Likewise.
7833 (emit_ops_insns): New helper function.
7834 (emit_pop): Likewise.
7835 (emit_push): Likewise.
7836 (aarch64_emit_prologue): New function.
7837 (aarch64_emit_epilogue): Likewise.
7838 (aarch64_emit_add): Likewise.
7839 (aarch64_emit_sub): Likewise.
7840 (aarch64_emit_mul): Likewise.
7841 (aarch64_emit_lsh): Likewise.
7842 (aarch64_emit_rsh_signed): Likewise.
7843 (aarch64_emit_rsh_unsigned): Likewise.
7844 (aarch64_emit_ext): Likewise.
7845 (aarch64_emit_log_not): Likewise.
7846 (aarch64_emit_bit_and): Likewise.
7847 (aarch64_emit_bit_or): Likewise.
7848 (aarch64_emit_bit_xor): Likewise.
7849 (aarch64_emit_bit_not): Likewise.
7850 (aarch64_emit_equal): Likewise.
7851 (aarch64_emit_less_signed): Likewise.
7852 (aarch64_emit_less_unsigned): Likewise.
7853 (aarch64_emit_ref): Likewise.
7854 (aarch64_emit_if_goto): Likewise.
7855 (aarch64_emit_goto): Likewise.
7856 (aarch64_write_goto_address): Likewise.
7857 (aarch64_emit_const): Likewise.
7858 (aarch64_emit_call): Likewise.
7859 (aarch64_emit_reg): Likewise.
7860 (aarch64_emit_pop): Likewise.
7861 (aarch64_emit_stack_flush): Likewise.
7862 (aarch64_emit_zero_ext): Likewise.
7863 (aarch64_emit_swap): Likewise.
7864 (aarch64_emit_stack_adjust): Likewise.
7865 (aarch64_emit_int_call_1): Likewise.
7866 (aarch64_emit_void_call_2): Likewise.
7867 (aarch64_emit_eq_goto): Likewise.
7868 (aarch64_emit_ne_goto): Likewise.
7869 (aarch64_emit_lt_goto): Likewise.
7870 (aarch64_emit_le_goto): Likewise.
7871 (aarch64_emit_gt_goto): Likewise.
7872 (aarch64_emit_ge_got): Likewise.
7873 (aarch64_emit_ops_impl): New static global variable.
7874 (aarch64_emit_ops): New target function, return
7875 &aarch64_emit_ops_impl.
7876 (struct linux_target_ops): Install it.
7878 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7880 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7881 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
7883 * linux-aarch64-ipa.c: New file.
7884 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
7886 (aarch64_get_thread_area): New target method.
7887 (extract_signed_bitfield): New helper function.
7888 (aarch64_decode_ldr_literal): New function.
7889 (enum aarch64_opcodes): New enum.
7890 (struct aarch64_register): New struct.
7891 (struct aarch64_operand): New struct.
7892 (x0): New static global.
7901 (aarch64_register): New helper function.
7902 (register_operand): Likewise.
7903 (immediate_operand): Likewise.
7904 (struct aarch64_memory_operand): New struct.
7905 (offset_memory_operand): New helper function.
7906 (preindex_memory_operand): Likewise.
7907 (enum aarch64_system_control_registers): New enum.
7908 (ENCODE): New macro.
7909 (emit_insn): New helper function.
7910 (emit_b): New function.
7911 (emit_bcond): Likewise.
7912 (emit_cb): Likewise.
7913 (emit_tb): Likewise.
7914 (emit_blr): Likewise.
7915 (emit_stp): Likewise.
7916 (emit_ldp_q_offset): Likewise.
7917 (emit_stp_q_offset): Likewise.
7918 (emit_load_store): Likewise.
7919 (emit_ldr): Likewise.
7920 (emit_ldrsw): Likewise.
7921 (emit_str): Likewise.
7922 (emit_ldaxr): Likewise.
7923 (emit_stxr): Likewise.
7924 (emit_stlr): Likewise.
7925 (emit_data_processing_reg): Likewise.
7926 (emit_data_processing): Likewise.
7927 (emit_add): Likewise.
7928 (emit_sub): Likewise.
7929 (emit_mov): Likewise.
7930 (emit_movk): Likewise.
7931 (emit_mov_addr): Likewise.
7932 (emit_mrs): Likewise.
7933 (emit_msr): Likewise.
7934 (emit_sevl): Likewise.
7935 (emit_wfe): Likewise.
7936 (append_insns): Likewise.
7937 (can_encode_int32_in): New helper function.
7938 (aarch64_relocate_instruction): New function.
7939 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
7940 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
7941 (struct linux_target_ops): Install aarch64_get_thread_area,
7942 aarch64_install_fast_tracepoint_jump_pad and
7943 aarch64_get_min_fast_tracepoint_insn_len.
7945 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7947 * Makefile.in (aarch64-insn.o): New rule.
7948 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
7950 2015-09-21 Yao Qi <yao.qi@linaro.org>
7952 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
7954 2015-09-21 Yao Qi <yao.qi@linaro.org>
7956 * tracepoint.c (max_jump_pad_size): Remove.
7958 2015-09-18 Yao Qi <yao.qi@linaro.org>
7960 * linux-aarch64-low.c: Don't include sys/uio.h.
7961 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
7963 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
7965 * tracepoint.c (eval_result_type): Change prototype.
7966 (condition_true_at_tracepoint): Fix argument to compiled_cond.
7968 2015-09-15 Pedro Alves <palves@redhat.com>
7970 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
7971 Check whether to report exec events instead of checking whether
7972 multiprocess is enabled.
7974 2015-09-15 Pedro Alves <palves@redhat.com>
7977 * remote-utils.c (prepare_resume_reply): Merge
7978 TARGET_WAITKIND_VFORK_DONE switch case with the
7979 TARGET_WAITKIND_FORKED case.
7981 2015-09-15 Yao Qi <yao.qi@linaro.org>
7983 * server.c (handle_query): Check string comparison using
7984 "else if" instead of "if".
7986 2015-09-15 Yao Qi <yao.qi@linaro.org>
7988 * server.c (vCont_supported): New global variable.
7989 (handle_query): Set vCont_supported to 1 if "vContSupported+"
7990 matches. Append ";vContSupported+" to own_buf.
7991 (handle_v_requests): Append ";s;S" to own_buf if target supports
7992 hardware single step or vCont_supported is false.
7993 (capture_main): Set vCont_supported to zero.
7995 2015-09-15 Yao Qi <yao.qi@linaro.org>
7997 * linux-low.c (linux_supports_conditional_breakpoints): Rename
7999 (linux_supports_hardware_single_step): ... New function.
8000 (linux_target_ops): Update.
8001 * lynx-low.c (lynx_target_ops): Set field
8002 supports_hardware_single_step to target_can_do_hardware_single_step.
8003 * nto-low.c (nto_target_ops): Likewise.
8004 * spu-low.c (spu_target_ops): Likewise.
8005 * win32-low.c (win32_target_ops): Likewise.
8006 * target.c (target_can_do_hardware_single_step): New function.
8007 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8008 Remove. <supports_hardware_single_step>: New field.
8009 (target_supports_conditional_breakpoints): Remove.
8010 (target_supports_hardware_single_step): New macro.
8011 (target_can_do_hardware_single_step): Declare.
8012 * server.c (handle_query): Use target_supports_hardware_single_step
8013 instead of target_supports_conditional_breakpoints.
8015 2015-09-15 Yao Qi <yao.qi@linaro.org>
8017 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
8019 (struct linux_target_ops the_low_target): Install
8020 aarch64_linux_siginfo_fixup.
8022 2015-09-11 Don Breazeal <donb@codesourcery.com>
8023 Luis Machado <lgustavo@codesourcery.com>
8025 * linux-low.c (linux_mourn): Static declaration.
8026 (linux_arch_setup): Move in front of
8027 handle_extended_wait.
8028 (linux_arch_setup_thread): New function.
8029 (handle_extended_wait): Handle exec events. Call
8030 linux_arch_setup_thread. Make event_lwp argument a
8031 pointer-to-a-pointer.
8032 (check_zombie_leaders): Do not check stopped threads.
8033 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
8034 (linux_low_filter_event): Add lwp and thread for exec'ing
8035 non-leader thread if leader thread has been deleted.
8036 Refactor code into linux_arch_setup_thread and call it.
8037 Pass child lwp pointer by reference to handle_extended_wait.
8038 (linux_wait_for_event_filtered): Update comment.
8039 (linux_wait_1): Prevent clobbering exec event status.
8040 (linux_supports_exec_events): New function.
8041 (linux_target_ops) <supports_exec_events>: Initialize new member.
8042 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
8044 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
8045 * server.c (report_exec_events): New global variable.
8046 (handle_query): Handle qSupported query for exec-events feature.
8047 (captured_main): Initialize report_exec_events.
8048 * server.h (report_exec_events): Declare new global variable.
8049 * target.h (struct target_ops) <supports_exec_events>: New
8051 (target_supports_exec_events): New macro.
8052 * win32-low.c (win32_target_ops) <supports_exec_events>:
8053 Initialize new member.
8055 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
8057 * linux-low.c (linux_low_enable_btrace): Remove.
8058 (linux_target_ops): Replace linux_low_enable_btrace with
8059 linux_enable_btrace.
8061 2015-09-03 Yao Qi <yao.qi@linaro.org>
8063 * linux-aarch64-low.c (aarch64_insert_point): Call
8064 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
8067 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8069 * linux-low.c (check_stopped_by_breakpoint): Use
8070 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
8072 2015-08-27 Pedro Alves <palves@redhat.com>
8074 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
8076 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
8078 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
8079 the XNEW-family equivalent.
8080 (compile_bytecodes): Likewise.
8081 * dll.c (loaded_dll): Likewise.
8082 * event-loop.c (append_callback_event): Likewise.
8083 (create_file_handler): Likewise.
8084 (create_file_event): Likewise.
8085 * hostio.c (handle_open): Likewise.
8086 * inferiors.c (add_thread): Likewise.
8087 (add_process): Likewise.
8088 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
8089 * linux-arm-low.c (arm_new_process): Likewise.
8090 (arm_new_thread): Likewise.
8091 * linux-low.c (add_to_pid_list): Likewise.
8092 (linux_add_process): Likewise.
8093 (handle_extended_wait): Likewise.
8094 (add_lwp): Likewise.
8095 (enqueue_one_deferred_signal): Likewise.
8096 (enqueue_pending_signal): Likewise.
8097 (linux_resume_one_lwp_throw): Likewise.
8098 (linux_resume_one_thread): Likewise.
8099 (linux_read_memory): Likewise.
8100 (linux_write_memory): Likewise.
8101 * linux-mips-low.c (mips_linux_new_process): Likewise.
8102 (mips_linux_new_thread): Likewise.
8103 (mips_add_watchpoint): Likewise.
8104 * linux-x86-low.c (initialize_low_arch): Likewise.
8105 * lynx-low.c (lynx_add_process): Likewise.
8106 * mem-break.c (set_raw_breakpoint_at): Likewise.
8107 (set_breakpoint): Likewise.
8108 (add_condition_to_breakpoint): Likewise.
8109 (add_commands_to_breakpoint): Likewise.
8110 (clone_agent_expr): Likewise.
8111 (clone_one_breakpoint): Likewise.
8112 * regcache.c (new_register_cache): Likewise.
8113 * remote-utils.c (look_up_one_symbol): Likewise.
8114 * server.c (queue_stop_reply): Likewise.
8115 (start_inferior): Likewise.
8116 (queue_stop_reply_callback): Likewise.
8117 (handle_target_event): Likewise.
8118 * spu-low.c (fetch_ppc_memory): Likewise.
8119 (store_ppc_memory): Likewise.
8120 * target.c (set_target_ops): Likewise.
8121 * thread-db.c (thread_db_load_search): Likewise.
8122 (try_thread_db_load_1): Likewise.
8123 * tracepoint.c (add_tracepoint): Likewise.
8124 (add_tracepoint_action): Likewise.
8125 (create_trace_state_variable): Likewise.
8126 (cmd_qtdpsrc): Likewise.
8127 (cmd_qtro): Likewise.
8128 (add_while_stepping_state): Likewise.
8129 * win32-low.c (child_add_thread): Likewise.
8130 (get_image_name): Likewise.
8132 2015-08-25 Yao Qi <yao.qi@linaro.org>
8134 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
8136 2015-08-25 Yao Qi <yao.qi@linaro.org>
8138 * Makefile.in (aarch64-linux.o): New rule.
8139 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
8141 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
8142 (aarch64_init_debug_reg_state): Make it extern.
8143 (aarch64_linux_prepare_to_resume): Remove.
8145 2015-08-25 Yao Qi <yao.qi@linaro.org>
8147 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
8148 lwp_arch_private_info and ptid_of_lwp.
8150 2015-08-25 Yao Qi <yao.qi@linaro.org>
8152 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
8153 Find proc_info by find_process_pid. All callers updated.
8155 2015-08-25 Yao Qi <yao.qi@linaro.org>
8157 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
8159 (debug_reg_change_callback): Remove.
8160 (aarch64_notify_debug_reg_change): Remove.
8162 2015-08-25 Yao Qi <yao.qi@linaro.org>
8164 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
8165 Call current_lwp_ptid.
8167 2015-08-25 Yao Qi <yao.qi@linaro.org>
8169 * linux-aarch64-low.c (debug_reg_change_callback): Use
8172 2015-08-25 Yao Qi <yao.qi@linaro.org>
8174 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
8176 2015-08-25 Yao Qi <yao.qi@linaro.org>
8178 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
8180 2015-08-25 Yao Qi <yao.qi@linaro.org>
8182 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
8185 2015-08-25 Yao Qi <yao.qi@linaro.org>
8187 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
8189 (debug_reg_change_callback): Remove argument entry and add argument
8190 lwp. Remove local variable thread. Don't print thread id in the
8191 debugging output. Don't check whether pid of thread equals to pid.
8192 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
8193 iterate_over_lwps instead find_inferior.
8195 2015-08-24 Pedro Alves <palves@redhat.com>
8197 * inferiors.c (get_first_process): New function.
8198 * inferiors.h (get_first_process): New declaration.
8199 * remote-utils.c (read_ptid): Default to the first process in the
8200 list, instead of to the current thread's process.
8202 2015-08-24 Pedro Alves <palves@redhat.com>
8204 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8205 * event-loop.c: Likewise.
8206 * remote-utils.c: Likewise.
8207 * tracepoint.c: Likewise.
8209 2015-08-24 Pedro Alves <palves@redhat.com>
8211 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8214 2015-08-21 Pedro Alves <palves@redhat.com>
8216 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8217 instead of literal 1.
8219 2015-08-21 Pedro Alves <palves@redhat.com>
8221 * tdesc.c (default_description): Explicitly zero-initialize.
8223 2015-08-21 Pedro Alves <palves@redhat.com>
8226 * inferiors.c (remove_thread): Discard any pending stop reply for
8228 * server.c (remove_all_on_match_pid): Rename to ...
8229 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8231 (discard_queued_stop_replies): Change parameter to a ptid. Now
8233 (handle_v_kill, kill_inferior_callback, captured_main)
8234 (process_serial_event): Adjust.
8235 * server.h (discard_queued_stop_replies): Declare.
8237 2015-08-21 Pedro Alves <palves@redhat.com>
8239 * linux-low.c (wait_for_sigstop): Always switch to no thread
8240 selected if the previously current thread dies.
8241 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8242 process instead of the current thread's.
8243 * remote-utils.c (input_interrupt): Don't check if there's no
8245 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8246 current thread to the general thread fails, error out.
8247 (handle_qxfer_auxv, handle_qxfer_libraries)
8248 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8249 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8250 (handle_query): Check if there's a thread selected instead of
8251 checking whether there's any thread in the thread list.
8252 (handle_qxfer_threads, handle_qxfer_btrace)
8253 (handle_qxfer_btrace_conf): Don't error out early if there's no
8254 thread in the thread list.
8255 (handle_v_cont, myresume): Don't set the current thread to the
8257 (process_serial_event) <Hg handling>: Also set thread_id if the
8258 previous general thread is still alive.
8259 (process_serial_event) <g/G handling>: If setting the current
8260 thread to the general thread fails, error out.
8261 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8262 thread's lwp instead of the current thread's.
8263 * target.c (set_desired_thread): If the desired thread was not
8264 found, leave the current thread pointing to NULL. Return an int
8265 (boolean) indicating success.
8266 * target.h (set_desired_thread): Change return type to int.
8268 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8270 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8271 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8273 (ps_get_thread_area): New function.
8275 2015-08-19 Gary Benson <gbenson@redhat.com>
8277 * hostio.c (handle_pread): Do not attempt to read more data
8278 than hostio_reply_with_data can fit in a packet.
8280 2015-08-18 Joel Brobecker <brobecker@adacore.com>
8282 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8284 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8286 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8288 2015-08-06 Pedro Alves <palves@redhat.com>
8290 * tracepoint.c (expr_eval_result): Now an int.
8292 2015-08-06 Pedro Alves <palves@redhat.com>
8294 * gdbthread.h (struct regcache): Forward declare.
8295 (struct thread_info) <regcache_data>: Now a struct regcache
8297 * inferiors.c (inferior_regcache_data)
8298 (set_inferior_regcache_data): Now work with struct regcache
8300 * inferiors.h (struct regcache): Forward declare.
8301 (inferior_regcache_data, set_inferior_regcache_data): Now work
8302 with struct regcache pointers.
8303 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8304 (free_register_cache_thread): Remove struct regcache pointer
8307 2015-08-06 Pedro Alves <palves@redhat.com>
8309 * server.c (captured_main): On error, print the exception message
8310 to stderr, and if run_once is set, throw a quit.
8312 2015-08-06 Pedro Alves <palves@redhat.com>
8314 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8317 2015-08-06 Pedro Alves <palves@redhat.com>
8319 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8320 reading beyond the passed in buffer length.
8322 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8324 * tracepoint.c (symbol_list) <required>: Remove.
8326 2015-08-06 Pedro Alves <palves@redhat.com>
8328 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8329 count if stopping and suspending threads.
8330 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8331 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8332 (linux_detach): Complete an ongoing step-over.
8333 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8335 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8336 (linux_wait_1): If passing a signal to the inferior after
8337 finishing a step-over, unsuspend and re-resume all lwps. If we
8338 see a single-step event but the thread should be continuing, don't
8339 pass the trap to gdb.
8340 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8341 internal_error instead of gdb_assert.
8342 (enqueue_pending_signal): New function.
8343 (check_ptrace_stopped_lwp_gone): Add debug output.
8344 (start_step_over): Use internal_error instead of gdb_assert.
8345 (complete_ongoing_step_over): New function.
8346 (linux_resume_one_thread): Don't resume a suspended thread.
8347 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8350 2015-08-06 Pedro Alves <palves@redhat.com>
8352 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8353 (linux_thread_alive): Use lwp_is_marked_dead.
8354 (extended_event_reported): Delete.
8355 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8356 instead of extended_event_reported.
8357 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8359 (lwp_is_marked_dead): New function.
8360 (lwp_running): Use lwp_is_marked_dead.
8361 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8364 2015-08-06 Pedro Alves <palves@redhat.com>
8366 * linux-low.c (linux_wait_1): Move fork event output out of the
8367 !report_to_gdb check. Pass event_child->waitstatus to
8368 target_waitstatus_to_string instead of ourstatus.
8370 2015-08-04 Yao Qi <yao.qi@linaro.org>
8372 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8373 if current_thread is 32 bit.
8375 2015-08-04 Yao Qi <yao.qi@linaro.org>
8377 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8378 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8379 * server.c (extended_protocol): Remove "static".
8380 * server.h (extended_protocol): Declare it.
8382 2015-08-04 Yao Qi <yao.qi@linaro.org>
8384 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8385 both aarch64 and aarch32.
8386 (aarch64_set_pc): Likewise.
8388 2015-08-04 Yao Qi <yao.qi@linaro.org>
8390 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8391 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8392 arm-with-neon.xml to srv_xmlfiles.
8393 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8394 (is_64bit_tdesc): New function.
8395 (aarch64_linux_read_description): New function.
8396 (aarch64_arch_setup): Call aarch64_linux_read_description.
8397 (regs_info): Rename to regs_info_aarch64.
8398 (aarch64_regs_info): Return right regs_info.
8399 (initialize_low_arch): Call initialize_low_arch_aarch32.
8401 2015-08-04 Yao Qi <yao.qi@linaro.org>
8403 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8404 * linux-aarch32-low.c: New file.
8405 * linux-aarch32-low.h: New file.
8406 * linux-arm-low.c (arm_fill_gregset): Move it to
8407 linux-aarch32-low.c.
8408 (arm_store_gregset): Likewise.
8409 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8410 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8411 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8412 (regs_info): Rename to regs_info_arm.
8413 (arm_regs_info): Return regs_info_aarch32 if
8414 have_ptrace_getregset is 1 and target description is
8415 arm_with_neon or arm_with_vfpv3.
8416 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8417 Call initialize_low_arch_aarch32 instead.
8419 2015-08-04 Yao Qi <yao.qi@linaro.org>
8421 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8422 * linux-low.c: ... here.
8423 * linux-low.h (have_ptrace_getregset): Declare it.
8425 2015-08-04 Pedro Alves <palves@redhat.com>
8427 * thread-db.c (struct thread_db): Use new typedefs.
8428 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8430 (disable_thread_event_reporting): Cast result of dlsym to
8431 destination function pointer type.
8432 (thread_db_mourn): Use td_ta_delete_ftype.
8434 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8436 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8438 (CDX_BREAKPOINT): Define for R2.
8439 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8440 (the_low_target): Add comments.
8442 2015-07-30 Yao Qi <yao.qi@linaro.org>
8444 * linux-arm-low.c (arm_hwcap): Remove it.
8445 (arm_read_description): New local variable arm_hwcap. Don't
8446 set arm_hwcap to zero.
8448 2015-07-30 Yao Qi <yao.qi@linaro.org>
8450 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8451 Use regcache->tdesc instead.
8452 (arm_store_wmmxregset): Likewise.
8453 (arm_fill_vfpregset): Likewise.
8454 (arm_store_vfpregset): Likewise.
8456 2015-07-30 Yao Qi <yao.qi@linaro.org>
8458 * linux-arm-low.c: Include arch/arm.h.
8459 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8460 (arm_store_gregset): Likewise.
8462 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8464 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8465 ptrace's 4th parameter.
8467 2015-07-27 Yao Qi <yao.qi@linaro.org>
8469 * configure.srv (case aarch64*-*-linux*): Don't set
8472 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8474 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8476 * linux-arm-low.c: Likewise.
8477 * linux-cris-low.c: Likewise.
8478 * linux-crisv32-low.c: Likewise.
8479 * linux-low.c: Likewise.
8480 * linux-m68k-low.c: Likewise.
8481 * linux-mips-low.c: Likewise.
8482 * linux-nios2-low.c: Likewise.
8483 * linux-s390-low.c: Likewise.
8484 * linux-sparc-low.c: Likewise.
8485 * linux-tic6x-low.c: Likewise.
8486 * linux-tile-low.c: Likewise.
8487 * linux-x86-low.c: Likewise.
8489 2015-07-24 Pedro Alves <palves@redhat.com>
8491 * config.in: Regenerate.
8492 * configure: Regenerate.
8494 2015-07-24 Pedro Alves <palves@redhat.com>
8496 * acinclude.m4: Include ../ptrace.m4.
8497 * configure.ac: Call GDB_AC_PTRACE.
8498 * config.in, configure: Regenerate.
8500 2015-07-24 Yao Qi <yao.qi@linaro.org>
8502 * linux-low.c (linux_create_inferior): Remove setting to
8503 proc->priv->new_inferior.
8504 (linux_attach): Likewise.
8505 (linux_low_filter_event): Likewise.
8506 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
8508 2015-07-24 Yao Qi <yao.qi@linaro.org>
8510 * linux-low.c (linux_arch_setup): New function.
8511 (linux_low_filter_event): If proc->tdesc is NULL and
8512 proc->attached is true, call the_low_target.arch_setup.
8513 Otherwise, keep status pending, and return.
8514 (linux_resume_one_lwp_throw): Don't call get_pc if
8515 thread->while_stepping isn't NULL. Don't call
8516 get_thread_regcache if proc->tdesc is NULL.
8517 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8518 (linux_target_ops): Install arch_setup.
8519 * server.c (start_inferior): Call the_target->arch_setup.
8520 * target.h (struct target_ops) <arch_setup>: New field.
8521 (target_arch_setup): New marco.
8522 * lynx-low.c (lynx_target_ops): Update.
8523 * nto-low.c (nto_target_ops): Update.
8524 * spu-low.c (spu_target_ops): Update.
8525 * win32-low.c (win32_target_ops): Update.
8527 2015-07-24 Yao Qi <yao.qi@linaro.org>
8529 * linux-low.c (linux_add_process): Don't set
8530 proc->priv->new_inferior.
8531 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8532 (linux_attach): Likewise.
8534 2015-07-24 Yao Qi <yao.qi@linaro.org>
8536 * server.c (start_inferior): Code refactor.
8538 2015-07-24 Yao Qi <yao.qi@linaro.org>
8540 * server.c (process_serial_event): Set general_thread.
8542 2015-07-21 Yao Qi <yao.qi@linaro.org>
8544 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8545 aarch64_linux_get_debug_reg_capacity.
8547 2015-07-17 Yao Qi <yao.qi@linaro.org>
8549 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8550 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8551 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8552 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8553 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8554 (AARCH64_HWP_ALIGNMENT): Likewise.
8555 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8556 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8557 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8558 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8559 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8560 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8561 (struct aarch64_debug_reg_state): Likewise.
8562 (struct arch_lwp_info): Likewise.
8563 (aarch64_align_watchpoint): Likewise.
8564 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8565 (aarch64_watchpoint_length): Likewise.
8566 (aarch64_point_encode_ctrl_reg): Likewise
8567 (aarch64_point_is_aligned): Likewise.
8568 (aarch64_align_watchpoint): Likewise.
8569 (aarch64_linux_set_debug_regs):
8570 (aarch64_dr_state_insert_one_point): Likewise.
8571 (aarch64_dr_state_remove_one_point): Likewise.
8572 (aarch64_handle_breakpoint): Likewise.
8573 (aarch64_handle_aligned_watchpoint): Likewise.
8574 (aarch64_handle_unaligned_watchpoint): Likewise.
8575 (aarch64_handle_watchpoint): Likewise.
8577 2015-07-17 Yao Qi <yao.qi@linaro.org>
8579 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8580 and don't aarch64_get_debug_reg_state. All callers update.
8581 (aarch64_handle_aligned_watchpoint): Likewise.
8582 (aarch64_handle_unaligned_watchpoint): Likewise.
8583 (aarch64_handle_watchpoint): Likewise.
8584 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8585 (aarch64_remove_point): Likewise.
8587 2015-07-17 Yao Qi <yao.qi@linaro.org>
8589 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8591 (aarch64_handle_unaligned_watchpoint): Likewise.
8593 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8595 Revert the previous 3 commits:
8596 Move gdb_regex* to common/
8597 Move linux_find_memory_regions_full & co.
8598 gdbserver build-id attribute generator
8600 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8601 Jan Kratochvil <jan.kratochvil@redhat.com>
8603 gdbserver build-id attribute generator.
8604 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8605 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8606 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8608 (get_dynamic): Use find_pdhr to traverse program headers.
8609 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8610 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8611 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8612 (get_hex_build_id): New.
8613 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8614 to reply XML document.
8616 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8617 Jan Kratochvil <jan.kratochvil@redhat.com>
8619 * target.c: Include target/target-utils.h and fcntl.h.
8620 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
8621 (target_fileio_read_stralloc): New functions.
8623 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8625 * Makefile.in (OBS): Add gdb_regex.o.
8627 * config.in: Rebuilt.
8628 * configure: Rebuilt.
8630 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8631 Jan Kratochvil <jan.kratochvil@redhat.com>
8633 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
8634 * Makefile.in (OBS): Add target-utils.o.
8635 (linux-maps.o, target-utils.o): New.
8636 * configure.srv (srv_linux_obj): Add linux-maps.o.
8638 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8640 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8642 (the_low_target): Install it.
8644 2015-07-14 Pedro Alves <palves@redhat.com>
8646 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8647 Instead, ignore ECHILD, and throw an error for other errnos.
8649 2015-07-10 Pedro Alves <palves@redhat.com>
8651 * event-loop.c (struct callback_event) <data>: Change type to
8652 gdb_client_data instance instead of gdb_client_data pointer.
8653 (append_callback_event): Adjust.
8655 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8657 * linux-aarch64-low.c: Add comments for each linux_target_ops
8658 method. Remove comments already covered in target_ops and
8659 linux_target_ops definitions.
8660 (the_low_target): Add comments for each unimplemented method.
8662 2015-07-09 Yao Qi <yao.qi@linaro.org>
8664 * linux-aarch64-low.c (aarch64_regmap): Remove.
8665 (aarch64_usrregs_info): Remove.
8666 (regs_info): Set field usrregs to NULL.
8668 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8670 * linux-low.c: Include "rsp-low.h"
8671 (linux_low_encode_pt_config, linux_low_encode_raw): New.
8672 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
8673 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
8674 (handle_btrace_enable_pt): New.
8675 (handle_btrace_general_set): Support "pt".
8676 (handle_btrace_conf_general_set): Support "pt:size".
8678 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8680 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8683 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8685 * linux-aarch64-low.c: Remove comment about endianness.
8686 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
8687 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
8690 2015-06-24 Gary Benson <gbenson@redhat.com>
8692 * linux-i386-ipa.c (stdint.h): Do not include.
8693 * lynx-i386-low.c (stdint.h): Likewise.
8694 * lynx-ppc-low.c (stdint.h): Likewise.
8695 * mem-break.c (stdint.h): Likewise.
8696 * thread-db.c (stdint.h): Likewise.
8697 * tracepoint.c (stdint.h): Likewise.
8698 * win32-low.c (stdint.h): Likewise.
8700 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8702 * server.c (write_qxfer_response): Update call to
8703 remote_escape_output.
8705 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8706 Jan Kratochvil <jan.kratochvil@redhat.com>
8708 Merge multiple hex conversions.
8709 * gdbreplay.c (tohex): Rename to 'fromhex'.
8710 (logchar): Use fromhex.
8712 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8714 * server.c (handle_qxfer_libraries): Set `version' attribute for
8717 2015-06-10 Gary Benson <gbenson@redhat.com>
8719 * target.h (struct target_ops) <multifs_open>: New field.
8720 <multifs_unlink>: Likewise.
8721 <multifs_readlink>: Likewise.
8722 * linux-low.c (nat/linux-namespaces.h): New include.
8723 (linux_target_ops): Initialize the_target->multifs_open,
8724 the_target->multifs_unlink and the_target->multifs_readlink.
8725 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
8726 * hostio.c (hostio_fs_pid): New static variable.
8727 (hostio_handle_new_gdb_connection): New function.
8728 (handle_setfs): Likewise.
8729 (handle_open): Use the_target->multifs_open as appropriate.
8730 (handle_unlink): Use the_target->multifs_unlink as appropriate.
8731 (handle_readlink): Use the_target->multifs_readlink as
8733 (handle_vFile): Handle vFile:setfs packets.
8734 * server.c (handle_query): Call hostio_handle_new_gdb_connection
8735 after target_handle_new_gdb_connection.
8737 2015-06-10 Gary Benson <gbenson@redhat.com>
8739 * configure.ac (AC_CHECK_FUNCS): Add setns.
8740 * config.in: Regenerate.
8741 * configure: Likewise.
8742 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
8743 (linux-namespaces.o): New rule.
8744 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
8746 2015-06-09 Gary Benson <gbenson@redhat.com>
8748 * hostio.c (handle_open): Process mode argument with
8749 fileio_to_host_mode.
8751 2015-06-01 Yao Qi <yao.qi@linaro.org>
8753 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8754 * linux-x86-low.c: Likewise.
8756 2015-05-28 Don Breazeal <donb@codesourcery.com>
8758 * linux-low.c (handle_extended_wait): Initialize
8759 thread_info.last_resume_kind for new fork children.
8761 2015-05-15 Pedro Alves <palves@redhat.com>
8763 * target.h (target_handle_new_gdb_connection): Rewrite using if
8764 wrapped in do/while.
8766 2015-05-14 Joel Brobecker <brobecker@adacore.com>
8768 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
8769 * configure, config.in: Regenerate.
8770 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
8773 2015-05-12 Don Breazeal <donb@codesourcery.com>
8775 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
8776 PTRACE_EVENT_VFORK_DONE.
8777 (linux_low_ptrace_options, extended_event_reported): Add vfork
8779 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
8780 and "vforkdone" for RSP 'T' Stop Reply Packet.
8781 * server.h (report_vfork_events): Declare
8784 2015-05-12 Don Breazeal <donb@codesourcery.com>
8786 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
8787 (the_low_target) <new_fork>: Initialize new member.
8788 * linux-arm-low.c (arm_new_fork): New function.
8789 (the_low_target) <new_fork>: Initialize new member.
8790 * linux-low.c (handle_extended_wait): Call new target function
8792 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
8793 * linux-mips-low.c (mips_add_watchpoint): New function
8794 extracted from mips_insert_point.
8795 (the_low_target) <new_fork>: Initialize new member.
8796 (mips_linux_new_fork): New function.
8797 (mips_insert_point): Call mips_add_watchpoint.
8798 * linux-x86-low.c (x86_linux_new_fork): New function.
8799 (the_low_target) <new_fork>: Initialize new member.
8801 2015-05-12 Don Breazeal <donb@codesourcery.com>
8803 * linux-low.c (handle_extended_wait): Implement return value,
8804 rename argument 'event_child' to 'event_lwp', handle
8805 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
8806 (linux_low_ptrace_options): New function.
8807 (linux_low_filter_event): Call linux_low_ptrace_options,
8808 use different argument fo linux_enable_event_reporting,
8809 use return value from handle_extended_wait.
8810 (extended_event_reported): New function.
8811 (linux_wait_1): Call extended_event_reported and set
8812 status to report fork events.
8813 (linux_write_memory): Add pid to debug message.
8814 (reset_lwp_ptrace_options_callback): New function.
8815 (linux_handle_new_gdb_connection): New function.
8816 (linux_target_ops): Initialize new structure member.
8817 * linux-low.h (struct lwp_info) <waitstatus>: New member.
8818 * lynx-low.c: Initialize new structure member.
8819 * remote-utils.c (prepare_resume_reply): Implement stop reason
8820 "fork" for "T" stop message.
8821 * server.c (handle_query): Call handle_new_gdb_connection.
8822 * server.h (report_fork_events): Declare global flag.
8823 * target.h (struct target_ops) <handle_new_gdb_connection>:
8825 (target_handle_new_gdb_connection): New macro.
8826 * win32-low.c: Initialize new structure member.
8828 2015-05-12 Don Breazeal <donb@codesourcery.com>
8830 * mem-break.c (APPEND_TO_LIST): Define macro.
8831 (clone_agent_expr): New function.
8832 (clone_one_breakpoint): New function.
8833 (clone_all_breakpoints): New function.
8834 * mem-break.h: Declare new functions.
8836 2015-05-12 Don Breazeal <donb@codesourcery.com>
8838 * linux-low.c (linux_supports_fork_events): New function.
8839 (linux_supports_vfork_events): New function.
8840 (linux_target_ops): Initialize new structure members.
8841 (initialize_low): Call linux_check_ptrace_features.
8842 * lynx-low.c (lynx_target_ops): Initialize new structure
8844 * server.c (report_fork_events, report_vfork_events):
8846 (handle_query): Add new features to qSupported packet and
8848 (captured_main): Initialize new global variables.
8849 * target.h (struct target_ops) <supports_fork_events>:
8851 <supports_vfork_events>: New member.
8852 (target_supports_fork_events): New macro.
8853 (target_supports_vfork_events): New macro.
8854 * win32-low.c (win32_target_ops): Initialize new structure
8857 2015-05-12 Gary Benson <gbenson@redhat.com>
8859 * server.c (handle_qxfer_exec_file): Use current process
8862 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8864 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8865 Remove HAVE_PTRACE_GETREGS conditionals.
8866 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8867 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8869 2015-05-08 Yao Qi <yao.qi@linaro.org>
8871 * linux-low.c (linux_supports_conditional_breakpoints): New
8873 (linux_target_ops): Install new target method.
8874 * lynx-low.c (lynx_target_ops): Install NULL hook for
8875 supports_conditional_breakpoints.
8876 * nto-low.c (nto_target_ops): Likewise.
8877 * spu-low.c (spu_target_ops): Likewise.
8878 * win32-low.c (win32_target_ops): Likewise.
8879 * server.c (handle_query): Check
8880 target_supports_conditional_breakpoints.
8881 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8883 (target_supports_conditional_breakpoints): New macro.
8885 2015-05-06 Pedro Alves <palves@redhat.com>
8888 * server.c (start_inferior): If the process exits, mourn it.
8890 2015-04-21 Gary Benson <gbenson@redhat.com>
8892 * hostio.c (fileio_open_flags_to_host): Factored out to
8893 fileio_to_host_openflags in common/fileio.c. Single use
8896 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8898 * linux-xtensa-low.c (xtensa_fill_gregset)
8899 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
8902 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
8904 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
8905 (regs_info): Replace usrregs pointer with NULL.
8907 2015-04-17 Gary Benson <gbenson@redhat.com>
8909 * target.h (struct target_ops) <pid_to_exec_file>: New field.
8910 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
8911 * server.c (handle_qxfer_exec_file): New function.
8912 (qxfer_packets): Add exec-file entry.
8913 (handle_query): Report qXfer:exec-file:read as supported packet.
8915 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
8917 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
8919 2015-04-09 Gary Benson <gbenson@redhat.com>
8921 * hostio-errno.c (errno_to_fileio_error): Remove function.
8922 Update caller to use remote_fileio_to_fio_error.
8924 2015-04-09 Yao Qi <yao.qi@linaro.org>
8926 * linux-low.c (linux_insert_point): Call
8927 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
8928 (linux_remove_point): Call remove_memory_breakpoint if type is
8930 * linux-x86-low.c (x86_insert_point): Don't call
8931 insert_memory_breakpoint.
8932 (x86_remove_point): Don't call remove_memory_breakpoint.
8934 2015-04-01 Pedro Alves <palves@redhat.com>
8935 Cleber Rosa <crosa@redhat.com>
8937 * server.c (gdbserver_usage): Reorganize and extend the usage
8940 2015-03-24 Pedro Alves <palves@redhat.com>
8942 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
8943 output. Also dump TRAP_TRACE.
8944 (linux_low_filter_event): In debug output, distinguish a
8945 resume_stop SIGSTOP from a delayed SIGSTOP.
8947 2015-03-24 Gary Benson <gbenson@redhat.com>
8949 * linux-x86-low.c (x86_linux_new_thread): Moved to
8951 (x86_linux_prepare_to_resume): Likewise.
8953 2015-03-24 Gary Benson <gbenson@redhat.com>
8955 * Makefile.in (x86-linux-dregs.o): New rule.
8956 * configure.srv: Add x86-linux-dregs.o to relevant targets.
8957 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
8958 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8959 (x86_linux_dr_get): Likewise.
8960 (x86_linux_dr_set): Likewise.
8961 (update_debug_registers_callback): Likewise.
8962 (x86_linux_dr_set_addr): Likewise.
8963 (x86_linux_dr_get_addr): Likewise.
8964 (x86_linux_dr_set_control): Likewise.
8965 (x86_linux_dr_get_control): Likewise.
8966 (x86_linux_dr_get_status): Likewise.
8967 (x86_linux_update_debug_registers): Likewise.
8969 2015-03-24 Gary Benson <gbenson@redhat.com>
8971 * linux-x86-low.c (x86_linux_update_debug_registers):
8972 New function, factored out from...
8973 (x86_linux_prepare_to_resume): ...this.
8975 2015-03-24 Gary Benson <gbenson@redhat.com>
8977 * linux-x86-low.c (x86_linux_dr_get): Update comments.
8978 (x86_linux_dr_set): Likewise.
8979 (update_debug_registers_callback): Likewise.
8980 (x86_linux_dr_set_addr): Likewise.
8981 (x86_linux_dr_get_addr): Likewise.
8982 (x86_linux_dr_set_control): Likewise.
8983 (x86_linux_dr_get_control): Likewise.
8984 (x86_linux_dr_get_status): Likewise.
8985 (x86_linux_prepare_to_resume): Likewise.
8987 2015-03-24 Gary Benson <gbenson@redhat.com>
8989 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
8990 Use perror_with_name. Pass string through gettext.
8991 (x86_linux_dr_set): Likewise.
8993 2015-03-24 Gary Benson <gbenson@redhat.com>
8995 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
8996 (x86_linux_dr_set_addr): ...this.
8997 (x86_dr_low_get_addr): Rename to...
8998 (x86_linux_dr_get_addr): ...this.
8999 (x86_dr_low_set_control): Rename to...
9000 (x86_linux_dr_set_control): ...this.
9001 (x86_dr_low_get_control): Rename to...
9002 (x86_linux_dr_get_control): ...this.
9003 (x86_dr_low_get_status): Rename to...
9004 (x86_linux_dr_get_status): ...this.
9005 (x86_dr_low): Update with new function names.
9007 2015-03-24 Gary Benson <gbenson@redhat.com>
9009 * Makefile.in (x86-linux.o): New rule.
9010 * configure.srv: Add x86-linux.o to relevant targets.
9011 * linux-low.c (lwp_set_arch_private_info): New function.
9012 (lwp_arch_private_info): Likewise.
9013 * linux-x86-low.c: Include nat/x86-linux.h.
9014 (arch_lwp_info): Removed structure.
9015 (update_debug_registers_callback):
9016 Use lwp_set_debug_registers_changed.
9017 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9018 and lwp_set_debug_registers_changed.
9019 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9021 2015-03-24 Gary Benson <gbenson@redhat.com>
9023 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
9024 * linux-arm-low.c (arm_new_thread): Likewise.
9025 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
9026 * linux-mips-low.c (mips_linux_new_thread): Likewise.
9027 * linux-x86-low.c (x86_linux_new_thread): Likewise.
9028 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
9030 2015-03-24 Gary Benson <gbenson@redhat.com>
9032 * linux-low.c (ptid_of_lwp): New function.
9033 (lwp_is_stopped): Likewise.
9034 (lwp_stop_reason): Likewise.
9035 * linux-x86-low.c (update_debug_registers_callback):
9037 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9040 2015-03-24 Gary Benson <gbenson@redhat.com>
9042 * linux-low.h (linux_stop_lwp): Remove declaration.
9044 2015-03-24 Gary Benson <gbenson@redhat.com>
9046 * linux-low.h: Include nat/linux-nat.h.
9047 * linux-low.c (iterate_over_lwps_args): New structure.
9048 (iterate_over_lwps_filter): New function.
9049 (iterate_over_lwps): Likewise.
9050 * linux-x86-low.c (update_debug_registers_callback):
9051 Update signature to what iterate_over_lwps expects.
9052 Remove PID check that iterate_over_lwps now performs.
9053 (x86_dr_low_set_addr): Use iterate_over_lwps.
9054 (x86_dr_low_set_control): Likewise.
9056 2015-03-24 Gary Benson <gbenson@redhat.com>
9058 * linux-x86-low.c (x86_debug_reg_state): New function.
9059 (x86_linux_prepare_to_resume): Use the above.
9061 2015-03-24 Gary Benson <gbenson@redhat.com>
9063 * linux-low.c (current_lwp_ptid): New function.
9064 * linux-x86-low.c: Include nat/linux-nat.h.
9065 (x86_dr_low_get_addr): Use current_lwp_ptid.
9066 (x86_dr_low_get_control): Likewise.
9067 (x86_dr_low_get_status): Likewise.
9069 2015-03-20 Pedro Alves <palves@redhat.com>
9071 * tracepoint.c (cmd_qtstatus): Make "str" const.
9073 2015-03-20 Pedro Alves <palves@redhat.com>
9075 * server.c (handle_general_set): Make "req_str" const.
9077 2015-03-19 Pedro Alves <palves@redhat.com>
9079 * linux-low.c (linux_resume_one_lwp): Rename to ...
9080 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9081 instead call perror_with_name.
9082 (check_ptrace_stopped_lwp_gone): New function.
9083 (linux_resume_one_lwp): Reimplement as wrapper around
9084 linux_resume_one_lwp_throw that swallows errors if the LWP is
9087 2015-03-19 Pedro Alves <palves@redhat.com>
9089 * linux-low.c (count_events_callback, select_event_lwp_callback):
9090 No longer check whether the thread has resume_stop as last resume
9093 2015-03-19 Pedro Alves <palves@redhat.com>
9095 * linux-low.c (count_events_callback, select_event_lwp_callback):
9096 Use the lwp's status_pending_p field, not the thread's.
9098 2015-03-19 Pedro Alves <palves@redhat.com>
9100 * linux-low.c (select_event_lwp_callback): Update comments to
9101 no longer mention SIGTRAP.
9103 2015-03-18 Gary Benson <gbenson@redhat.com>
9105 * server.c (handle_query): Do not report vFile:fstat as supported.
9107 2015-03-11 Gary Benson <gbenson@redhat.com>
9109 * hostio.c (sys/types.h): New include.
9110 (sys/stat.h): Likewise.
9111 (common-remote-fileio.h): Likewise.
9112 (handle_fstat): New function.
9113 (handle_vFile): Handle vFile:fstat packets.
9115 2015-03-11 Gary Benson <gbenson@redhat.com>
9117 * configure.ac (AC_CHECK_MEMBERS): Add checks for
9118 struct stat.st_blocks and struct stat.st_blksize.
9119 * configure: Regenerate.
9120 * config.in: Likewise.
9121 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9122 (OBS): Add common-remote-fileio.o.
9123 (common-remote-fileio.o): New rule.
9125 2015-03-09 Pedro Alves <palves@redhat.com>
9127 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
9128 'struct sockaddr' pointer in 'accept' call.
9130 2015-03-09 Pedro Alves <palves@redhat.com>
9133 2015-03-07 Pedro Alves <palves@redhat.com>
9134 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9135 or <winsock2.h> here. Instead include "gdb_socket.h".
9136 (remote_open): Use union gdb_sockaddr_u.
9137 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9138 or <winsock2.h> here. Instead include "gdb_socket.h".
9139 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9140 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9142 (init_named_socket, gdb_agent_helper_thread): Use union
9145 2015-03-07 Pedro Alves <palves@redhat.com>
9147 * configure.ac (build_warnings): Move
9148 -Wdeclaration-after-statement to the C-specific set.
9149 * configure: Regenerate.
9151 2015-03-07 Pedro Alves <palves@redhat.com>
9153 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9154 or <winsock2.h> here. Instead include "gdb_socket.h".
9155 (remote_open): Use union gdb_sockaddr_u.
9156 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9157 or <winsock2.h> here. Instead include "gdb_socket.h".
9158 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9159 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9161 (init_named_socket, gdb_agent_helper_thread): Use union
9164 2015-03-07 Pedro Alves <palves@redhat.com>
9166 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
9169 2015-03-06 Yao Qi <yao.qi@linaro.org>
9171 * linux-aarch64-low.c (aarch64_insert_point): Use
9172 show_debug_regs as a boolean.
9173 (aarch64_remove_point): Likewise.
9175 2015-03-05 Pedro Alves <palves@redhat.com>
9177 * lynx-low.c (lynx_target_ops): Install NULL hooks for
9178 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9179 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
9180 * nto-low.c (nto_target_ops): Likewise.
9181 * spu-low.c (spu_target_ops): Likewise.
9182 * win32-low.c (win32_target_ops): Likewise.
9184 2015-03-04 Pedro Alves <palves@redhat.com>
9186 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
9187 Decide whether a breakpoint triggered based on the SIGTRAP's
9189 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9190 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9191 (linux_low_filter_event): Check for breakpoints before checking
9193 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9195 (linux_stopped_by_sw_breakpoint)
9196 (linux_supports_stopped_by_sw_breakpoint)
9197 (linux_stopped_by_hw_breakpoint)
9198 (linux_supports_stopped_by_hw_breakpoint): New functions.
9199 (linux_target_ops): Install new target methods.
9201 2015-03-04 Pedro Alves <palves@redhat.com>
9203 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9204 * server.c (swbreak_feature, hwbreak_feature): New globals.
9205 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9206 (captured_main): Clear swbreak_feature and hwbreak_feature.
9207 * server.h (swbreak_feature, hwbreak_feature): Declare.
9208 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9209 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9210 supports_stopped_by_hw_breakpoint>: New fields.
9211 (target_supports_stopped_by_sw_breakpoint)
9212 (target_stopped_by_sw_breakpoint)
9213 (target_supports_stopped_by_hw_breakpoint)
9214 (target_stopped_by_hw_breakpoint): Declare.
9216 2015-03-04 Pedro Alves <palves@redhat.com>
9218 enum lwp_stop_reason -> enum target_stop_reason
9219 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9220 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9221 (linux_wait_1, stuck_in_jump_pad_callback)
9222 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9223 (linux_stopped_by_watchpoint):
9224 * linux-low.h (enum lwp_stop_reason): Delete.
9225 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9226 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9228 2015-03-04 Yao Qi <yao.qi@linaro.org>
9230 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9232 2015-03-03 Gary Benson <gbenson@redhat.com>
9234 * hostio.c (handle_vFile): Fix prefix lengths.
9236 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9238 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9241 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9243 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9244 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9245 (clean): Add "rm -f" for above C files.
9246 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9247 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9248 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9249 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9250 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9251 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9252 (init_registers_s390x_vx_linux64)
9253 (init_registers_s390x_tevx_linux64)
9254 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9255 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9257 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9258 (s390_store_vxrs_high): New functions.
9259 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9261 (s390_arch_setup): Add logic for selecting one of the new target
9262 descriptions. Activate the new vector regsets if applicable.
9263 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9264 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9265 and init_registers_s390x_tevx_linux64.
9267 2015-03-01 Pedro Alves <palves@redhat.com>
9269 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9272 2015-02-27 Pedro Alves <palves@redhat.com>
9274 * linux-x86-low.c (u_debugreg_offset): New function.
9275 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9277 2015-02-27 Pedro Alves <palves@redhat.com>
9279 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9280 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9281 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9282 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9283 (ps_lsetfpregs, ps_getpid)
9284 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9285 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9286 (ps_lsetxregs, ps_plog): Declare.
9288 2015-02-27 Pedro Alves <palves@redhat.com>
9290 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9291 IP_AGENT_EXPORT_FUNC.
9292 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9293 IP_AGENT_EXPORT_FUNC.
9294 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9295 (IP_AGENT_EXPORT): Delete.
9296 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9297 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9298 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9299 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9300 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9301 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9302 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9303 (traceframe_read_count, traceframe_write_count)
9304 (traceframes_created, trace_state_variables, get_raw_reg)
9305 (get_trace_state_variable_value, set_trace_state_variable_value)
9306 (ust_loaded, helper_thread_id, cmd_buf): Use
9307 IPA_SYM_EXPORTED_NAME.
9308 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9309 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9310 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9311 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9312 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9313 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9314 EXTERN_C_PUSH/EXTERN_C_POP.
9315 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9316 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9317 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9318 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9319 (traceframe_write_count, traceframe_read_count)
9320 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9321 (about_to_request_buffer_space, get_trace_state_variable_value)
9322 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9323 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9324 EXTERN_C_PUSH/EXTERN_C_POP.
9325 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9326 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9327 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9328 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9329 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9330 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9331 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9332 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9334 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9335 (IP_AGENT_EXPORT_VAR_DECL): Define.
9337 (gdb_agent_get_raw_reg): Declare.
9339 2015-02-27 Tom Tromey <tromey@redhat.com>
9340 Pedro Alves <palves@redhat.com>
9342 Rename symbols whose names are reserved C++ keywords throughout.
9344 2015-02-27 Pedro Alves <palves@redhat.com>
9346 * Makefile.in (COMPILER): New, get it from autoconf.
9347 (CXX): Get from autoconf instead.
9348 (COMPILE.pre): Use COMPILER.
9349 (CC-LD): Rename to ...
9350 (CC_LD): ... this. Use COMPILER.
9351 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9352 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9353 * acinclude.m4: Include build-with-cxx.m4.
9354 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9355 Disable -Werror by default if building in C++ mode.
9356 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9357 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9358 the C++ compiler. Save/restore CXXFLAGS too.
9359 * configure: Regenerate.
9361 2015-02-27 Pedro Alves <palves@redhat.com>
9363 * acinclude.m4: Include libiberty.m4.
9364 * configure.ac: Call libiberty_INIT.
9365 * config.in, configure: Regenerate.
9367 2015-02-26 Pedro Alves <palves@redhat.com>
9369 * linux-low.c (linux_wait_1): When incrementing the PC past a
9370 program breakpoint always use the_low_target.breakpoint_len as
9371 increment, rather than the maximum between that and
9372 the_low_target.decr_pc_after_break.
9374 2015-02-23 Pedro Alves <palves@redhat.com>
9376 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9377 thread was doing a step-over; always adjust the PC if
9378 we stepped over a permanent breakpoint.
9379 (linux_wait_1): If we stepped over breakpoint that was on top of a
9380 permanent breakpoint, manually advance the PC past it.
9382 2015-02-23 Pedro Alves <palves@redhat.com>
9384 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9386 (x86_fill_gregset, x86_store_gregset): Use it when handling
9389 2015-02-20 Pedro Alves <palves@redhat.com>
9391 * thread-db.c: Include "nat/linux-procfs.h".
9392 (thread_db_init): Skip listing new threads if the kernel supports
9393 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9395 2015-02-20 Pedro Alves <palves@redhat.com>
9397 * linux-low.c (status_pending_p_callback): Use ptid_match.
9399 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9401 PR breakpoints/16812
9402 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9403 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9404 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9406 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9408 PR breakpoints/15956
9409 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9411 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9413 * linux-low.c (linux_low_btrace_conf): Print size.
9414 * server.c (handle_btrace_conf_general_set): New.
9415 (hanle_general_set): Call handle_btrace_conf_general_set.
9416 (handle_query): Report Qbtrace-conf:bts:size as supported.
9418 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9420 * linux-low.c (linux_low_enable_btrace): Update parameters.
9421 (linux_low_btrace_conf): New.
9422 (linux_target_ops)<to_btrace_conf>: Initialize.
9423 * server.c (current_btrace_conf): New.
9424 (handle_btrace_enable): Rename to ...
9425 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
9426 to target_enable_btrace. Update comment. Update users.
9427 (handle_qxfer_btrace_conf): New.
9428 (qxfer_packets): Add btrace-conf entry.
9429 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9430 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9431 (target_ops)<read_btrace_conf>: New.
9432 (target_enable_btrace): Update parameters.
9433 (target_read_btrace_conf): New.
9435 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9437 * server.c (handle_btrace_general_set): Remove call to
9438 target_supports_btrace.
9439 (supported_btrace_packets): New.
9440 (handle_query): Call supported_btrace_packets.
9441 * target.h: include btrace-common.h.
9442 (btrace_target_info): Removed.
9443 (supports_btrace, target_supports_btrace): Update parameters.
9445 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9447 * Makefile.in (SFILES): Add common/btrace-common.c.
9448 (OBS): Add common/btrace-common.o.
9449 (btrace-common.o): Add build rules.
9450 * linux-low: Include btrace-common.h.
9451 (linux_low_read_btrace): Use struct btrace_data. Call
9452 btrace_data_init and btrace_data_fini.
9454 2015-02-06 Pedro Alves <palves@redhat.com>
9456 * thread-db.c (find_new_threads_callback): Add debug output.
9458 2015-02-04 Pedro Alves <palves@redhat.com>
9460 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9461 (resume_stopped_resumed_lwps): New function.
9462 (linux_wait_for_event_filtered): Use it.
9464 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9466 * Makefile.in (SFILES): Add linux-personality.c.
9467 (linux-personality.o): New rule.
9468 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9469 list of objects to be built.
9470 * linux-low.c: Include nat/linux-personality.h.
9471 (linux_create_inferior): Remove code to disable address space
9472 randomization (moved to ../nat/linux-personality.c). Create
9473 cleanup to disable address space randomization.
9475 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9477 * Makefile.in (posix-strerror.o): New rule.
9478 (mingw-strerror.o): Likewise.
9479 * configure: Regenerated.
9480 * configure.ac: Source file ../common/common.host. Initialize new
9481 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9483 2015-01-14 Yao Qi <yao@codesourcery.com>
9485 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9486 (ppc-linux.o): New rule.
9487 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9488 * configure.ac: AC_CHECK_FUNCS(getauxval).
9489 * config.in: Re-generated.
9490 * configure: Re-generated.
9491 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9492 ppc64_64bit_inferior_p
9494 2015-01-14 Yao Qi <yao@codesourcery.com>
9496 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9497 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9498 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9499 (PT_ORIG_R3, PT_TRAP): Likewise.
9500 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9501 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9502 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9504 2015-01-10 Joel Brobecker <brobecker@adacore.com>
9506 * i387-fp.c (i387_cache_to_xsave): In look over
9507 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
9508 zmmh_low_space field by use of zmmh_high_space.
9510 2015-01-09 Pedro Alves <palves@redhat.com>
9512 * linux-low.c (step_over_bkpt): Move higher up in the file.
9513 (handle_extended_wait): Don't store the stop_pc here.
9514 (get_stop_pc): Adjust comments and rename to ...
9515 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9516 stopped for a software breakpoint or hardware breakpoint.
9517 (thread_still_has_status_pending_p): New function.
9518 (status_pending_p_callback): Use
9519 thread_still_has_status_pending_p. If the event is no longer
9520 interesting, resume the LWP.
9521 (handle_tracepoints): Add assert.
9522 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9523 (wstatus_maybe_breakpoint): New function.
9524 (cancel_breakpoint): Delete function.
9525 (check_stopped_by_watchpoint): New function, factored out from
9526 linux_low_filter_event.
9527 (lp_status_maybe_breakpoint): Delete function.
9528 (linux_low_filter_event): Remove filter_ptid argument.
9529 Leave thread group exits pending here. Store the LWP's stop PC.
9530 Always leave events pending.
9531 (linux_wait_for_event_filtered): Pull all events out of the
9532 kernel, and leave them all pending.
9533 (count_events_callback, select_event_lwp_callback): Consider all
9535 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9536 (select_event_lwp): Only give preference to the stepping LWP in
9537 all-stop mode. Adjust comments.
9538 (ignore_event): New function.
9539 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9540 references to cancel_breakpoints. Adjust to renames. Also give
9541 equal priority to all LWPs that have had events in non-stop mode.
9542 If reporting a software breakpoint event, unadjust the LWP's PC.
9543 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9544 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9546 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9547 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9548 (linux_stopped_by_watchpoint): Adjust.
9549 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9550 * linux-low.h (enum lwp_stop_reason): New.
9551 (struct lwp_info) <stop_pc>: Adjust comment.
9552 <stopped_by_watchpoint>: Delete field.
9553 <stop_reason>: New field.
9554 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9555 * mem-break.c (software_breakpoint_inserted_here)
9556 (hardware_breakpoint_inserted_here): New function.
9557 * mem-break.h (software_breakpoint_inserted_here)
9558 (hardware_breakpoint_inserted_here): Declare.
9559 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9560 (cancel_breakpoints): Delete.
9561 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9562 (upload_fast_traceframes): Remove references to
9565 2015-01-09 Pedro Alves <palves@redhat.com>
9567 * thread-db.c (find_new_threads_callback): Ignore thread if the
9568 kernel thread ID is -1.
9570 2015-01-09 Pedro Alves <palves@redhat.com>
9572 * linux-low.c (linux_attach_fail_reason_string): Move to
9573 nat/linux-ptrace.c, and rename.
9574 (linux_attach_lwp): Update comment.
9575 (attach_proc_task_lwp_callback): New function.
9576 (linux_attach): Adjust to rename and use
9577 linux_proc_attach_tgid_threads.
9578 (linux_attach_fail_reason_string): Delete declaration.
9580 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9582 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9583 * server.c (gdbserver_version): Likewise.
9585 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9587 * remote-utils.c: Include ctype.h.
9588 (input_interrupt): Explicitly handle the case when the char
9589 received is the NUL byte. Improve the printing of non-ASCII
9592 2014-12-16 Joel Brobecker <brobecker@adacore.com>
9594 * linux-low.c (linux_low_filter_event): Update call to
9595 linux_enable_event_reporting following the addition of
9596 a new parameter to that function.
9598 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
9601 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9602 (AARCH64_FPCR_REGNO): Likewise.
9603 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9604 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9605 (aarch64_store_fpregset): Likewise.
9607 2014-12-15 Joel Brobecker <brobecker@adacore.com>
9609 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9610 Remove FIXME comment about assumption about N.
9612 2014-12-13 Joel Brobecker <brobecker@adacore.com>
9614 * configure.ac: If large-file support is disabled in GDBserver,
9615 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
9616 * configure: Regenerate.
9618 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9620 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
9621 warning upon ENODATA from ptrace.
9622 * linux-s390-low.c (s390_store_tdb): New.
9623 (s390_regsets): Add regset for NT_S390_TDB.
9625 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9627 * linux-low.c (regsets_store_inferior_registers): Skip regsets
9628 without a fill_function.
9629 * linux-s390-low.c (s390_fill_last_break): Remove.
9630 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
9631 (s390_arch_setup): Use regset's size instead of fill_function for
9634 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9636 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
9637 the regset's store function when ptrace returned an error.
9638 * regcache.c (get_thread_regcache): Invalidate register cache
9639 before fetching inferior's registers.
9641 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9643 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9644 while-loop as for-loop.
9645 (regsets_store_inferior_registers): Likewise.
9647 2014-11-28 Yao Qi <yao@codesourcery.com>
9649 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9650 * config.in, configure: Re-generate.
9651 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9654 2014-11-21 Yao Qi <yao@codesourcery.com>
9656 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
9657 (AC_CHECK_HEADERS): Remove malloc.h.
9658 * configure: Re-generated.
9659 * config.in: Re-generated.
9660 * server.h: Don't include alloca.h and malloc.h.
9661 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
9662 Don't include malloc.h.
9664 2014-11-17 Joel Brobecker <brobecker@adacore.com>
9666 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9667 corresponding ERRNO check in same block.
9669 2014-11-12 Pedro Alves <palves@redhat.com>
9671 * server.c (cont_thread): Update comment.
9672 (start_inferior, attach_inferior): No longer clear cont_thread.
9673 (handle_v_cont): No longer set cont_thread.
9674 (captured_main): Clear cont_thread each time a GDB connects.
9676 2014-11-12 Pedro Alves <palves@redhat.com>
9678 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
9679 thread, and don't resume all threads if the Hc thread has exited.
9681 2014-11-12 Pedro Alves <palves@redhat.com>
9683 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9684 the process group instead of to a specific LWP.
9686 2014-10-15 Pedro Alves <palves@redhat.com>
9689 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9691 (arm_set_thread_context): Delete.
9692 (the_low_target): Adjust.
9693 * win32-i386-low.c (debug_registers_changed)
9694 (debug_registers_used): Delete.
9695 (update_debug_registers_callback): New function.
9696 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
9697 needing to update their debug registers.
9698 (win32_get_current_dr): New function.
9699 (x86_dr_low_get_addr, x86_dr_low_get_control)
9700 (x86_dr_low_get_status): Fetch the debug register from the thread
9702 (i386_initial_stuff): Adjust.
9703 (i386_get_thread_context): Remove current_event parameter. Don't
9704 clear debug_registers_changed nor copy DR values to
9706 (i386_set_thread_context): Delete.
9707 (i386_prepare_to_resume): New function.
9708 (i386_thread_added): Mark the thread as needing to update irs
9710 (the_low_target): Remove i386_set_thread_context and install
9711 i386_prepare_to_resume.
9712 * win32-low.c (win32_get_thread_context): Adjust.
9713 (win32_set_thread_context): Use SetThreadContext
9715 (win32_prepare_to_resume): New function.
9716 (win32_require_context): New function, factored out from ...
9717 (thread_rec): ... this.
9718 (continue_one_thread): Call win32_prepare_to_resume on each thread
9719 we're about to continue.
9720 (win32_resume): Call win32_prepare_to_resume on the event thread.
9721 * win32-low.h (struct win32_thread_info)
9722 <debug_registers_changed>: New field.
9723 (struct win32_target_ops): Change prototype of set_thread_context,
9724 delete set_thread_context and add prepare_to_resume.
9725 (win32_require_context): New declaration.
9727 2014-10-08 Gary Benson <gbenson@redhat.com>
9729 * server.h: Do not include common-exceptions.h.
9731 2014-10-08 Gary Benson <gbenson@redhat.com>
9733 * server.h: Do not include cleanups.h.
9735 2014-09-30 James Hogan <james.hogan@imgtec.com>
9737 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9740 2014-09-23 Yao Qi <yao@codesourcery.com>
9742 * linux-low.c (lp_status_maybe_breakpoint): New function.
9743 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
9744 (count_events_callback): Likewise.
9745 (select_event_lwp_callback): Likewise.
9746 (cancel_breakpoints_callback): Likewise.
9748 2014-09-19 Don Breazeal <donb@codesourcery.com>
9750 * linux-low.c (handle_extended_wait): Call
9751 linux_ptrace_get_extended_event.
9752 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
9753 linux_is_extended_waitstatus.
9755 2014-09-16 Joel Brobecker <brobecker@adacore.com>
9757 * Makefile.in (CPPFLAGS): Define.
9758 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9759 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9761 2014-09-16 Gary Benson <gbenson@redhat.com>
9763 * inferiors.h (current_inferior): Renamed as...
9764 (current_thread): New variable. All uses updated.
9765 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
9766 (maybe_move_out_of_jump_pad): Likewise.
9767 (cancel_breakpoint): Likewise.
9768 (linux_low_filter_event): Likewise.
9769 (wait_for_sigstop): Likewise.
9770 (linux_resume_one_lwp): Likewise.
9771 (need_step_over_p): Likewise.
9772 (start_step_over): Likewise.
9773 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
9774 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
9775 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
9776 and save_inferior as saved_thread.
9777 * regcache.c (get_thread_regcache): Renamed saved_inferior as
9779 (regcache_invalidate_thread): Likewise.
9780 * remote-utils.c (prepare_resume_reply): Likewise.
9781 * thread-db.c (thread_db_get_tls_address): Likewise.
9782 (disable_thread_event_reporting): Likewise.
9783 (remove_thread_event_breakpoints): Likewise.
9784 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
9786 * target.h (set_desired_inferior): Renamed as...
9787 (set_desired_thread): New declaration. All uses updated.
9788 * server.c (myresume): Updated comment to reference thread instead
9790 (handle_serial_event): Likewise.
9791 (handle_target_event): Likewise.
9793 2014-09-12 Tom Tromey <tromey@redhat.com>
9794 Gary Benson <gbenson@redhat.com>
9796 * regcache.h: Include common-regcache.h.
9797 (regcache_read_pc): Don't declare.
9798 * regcache.c (get_thread_regcache_for_ptid): New function.
9800 2014-09-11 Tom Tromey <tromey@redhat.com>
9801 Gary Benson <gbenson@redhat.com>
9803 * symbol.c: New file.
9804 * Makefile.in (SFILES): Add symbol.c.
9805 (OBS): Add symbol.o.
9807 2014-09-11 Gary Benson <gbenson@redhat.com>
9809 * target.c (target_stop_ptid, target_continue_ptid): New
9812 2014-09-11 Tom Tromey <tromey@redhat.com>
9813 Gary Benson <gbenson@redhat.com>
9815 * target.h: Include target/target.h.
9816 * target.c (target_read_memory, target_read_uint32)
9817 (target_write_memory): New functions.
9819 2014-09-11 Gary Benson <gbenson@redhat.com>
9821 * server.h (debug_hw_points): Don't declare.
9822 * server.c (debug_hw_points): Don't define. Replace all uses
9823 with show_debug_regs.
9824 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
9825 all uses with show_debug_regs.
9827 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9829 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9830 endianness into account.
9831 (ppc_supply_ptrace_register): Likewise.
9833 2014-09-03 James Hogan <james.hogan@imgtec.com>
9835 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9836 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9838 2014-09-03 Gary Benson <gbenson@redhat.com>
9840 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9841 ALL_DEBUG_ADDRESS_REGISTERS.
9843 2014-09-02 Gary Benson <gbenson@redhat.com>
9845 * i386-low.h: Renamed as...
9846 * x86-low.h: New file. All type, function and variable name
9847 prefixes changed from "i386_" to "x86_". All references updated.
9848 * i386-low.c: Renamed as...
9849 * x86-low.c: New file. All type, function and variable name
9850 prefixes changed from "i386_" to "x86_". All references updated.
9852 2014-09-02 Gary Benson <gbenson@redhat.com>
9854 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9855 (x86_linux_new_thread): Likewise.
9857 2014-08-29 Gary Benson <gbenson@redhat.com>
9859 * server.h (setjmp.h): Do not include.
9860 (toplevel): Do not declare.
9861 (common-exceptions.h): Include.
9862 (cleanups.h): Likewise.
9863 * server.c (toplevel): Do not define.
9864 (exit_code): New static global.
9865 (detach_or_kill_for_exit_cleanup): New function.
9866 (main): New function. Original main renamed to...
9867 (captured_main): New function.
9868 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9870 2014-08-29 Gary Benson <gbenson@redhat.com>
9872 * Makefile.in (SFILES): Add common/common-exceptions.c.
9873 (OBS): Add common-exceptions.o.
9874 (common-exceptions.o): New rule.
9875 * utils.c (prepare_to_throw_exception): New function.
9877 2014-08-29 Gary Benson <gbenson@redhat.com>
9879 * config.in: Regenerate.
9880 * configure: Likewise.
9882 2014-08-29 Gary Benson <gbenson@redhat.com>
9884 * Makefile.in (SFILES): Add common/cleanups.c.
9886 (cleanups.o): New rule.
9888 2014-08-29 Gary Benson <gbenson@redhat.com>
9890 * utils.c (internal_vwarning): New function.
9892 2014-08-28 Gary Benson <gbenson@redhat.com>
9894 * utils.h (fatal): Remove declaration.
9895 * utils.c (fatal): Remove function.
9897 2014-08-28 Gary Benson <gbenson@redhat.com>
9899 * tracepoint.c (gdb_agent_init): Replace fatal with
9901 (initialize_tracepoint): Likewise.
9903 2014-08-28 Gary Benson <gbenson@redhat.com>
9905 * remote-utils.c (remote_prepare): Replace fatal with error.
9907 2014-08-28 Gary Benson <gbenson@redhat.com>
9909 * linux-low.c (linux_async): Replace fatal with warning.
9911 (linux_start_non_stop): Return -1 if linux_async failed.
9913 2014-08-28 Gary Benson <gbenson@redhat.com>
9915 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
9917 (i386_dr_low_get_addr): Remove vague comment.
9918 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
9921 2014-08-28 Gary Benson <gbenson@redhat.com>
9923 * inferiors.c (get_thread_process): Replace check with gdb_assert.
9924 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
9926 (linux_resume_one_lwp): Likewise.
9927 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
9929 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
9930 with internal_error.
9931 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
9932 (init_register_cache): Replace fatal with gdb_assert_not_reached.
9933 (find_register_by_name): Replace fatal with internal_error.
9934 (find_regno): Likewise.
9935 * tdesc.c (init_target_desc): Replace check with gdb_assert.
9936 * thread-db.c (thread_db_create_event): Likewise.
9937 (thread_db_load_search): Likewise.
9938 (try_thread_db_load_1): Likewise.
9939 * tracepoint.c (get_jump_space_head): Replace fatal with
9941 (claim_trampoline_space): Likewise.
9942 (have_fast_tracepoint_trampoline_buffer): Likewise.
9943 (cmd_qtstart): Likewise.
9944 (stop_tracing): Likewise.
9945 (fast_tracepoint_collecting): Likewise.
9946 (target_malloc): Likewise.
9947 (download_tracepoint): Likewise.
9948 (download_trace_state_variables): Replace check with gdb_assert.
9949 (upload_fast_traceframes): Replace fatal with internal_error.
9951 2014-08-19 Tom Tromey <tromey@redhat.com>
9952 Gary Benson <gbenson@redhat.com>
9954 * Makefile.in (SFILES): Add common/common-debug.c.
9955 (OBS): Add common-debug.o.
9956 (common-debug.o): New rule.
9957 * debug.h (debug_printf): Don't declare.
9958 * debug.c (debug_printf): Renamed and rewritten as...
9959 (debug_vprintf): New function.
9961 2014-08-19 Gary Benson <gbenson@redhat.com>
9963 * utils.h: Do not include print-utils.h.
9965 2014-08-19 Tom Tromey <tromey@redhat.com>
9966 Gary Benson <gbenson@redhat.com>
9968 * server.h: Add static assertion.
9969 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
9971 2014-08-19 Tom Tromey <tromey@redhat.com>
9972 Gary Benson <gbenson@redhat.com>
9974 * Makefile.in (SFILES): Add common/errors.c.
9975 (OBS): Add errors.o.
9976 (IPA_OBS): Add errors-ipa.o.
9977 (errors.o): New rule.
9978 (errors-ipa.o): Likewise.
9979 * utils.h (perror_with_name, error, warning): Don't declare.
9980 * utils.c (warning): Renamed and rewritten as...
9981 (vwarning): New function.
9982 (error): Renamed and rewritten as...
9983 (verror): New function.
9984 (internal_error): Renamed and rewritten as...
9985 (internal_verror): New function.
9987 2014-08-07 Gary Benson <gbenson@redhat.com>
9989 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
9990 * configure: Regenerate.
9991 * config.in: Likewise.
9992 * server.h: Do not include errno.h.
9993 * event-loop.c: Likewise.
9994 * hostio-errno.c: Likewise.
9995 * linux-low.c: Likewise.
9996 * remote-utils.c: Likewise.
9997 * spu-low.c: Likewise.
9998 * utils.c: Likewise.
9999 * gdbreplay.c: Unconditionally include errno.h.
10001 2014-08-07 Gary Benson <gbenson@redhat.com>
10003 * server.h: Do not include string.h.
10004 * event-loop.c: Likewise.
10005 * linux-low.c: Likewise.
10006 * regcache.c: Likewise.
10007 * remote-utils.c: Likewise.
10008 * spu-low.c: Likewise.
10009 * utils.c: Likewise.
10011 2014-08-07 Gary Benson <gbenson@redhat.com>
10013 * server.h: Do not include gdb_assert.h.
10015 2014-08-07 Gary Benson <gbenson@redhat.com>
10017 * server.h: Do not include common-utils.h.
10019 2014-08-07 Gary Benson <gbenson@redhat.com>
10021 * server.h: Do not include ptid.h.
10022 * notif.h: Likewise.
10024 2014-08-07 Gary Benson <gbenson@redhat.com>
10026 * server.h: Do not include gdb_locale.h.
10028 2014-08-07 Gary Benson <gbenson@redhat.com>
10030 * server.h: Do not include gdb/signals.h.
10031 * win32-low.c: Likewise.
10033 2014-08-07 Gary Benson <gbenson@redhat.com>
10035 * server.h: Do not include pathmax.h.
10037 2014-08-07 Gary Benson <gbenson@redhat.com>
10039 * server.h: Do not include libiberty.h.
10040 * linux-bfin-low.c: Likewise.
10042 2014-08-07 Gary Benson <gbenson@redhat.com>
10044 * server.h: Do not include ansidecl.h.
10046 2014-08-07 Gary Benson <gbenson@redhat.com>
10048 * linux-x86-low.c: Do not include stddef.h.
10049 * lynx-ppc-low.c: Likewise.
10050 * tracepoint.c: Likewise.
10052 2014-08-07 Gary Benson <gbenson@redhat.com>
10054 * server.h: Do not include stdarg.h.
10055 * nto-low.c: Likewise.
10057 2014-08-07 Gary Benson <gbenson@redhat.com>
10059 * server.h: Do not include stdlib.h.
10060 * inferiors.c: Likewise.
10061 * linux-low.c: Likewise.
10062 * regcache.c: Likewise.
10063 * spu-low.c: Likewise.
10064 * tracepoint.c: Likewise.
10065 * utils.c: Likewise.
10067 2014-08-07 Gary Benson <gbenson@redhat.com>
10069 * server.h: Do not include stdio.h.
10070 * linux-low.c: Likewise.
10071 * remote-utils.c: Likewise.
10072 * spu-low.c: Likewise.
10073 * utils.c: Likewise.
10074 * wincecompat.c: Likewise.
10076 2014-08-06 Gary Benson <gbenson@redhat.com>
10078 * regcache.c (init_register_cache): Move conditionals inside if.
10080 2014-08-06 Gary Benson <gbenson@redhat.com>
10082 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
10084 2014-07-31 Gary Benson <gbenson@redhat.com>
10086 * ax.h: Do not include server.h.
10087 * gdbthread.h: Likewise.
10088 * lynx-low.h: Likewise.
10089 * notif.h: Likewise.
10091 2014-07-30 Gary Benson <gbenson@redhat.com>
10093 * server.h: Include common-defs.h.
10094 Do not include config.h or build-gnulib-gdbserver/config.h.
10096 2014-07-30 Gary Benson <gbenson@redhat.com>
10098 * hostio-errno.c: Move server.h to top of includes list.
10099 * inferiors.c: Likewise.
10100 * linux-x86-low.c: Likewise.
10101 * notif.c: Include server.h.
10103 2014-07-24 Tom Tromey <tromey@redhat.com>
10104 Gary Benson <gbenson@redhat.com>
10106 * server.h (CORE_ADDR): Now unsigned.
10108 2014-07-16 Pedro Alves <palves@redhat.com>
10110 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
10112 2014-07-15 Pedro Alves <palves@redhat.com>
10114 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
10117 2014-07-11 Pedro Alves <palves@redhat.com>
10119 * linux-low.c (kill_wait_lwp): New function, based on
10120 kill_one_lwp_callback, but use my_waitpid directly.
10121 (kill_one_lwp_callback, linux_kill): Use it.
10123 2014-06-23 Pedro Alves <palves@redhat.com>
10125 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
10126 before setting DR0..DR3.
10128 2014-06-20 Gary Benson <gbenson@redhat.com>
10130 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
10131 * configure: Regenerated.
10132 * config.in: Likewise.
10134 2014-06-20 Gary Benson <gbenson@redhat.com>
10136 * Makefile.in (SFILES): Update locations for files moved
10137 from common to nat.
10138 (object file files): Reordered.
10140 2014-06-20 Gary Benson <gbenson@redhat.com>
10142 * i386-low.h (i386_dr_low_can_set_addr): Removed.
10143 (i386_dr_low_set_addr): Likewise.
10144 (i386_dr_low_get_addr): Likewise.
10145 (i386_dr_low_can_set_control): Likewise.
10146 (i386_dr_low_set_control): Likewise.
10147 (i386_dr_low_get_control): Likewise.
10148 (i386_dr_low_get_status): Likewise.
10149 (i386_get_debug_register_length): Likewise.
10150 * linux-x86-low.c (i386_dr_low_set_addr):
10151 Changed signature. Made static.
10152 (i386_dr_low_get_addr): Likewise.
10153 (i386_dr_low_set_control): Likewise.
10154 (i386_dr_low_get_control): Likewise.
10155 (i386_dr_low_get_status): Likewise.
10156 (i386_dr_low): New global variable.
10157 * win32-i386-low.c (i386_dr_low_set_addr):
10158 Changed signature. Made static.
10159 (i386_dr_low_get_addr): Likewise.
10160 (i386_dr_low_set_control): Likewise.
10161 (i386_dr_low_get_control): Likewise.
10162 (i386_dr_low_get_status): Likewise.
10163 (i386_dr_low): New global variable.
10165 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
10167 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
10168 * Makefile.in (AR, AR_FLAGS): Define.
10169 * configure: Regenerate.
10171 2014-06-19 Gary Benson <gbenson@redhat.com>
10173 * Makefile.in (i386-dregs.o): New rule.
10174 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
10175 * i386-low.c (target.h): Remove include.
10176 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
10177 (DR_CONTROL_SHIFT): Likewise.
10178 (DR_CONTROL_SIZE): Likewise.
10179 (DR_RW_EXECUTE): Likewise.
10180 (DR_RW_WRITE): Likewise.
10181 (DR_RW_READ): Likewise.
10182 (DR_RW_IORW): Likewise.
10183 (DR_LEN_1): Likewise.
10184 (DR_LEN_2): Likewise.
10185 (DR_LEN_4): Likewise.
10186 (DR_LEN_8): Likewise.
10187 (DR_LOCAL_ENABLE_SHIFT): Likewise.
10188 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
10189 (DR_ENABLE_SIZE): Likewise.
10190 (DR_LOCAL_SLOWDOWN): Likewise.
10191 (DR_GLOBAL_SLOWDOWN): Likewise.
10192 (DR_CONTROL_RESERVED): Likewise.
10193 (I386_DR_CONTROL_MASK): Likewise.
10194 (I386_DR_VACANT): Likewise.
10195 (I386_DR_LOCAL_ENABLE): Likewise.
10196 (I386_DR_GLOBAL_ENABLE): Likewise.
10197 (I386_DR_DISABLE): Likewise.
10198 (I386_DR_SET_RW_LEN): Likewise.
10199 (I386_DR_GET_RW_LEN): Likewise.
10200 (I386_DR_WATCH_HIT): Likewise.
10201 (i386_wp_op_t): Likewise.
10202 (i386_show_dr): Likewise.
10203 (i386_length_and_rw_bits): Likewise.
10204 (i386_insert_aligned_watchpoint): Likewise.
10205 (i386_remove_aligned_watchpoint): Likewise.
10206 (i386_handle_nonaligned_watchpoint): Likewise.
10207 i386_update_inferior_debug_regs(): Likewise.
10208 (i386_dr_insert_watchpoint): Likewise.
10209 (i386_dr_remove_watchpoint): Likewise.
10210 (i386_dr_region_ok_for_watchpoint): Likewise.
10211 (i386_dr_stopped_data_address): Likewise.
10212 (i386_dr_stopped_by_watchpoint): Likewise.
10214 2014-06-19 Gary Benson <gbenson@redhat.com>
10216 * i386-low.c (i386_dr_show): Renamed to
10217 i386_show_dr and made static. All uses updated.
10218 (i386_dr_length_and_rw_bits): Renamed to
10219 i386_length_and_rw_bits and made static.
10221 (i386_dr_insert_aligned_watchpoint): Renamed to
10222 i386_insert_aligned_watchpoint and made static.
10224 (i386_dr_remove_aligned_watchpoint): Renamed to
10225 i386_remove_aligned_watchpoint and made static.
10227 (i386_dr_update_inferior_debug_regs): Renamed to
10228 i386_update_inferior_debug_regs and made static.
10231 2014-06-18 Gary Benson <gbenson@redhat.com>
10233 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10234 (i386_dr_low_can_set_control): Likewise.
10235 (i386_get_debug_register_length): Likewise.
10236 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10237 (i386_dr_low_can_set_control): Likewise.
10238 (i386_get_debug_register_length): Likewise.
10240 2014-06-17 Gary Benson <gbenson@redhat.com>
10242 * i386-low.h (i386-dregs.h): New include.
10243 (DR_FIRSTADDR): Now in i386-dregs.h.
10244 (DR_LASTADDR): Likewise.
10245 (DR_NADDR): Likewise.
10246 (DR_STATUS): Likewise.
10247 (DR_CONTROL): Likewise.
10248 (i386_debug_reg_state): Likewise.
10249 (i386_dr_insert_watchpoint): Likewise.
10250 (i386_dr_remove_watchpoint): Likewise.
10251 (i386_dr_region_ok_for_watchpoint): Likewise.
10252 (i386_dr_stopped_data_address): Likewise.
10253 (i386_dr_stopped_by_watchpoint): Likewise.
10254 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10256 2014-06-18 Gary Benson <gbenson@redhat.com>
10258 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10259 i386_dr_insert_watchpoint.
10260 (i386_low_remove_watchpoint): Renamed to
10261 i386_dr_remove_watchpoint.
10262 (i386_low_region_ok_for_watchpoint): Renamed to
10263 i386_dr_region_ok_for_watchpoint.
10264 (i386_low_stopped_data_address): Renamed to
10265 i386_dr_stopped_data_address.
10266 (i386_low_stopped_by_watchpoint): Renamed to
10267 i386_dr_stopped_by_watchpoint.
10268 * i386-low.c (i386_show_dr): Renamed to
10269 i386_dr_show and made nonstatic. All uses updated.
10270 (i386_length_and_rw_bits): Renamed to
10271 i386_dr_length_and_rw_bits and made nonstatic.
10273 (i386_insert_aligned_watchpoint): Renamed to
10274 i386_dr_insert_aligned_watchpoint and made nonstatic.
10276 (i386_remove_aligned_watchpoint): Renamed to
10277 i386_dr_remove_aligned_watchpoint and made nonstatic.
10279 (i386_update_inferior_debug_regs): Renamed to
10280 i386_dr_update_inferior_debug_regs and made nonstatic.
10282 (i386_low_insert_watchpoint): Renamed to
10283 i386_dr_insert_watchpoint. All uses updated.
10284 (i386_low_remove_watchpoint): Renamed to
10285 i386_dr_remove_watchpoint. All uses updated.
10286 (i386_low_region_ok_for_watchpoint): Renamed to
10287 i386_dr_region_ok_for_watchpoint. All uses updated.
10288 (i386_low_stopped_data_address): Renamed to
10289 i386_dr_stopped_data_address. All uses updated.
10290 (i386_low_stopped_by_watchpoint): Renamed to
10291 i386_dr_stopped_by_watchpoint. All uses updated.
10293 2014-06-18 Gary Benson <gbenson@redhat.com>
10295 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10296 (i386_dr_low_can_set_control): Likewise.
10297 (i386_insert_aligned_watchpoint): New check.
10299 2014-06-18 Gary Benson <gbenson@redhat.com>
10301 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10304 2014-06-18 Gary Benson <gbenson@redhat.com>
10306 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10307 instead of fatal and error.
10308 (i386_handle_nonaligned_watchpoint): Likewise.
10310 2014-06-18 Gary Benson <gbenson@redhat.com>
10312 * i386-low.c (i386_get_debug_register_length): New macro.
10313 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10314 (i386_show_dr): Use debug_printf instead of fprintf. Use
10315 phex to format values.
10317 2014-06-18 Gary Benson <gbenson@redhat.com>
10319 * i386-low.h: Comment changes.
10320 * i386-low.c: Likewise.
10322 2014-06-18 Gary Benson <gbenson@redhat.com>
10324 * i386-low.c: Whitespace changes.
10326 2014-06-12 Tom Tromey <tromey@redhat.com>
10328 * utils.c (freeargv): Remove.
10330 2014-06-12 Tom Tromey <tromey@redhat.com>
10332 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10333 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10334 (parse_debug_format_options): Likewise.
10335 (gdbserver_usage): Likewise.
10336 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10337 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10338 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10340 ($(LIBGNU)): Depend on libiberty.
10341 (all-lib): Recurse into all subdirs.
10342 (install-only): Invoke "install" target in subdirs.
10343 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10345 * configure: Rebuild.
10346 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10347 for vasprintf, vsnprintf, or gettimeofday.
10348 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10351 2014-06-05 Joel Brobecker <brobecker@adacore.com>
10353 * development.sh: Delete.
10354 * Makefile.in (config.status): Adjust dependency on development.sh.
10355 * configure.ac: Adjust development.sh source call.
10356 * configure: Regenerate.
10358 2014-06-02 Pedro Alves <palves@redhat.com>
10360 * ax.c (gdb_free_agent_expr): New function.
10361 * ax.h (gdb_free_agent_expr): New declaration.
10362 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10364 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10366 (clear_breakpoint_conditions_and_commands): New function.
10367 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10368 (clear_breakpoint_conditions_and_commands): New declaration.
10370 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10372 * linux-aarch64-low.c (asm/ptrace.h): Include.
10374 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10376 Fix TLS access for -static -pthread.
10377 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10378 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10379 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10381 2014-05-20 Pedro Alves <palves@redhat.com>
10383 * linux-aarch64-low.c (aarch64_insert_point)
10384 (aarch64_remove_point): No longer check whether the type is
10385 supported here. Adjust to new interface.
10386 (the_low_target): Install aarch64_supports_z_point_type as
10387 supports_z_point_type method.
10388 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10389 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10390 instead of a Z packet char. Adjust.
10391 (arm_supports_z_point_type): New function.
10392 (arm_insert_point, arm_remove_point): Adjust to new interface.
10393 (the_low_target): Install arm_supports_z_point_type.
10394 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10395 (cris_insert_point, cris_remove_point): Adjust to new interface.
10396 Don't check whether the type is supported here.
10397 (the_low_target): Install cris_supports_z_point_type.
10398 * linux-low.c (linux_supports_z_point_type): New function.
10399 (linux_insert_point, linux_remove_point): Adjust to new interface.
10400 * linux-low.h (struct linux_target_ops) <insert_point,
10401 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10402 raw_breakpoint pointer parameter.
10403 <supports_z_point_type>: New method.
10404 * linux-mips-low.c (mips_supports_z_point_type): New function.
10405 (mips_insert_point, mips_remove_point): Adjust to new interface.
10406 Use mips_supports_z_point_type.
10407 (the_low_target): Install mips_supports_z_point_type.
10408 * linux-ppc-low.c (the_low_target): Install NULL as
10409 supports_z_point_type method.
10410 * linux-s390-low.c (the_low_target): Install NULL as
10411 supports_z_point_type method.
10412 * linux-sparc-low.c (the_low_target): Install NULL as
10413 supports_z_point_type method.
10414 * linux-x86-low.c (x86_supports_z_point_type): New function.
10415 (x86_insert_point): Adjust to new insert_point interface. Use
10416 insert_memory_breakpoint. Adjust to new
10417 i386_low_insert_watchpoint interface.
10418 (x86_remove_point): Adjust to remove_point interface. Use
10419 remove_memory_breakpoint. Adjust to new
10420 i386_low_remove_watchpoint interface.
10421 (the_low_target): Install x86_supports_z_point_type.
10422 * lynx-low.c (lynx_target_ops): Install NULL as
10423 supports_z_point_type callback.
10424 * nto-low.c (nto_supports_z_point_type): New.
10425 (nto_insert_point, nto_remove_point): Adjust to new interface.
10426 (nto_target_ops): Install nto_supports_z_point_type.
10427 * mem-break.c: Adjust intro comment.
10428 (struct raw_breakpoint) <raw_type, size>: New fields.
10429 <inserted>: Update comment.
10430 <shlib_disabled>: Delete field.
10431 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10432 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10433 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10434 (raw_bkpt_type_to_target_hw_bp_type): New function.
10435 (find_enabled_raw_code_breakpoint_at): New function.
10436 (find_raw_breakpoint_at): New type and size parameters. Use them.
10437 (insert_memory_breakpoint): New function, based off
10438 set_raw_breakpoint_at.
10439 (remove_memory_breakpoint): New function.
10440 (set_raw_breakpoint_at): Reimplement.
10441 (set_breakpoint): New, based on set_breakpoint_at.
10442 (set_breakpoint_at): Reimplement.
10443 (delete_raw_breakpoint): Go through the_target->remove_point
10444 instead of assuming memory breakpoints.
10445 (find_gdb_breakpoint_at): Delete.
10446 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10447 (find_gdb_breakpoint): New function.
10448 (set_gdb_breakpoint_at): Delete.
10449 (z_type_supported): New function.
10450 (set_gdb_breakpoint_1): New function, loosely based off
10451 set_gdb_breakpoint_at.
10452 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10453 (delete_gdb_breakpoint_at): Delete.
10454 (delete_gdb_breakpoint_1): New function, loosely based off
10455 delete_gdb_breakpoint_at.
10456 (delete_gdb_breakpoint): New function.
10457 (clear_gdb_breakpoint_conditions): Rename to ...
10458 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10460 (add_condition_to_breakpoint): Make static.
10461 (add_breakpoint_condition): Take a struct breakpoint pointer
10462 instead of an address. Adjust.
10463 (gdb_condition_true_at_breakpoint): Rename to ...
10464 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10466 (gdb_condition_true_at_breakpoint): Reimplement.
10467 (add_breakpoint_commands): Take a struct breakpoint pointer
10468 instead of an address. Adjust.
10469 (gdb_no_commands_at_breakpoint): Rename to ...
10470 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10471 parameter. Return true if no breakpoint was found. Change debug
10473 (gdb_no_commands_at_breakpoint): Reimplement.
10474 (run_breakpoint_commands): Rename to ...
10475 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10476 and change return type to boolean.
10477 (run_breakpoint_commands): New function.
10478 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10479 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10480 breakpoint. Go through the_target->remove_point instead of
10481 assuming memory breakpoint.
10482 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10483 software and hardware breakpoints.
10484 (reinsert_raw_breakpoint): Go through the_target->insert_point
10485 instead of assuming memory breakpoint.
10486 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10487 software and hardware breakpoints.
10488 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10489 Check both software and hardware breakpoints.
10490 (validate_inserted_breakpoint): Assert the breakpoint is a
10491 software breakpoint. Set the inserted flag to -1 instead of
10492 setting shlib_disabled.
10493 (delete_disabled_breakpoints): Adjust.
10494 (validate_breakpoints): Only validate software breakpoints.
10495 Adjust to inserted flag change.
10496 (check_mem_read, check_mem_write): Skip breakpoint types other
10497 than software breakpoints. Adjust to inserted flag change.
10498 * mem-break.h (enum raw_bkpt_type): New enum.
10499 (raw_breakpoint, struct process_info): Forward declare.
10500 (Z_packet_to_target_hw_bp_type): Delete declaration.
10501 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10502 (set_gdb_breakpoint, delete_gdb_breakpoint)
10503 (clear_breakpoint_conditions): New declarations.
10504 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10505 (breakpoint_inserted_here): Update comment.
10506 (add_breakpoint_condition, add_breakpoint_commands): Replace
10507 address parameter with a breakpoint pointer parameter.
10508 (gdb_breakpoint_here): Update comment.
10509 (delete_gdb_breakpoint_at): Delete.
10510 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
10511 * server.c (process_point_options): Take a struct breakpoint
10512 pointer instead of an address. Adjust.
10513 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
10514 delete_gdb_breakpoint.
10515 * spu-low.c (spu_target_ops): Install NULL as
10516 supports_z_point_type method.
10517 * target.h: Include mem-break.h.
10518 (struct target_ops) <prepare_to_access_memory>: Update comment.
10519 <supports_z_point_type>: New field.
10520 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10521 instead of a char. Also take a raw breakpoint pointer.
10522 * win32-arm-low.c (the_low_target): Install NULL as
10523 supports_z_point_type.
10524 * win32-i386-low.c (i386_supports_z_point_type): New function.
10525 (i386_insert_point, i386_remove_point): Adjust to new interface.
10526 (the_low_target): Install i386_supports_z_point_type.
10527 * win32-low.c (win32_supports_z_point_type): New function.
10528 (win32_insert_point, win32_remove_point): Adjust to new interface.
10529 (win32_target_ops): Install win32_supports_z_point_type.
10530 * win32-low.h (struct win32_target_ops):
10531 <supports_z_point_type>: New method.
10532 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10533 instead of a char. Also take a raw breakpoint pointer.
10535 2014-05-20 Pedro Alves <palves@redhat.com>
10537 * mem-break.h: Include break-common.h.
10538 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10539 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10540 (Z_packet_to_target_hw_bp_type): New declaration.
10541 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10542 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10543 (Z_PACKET_ACCESS_WP): Delete macros.
10544 (Z_packet_to_hw_type): Delete function.
10545 * i386-low.h: Don't include break-common.h here.
10546 (Z_packet_to_hw_type): Delete declaration.
10547 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10548 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10549 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10550 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10551 * linux-aarch64-low.c: Don't include break-common.h here.
10552 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10553 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10554 (Z_packet_to_target_hw_bp_type): Delete function.
10555 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10557 (mips_insert_point, mips_remove_point): Use
10558 Z_packet_to_target_hw_bp_type.
10560 2014-05-20 Pedro Alves <palves@redhat.com>
10562 * linux-aarch64-low.c: Include break-common.h.
10563 (enum target_point_type): Delete.
10564 (Z_packet_to_point_type): Rename to ...
10565 (Z_packet_to_target_hw_bp_type): ... this, and return a
10566 target_hw_bp_type instead.
10567 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10568 instead of an enum target_point_type.
10569 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10571 (aarch64_dr_state_insert_one_point)
10572 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10573 (aarch64_handle_aligned_watchpoint)
10574 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10575 Take an enum target_hw_bp_type instead of an enum
10577 (aarch64_supports_z_point_type): New function.
10578 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10579 use Z_packet_to_target_hw_bp_type.
10581 2014-05-20 Joel Brobecker <brobecker@adacore.com>
10583 * configure.ac: Only use -Werror by default when DEVELOPMENT
10585 * configure: Regenerate.
10587 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10589 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10590 * linux-x86-low.c (X86_64_USER_REGS): New.
10591 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10593 2014-04-28 Yao Qi <yao@codesourcery.com>
10595 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10598 2014-04-25 Pedro Alves <palves@redhat.com>
10601 * linux-low.c (linux_attach_fail_reason_string): New function.
10602 (linux_attach_lwp): Delete.
10603 (linux_attach_lwp_1): Rename to ...
10604 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10605 argument. Remove "initial" parameter. Return int instead of
10606 void. Don't error or warn here.
10607 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10608 failure to attach to the tgid. Call warning when failing to
10610 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10611 argument. Remove "initial" parameter. Return int instead of
10612 void. Don't error or warn here.
10613 (linux_attach_fail_reason_string): New declaration.
10614 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10615 interface change. Use linux_attach_fail_reason_string.
10617 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
10618 Walfred Tedeschi <walfred.tedeschi@intel.com>
10620 * Makefile.in: Added rules to handle new files
10621 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
10622 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
10623 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
10624 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
10625 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
10626 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
10627 x32-avx512-linux.o.
10628 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
10629 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
10630 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
10631 i386/x32-avx512.xml.
10632 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
10633 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
10634 i386/x32-avx512-linux.xml.
10635 * i387-fp.c (num_avx512_k_registers): New constant for number
10637 (num_avx512_zmmh_low_registers): New constant for number of
10638 lower ZMM registers (0-15).
10639 (num_avx512_zmmh_high_registers): New constant for number of
10640 higher ZMM registers (16-31).
10641 (num_avx512_ymmh_registers): New contant for number of higher
10642 YMM registers (ymm16-31 added by avx521 on x86_64).
10643 (num_avx512_xmm_registers): New constant for number of higher
10644 XMM registers (xmm16-31 added by AVX512 on x86_64).
10645 (struct i387_xsave): Add space for AVX512 registers.
10646 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
10647 Add code to handle AVX512 registers.
10648 (i387_xsave_to_cache): Add code to handle AVX512 registers.
10649 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
10650 prototypei from generated file.
10651 (tdesc_amd64_avx512_linux): Likewise.
10652 (init_registers_x32_avx512_linux): Likewise.
10653 (tdesc_x32_avx512_linux): Likewise.
10654 (init_registers_i386_avx512_linux): Likewise.
10655 (tdesc_i386_avx512_linux): Likewise.
10656 (x86_64_regmap): Add AVX512 registers.
10657 (x86_linux_read_description): Add code to handle AVX512 XSTATE
10659 (initialize_low_arch): Add code to initialize AVX512 registers.
10661 2014-04-23 Pedro Alves <palves@redhat.com>
10663 * mem-break.c (find_gdb_breakpoint_at): Make static.
10664 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10666 2014-04-23 Pedro Alves <palves@redhat.com>
10668 * i386-low.c: Don't include break-common.h here.
10669 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10670 prototype to take target_hw_bp_type as argument instead of a Z
10672 * i386-low.h: Include break-common.h here.
10673 (Z_packet_to_hw_type): Declare.
10674 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10676 * linux-x86-low.c (x86_insert_point): Convert the packet number to
10677 a target_hw_bp_type before calling i386_low_insert_watchpoint.
10678 (x86_remove_point): Convert the packet number to a
10679 target_hw_bp_type before calling i386_low_remove_watchpoint.
10680 * win32-i386-low.c (i386_insert_point): Convert the packet number
10681 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
10682 (i386_remove_point): Convert the packet number to a
10683 target_hw_bp_type before calling i386_low_remove_watchpoint.
10685 2014-04-23 Pedro Alves <palves@redhat.com>
10687 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10689 2014-04-10 Pedro Alves <palves@redhat.com>
10691 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
10692 Check if the condition or command is NULL before checking if the
10693 breakpoint is known. On success, return true.
10694 * mem-break.h (add_breakpoint_condition): Document return.
10695 (add_breakpoint_commands): Add describing comment.
10696 * server.c (skip_to_semicolon): New function.
10697 (process_point_options): Use it.
10699 2014-04-09 Pedro Alves <palves@redhat.com>
10701 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10704 2014-02-27 Pedro Alves <palves@redhat.com>
10707 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10709 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10711 (last_thread_of_process_p): Take a PID argument instead of a
10713 (linux_wait_for_lwp): Delete.
10714 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10716 (linux_low_filter_event): New function, party factored out from
10717 linux_wait_for_event.
10718 (linux_wait_for_event): Rename to ...
10719 (linux_wait_for_event_filtered): ... this. Add new filter ptid
10720 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
10721 sigsuspend. Check for zombie leaders.
10722 (linux_wait_for_event): Reimplement as wrapper around
10723 linux_wait_for_event_filtered.
10724 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
10725 a normal or signal exit is seen, it's the whole process exiting.
10726 (wait_for_sigstop): No longer a for_each_inferior callback.
10727 Rewrite on top of linux_wait_for_event_filtered.
10728 (stop_all_lwps): Call wait_for_sigstop directly.
10729 * server.c (resume, handle_target_event): Handle
10730 TARGET_WAITKIND_NO_RESUMED.
10732 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10734 * win32-low.c (psapi_get_dll_name,
10735 * win32_CreateToolhelp32Snapshot): Delete.
10736 (win32_CreateToolhelp32Snapshot, win32_Module32First)
10737 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
10739 (handle_load_dll): Add function description.
10740 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10742 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10744 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10746 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
10747 base address when calling win32_add_one_solib.
10748 (handle_load_dll): Delete local variable load_addr.
10749 Remove 0x1000 offset applied to DLL base address when calling
10750 win32_add_one_solib.
10751 (handle_unload_dll): Add comment.
10753 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10755 * win32-low.c (win32_add_all_dlls): Renames
10756 win32_ensure_ntdll_loaded. Rewrite function documentation.
10757 Adjust implementation to always load all DLLs.
10758 Add 0x1000 offset to DLL base address when calling
10759 win32_add_one_solib.
10760 (child_initialization_done): New static global.
10761 (do_initial_child_stuff): Set child_initialization_done to
10762 zero during child initialization, and 1 after. Replace call
10763 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
10765 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
10766 (handle_unload_dll): Add function documentation.
10767 (get_child_debug_event): Ignore load and unload DLL events
10768 during child initialization.
10770 2014-02-20 Doug Evans <dje@google.com>
10772 Remove global all_lwps.
10773 * inferiors.h (ptid_of): Move here from linux-low.h.
10774 (pid_of, lwpid_of): Ditto.
10775 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
10776 parameter is a struct thread_info * now.
10777 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
10778 directly. Pass &all_threads to find_inferior instead of &all_lwps.
10779 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
10781 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
10782 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
10783 * linux-arm-low.c (update_registers_callback): Update, "entry"
10784 parameter is a struct thread_info * now.
10785 Fetch lwpid from current_inferior directly.
10786 (arm_insert_point): Pass &all_threads to find_inferior instead of
10788 (arm_remove_point): Ditto.
10789 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
10790 (arm_prepare_to_resume): Fetch pid from thread.
10791 (arm_read_description): Fetch lwpid from current_inferior directly.
10792 * linux-low.c (all_lwps): Delete.
10793 (delete_lwp): Delete call to remove_inferior.
10794 (handle_extended_wait): Fetch lwpid from thread.
10795 (add_lwp): Don't set lwp->entry.id. Remove call to
10796 add_inferior_to_list.
10797 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
10798 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
10799 (kill_one_lwp_callback): Ditto.
10800 (linux_kill): Don't dereference NULL pointer.
10801 Fetch ptid,lwpid from thread.
10802 (get_detach_signal): Fetch ptid from thread.
10803 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
10804 Simplify call to regcache_invalidate_thread.
10805 (delete_lwp_callback): Update, "entry" parameter is a
10806 struct thread_info * now. Fetch pid from thread.
10807 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
10808 (status_pending_p_callback): Update, "entry" parameter is a
10809 struct thread_info * now. Fetch ptid from thread.
10810 (find_lwp_pid): Update, "entry" parameter is a
10811 struct thread_info * now.
10812 (linux_wait_for_lwp): Fetch pid from thread.
10813 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
10814 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
10815 (enqueue_one_deferred_signal): Fetch lwpid from thread.
10816 (dequeue_one_deferred_signal): Ditto.
10817 (cancel_breakpoint): Fetch ptid from current_inferior.
10818 (linux_wait_for_event): Pass &all_threads to find_inferior,
10819 not &all_lwps. Fetch ptid, lwpid from thread.
10820 (count_events_callback): Update, "entry" parameter is a
10821 struct thread_info * now.
10822 (select_singlestep_lwp_callback): Ditto.
10823 (select_event_lwp_callback): Ditto.
10824 (cancel_breakpoints_callback): Ditto.
10825 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
10827 (select_event_lwp): Ditto. Fetch ptid from event_thread.
10828 (unsuspend_one_lwp): Update, "entry" parameter is a
10829 struct thread_info * now.
10830 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
10832 (linux_stabilize_threads): Ditto. And for for_each_inferior.
10833 Fetch lwpid from thread, not lwp.
10834 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
10835 Pass &all_threads to find_inferior, not &all_lwps.
10836 (send_sigstop): Fetch lwpid from thread, not lwp.
10837 (send_sigstop_callback): Update, "entry" parameter is a
10838 struct thread_info * now.
10839 (suspend_and_send_sigstop_callback): Ditto.
10840 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
10841 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
10842 struct thread_info * now.
10843 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
10845 (lwp_running): Update, "entry" parameter is a
10846 struct thread_info * now.
10847 (stop_all_lwps): Fetch ptid from thread.
10848 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
10849 (linux_resume_one_lwp): Fetch lwpid from thread.
10850 (linux_set_resume_request): Update, "entry" parameter is a
10851 struct thread_info * now. Fetch pid, lwpid from thread.
10852 (resume_status_pending_p): Update, "entry" parameter is a
10853 struct thread_info * now.
10854 (need_step_over_p): Ditto. Fetch lwpid from thread.
10855 (start_step_over): Fetch lwpid from thread.
10856 (linux_resume_one_thread): Update, "entry" parameter is a
10857 struct thread_info * now. Fetch lwpid from thread.
10858 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
10859 (proceed_one_lwp): Update, "entry" parameter is a
10860 struct thread_info * now. Fetch lwpid from thread.
10861 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
10862 struct thread_info * now.
10863 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
10864 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10865 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10867 (regsets_store_inferior_registers): Ditto.
10868 (fetch_register, store_register): Ditto.
10869 (linux_read_memory, linux_write_memory): Ditto.
10870 (linux_request_interrupt): Ditto.
10871 (linux_read_auxv): Ditto.
10872 (linux_xfer_siginfo): Ditto.
10873 (linux_qxfer_spu): Ditto.
10874 (linux_qxfer_libraries_svr4): Ditto.
10875 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10876 moved to inferiors.h.
10878 (get_thread_lwp): Update.
10879 (struct lwp_info): Delete member "entry". Simplify comment for
10881 (all_lwps): Delete.
10882 * linux-mips-low.c (mips_read_description): Fetch lwpid from
10883 current_inferior directly.
10884 (update_watch_registers_callback): Update, "entry" parameter is a
10885 struct thread_info * now. Fetch pid from thread.
10886 (mips_linux_prepare_to_resume): Fetch ptid from thread.
10887 (mips_insert_point): Fetch lwpid from current_inferior.
10888 Pass &all_threads to find_inferior, not &all_lwps.
10889 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
10890 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
10892 (mips_stopped_data_address): Ditto.
10893 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
10895 * linux-tile-low.c (tile_arch_setup): Ditto.
10896 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
10897 (update_debug_registers_callback): Update, "entry" parameter is a
10898 struct thread_info * now. Fetch pid from thread.
10899 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
10900 Pass &all_threads to find_inferior, not &all_lwps.
10901 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
10902 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
10903 Pass &all_threads to find_inferior, not &all_lwps.
10904 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
10905 (i386_dr_low_get_status): Ditto.
10906 (x86_linux_prepare_to_resume): Fetch ptid from thread.
10907 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
10908 (x86_linux_read_description): Ditto.
10909 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
10911 2014-02-20 Doug Evans <dje@google.com>
10913 * inferiors.c (get_first_inferior): Fix buglet.
10915 2014-02-19 Doug Evans <dje@google.com>
10917 * gdbthread.h (add_thread): Change result type to struct thread_info *.
10918 * inferiors.c (add_thread): Change result type to struct thread_info *.
10919 All callers updated.
10920 (add_lwp): Call add_thread here instead of in callers.
10921 All callers updated.
10922 * linux-low.h (get_lwp_thread): Rewrite.
10923 (struct lwp_info): New member "thread".
10925 2014-02-19 Doug Evans <dje@google.com>
10927 * linux-low.c (add_lwp): Change result to struct lwp_info *.
10928 All callers updated.
10930 2014-02-19 Doug Evans <dje@google.com>
10932 * inferiors.c (add_thread): Fix whitespace.
10934 2014-02-19 Doug Evans <dje@google.com>
10936 * dll.c (clear_dlls): Replace accessing list implemention details
10938 * gdbthread.h (get_first_thread): Declare.
10939 * inferiors.c (for_each_inferior_with_data): New function.
10940 (get_first_thread): New function.
10941 (find_thread_ptid): Simplify.
10942 (get_first_inferior): New function.
10943 (clear_list): Delete.
10944 (one_inferior_p): New function.
10945 (clear_inferior_list): New function.
10946 (clear_inferiors): Update.
10947 * inferiors.h (for_each_inferior_with_data): Declare.
10948 (clear_inferior_list): Declare.
10949 (one_inferior_p): Declare.
10950 (get_first_inferior): Declare.
10951 * linux-low.c (linux_wait_for_event): Replace accessing list
10952 implemention details with API function.
10953 * server.c (target_running): Ditto.
10954 (accumulate_file_name_length): New function.
10955 (emit_dll_description): New function.
10956 (handle_qxfer_libraries): Replace accessing list implemention
10957 details with API function.
10958 (handle_qxfer_threads_worker): New function.
10959 (handle_qxfer_threads_proper): Replace accessing list implemention
10960 details with API function.
10961 (handle_query): Ditto.
10962 (visit_actioned_threads_callback_ftype): New typedef.
10963 (visit_actioned_threads_data): New struct.
10964 (visit_actioned_threads): Rewrite to be find_inferior callback.
10965 (resume): Call find_inferior.
10966 (handle_status): Replace accessing list implemention
10967 details with API function.
10968 (process_serial_event): Replace accessing list implemention details
10970 * target.c (set_desired_inferior): Replace accessing list implemention
10971 details with API function.
10972 * tracepoint.c (same_process_p): New function.
10973 (gdb_agent_about_to_close): Replace accessing list implemention
10974 details with API function.
10975 * win32-low.c (child_delete_thread): Replace accessing list
10976 implemention details with API function.
10977 (match_dll_by_basename): New function.
10978 (dll_is_loaded_by_basename): New function.
10979 (win32_ensure_ntdll_loaded): Replace accessing list implemention
10980 details call to dll_is_loaded_by_basename.
10982 2014-02-19 Doug Evans <dje@google.com>
10984 * dll.h (struct dll_info): Add comment.
10985 * gdbthread.h (struct thread_info): Add comment.
10986 (current_ptid): Simplify.
10987 * inferiors.c (add_process): Update.
10988 (remove_process): Update.
10989 * inferiors.h (struct process_info): Rename member "head" to "entry".
10990 * linux-low.c (delete_lwp): Update.
10992 (last_thread_of_process_p): Update.
10993 (kill_one_lwp_callback, linux_kill): Update.
10994 (status_pending_p_callback): Update.
10995 (wait_for_sigstop): Update. Simplify read of ptid.
10996 (start_step_over): Update.
10997 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
10998 (get_lwp_thread): Update.
10999 (struct lwp_info): Rename member "head" to "entry".
11000 * regcache.h (inferior_list_entry): Delete.
11001 * server.c (kill_inferior_callback): Update.
11002 (detach_or_kill_inferior_callback): Update.
11003 (print_started_pid): Update.
11004 (print_attached_pid): Update.
11005 (process_serial_event): Simplify read of ptid.
11006 * thread-db.c (thread_db_create_event): Update.
11007 (thread_db_get_tls_address): Update.
11008 * win32-low.c (current_inferior_ptid): Simplify.
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11012 * target.h (struct target_ops) <supports_btrace>: Add target_ops
11014 (target_supports_btrace): Update.
11016 2014-02-14 Yao Qi <yao@codesourcery.com>
11018 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
11019 (rsp-low-ipa.o): New target.
11021 2014-02-12 Tom Tromey <tromey@redhat.com>
11023 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
11024 convert_ascii_to_int.
11025 * regcache.c (registers_to_string): Likewise.
11026 * remote-utils.c (decode_M_packet): Likewise.
11027 * server.c (process_serial_event): Likewise.
11029 2014-02-12 Tom Tromey <tromey@redhat.com>
11031 * server.c (handle_query, handle_v_run): Use hex2bin, not
11033 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
11035 2014-02-12 Tom Tromey <tromey@redhat.com>
11037 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
11038 convert_int_to_ascii.
11039 * regcache.c (registers_to_string, collect_register_as_string):
11041 * remote-utils.c (look_up_one_symbol, relocate_instruction):
11043 * server.c (process_serial_event): Likewise.
11044 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
11045 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
11047 2014-02-12 Tom Tromey <tromey@redhat.com>
11049 * remote-utils.c (look_up_one_symbol, monitor_output): Use
11050 bin2hex, not hexify.
11051 * tracepoint.c (cmd_qtstatus): Likewise.
11053 2014-02-12 Tom Tromey <tromey@redhat.com>
11055 * remote-utils.c (monitor_output): Pass explicit length to
11058 2014-02-12 Tom Tromey <tromey@redhat.com>
11060 * tracepoint.c: Include rsp-low.h.
11061 * server.c: Include rsp-low.h.
11062 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
11063 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
11065 * remote-utils.c: Include rsp-low.h.
11066 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
11067 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
11068 (convert_int_to_ascii, convert_ascii_to_int): Move to
11070 * regcache.c: Include rsp-low.h.
11071 * ax.c: Include rsp-low.h.
11072 * Makefile.in (SFILES): Add common/rsp-low.c.
11073 (OBS): Add rsp-low.o.
11074 (rsp-low.o): New target.
11076 2014-02-12 Tom Tromey <tromey@redhat.com>
11078 * utils.h (pulongest, plongest, phex_nz): Don't declare.
11079 Include print-utils.h.
11080 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11081 (plongest, thirty_two, phex_nz): Remove.
11082 * Makefile.in (SFILES): Add common/print-utils.c.
11083 (OBS): Add print-utils.o.
11084 (print-utils-ipa.o): New target.
11085 (print-utils.o): New target.
11086 (IPA_OBJS): Add print-utils-ipa.o.
11088 2014-02-06 Tom Tromey <tromey@redhat.com>
11090 * Makefile.in (SFILES): Fix indentation.
11092 2014-02-05 Doug Evans <dje@google.com>
11094 * linux-low.c (linux_wait_for_event): Improve comment.
11095 (linux_wait_1): Keep current_inferior in sync with event_child.
11097 2014-01-22 Doug Evans <dje@google.com>
11099 * gdbthread.h (gdb_id_to_thread): Delete, unused.
11101 2014-01-22 Doug Evans <dje@google.com>
11103 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
11104 * configure: Regenerate.
11105 * config.in: Regenerate.
11106 * Makefile.in (SFILES): Add debug.c.
11107 (OBS): Add debug.o.
11108 * debug.c: New file.
11109 * debug.h: New file.
11110 * linux-aarch64-low.c (*): Update all debugging printfs to use
11111 debug_printf instead of fprintf.
11112 * linux-arm-low.c (*): Ditto.
11113 * linux-cris-low.c (*): Ditto.
11114 * linux-crisv32-low.c (*): Ditto.
11115 * linux-m32r-low.c (*): Ditto.
11116 * linux-sparc-low.c (*): Ditto.
11117 * linux-x86.c (*): Ditto.
11118 * linux-low.c (*): Ditto.
11119 (linux_wait_1): Add calls to debug_enter, debug_exit.
11120 (linux_wait): Remove redundant debugging printf.
11121 (stop_all_lwps): Add calls to debug_enter, debug_exit.
11122 (linux_resume, unstop_all_lwps): Ditto.
11123 * mem-break.c (*): Update all debugging printfs to use
11124 debug_printf instead of fprintf.
11125 * remote-utils.c (*): Ditto.
11126 * thread-db.c (*): Ditto.
11127 * server.c #include <ctype.h>, "gdb_vecs.h".
11128 (debug_threads): Moved to debug.c.
11129 (*): Update all debugging printfs to use debug_printf instead of
11131 (start_inferior): Replace call to fflush with call to debug_flush.
11132 (monitor_show_help): Mention set debug-format.
11133 (parse_debug_format_options): New function.
11134 (handle_monitor_command): Handle "monitor set debug-format".
11135 (gdbserver_usage): Mention --debug-format.
11136 (main): Parse --debug-format.
11137 * server.h (debug_threads): Declaration moved to debug.h.
11138 #include "debug.h".
11139 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
11140 trace_debug_1 that uses debug_printf.
11141 (tracepoint_look_up_symbols): Update all debugging printfs to use
11142 debug_printf instead of fprintf.
11144 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11146 * linux-xtensa-low.c: Include asm/ptrace.h instead of
11149 2014-01-17 Pedro Alves <palves@redhat.com>
11152 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
11153 defined after including gdb_proc_service.h.
11155 2014-01-16 Doug Evans <dje@google.com>
11157 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
11158 (match_dll): Use it.
11160 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11162 * target.h (target_ops) <read_btrace>: Change parameters and
11163 return type to allow error reporting.
11164 * server.c (handle_qxfer_btrace): Support delta reads. Pass
11165 trace reading errors on.
11166 * linux-low.c (linux_low_read_btrace): Pass trace reading
11168 (linux_low_disable_btrace): New.
11170 2014-01-15 Doug Evans <dje@google.com>
11172 * inferiors.c (thread_id_to_gdb_id): Delete.
11173 * inferiors.h (thread_id_to_gdb_id): Delete.
11175 2014-01-13 Eli Zaretskii <eliz@gnu.org>
11177 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
11178 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
11181 2014-01-08 Pedro Alves <palves@redhat.com>
11183 * server.c (handle_status): Don't discard previous queued stop
11184 replies or thread's pending status here.
11185 (main) <disconnection>: Do it here instead.
11187 2014-01-08 Pedro Alves <palves@redhat.com>
11189 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
11190 * server.c (visit_actioned_threads, handle_pending_status): New
11192 (handle_v_cont): Factor out parts to ...
11193 (resume): ... this new function. If in all-stop, and a thread
11194 being resumed has a pending status, report it without actually
11196 (myresume): Adjust to use the new 'resume' function.
11197 (clear_pending_status_callback, set_pending_status_callback)
11198 (find_status_pending_thread_callback): New functions.
11199 (handle_status): Handle the case of multiple threads having
11200 interesting statuses to report. Report threads' real last signal
11201 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11202 with an interesting thread to report the status for, instead of
11203 always reporting the status of the first thread.
11205 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11207 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11208 * gdbreplay.c (gdbreplay_version): Likewise.
11210 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11212 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11213 iov.iov_len with the real length in use.
11215 2013-12-13 Joel Brobecker <brobecker@adacore.com>
11217 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11218 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11219 for all targets that use win32-low.c.
11220 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11221 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11223 2013-12-13 Pedro Alves <palves@redhat.com>
11225 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11226 if equal to TARGET_WAITKIND_LOADED.
11227 * win32-low.c (cached_status): New static global.
11228 (win32_wait): Add declaration.
11229 (do_initial_child_stuff): Flush all initial pending debug events
11230 up to the initial breakpoint.
11231 (win32_wait): If CACHED_STATUS was set, return that instead
11232 of doing a real wait. Remove the code resuming the execution
11233 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11234 during the initial phase. Also remove the code changing
11235 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11236 TARGET_WAITKIND_STOPPED.
11238 2013-12-11 Yao Qi <yao@codesourcery.com>
11240 * notif.c (handle_notif_ack): Return 0 if no notification
11243 2013-11-20 Doug Evans <dje@google.com>
11245 * linux-low.c (linux_set_resume_request): Fix comment.
11247 2013-11-20 Doug Evans <dje@google.com>
11249 * linux-low.c (resume_status_pending_p): Tweak comment.
11251 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11253 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11254 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11255 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11256 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11257 (srv_amd64_regobj): Add amd64-mpx.o.
11258 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11259 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11260 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11261 * i387-fp.c (num_pl_bnd_register) Added constant.
11262 (num_pl_bnd_cfg_registers) Added constant.
11263 (struct i387_xsave) Added reserved area and MPX fields.
11264 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11265 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11267 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11268 (init_registers_amd64_mpx_linux): Declare new function.
11269 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11270 (x86_64_regmap): Add MPX registers.
11271 (x86_linux_read_description): Add MPX case.
11272 (initialize_low_arch): Initialize MPX targets.
11274 2013-11-18 Tom Tromey <tromey@redhat.com>
11276 * configure: Rebuild.
11277 * configure.ac: Don't check for stdlib.h.
11278 * gdbreplay.c: Unconditionally include stdlib.h.
11280 2013-11-18 Tom Tromey <tromey@redhat.com>
11282 * config.in: Rebuild.
11283 * configure: Rebuild.
11284 * configure.ac: Don't use AC_HEADER_DIRENT.
11286 2013-11-18 Tom Tromey <tromey@redhat.com>
11288 * server.h: Don't check HAVE_STRING_H.
11289 * gdbreplay.c: Don't check HAVE_STRING_H.
11290 * configure: Rebuild.
11292 2013-11-18 Tom Tromey <tromey@redhat.com>
11294 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11297 2013-11-08 Tom Tromey <tromey@redhat.com>
11299 * configure, config.in: Rebuild.
11300 * configure.ac: Remove unused configury.
11302 2013-11-08 Tom Tromey <tromey@redhat.com>
11304 * acinclude.m4: Include common.m4, codeset.m4.
11305 * configure, config.in: Rebuild.
11306 * configure.ac: Use GDB_AC_COMMON.
11308 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11310 * linux-s390-low.c (HWCAP_S390_TE): New define.
11311 (s390_arch_setup): Consider the TE field in the HWCAP for
11312 determining 'have_regset_tdb'.
11314 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11317 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11320 2013-10-02 Pedro Alves <palves@redhat.com>
11322 * server.c (process_serial_event): Don't output "GDBserver
11323 exiting" if GDB is connected through stdio.
11324 * target.c (mywait): Likewise, be silent if GDB is connected
11327 2013-10-01 Joel Brobecker <brobecker@adacore.com>
11329 * lynx-low.c (lynx_add_threads_after_attach): New function.
11330 (lynx_attach): Remove call to add_thread. Add call to
11331 lynx_add_threads_after_attach instead.
11333 2013-09-28 Mike Frysinger <vapier@gentoo.org>
11335 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11336 * config.in, configure: Regenerated.
11338 2013-09-18 Yao Qi <yao@codesourcery.com>
11341 * server.c (start_inferior): Clear 'resume_info'.
11343 2013-09-16 Jiong Wang <jiwang@tilera.com>
11345 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11348 2013-09-16 Jiong Wang <jiwang@tilera.com>
11350 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11351 linux-tile-low.o to srv_tgtobj.
11353 2013-09-16 Will Newton <will.newton@linaro.org>
11355 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11358 2013-09-06 Pedro Alves <palves@redhat.com>
11360 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11361 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11362 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11363 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11364 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11365 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11367 2013-09-06 Pedro Alves <palves@redhat.com>
11369 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11370 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11372 2013-09-06 Pedro Alves <palves@redhat.com>
11374 * linux-amd64-ipa.c: Include tracepoint.h.
11375 * linux-i386-ipa.c: Include tracepoint.h.
11377 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11379 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11380 (ps_get_thread_area): New function.
11382 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11384 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11385 (initialize_low_arch): Call init_registers_crisv32 rather than
11386 init_register_crisv32.
11388 2013-09-05 Pedro Alves <palves@redhat.com>
11390 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11392 * hostio.h: ... this new file.
11393 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11394 win32-low.c: Include hostio.h.
11396 2013-09-05 Pedro Alves <palves@redhat.com>
11398 * server.h (gdb_client_data, handler_func, callback_handler_func)
11399 (delete_file_handler, add_file_handler, append_callback_event)
11400 (delete_callback_event, start_event_loop, initialize_event_loop):
11401 Move to event-loop.h and include it.
11402 * event-loop.h: New file.
11404 2013-09-05 Pedro Alves <palves@redhat.com>
11406 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11407 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11408 (loaded_dll, unloaded_dll): Move to ...
11409 * dll.h: ... this new file.
11410 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11412 2013-09-05 Pedro Alves <palves@redhat.com>
11414 * server.h (current_process, get_thread_process, all_processes)
11415 (add_inferior_to_list, for_each_inferior, current_inferior)
11416 (remove_inferior, add_process, remove_process, find_process_pid)
11417 (have_started_inferiors_p, have_attached_inferiors_p)
11418 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11419 (clear_inferiors, find_inferior, find_inferior_id)
11420 (inferior_target_data, set_inferior_target_data)
11421 (inferior_regcache_data, set_inferior_regcache_data): Move to
11422 inferiors.h, and include it.
11423 * inferiors.h: New file.
11425 2013-09-05 Pedro Alves <palves@redhat.com>
11427 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11431 2013-09-05 Pedro Alves <palves@redhat.com>
11433 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11435 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11436 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11437 (handle_tracepoint_general_set, handle_tracepoint_query)
11438 (tracepoint_finished_step, tracepoint_was_hit)
11439 (release_while_stepping_state_list, current_traceframe)
11440 (in_readonly_region, traceframe_read_mem)
11441 (fetch_traceframe_registers, traceframe_read_sdata)
11442 (traceframe_read_info, struct fast_tpoint_collect_status)
11443 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11444 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11445 (supply_fast_tracepoint_registers)
11446 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11447 (ipa_tdesc, claim_trampoline_space)
11448 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11449 (agent_mem_read, agent_get_trace_state_variable_value)
11450 (agent_set_trace_state_variable_value, agent_tsv_read)
11451 (agent_mem_read_string, get_raw_reg_func_addr)
11452 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11453 * tracepoint.h: ... this new file.
11455 2013-09-05 Pedro Alves <palves@redhat.com>
11457 * server.h (perror_with_name, error, fatal, warning, paddress)
11458 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11460 * utils.h: New file.
11462 2013-09-05 Pedro Alves <palves@redhat.com>
11464 * server.h (remote_debug, noack_mode, transport_is_reliable)
11465 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11466 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11467 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11468 (write_enn, initialize_async_io, enable_async_io)
11469 (disable_async_io, check_remote_input_interrupt_request)
11470 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11471 (dead_thread_notify, prepare_resume_reply)
11472 (decode_address_to_semicolon, decode_address, decode_m_packet)
11473 (decode_M_packet, decode_X_packet, decode_xfer_write)
11474 (decode_search_memory_packet, unhexify, hexify)
11475 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11476 (look_up_one_symbol, relocate_instruction)
11477 (monitor_output): Move to remote-utils.h, and include it.
11478 * remote-utils.h: New file.
11480 2013-09-05 Pedro Alves <palves@redhat.com>
11482 * server.h (_): Delete.
11484 2013-09-02 Pedro Alves <palves@redhat.com>
11486 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11487 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11489 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11491 2013-09-02 Pierre Muller <muller@sourceware.org>
11493 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11494 or WriteProcessMemory complete successfully and handle
11495 ERROR_PARTIAL_COPY error.
11497 2013-09-02 Pedro Alves <palves@redhat.com>
11499 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11500 error instead of EIO.
11502 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11505 * linux-low.c: Include filestuff.h.
11506 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11507 * lynx-low.c: Include filestuff.h.
11508 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
11509 * server.c: Include filestuff.h.
11510 (main): Call notice_open_fds.
11511 * spu-low.c: Include filestuff.h.
11512 (spu_create_inferior) <pid == 0>: Call close_most_fds.
11514 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
11516 * Makefile.in: Explain why ../target and ../nat are not
11517 listed as include file search paths.
11518 (linux-waitpid.o): New object file rule.
11519 * configure.srv (srv_native_linux_obj): New variable.
11520 Replace all occurrences of linux native object files with
11521 $srv_native_linux_obj.
11522 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11523 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11524 (linux_enable_event_reporting): Remove declaration.
11525 (my_waitpid): Moved to common/linux-waitpid.c.
11526 (linux_wait_for_event): Pass ptid when calling
11527 linux_enable_event_reporting.
11528 (linux_supports_tracefork_flag): Remove.
11529 (linux_enable_event_reporting): Likewise.
11530 (linux_tracefork_grandchild): Remove.
11531 (STACK_SIZE): Moved to common/linux-ptrace.c.
11532 (linux_tracefork_child): Remove.
11533 (linux_test_for_tracefork): Remove.
11534 (linux_look_up_symbols): Call linux_supports_traceclone.
11535 (initialize_low): Remove call to linux_test_for_tracefork.
11536 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11537 common/linux-ptrace.h.
11538 (PTRACE_TYPE_ARG4): Likewise.
11539 Include linux-ptrace.h.
11541 2013-08-21 Pedro Alves <palves@redhat.com>
11543 * config.in: Renegerate.
11545 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
11547 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11548 (SFILES): Remove $(srcdir)/common/target-common.c and
11549 add $(srcdir)/target/waitstatus.c.
11550 (OBS): Remove target-common.o and add waitstatus.o.
11551 (server_h): Remove $(srcdir)/../common/target-common.h and
11552 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11553 and $(srcdir)/../target/waitstatus.h.
11554 (target-common.o): Remove.
11555 (waitstatus.o): New target object file.
11556 * target.h: Do not include target-common.h and
11557 include target/resume.h, target/wait.h and
11558 target/waitstatus.h.
11560 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
11562 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11563 to PTRACE_TYPE_ARG3.
11564 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11565 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11567 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11568 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11570 2013-07-27 Jie Zhang <jie@codesourcery.com>
11571 Daniel Jacobowitz <dan@codesourcery.com>
11572 Yao Qi <yao@codesourcery.com>
11574 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11575 (mips-linux-watch.o): New rule.
11576 (mips_linux_watch_h): New variable.
11577 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11579 * linux-mips-low.c: Include mips-linux-watch.h.
11580 (struct arch_process_info, struct arch_lwp_info): New.
11581 (update_watch_registers_callback): New function.
11582 (mips_linux_new_process, mips_linux_new_thread) New functions.
11583 (mips_linux_prepare_to_resume, mips_insert_point): New
11585 (mips_remove_point, mips_stopped_by_watchpoint): New
11587 (rsp_bp_type_to_target_hw_bp_type): New function.
11588 (mips_stopped_data_address): New function.
11589 (the_low_target): Add watchpoint support functions.
11591 2013-07-27 Yao Qi <yao@codesourcery.com>
11593 * i386-low.c: Include break-common.h.
11594 (enum target_hw_bp_type): Remove.
11596 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
11598 * Makefile.in (SFILES): /common/target-common.c.
11599 (OBS): Add target-common.o.
11600 (server_h): Add $(srcdir)/../common/target-common.h.
11601 (target-common.o): New target.
11602 * server.c (queue_stop_reply_callback): Free
11603 status string after use.
11604 * target.c (target_waitstatus_to_string): Remove.
11605 * target.h: Include target-common.h.
11606 (resume_kind): Likewise.
11607 (target_waitkind): Likewise.
11608 (target_waitstatus): Likewise.
11609 (TARGET_WNOHANG): Likewise.
11611 2013-07-04 Yao Qi <yao@codesourcery.com>
11613 * Makefile.in (host_alias): Use @host_noncanonical@.
11614 (target_alias): Use @target_noncanonical@.
11615 * configure.ac: Use ACX_NONCANONICAL_TARGET and
11616 ACX_NONCANONICAL_HOST.
11617 * configure: Regenerated.
11620 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11622 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11623 * configure: Rebuild.
11624 * Makefile.in (version_host, version_target): Get from configure.
11625 (version.c): Use $(version_host) and $(version_target).
11627 2013-07-03 Pedro Alves <palves@redhat.com>
11629 * Makefile.in (config.status): Depend on development.sh.
11630 * acinclude.m4: Include libmcheck.m4.
11631 * configure: Regenerate.
11633 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11635 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
11636 attribute inside the parentheses.
11637 (winapi_DebugSetProcessKillOnExit): Ditto.
11638 (winapi_DebugBreakProcess): Ditto.
11639 (winapi_GenerateConsoleCtrlEvent): Ditto.
11641 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11643 * notif.h (notif_event): Add a dummy member to avoid compiler
11646 2013-07-01 Pedro Alves <palves@redhat.com>
11648 * hostio.c (HOSTIO_PATH_MAX): Define.
11649 (require_filename, handle_open, handle_unlink, handle_readlink):
11652 2013-07-01 Pedro Alves <palves@redhat.com>
11654 * server.h: Include "pathmax.h".
11655 * linux-low.c: Don't include sys/param.h.
11656 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
11658 * win32-low.c: Don't include sys/param.h.
11659 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11661 2013-07-01 Pedro Alves <palves@redhat.com>
11663 * event-loop.c: Don't check HAVE_UNISTD_H before including
11665 * gdbreplay.c: Likewise.
11666 * remote-utils.c: Likewise.
11667 * server.c: Likewise.
11668 * configure.ac: Don't check for unistd.h.
11669 * configure: Regenerate.
11671 2013-06-28 Tom Tromey <tromey@redhat.com>
11673 * Makefile.in (version.c): Use version.in, not
11676 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11678 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11679 * configure: Rebuild.
11680 * Makefile.in (version_host, version_target): Get from configure.
11681 (version.c): Use $(version_host) and $(version_target).
11683 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11685 Fix trace-status to output user name without trailing colon.
11686 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11688 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11690 Fix trace-status to output proper start-time and stop-time.
11691 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
11692 output start time and stop time in hex as gdb expects.
11694 2013-06-26 Pedro Alves <pedro@codesourcery.com>
11696 * tracepoint.c (build_traceframe_info_xml): Output trace state
11697 variables present in the trace buffer.
11699 2013-06-24 Tom Tromey <tromey@redhat.com>
11701 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11703 (version.o): Remove.
11704 * gdbreplay.c: Include version.h.
11705 (version, host_name): Don't declare.
11706 * server.h: Include version.h.
11707 (version, host_name): Don't declare.
11709 2013-06-12 Pedro Alves <palves@redhat.com>
11711 * linux-x86-low.c (linux_is_elf64): Delete global.
11712 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
11713 with local linux_pid_exe_is_elf_64_file use.
11715 2013-06-11 Pedro Alves <palves@redhat.com>
11717 * linux-low.c (regset_disabled, disable_regset): New functions.
11718 (regsets_fetch_inferior_registers)
11719 (regsets_store_inferior_registers): Use them.
11720 (initialize_regsets_info); Don't allocate the disabled_regsets
11722 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11725 2013-06-11 Pedro Alves <palves@redhat.com>
11727 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11730 2013-06-11 Pedro Alves <palves@redhat.com>
11732 * linux-x86-low.c (initialize_low_arch): Call
11733 init_registers_x32_avx_linux.
11735 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11737 Fix compatibility with Android Bionic.
11738 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11741 2013-06-07 Pedro Alves <palves@redhat.com>
11744 * Makefile.in (OBS): Add tdesc.o.
11745 (IPA_OBJS): Add tdesc-ipa.o.
11746 (tdesc-ipa.o): New rule.
11747 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
11749 * linux-low.c (new_inferior): Delete.
11750 (disabled_regsets, num_regsets): Delete.
11751 (linux_add_process): Adjust to set the new per-process
11753 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
11754 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
11755 was a stop. When calling arch_setup, switch the current inferior
11756 to the thread that got an event.
11757 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
11758 (regsets_fetch_inferior_registers)
11759 (regsets_store_inferior_registers): New regsets_info parameter.
11761 (linux_register_in_regsets): New regs_info parameter. Adjust to
11763 (register_addr, fetch_register, store_register): New usrregs_info
11764 parameter. Adjust to use it.
11765 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
11766 parameter regs_info. Adjust to use it.
11767 (linux_fetch_registers): Get the current inferior's regs_info, and
11769 (linux_store_registers): Ditto.
11770 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
11771 (initialize_low): Don't initialize the target_regsets here. Call
11772 initialize_low_arch.
11773 * linux-low.h (target_regsets): Delete declaration.
11774 (struct regsets_info): New.
11775 (struct usrregs_info): New.
11776 (struct regs_info): New.
11777 (struct process_info_private) <new_inferior>: New field.
11778 (struct linux_target_ops): Delete the num_regs, regmap, and
11779 regset_bitmap fields. New field regs_info.
11780 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
11781 * i387-fp.c (num_xmm_registers): Delete.
11782 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
11783 calls to new interface.
11784 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
11785 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
11786 Infer the number of xmm registers from the regcache's target
11788 * i387-fp.h (num_xmm_registers): Delete.
11789 * inferiors.c (add_thread): Don't install the thread's regcache
11791 * proc-service.c (gregset_info): Fetch the current inferior's
11792 regs_info. Adjust to use it.
11793 * regcache.c: Include tdesc.h.
11794 (register_bytes, reg_defs, num_registers)
11795 (gdbserver_expedite_regs): Delete.
11796 (get_thread_regcache): If the thread doesn't have a regcache yet,
11797 create one, instead of aborting gdbserver.
11798 (regcache_invalidate_one): Rename to ...
11799 (regcache_invalidate_thread): ... this.
11800 (regcache_invalidate_one): New.
11801 (regcache_invalidate): Only invalidate registers of the current
11803 (init_register_cache): Add target_desc parameter, and use it.
11804 (new_register_cache): Ditto. Assert the target description has a
11805 non zero registers_size.
11806 (regcache_cpy): Add assertions. Adjust.
11807 (realloc_register_cache, set_register_cache): Delete.
11808 (registers_to_string, registers_from_string): Adjust.
11809 (find_register_by_name, find_regno, find_register_by_number)
11810 (register_cache_size): Add target_desc parameter, and use it.
11811 (free_register_cache_thread, free_register_cache_thread_one)
11812 (regcache_release, register_cache_size): New.
11813 (register_size): Add target_desc parameter, and use it.
11814 (register_data, supply_register, supply_register_zeroed)
11815 (supply_regblock, supply_register_by_name, collect_register)
11816 (collect_register_as_string, collect_register_by_name): Adjust.
11817 * regcache.h (struct target_desc): Forward declare.
11818 (struct regcache) <tdesc>: New field.
11819 (init_register_cache, new_register_cache): Add target_desc
11821 (regcache_invalidate_thread): Declare.
11822 (regcache_invalidate_one): Delete declaration.
11823 (regcache_release): Declare.
11824 (find_register_by_number, register_cache_size, register_size)
11825 (find_regno): Add target_desc parameter.
11826 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
11828 * remote-utils.c: Include tdesc.h.
11829 (outreg, prepare_resume_reply): Adjust.
11830 * server.c: Include tdesc.h.
11831 (gdbserver_xmltarget): Delete declaration.
11832 (get_features_xml, process_serial_event): Adjust.
11833 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
11835 (struct process_info) <tdesc>: New field.
11836 (ipa_tdesc): Declare.
11837 * tdesc.c: New file.
11838 * tdesc.h: New file.
11839 * tracepoint.c: Include tdesc.h.
11840 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
11841 (get_context_regcache): Adjust to pass ipa_tdesc down.
11842 (do_action_at_tracepoint): Adjust to get the register cache size
11843 from the context regcache's description.
11844 (traceframe_walk_blocks): Adjust to get the register cache size
11845 from the current trace frame's description.
11846 (traceframe_get_pc): Adjust to get current trace frame's
11847 description and pass it down.
11848 (gdb_collect): Adjust to get the register cache size from the
11850 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
11851 (gdbserver_xmltarget): Delete.
11852 (initialize_low_tracepoint): Set the ipa's target description.
11853 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
11854 (initialize_low_tracepoint): Set the ipa's target description.
11855 * linux-x86-low.c: Include tdesc.h.
11856 [__x86_64__] (is_64bit_tdesc): New.
11857 (ps_get_thread_area, x86_get_thread_area): Use it.
11858 (i386_cannot_store_register): Rename to ...
11859 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
11860 (i386_cannot_fetch_register): Rename to ...
11861 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
11862 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
11864 (target_regsets): Rename to ...
11865 (x86_regsets): ... this.
11866 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11868 (x86_siginfo_fixup): Use is_64bit_tdesc.
11869 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11870 (tdesc_x32_avx_linux, tdesc_x32_linux)
11871 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11873 (x86_linux_update_xmltarget): Delete.
11874 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11875 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11876 (AMD64_LINUX_USER64_CS): New.
11877 (x86_linux_read_description): New, based on
11878 x86_linux_update_xmltarget.
11879 (same_process_callback): New.
11880 (x86_arch_setup_process_callback): New.
11881 (x86_linux_update_xmltarget): New.
11882 (x86_regsets_info): New.
11883 (amd64_linux_regs_info): New.
11884 (i386_linux_usrregs_info): New.
11885 (i386_linux_regs_info): New.
11886 (x86_linux_regs_info): New.
11887 (x86_arch_setup): Reimplement.
11888 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
11889 (x86_emit_ops): Ditto.
11890 (the_low_target): Adjust. Install x86_linux_regs_info,
11891 x86_cannot_fetch_register, and x86_cannot_store_register.
11892 (initialize_low_arch): New.
11893 * linux-ia64-low.c (tdesc_ia64): Declare.
11894 (ia64_fetch_register): Adjust.
11895 (ia64_usrregs_info, regs_info): New globals.
11896 (ia64_regs_info): New function.
11897 (the_low_target): Adjust.
11898 (initialize_low_arch): New function.
11899 * linux-sparc-low.c (tdesc_sparc64): Declare.
11900 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
11902 (sparc_arch_setup): New function.
11903 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
11904 (the_low_target): Adjust.
11905 (initialize_low_arch): New function.
11906 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
11907 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
11908 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
11909 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
11910 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
11911 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
11912 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
11913 (tdesc_powerpc_isa205_vsx64l): Declare.
11914 (ppc_cannot_store_register, ppc_collect_ptrace_register)
11915 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
11916 (ppc_set_pc, ppc_get_hwcap): Adjust.
11917 (ppc_usrregs_info): Forward declare.
11918 (!__powerpc64__) ppc_regmap_adjusted: New global.
11919 (ppc_arch_setup): Adjust to the current process'es target
11921 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
11922 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
11923 (ppc_store_evrregset): Adjust.
11924 (target_regsets): Rename to ...
11925 (ppc_regsets): ... this, and make static.
11926 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
11927 (ppc_regs_info): New function.
11928 (the_low_target): Adjust.
11929 (initialize_low_arch): New function.
11930 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
11931 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
11932 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
11933 (tdesc_s390x_linux64v2): Declare.
11934 (s390_collect_ptrace_register, s390_supply_ptrace_register)
11935 (s390_fill_gregset, s390_store_last_break): Adjust.
11936 (target_regsets): Rename to ...
11937 (s390_regsets): ... this, and make static.
11938 (s390_get_pc, s390_set_pc): Adjust.
11939 (s390_get_hwcap): New target_desc parameter, and use it.
11940 [__s390x__] (have_hwcap_s390_high_gprs): New global.
11941 (s390_arch_setup): Adjust to set the current process'es target
11942 description. Don't adjust the regmap.
11943 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
11944 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
11945 (regs_info_3264): New globals.
11946 (s390_regs_info): New function.
11947 (the_low_target): Adjust.
11948 (initialize_low_arch): New function.
11949 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
11950 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
11951 [__mips64] (init_registers_mips_linux)
11952 (init_registers_mips_dsp_linux): Delete defines.
11953 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
11954 (have_dsp): New global.
11955 (mips_read_description): New, based on mips_arch_setup.
11956 (mips_arch_setup): Reimplement.
11957 (get_usrregs_info): New function.
11958 (mips_cannot_fetch_register, mips_cannot_store_register)
11959 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
11960 (mips_fill_fpregset, mips_store_fpregset): Adjust.
11961 (target_regsets): Rename to ...
11962 (mips_regsets): ... this, and make static.
11963 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
11964 (dsp_regs_info, regs_info): New globals.
11965 (mips_regs_info): New function.
11966 (the_low_target): Adjust.
11967 (initialize_low_arch): New function.
11968 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
11969 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
11971 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
11972 (arm_read_description): New, with bits factored from
11974 (arm_arch_setup): Reimplement.
11975 (target_regsets): Rename to ...
11976 (arm_regsets): ... this, and make static.
11977 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
11978 (arm_regs_info): New function.
11979 (the_low_target): Adjust.
11980 (initialize_low_arch): New function.
11981 * linux-m68k-low.c (tdesc_m68k): Declare.
11982 (target_regsets): Rename to ...
11983 (m68k_regsets): ... this, and make static.
11984 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
11985 (m68k_regs_info): New function.
11986 (m68k_arch_setup): New function.
11987 (the_low_target): Adjust.
11988 (initialize_low_arch): New function.
11989 * linux-sh-low.c (tdesc_sharch): Declare.
11990 (target_regsets): Rename to ...
11991 (sh_regsets): ... this, and make static.
11992 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
11993 (sh_regs_info, sh_arch_setup): New functions.
11994 (the_low_target): Adjust.
11995 (initialize_low_arch): New function.
11996 * linux-bfin-low.c (tdesc_bfin): Declare.
11997 (bfin_arch_setup): New function.
11998 (bfin_usrregs_info, regs_info): New globals.
11999 (bfin_regs_info): New function.
12000 (the_low_target): Adjust.
12001 (initialize_low_arch): New function.
12002 * linux-cris-low.c (tdesc_cris): Declare.
12003 (cris_arch_setup): New function.
12004 (cris_usrregs_info, regs_info): New globals.
12005 (cris_regs_info): New function.
12006 (the_low_target): Adjust.
12007 (initialize_low_arch): New function.
12008 * linux-cris-low.c (tdesc_crisv32): Declare.
12009 (cris_arch_setup): New function.
12010 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
12011 (cris_regs_info): New function.
12012 (the_low_target): Adjust.
12013 (initialize_low_arch): New function.
12014 * linux-m32r-low.c (tdesc_m32r): Declare.
12015 (m32r_arch_setup): New function.
12016 (m32r_usrregs_info, regs_info): New globals.
12017 (m32r_regs_info): Adjust.
12018 (initialize_low_arch): New function.
12019 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
12020 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
12021 (tic6x_usrregs_info): Forward declare.
12022 (tic6x_read_description): New function, based on ...
12023 (tic6x_arch_setup): ... this. Reimplement.
12024 (target_regsets): Rename to ...
12025 (tic6x_regsets): ... this, and make static.
12026 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
12027 (tic6x_regs_info): New function.
12028 (the_low_target): Adjust.
12029 (initialize_low_arch): New function.
12030 * linux-xtensa-low.c (tdesc_xtensa): Declare.
12031 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
12032 (target_regsets): Rename to ...
12033 (xtensa_regsets): ... this, and make static.
12034 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
12036 (xtensa_arch_setup, xtensa_regs_info): New functions.
12037 (the_low_target): Adjust.
12038 (initialize_low_arch): New function.
12039 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
12040 (nios2_arch_setup): Set the current process'es tdesc.
12041 (target_regsets): Rename to ...
12042 (nios2_regsets): ... this.
12043 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
12044 (nios2_regs_info): New function.
12045 (the_low_target): Adjust.
12046 (initialize_low_arch): New function.
12047 * linux-aarch64-low.c (tdesc_aarch64): Declare.
12048 (aarch64_arch_setup): Set the current process'es tdesc.
12049 (target_regsets): Rename to ...
12050 (aarch64_regsets): ... this.
12051 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
12052 (aarch64_regs_info): New function.
12053 (the_low_target): Adjust.
12054 (initialize_low_arch): New function.
12055 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
12057 (target_regsets): Rename to ...
12058 (tile_regsets): ... this.
12059 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
12060 (tile_regs_info): New function.
12061 (tile_arch_setup): Set the current process'es tdesc.
12062 (the_low_target): Adjust.
12063 (initialize_low_arch): New function.
12064 * spu-low.c (tdesc_spu): Declare.
12065 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
12066 * win32-arm-low.c (tdesc_arm): Declare.
12067 (arm_arch_setup): New function.
12068 (the_low_target): Install arm_arch_setup instead of
12069 init_registers_arm.
12070 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
12071 (init_windows_x86): Rename to ...
12072 (i386_arch_setup): ... this. Set `win32_tdesc'.
12073 (the_low_target): Adjust.
12074 * win32-low.c (win32_tdesc): New global.
12075 (child_add_thread): Don't create the thread cache here.
12076 (do_initial_child_stuff): Set the new process'es tdesc.
12077 * win32-low.h (struct target_desc): Forward declare.
12078 (win32_tdesc): Declare.
12079 * lynx-i386-low.c (tdesc_i386): Declare global.
12080 (lynx_i386_arch_setup): Set `lynx_tdesc'.
12081 * lynx-low.c (lynx_tdesc): New global.
12082 (lynx_add_process): Set the new process'es tdesc.
12083 * lynx-low.h (struct target_desc): Forward declare.
12084 (lynx_tdesc): Declare global.
12085 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
12086 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
12087 * nto-low.c (nto_tdesc): New global.
12088 (do_attach): Set the new process'es tdesc.
12089 * nto-low.h (struct target_desc): Forward declare.
12090 (nto_tdesc): Declare.
12091 * nto-x86-low.c (tdesc_i386): Declare.
12092 (nto_x86_arch_setup): Set `nto_tdesc'.
12094 2013-06-04 Gary Benson <gbenson@redhat.com>
12096 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
12097 to qSupported response when appropriate.
12098 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
12099 with nonzero-length annex.
12100 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
12101 arguments supplied in annex.
12103 2013-05-31 Doug Evans <dje@google.com>
12106 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
12107 64 bits in 64-cross-32 environment.
12109 2013-05-28 Pedro Alves <palves@redhat.com>
12111 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
12112 (aarch64-without-fpu.c): Delete rule.
12113 * configure.srv (aarch64*-*-linux*): Remove references to
12114 aarch64-without-fpu.o and aarch64-without-fpu.xml.
12115 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
12118 2013-05-24 Pedro Alves <palves@redhat.com>
12120 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
12121 instead of strchr/decode_address. Error if the range isn't split
12122 with a ','. Don't assume there's be a ':' in the action.
12124 2013-05-23 Yao Qi <yao@codesourcery.com>
12125 Pedro Alves <palves@redhat.com>
12127 * linux-low.c (lwp_in_step_range): New function.
12128 (linux_wait_1): If the thread was range stepping and stopped
12129 outside the stepping range, report the stop to GDB. Otherwise,
12130 continue stepping. Add range stepping debug output.
12131 (linux_set_resume_request): Copy the step range from the resume
12132 request to the lwp.
12133 (linux_supports_range_stepping): New.
12134 (linux_target_ops) <supports_range_stepping>: Set to
12135 linux_supports_range_stepping.
12136 * linux-low.h (struct linux_target_ops)
12137 <supports_range_stepping>: New field.
12138 (struct lwp_info) <step_range_start, step_range_end>: New fields.
12139 * linux-x86-low.c (x86_supports_range_stepping): New.
12140 (the_low_target) <supports_range_stepping>: Set to
12141 x86_supports_range_stepping.
12142 * server.c (handle_v_cont): Handle 'r' action.
12143 (handle_v_requests): Append ";r" if the target supports range
12145 * target.h (struct thread_resume) <step_range_start,
12146 step_range_end>: New fields.
12147 (struct target_ops) <supports_range_stepping>:
12149 (target_supports_range_stepping): New macro.
12151 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12153 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
12154 confusion in comment.
12156 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12158 * lynx-low.c (struct process_info_private): New type.
12159 (lynx_add_process): New function.
12160 (lynx_create_inferior, lynx_attach): Replace calls to
12161 add_process by calls to lynx_add_process.
12162 (lynx_resume): If PTID is null, then try using
12163 current_process()->private->last_wait_event_ptid.
12165 (lynx_clear_inferiors): Delete. The contents of that function
12166 has been inlined in lynx_mourn;
12167 (lynx_wait_1): Save the ptid in the process's private data.
12168 (lynx_mourn): Free the process' private data. Replace call
12169 to lynx_clear_inferiors by call to clear_inferiors.
12171 2013-05-17 Yao Qi <yao@codesourcery.com>
12173 * i386-low.c (i386_length_and_rw_bits): Move the comment to
12176 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
12178 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
12179 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
12180 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
12181 PT_TEXT_END_ADDR guards. Update comments.
12182 (linux_target_op) <read_offsets>: Conditionally define to
12183 linux_read_offsets if the target is UCLIBC and if it defines
12184 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
12186 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
12187 Andrew Jenner <andrew@codesourcery.com>
12189 * Makefile.in (SFILES): Add linux-nios2-low.c.
12190 (clean): Add action to delete nios2-linux.c.
12191 (nios2-linux.c): New rule.
12192 * configure.srv: Add nios2*-*-linux*.
12193 * linux-nios2-low.c: New.
12195 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12197 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12199 2013-04-25 Hui Zhu <hui@codesourcery.com>
12202 * ax.c (ax_printf): Add fflush.
12204 2013-04-22 Tom Tromey <tromey@redhat.com>
12206 * Makefile.in (SFILES): Add filestuff.c.
12207 (OBS): Add filestuff.o.
12208 (filestuff.o): New target.
12209 * config.in, configure: Rebuild.
12210 * configure.ac: Check for fdwalk, pipe2.
12212 2013-04-17 Pedro Alves <palves@redhat.com>
12214 * configure.ac (USE_THREAD_DB): Delete variable.
12215 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12216 Don't AC_SUBST USE_THREAD_DB.
12217 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12218 * config.in, configure: Regenerate.
12220 2013-04-16 Pedro Alves <palves@redhat.com>
12222 * linux-low.h (struct lwp_info) <thread_known>: Move under
12223 the USE_THREAD_DB #ifdef.
12225 2013-04-16 Pedro Alves <palves@redhat.com>
12227 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12228 (linux-low.o): Delete rule.
12229 * linux-low.h: Always include "gdb_thread_db.h" instead of
12230 conditionally including thread_db.h.
12231 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12234 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12236 * Makefile.in (install-only): Fix make install regression.
12238 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12240 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12241 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12243 * gdbserver.1: Remove.
12245 2013-03-22 Pedro Alves <palves@redhat.com>
12247 * linux-low.c (handle_extended_wait): Don't call
12248 linux_enable_event_reporting.
12250 2013-03-15 Tony Theodore <tonyt@logyst.com>
12253 * Makefile.in (SHELL): Use @SHELL@.
12255 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12257 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12260 2013-03-13 Joel Brobecker <brobecker@adacore.com>
12262 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12263 Remove extraneous NULL element.
12265 2013-03-13 Yao Qi <yao@codesourcery.com>
12267 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12268 'V' block in trace frame.
12270 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12272 * target.h (struct target_ops): Add btrace ops.
12273 (target_supports_btrace): New macro.
12274 (target_enable_btrace): New macro.
12275 (target_disable_btrace): New macro.
12276 (target_read_btrace): New macro.
12277 * gdbthread.h (struct thread_info): Add btrace field.
12278 * server.c: Include btrace-common.h.
12279 (handle_btrace_general_set): New function.
12280 (handle_btrace_enable): New function.
12281 (handle_btrace_disable): New function.
12282 (handle_general_set): Call handle_btrace_general_set.
12283 (handle_qxfer_btrace): New function.
12284 (struct qxfer qxfer_packets[]): Add btrace entry.
12285 * inferiors.c (remove_thread): Disable btrace.
12286 * linux-low: Include linux-btrace.h.
12287 (linux_low_enable_btrace): New function.
12288 (linux_low_read_btrace): New function.
12289 (linux_target_ops): Add btrace ops.
12290 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12291 Add srv_linux_btrace=yes.
12292 (x86_64-*-linux*): Add linux-btrace.o.
12293 Add srv_linux_btrace=yes.
12294 * configure.ac: Define HAVE_LINUX_BTRACE.
12295 * config.in: Regenerated.
12296 * configure: Regenerated.
12298 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12300 * server.c (handle_qxfer): Preserve error message if -3 is
12302 (qxfer): Document the -3 return value.
12304 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12306 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12307 (linux_btrace_h): New variable.
12308 (linux-btrace.o): New rule.
12310 2013-03-08 Stan Shebs <stan@codesourcery.com>
12311 Hafiz Abid Qadeer <abidh@codesourcery.com>
12313 * tracepoint.c (trace_buffer_size): New global.
12314 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12315 (init_trace_buffer): Change to one-argument function. Allocate
12316 trace buffer memory.
12317 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12318 handle QTBuffer:size packet.
12319 (cmd_bigqtbuffer_size): New function.
12320 (initialize_tracepoint): Call init_trace_buffer with
12321 DEFAULT_TRACE_BUFFER_SIZE.
12322 * server.c (handle_query): Add QTBuffer:size in the
12325 2013-03-07 Yao Qi <yao@codesourcery.com>
12327 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12328 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12330 (cmd_qtsp): Adjust condition. Do post increment.
12331 Set cur_action and cur_step_action back to 0.
12333 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12336 * linux-low.c (linux_write_memory): Return early success if LEN is
12339 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
12341 * configure.srv: Add x86_64-*-cygwin* as target.
12343 2013-02-28 Tom Tromey <tromey@redhat.com>
12345 * configure.ac: Invoke AC_SYS_LARGEFILE.
12346 * configure, config.in: Rebuild.
12348 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
12350 * win32-low.c: Throughout, fix format strings and casts of
12351 printf-like functions to avoid type related warnings on all
12353 (get_child_debug_event): Print dwDebugEventCode as hex since
12354 that's how it's usually documented.
12356 2013-02-28 Yao Qi <yao@codesourcery.com>
12358 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12361 2013-02-27 Jiong Wang <jiwang@tilera.com>
12363 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12364 (reg-tilegx32.c): New rule.
12365 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12366 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12367 different register info initializer according to elf class.
12368 (init_registers_tilgx32): New function. The tilegx32 register info
12370 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12371 (tile_store_gregset): Likewise.
12373 2013-02-27 Yao Qi <yao@codesourcery.com>
12375 * server.c (process_point_options): Print debug message when
12376 debug_threads is true.
12378 2013-02-26 Yao Qi <yao@codesourcery.com>
12380 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12382 2013-02-19 Pedro Alves <palves@redhat.com>
12383 Kai Tietz <ktietz@redhat.com>
12387 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12388 instead of strtoul to extract address from packet.
12389 (process_serial_event) <'z'>: Likewise.
12391 2013-02-18 Yao Qi <yao@codesourcery.com>
12393 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12395 2013-02-14 Pedro Alves <palves@redhat.com>
12399 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12400 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12402 2013-02-14 Pedro Alves <palves@redhat.com>
12404 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12406 2013-02-14 Pedro Alves <palves@redhat.com>
12408 * tracepoint.c (save_string): Delete.
12409 (add_tracepoint_action): Use savestring instead of save_string.
12411 2013-02-12 Pedro Alves <palves@redhat.com>
12413 * linux-xtensa-low.c: Ditto.
12414 * xtensa-xtregs.c: Ditto.
12416 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12418 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12421 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12423 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12424 aarch64_num_wp_regs and aarch64_num_bp_regs to
12425 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12427 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12429 * linux-aarch64-low.c (ps_get_thread_area): Replace
12430 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12432 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12433 Marcus Shawcroft <marcus.shawcroft@arm.com>
12434 Nigel Stephens <nigel.stephens@arm.com>
12435 Yufeng Zhang <yufeng.zhang@arm.com>
12437 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12438 (aarch64.c, aarch64-without-fpu.c): New targets.
12439 * configure.srv (aarch64*-*-linux*): New.
12440 * linux-aarch64-low.c: New file.
12442 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12444 * linux-low.c (handle_extended_wait, linux_create_inferior)
12445 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12446 (dequeue_one_deferred_signal, linux_resume_one_thread)
12447 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12448 (linux_tracefork_grandchild, linux_test_for_tracefork)
12449 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12450 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12451 where the argument is 0.
12453 2013-01-25 Yao Qi <yao@codesourcery.com>
12455 * event-loop.c: Include "queue.h".
12456 (gdb_event_p): New typedef.
12457 (struct gdb_event) <next_event>: Remove.
12458 (event_queue): Change to QUEUE(gdb_event_p).
12459 (async_queue_event): Remove.
12460 (gdb_event_xfree): New.
12461 (initialize_event_loop): New.
12462 (process_event): Use API from QUEUE.
12463 (wait_for_event): Likewise.
12464 * server.c (main): Call initialize_event_loop.
12465 * server.h (initialize_event_loop): Declare.
12467 2013-01-18 Yao Qi <yao@codesourcery.com>
12469 * ax.h (struct eval_agent_expr_context): New.
12470 (gdb_eval_agent_expr): Update declaration.
12471 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12472 TFRAME. Add new argument CTX.
12473 * server.h (struct eval_agent_expr_context): Declare.
12474 (agent_mem_read, agent_tsv_read): Update declaration.
12475 (agent_mem_read_string): Likewise.
12476 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12477 (add_traceframe_block): Add new argument TPOINT.
12478 Increase TPOINT->traceframe_usage.
12479 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12480 eval_tracepoint_agent_expr.
12481 (condition_true_at_tracepoint): Likewise.
12482 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12483 (agent_mem_read_string, agent_tsv_read): Likewise.
12485 2013-01-16 Yao Qi <yao@codesourcery.com>
12487 * linux-low.c (linux_resume_one_lwp): Don't check
12488 'lwp->bp_reinsert != 0'.
12490 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12491 Pedro Alves <palves@redhat.com>
12493 * lynx-low.c (ptrace_request_to_str): Define a temporary
12494 macro and use it to simplify this function's implementation.
12496 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12498 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12501 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12503 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12505 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12507 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12509 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12511 * lynx-low.c (lynx_resume): Use the resume_info parameter
12512 to determine the ptid for the lynx_ptrace call, unless
12513 it is equal to minus_one_ptid, in which case we use the
12514 ptid of the current_inferior.
12515 (lynx_wait_1): After having received a thread create/exit
12516 event, resume the inferior's execution using the signaling
12517 thread's ptid, rather than the old ptid.
12519 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12521 * lynx-low.c (lynx_resume): Delete variable ret.
12523 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12525 * gdbreplay.c (gdbreplay_version): Update copyright year.
12526 * server.c (gdbserver_version): Likewise.
12528 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12530 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12533 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12535 * lynx-low.c (ptrace_request_to_str): Add handling for
12536 PTRACE_GETTRACESIG.
12538 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12540 * lynx-low.c (lynx_attach): Delete variable new_process.
12542 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12544 * lynx-low.c (lynx_create_inferior): Delete variable
12547 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12549 * lynx-low.c (ptrace_request_to_str): Do not handle
12550 PTRACE_GETTHREADLIST if this macro does not exist.
12552 2012-12-15 Yao Qi <yao@codesourcery.com>
12554 * Makefile.in (OBS): Add notif.o.
12555 * notif.c, notif.h: New.
12556 * server.c: Include "notif.h".
12557 (struct vstop_notif) <next>: Remove.
12559 (queue_stop_reply): Update.
12560 (push_event, send_next_stop_reply): Remove.
12561 (discard_queued_stop_replies): Update.
12562 (notif_stop): New variable.
12563 (handle_v_stopped): Remove.
12564 (handle_v_requests): Don't call handle_v_stopped. Call
12565 handle_ack_notif instead.
12566 (queue_stop_reply_callback): Call notif_event_enque instead
12567 of queue_stop_reply.
12568 (handle_status): Don't call send_next_stop_reply, call
12569 notif_write_event instead.
12570 (kill_inferior_callback): Likewise.
12571 (detach_or_kill_inferior_callback): Likewise.
12572 (main): Call initialize_notif.
12573 (process_serial_event): Call QUEUE_is_empty.
12574 (handle_target_event): Call notif_push instead of push event.
12575 * server.h (push_event): Remove declaration.
12577 2012-12-10 Tom Tromey <tromey@redhat.com>
12579 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12580 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12583 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12584 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12585 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12586 (amd64-linux-ipa.o, ax.o): Rewrite.
12587 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12588 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12589 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12590 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12591 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12592 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12593 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12594 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12595 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12596 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12597 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12598 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12599 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12600 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12601 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12602 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12603 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12604 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12605 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12606 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12607 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12608 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12609 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12610 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12611 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12612 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12613 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12614 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12615 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
12616 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
12617 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
12618 (reg-tilegx.o): Remove.
12619 (all_object_files): New macro.
12620 Include .deps files.
12621 * aclocal.m4, configure: Rebuild.
12622 * acinclude.m4: Include depstand.m4, lead-dot.m4.
12623 * configure.ac: Invoke ZW_CREATE_DEPDIR,
12624 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
12626 2012-12-05 Tom Tromey <tromey@redhat.com>
12629 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12631 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
12633 * configure.ac: Check for linux/perf_event.h.
12634 * config.in: Regenerated.
12635 * configure: Regenerated.
12637 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12639 * hostio.c (handle_readlink): Decrease buffer size
12640 parameter passed to readlink by one byte.
12642 2012-11-26 Yao Qi <yao@codesourcery.com>
12644 * configure.ac (build_warnings): Append '-Wempty-body'.
12645 * configure: Regenerated.
12646 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12649 2012-11-15 Pierre Muller <muller@sourceware.org>
12651 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
12652 * config.in: Regenerate.
12653 * configure: Regenerate.
12654 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
12655 Use "gdb_wait.h" header instead of <sys/wait.h> header.
12656 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12657 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
12659 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
12660 instead of <sys/wait.h> header.
12661 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12663 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
12665 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12666 (various make rules): Remove -DGDBSERVER
12668 2012-11-09 Yao Qi <yao@codesourcery.com>
12670 * spu-low.c (current_ptid): Move it to ..
12671 * gdbthread.h: ... here. New.
12672 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
12673 * server.c (myresume, process_serial_event): Likewise.
12674 * thread-db.c (thread_db_find_new_threads): Likewise.
12675 * tracepoint.c (run_inferior_command): Likewise.
12677 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
12679 * server.c (handle_search_memory_1): Include access length in
12682 2012-09-05 Michael Brandt <michael.brandt@axis.com>
12684 * linux-crisv32-low.c: Fix compile errors.
12686 2012-09-04 Yao Qi <yao@codesourcery.com>
12688 * tracepoint.c (cmd_qtsv): Adjust debug message.
12689 Don't check CUR_TPOINT.
12691 2012-08-28 Yao Qi <yao@codesourcery.com>
12693 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
12694 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
12695 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
12696 Remove declarations of xmalloc, xreallloc, xstrdup and
12698 * Makefile.in (libiberty_h): New.
12699 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
12700 (linux-bfin-low.o): Append dependency 'libiberty.h'.
12702 2012-08-23 Yao Qi <yao@codesourcery.com>
12704 * server.h: Remove declaration of 'xsnprintf'.
12706 2012-08-22 Keith Seitz <keiths@redhat.com>
12708 * server.h: Include build-gnulib-gbserver/config.h.
12709 * gdbreplay.c: Likewise.
12711 2012-08-08 Doug Evans <dje@google.com>
12713 * Makefile.in (SFILES): Add gdb_vecs.c.
12714 (OBS): Add gdb_vecs.o.
12715 (gdb_vecs_h, host_defs_h): New variables.
12716 (thread-db.o): Add $(gdb_vecs_h) dependency.
12717 (gdb_vecs.o): New rule.
12718 * thread-db.c: #include "gdb_vecs.h".
12719 (thread_db_load_search): Use a vector to iterate over path elements.
12720 Handle text appearing after "$pdir".
12722 * configure.ac: Add check for strstr.
12723 * config.in: Regenerate.
12724 * configure: Regenerate.
12726 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12728 * hostio.c (handle_pread): If pread fails, fall back to attempting
12730 (handle_pwrite): Likewise for pwrite.
12732 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12734 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
12735 between unsupported TYPE and unimplementable ADDR/LEN combination.
12736 (arm_insert_point): Act on new return value.
12738 2012-07-31 Pedro Alves <palves@redhat.com>
12740 * server.c (process_point_options): Only skip tokens if we find
12741 one that is unrecognized. Don't treat 'X' specially while
12742 skipping unrecognized tokens.
12744 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12746 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12747 to 4-byte-align HW breakpoint addresses for Thumb.
12749 2012-07-27 Yao Qi <yao@codesourcery.com>
12753 * server.h: Declare gdb_agent_about_to_close.
12754 * target.c (kill_inferior): Include "agent.h".
12755 New. Send command 'kill'.
12756 * target.h (kill_inferior): Removed macro.
12757 * tracepoint.c (gdb_agent_about_to_close): New.
12758 (gdb_agent_helper_thread): Handle command 'close'.
12759 Wait endlessly until the inferior stops.
12760 Install gdb_agent_remove_socket to atexit hook.
12761 (agent_socket_name): New static variable.
12762 (gdb_agent_socket_init): Replace local variable 'name' with
12763 'agent_socket_name'.
12764 (gdb_agent_remove_socket): New.
12766 2012-07-27 Yao Qi <yao@codesourcery.com>
12768 * server.c (process_point_options): Stop at 'X' when parsing.
12770 2012-07-19 Michael Eager <eager@eagercon.com>
12772 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
12774 * linux-x86-low.c (x86_insert_point, x86_remove_point):
12775 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
12776 hardware breakpoint.
12778 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12780 * gdbserver/linux-low.c (initialize_low): Call
12781 linux_ptrace_init_warnings.
12783 2012-07-02 Doug Evans <dje@google.com>
12785 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12788 2012-07-02 Stan Shebs <stan@codesourcery.com>
12790 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12791 (ax.o): Add it to build rule.
12793 (OBS): Add format.o.
12794 (IPA_OBS): Add format.o.
12795 * server.c (handle_query): Claim support for breakpoint commands.
12796 (process_point_options): Add command case.
12797 (process_serial_event): Leave running if there are printfs in
12799 * mem-break.h (any_persistent_commands): Declare.
12800 (add_breakpoint_commands): Declare.
12801 (gdb_no_commands_at_breakpoint): Declare.
12802 (run_breakpoint_commands): Declare.
12803 * mem-break.c (struct point_command_list): New struct.
12804 (struct breakpoint): New field command_list.
12805 (any_persistent_commands): New function.
12806 (add_commands_to_breakpoint): New function.
12807 (add_breakpoint_commands): New function.
12808 (gdb_no_commands_at_breakpoint): New function.
12809 (run_breakpoint_commands): New function.
12810 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
12812 * ax.c: Include format.h.
12813 (ax_printf): New function.
12814 (gdb_eval_agent_expr): Add printf opcode.
12816 2012-06-13 Yao Qi <yao@codesourcery.com>
12818 * server.c (start_inferior): Remove duplicated writes to fields
12819 'last_resume_kind' and 'last_status' of 'current_inferior'.
12821 2012-06-12 Yao Qi <yao@codesourcery.com>
12822 Pedro Alves <palves@redhat.com>
12824 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12826 * server.c (handle_v_cont): Extend comment.
12828 2012-06-11 Yao Qi <yao@codesourcery.com>
12830 * linux-low.c (linux_attach): Add 'static'.
12832 2012-06-06 Yao Qi <yao@codesourcery.com>
12834 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12836 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12838 Fix gcc -flto compilation warning.
12839 * server.c (main): Make variable multi_mode and attach volatile.
12841 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12843 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12844 if the platform doesn't know about it.
12846 2012-05-30 Jeff Kenton <jkenton@tilera.com>
12848 * Makefile.in (SFILES): Add linux-tile-low.c.
12849 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
12850 * configure.srv: Handle tilegx-*-linux*.
12851 * linux-tile-low.c: New file.
12853 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12855 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12857 2012-05-24 Pedro Alves <palves@redhat.com>
12861 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
12863 2012-05-24 Pedro Alves <palves@redhat.com>
12867 Replace target_signal with gdb_signal throughout.
12869 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12871 * linux-low.c (linux_store_registers): Avoid the copying sequence
12872 when no data has been retrieved by ptrace.
12874 2012-05-22 Will Deacon <will.deacon@arm.com>
12876 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12877 Include asm/ptrace.h.
12878 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12881 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
12883 * linux-low.c (linux_store_registers): Don't re-retrieve data
12884 with ptrace that has already been obtained from /proc. Always
12885 copy any data retrieved with ptrace to the buffer supplied.
12887 2012-05-11 Yao Qi <yao@codesourcery.com>
12888 Pedro Alves <palves@redhat.com>
12890 * linux-low.c (enum stopping_threads_kind): New.
12891 (stopping_threads): Change type to `enum stopping_threads_kind'.
12892 (handle_extended_wait): If stopping and suspending threads, leave
12893 the new_lwp suspended too.
12894 (linux_wait_for_event): Adjust.
12895 (stop_all_lwps): Set `stopping_threads' to
12896 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
12897 whether we're suspending threads or just stopping them. Assert no
12900 2012-04-29 Yao Qi <yao@codesourcery.com>
12902 * server.h: Move some code to ...
12903 * gdbthread.h: ... here. New.
12904 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
12905 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
12906 (nto-low.o, win32-low.o): Likewise.
12907 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
12908 * regcache.c, remote-utils.c, server.c: Likewise.
12909 * target.c, tracepoint.c, win32-low.c: Likewise.
12911 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12913 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
12914 (PTRACE_ARG4_TYPE): Likewise.
12915 (PTRACE_XFER_TYPE): Likewise.
12916 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
12917 ptrace to PTRACE_ARG3_TYPE.
12918 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
12919 (PTRACE_ARG4_TYPE): Likewise.
12920 (PTRACE_XFER_TYPE): Likewise.
12921 (linux_detach_one_lwp): Cast fourth argument of
12922 ptrace to long then PTRACE_ARG4_TYPE.
12923 (regsets_fetch_inferior_registers): Cast third argument of
12924 ptrace to long then PTRACE_ARG3_TYPE.
12925 (regsets_store_inferior_registers): Likewise.
12927 2012-04-20 Pedro Alves <palves@redhat.com>
12929 * configure: Regenerate.
12931 2012-04-19 Pedro Alves <palves@redhat.com>
12933 * Makefile.in (GNULIB_BUILDDIR): New.
12934 (LIBGNU, INCGNU, GNULIB_H): Adjust.
12935 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
12936 (all, install-only, uninstall, clean-info, all-lib, clean): No
12937 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
12938 (maintainer-clean realclean distclean): Use subdir_do.
12940 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
12941 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
12942 * acinclude.m4: Include acx_configure_dir.m4.
12943 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
12944 calls. Call AC_PROG_RANLIB. Configure gnulib using
12947 (GNULIB_STDINT_H): Adjust.
12948 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
12949 * gdbreplay.c: Include build-gnulib/config.h.
12950 * server.h: Likewise.
12951 * aclocal.m4: Regenerate.
12952 * config.in: Regenerate.
12953 * configure: Regenerate.
12955 2012-04-19 Pedro Alves <palves@redhat.com>
12957 * Makefile.in (LIBGNU, INCGNU): Adjust.
12958 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
12959 (all, install-only, uninstall, clean-info, all-lib, clean)
12960 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
12961 * configure.ac: Adjust AC_OUTPUT output.
12962 * aclocal.m4: Regenerate.
12963 * configure: Regenerate.
12965 2012-04-19 Pedro Alves <palves@redhat.com>
12967 * Makefile.in (generated_files): New.
12968 (server_h): Remove the explicit dependency on config.h, and depend
12969 on $generated_files.
12971 2012-04-19 Pedro Alves <palves@redhat.com>
12973 * Makefile.in (INCGNU): Add -Ignulib.
12975 2012-04-19 Pedro Alves <palves@redhat.com>
12977 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
12978 (INCGNU): ... this, and spell out -I here.
12979 (GNULIB_LIB): Rename to ...
12980 (LIBGNU): ... this.
12981 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
12983 2012-04-19 Pedro Alves <palves@redhat.com>
12985 * config.in: Regenerate.
12987 2012-04-19 Pedro Alves <palves@redhat.com>
12989 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
12990 * server.h (memmem): Remove declaration.
12991 * config.in: Regenerate.
12992 * configure: Regenerate.
12994 2012-04-19 Yao Qi <yao@codesourcery.com>
12996 * Makefile.in (SFILES): Add common/vec.c.
13000 2012-04-19 Yao Qi <yao@codesourcery.com>
13002 * remote-utils.c (prepare_resume_reply): Replace with macro
13003 target_core_of_thread.
13004 * server.c (handle_qxfer_threads_proper): Likewise.
13005 * target.h (traget_core_of_thread): New macro.
13007 2012-04-18 Pedro Alves <palves@redhat.com>
13009 * aclocal.m4: Regenerate.
13010 * configure: Regenerate.
13012 2012-04-16 Yao Qi <yao@codesourcery.com>
13014 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
13015 duplicated on address.
13017 2012-04-16 Yao Qi <yao@codesourcery.com>
13019 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
13020 (struct tracepoint_action_ops) <send>: New field.
13021 (m_tracepoint_action_send, r_tracepoint_action_send): New.
13022 (agent_expr_send, x_tracepoint_action_send): New.
13023 (l_tracepoint_action_send): New.
13024 (cmd_qtdp): Download and install tracepoint
13025 according to `use_agent'.
13026 (run_inferior_command): Add one more parameter `len'.
13028 (tracepoint_send_agent): New.
13029 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
13031 2012-04-16 Yao Qi <yao@codesourcery.com>
13033 * tracepoint.c (download_tracepoints): Moved to ...
13034 (cmd_qtstart): ... here.
13036 2012-04-14 Yao Qi <yao@codesourcery.com>
13038 * tracepoint.c: Include inttypes.h.
13039 (struct collect_memory_action): Use sized types.
13040 (struct tracepoint): Likewise.
13041 (cmd_qtdp, stop_tracing): Update print specifiers.
13042 (cmd_qtp, response_tracepoint): Likewise.
13043 (collect_data_at_tracepoint): Likewise.
13044 (collect_data_at_step): Likewise.
13046 2012-04-14 Yao Qi <yao@codesourcery.com>
13048 Import gnulib module inttypes.
13049 * aclocal.m4, config.in, configure: Regenerated.
13051 2012-04-14 Yao Qi <yao@codesourcery.com>
13053 * Makefile.in (maintainer-clean, realclean, distclean): Remove
13054 Makefile and config.status at last.
13056 2012-04-13 Yao Qi <yao@codesourcery.com>
13058 * tracepoint.c: Include stdint.h unconditionally.
13060 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13062 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
13063 on BFD_HAVE_SYS_PROCFS_TYPE.
13064 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
13065 * configure: Regenerate.
13066 * config.in: Likewise.
13068 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
13070 * Makefile.in (clean): Also remove x32.c x32-linux.c
13071 x32-avx.c x32-avx-linux.c.
13072 (x32.o): New target.
13074 (x32-linux.o): Likewise.
13075 (x32-linux.c): Likewise.
13076 (x32-avx.o): Likewise.
13077 (x32-avx.c): Likewise.
13078 (x32-avx-linux.o): Likewise.
13079 (x32-avx-linux.c): Likewise.
13081 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
13082 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
13083 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
13084 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
13085 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
13086 i386/x32-avx-linux.xml.
13088 * linux-x86-low.c (init_registers_x32_linux): New prototype.
13089 (init_registers_x32_avx_linux): Likwise.
13090 (x86_linux_update_xmltarget): Call init_registers_x32_linux
13091 or init_registers_x32_avx_linux if linux_is_elf64 is false.
13093 2012-04-13 Pedro Alves <palves@redhat.com>
13095 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
13096 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
13097 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
13098 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
13101 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13103 * linux-x86-low.c (compat_x32_clock_t): New.
13104 (compat_x32_siginfo_t): Likewise.
13105 (compat_x32_siginfo_from_siginfo): Likewise.
13106 (siginfo_from_compat_x32_siginfo): Likewise.
13107 (linux_is_elf64): Likewise.
13108 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
13109 and siginfo_from_compat_x32_siginfo for x32.
13110 (x86_arch_setup): Set linux_is_elf64.
13112 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13115 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
13117 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
13118 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
13119 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
13120 compatible with process.
13122 2012-04-12 Yao Qi <yao@codesourcery.com>
13124 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
13125 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
13126 (install-only, install-info, clean): Handle sub dir gnulib.
13127 (all-lib, am--refresh): New targets.
13128 (memmem.o): Remove target.
13129 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
13130 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
13131 (AC_REPLACE_FUNCS): Remove memmem.
13132 Invoke gl_INIT and AM_INIT_AUTOMAKE.
13133 (AC_OUTPUT): Generate Makefile in gnulib/.
13134 * aclocal.m4, config.in, configure: Regenerated.
13136 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
13138 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
13140 2012-04-05 Pedro Alves <palves@redhat.com>
13142 -Werror=strict-aliasing
13144 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
13147 2012-04-04 Pedro Alves <palves@redhat.com>
13149 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
13150 (sparc_store_gregset_from_stack, sparc_store_gregset)
13151 (sparc_breakpoint_at): Fix formatting.
13153 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13155 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
13157 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
13158 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
13159 * config.in: Regenerate.
13160 * configure: Likewise.
13162 2012-03-29 Pedro Alves <palves@redhat.com>
13164 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
13165 Correct ptrace arguments.
13167 2012-03-28 Pedro Alves <palves@redhat.com>
13169 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
13170 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
13171 (IA64_FR1_REGNUM): New defines.
13172 (ia64_fetch_register): New.
13173 (the_low_target): Install it.
13174 * linux-low.h (struct linux_target_ops) <fetch_register>: New
13176 * linux-low.c (linux_fetch_registers): Try the
13177 the_low_target.fetch_register hook first.
13179 * linux-arm-low.c (the_low_target): Adjust.
13180 * linux-bfin-low.c (the_low_target): Adjust.
13181 * linux-cris-low.c (the_low_target): Adjust.
13182 * linux-crisv32-low.c (the_low_target): Adjust.
13183 * linux-m32r-low.c (the_low_target): Adjust.
13184 * linux-m68k-low.c (the_low_target): Adjust.
13185 * linux-mips-low.c (the_low_target): Adjust.
13186 * linux-ppc-low.c (the_low_target): Adjust.
13187 * linux-s390-low.c (the_low_target): Adjust.
13188 * linux-sh-low.c (the_low_target): Adjust.
13189 * linux-sparc-low.c (the_low_target): Adjust.
13190 * linux-tic6x-low.c (the_low_target): Adjust.
13191 * linux-x86-low.c (the_low_target): Adjust.
13192 * linux-xtensa-low.c (the_low_target): Adjust.
13194 2012-03-26 Pedro Alves <palves@redhat.com>
13196 * server.c (handle_qxfer_libraries): Don't bail early if
13197 the_target->qxfer_libraries_svr4 is not NULL.
13199 2012-03-26 Pedro Alves <palves@redhat.com>
13201 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13203 2012-03-23 Pedro Alves <palves@redhat.com>
13205 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13206 "library-list-svr4" element's start tag when the the DSO list is
13209 2012-03-23 Pedro Alves <palves@redhat.com>
13211 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13212 a variable whose type size is the same as the inferior's pointer
13215 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13217 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13219 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13220 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13221 * linux-low.h: Include <signal.h>.
13222 (struct siginfo): Remove forward declaration.
13223 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13226 2012-03-21 Mike Frysinger <vapier@gentoo.org>
13228 * .gitignore: Ignore more files.
13230 2012-03-19 Pedro Alves <palves@redhat.com>
13231 Jan Kratochvil <jan.kratochvil@redhat.com>
13233 * server.c (cont_thread, general_thread): Add describing comments.
13234 (start_inferior): Clear `cont_thread'.
13235 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13238 2012-03-15 Yao Qi <yao@codesourcery.com>
13240 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13242 (cmd_qtdp): ... here.
13244 2012-03-15 Yao Qi <yao@codesourcery.com>
13246 * tracepoint.c (struct tracepoint_action_ops): New.
13247 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13248 (m_tracepoint_action_download): New.
13249 (r_tracepoint_action_download): New.
13250 (x_tracepoint_action_download): New.
13251 (l_tracepoint_action_download): New.
13252 (add_tracepoint_action): Install `action->ops' according type.
13253 (download_tracepoint_1): Move code `download' function pointer
13254 of various tracepoint_action_ops.
13256 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13258 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13259 linux_ptrace_attach_warnings.
13261 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13263 * Makefile.in (linux-ptrace.o): New.
13264 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13265 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13266 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13267 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13268 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13270 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13272 2012-03-08 Yao Qi <yao@codesourcery.com>
13273 Pedro Alves <palves@redhat.com>
13275 Fix PR server/13392.
13276 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13277 offset of JMP insn.
13278 * tracepoint.c (remove_tracepoint): New.
13279 (cmd_qtdp): Call remove_tracepoint when failed to install.
13281 2012-03-07 Pedro Alves <palves@redhat.com>
13283 * linux-low.c (get_detach_signal): New.
13284 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13285 Pass on pending signals to PTRACE_DETACH. Check the result of the
13287 * server.c (program_signals, program_signals_p): New.
13288 (handle_general_set): Handle QProgramSignals.
13289 * server.h (program_signals, program_signals_p): Declare.
13291 2012-03-05 Pedro Alves <palves@redhat.com>
13292 Jan Kratochvil <jan.kratochvil@redhat.com>
13294 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13297 2012-03-03 Yao Qi <yao@codesourcery.com>
13299 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13300 agent_look_up_symbols.
13302 2012-03-03 Yao Qi <yao@codesourcery.com>
13304 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13305 (linux-x86-low.o): Likewise.
13306 * server.h: Remove in_process_agent_loaded.
13307 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13311 2012-03-03 Yao Qi <yao@codesourcery.com>
13313 * tracepoint.c (gdb_agent_capability): New global.
13314 (in_process_agent_loaded_ust): Renamed to
13315 `in_process_agent_supports_ust'.
13317 (in_process_agent_supports_ust): Call agent_capability_check.
13318 (clear_installed_tracepoints): Assert that agent supports
13321 2012-03-03 Yao Qi <yao@codesourcery.com>
13323 * linux-low.c (linux_supports_agent): New.
13324 (linux_target_ops): Initialize field `supports_agent' with
13325 linux_supports_agent.
13326 * target.h (struct target_ops) <supports_agent>: New.
13327 (target_supports_agent): New macro.
13328 * server.c (handle_general_set): Handle packet 'QAgent'.
13329 (handle_query): Send `QAgent+'.
13330 * Makefile.in (server.o): Depends on agent.h.
13332 2012-03-03 Yao Qi <yao@codesourcery.com>
13334 * Makefile.in (OBS): Add agent.o.
13335 Add new rule for agent.o.
13336 Track dependence of tracepoint.c on agent.h.
13337 * tracepoint.c (run_inferior_command_1):
13338 (run_inferior_command): Call agent_run_command.
13339 (gdb_ust_connect_sync_socket): Deleted. Move it to
13341 (resume_thread, stop_thread): Likewise.
13342 (gdb_ust_socket_init): Renamed to ...
13343 (gdb_agent_socket_init): ... New.
13344 (gdb_ust_thread): Renamed to ...
13345 (gdb_agent_helper_thread): ... New.
13346 (gdb_ust_init): Move some code to ...
13347 (gdb_agent_init): ... here. New.
13348 [HAVE_UST]: Call gdb_ust_init.
13349 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13350 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13351 * config.in, configure: Regenerated.
13353 2012-03-02 Pedro Alves <palves@redhat.com>
13355 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13356 * linux-low.c (struct simple_pid_list): New.
13357 (stopped_pids): New a struct simple_pid_list pointer.
13358 (add_to_pid_list, pull_pid_from_list): New.
13359 (handle_extended_wait): Don't assume the first signal new children
13360 report is SIGSTOP. Adjust call to pull_pid_from_list.
13361 (linux_wait_for_lwp): Adjust.
13363 2012-03-02 Yao Qi <yao@codesourcery.com>
13365 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13368 2012-03-02 Yao Qi <yao@codesourcery.com>
13370 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13371 `stop_pc' and `tpoint'. Update caller.
13373 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13375 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13376 * linux-low.c (use_linux_regsets): New macro.
13377 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13378 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13379 (linux_register_in_regsets): New function.
13380 (usr_fetch_inferior_registers): Skip registers covered by
13382 (usr_store_inferior_registers): Likewise.
13383 (usr_fetch_inferior_registers): New macro.
13384 (usr_store_inferior_registers): Likewise.
13385 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13386 (linux_store_registers): Likewise.
13387 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13389 (init_registers_mips64_dsp_linux): Likewise.
13390 (init_registers_mips_linux): New macro.
13391 (init_registers_mips_dsp_linux): Likewise.
13392 (mips_dsp_num_regs): Likewise.
13393 (DSP_BASE, DSP_CONTROL): New fallback macros.
13394 (mips_base_regs): New macro.
13395 (mips_regmap): Use it. Fix the size.
13396 (mips_dsp_regmap): New variable.
13397 (mips_dsp_regset_bitmap): Likewise.
13398 (mips_arch_setup): New function.
13399 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13401 (mips_cannot_store_register): Likewise.
13402 (the_low_target): Update .arch_setup, .num_regs and .regmap
13403 initializers. Add .regset_bitmap initializer.
13404 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13406 * linux-bfin-low.c (the_low_target): Likewise.
13407 * linux-cris-low.c (the_low_target): Likewise.
13408 * linux-crisv32-low.c (the_low_target): Likewise.
13409 * linux-ia64-low.c (the_low_target): Likewise.
13410 * linux-m32r-low.c (the_low_target): Likewise.
13411 * linux-m68k-low.c (the_low_target): Likewise.
13412 * linux-ppc-low.c (the_low_target): Likewise.
13413 * linux-s390-low.c (the_low_target): Likewise.
13414 * linux-sh-low.c (the_low_target): Likewise.
13415 * linux-sparc-low.c (the_low_target): Likewise.
13416 * linux-tic6x-low.c (the_low_target): Likewise.
13417 * linux-x86-low.c (the_low_target): Likewise.
13418 * linux-xtensa-low.c (the_low_target): Likewise.
13419 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13420 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13421 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13423 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13424 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13426 2012-02-29 Yao Qi <yao@codesourcery.com>
13427 Pedro Alves <palves@redhat.com>
13429 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13430 `step_over_finished' is true.
13432 2012-02-27 Pedro Alves <palves@redhat.com>
13434 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13435 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13437 2012-02-27 Pedro Alves <palves@redhat.com>
13440 * linux-low.c (pid_is_stopped): New.
13441 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13443 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
13445 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13448 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13450 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13452 2012-02-24 Luis Machado <lgustavo@codesourcery>
13454 * server.c (handle_query): Advertise support for target-side
13455 breakpoint condition evaluation.
13456 (process_point_options): New function.
13457 (process_serial_event): When inserting a breakpoint, check for
13458 a target-side condition that should be evaluated.
13460 * mem-break.c: Include regcache.h and ax.h.
13461 (point_cond_list_t): New data structure.
13462 (breakpoint) <cond_list>: New field.
13463 (find_gdb_breakpoint_at): Make non-static.
13464 (delete_gdb_breakpoint_at): Clear any target-side
13466 (clear_gdb_breakpoint_conditions): New function.
13467 (add_condition_to_breakpoint): Likewise.
13468 (add_breakpoint_condition): Likewise.
13469 (gdb_condition_true_at_breakpoint): Likewise.
13470 (gdb_breakpoint_here): Return result directly instead
13471 of going through a local variable.
13473 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13474 (clear_gdb_breakpoint_conditions): Likewise.
13475 (add_breakpoint_condition): Likewise.
13476 (gdb_condition_true_at_breakpoint): Likewise.
13478 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13479 (need_step_over_p): Take target-side breakpoint condition into
13482 2012-02-24 Luis Machado <lgustavo@codesourcery>
13484 * server.h: Include tracepoint.h.
13485 (agent_mem_read, agent_get_trace_state_variable_value,
13486 agent_set_trace_state_variable_value,
13487 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13488 get_set_tsv_func_addr): New prototypes.
13490 * ax.h: New include file.
13491 * ax.c: New source file.
13493 * tracepoint.c: Include ax.h.
13494 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13495 agent_expr, eval_result_type): Move to ax.h.
13496 (parse_agent_expr): Rename to ...
13497 (gdb_parse_agent_expr): ... this, make it non-static and move
13499 (unparse_agent_expr) Rename to ...
13500 (gdb_unparse_agent_expr): ... this, make it non-static and move
13502 (eval_agent_expr): Rename to ...
13503 (eval_tracepoint_agent_expr): ... this.
13504 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13505 forward declarations.
13506 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13507 (agent_get_trace_state_variable_value): New function.
13508 (agent_set_trace_state_variable_value): New function.
13509 (cmd_qtdp): Call gdb_parse_agent_expr (...).
13510 (response_tracepoint): Call gdb_unparse_agent_expr (...).
13511 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
13512 (condition_true_at_tracepoint): Likewise.
13513 (parse_agent_expr): Rename to ...
13514 (gdb_parse_agent_expr): ... this and move to ax.c.
13515 (unparse_agent_expr): Rename to ...
13516 (gdb_unparse_agent_expr): ... this and move to ax.c.
13517 (gdb_agent_op_name): Move to ax.c.
13518 (eval_agent_expr): Rename to ...
13519 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13521 (eval_tracepoint_agent_expr): New function.
13522 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
13524 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13526 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13527 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13528 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13529 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13530 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13531 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13532 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13533 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13534 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13535 (compile_bytecodes): Remove forward declaration.
13536 (is_goto_target): Move to ax.c.
13537 (compile_bytecodes): Move to ax.c and call
13538 agent_get_trace_state_variable_value (...) and
13539 agent_set_trace_state_variable_value (...).
13541 * Makefile.in: Update ax.c and IPA dependencies.
13543 2012-02-24 Pedro Alves <palves@redhat.com>
13545 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13546 (cmd_bigqtbuffer_circular): ... this. Only handle
13547 'QTBuffer:circular:'.
13548 (handle_tracepoint_general_set): Adjust.
13550 2012-02-16 Yao Qi <yao@codesourcery.com>
13552 * inferiors.c: Move code to ...
13553 * dll.c: .... here. New.
13554 * server.h: Declare clear_dlls.
13555 * Makefile.in (SFILES): Add dll.c.
13559 2012-02-11 Yao Qi <yao@codesourcery.com>
13561 * server.c: (handle_monitor_command): Add a new parameter
13563 (handle_query): Update caller.
13565 2012-02-09 Joel Brobecker <brobecker@adacore.com>
13567 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13568 * configure, config.in: Regenerate.
13569 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13572 2012-02-02 Pedro Alves <palves@redhat.com>
13574 Try SIGKILL first, then PTRACE_KILL.
13575 * linux-low.c (linux_kill_one_lwp): New.
13576 (linux_kill_one_lwp): Rename to ...
13577 (kill_one_lwp_callback): ... this. Use the new
13578 linux_kill_one_lwp.
13580 2012-02-02 Pedro Alves <palves@redhat.com>
13582 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13585 2012-01-27 Pedro Alves <palves@redhat.com>
13587 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13588 (elf_64_file_p): Make static.
13589 (linux_pid_exe_is_elf_64_file): New.
13590 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13591 Delete declarations.
13592 (linux_pid_exe_is_elf_64_file): Declare.
13593 * linux-x86-low.c (x86_arch_setup): Use
13594 linux_pid_exe_is_elf_64_file.
13596 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13598 * linux-low.c (linux_wait_for_event_1): Rename to ...
13599 (linux_wait_for_event): ... here and merge it with former
13600 linux_wait_for_event - new variable wait_ptid, use it.
13601 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13603 2012-01-23 Pedro Alves <palves@redhat.com>
13605 * server.c (main): Avoid yet another case of infinite loop while
13606 detaching/killing after a longjmp.
13608 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13611 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13613 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13615 * hostio.c (handle_readlink): New function.
13616 (handle_vFile): Call it to handle "vFile:readlink" packets.
13618 2012-01-20 Pedro Alves <palves@redhat.com>
13619 Ulrich Weigand <ulrich.weigand@linaro.org>
13621 * server.c (handle_v_requests): Only support vAttach and vRun to
13622 start multiple processes when in extended protocol mode.
13624 2012-01-17 Pedro Alves <palves@redhat.com>
13626 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13627 memalign plus mprotect to allocate the scratch buffer.
13629 2012-01-13 Pedro Alves <palves@redhat.com>
13631 * server.c (attach_inferior): Clear `cont_thread'.
13633 2012-01-13 Pedro Alves <palves@redhat.com>
13635 * server.c (main): Avoid infinite loop while detaching/killing
13638 2012-01-09 Doug Evans <dje@google.com>
13640 * server.c (start_inferior): Set last_ptid in --wrapper case.
13642 2012-01-06 Yao Qi <yao@codesourcery.com>
13644 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13646 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13648 2012-01-04 Yao Qi <yao@codesourcery.com>
13650 * tracepoint.c (cmd_qtdp): Print debug message
13651 for static tracepoint.
13653 2012-01-04 Yao Qi <yao@codesourcery.com>
13655 * tracepoint.c (trace_vdebug): Differentiate debug message
13656 between gdbserver and IPA.
13658 2012-01-03 Yao Qi <yao@codesourcery.com>
13660 * tracepoint.c (tracepoint_was_hit): Don't collect for
13663 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13665 * terminal.h: Reformat copyright header.
13667 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13669 * server.c (gdbserver_version): Update copyright year.
13670 * gdbreplay.c (gdbreplay_version): Likewise.
13672 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13674 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13677 2011-12-18 Hui Zhu <teawater@gmail.com>
13678 * linux-low.c (linux_create_inferior): Save return value to ret.
13680 2011-12-18 Hui Zhu <teawater@gmail.com>
13682 * linux-low.c (linux_create_inferior): Save return value to ret.
13684 2011-12-16 Doug Evans <dje@google.com>
13686 * linux-low.c (linux_create_inferior): If stdio connection,
13687 redirect stdin from /dev/null, stdout to stderr.
13688 * remote-utils.c (remote_is_stdio): New static global.
13689 (remote_connection_is_stdio): New function.
13690 (remote_prepare): Handle stdio connection.
13691 (remote_open): Ditto.
13692 (remote_close): Don't close stdin for stdio connections.
13693 (read_prim,write_prim): New functions. Replace all calls to
13694 read/write to these.
13695 * server.c (main): Watch for "-" argument. Move call to
13696 remote_prepare before start_inferior.
13697 * server.h (STDIO_CONNECTION_NAME): New macro.
13698 (remote_connection_is_stdio): Declare.
13700 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13701 in debugging output.
13703 2011-12-15 Yao Qi <yao@codesourcery.com>
13705 * tracepoint.c: Include sys/syscall.h.
13706 (gdb_ust_thread): Remove preprocessor conditional.
13708 2011-12-14 Pedro Alves <pedro@codesourcery.com>
13710 * linux-low.c (linux_detach_one_lwp): Call
13711 the_low_target.prepare_to_resume before detaching.
13713 2011-12-14 Yao Qi <yao@codesourcery.com>
13715 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13718 2011-12-14 Yao Qi <yao@codesourcery.com>
13720 * i386-low.c (i386_low_stopped_data_address): Initialize local
13721 variable `control'.
13723 2011-12-13 Pedro Alves <pedro@codesourcery.com>
13727 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
13728 DR_CONTROL unless necessary. Extend comments.
13729 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
13730 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
13732 2011-12-13 Yao Qi <yao@codesourcery.com>
13734 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13736 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13738 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13740 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13741 Print new debug message for such case.
13743 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13745 Fix overlapping memcpy.
13746 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
13747 the read_inferior_memory transfer.
13748 (delete_fast_tracepoint_jump): New variable buf. Use it for the
13749 write_inferior_memory transfer.
13750 (set_fast_tracepoint_jump): New variable buf. Use it for the
13751 read_inferior_memory and write_inferior_memory transfers.
13752 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
13753 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
13754 Use it for the write_inferior_memory transfer.
13755 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
13758 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13760 * linux-low.c (fetch_register, store_register): Make code
13761 consistent, fix formatting.
13763 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13765 * linux-low.c (usr_store_inferior_registers): Factor out code
13766 to handle individual registers into...
13767 (store_register): ... this new function.
13769 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13771 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
13772 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
13773 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
13774 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
13775 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
13776 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
13777 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
13778 (srv_xmlfiles): Add new XML files.
13780 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13782 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
13783 (init_registers_s390_linux32v1): Add prototype.
13784 (init_registers_s390_linux32v2): Likewise.
13785 (init_registers_s390_linux64v1): Likewise.
13786 (init_registers_s390_linux64v2): Likewise.
13787 (init_registers_s390x_linux64v1): Likewise.
13788 (init_registers_s390x_linux64v2): Likewise.
13789 (s390_num_regs): Increment to 52.
13790 (s390_regmap): Add orig_r2 register.
13791 (s390_num_regs_3264): Increment to 68.
13792 (s390_regmap_3264): Add orig_r2 register.
13793 (s390_collect_ptrace_register): Handle orig_r2 register.
13794 (s390_supply_ptrace_register): Likewise.
13795 (s390_fill_last_break): New function.
13796 (s390_store_last_break): Likewise.
13797 (s390_fill_system_call): New function.
13798 (s390_store_system_call): Likewise.
13799 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
13801 (s390_check_regset): New function.
13802 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
13803 NT_S390_SYSTEM_CALL regsets and use appropriate description.
13804 Update target_regsets for available register sets.
13806 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13807 Jan Kratochvil <jan.kratochvil@redhat.com>
13809 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
13810 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
13812 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
13813 * linux-low.h (struct process_info_private): New member r_debug.
13814 * server.c (handle_qxfer_libraries): Call
13815 the_target->qxfer_libraries_svr4.
13816 (handle_qxfer_libraries_svr4): New function.
13817 (qxfer_packets): New entry "libraries-svr4".
13818 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
13819 * target.h (struct target_ops): New member qxfer_libraries_svr4.
13820 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
13821 PACKET_qXfer_libraries_svr4.
13823 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13825 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
13826 PSW address/mask between 8-byte and 16-byte formats.
13827 (s390_supply_ptrace_register): Likewise.
13828 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
13829 basic addressing mode bit.
13831 2011-11-24 Stan Shebs <stan@codesourcery.com>
13833 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13835 2011-11-17 Stan Shebs <stan@codesourcery.com>
13837 * tracepoint.c (struct tracepoint): New field traceframe_usage.
13838 (tracing_start_time): New global.
13839 (tracing_stop_time): New global.
13840 (tracing_user_name): New global.
13841 (tracing_notes): New global.
13842 (tracing_stop_note): New global.
13843 (cmd_qtstart): Set traceframe_usage, start_time.
13844 (stop_tracing): Set stop_time.
13845 (cmd_qtstatus): Report additional status.
13846 (cmd_qtp): New function.
13847 (handle_tracepoint_query): Call it.
13848 (cmd_qtnotes): New function.
13849 (handle_tracepoint_general_set): Call it.
13850 (get_timestamp): Rename from tsv_get_timestamp.
13852 2011-11-14 Stan Shebs <stan@codesourcery.com>
13853 Kwok Cheung Yeung <kcy@codesourcery.com>
13855 * linux-x86-low.c (small_jump_insn): New.
13856 (i386_install_fast_tracepoint_jump_pad): Add arguments for
13857 trampoline and error message, build a trampoline and issue a small
13858 jump instruction to it.
13859 (x86_install_fast_tracepoint_jump_pad): Add arguments for
13860 trampoline and error message.
13861 (x86_get_min_fast_tracepoint_insn_len): New.
13862 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
13863 * linux-low.h (struct linux_target_ops): Add arguments to
13864 install_fast_tracepoint_jump_pad operation, add new operation.
13865 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13867 (linux_get_min_fast_tracepoint_insn_len): New function.
13868 (linux_target_op): Add new operation.
13869 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13870 (gdb_trampoline_buffer_end): Ditto.
13871 (gdb_trampoline_buffer_error): Ditto.
13872 (struct ipa_sym_addresses): Add fields for new IPA variables.
13873 (symbol_list): Add entries for new IPA variables.
13874 (struct tracepoint): Add fields to hold the address range of the
13875 trampoline used by the tracepoint.
13876 (trampoline_buffer_head): New static variable.
13877 (trampoline_buffer_tail): Ditto.
13878 (claim_trampoline_space): New function.
13879 (have_fast_tracepoint_trampoline_buffer): New function.
13880 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
13882 (install_fast_tracepoint): Ditto, also add error buffer argument.
13883 (cmd_qtminftpilen): New function.
13884 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
13885 (fast_tracepoint_from_trampoline_address): New function.
13886 (fast_tracepoint_collecting): Handle trampoline as part of jump
13888 (set_trampoline_buffer_space): New function.
13889 (initialize_tracepoint): Initialize new IPA variables.
13890 * target.h (struct target_ops): Add arguments to
13891 install_fast_tracepoint_jump_pad operation, add new
13892 get_min_fast_tracepoint_insn_len operation.
13893 (target_get_min_fast_tracepoint_insn_len): New.
13894 (install_fast_tracepoint_jump_pad): Add arguments.
13895 * server.h (IPA_BUFSIZ): Define.
13896 * linux-i386-ipa.c: Include extra header files.
13897 (initialize_fast_tracepoint_trampoline_buffer): New function.
13898 (initialize_low_tracepoint): Call it.
13899 * server.h (set_trampoline_buffer_space): Declare.
13900 (claim_trampoline_space): Ditto.
13901 (have_fast_tracepoint_trampoline_buffer): Ditto.
13903 2011-11-14 Yao Qi <yao@codesourcery.com>
13905 * server.c (handle_query): Handle InstallInTrace for qSupported.
13906 * tracepoint.c (add_tracepoint): Sort list.
13907 (install_tracepoint, download_tracepoint): New.
13908 (cmd_qtdp): Call them to install and download tracepoints.
13909 (sort_tracepoints): Removed.
13910 (cmd_qtstart): Update.
13912 2011-11-14 Yao Qi <yao@codesourcery.com>
13914 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
13915 * mem-break.h: Declare.
13916 * tracepoint.c (cmd_qtstart): Move some code to ...
13917 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
13919 (download_tracepoints): Move some code to ...
13920 (download_tracepoint_1): ... here. New.
13922 2011-11-08 Yao Qi <yao@codesourcery.com>
13924 * remote-utils.c (relocate_instruction): A comment fix.
13926 2011-11-07 Joel Brobecker <brobecker@adacore.com>
13928 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
13929 (i386_dr_low_get_control, i386_dr_low_get_status): Use
13930 dr_status_mirror and dr_control_mirror from debug_reg_state.
13931 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
13932 (i386_initial_stuff): Remove use of deleted globals.
13933 (i386_get_thread_context, i386_set_thread_context,
13934 i386_thread_added): Use dr_status_mirror and dr_control_mirror
13935 from debug_reg_state.
13937 2011-11-05 Yao Qi <yao@codesourcery.com>
13939 * tracepoint.c (gdb_collect): Loop over tracepoints of same
13940 address as TPOINT's.
13942 2011-11-02 Stan Shebs <stan@codesourcery.com>
13944 * tracepoint.c (agent_mem_read_string): New function.
13945 (eval_agent_expr): Call it for tracenz.
13946 * server.c (handle_query): Report support for tracenz.
13948 2011-11-02 Yao Qi <yao@codesourcery.com>
13950 * tracepoint.c (cmd_qtstart): Remove unused local variables.
13952 2011-11-02 Yao Qi <yao@codesourcery.com>
13954 * target.h: Fix a typo in comment.
13956 2011-10-31 Pedro Alves <pedro@codesourcery.com>
13958 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
13959 clobber the breakpoints' shadows with fast tracepoint jumps.
13960 * mem-break.h (check_mem_write): Add `myaddr' parameter.
13961 * target.c (write_inferior_memory): Also pass MYADDR down to
13964 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
13966 * configure.ac: Check support for personality routine.
13967 * configure: Regenerate.
13968 * config.in: Likewise.
13969 * linux-low.c: Include <sys/personality.h>.
13970 Define ADDR_NO_RANDOMIZE if necessary.
13971 (linux_create_inferior): Disable address space randomization when
13972 forking inferior, if requested.
13973 (linux_supports_disable_randomization): New function.
13974 (linux_target_ops): Install it.
13975 * server.h (disable_randomization): Declare.
13976 * server.c (disable_randomization): New global variable.
13977 (handle_general_set): Handle QDisableRandomization.
13978 (handle_query): Likewise for qSupported.
13979 (main): Support --disable-randomization and --no-disable-randomization
13980 command line arguments.
13981 * target.h (struct target_ops): Add supports_disable_randomization.
13982 (target_supports_disable_randomization): New macro.
13984 2011-09-29 Mike Frysinger <vapier@gentoo.org>
13986 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
13988 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
13989 [!PT_GETDSBT] (target_loadmap): New definition.
13990 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
13991 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
13992 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
13993 and PT_GETDSBT to LINUX_LOADMAP.
13994 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
13995 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
13997 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
13999 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
14000 (arm_linux_hwbp_cap): New static variable.
14001 (arm_linux_get_hwbp_cap): Replace by ...
14002 (arm_linux_init_hwbp_cap): ... this new function.
14003 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
14004 (arm_linux_get_hw_watchpoint_count): Likewise.
14005 (arm_linux_get_hw_watchpoint_max_length): Likewise.
14006 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
14007 (arm_prepare_to_resume): Use perror_with_name instead of error.
14009 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
14011 * linux-arm-low.c: Include <signal.h>.
14012 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
14013 (struct arm_linux_hwbp_cap): New data type.
14014 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
14015 (struct arm_linux_hw_breakpoint): New data type.
14016 (MAX_BPTS, MAX_WPTS): Define.
14017 (struct arch_process_info, struct arch_lwp_info): New data types.
14018 (arm_linux_get_hwbp_cap): New function.
14019 (arm_linux_get_hw_breakpoint_count): Likewise.
14020 (arm_linux_get_hw_watchpoint_count): Likewise.
14021 (arm_linux_get_hw_watchpoint_max_length): Likewise.
14022 (arm_hwbp_control_initialize): Likewise.
14023 (arm_hwbp_control_is_enabled): Likewise.
14024 (arm_hwbp_control_is_initialized): Likewise.
14025 (arm_hwbp_control_disable): Likewise.
14026 (arm_linux_hw_breakpoint_equal): Likewise.
14027 (arm_linux_hw_point_initialize): Likewise.
14028 (struct update_registers_data): New data structure.
14029 (update_registers_callback: New function.
14030 (arm_insert_point): Likewise.
14031 (arm_remove_point): Likewise.
14032 (arm_stopped_by_watchpoint): Likewise.
14033 (arm_stopped_data_address): Likewise.
14034 (arm_new_process): Likewise.
14035 (arm_new_thread): Likewise.
14036 (arm_prepare_to_resume): Likewise.
14037 (the_low_target): Register arm_insert_point, arm_remove_point,
14038 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
14039 arm_new_thread, and arm_prepare_to_resume.
14041 2011-09-15 Stan Shebs <stan@codesourcery.com>
14043 * server.h (struct emit_ops): Add compare-goto fields.
14044 * tracepoint.c (gdb_agent_op_sizes): New table.
14045 (emit_eq_goto): New function.
14046 (emit_ne_goto): New function.
14047 (emit_lt_goto): New function.
14048 (emit_le_goto): New function.
14049 (emit_gt_goto): New function.
14050 (emit_ge_goto): New function.
14051 (is_goto_target): New function.
14052 (compile_bytecodes): Recognize special cases of compare-goto
14053 combinations and call specialized emitters for them.
14054 * linux-x86-low.c (amd64_emit_eq_goto): New function.
14055 (amd64_emit_ne_goto): New function.
14056 (amd64_emit_lt_goto): New function.
14057 (amd64_emit_le_goto): New function.
14058 (amd64_emit_gt_goto): New function.
14059 (amd64_emit_ge_goto): New function.
14060 (amd64_emit_ops): Add the new functions.
14061 (i386_emit_eq_goto): New function.
14062 (i386_emit_ne_goto): New function.
14063 (i386_emit_lt_goto): New function.
14064 (i386_emit_le_goto): New function.
14065 (i386_emit_gt_goto): New function.
14066 (i386_emit_ge_goto): New function.
14067 (i386_emit_ops): Add the new functions.
14069 2011-09-08 Stan Shebs <stan@codesourcery.com>
14071 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
14072 (i386_emit_epilogue): Restore %ebx.
14074 2011-08-31 Jie Zhang <jzhang918@gmail.com>
14076 * server.c (step_thread): Remove definition.
14077 (process_serial_event): Don't handle Hs.
14078 * server.h (step_thread): Remove declaration.
14079 * target.c (set_desired_inferior): Remove use of step_thread.
14081 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14083 * linux-low.c: Include linux-procfs.h.
14084 (linux_attach_lwp_1): Update comments.
14085 (linux_attach): Scan for existing threads when attaching to a
14086 process that is the tgid.
14087 * Makefile.in: Update dependencies.
14089 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14091 * configure.srv: Add linux-procfs.o dependencies.
14093 2011-08-14 Yao Qi <yao@codesourcery.com>
14095 * target.h (struct target_ops): Fix indent.
14096 * win32-low.c (win32_target_ops): Fix comment.
14098 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
14099 Yao Qi <yao@codesourcery.com>
14101 * Makefile.in (clean): Remove tic6x-*.c files.
14102 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
14103 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
14104 (tic6x-c64xp-linux.c): Likewise.
14105 * configure.srv: Add support for tic6x-*-uclinux.
14106 * linux-tic6x-low.c: New.
14107 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
14109 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
14110 Yao Qi <yao@codesourcery.com>
14112 * target.h (struct target_ops): Add read_loadmap.
14113 * linux-low.c (struct target_loadseg): New type.
14114 (struct target_loadmap): New type.
14115 (linux_read_loadmap): New function.
14116 (linux_target_ops): Add linux_read_loadmap.
14117 * server.c (handle_query): Support qXfer:fdpic:read packet.
14118 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
14121 2011-08-05 Eli Zaretskii <eliz@gnu.org>
14123 * win32-low.c: Include <stdint.h>.
14125 2011-07-22 Pedro Alves <pedro@codesourcery.com>
14127 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
14128 to the inferior here.
14129 (i386_remove_aligned_watchpoint): Ditto.
14130 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
14131 fit part of the watchpoint in the debug registers.
14132 (i386_update_inferior_debug_regs): New.
14133 (i386_low_insert_watchpoint): Work on a local mirror of the debug
14134 registers, and only update the inferior on success.
14135 (i386_low_remove_watchpoint): Ditto.
14137 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
14139 * linux-low.c (compare_ints, unique, list_threads, show_process,
14140 linux_core_of_thread): Delete.
14141 (linux_target_ops): Change linux_core_of_thread to
14142 linux_common_core_of_thread.
14143 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
14144 * utils.c (malloc_failure): Change type of argument.
14145 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
14146 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
14147 common/linux-osdata.c, common/ptid.c and common/buffer.c.
14148 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
14149 (IPA_OBJS): Add common-utils-ipa.o.
14150 (ptid_h, linux_osdata_h): New macros.
14151 (server_h): Add common/common-utils.h, common/xml-utils.h,
14152 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
14154 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
14155 ptid.o, buffer.o): New rules.
14156 (linux-low.o): Add common/linux-osdata.h as a dependency.
14157 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
14158 * configure.ac: Add AC_HEADER_DIRENT check.
14159 * config.in: Regenerate.
14160 * configure: Regenerate.
14161 * remote-utils.c (xml_escape_text): Delete.
14162 (buffer_grow, buffer_free, buffer_init, buffer_finish,
14163 buffer_xml_printf): Move to common/buffer.c.
14164 * server.c (main): Remove call to initialize_inferiors.
14165 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
14166 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
14167 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
14168 internal_error, gdb_assert, gdb_assert_fail): Delete.
14169 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
14170 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
14172 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
14173 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
14174 initialize_inferiors): Delete.
14176 2011-07-20 Pedro Alves <pedro@codesourcery.com>
14178 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
14181 2011-05-31 Pedro Alves <pedro@codesourcery.com>
14183 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
14185 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
14187 2011-05-26 Yao Qi <yao@codesourcery.com>
14189 * Makefile.in (thread-db.o): Track dependence to
14190 common/gdb_thread_db.h.
14191 * thread-db.c: include gdb_thread_db.h from right place.
14193 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14195 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14196 __FILE__ and __LINE__ to internal_error.
14198 2011-05-13 Doug Evans <dje@google.com>
14200 * thread-db.c (try_thread_db_load_from_sdir): New function.
14201 (try_thread_db_load_from_dir): New function.
14202 (thread_db_load_search): Handle $sdir, ignore $pdir.
14203 Remove trying of system directories if search of
14204 libthread-db-search-path fails, that is now done via $sdir.
14206 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14208 * server.c (handle_query): Add EnableDisableTracepoints to the list
14209 of supported features.
14210 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
14212 (cmd_qtenable_disable): New.
14213 (cmd_qtstart): Install tracepoints even if disabled.
14214 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14215 receiving a QTEnable or QTDisable packet.
14216 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14217 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14219 (gdb_probe): Skip data collection if static tracepoint is disabled.
14221 2011-05-10 Doug Evans <dje@google.com>
14223 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14225 2011-05-04 Doug Evans <dje@google.com>
14227 * linux-low.c (linux_join): Skip process lookup.
14228 * spu-low.c (spu_join): Ditto.
14229 * server.c (join_inferiors_callback): Delete.
14230 (process_serial_event): For 'D' packet (detach) call join_inferior
14233 2011-05-04 Joseph Myers <joseph@codesourcery.com>
14235 * README: Don't mention xscale*-*-linux*.
14236 * configure.srv (xscale*-*-linux*): Don't handle target.
14238 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14240 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14242 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14243 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14244 (i386_emit_void_call_2): Likewise.
14246 2011-04-26 Yao Qi <yao@codesourcery.com>
14248 * linux-low.c: Move common macros to linux-ptrace.h.
14249 Include linux-ptrace.h.
14250 * Makefile.in (linux_ptrace_h): New.
14251 (linux-low.o): Depends on linux-ptrace.h.
14253 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14255 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14256 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14257 (remote_prepare): New function with most of the TCP code from ...
14258 (remote_open): ... here. Detect PORT here unconditionally. Move also
14259 setting transport_is_reliable.
14260 * server.c (run_once): New variable.
14261 (gdbserver_usage): Document it.
14262 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14263 the first run if RUN_ONCE.
14264 * server.h (run_once, remote_prepare): New declarations.
14266 2011-04-19 Tom Tromey <tromey@redhat.com>
14268 * win32-low.c (handle_load_dll): Remove duplicate "the".
14270 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14272 Remove support for old Cygwin 1.5 versions.
14273 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14274 function to avoid warning.
14275 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14278 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14280 * gdbserver/server.h (Macro _): Define it if not available.
14282 2011-03-14 Michael Snyder <msnyder@vmware.com>
14284 * hostio.c (handle_close): Remove unnecessary null test.
14286 2011-03-10 Joel Brobecker <brobecker@adacore.com>
14288 * Makefile.in (maintainer-clean realclean distclean): Remove
14289 "make ... subdir_do" command.
14291 2011-03-10 Michael Snyder <msnyder@vmware.com>
14293 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14295 * server.c (handle_v_run): Free alloced buffer on early return.
14297 2011-03-09 Yao Qi <yao@codesourcery.com>
14300 2011-03-04 Yao Qi <yao@codesourcery.com>
14302 * Makefile.in: Remove GNU make feature --directory.
14304 2011-03-05 Yao Qi <yao@codesourcery.com>
14306 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14307 (subdir_do): New make target. Copied from gdb/Makefile.
14308 (maintainer-clean, realclean, distclean, clean): Call corresponding
14309 make targets in common/Makefile.
14311 2011-02-11 Yao Qi <yao@codesourcery.com>
14313 * configure.ac: Call AC_PROG_RANLIB.
14314 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14315 * configure: Regenerate.
14317 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14319 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14321 2011-03-06 Yao Qi <yao@codesourcery.com>
14323 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14325 2011-03-05 Yao Qi <yao@codesourcery.com>
14327 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14328 (subdir_do): New make target. Copied from gdb/Makefile.
14329 (maintainer-clean, realclean, distclean, clean): Call corresponding
14330 make targets in common/Makefile.
14332 2011-03-04 Yao Qi <yao@codesourcery.com>
14334 * Makefile.in: Remove GNU make feature --directory.
14336 2011-03-04 Michael Snyder <msnyder@vmware.com>
14338 * server.c (queue_stop_reply): Call xmalloc not malloc.
14340 2011-03-02 Michael Snyder <msnyder@vmware.com>
14342 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14344 2011-02-28 Michael Snyder <msnyder@vmware.com>
14346 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14347 (cmd_qtframe): Ditto.
14348 (cmd_qtbuffer): Ditto.
14349 (cmd_bigqtbuffer): Ditto.
14351 * utils.c (decimal2str): Initialize 'width' to nine, then
14352 don't mess with it.
14354 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14356 * hostio.c (require_data): Free *data, not data.
14358 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14360 * hostio.c (require_data): Use free, not xfree.
14362 2011-02-27 Michael Snyder <msnyder@vmware.com>
14364 * server.c (handle_query): Discard unused value.
14366 * hostio.c (require_data): Free malloc memory before returning
14369 2011-02-26 Michael Snyder <msnyder@vmware.com>
14371 * linux-low.c (list_threads): Call closedir for dirent.
14373 2011-02-27 Michael Snyder <msnyder@vmware.com>
14375 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14376 a case statement falls through.
14378 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14380 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14383 2011-02-26 Michael Snyder <msnyder@vmware.com>
14385 * utils.c (decimal2str): Eliminate dead code and dead param.
14386 (pulongest): Drop dead param from call to decimal2str.
14389 2011-02-24 Joel Brobecker <brobecker@adacore.com>
14391 Revert the following patch (not approved yet):
14392 2011-02-21 Hui Zhu <teawater@gmail.com>
14393 * tracepoint.c (tp_printf): New function.
14394 (eval_agent_expr): Handle gdb_agent_op_printf.
14396 2011-02-21 Hui Zhu <teawater@gmail.com>
14398 * tracepoint.c (tp_printf): New function.
14399 (eval_agent_expr): Handle gdb_agent_op_printf.
14401 2011-02-18 Tom Tromey <tromey@redhat.com>
14403 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14404 (tracepoint.o): Likewise.
14405 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14406 (gdb_agent_op_names): Likewise.
14408 2011-02-18 Tom Tromey <tromey@redhat.com>
14410 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14411 gdb_agent_op_rot>: New constants.
14412 (gdb_agent_op_names): Add pick and roll.
14413 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14416 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14418 * aclocal.m4: Regenerated with aclocal-1.11.1.
14420 2011-02-14 Pedro Alves <pedro@codesourcery.com>
14422 * server.c (handle_qxfer_traceframe_info): New.
14423 (qxfer_packets): Register "traceframe-info".
14424 (handle_query): Report support for qXfer:traceframe-info:read+.
14425 * tracepoint.c (match_blocktype): New.
14426 (traceframe_find_block_type): Rename to ...
14427 (traceframe_walk_blocks): ... this. Add callback filter argument,
14429 (traceframe_find_block_type): New, reimplemented on top of
14430 traceframe_walk_blocks.
14431 (build_traceframe_info_xml): New.
14432 (traceframe_read_info): New.
14433 * server.h (traceframe_read_info): Declare.
14435 2011-02-11 Yao Qi <yao@codesourcery.com>
14437 * configure.ac: Call AC_PROG_RANLIB.
14438 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14439 * configure: Regenerate.
14441 2011-02-07 Pedro Alves <pedro@codesourcery.com>
14443 * server.c (gdb_read_memory): Change return semantics to allow
14445 (handle_search_memory_1): Adjust.
14446 (process_serial_event) <'m' packet>: Handle partial transfers.
14447 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14449 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14451 * regcache.c (init_register_cache): Initialize
14452 regcache->register_status.
14453 (free_register_cache): Release regcache->register_status.
14454 (regcache_cpy): Copy register_status.
14455 (registers_to_string): Print 'x's for unavailable registers.
14456 (supply_register): Mark the register's status valid or
14457 unavailable, depending on whether a buffer was passed in or not.
14458 (supply_register_zeroed): New.
14459 (supply_regblock): Mark the registers' status valid or
14460 unavailable, depending on whether a buffer was passed in or not.
14461 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14462 (struct regcache): New `register_status' field.
14463 (supply_register_zeroed): Declare.
14464 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14465 supply_register_zeroed, rather than passing a NULL buffer to
14467 * tracepoint.c (fetch_traceframe_registers): Update comment.
14469 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14471 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14474 2011-01-25 Pedro Alves <pedro@codesourcery.com>
14476 * server.h (decode_xfer_write): Change prototype.
14477 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14478 and don't extract the annex here.
14479 * server.c (decode_xfer_read): Remove `annex' parameter,
14480 and don't extract the annex here.
14481 (decode_xfer): New.
14482 (struct qxfer): New.
14483 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14484 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14485 (handle_qxfer_statictrace): New functions, abstracted out from
14486 handle_query, and made to use the struct qxfer interface.
14487 (handle_threads_qxfer_proper): Rename to ...
14488 (handle_qxfer_threads_proper): ... this.
14489 (handle_threads_qxfer): Rename to ...
14490 (handle_qxfer_threads): ... this. Adjust.
14491 (qxfer_packets): New array.
14492 (handle_qxfer): New function.
14493 (handle_query): Use handle_qxfer.
14495 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14497 * gdbreplay.c: Shorten lines of >= 80 columns.
14498 * linux-low.c: Ditto.
14499 * linux-ppc-low.c: Ditto.
14500 * linux-s390-low.c: Ditto.
14501 * linux-sparc-low.c: Ditto.
14502 * linux-x86-low.c: Ditto.
14503 * linux-xtensa-low.c: Ditto.
14504 * mem-break.c: Ditto.
14505 * nto-low.c: Ditto.
14506 * regcache.h: Ditto.
14507 * remote-utils.c: Ditto.
14510 * thread-db.c: Ditto.
14511 * tracepoint.c: Ditto.
14513 * win32-low.h: Ditto.
14515 2011-01-05 Joel Brobecker <brobecker@adacore.com>
14517 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14520 2011-01-01 Joel Brobecker <brobecker@adacore.com>
14522 * server.c (gdbserver_version): Update copyright year in version
14524 * gdbreplay.c (gdbreplay_version): Ditto.
14526 2010-12-29 Jie Zhang <jie.zhang@analog.com>
14528 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14529 * linux-bfin-low.c: New file.
14530 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14531 PT_DATA_ADDR for BFIN targets.
14532 * Makefile.in (SFILES): Add linux-bfin-low.c.
14533 (clean): Remove reg-bfin.c.
14534 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14535 * README: Mention supported Blackfin targets.
14537 2010-12-23 Mike Frysinger <vapier@gentoo.org>
14539 * .gitignore: New file.
14541 2010-11-16 Mike Frysinger <vapier@gentoo.org>
14543 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14545 2010-10-22 Jie Zhang <jie@codesourcery.com>
14547 * Makefile.in: Add FLAGS_TO_PASS variable.
14548 (install): Remove dependency of install-only and recursively
14549 invoke make for install-only.
14551 2010-10-04 Doug Evans <dje@google.com>
14553 * Makefile.in (uninstall): Use $(DESTDIR).
14555 2010-09-24 Pedro Alves <pedro@codesourcery.com>
14559 * linux-x86-low.c (compat_siginfo_from_siginfo)
14560 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14561 si_code is < 0. Check for si_code == SI_TIMER before checking for
14564 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14566 * lynx-i386-low.c: New file.
14567 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14569 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14571 * lynx-low.c (ptrace_request_to_str): Remove handling for
14572 request values that have been removed in LynxOS 5.x.
14574 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14576 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14579 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14581 * configure.ac: Add --enable-inprocess-agent option.
14582 * configure: Rebuilt.
14584 2010-09-06 Yao Qi <yao@codesourcery.com>
14586 * linux-low.c (linux_kill): Remove unused variable.
14587 (linux_stabilize_threads): Likewise.
14588 * server.c (start_inferior): Likewise.
14589 (queue_stop_reply_callback): Likewise.
14590 * tracepoint.c (do_action_at_tracepoint): Likewise.
14592 2010-09-06 Yao Qi <yao@codesourcery.com>
14594 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14597 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14599 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14601 2010-09-06 Pedro Alves <pedro@codesourcery.com>
14603 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14606 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14608 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14609 gdbserver/lynx-ppc-low.c: New files.
14610 * Makefile.in (lynx_low_h): New variable.
14611 (lynx-low.o, lynx-ppc-low.o): New rules.
14612 * configure.ac: On LynxOS, link with -lnetinet.
14613 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14614 * configure: regenerate.
14616 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14618 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
14619 * configure.ac: Add check for vasprintf and vsnprintf.
14620 * configure, config.in: Regenerate.
14621 * server.h (vasprintf, vsnprintf): Add conditional declarations.
14623 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14625 * gdbreplay.c: Move include of alloca.h up, next to include of
14627 * server.h: Add include of malloc.h.
14628 * mem-break.c: Remove include of malloc.h.
14629 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
14631 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14633 * Makefile.in (memmem.o): Build with -Wno-error.
14635 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14637 * utils.c (xsnprintf): Make non-static.
14638 * server.h: Add xsnprintf declaration.
14639 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
14640 replace calls to snprintf by calls to xsnprintf throughout.
14642 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14644 * configure.ac: Add configure check for alloca.
14645 * configure, config.in: Regenerate.
14646 * server.h: Include alloca.h if it exists.
14647 * gdbreplay.c: Include alloca.h if it exists.
14649 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14651 * linux-low.c (__SIGRTMIN): Define if not already defined.
14652 (linux_create_inferior): Check for __ANDROID__ rather than
14654 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
14655 are already deferred.
14656 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
14657 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
14658 stopped and already has a pending signal to report.
14659 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
14660 a pending signal to report or is moving out of a jump pad.
14661 (linux_init_signals): Check for __ANDROID__ rather than
14664 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14666 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14667 debug_threads check. Avoid a linear search when not doing debug
14670 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14672 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
14673 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
14674 (struct file_handler) <fd>: Change type to gdb_fildes_t.
14675 (process_event): Change local fd's type to gdb_fildes_t.
14676 (create_file_handler): Adjust prototype.
14677 (delete_file_handler): Adjust prototype.
14678 (handle_file_event): Adjust prototype. Use pfildes.
14679 (create_file_event): Adjsut prototype.
14680 * remote-utils.c (remote_desc, listen_desc): Change type to
14682 * server.h: New gdb_fildes_t typedef.
14683 [USE_WIN32API]: Include winsock2.h.
14684 (delete_file_handler, add_file_handler): Adjust prototypes.
14685 (pfildes): Declare.
14686 * utils.c (pfildes): New.
14688 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14690 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14691 * configure: Regenerate.
14693 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14695 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
14696 (linux_done_accessing_memory): ... this.
14697 (linux_target_ops): Adjust.
14698 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
14699 * nto-low.c (nto_target_ops): Adjust comment.
14700 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
14701 * spu-low.c (spu_target_ops): Adjust comment.
14702 * target.h (target_ops): Rename unprepare_to_access_memory field
14703 to done_accessing_memory.
14704 (unprepare_to_access_memory): Rename to ...
14705 (done_accessing_memory): ... this.
14707 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14709 * linux-low.c (linux_prepare_to_access_memory): New.
14710 (linux_unprepare_to_access_memory): New.
14711 (linux_target_ops): Install them.
14712 * server.c (read_memory): Rename to ...
14713 (gdb_read_memory): ... this. Use
14714 prepare_to_access_memory/prepare_to_access_memory.
14715 (write_memory): Rename to ...
14716 (gdb_write_memory): ... this. Use
14717 prepare_to_access_memory/prepare_to_access_memory.
14718 (handle_search_memory_1): Adjust.
14719 (process_serial_event): Adjust.
14720 * target.h (struct target_ops): New fields
14721 prepare_to_access_memory and unprepare_to_access_memory.
14722 (prepare_to_access_memory, unprepare_to_access_memory): New.
14723 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
14724 prepare_to_access_memory/prepare_to_access_memory.
14725 * nto-low.c (nto_target_ops): Adjust.
14726 * spu-low.c (spu_target_ops): Adjust.
14727 * win32-low.c (win32_target_ops): Adjust.
14729 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14731 * Makefile.in (WARN_CFLAGS): Get it from configure.
14732 (WERROR_CFLAGS): New.
14733 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
14734 * configure.ac: Introduce --enable-werror, which adds -Werror to
14735 the compiler command line. Enabled by default. Disable with
14736 --disable-werror. Add -Wdeclaration-after-statement
14737 Wpointer-arith and -Wformat-nonliteral to warning flags.
14738 * configure: Regenerate.
14740 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14742 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14744 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14746 * gdbreplay.c (remote_error): New.
14748 (expect): Use gdbchar. Check for error reading from GDB.
14749 Clarify sync error output.
14750 (play): Check for errors writing to GDB.
14751 * linux-low.c (sigchld_handler): Really ignore `write' errors.
14752 * remote-utils.c (getpkt): Check for errors writing to the remote
14755 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14757 * linux-low.c (linux_wait_1): Move non-debugging code out of
14758 `debug_threads' control.
14760 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14762 * linux-low.c (linux_wait_1): Don't set last_status here.
14763 * server.c (push_event, queue_stop_reply_callback): Assert we're
14764 not pushing a TARGET_WAITKIND_IGNORE event.
14765 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
14766 (myresume, handle_target_event): Set the thread's last_resume_kind
14767 and last_status from the target returned status.
14769 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14773 * linux-x86-low.c (update_debug_registers_callback): New.
14774 (i386_dr_low_set_addr): Use it.
14775 (i386_dr_low_get_addr): New.
14776 (i386_dr_low_set_control): Use update_debug_registers_callback.
14777 (i386_dr_low_get_control): New.
14778 (i386_dr_low_get_status): Adjust.
14779 * linux-low.c (linux_stop_lwp): New.
14780 * linux-low.h (linux_stop_lwp): Declare.
14782 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
14783 argument instead of a i386_debug_reg_state.
14784 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
14785 a i386_debug_reg_state.
14786 (i386_insert_aligned_watchpoint): Adjust.
14787 (i386_remove_aligned_watchpoint): Adjust.
14788 (i386_low_stopped_data_address): Read the debug registers from the
14789 inferior instead of from the mirrors.
14790 * i386-low.h (struct i386_debug_reg_state): Extend comment.
14791 (i386_dr_low_get_addr): Declare.
14792 (i386_dr_low_get_control): Declare.
14793 (i386_dr_low_get_status): Change prototype.
14795 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
14796 (i386_dr_low_get_addr): New.
14797 (i386_dr_low_get_control): New.
14798 (i386_dr_low_get_status): Adjust prototype. Return
14800 (i386_initial_stuff): Clear dr_status_mirror and
14802 (i386_get_thread_context): Adjust.
14803 (i386_set_thread_context): Adjust.
14804 (i386_thread_added): Adjust.
14806 2010-08-24 Pedro Alves <pedro@codesourcery.com>
14808 * linux-low.h (linux_thread_area): Delete declaration.
14810 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14812 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14813 after its termination.
14815 2010-08-09 Pedro Alves <pedro@codesourcery.com>
14817 * linux-low.c (gdb_wants_lwp_stopped): Delete.
14818 (gdb_wants_all_stopped): Delete.
14819 (linux_wait_1): Don't call them.
14820 * server.c (handle_v_cont): Tag all threads as want-stopped.
14821 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
14822 stopped as "client-wants-stopped".
14824 2010-07-31 Pedro Alves <pedro@codesourcery.com>
14826 * Makefile.in (signals_h): New.
14827 (server_h): Depend on it.
14828 (server.o): Don't depend on $(signals_def).
14829 (signals.o): Depend on $(signals_def).
14831 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14833 * Makefile.in (signals_def): New.
14834 (server_h): Append include/gdb/signals.h and signals_def.
14835 (server.o): Append signals_def.
14837 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14839 * server.c (handle_target_event): Use target_signal_to_host for
14840 resume_info.sig initialization.
14841 * target.h (struct thread_resume) <sig>: New comment.
14843 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14845 * server.c (handle_query): strcpy() the returned string from paddress()
14846 instead of sprintf().
14847 * utils.c (paddress): Return phex_nz().
14849 2010-07-07 Joel Brobecker <brobecker@adacore.com>
14851 * server.c (handle_v_cont): Call mourn_inferior if process
14853 (myresume): Likewise.
14855 2010-07-01 Pedro Alves <pedro@codesourcery.com>
14857 Static tracepoints, and integration with UST.
14859 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
14860 * mem-break.c (uninsert_all_breakpoints)
14861 (reinsert_all_breakpoints): New.
14862 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
14863 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
14864 (gdb_agent_ust_loaded, helper_thread_id)
14865 (gdb_agent_helper_thread_id): New macros.
14866 (struct ipa_sym_addresses): Add addr_ust_loaded,
14867 addr_helper_thread_id, addr_cmd_buf.
14868 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14869 (in_process_agent_loaded_ust): New.
14870 (write_e_ust_not_loaded): New.
14871 (maybe_write_ipa_ust_not_loaded): New.
14872 (struct collect_static_trace_data_action): New.
14873 (enum tracepoint_type) <static_tracepoint>: New.
14874 (struct tracepoint) <handle>: Mention static tracepoints.
14875 (struct static_tracepoint_ctx): New.
14876 (CMD_BUF_SIZE): New.
14877 (add_tracepoint_action): Handle static tracepoint actions.
14878 (unprobe_marker_at): New.
14879 (clear_installed_tracepoints): Handle static tracepoints.
14880 (cmd_qtdp): Handle static tracepoints.
14881 (probe_marker_at): New.
14882 (cmd_qtstart): Handle static tracepoints.
14883 (response_tracepoint): Handle static tracepoints.
14884 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
14885 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
14886 (get_context_regcache): Handle static tracepoints.
14887 (do_action_at_tracepoint): Handle static tracepoint actions.
14888 (traceframe_find_block_type): Handle static trace data blocks.
14889 (traceframe_read_sdata): New.
14890 (download_tracepoints): Download static tracepoint actions.
14891 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
14892 (GDB_PROBE_NAME): New.
14894 (GET_UST_SYM): New.
14897 (ust_marker_to_static_tracepoint): New.
14899 (collect_ust_data_at_tracepoint): New.
14900 (gdb_ust_probe): New.
14901 (UNIX_PATH_MAX, SOCK_DIR): New.
14902 (gdb_ust_connect_sync_socket): New.
14903 (resume_thread, stop_thread): New.
14904 (run_inferior_command): New.
14905 (init_named_socket): New.
14906 (gdb_ust_socket_init): New.
14907 (cstr_to_hexstr): New.
14909 (first_marker, next_marker): New.
14910 (response_ust_marker): New.
14911 (cmd_qtfstm, cmd_qtsstm): New.
14912 (unprobe_marker_at, probe_marker_at): New.
14913 (cmd_qtstmat, gdb_ust_thread): New.
14914 (gdb_ust_init): New.
14915 (initialize_tracepoint_ftlib): Call gdb_ust_init.
14916 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
14917 (ST_REGENTRY): New.
14918 (x86_64_st_collect_regmap): New.
14919 (X86_64_NUM_ST_COLLECT_GREGS): New.
14920 (AMD64_RIP_REGNUM): New.
14921 (supply_static_tracepoint_registers): New.
14922 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
14923 (ST_REGENTRY): New.
14924 (i386_st_collect_regmap): New.
14925 (i386_NUM_ST_COLLECT_GREGS): New.
14926 (supply_static_tracepoint_registers): New.
14927 * server.c (handle_query): Handle qXfer:statictrace:read.
14928 <qSupported>: Report support for StaticTracepoints, and
14929 qXfer:statictrace:read features.
14930 * server.h (traceframe_read_sdata)
14931 (supply_static_tracepoint_registers): Declare.
14932 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
14933 (unpack_varlen_hex): Include in IPA build.
14934 * Makefile.in (ustlibs, ustinc): New.
14935 (IPA_OBJS): Add remote-utils-ipa.o.
14936 ($(IPA_LIB)): Link -ldl and -lpthread.
14938 (IPAGENT_CFLAGS): Add UST_CFLAGS.
14939 * config.in, configure: Regenerate.
14941 2010-06-20 Ian Lance Taylor <iant@google.com>
14942 Pedro Alves <pedro@codesourcery.com>
14944 * linux-x86-low.c (always_true): Delete.
14945 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
14946 trying to fool the compiler with always_true.
14948 2010-06-20 Pedro Alves <pedro@codesourcery.com>
14950 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
14951 conditions in gdbserver.
14953 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
14955 * spu-low.c (spu_read_memory): Wrap around local store limit.
14956 (spu_write_memory): Likewise.
14958 2010-06-15 Pedro Alves <pedro@codesourcery.com>
14960 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
14961 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
14963 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
14965 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
14966 uses with LONGEST uses.
14968 2010-06-14 Stan Shebs <stan@codesourcery.com>
14969 Pedro Alves <pedro@codesourcery.com>
14973 * linux-x86-low.c: Include limits.h.
14975 (always_true): New.
14978 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
14979 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
14980 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
14981 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
14982 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
14983 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
14984 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
14985 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
14986 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
14987 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
14988 (amd64_emit_void_call_2): New.
14989 (amd64_emit_ops): New.
14990 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
14991 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
14992 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
14993 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
14994 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
14995 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
14996 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
14997 (i386_emit_call, i386_emit_reg, i386_emit_pop)
14998 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
14999 (i386_emit_stack_adjust, i386_emit_int_call_1)
15000 (i386_emit_void_call_2): New.
15001 (i386_emit_ops): New.
15002 (x86_emit_ops): New.
15003 (the_low_target): Install x86_emit_ops.
15004 * server.h (struct emit_ops): New.
15005 (get_raw_reg_func_addr): Declare.
15006 (current_insn_ptr, emit_error): Declare.
15007 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
15008 (set_trace_state_variable_value): New defines.
15009 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
15010 addr_get_trace_state_variable_value and
15011 addr_set_trace_state_variable_value.
15012 (symbol_list): New fields for get_raw_reg,
15013 get_trace_state_variable_value and set_trace_state_variable_value.
15014 (condfn): New typedef.
15015 (struct tracepoint): New field `compiled_cond'.
15016 (do_action_at_tracepoint): Clear compiled_cond.
15017 (get_trace_state_variable_value, set_trace_state_variable_value):
15019 (condition_true_at_tracepoint): If there's a compiled condition,
15021 (current_insn_ptr, emit_error): New globals.
15022 (struct bytecode_address): New.
15023 (get_raw_reg_func_addr): New.
15024 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
15025 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
15026 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
15027 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
15028 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
15029 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
15030 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
15031 (compile_tracepoint_condition, compile_bytecodes): New.
15032 * target.h (emit_ops): Forward declare.
15033 (struct target_ops): New field emit_ops.
15034 (target_emit_ops): New.
15035 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
15036 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
15037 * linux-low.c (linux_emit_ops): New.
15038 (linux_target_ops): Install it.
15039 * linux-low.h (struct linux_target_ops): New field emit_ops.
15041 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
15043 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
15044 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
15046 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15047 Stan Shebs <stan@codesourcery.com>
15049 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
15050 (all): Depend on $(extra_libraries).
15051 (install-only): Install the IPA.
15052 (IPA_OBJS, IPA_LIB): New.
15053 (clean): Remove the IPA lib.
15054 (IPAGENT_CFLAGS): New.
15055 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
15056 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
15057 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
15058 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
15059 * configure.ac: Check for atomic builtins support in the compiler.
15060 (IPA_DEPFILES, extra_libraries): Define.
15061 * configure.srv (ipa_obj): Add description.
15062 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
15063 (i[34567]86-*-linux*): Set ipa_obj.
15064 (x86_64-*-linux*): Set ipa_obj.
15065 * linux-low.c (stabilizing_threads): New.
15066 (supports_fast_tracepoints): New.
15067 (linux_detach): Stabilize threads before detaching.
15068 (handle_tracepoints): Handle internal tracing breakpoints. Assert
15069 the lwp is either not stabilizing, or is moving out of a jump pad.
15070 (linux_fast_tracepoint_collecting): New.
15071 (maybe_move_out_of_jump_pad): New.
15072 (enqueue_one_deferred_signal): New.
15073 (dequeue_one_deferred_signal): New.
15074 (linux_wait_for_event_1): If moving out of a jump pad, defer
15075 pending signals to later.
15076 (linux_stabilize_threads): New.
15077 (linux_wait_1): Check if threads need moving out of jump pads, and
15079 (stuck_in_jump_pad_callback): New.
15080 (move_out_of_jump_pad_callback): New.
15081 (lwp_running): New.
15082 (linux_resume_one_lwp): Handle moving out of jump pads.
15083 (linux_set_resume_request): Dequeue deferred signals.
15084 (need_step_over_p): Also step over fast tracepoint jumps.
15085 (start_step_over): Also uninsert fast tracepoint jumps.
15086 (finish_step_over): Also reinsert fast tracepoint jumps.
15087 (linux_install_fast_tracepoint_jump): New.
15088 (linux_target_ops): Install linux_stabilize_threads and
15089 linux_install_fast_tracepoint_jump_pad.
15090 * linux-low.h (linux_target_ops) <get_thread_area,
15091 install_fast_tracepoint_jump_pad>: New fields.
15092 (struct lwp_info) <collecting_fast_tracepoint,
15093 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
15094 (linux_get_thread_area): Declare.
15095 * linux-x86-low.c (jump_insn): New.
15096 (x86_get_thread_area): New.
15097 (append_insns): New.
15098 (push_opcode): New.
15099 (amd64_install_fast_tracepoint_jump_pad): New.
15100 (i386_install_fast_tracepoint_jump_pad): New.
15101 (x86_install_fast_tracepoint_jump_pad): New.
15102 (the_low_target): Install x86_get_thread_area and
15103 x86_install_fast_tracepoint_jump_pad.
15104 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
15105 (struct fast_tracepoint_jump): New.
15106 (fast_tracepoint_jump_insn): New.
15107 (fast_tracepoint_jump_shadow): New.
15108 (find_fast_tracepoint_jump_at): New.
15109 (fast_tracepoint_jump_here): New.
15110 (delete_fast_tracepoint_jump): New.
15111 (set_fast_tracepoint_jump): New.
15112 (uninsert_fast_tracepoint_jumps_at): New.
15113 (reinsert_fast_tracepoint_jumps_at): New.
15114 (set_breakpoint_at): Use write_inferior_memory.
15115 (uninsert_raw_breakpoint): Use write_inferior_memory.
15116 (check_mem_read): Mask out fast tracepoint jumps.
15117 (check_mem_write): Mask out fast tracepoint jumps.
15118 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
15119 (set_fast_tracepoint_jump): Declare.
15120 (delete_fast_tracepoint_jump)
15121 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
15122 (reinsert_fast_tracepoint_jumps_at): Declare.
15123 * regcache.c: Don't compile many functions when building the
15124 in-process agent library.
15125 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
15126 the register buffer in the heap.
15127 (free_register_cache): If the register buffer isn't owned by the
15128 regcache, don't free it.
15129 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
15130 pre-existing register caches.
15131 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
15133 (convert_ascii_to_int): : Constify `from' parameter type.
15134 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
15135 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
15136 the needed buffer in-place.
15137 (relocate_instruction): New.
15138 * server.c (handle_query) <qSymbols>: If the target supports
15139 tracepoints, give it a chance of looking up symbols. Report
15140 support for fast tracepoints.
15141 (handle_status): Stabilize threads.
15142 (process_serial_event): Adjust.
15143 * server.h (struct fast_tracepoint_jump): Forward declare.
15144 (struct process_info) <fast_tracepoint_jumps>: New field.
15145 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
15146 (decode_X_packet, decode_M_packet): Adjust.
15147 (relocate_instruction): Declare.
15148 (in_process_agent_loaded): Declare.
15149 (tracepoint_look_up_symbols): Declare.
15150 (struct fast_tpoint_collect_status): Declare.
15151 (fast_tracepoint_collecting): Declare.
15152 (force_unlock_trace_buffer): Declare.
15153 (handle_tracepoint_bkpts): Declare.
15154 (initialize_low_tracepoint)
15155 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
15156 * target.h (struct target_ops) <stabilize_threads,
15157 install_fast_tracepoint_jump_pad>: New fields.
15158 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
15159 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
15160 [HAVE_STDINT_H]: Include stdint.h.
15161 (trace_debug_1): Rename to ...
15162 (trace_vdebug): ... this.
15163 (trace_debug): Rename to ...
15164 (trace_debug_1): ... this. Add `level' parameter.
15165 (trace_debug): New.
15166 (ATTR_USED, ATTR_NOINLINE): New.
15167 (IP_AGENT_EXPORT): New.
15168 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
15169 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
15170 (about_to_request_buffer_space, trace_buffer_is_full)
15171 (stopping_tracepoint, expr_eval_result, error_tracepoint)
15172 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
15173 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
15174 (traceframe_write_count, traceframes_created)
15175 (trace_state_variables)
15176 New renaming defines.
15177 (struct ipa_sym_addresses): New.
15178 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
15179 (symbol_list): New.
15180 (ipa_sym_addrs): New.
15181 (all_tracepoint_symbols_looked_up): New.
15182 (in_process_agent_loaded): New.
15183 (write_e_ipa_not_loaded): New.
15184 (maybe_write_ipa_not_loaded): New.
15185 (tracepoint_look_up_symbols): New.
15186 (debug_threads) [IN_PROCESS_AGENT]: New.
15187 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
15188 (UNKNOWN_SIDE_EFFECTS): New.
15189 (stop_tracing): New.
15190 (flush_trace_buffer): New.
15191 (stop_tracing_bkpt): New.
15192 (flush_trace_buffer_bkpt): New.
15193 (read_inferior_integer): New.
15194 (read_inferior_uinteger): New.
15195 (read_inferior_data_pointer): New.
15196 (write_inferior_data_pointer): New.
15197 (write_inferior_integer): New.
15198 (write_inferior_uinteger): New.
15199 (struct collect_static_trace_data_action): Delete.
15200 (enum tracepoint_type): New.
15201 (struct tracepoint) <type>: New field `type'.
15202 <actions_str, step_actions, step_actions_str>: Only include in
15204 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15205 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15206 (tracepoints): Use IP_AGENT_EXPORT.
15207 (last_tracepoint): Don't include in the IPA.
15208 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15209 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15210 (alloced_trace_state_variables): New.
15211 (trace_state_variables): Use IP_AGENT_EXPORT.
15212 (traceframe_t): Delete unused variable.
15213 (circular_trace_buffer): Don't include in the IPA.
15214 (trace_buffer_start): Delete.
15215 (struct trace_buffer_control): New.
15216 (trace_buffer_free): Delete.
15217 (struct ipa_trace_buffer_control): New.
15218 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15219 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15221 (trace_buffer_ctrl): New.
15222 (TRACE_BUFFER_CTRL_CURR): New.
15223 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15224 Reimplement as macros.
15225 (trace_buffer_wrap): Delete.
15226 (traceframe_write_count, traceframe_read_count)
15227 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15228 (struct tracepoint_hit_ctx) <type>: New field.
15229 (struct fast_tracepoint_ctx): New.
15230 (memory_barrier): New.
15232 (record_tracepoint_error): Update atomically in the IPA.
15233 (clear_inferior_trace_buffer): New.
15234 (about_to_request_buffer_space): New.
15235 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15236 updating the same buffer.
15237 (add_tracepoint): Default the tracepoint's type to trap
15238 tracepoint, and orig_size to -1.
15239 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15240 internal variables.
15241 (create_trace_state_variable): New parameter `gdb'. Handle it.
15242 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15243 (cmd_qtdp): Handle fast tracepoints.
15244 (cmd_qtdv): Adjust.
15245 (max_jump_pad_size): New.
15246 (gdb_jump_pad_head): New.
15247 (get_jump_space_head): New.
15248 (claim_jump_space): New.
15249 (sort_tracepoints): New.
15250 (MAX_JUMP_SIZE): New.
15251 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15253 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15254 support. Upload fast traceframes, and delete internal IPA
15256 (stop_tracing_handler): New.
15257 (flush_trace_buffer_handler): New.
15258 (cmd_qtstop): Upload fast tracepoints.
15259 (response_tracepoint): Handle fast tracepoints.
15260 (tracepoint_finished_step): Upload fast traceframes. Set the
15261 tracepoint hit context's tracepoint type.
15262 (handle_tracepoint_bkpts): New.
15263 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15264 type. Add comment about fast tracepoints.
15265 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15266 non-existing action_str field.
15267 (get_context_regcache): Handle fast tracepoints.
15268 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15270 (fast_tracepoint_from_jump_pad_address): New.
15271 (fast_tracepoint_from_ipa_tpoint_address): New.
15272 (collecting_t): New.
15273 (force_unlock_trace_buffer): New.
15274 (fast_tracepoint_collecting): New.
15276 (gdb_collect): New.
15277 (write_inferior_data_ptr): New.
15278 (target_tp_heap): New.
15279 (target_malloc): New.
15280 (download_agent_expr): New.
15282 (download_tracepoints): New.
15283 (download_trace_state_variables): New.
15284 (upload_fast_traceframes): New.
15285 (IPA_FIRST_TRACEFRAME): New.
15286 (IPA_NEXT_TRACEFRAME_1): New.
15287 (IPA_NEXT_TRACEFRAME): New.
15288 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15289 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15290 (gdb_jump_pad_buffer_end): New.
15291 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15292 (initialize_tracepoint): Adjust.
15293 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15294 buffer. Initialize the low module.
15295 * utils.c (PREFIX, TOOLNAME): New.
15296 (malloc_failure): Use PREFIX.
15297 (error): In the IPA, an error causes an exit.
15298 (fatal, warning): Use PREFIX.
15299 (internal_error): Use TOOLNAME.
15300 (NUMCELLS): Increase to 10.
15301 * configure, config.in: Regenerate.
15303 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15305 * server.c (handle_query) <qSupported>: Do two passes over the
15306 qSupported string to avoid nesting strtok.
15308 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15310 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15312 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15313 -Wl,--dynamic-list.
15314 * configure: Regenerate.
15315 * proc-service.list: New.
15317 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15319 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15322 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15324 * gdbreplay.c (remote_open): Check error return from socket() call by
15325 its equality to -1 not by it being negative.
15326 * remote-utils.c (remote_open): Likewise.
15328 2010-05-23 Pedro Alves <pedro@codesourcery.com>
15330 * config.h: Regenerate.
15332 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15334 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15335 doesn't provide PTRACE_GET_THREAD_AREA.
15337 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15339 * linux-m68k-low.c: Include <asm/ptrace.h>
15340 (ps_get_thread_area): Implement.
15342 2010-05-03 Doug Evans <dje@google.com>
15344 * event-loop.c (struct callback_event): New struct.
15345 (callback_list): New global.
15346 (append_callback_event, delete_callback_event): New functions.
15347 (process_callback): New function.
15348 (start_event_loop): Call it.
15349 * remote-utils.c (NOT_SCHEDULED): Define.
15350 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15351 moved out of readchar.
15352 (readchar): Rewrite. Call reschedule before returning.
15353 (reset_readchar): New function.
15354 (remote_close): Call it.
15355 (process_remaining, reschedule): New functions.
15356 * server.h (callback_handler_func): New typedef.
15357 (append_callback_event, delete_callback_event): Declare.
15359 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15361 * proc-service.c (ps_pglobal_lookup): Use
15362 thread_db_look_up_one_symbol.
15363 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15364 parameter. Use it instead of all_symbols_looked_up.
15365 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15367 (all_symbols_looked_up): Don't declare.
15368 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15369 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15371 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15372 Set all_symbols_looked_up here.
15373 (thread_db_look_up_one_symbol): New.
15374 (thread_db_get_tls_address): Adjust.
15375 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15376 thread_db object on the heap, and tentatively set it in the
15378 (thread_db_init): Don't set all_symbols_looked_up here.
15379 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15381 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15383 * linux-low.c (linux_kill, linux_detach): Adjust.
15384 (status_pending_p_callback): Remove redundant statement. Check
15385 for !TARGET_WAITIKIND_IGNORE, instead of
15386 TARGET_WAITKIND_STOPPED.
15387 (handle_tracepoints): Make sure LWP is locked. Adjust.
15388 (linux_wait_for_event_1): Adjust.
15389 (linux_cancel_breakpoints): New.
15390 (unsuspend_one_lwp): New.
15391 (unsuspend_all_lwps): New.
15392 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15393 (send_sigstop_callback): Change return type to int, add new
15394 `except' parameter and handle it.
15395 (suspend_and_send_sigstop_callback): New.
15396 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15397 pass them down. If SUSPEND, also increment the lwp's suspend
15399 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15400 (need_step_over_p): Don't consider suspended LWPs.
15401 (start_step_over): Adjust.
15402 (proceed_one_lwp): Change return type to int, add new `except'
15403 parameter and handle it.
15404 (unsuspend_and_proceed_one_lwp): New.
15405 (proceed_all_lwps): Use find_inferior instead of
15407 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15408 also decrement the suspend count of LWPs. Pass `except' down,
15409 instead of hacking its suspend count.
15410 (linux_pause_all): Add `freeze' parameter. Adjust.
15411 (linux_unpause_all): New.
15412 (linux_target_ops): Install linux_unpause_all.
15413 * server.c (handle_status): Adjust.
15414 * target.h (struct target_ops): New fields `unpause_all' and
15415 `cancel_breakpoints'. Add new parameter to `pause_all'.
15416 (pause_all): Add new `freeze' parameter.
15417 (unpause_all): New.
15418 (cancel_breakpoints): New.
15419 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15420 cancel breakpoints.
15421 (cmd_qtstart): Pause threads.
15422 (stop_tracing): Pause threads, and cancel breakpoints.
15423 * win32-low.c (win32_target_ops): Adjust.
15425 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15427 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15428 the inferior right away from here...
15429 (linux_wait_1): ... to here, and adjust to check the thread's
15430 last_resume_kind instead of the lwp's step or stop_expected flags.
15432 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15434 * README: Use consistent `GDB' and `GDBserver' spellings.
15436 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15438 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15439 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15440 (linux_detach_one_lwp): Assume the lwp is stopped.
15441 (any_thread_of): Delete.
15442 (linux_detach): Stop all lwps here. Don't blindly delete all
15444 (delete_lwp_callback): New.
15445 (linux_mourn): Delete all lwps of the process that is gone.
15446 (linux_wait_1): Don't delete the last lwp of the process here.
15447 * mem-break.h (mark_breakpoints_out): Declare.
15448 * mem-break.c (mark_breakpoints_out): New.
15449 (free_all_breakpoints): Use it.
15450 * server.c (handle_target_event): If the process is gone, mark
15452 * thread-db.c (struct thread_db) <create_bp>: New field.
15453 (thread_db_enable_reporting): Fix prototype. Store a thread event
15454 breakpoint reference in the thread_db struct.
15455 (thread_db_load_search): Clear the thread_db object.
15456 (try_thread_db_load_1): Ditto.
15457 (switch_to_process): New.
15458 (disable_thread_event_reporting): Use it.
15459 (remove_thread_event_breakpoints): New.
15460 (thread_db_detach, thread_db_mourn): Use it.
15462 2010-05-01 Pedro Alves <pedro@codesourcery.com>
15464 * linux-low.c (linux_enable_event_reporting): New.
15465 (linux_wait_for_event_1, handle_extended_wait): Use it.
15467 2010-04-30 Pedro Alves <pedro@codesourcery.com>
15469 * linux-low.c (linux_kill_one_lwp, linux_kill)
15470 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15471 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15472 SIGSTOP even if the LWP is stopped.
15473 (send_sigstop_callback): New.
15474 (stop_all_lwps): Use send_sigstop_callback instead.
15475 (linux_resume_one_thread): Adjust.
15476 (proceed_one_lwp): Still proceed an LWP that the client has
15477 requested to stop, if we haven't reported it as stopped yet. Make
15478 sure that LWPs the client want stopped, have a pending SIGSTOP.
15480 2010-04-26 Doug Evans <dje@google.com>
15482 * server.c (handle_general_set): Make static.
15484 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15485 Print received char after testing for error/eof instead of before.
15486 (input_interrupt): Tweak comment.
15488 2010-04-23 Doug Evans <dje@google.com>
15490 * server.c (start_inferior): Print inferior argv if --debug.
15492 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15494 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15495 * nto-x86-low.c: Include server.h
15497 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15499 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15500 be consistent with other sources of this directory.
15501 (init_registers_amd64): Correct name of source file of this function
15504 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15506 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15507 64-bit executables.
15509 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15511 * win32-i386-low.c: Add 64-bit support.
15512 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
15513 (init_registers_amd64): Declare.
15514 (mappings): Add 64-bit version of array.
15515 (init_windows_x86): New function.
15516 (the_low_target): Change init_arch field to init_windows_x86.
15518 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15520 * win32-low.c: Adapt to support also 64-bit architecture.
15521 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15522 (get_image_name): Use SIZE_T type for local variable `done'.
15523 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15524 (toolhelp_get_dll_name): Idem.
15525 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15526 Use uintptr_t typecast to avoid warning.
15527 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15528 (handle_exception): Use phex_nz to avoid warning.
15529 (win32_wait): Remove unused local variable `process'.
15531 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15533 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15536 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15538 * configure.ac: Use `ws2_32' library for srv_mingw.
15539 * configure: Regenerate.
15540 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15541 * remote-utils.c: Likewise.
15543 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15545 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15546 if __x86_64__ is defined.
15548 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15550 * configure: Regenerate.
15552 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15554 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15555 * target.h (target_ops): New get_tib_address field.
15556 * win32-low.h (win32_thread_info): Add thread_local_base field.
15557 * win32-low.c (child_add_thread): Add tlb argument.
15558 Set thread_local_base field to TLB.
15559 (get_child_debug_event): Adapt to child_add_thread change.
15560 (win32_get_tib_address): New function.
15561 (win32_target_ops): Set get_tib_address field to
15562 win32_get_tib_address.
15563 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15565 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15567 * linux-low.c (linux_mourn): Also remove the process.
15568 * server.c (handle_target_event): Don't remove the process here.
15569 * nto-low.c (nto_mourn): New.
15570 (nto_target_ops): Install it.
15571 * spu-low.c (spu_mourn): New.
15572 (spu_target_ops): Install it.
15573 * win32-low.c (win32_mourn): New.
15574 (win32_target_ops): Install it.
15576 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15578 * server.h (buffer_xml_printf): Remove redundant `;'.
15580 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15582 * regcache.c (set_register_cache): Invalidate regcaches before
15583 changing the register cache layout.
15584 (regcache_invalidate_one): Allow a NULL regcache.
15585 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15586 regcaches before changing the register cache layout or the target
15589 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15591 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15592 variable warning on Linux/x86-64.
15594 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15596 GDBserver disconnected tracing support.
15598 * linux-low.c (linux_remove_process): Delete.
15599 (add_lwp): Don't set last_resume_kind here.
15600 (linux_kill): Use `mourn'.
15601 (linux_detach): Use `thread_db_detach', and `mourn'.
15602 (linux_mourn): New.
15603 (linux_attach_lwp_1): Adjust comment.
15604 (linux_attach): last_resume_kind moved the thread_info; adjust.
15605 (status_pending_p_callback): Adjust.
15606 (linux_wait_for_event_1): Adjust.
15607 (count_events_callback, select_singlestep_lwp_callback)
15608 (select_event_lwp_callback, cancel_breakpoints_callback)
15609 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15610 (proceed_one_lwp): Adjust.
15611 (linux_async): Add debug output.
15612 (linux_thread_stopped): New.
15613 (linux_pause_all): New.
15614 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15616 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
15617 (thread_db_free): Delete declaration.
15618 (thread_db_detach, thread_db_mourn): Declare.
15619 * thread-db.c (thread_db_init): Use thread_db_mourn.
15620 (thread_db_free): Delete, split in two.
15621 (disable_thread_event_reporting): New.
15622 (thread_db_detach): New.
15623 (thread_db_mourn): New.
15625 * server.h (struct thread_info) <last_resume_kind>: New field.
15626 <attached>: Add comment.
15627 <gdb_detached>: New field.
15628 (handler_func): Change return type to int.
15629 (handle_serial_event, handle_target_event): Ditto.
15630 (gdb_connected): Declare.
15632 (disconnected_tracing): Declare.
15633 (stop_tracing): Declare.
15635 * server.c (handle_query) <qSupported>: Report support for
15636 disconnected tracing.
15637 (queue_stop_reply_callback): Account for running threads.
15638 (gdb_wants_thread_stopped): New.
15639 (gdb_wants_all_threads_stopped): New.
15640 (gdb_reattached_process): New.
15641 (handle_status): Clear the `gdb_detached' flag of all processes.
15642 In all-stop, stop all threads.
15643 (main): Be sure to leave tfind mode. Handle disconnected tracing.
15644 (process_serial_event): If the remote connection breaks, or if an
15645 exit was forced with "monitor exit", force an event loop exit.
15646 Handle disconnected tracing on detach.
15647 (handle_serial_event): Adjust.
15648 (handle_target_event): If GDB isn't connected, forward events back
15649 to the inferior, unless the last process exited, in which case,
15650 exit gdbserver. Adjust interface.
15652 * remote-utils.c (remote_open): Don't block in accept. Instead
15653 register an event loop source on the listen socket file
15654 descriptor. Refactor bits into ...
15655 (listen_desc): ... this new global.
15656 (gdb_connected): ... this new function.
15657 (enable_async_notification): ... this new function.
15658 (handle_accept_event): ... this new function.
15659 (remote_close): Clear remote_desc.
15661 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15663 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15665 (mourn_inferior): Define.
15666 (target_process_qsupported): Avoid the dangling else problem.
15667 (thread_stopped): Define.
15668 (pause_all): Define.
15669 (target_waitstatus_to_string): Declare.
15670 * target.c (target_waitstatus_to_string): New.
15672 * tracepoint.c (tracing): Make extern.
15673 (disconnected_tracing): New.
15674 (stop_tracing): Make extern. Handle tracing stops due to GDB
15676 (cmd_qtdisconnected): New.
15677 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15678 (handle_tracepoint_general_set): Handle QTDisconnected.
15680 * event-loop.c (event_handler_func): Change return type to int.
15681 (process_event): Bail out if the event handler wants the event
15683 (handle_file_event): Ditto.
15684 (start_event_loop): Bail out if the event handler wants the event
15687 * nto-low.c (nto_target_ops): Adjust.
15688 * spu-low.c (spu_wait): Don't remove the process here.
15689 (spu_target_ops): Adjust.
15690 * win32-low.c (win32_wait): Don't remove the process here.
15691 (win32_target_ops): Adjust.
15693 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15695 * regcache.c (realloc_register_cache): Invalidate inferior's
15696 regcache before recreating it.
15698 2010-04-09 Pedro Alves <pedro@codesourcery.com>
15700 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15702 2010-04-09 Stan Shebs <stan@codesourcery.com>
15703 Pedro Alves <pedro@codesourcery.com>
15705 * server.h (LONGEST): New.
15706 (struct thread_info) <while_stepping>: New field.
15707 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15709 (initialize_tracepoint, handle_tracepoint_general_set)
15710 (handle_tracepoint_query, tracepoint_finished_step)
15711 (tracepoint_was_hit, release_while_stepping_state_list):
15712 (current_traceframe): Declare.
15713 * server.c (handle_general_set): Handle tracepoint packets.
15714 (read_memory): New.
15715 (write_memory): New.
15716 (handle_search_memory_1): Use read_memory.
15717 (handle_query): Report support for conditional tracepoints, trace
15718 state variables, and tracepoint sources. Handle tracepoint
15720 (main): Initialize the tracepoints module.
15721 (process_serial_event): Handle traceframe reads/writes.
15723 * linux-low.c (handle_tracepoints): New.
15724 (linux_wait_1): Call it.
15725 (linux_resume_one_lwp): Handle while-stepping.
15726 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
15727 (linux_target_ops): Install them.
15728 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
15730 * linux-x86-low.c (x86_supports_tracepoints): New.
15731 (the_low_target). Install it.
15733 * mem-break.h (delete_breakpoint): Declare.
15734 * mem-break.c (delete_breakpoint): Make external.
15736 * target.h (struct target_ops): Add `supports_tracepoints',
15737 `read_pc', and `write_pc' fields.
15738 (target_supports_tracepoints): Define.
15739 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
15742 * regcache.h (struct regcache) <registers_owned>: New field.
15743 (init_register_cache, regcache_cpy): Declare.
15744 (regcache_read_pc, regcache_write_pc): Declare.
15745 (register_cache_size): Declare.
15746 (supply_regblock): Declare.
15747 * regcache.c (init_register_cache): New.
15748 (new_register_cache): Use it.
15749 (regcache_cpy): New.
15750 (register_cache_size): New.
15751 (supply_regblock): New.
15752 (regcache_read_pc, regcache_write_pc): New.
15754 * tracepoint.c: New.
15756 * Makefile.in (OBS): Add tracepoint.o.
15757 (tracepoint.o): New rule.
15759 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15761 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15763 (i386-mmx.c): Likewise.
15764 (i386-mmx-linux.o): Likewise.
15765 (i386-mmx-linux.c): Likewise.
15767 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
15768 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
15769 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
15770 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
15772 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
15773 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
15774 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
15776 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15778 * Makefile.in (clean): Updated.
15780 (i386-avx.c): Likewise.
15781 (i386-avx-linux.o): Likewise.
15782 (i386-avx-linux.c): Likewise.
15783 (amd64-avx.o): Likewise.
15784 (amd64-avx.c): Likewise.
15785 (amd64-avx-linux.o): Likewise.
15786 (amd64-avx-linux.c): Likewise.
15788 * configure.srv (srv_i386_regobj): Add i386-avx.o.
15789 (srv_i386_linux_regobj): Add i386-avx-linux.o.
15790 (srv_amd64_regobj): Add amd64-avx.o.
15791 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
15792 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
15793 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
15794 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
15795 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
15796 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
15797 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
15799 * i387-fp.c: Include "i386-xstate.h".
15801 (i387_cache_to_xsave): Likewise.
15802 (i387_xsave_to_cache): Likewise.
15803 (x86_xcr0): Likewise.
15805 * i387-fp.h (i387_cache_to_xsave): Likewise.
15806 (i387_xsave_to_cache): Likewise.
15807 (x86_xcr0): Likewise.
15809 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
15810 * linux-crisv32-low.c (target_regsets): Likewise.
15811 * linux-m68k-low.c (target_regsets): Likewise.
15812 * linux-mips-low.c (target_regsets): Likewise.
15813 * linux-ppc-low.c (target_regsets): Likewise.
15814 * linux-s390-low.c (target_regsets): Likewise.
15815 * linux-sh-low.c (target_regsets): Likewise.
15816 * linux-sparc-low.c (target_regsets): Likewise.
15817 * linux-xtensa-low.c (target_regsets): Likewise.
15819 * linux-low.c: Include <sys/uio.h>.
15820 (regsets_fetch_inferior_registers): Support nt_type.
15821 (regsets_store_inferior_registers): Likewise.
15822 (linux_process_qsupported): New.
15823 (linux_target_ops): Add linux_process_qsupported.
15825 * linux-low.h (regset_info): Add nt_type.
15826 (linux_target_ops): Add process_qsupported.
15828 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15830 (init_registers_i386_avx_linux): New.
15831 (init_registers_amd64_avx_linux): Likewise.
15832 (xmltarget_i386_linux_no_xml): Likewise.
15833 (xmltarget_amd64_linux_no_xml): Likewise.
15834 (PTRACE_GETREGSET): Likewise.
15835 (PTRACE_SETREGSET): Likewise.
15836 (x86_fill_xstateregset): Likewise.
15837 (x86_store_xstateregset): Likewise.
15838 (use_xml): Likewise.
15839 (x86_linux_update_xmltarget): Likewise.
15840 (x86_linux_process_qsupported): Likewise.
15841 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
15842 (x86_arch_setup): Don't call init_registers_amd64_linux nor
15843 init_registers_i386_linux here. Call
15844 x86_linux_update_xmltarget.
15845 (the_low_target): Add x86_linux_process_qsupported.
15847 * server.c (handle_query): Call target_process_qsupported.
15849 * target.h (target_ops): Add process_qsupported.
15850 (target_process_qsupported): New.
15852 2010-04-03 Pedro Alves <pedro@codesourcery.com>
15854 * inferiors.c (add_thread): Set last_status kind to
15855 TARGET_WAITKIND_IGNORE.
15856 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
15857 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
15858 (linux_wait_1): Move `thread' local definition to block that uses
15859 it. Don't NULL initialize `event_child'.
15860 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
15861 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
15862 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
15864 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15866 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15867 an extended waitstatus, or by a watchpoint.
15868 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15869 thread was stepping or has been stopped by a watchpoint.
15871 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15873 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15874 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15875 of another, then delete the previous, and validate all
15877 (validate_inserted_breakpoint): New.
15878 (delete_disabled_breakpoints): New.
15879 (validate_breakpoints): New.
15880 (check_mem_read): Validate breakpoints before trusting their
15881 shadow. Delete disabled breakpoints.
15882 (check_mem_write): Validate breakpoints before trusting they
15883 should be inserted. Delete disabled breakpoints.
15884 * mem-break.h (validate_breakpoints):
15885 * server.c (handle_query): Validate breakpoints when we see a
15888 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15890 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
15891 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
15892 if we could tell there's a GDB breakpoint at stop_pc.
15893 (need_step_over_p): Don't do a step over if we find a GDB
15894 breakpoint at the resume PC.
15896 * mem-break.c (struct raw_breakpoint): New.
15897 (enum bkpt_type): New type `gdb_breakpoint'.
15898 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
15899 fields. New field `raw'.
15900 (find_raw_breakpoint_at): New.
15901 (set_raw_breakpoint_at): Handle refcounting. Create a raw
15902 breakpoint instead.
15903 (set_breakpoint_at): Adjust.
15904 (delete_raw_breakpoint): New.
15905 (release_breakpoint): New.
15906 (delete_breakpoint): Rename to...
15907 (delete_breakpoint_1): ... this. Add proc parameter. Use
15908 release_breakpoint. Return ENOENT.
15909 (delete_breakpoint): Reimplement.
15910 (find_breakpoint_at): Delete.
15911 (find_gdb_breakpoint_at): New.
15912 (delete_breakpoint_at): Delete.
15913 (set_gdb_breakpoint_at): New.
15914 (delete_gdb_breakpoint_at): New.
15915 (gdb_breakpoint_here): New.
15916 (set_reinsert_breakpoint): Use release_breakpoint.
15917 (uninsert_breakpoint): Rename to ...
15918 (uninsert_raw_breakpoint): ... this.
15919 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
15920 (reinsert_raw_breakpoint): Change parameter type to
15922 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
15924 (check_breakpoints): Adjust. Use release_breakpoint.
15925 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
15926 (breakpoint_inserted_here): Ditto.
15927 (check_mem_read): Adjust to iterate over raw breakpoints instead.
15928 Don't trust the breakpoint's shadow if it is not inserted.
15929 (check_mem_write): Adjust to iterate over raw breakpoints instead.
15930 (delete_all_breakpoints): Adjust.
15931 (free_all_breakpoints): Mark all breakpoints as uninserted, and
15932 use delete_breakpoint_1.
15934 * mem-break.h (breakpoints_supported): Delete declaration.
15935 (set_gdb_breakpoint_at): Declare.
15936 (gdb_breakpoint_here): Declare.
15937 (delete_breakpoint_at): Delete.
15938 (delete_gdb_breakpoint_at): Declare.
15940 * server.h (struct raw_breakpoint): Forward declare.
15941 (struct process_info): New field `raw_breakpoints'.
15943 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
15946 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15948 * linux-low.c (status_pending_p_callback): Fix comment.
15949 (linux_wait_for_event_1): Move most of the internal breakpoint
15950 handling from here...
15951 (linux_wait_1): ... to here.
15952 (count_events_callback): New.
15953 (select_singlestep_lwp_callback): New.
15954 (select_event_lwp_callback): New.
15955 (cancel_breakpoints_callback): New.
15956 (select_event_lwp): New.
15957 (linux_wait_1): Simplify internal breakpoint handling. Give equal
15958 priority to all LWPs that have had events that should be reported
15959 to the client. Cancel breakpoints when about to reporting the
15960 event to the client, not while stopping lwps. No longer cancel
15961 finished single-steps here.
15962 (cancel_finished_single_step): Delete.
15963 (cancel_finished_single_steps): Delete.
15965 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15967 * mem-break.c (enum bkpt_type): New.
15968 (struct breakpoint): New field `type'.
15969 (set_breakpoint_at): Change return type to struct breakpoint
15970 pointer. Set type to `other_breakpoint' by default.
15971 (delete_breakpoint): Rewrite, supporting more than one breakpoint
15972 in the breakpoint list.
15973 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
15974 (reinsert_breakpoint): Rename to ...
15975 (reinsert_raw_breakpoint): ... this.
15976 (reinsert_breakpoints_at): Adjust.
15977 * mem-break.h (struct breakpoint): Declare.
15978 (set_breakpoint_at): Change return type to struct breakpoint
15981 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15983 * server.c (handle_query): Assign, not compare.
15985 2010-03-24 Pedro Alves <pedro@codesourcery.com>
15987 Teach linux gdbserver to step-over-breakpoints.
15989 * linux-low.c (can_hardware_single_step): New.
15990 (supports_breakpoints): New.
15991 (handle_extended_wait): If stopping threads, read the stop pc of
15992 the new cloned LWP.
15994 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
15995 low target doesn't support retrieving the PC.
15996 (add_lwp): Set last_resume_kind to resume_continue.
15997 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
15998 (linux_attach): Don't clear stop_expected. Set the lwp's
15999 last_resume_kind to resume_stop.
16000 (linux_detach_one_lwp): Don't check for removed breakpoints.
16001 (check_removed_breakpoint): Delete.
16002 (status_pending_p): Rename to ...
16003 (status_pending_p_callback): ... this. Don't check for removed
16004 breakpoints. Don't consider threads that are stopped from GDB's
16006 (linux_wait_for_lwp): Always read the stop_pc here.
16007 (cancel_breakpoint): New.
16008 (step_over_bkpt): New global.
16009 (linux_wait_for_event_1): Implement stepping over breakpoints.
16010 (gdb_wants_lwp_stopped): New.
16011 (gdb_wants_all_stopped): New.
16012 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
16013 single-step traps here. Store the thread's last reported target
16015 (send_sigstop): Don't clear stop_expected. Always set it,
16017 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
16018 (cancel_finished_single_step): New.
16019 (cancel_finished_single_steps): New.
16020 (wait_for_sigstop): Don't cancel finished single-step traps here.
16021 (linux_resume_one_lwp): Don't check for removed breakpoints.
16022 Don't set `step' on non-hardware step archs.
16023 (linux_set_resume_request): Ignore resume_stop requests if already
16024 stopping or stopped. Set the lwp's last_resume_kind.
16025 (resume_status_pending_p): Don't check for removed breakpoints.
16026 (need_step_over_p): New.
16027 (start_step_over): New.
16028 (finish_step_over): New.
16029 (linux_resume_one_thread): Always queue a sigstop for resume_stop
16030 requests. Clear the thread's last reported target waitstatus.
16031 Don't use the `suspended' flag. Don't consider pending breakpoints.
16032 (linux_resume): Start a step-over if necessary.
16033 (proceed_one_lwp): New.
16034 (proceed_all_lwps): New.
16035 (unstop_all_lwps): New.
16036 * linux-low.h (struct lwp_info): Rewrite comment for the
16037 `suspended' flag. Add the `stop_pc' field. Delete the
16038 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
16039 Add `'last_resume_kind' and `need_step_over' fields.
16040 * inferiors.c (struct thread_info): Delete, moved elsewhere.
16041 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
16042 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
16043 (set_raw_breakpoint_at): New.
16044 (set_breakpoint_at): Rewrite to use it.
16045 (reinsert_breakpoint_handler): Delete.
16046 (set_reinsert_breakpoint): New.
16047 (reinsert_breakpoint_by_bp): Delete.
16048 (delete_reinsert_breakpoints): New.
16049 (uninsert_breakpoint): Rewrite.
16050 (uninsert_breakpoints_at): New.
16051 (reinsert_breakpoint): Rewrite.
16052 (reinsert_breakpoints_at): New.
16053 (check_breakpoints): Rewrite.
16054 (breakpoint_here): New.
16055 (breakpoint_inserted_here): New.
16056 (check_mem_read): Adjust.
16057 * mem-break.h (breakpoints_supported, breakpoint_here)
16058 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
16059 (reinsert_breakpoint_by_bp): Delete declaration.
16060 (delete_reinsert_breakpoints): Declare.
16061 (reinsert_breakpoint): Delete declaration.
16062 (reinsert_breakpoints_at): Declare.
16063 (uninsert_breakpoint): Delete declaration.
16064 (uninsert_breakpoints_at): Declare.
16065 (check_breakpoints): Adjust prototype.
16066 * server.h: Adjust include order.
16067 (struct thread_info): Declare here. Add a `last_status' field.
16069 2010-03-23 Michael Snyder <msnyder@vmware.com>
16071 * server.c (crc32): New function.
16072 (handle_query): Add handling for 'qCRC:' request.
16074 2010-03-23 Pedro Alves <pedro@codesourcery.com>
16076 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
16077 lwp had been stopped by a watchpoint.
16079 2010-03-16 Pedro Alves <pedro@codesourcery.com>
16081 * server.h (internal_error): Declare.
16082 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
16083 * utils.c (internal_error): New function.
16085 2010-03-15 Andreas Schwab <schwab@redhat.com>
16087 * configure.srv: Fix typo setting srv_regobj.
16089 2010-03-15 Pedro Alves <pedro@codesourcery.com>
16091 * linux-low.c (fetch_register): Avoid passing a non string literal
16093 (usr_store_inferior_registers): Ditto.
16095 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16097 * linux-low.c (linux_write_memory): Bail out early if peeking
16100 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16102 * linux-low.h (struct lwp_info): New fields
16103 `stopped_by_watchpoint' and `stopped_data_address'.
16104 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
16105 here, and cache them in the lwp object.
16106 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
16108 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
16110 (linux_stopped_by_watchpoint): Rewrite.
16111 (linux_stopped_data_address): Rewrite.
16113 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
16115 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
16116 switching the current inferior, not before.
16118 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
16120 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
16121 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
16122 i386-linux.c and amd64-linux.c.
16123 (reg-i386.o): Removed.
16124 (reg-i386.c): Likewise.
16125 (reg-i386-linux.o): Likewise.
16126 (reg-i386-linux.c): Likewise.
16127 (reg-x86-64.o): Likewise.
16128 (reg-x86-64.c): Likewise.
16129 (reg-x86-64-linux.o): Likewise.
16130 (reg-x86-64-linux.c): Likewise.
16132 (i386.c): Likewise.
16133 (i386-linux.o): Likewise.
16134 (i386-linux.c): Likewise.
16135 (amd64.o): Likewise.
16136 (amd64.c): Likewise.
16137 (amd64-linux.o): Likewise.
16138 (amd64-linux.c): Likewise.
16140 * configure.srv (srv_i386_regobj): New.
16141 (srv_i386_linux_regobj): Likewise.
16142 (srv_amd64_regobj): Likewise.
16143 (srv_amd64_linux_regobj): Likewise.
16144 (srv_i386_32bit_xmlfiles): Likewise.
16145 (srv_i386_64bit_xmlfiles): Likewise.
16146 (srv_i386_xmlfiles): Likewise.
16147 (srv_amd64_xmlfiles): Likewise.
16148 (srv_i386_linux_xmlfiles): Likewise.
16149 (srv_amd64_linux_xmlfiles): Likewise.
16150 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
16151 srv_xmlfiles to $srv_i386_xmlfiles.
16152 (i[34567]86-*-mingw32ce*): Likewise.
16153 (i[34567]86-*-mingw*): Likewise.
16154 (i[34567]86-*-nto*): Likewise.
16155 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
16156 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
16157 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
16158 (x86_64-*-linux*): Likewise.
16160 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
16161 (init_registers_amd64_linux): New.
16162 (x86_arch_setup): Replace init_registers_x86_64_linux with
16163 init_registers_amd64_linux.
16165 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
16167 * configure.ac: Check for libdl. If it is not available link against
16168 static libthread_db.
16169 * configure: Regenerate.
16171 2010-02-22 Pedro Alves <pedro@codesourcery.com>
16175 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
16176 handing a read watchpoint.
16177 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
16179 2010-02-12 Doug Evans <dje@google.com>
16181 * linux-low.c (linux_supports_tracefork_flag): Document.
16182 (linux_look_up_symbols): Add comment.
16184 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
16186 * regcache.c (supply_register): Clear regcache if buf is NULL.
16188 2010-02-02 Nicolas Roche <roche@sourceware.org>
16189 Joel Brobecker <brobecker@adacore.com>
16191 * inferiors.c (find_inferior): Add function documentation.
16192 (unloaded_dll): Handle the case where the unloaded dll has not
16193 been previously registered in the dll list.
16195 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16197 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16198 (thumb2_breakpoint): New.
16199 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16201 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16203 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16204 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16207 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16209 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16211 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16213 * linux-s390-low.c (s390_collect_ptrace_register)
16214 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16216 2010-01-21 Doug Evans <dje@google.com>
16218 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16219 (PTRACE_ARG4_TYPE): New macro.
16220 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16221 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16222 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16223 (usr_store_inferior_registers): Ditto.
16224 (linux_read_memory, linux_write_memory): Ditto.
16225 (linux_test_for_tracefork): Ditto.
16227 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16228 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16230 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16232 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16235 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16237 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16238 prototype to take a regcache. Adjust.
16240 2010-01-20 Pedro Alves <pedro@codesourcery.com>
16242 * regcache.h (struct thread_info): Forward declare.
16243 (struct regcache): New.
16244 (new_register_cache): Adjust prototype.
16245 (get_thread_regcache): Declare.
16246 (free_register_cache): Adjust prototype.
16247 (registers_to_string, registers_from_string): Ditto.
16248 (supply_register, supply_register_by_name, collect_register)
16249 (collect_register_as_string, collect_register_by_name): Ditto.
16250 * regcache.c (struct inferior_regcache_data): Delete.
16251 (get_regcache): Rename to ...
16252 (get_thread_regcache): ... this. Adjust. Switch inferior before
16253 fetching registers.
16254 (regcache_invalidate_one): Adjust.
16255 (regcache_invalidate): Fix prototype.
16256 (new_register_cache): Return the new register cache.
16257 (free_register_cache): Change prototype.
16258 (realloc_register_cache): Adjust.
16259 (registers_to_string): Change prototype to take a regcache. Adjust.
16260 (registers_from_string): Ditto.
16261 (register_data): Ditto.
16262 (supply_register): Ditto.
16263 (supply_register_by_name): Ditto.
16264 (collect_register): Ditto.
16265 (collect_register_as_string): Ditto.
16266 (collect_register_by_name): Ditto.
16267 * server.c (process_serial_event): Adjust.
16268 * linux-low.h (regset_fill_func, regset_store_func): Change
16270 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16272 * linux-low.c (get_stop_pc): Adjust.
16273 (check_removed_breakpoint): Adjust.
16274 (linux_wait_for_event): Adjust.
16275 (linux_resume_one_lwp): Adjust.
16276 (fetch_register): Add regcache parameter. Adjust.
16277 (usr_store_inferior_registers): Ditto.
16278 (regsets_fetch_inferior_registers): Ditto.
16279 (regsets_store_inferior_registers): Ditto.
16280 (linux_fetch_registers, linux_store_registers): Ditto.
16281 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16283 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16285 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16286 prototype to take a regcache.
16287 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16288 * remote-utils.c (convert_ascii_to_int, outreg)
16289 (prepare_resume_reply): Change prototype to take a regcache.
16291 * target.h (struct target_ops) <fetch_registers, store_registers>:
16292 Change prototype to take a regcache.
16293 (fetch_inferior_registers, store_inferior_registers): Change
16294 prototype to take a regcache. Adjust.
16295 * proc-service.c (ps_lgetregs): Adjust.
16296 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16297 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16298 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16299 take a regcache. Adjust.
16300 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16301 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16302 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16303 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16304 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16305 (cris_cannot_fetch_register):
16306 (cris_breakpoint_at): Change prototype to take a regcache.
16308 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16309 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16310 to take a regcache. Adjust.
16311 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16313 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16314 take a regcache. Adjust.
16315 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16316 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16317 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16318 * linux-mips-low.c (mips_get_pc):
16319 (mips_set_pc): Change prototype to take a regcache. Adjust.
16320 (mips_reinsert_addr): Adjust.
16321 (mips_collect_register): Change prototype to take a regcache.
16323 (mips_supply_register):
16324 (mips_collect_register_32bit, mips_supply_register_32bit)
16325 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16326 (mips_store_fpregset): Ditto.
16327 * linux-ppc-low.c (ppc_supply_ptrace_register)
16328 (ppc_supply_ptrace_register): Ditto.
16329 (parse_spufs_run): Adjust.
16330 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16331 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16332 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16333 take a regcache. Adjust.
16334 * linux-s390-low.c (s390_collect_ptrace_register)
16335 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16336 (s390_set_pc): Change prototype to take a regcache. Adjust.
16337 (s390_arch_setup): Adjust.
16338 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16339 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16340 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16341 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16342 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16344 (sparc_breakpoint_at): Adjust.
16345 * linux-xtensa-low.c (xtensa_fill_gregset):
16346 (xtensa_store_gregset):
16347 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16348 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16349 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16350 prototype to take a regcache. Adjust.
16351 * win32-arm-low.c (arm_fetch_inferior_register)
16352 (arm_store_inferior_register): Change prototype to take a
16354 * win32-i386-low.c (i386_fetch_inferior_register)
16355 (i386_store_inferior_register): Change prototype to take a
16357 * win32-low.c (child_fetch_inferior_registers)
16358 (child_store_inferior_registers): Change prototype to take a
16360 (win32_wait): Adjust.
16361 (win32_fetch_inferior_registers): Change prototype to take a
16363 (win32_store_inferior_registers): Adjust.
16364 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16365 store_inferior_register>: Change prototype to take a regcache.
16367 2010-01-20 Doug Evans <dje@google.com>
16369 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16371 (linux_wait_for_event1, linux_init_signals): Ditto.
16372 (W_STOPCODE): Provide definition if missing.
16374 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16376 * linux-low.c (linux_core_of_thread): New.
16377 (compare_ints, show_process, list_threads): New.
16378 (linux_qxfer_osdata): Report threads and cores.
16379 (linux_target_op): Register linux_core_of_thread.
16380 * remote-utils.c (prepare_resume_reply): Report the core.
16381 (buffer_xml_printf): Support %d specifier.
16382 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16384 (handle_query): Handle qXfer:threads. Announce availability
16386 * target.h (struct target_ops): New field core_of_thread.
16388 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16390 * Makefile.in (clean): Remove new generated files.
16391 (reg-s390.o, reg-s390.c): Remove rules.
16392 (reg-s390x.o, reg-s390x.c): Likewise.
16393 (s390-linux32.o, s390-linux32.c): Add rules.
16394 (s390-linux64.o, s390-linux64.c): Likewise.
16395 (s390x-linux64.o, s390x-linux64.c): Likewise.
16396 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16397 * linux-s390-low.c: Include <elf.h>.
16398 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16399 (init_registers_s390): Remove prototype.
16400 (init_registers_s390x): Likewise.
16401 (init_registers_s390_linux32): Add prototype.
16402 (init_registers_s390_linux64): Likewise.
16403 (init_registers_s390x_linux64): Likewise.
16404 (s390_num_regs_3264): New define.
16405 (s390_regmap_3264): New global variable.
16406 (s390_cannot_fetch_register): Remove obsolete check.
16407 (s390_cannot_store_register): Likewise.
16408 (s390_collect_ptrace_register): Handle upper/lower register halves.
16409 (s390_supply_ptrace_register): Likewise.
16410 (s390_fill_gregset): Update to register number changes.
16411 (s390_get_hwcap): New routine.
16412 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16413 Install appropriate regmap and register set.
16415 2010-01-01 Joel Brobecker <brobecker@adacore.com>
16417 * server.c (gdbserver_version): Update copyright year to 2010.
16418 * gdbreplay.c (gdbreplay_version): Likewise.
16420 2009-12-28 Doug Evans <dje@google.com>
16422 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16423 elf/external.h. Include <elf.h> instead but only if necessary.
16425 2009-12-28 Pedro Alves <pedro@codesourcery.com>
16427 * linux-low.c (linux_remove_process): Remove `detaching'
16428 parameter. Don't release/detach from thread_db here.
16429 (linux_kill): Release/detach from thread_db here, ...
16430 (linux_detach): ... and here, before actually detaching.
16431 (linux_wait_1): ... and here, when a process exits.
16432 * thread-db.c (any_thread_of): New.
16433 (thread_db_free): Switch the current inferior to a thread of the
16436 2009-12-21 Doug Evans <dje@google.com>
16438 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16440 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16441 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16442 warning ifndef __NR_tkill. Move setting of errno there too.
16443 Delete unnecessary resetting of errno after syscall.
16444 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16446 * configure.ac: Check for dladdr.
16447 * config.in: Regenerate.
16448 * configure: Regenerate.
16449 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16450 (try_thread_db_load): Update.
16452 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16454 2009-12-18 Doug Evans <dje@google.com>
16456 * event-loop.c: Include unistd.h if it exists.
16458 * linux-low.c (my_waitpid): Move definition away from being in
16459 between linux_tracefork_child/linux_test_for_tracefork.
16461 * gdb_proc_service.h (psaddr_t): Fix type.
16462 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16463 signature to match glibc.
16465 2009-12-16 Doug Evans <dje@google.com>
16467 * linux-low.c (linux_read_memory): Fix argument to read.
16469 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16471 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16472 events, don't leave current_inferior pointing at null.
16474 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16476 * win32-low.c (LOG): Delete.
16477 (OUTMSG): Output to stderr.
16478 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16479 on compile time LOG macro.
16480 (win32_wait): Fix debug output.
16482 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16484 * win32-low.c (win32_add_one_solib): If the dll name is
16485 "ntdll.dll", prepend the system directory to the dll path.
16487 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16489 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16491 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
16492 Vladimir Prus <vladimir@codesourcery.com>
16494 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16495 * configure.ac: Check for __mcoldfire__ and set
16496 gdb_cv_m68k_is_coldfire.
16497 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16498 reg-cf.o and reg-m68k.o.
16499 * configure: Regenerated.
16501 2009-11-16 Pedro Alves <pedro@codesourcery.com>
16503 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16504 Pass it to thread_db_free.
16505 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16506 proper `detaching' argument to linux_remove_process.
16507 * linux-low.h (thread_db_free): Add `detaching' parameter.
16508 * thread-db.c (thread_db_init): Pass false as `detaching' argument
16510 (thread_db_free): Add `detaching' parameter. Only
16511 call td_ta_clear_event if detaching from process.
16513 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16515 * thread-db.c (thread_db_free): Fix typo.
16517 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16520 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16522 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16524 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16525 with an i686 compiler.
16526 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16528 * configure: Rebuilt.
16530 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16534 * server.c (handle_search_memory_1): Correct read_addr initialization
16535 in loop for searching subsequent chunks.
16537 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16539 * configure.ac: New --with-libthread-db option.
16540 * thread-db.c: Allow direct dependence on libthread_db.
16541 (thread_db_free): Adjust.
16542 * config.in: Regenerate.
16543 * configure: Likewise.
16545 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16548 * thread-db.c (attach_thread): New function.
16549 (maybe_attach_thread): Return success/failure.
16550 (find_new_threads_callback): Adjust.
16551 (thread_db_find_new_threads): Loop until no new threads.
16553 2009-10-13 Pedro Alves <pedro@codesourcery.com>
16555 * proc-service.c (ps_lgetregs): Formatting.
16557 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16559 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16560 * configure.ac: Adjust.
16561 * linux-low.h (struct process_info_private): Move members to struct
16563 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16564 * linux-low.c (linux_remove_process): Adjust.
16565 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16566 * server.c (handle_query): Move code ...
16567 (handle_monitor_command): ... here. New function.
16568 * target.h (struct target_ops): New member.
16569 * thread-db.c (struct thread_db): New.
16570 (libthread_db_search_path): New variable.
16571 (thread_db_create_event, thread_db_enable_reporting)
16572 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16573 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16574 (try_thread_db_load_1, dladdr_to_soname): New functions.
16575 (try_thread_db_load, thread_db_load_search): New functions.
16576 (thread_db_init): Search for libthread_db.
16577 (thread_db_free): New function.
16578 (thread_db_handle_monitor_command): Likewise.
16579 * config.in: Regenerate.
16580 * configure: Regenerate.
16582 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16584 * spu-low.c (spu_kill): Wait for inferior to terminate.
16585 Call clear_inferiors.
16586 (spu_detach): Call clear_inferiors.
16588 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16590 * aclocal.m4: Regenerate.
16591 * config.in: Likewise.
16592 * configure: Likewise.
16594 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16596 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16597 (parse_spufs_run): New function.
16598 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16599 (ppc_breakpoint_at): Handle SPU breakpoints.
16601 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16603 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16604 (SPUFS_MAGIC): Define.
16605 (spu_enumerate_spu_ids): New function.
16606 (linux_qxfer_spu): New function.
16607 (linux_target_ops): Install linux_qxfer_spu.
16609 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16611 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16612 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16613 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16614 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16615 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
16616 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
16617 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
16618 (init_registers_powerpc_cell32l): Add prototype.
16619 (init_registers_powerpc_cell64l): Likewise.
16620 (ppc_arch_setup): Detect Cell/B.E. architecture.
16622 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16624 * Makefile.in (datarootdir): New variable.
16626 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16628 * linux-low.c (linux_write_memory): Update debugging output.
16629 * Makefile.in (clean): Add new descriptions.
16630 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
16631 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
16632 * configure.srv: Add new files for arm*-*-linux*.
16633 * linux-arm-low.c: Add new declarations.
16634 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
16635 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
16636 (HWCAP_VFPv3D16): New.
16637 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
16638 instead of __IWMMXT__.
16639 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
16640 (arm_arch_setup): New.
16641 (target_regsets): Remove #ifdef. Add VFP regset.
16642 (the_low_target): Use arm_arch_setup.
16644 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16646 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16647 the main thread again.
16649 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16651 Adding Neutrino gdbserver.
16652 * configure: Regenerated.
16653 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
16654 * configure.srv (i[34567]86-*-nto*): New target.
16655 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
16656 * remote-utils.c [__QNX__]: Include sys/iomgr.h
16657 (nto_comctrl) [__QNX__]: New function.
16658 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
16660 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
16662 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16665 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16666 Pedro Alves <pedro@codesourcery.com>
16668 * win32-i386-low.c (i386_get_thread_context): Handle systems that
16669 don't support CONTEXT_EXTENDED_REGISTERS.
16670 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
16671 (the_low_target): Install them.
16672 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
16673 failing with ERROR_PIPE_NOT_CONNECTED.
16675 2009-06-30 Doug Evans <dje@google.com>
16676 Pierre Muller <muller@ics.u-strasbg.fr>
16678 Add h/w watchpoint support to x86-linux, win32-i386.
16679 * Makefile.in (SFILES): Add i386-low.c
16680 (i386_low_h): Define.
16681 (i386-low.o): Add dependencies.
16682 (linux-x86-low.o): Add i386-low.h dependency.
16683 (win32-i386-low.o): Ditto.
16684 * i386-low.c: New file.
16685 * i386-low.h: New file.
16686 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
16687 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
16688 * linux-low.c (linux_add_process): Initialize arch_private.
16689 (linux_remove_process): Free arch_private.
16690 (add_lwp): Initialize arch_private.
16691 (delete_lwp): Free arch_private.
16692 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
16694 * linux-low.h (process_info_private): New member arch_private.
16695 (lwp_info): New member arch_private.
16696 (linux_target_ops): New members new_process, new_thread,
16698 (ptid_of): New macro.
16699 * linux-x86-low.c: Include stddef.h, i386-low.h.
16700 (arch_process_info): New struct.
16701 (arch_lwp_info): New struct.
16702 (x86_linux_dr_get, x86_linux_dr_set): New functions.
16703 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16704 (i386_dr_low_get_status): New function.
16705 (x86_insert_point, x86_remove_point): New functions.
16706 (x86_stopped_by_watchpoint): New function.
16707 (x86_stopped_data_address): New function.
16708 (x86_linux_new_process, x86_linux_new_thread): New functions.
16709 (x86_linux_prepare_to_resume): New function.
16710 (the_low_target): Add entries for insert_point, remove_point,
16711 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
16713 * server.c (debug_hw_points): New global.
16714 (monitor_show_help): Document set debug-hw-points.
16715 (handle_query): Process "set debug-hw-points".
16716 * server.h (debug_hw_points): Declare.
16717 (paddress): Declare.
16718 * utils.c (NUMCELLS, CELLSIZE): New macros.
16719 (get_sell, xsnprintf, paddress): New functions.
16720 * win32-arm-low.c (the_low_target): Add entries for insert_point,
16721 remove_point, stopped_by_watchpoint, stopped_data_address.
16722 * win32-i386-low.c: Include i386-low.h.
16723 (debug_reg_state): Replaces dr.
16724 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16725 (i386_dr_low_get_status): New function.
16726 (i386_insert_point, i386_remove_point): New functions.
16727 (i386_stopped_by_watchpoint): New function.
16728 (i386_stopped_data_address): New function.
16729 (i386_initial_stuff): Update.
16730 (get_thread_context,set_thread_context,i386_thread_added): Update.
16731 (the_low_target): Add entries for insert_point,
16732 remove_point, stopped_by_watchpoint, stopped_data_address.
16733 * win32-low.c (win32_insert_watchpoint): New function.
16734 (win32_remove_watchpoint): New function.
16735 (win32_stopped_by_watchpoint): New function.
16736 (win32_stopped_data_address): New function.
16737 (win32_target_ops): Add entries for insert_watchpoint,
16738 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
16739 * win32-low.h (win32_target_ops): New members insert_point,
16740 remove_point, stopped_by_watchpoint, stopped_data_address.
16742 2009-06-25 Pedro Alves <pedro@codesourcery.com>
16744 * server.c (process_serial_event): Re-return unsupported, not
16745 error, if the type isn't recognized. Re-allow supporting only
16746 insert or remove packets. Also call require_running for
16747 breakpoints. Add missing break statement to default case. Tidy.
16748 * target.h (struct target_ops): Rename insert_watchpoint to
16749 insert_point, and remove_watchpoint to remove_point.
16751 * linux-low.h (struct linux_target_ops): Likewise.
16752 * linux-low.c (linux_insert_watchpoint): Rename to ...
16753 (linux_insert_point): ... this. Adjust.
16754 (linux_remove_watchpoint): Rename to ...
16755 (linux_remove_point): ... this. Adjust.
16756 (linux_target_ops): Adjust.
16757 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
16758 (cris_insert_point): ... this.
16759 (cris_remove_watchpoint): Rename to ...
16760 (cris_remove_point): ... this.
16761 (the_low_target): Adjust.
16763 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16765 * server.c (handle_v_kill): Pass signal_pid to
16766 kill_inferior if multi_process is zero.
16768 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16770 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
16771 * target.h (target_ops): Comment for *_watchpoint to make it clear
16772 the functions can get types '0' and '1'.
16774 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16776 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
16777 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
16778 * regcache.c (get_regcache): Likewise.
16779 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
16780 * win32-low.c (child_fetch_inferior_registers): Remove check for
16783 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16784 Pedro Alves <pedro@codesourcery.com>
16786 * target.h (struct target_ops) <supports_multi_process>: New
16788 (target_supports_multi_process): New.
16789 * server.c (handle_query): Even if GDB reports support, only
16790 enable multi-process if the target also supports it. Report
16791 multi-process support only if the target backend supports it.
16792 * linux-low.c (linux_supports_multi_process): New function.
16793 (linux_target_ops): Install it as target_supports_multi_process
16796 2009-05-24 Doug Evans <dje@google.com>
16798 Global renaming of find_thread_pid to find_thread_ptid.
16799 * server.h (find_thread_ptid): Renamed from find_thread_pid.
16800 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
16801 All callers updated.
16803 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
16804 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
16807 * linux-low.c (get_stop_pc): Print pc if debug_threads.
16808 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
16809 (linux_resume_one_lwp): Ditto.
16811 2009-05-23 Doug Evans <dje@google.com>
16813 * linux-low.c (linux_resume_one_lwp): Change type of first arg
16814 from struct inferior_list_entry * to struct lwp_info *.
16815 All callers updated.
16817 2009-05-13 Doug Evans <dje@google.com>
16819 * linux-x86-low.c: Don't include assert.h.
16820 (x86_siginfo_fixup): Use fatal, not assert.
16821 (x86_arch_setup): Fix comment.
16823 2009-05-12 Doug Evans <dje@google.com>
16825 Biarch support for i386/amd64 gdbserver.
16826 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
16827 Add linux-x86-low.c.
16828 (linux-i386-low.o, linux-x86-64-low.o): Delete.
16829 (linux-x86-low.o): Add.
16830 * linux-x86-64-low.c: Delete.
16831 * linux-i386-low.c: Delete.
16832 * linux-x86-low.c: New file.
16833 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
16835 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16837 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
16838 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
16839 (linux_child_pid_to_exec_file): New function.
16840 (elf_64_header_p, elf_64_file_p): New functions.
16841 (siginfo_fixup): New function.
16842 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
16843 give target a chance to convert layout.
16844 * linux-low.h (linux_target_ops): New member siginfo_fixup.
16845 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
16847 2009-05-07 Doug Evans <dje@google.com>
16849 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16850 (regsets_store_inferior_registers): Ditto.
16852 2009-05-06 Pedro Alves <pedro@codesourcery.com>
16856 * linux-low.c (must_set_ptrace_flags): Delete.
16857 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16859 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16860 `lwp->must_set_ptrace_flags' instead.
16861 (linux_wait_for_event_1): Set ptrace options here.
16862 (linux_wait_1): ... not here.
16864 2009-04-30 Doug Evans <dje@google.com>
16866 * inferiors.c (started_inferior_callback): New function.
16867 (attached_inferior_callback): New function.
16868 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16869 * server.c (print_started_pid, print_attached_pid): New functions.
16870 (detach_or_kill_for_exit): New function.
16871 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16872 * server.h (have_started_inferiors_p): Declare.
16873 (have_attached_inferiors_p): Declare.
16875 * inferiors.c (remove_process): Fix memory leak, free process.
16876 * linux-low.c (linux_remove_process): New function.
16877 (linux_kill): Call it instead of remove_process.
16878 (linux_detach, linux_wait_1): Ditto.
16880 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
16882 * configure.srv: Add x86 Windows CE target.
16884 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16886 * inferiors.c (get_thread_process): Make global.
16887 * server.h (get_thread_process): Add prototype.
16888 * thread-db.c (find_one_thread): Use get_thread_process
16889 instead of current_process.
16890 (thread_db_get_tls_address): Do not crash if called when
16891 thread layer is not yet initialized.
16893 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
16895 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
16896 * spu-low.c (current_tid): Rename to ...
16897 (current_ptid): ... this.
16898 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
16899 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
16900 ptid_get_lwp (current_ptid) instead of current_tid.
16901 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
16902 instead of current_tid. Use find_process_pid to verify pid
16903 argument is valid. Pass proper argument to remove_process.
16904 (spu_thread_alive): Compare current_ptid instead of current_tid.
16905 (spu_resume): Likewise.
16907 2009-04-02 Pedro Alves <pedro@codesourcery.com>
16909 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
16912 2009-04-01 Pedro Alves <pedro@codesourcery.com>
16914 Implement the multiprocess extensions, and add linux multiprocess
16917 * server.h (ULONGEST): Declare.
16918 (struct ptid, ptid_t): New.
16919 (minus_one_ptid, null_ptid): Declare.
16920 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16921 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
16922 (struct inferior_list_entry): Change `id' type from unsigned from
16924 (struct sym_cache, struct breakpoint, struct
16925 process_info_private): Forward declare.
16926 (struct process_info): Declare.
16927 (current_process): Declare.
16928 (all_processes): Declare.
16929 (initialize_inferiors): Declare.
16930 (add_thread): Adjust to use ptid_t.
16931 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
16932 (add_process, remove_process, find_thread_pid): Declare.
16933 (find_inferior_id): Adjust to use ptid_t.
16934 (cont_thread, general_thread, step_thread): Change type to ptid_t.
16935 (multi_process): Declare.
16936 (push_event): Adjust to use ptid_t.
16937 (read_ptid, write_ptid): Declare.
16938 (prepare_resume_reply): Adjust to use ptid_t.
16939 (clear_symbol_cache): Declare.
16940 * inferiors.c (all_processes): New.
16941 (null_ptid, minus_one_ptid): New.
16942 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
16943 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
16944 (add_thread): Change unsigned long to ptid. Remove gdb_id
16946 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
16947 (gdb_id_to_thread): Rename to ...
16948 (find_thread_pid): ... this. Change unsigned long to ptid.
16949 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
16950 (loaded_dll, pull_pid_from_list): Adjust.
16951 (add_process, remove_process, find_process_pid)
16952 (get_thread_process, current_process, initialize_inferiors): New.
16953 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
16954 (struct target_waitstatus) <related_pid>: Ditto.
16955 (struct target_ops) <kill, detach>: Add `pid' argument. Change
16956 return type to int.
16957 (struct target_ops) <join>: Add `pid' argument.
16958 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
16959 (struct target_ops) <wait>: Add `ptid' field. Change return type
16961 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
16962 (mywait): Add `ptid' argument. Change return type to ptid_t.
16963 (target_pid_to_str): Declare.
16964 * target.c (set_desired_inferior): Adjust to use ptids.
16965 (mywait): Add new `ptid' argument. Adjust.
16966 (target_pid_to_str): New.
16967 * mem-break.h (free_all_breakpoints): Declare.
16968 * mem-break.c (breakpoints): Delelete.
16969 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
16970 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
16971 to use per-process breakpoint list.
16972 (free_all_breakpoints): New.
16973 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
16974 (symbol_cache, all_symbols_looked_up): Delete.
16976 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
16978 (prepare_resume_reply): Change ptid argument's type from unsigned
16979 long to ptid_t. Adjust. Implement W;process and X;process.
16980 (free_sym_cache, clear_symbol_cache): New.
16981 (look_up_one_symbol): Adjust to per-process symbol cache. *
16982 * server.c (cont_thread, general_thread, step_thread): Change type
16984 (attached): Delete.
16985 (multi_process): New.
16986 (last_ptid): Change type to ptid_t.
16987 (struct vstop_notif) <ptid>: Change type to ptid_t.
16988 (queue_stop_reply, push_event): Change `ptid' argument's type to
16990 (discard_queued_stop_replies): Add `pid' argument.
16991 (start_inferior): Adjust to use ptids. Adjust to mywait interface
16992 changes. Don't reference the `attached' global.
16993 (attach_inferior): Adjust to mywait interface changes.
16994 (handle_query): Adjust to use ptids. Parse GDB's qSupported
16995 features. Handle and report "multiprocess+". Handle
16997 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
16999 (handle_v_kill): New.
17000 (handle_v_stopped): Adjust to use target_pid_to_str.
17001 (handle_v_requests): Allow multiple attaches and runs when
17002 multiprocess extensions are in effect. Handle "vKill".
17003 (myresume): Adjust to use ptids.
17004 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
17005 (handle_status): Adjust to discard_queued_stop_replies interface
17007 (first_thread_of, kill_inferior_callback)
17008 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
17009 (main): Call initialize_inferiors. Adjust to use ptids, killing
17010 and detaching from all inferiors. Handle multiprocess packet
17012 * linux-low.h: Include gdb_proc_service.h.
17013 (struct process_info_private): New.
17014 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
17015 <lwpid_of>: Use ptid_get_lwp.
17016 (get_lwp_thread): Adjust.
17017 (struct lwp_info): Add `dead' member.
17018 (find_lwp_pid): Declare.
17019 * linux-low.c (thread_db_active): Delete.
17020 (new_inferior): Adjust comment.
17021 (inferior_pid): Delete.
17022 (linux_add_process): New.
17023 (handle_extended_wait): Adjust.
17024 (add_lwp): Change unsigned long to ptid.
17025 (linux_create_inferior): Add process to processes table. Adjust
17026 to use ptids. Don't set new_inferior here.
17027 (linux_attach_lwp): Rename to ...
17028 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
17029 it. Adjust to use ptids.
17030 (linux_attach_lwp): New.
17031 (linux_attach): Add process to processes table. Don't set
17033 (struct counter): New.
17034 (second_thread_of_pid_p, last_thread_of_process_p): New.
17035 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
17036 multiple processes.
17037 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
17038 processes. Remove process from process table.
17039 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
17040 to multiple processes.
17041 (any_thread_of): New.
17042 (linux_detach): Add `pid' argument, and handle it. Remove process
17043 from processes table.
17044 (linux_join): Add `pid' argument. Handle it.
17045 (linux_thread_alive): Change unsighed long argument to ptid_t.
17046 Consider dead lwps as not being alive.
17047 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
17048 threads we're not interested in.
17049 (same_lwp, find_lwp_pid): New.
17050 (linux_wait_for_lwp): Change `pid' argument's type from int to
17052 (linux_wait_for_event): Rename to ...
17053 (linux_wait_for_event_1): ... this. Change `pid' argument's type
17054 from int to ptid_t. Adjust.
17055 (linux_wait_for_event): New.
17056 (linux_wait_1): Add `ptid' argument. Change return type to
17057 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
17058 that exit from the process table.
17059 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
17061 (mark_lwp_dead): New.
17062 (wait_for_sigstop): Adjust to use ptids. If a process exits while
17063 stopping all threads, mark its main lwp as dead.
17064 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
17066 (fetch_register, usr_store_inferior_registers)
17067 (regsets_fetch_inferior_registers)
17068 (regsets_store_inferior_registers, linux_read_memory)
17069 (linux_write_memory): Inline `inferior_pid'.
17070 (linux_look_up_symbols): Adjust to use per-process
17071 `thread_db_active'.
17072 (linux_request_interrupt): Adjust to use ptids.
17073 (linux_read_auxv): Inline `inferior_pid'.
17074 (initialize_low): Don't reference thread_db_active.
17075 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
17076 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
17077 (ps_getpid): Return the pid of the current inferior.
17078 * thread-db.c (proc_handle, thread_agent): Delete.
17079 (thread_db_create_event, thread_db_enable_reporting): Adjust to
17081 (find_one_thread): Change argument type to ptid_t. Adjust to
17083 (maybe_attach_thread): Adjust to per-process data and ptids.
17084 (thread_db_find_new_threads): Ditto.
17085 (thread_db_init): Ditto.
17086 * spu-low.c (spu_create_inferior, spu_attach): Add process to
17087 processes table. Adjust to use ptids.
17088 (spu_kill, spu_detach): Adjust interface. Remove process from
17090 (spu_join, spu_thread_alive): Adjust interface.
17091 (spu_wait): Adjust interface. Remove process from processes
17092 table. Adjust to use ptids.
17093 * win32-low.c (current_inferior_tid): Delete.
17094 (current_inferior_ptid): New.
17095 (debug_event_ptid): New.
17096 (thread_rec): Take a ptid. Adjust.
17097 (child_add_thread): Add `pid' argument. Adjust to use ptids.
17098 (child_delete_thread): Ditto.
17099 (do_initial_child_stuff): Add `attached' argument. Add process to
17101 (child_fetch_inferior_registers, child_store_inferior_registers):
17103 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
17104 (win32_attach): Pass 1 to do_initial_child_stuff.
17105 (win32_kill): Adjust interface. Remove process from processes
17107 (win32_detach): Ditto.
17108 (win32_join): Adjust interface.
17109 (win32_thread_alive): Take a ptid.
17110 (win32_resume): Adjust to use ptids.
17111 (get_child_debug_event): Ditto.
17112 (win32_wait): Adjust interface. Remove exiting process from
17115 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17117 Non-stop mode support.
17119 * server.h (non_stop): Declare.
17120 (gdb_client_data, handler_func): Declare.
17121 (delete_file_handler, add_file_handler, start_event_loop):
17123 (handle_serial_event, handle_target_event, push_event)
17124 (putpkt_notif): Declare.
17125 * target.h (enum resume_kind): New.
17126 (struct thread_resume): Replace `step' field by `kind' field.
17127 (TARGET_WNOHANG): Define.
17128 (struct target_ops) <wait>: Add `options' argument.
17129 <supports_non_stop, async, start_non_stop>: New fields.
17130 (target_supports_non_stop, target_async): New.
17131 (start_non_stop): Declare.
17132 (mywait): Add `options' argument.
17133 * target.c (mywait): Add `options' argument. Print child exit
17134 notifications here.
17135 (start_non_stop): New.
17136 * server.c (non_stop, own_buf, mem_buf): New globals.
17137 (struct vstop_notif): New.
17138 (notif_queue): New global.
17139 (queue_stop_reply, push_event, discard_queued_stop_replies)
17140 (send_next_stop_reply): New.
17141 (start_inferior): Adjust to use resume_kind. Adjust to mywait
17143 (attach_inferior): In non-stop mode, don't wait for the target
17145 (handle_general_set): Handle QNonStop.
17146 (handle_query): When handling qC, return the current general
17147 thread, instead of the first thread of the list.
17148 (handle_query): If the backend supports non-stop mode, include
17149 QNonStop+ in the qSupported query response.
17150 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
17152 (handle_v_attach, handle_v_run): Handle non-stop mode.
17153 (handle_v_stopped): New.
17154 (handle_v_requests): Report support for vCont;t. Handle vStopped.
17155 (myresume): Adjust to use resume_kind. Handle non-stop.
17156 (queue_stop_reply_callback): New.
17157 (handle_status): Handle non-stop mode.
17158 (main): Clear non_stop flag on reconnection. Use the event-loop.
17159 Refactor serial protocol handling from here ...
17160 (process_serial_event): ... to this new function. When GDB
17161 selects any thread, select one here. In non-stop mode, wait until
17162 GDB acks all pending events before exiting.
17163 (handle_serial_event, handle_target_event): New.
17164 * remote-utils.c (remote_open): Install remote_desc in the event
17166 (remote_close): Remove remote_desc from the event loop.
17167 (putpkt_binary): Rename to...
17168 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
17169 (putpkt_binary): New as wrapper around putpkt_binary_1.
17170 (putpkt_notif): New.
17171 (prepare_resume_reply): In non-stop mode, don't change the
17173 * event-loop.c: New.
17174 * Makefile.in (OBJ): Add event-loop.o.
17175 (event-loop.o): New rule.
17177 * linux-low.h (pid_of): Moved here.
17179 (get_lwp_thread): Use lwpid_of.
17180 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
17181 * linux-low.c (pid_of): Delete.
17182 (inferior_pid): Use lwpid_of.
17183 (linux_event_pipe): New.
17184 (target_is_async_p): New.
17186 (handle_extended_wait): Use lwpid_of.
17187 (add_lwp): Don't set lwpid field.
17188 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
17189 (linux_kill_one_lwp): If killing a running lwp, stop it first.
17190 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
17191 (linux_detach_one_lwp): If detaching from a running lwp, stop it
17192 first. Adjust to linux_wait_for_event interface changes. Use
17194 (linux_detach): Don't delete the main lwp here.
17195 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
17196 (status_pending_p): Don't consider explicitly suspended lwps.
17197 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17198 pointer. Add OPTIONS argument. Change return type to int. Use
17199 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17200 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17201 pointer. Add status pointer argument. Return a pid instead of a
17202 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17203 changes. In non-stop mode, don't switch to a random thread.
17204 (linux_wait): Rename to...
17205 (linux_wait_1): ... this. Add target_options argument, and handle
17206 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17207 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17208 clean exit and signal exit code. Don't stop all threads in
17209 non-stop mode. In all-stop mode, only stop all threads when
17210 reporting a stop to GDB. Handle explicit thread stop requests.
17211 (async_file_flush, async_file_mark): New.
17213 (send_sigstop): Use lwpid_of.
17214 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17215 interface changes. In non-stop mode, don't switch to a random
17217 (linux_resume_one_lwp): Use lwpid_of.
17218 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17219 (linux_resume_one_thread): ... this. Handle resume_stop. In
17220 non-stop mode, don't look for pending flag in all threads.
17221 (resume_status_pending_p): Don't consider explicitly suspended
17223 (my_waitpid): Reimplement. Emulate __WALL.
17224 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17226 (sigchld_handler, linux_supports_non_stop, linux_async)
17227 (linux_start_non_stop): New.
17228 (linux_target_ops): Register linux_supports_non_stop, linux_async
17229 and linux_start_non_stop.
17230 (initialize_low): Install SIGCHLD handler.
17231 * thread-db.c (thread_db_create_event, find_one_thread)
17232 (thread_db_get_tls_address): Use lwpid_of.
17233 * win32-low.c (win32_detach): Adjust to use resume_kind.
17234 (win32_wait): Add `options' argument.
17235 * spu-low.c (spu_resume): Adjust to use resume_kind.
17236 (spu_wait): Add `options' argument.
17238 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17240 Decouple target code from remote protocol.
17242 * target.h (enum target_waitkind): New.
17243 (struct target_waitstatus): New.
17244 (struct target_ops) <wait>: Return an unsigned long. Take a
17245 target_waitstatus pointer instead of a char pointer.
17246 (mywait): Likewise.
17247 * target.c (mywait): Change prototype to return an unsigned long.
17248 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17249 * server.h (thread_from_wait, old_thread_from_wait): Delete
17251 (prepare_resume_reply): Change prototype to take a
17253 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17254 (last_status, last_ptid): New.
17255 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17256 pid instead of a signal.
17257 (attach_inferior): Remove "status" and "signal" parameters.
17259 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17261 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17262 (handle_v_requests, myresume): Remove "status" and "signal"
17263 parameters. Adjust.
17264 (handle_status): New.
17265 (main): Delete local `status'. Adjust.
17266 * remote-utils.c: Include target.h.
17267 (prepare_resume_reply): Change prototype to take a
17268 target_waitstatus. Adjust.
17270 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17272 * spu-low.c (spu_wait): Adjust.
17273 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17275 (win32_wait): Adjust.
17277 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17279 * target.h (struct thread_resume): Delete leave_stopped member.
17280 (struct target_ops): Add a `n' argument to the `resume' callback.
17281 * server.c (start_inferior): Adjust.
17282 (handle_v_cont, myresume): Adjust.
17283 * linux-low.c (check_removed_breakpoint): Adjust to resume
17284 interface change, and to removed leave_stopped field.
17285 (resume_ptr): Delete.
17286 (struct thread_resume_array): New.
17287 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17288 resume interface change.
17289 (linux_continue_one_thread, linux_queue_one_thread)
17290 (resume_status_pending_p): Check if the resume field is NULL
17291 instead of checking the leave_stopped member.
17292 (linux_resume): Adjust to the target resume interface change.
17293 * spu-low.c (spu_resume): Adjust to the target resume interface
17295 * win32-low.c (win32_detach, win32_resume): Ditto.
17297 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17299 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17301 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17303 (linux_continue_one_thread): Only preserve the stepping flag if
17304 there's a pending breakpoint.
17306 2009-03-31 Pedro Alves <pedro@codesourcery.com>
17308 * server.c (main): After the inferior having exited, call
17309 remote_close before exiting gdbserver.
17311 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17313 Fix size of FPSCR in Power 7 processors.
17314 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17315 (PPC_FEATURE_HAS_DFP): New #define.
17316 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17319 2009-03-23 Pedro Alves <pedro@codesourcery.com>
17321 * server.c (handle_query) Whitespace and formatting.
17323 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17325 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17326 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17327 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17328 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17329 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17330 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17331 Makefile.in, configure.ac: Fix whitespace throughout.
17332 * configure: Regenerate.
17334 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17336 * inferiors.c (find_inferior): Make it safe for the callback
17337 function to delete the currently iterated inferior.
17339 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17341 * Makefile.in (linuw_low_h): Move higher.
17342 (thread-db.o): Depend on $(linux_low_h).
17344 2009-03-17 Pedro Alves <pedro@codesourcery.com>
17346 Rename "process" to "lwp" throughout.
17348 * linux-low.c (all_processes): Rename to...
17349 (all_lwps): ... this.
17350 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17351 (add_process): Rename to ...
17352 (add_lwp): ... this. Adjust.
17353 (linux_create_inferior): Adjust.
17354 (linux_attach_lwp): Adjust.
17355 (linux_attach): Adjust.
17356 (linux_kill_one_process): Rename to ...
17357 (linux_kill_one_lwp): ... this. Adjust.
17358 (linux_kill): Adjust.
17359 (linux_detach_one_process): Rename to ...
17360 (linux_detach_one_lwp): ... this. Adjust.
17361 (linux_detach): Adjust.
17362 (check_removed_breakpoint): Adjust.
17363 (status_pending_p): Adjust.
17364 (linux_wait_for_process): Rename to ...
17365 (linux_wait_for_lwp): ... this. Adjust.
17366 (linux_wait_for_event): Adjust.
17367 (send_sigstop): Adjust.
17368 (wait_for_sigstop): Adjust.
17369 (stop_all_processes): Rename to ...
17370 (stop_all_lwps): ... this.
17371 (linux_resume_one_process): Rename to ...
17372 (linux_resume_one_lwp): ... this. Adjust.
17373 (linux_set_resume_request, linux_continue_one_thread)
17374 (linux_queue_one_thread, resume_status_pending_p)
17375 (usr_store_inferior_registers, regsets_store_inferior_registers)
17376 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17378 * linux-low.h (get_process): Rename to ...
17379 (get_lwp): ... this. Adjust.
17380 (get_thread_process): Rename to ...
17381 (get_thread_lwp): ... this. Adjust.
17382 (get_process_thread): Rename to ...
17383 (get_lwp_thread): ... this. Adjust.
17384 (struct process_info): Rename to ...
17385 (struct lwp_info): ... this.
17386 (all_processes): Rename to ...
17387 (all_lwps): ... this.
17388 * proc-service.c (ps_lgetregs): Adjust.
17389 * thread-db.c (thread_db_create_event, find_one_thread)
17390 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17392 2009-03-14 Pedro Alves <pedro@codesourcery.com>
17394 * server.c (handle_query): Handle "qAttached".
17396 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17398 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17399 GPLv3, update license URL.
17401 2009-03-01 Doug Evans <dje@google.com>
17403 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
17404 (server_h): Add gdb_signals.h.
17405 (signals.o): Update.
17406 * server.h (target_signal_from_host,target_signal_to_host_p)
17407 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17409 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17411 * remote-utils.c (getpkt): Also generate remote-debug
17412 information if noack_mode is set.
17414 2009-02-06 Pedro Alves <pedro@codesourcery.com>
17416 * server.c (handle_query): Report qXfer:siginfo:read and
17417 qXfer:siginfo:write as supported and handle them.
17418 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17419 * linux-low.c (linux_xfer_siginfo): New.
17420 (linux_target_ops): Set it.
17422 2009-01-26 Pedro Alves <pedro@codesourcery.com>
17424 * server.c (gdbserver_usage): Mention --remote-debug.
17425 (main): Accept '--remote-debug' switch.
17427 2009-01-18 Doug Evans <dje@google.com>
17429 * regcache.c (new_register_cache): No need to check result of xcalloc.
17430 * server.c (handle_search_memory): Back out calls to xmalloc,
17431 result is checked and error is returned to user upon failure.
17432 (handle_query): Ditto. Add more checks for result of malloc.
17433 (handle_v_cont): Check result of malloc, report error back to
17435 (handle_v_run): Ditto. Call freeargv.
17436 * server.h (freeargv): Declare.
17437 * utils.c (freeargv): New fn.
17439 2009-01-15 Doug Evans <dje@google.com>
17441 * gdbreplay.c (perror_with_name): Make arg const char *.
17442 * server.h (target_signal_to_name): Make return type const char *.
17443 * thread-db.c (thread_db_err_str): Make return type const char *.
17444 * utils.c (perror_with_name): Make arg const char *.
17446 2009-01-14 Pedro Alves <pedro@codesourcery.com>
17448 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17449 when handling a EXIT_PROCESS_DEBUG_EVENT.
17451 2009-01-06 Joel Brobecker <brobecker@adacore.com>
17453 * gdbreplay.c (gdbreplay_version): Update copyright year.
17454 * server.c (gdbserver_version): Likewise.
17456 2009-01-05 Doug Evans <dje@google.com>
17458 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
17459 (handle_extended_wait): Improve comment.
17461 2008-12-13 Doug Evans <dje@google.com>
17463 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17464 * server.h (ATTR_MALLOC): New macro.
17465 (xmalloc,xcalloc,xstrdup): Declare.
17466 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17467 * inferiors.c: Ditto.
17468 * linux-low.c: Ditto.
17469 * mem-break.c: Ditto.
17470 * regcache.c: Ditto.
17471 * remote-utils.c: Ditto.
17474 * win32-low.c: Ditto.
17476 2008-12-12 Doug Evans <dje@google.com>
17478 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17479 in debugging printf.
17481 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17483 2008-12-09 Doug Evans <dje@google.com>
17485 * linux-low.h (struct process_info): Delete member tid, unused.
17486 * thread-db.c (find_one_thread): Update.
17487 (maybe_attach_thread): Update.
17489 2008-12-02 Pedro Alves <pedro@codesourcery.com>
17491 * target.h (struct target_ops): Add qxfer_osdata member.
17492 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17494 (linux_qxfer_osdata): New functions.
17495 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17497 * server.c (handle_query): Handle "qXfer:osdata:read:".
17498 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17499 (buffer_xml_printf): New functions.
17500 * server.h (struct buffer): New.
17501 (buffer_grow_str, buffer_grow_str0): New macros.
17502 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17503 (buffer_xml_printf): Declare.
17505 2008-11-24 Doug Evans <dje@google.com>
17507 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17509 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17511 * server.c (handle_v_run): Always use the supplied argument list.
17513 2008-11-19 Bob Wilson <bob.wilson@acm.org>
17515 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17516 (xtensa_regmap_table): Add entry for scompare1.
17518 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17520 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17521 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17522 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17523 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17524 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17525 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17526 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17527 XML target descriptions.
17528 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17529 when inferior is running on an ISA 2.05 or later processor. Add
17530 special case to return offset for full 64-bit slot of FPSCR when
17533 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17535 * Makefile.in (SFILES, clean): Added sparc64 files.
17536 (reg-sparc64.o, reg-sparc64.c): New.
17537 * configure.srv (sparc*-*-linux*): New configuration.
17538 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17539 syscall arguments for SPARC.
17540 (regsets_store_inferior_registers): Likewise.
17541 * linux-sparc-low.c: New file.
17543 2008-10-21 Doug Evans <dje@google.com>
17545 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17546 (READLINE_DIR,READLINE_DEP): Delete.
17547 (INTERNAL_CFLAGS): Update.
17548 (LINTFLAGS): Update.
17550 2008-10-10 Pedro Alves <pedro@codesourcery.com>
17552 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17553 whole argv from the last run, not just argv[0].
17555 2008-09-08 Pedro Alves <pedro@codesourcery.com>
17557 * regcache.c (new_register_cache): Return NULL if the register
17558 cache size isn't known yet.
17559 (free_register_cache): Avoid dereferencing a NULL regcache.
17561 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17563 * configure.srv: Merge MIPS and MIPS64.
17565 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17567 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17569 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
17571 * Makefile.in: Add required vsx dependencies.
17573 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17574 Declare init_registers_powerpc_vsx32l.
17575 Declare init_registers_powerpc_vsx64l.
17576 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17577 (ppc_arch_setup): Check for VSX in hwcap.
17578 (ppc_fill_vsxregset): New function.
17579 (ppc_store_vsxregset): New function.
17580 Add new VSX entry in regset_info target_regsets.
17582 * configure.srv: Add new VSX dependencies.
17584 2008-08-12 Pedro Alves <pedro@codesourcery.com>
17586 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17587 (remote_open): Set or clear transport_is_reliable.
17588 (putpkt_binary): Don't expect acks in noack mode.
17589 (getpkt): Don't send ack/nac in noack mode.
17590 * server.c (handle_general_set): Handle QStartNoAckMode.
17591 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17593 (main): Reset noack_mode on every connection.
17594 * server.h (noack_mode): Declare.
17596 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17598 * Makefile.in (GDBREPLAY_OBS): New variable.
17599 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17601 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17602 Daniel Jacobowitz <dan@codesourcery.com>
17604 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17605 (usr_store_inferior_registers): Likewise.
17606 (regsets_store_inferior_registers): Likewise.
17608 2008-07-31 Rolf Jansen <rj@surtec.com>
17609 Pedro Alves <pedro@codesourcery.com>
17611 * configure.ac: Check for memmem declaration.
17612 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17613 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17614 (disable_packet_qfThreadInfo): Unconditionally compile.
17615 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
17616 * configure, config.in: Regenerate.
17618 2008-07-28 Doug Kwan <dougkwan@google.com>
17620 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17621 (linux_write_memory): Remove declaration of errno.
17623 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17625 * linux-low.c (handle_extended_wait): Do not use "status"
17626 variable uninitialized.
17628 2008-07-07 Pedro Alves <pedro@codesourcery.com>
17630 * server.c (handle_v_attach): Inhibit reporting dll changes.
17632 2008-06-27 Pedro Alves <pedro@codesourcery.com>
17634 * remote-utils.c (prepare_resume_reply): If requested, don't
17635 output "thread:TID" in the T stop reply.
17637 * server.c (disable_packet_vCont, disable_packet_Tthread)
17638 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
17639 (handle_query): If requested, disable support for qC, qfThreadInfo
17641 (handle_v_requests): If requested, disable support for vCont.
17642 (gdbserver_show_disableable): New.
17643 (main): Handle --disable-packet and --disable-packet=LIST.
17645 * server.h (disable_packet_vCont, disable_packet_Tthread)
17646 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17648 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17650 * server.c (gdbserver_usage): Mention --version.
17652 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17654 * Makefile.in (gdbreplay.o): New rule.
17656 2008-06-06 Joseph Myers <joseph@codesourcery.com>
17658 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17659 message, not gdbserver.
17661 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
17662 Nathan Sidwell <nathan@codesourcery.com>
17663 Joseph Myers <joseph@codesourcery.com>
17665 * acinclude.m4: Include ../../config/acx.m4.
17666 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
17667 * configure, config.in: Regenerate.
17668 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
17669 * server.c (gdbserver_version): Print PKGVERSION.
17670 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
17671 (main): Adjust gdbserver_usage calls.
17672 * gdbreplay.c (version, host_name): Add declarations.
17673 (gdbreplay_version, gdbreplay_usage): New.
17674 (main): Accept --version and --help options.
17676 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17678 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17679 (arm_breakpoint_at): Handle Thumb.
17680 (the_low_target): Add comment.
17682 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17684 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17686 2008-05-09 Doug Evans <dje@google.com>
17688 * server.h (decode_search_memory_packet): Declare.
17689 * remote-utils.c (decode_search_memory_packet): New fn.
17690 * server.c (handle_search_memory_1): New fn.
17691 (handle_search_memory): New fn.
17692 (handle_query): Process qSearch:memory packets.
17694 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17696 * regcache.c (registers_length): Remove.
17697 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
17698 full register packet.
17699 * regcache.h (registers_length): Remove prototype.
17700 * server.h (PBUFSIZ): Define to 16384.
17702 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17704 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
17705 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
17706 powerpc-64l.o, and powerpc-altivec64l.o.
17707 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
17708 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
17709 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
17710 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
17711 rs6000/power-linux.xml, and rs6000/power64-linux.xml
17714 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
17715 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
17716 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
17717 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
17718 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
17719 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
17720 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
17721 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
17722 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
17723 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
17726 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
17727 (init_registers_powerpc_32l): ... this new prototype.
17728 (init_registers_powerpc_32): Remove, replace by ...
17729 (init_registers_powerpc_altivec32l): ... this new prototype.
17730 (init_registers_powerpc_e500): Remove, replace by ...
17731 (init_registers_powerpc_e500l): ... this new prototype.
17732 (init_registers_ppc64): Remove, replace by ...
17733 (init_registers_powerpc_64l): ... this new prototype.
17734 (init_registers_powerpc_64): Remove, replace by ...
17735 (init_registers_powerpc_altivec64l): ... this new prototype.
17736 (ppc_num_regs): Set to 73.
17737 (PT_ORIG_R3, PT_TRAP): Define if necessary.
17738 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
17739 (ppc_cannot_store_register): Handle orig_r3 and trap.
17740 (ppc_arch_setup): Update init_registers_... calls.
17741 (ppc_fill_gregset): Handle orig_r3 and trap.
17743 * inferiors.c (clear_inferiors): Reset current_inferior.
17745 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17747 * acinclude.m4: Add override.m4.
17748 * configure: Regenerate.
17750 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17752 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17753 initial call to init_register_ppc64.
17755 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17757 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17758 single powerpc*-*-linux* case.
17759 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17761 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17763 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
17764 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
17766 * linux-ppc-low.c: Include <elf.h>.
17767 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
17768 (ppc_hwcap): New global variable.
17769 (ppc_regmap): Remove __SPE__ #ifdef sections.
17770 (ppc_regmap_e500): New global variable.
17771 (ppc_cannot_store_register): Update __SPE__ special case.
17772 (ppc_get_hwcap): New function.
17773 (ppc_arch_setup): Use it to determine whether inferior supports
17774 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
17775 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
17776 Do not access registers if target does not support AltiVec.
17777 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
17778 Do not access registers if target does not support SPE.
17779 (target_regsets): Unconditionally include AltiVec and SPE regsets.
17781 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17783 * linux-low.c (disabled_regsets, num_regsets): New.
17784 (use_regsets_p): Delete.
17785 (linux_wait_for_process): Clear disabled_regsets.
17786 (regsets_fetch_inferior_registers): Check and set it.
17787 (regsets_store_inferior_registers): Likewise.
17788 (linux_fetch_registers, linux_store_registers): Do not use
17790 (initialize_low): Allocate disabled_regsets.
17792 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17794 * Makefile.in (LIBOBJS): New.
17795 (OBS): Use LIBOBJS.
17796 (memmem.o): New rule.
17797 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
17798 * configure: Regenerated.
17800 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17802 * server.c (handle_query): Never return "unsupported" for
17803 qXfer:features:read queries.
17805 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17807 * server.c (get_features_xml): Fix inverted condition.
17808 (handle_query): Always support qXfer:feature:read.
17810 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17812 * server.c (wrapper_argv): New.
17813 (start_inferior): Handle wrapper_argv. If set, expect an extra
17815 (gdbserver_usage): Document --wrapper.
17816 (main): Parse --wrapper.
17818 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17820 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
17821 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
17822 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
17823 (ppc_set_pc): Likewise.
17824 (ppc_arch_setup): New function.
17825 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
17826 of collect_register.
17827 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
17829 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17831 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
17832 instead of linux-ppc64-low.o.
17833 * linux-ppc64-low.c: Remove file.
17834 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
17835 (linux-ppc64-low.o): Remove rule.
17837 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
17838 (init_registers_powerpc_64): Likewise.
17839 (ppc_regmap): Conditionally define depending on __powerpc64__.
17840 (ppc_cannot_store_register): Do not special-case "fpscr" when
17841 compiled on __powerpc64__.
17842 (ppc_collect_ptrace_register): New function.
17843 (ppc_supply_ptrace_register): New function.
17844 (ppc_breakpoint): Change type to "unsigned int".
17845 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
17846 (the_low_target): Conditionally provide initializers for the
17847 arch_setup member depending on __powerpc64__. Install
17848 collect_ptrace_register and supply_ptrace_register members.
17850 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17852 * regcache.h (gdbserver_xmltarget): Add extern declaration.
17853 * server.c (gdbserver_xmltarget): Define.
17854 (get_features_xml): Use it to replace "target.xml" and arch_string.
17856 * configure.srv: Remove srv_xmltarget. Add XML files that were
17857 mentioned there to srv_xmlfiles instead. Remove conditional tests
17858 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
17859 srv_xmlfiles and srv_regobj to include all possible choices.
17860 * configure.ac (srv_xmltarget): Remove.
17861 (srv_xmlfiles): Do not add "target.xml".
17862 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
17863 checks for supplementary target information.
17864 * configure: Regenerate.
17865 * Makefile.in (XML_TARGET): Remove.
17866 (target.xml): Remove rule.
17867 (clean): Do not clean up target.xml.
17868 (.PRECIOUS): Do not mention target.xml.
17870 * target.h (struct target_ops): Remove arch_string member.
17871 * linux-low.c (linux_arch_string): Remove.
17872 (linux_target_ops): Remove arch_string initializer.
17873 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17874 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17875 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17876 * spu-low.c (spu_arch_string): Remove.
17877 (spu_target_ops): Remove arch_string initializer.
17878 * win32-low.c (win32_arch_string): Remove.
17879 (win32_target_ops): Remove arch_string initializer.
17880 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17881 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
17882 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
17884 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17886 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
17887 by collect_ptrace_register and supply_ptrace_register hooks.
17888 * linux-low.c (fetch_register): Use supply_ptrace_register callback
17889 instead of checking for the_low_target.left_pad_xfer.
17890 (usr_store_inferior_registers): Use collect_ptrace_register callback
17891 instead of checking for the_low_target.left_pad_xfer.
17893 * linux-s390-low.c (s390_collect_ptrace_register): New function.
17894 (s390_supply_ptrace_register): Likewise.
17895 (s390_fill_gregset): Call s390_collect_ptrace_register.
17896 (the_low_target): Update.
17898 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
17899 (ppc_supply_ptrace_register): Likewise.
17900 (the_low_target): Update.
17902 * linux-i386-low.c (the_low_target): Update.
17903 * linux-x86-64-low.c (the_low_target): Update.
17905 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17907 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
17908 reg-s390.o and reg-s390x.o.
17910 * linux-low.c (new_inferior): New global variable.
17911 (linux_create_inferior, linux_attach): Set it.
17912 (linux_wait_for_process): Call the_low_target.arch_setup after the
17913 target has stopped for the first time.
17914 (initialize_low): Do not call the_low_target.arch_setup.
17916 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
17917 (s390_set_pc): Likewise.
17918 (s390_arch_setup): New function.
17919 (the_low_target): Use s390_arch_setup as arch_setup routine.
17921 * regcache.c (realloc_register_cache): New function.
17922 (set_register_cache): Call it for each existing regcache.
17924 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
17926 * server.h (init_registers): Remove prototype.
17928 * linux-low.h (struct linux_target_ops): Add arch_setup field.
17929 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
17930 instead of init_registers ().
17931 * linux-arm-low.c (init_registers_arm): Add prototype.
17932 (init_registers_arm_with_iwmmxt): Likewise.
17933 (the_low_target): Add initializer for arch_setup field.
17934 * linux-cris-low.c (init_registers_cris): Add prototype.
17935 (the_low_target): Add initializer for arch_setup field.
17936 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
17937 (the_low_target): Add initializer for arch_setup field.
17938 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
17939 (the_low_target): Add initializer for arch_setup field.
17940 * linux-ia64-low.c (init_registers_ia64): Add prototype.
17941 (the_low_target): Add initializer for arch_setup field.
17942 * linux-m32r-low.c (init_registers_m32r): Add prototype.
17943 (the_low_target): Add initializer for arch_setup field.
17944 * linux-m68k-low.c (init_registers_m68k): Add prototype.
17945 (the_low_target): Add initializer for arch_setup field.
17946 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
17947 (init_registers_mips64_linux): Likewise.
17948 (the_low_target): Add initializer for arch_setup field.
17949 * linux-ppc-low.c (init_registers_ppc): Add prototype.
17950 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
17951 (the_low_target): Add initializer for arch_setup field.
17952 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
17953 (init_registers_powerpc_64): Likewise.
17954 (the_low_target): Add initializer for arch_setup field.
17955 * linux-s390-low.c (init_registers_s390): Add prototype.
17956 (init_registers_s390x): Likewise.
17957 (the_low_target): Add initializer for arch_setup field.
17958 * linux-sh-low.c (init_registers_sh): Add prototype.
17959 (the_low_target): Add initializer for arch_setup field.
17960 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
17961 (the_low_target): Add initializer for arch_setup field.
17962 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
17963 (the_low_target): Add initializer for arch_setup field.
17965 * win32-low.h (struct win32_target_ops): Add arch_setup field.
17966 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
17967 instead of init_registers ().
17968 * win32-arm-low.c (init_registers_arm): Add prototype.
17969 (the_low_target): Add initializer for arch_setup field.
17970 * win32-i386-low.c (init_registers_i386): Add prototype.
17971 (the_low_target): Add initializer for arch_setup field.
17973 * spu-low.c (init_registers_spu): Add prototype.
17974 (initialize_low): Call initialie_registers_spu () instead of
17975 initialize_registers ().
17977 2008-02-19 Pedro Alves <pedro@codesourcery.com>
17979 * server.c (handle_v_requests): When handling the vRun and vAttach
17980 packets, if already debugging a process, don't kill it. Return an
17983 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
17985 * server.c (handle_query): Correct length check.
17987 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
17989 * win32-low.c (do_initial_child_stuff): Add process handle
17990 parameter. Set current_process_handle and current_process_id from the
17991 parameters. Clear globals.
17992 (win32_create_inferior): Don't set current_process_handle and
17993 current_process_id here. Instead pass them on the call to
17994 do_initial_child_stuff.
17995 (win32_attach): Likewise.
17996 (win32_clear_inferiors): New.
17997 (win32_kill): Don't close the current process handle or the
17998 current thread handle here. Instead call win32_clear_inferiors.
17999 (win32_detach): Don't open a new handle to the process. Call
18000 win32_clear_inferiors.
18001 (win32_join): Don't rely on current_process_handle; open a new
18002 handle using the process id.
18003 (win32_wait): Call win32_clear_inferiors when the inferior process
18006 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
18008 * server.c (monitor_show_help): Add "exit".
18010 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
18012 * Makefile.in (SFILES): Add linux-xtensa-low.c.
18013 (clean): Add reg-xtensa.c.
18014 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
18015 * configure.srv (xtensa*-*-linux*) New target.
18016 * linux-xtensa-low.c: New.
18017 * xtensa-xtregs.c: New.
18019 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
18021 * hostio.c: Don't include errno.h.
18022 (errno_to_fileio_errno): Move to hostio-errno.
18023 * hostio.c: (hostio_error): Remove the error parameter. Defer the
18024 error number outputting to the target->hostio_last_error callback.
18025 (hostio_packet_error): Use FILEIO_EINVAL directly.
18026 (handle_open, handle_pread, hostio_error, handle_unlink): Update
18027 calls to hostio_error.
18028 * hostio-errno.c: New.
18029 * server.h (hostio_last_error_from_errno): Declare.
18030 * target.h (target_ops): Add hostio_last_error member.
18031 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
18032 as hostio_last_error handler.
18033 * spu-low.c (spu_target_ops): Likewise.
18034 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
18035 (wince_hostio_last_error): New functions.
18036 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
18037 as hostio_last_error handler.
18038 (win32_target_ops) [!_WIN32_WCE]: Register
18039 hostio_last_error_from_errno as hostio_last_error handler.
18040 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
18041 (hostio-errno.o): New rule.
18042 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
18043 * configure.srv (srv_hostio_err_objs): New variable. Default to
18045 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
18046 * configure: Regenerate.
18048 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18050 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
18051 (linux_kill, linux_detach): Clean up the process list.
18052 * remote-utils.c (remote_open): Improve port number parsing.
18053 (putpkt_binary, input_interrupt): Only send interrupts if the target
18055 * server.c (extended_protocol): Make static.
18056 (attached): Define earlier.
18057 (exit_requested, response_needed, program_argv): New variables.
18058 (target_running): New.
18059 (start_inferior): Clear attached here.
18060 (attach_inferior): Set attached here.
18061 (require_running): Define.
18062 (handle_query): Use require_running and target_running. Implement
18064 (handle_v_attach, handle_v_run): New.
18065 (handle_v_requests): Use require_running. Handle vAttach and vRun.
18066 (gdbserver_usage): Update.
18067 (main): Redo argument parsing. Handle --debug and --multi. Handle
18068 --attach along with other options or after the port. Save
18069 program_argv. Support no initial program. Resynchronize
18070 communication with GDB after an error. Handle "monitor exit".
18071 Use require_running and target_running. Always allow the extended
18072 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
18073 restart in extended mode.
18074 * README: Refer to the GDB manual. Update --attach usage.
18076 2007-12-20 Andreas Schwab <schwab@suse.de>
18078 * linux-low.c (STACK_SIZE): Define.
18079 (linux_tracefork_child): Use it. Use __clone2 on ia64.
18080 (linux_test_for_tracefork): Likewise.
18082 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
18084 * linux-low.c (linux_wait_for_event): Update messages. Do not
18085 reinsert auto-delete breakpoints.
18086 * mem-break.c (struct breakpoint): Change return type of handler to
18088 (set_breakpoint_at): Update handler type.
18089 (reinsert_breakpoint_handler): Return 1 instead of calling
18091 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
18093 (check_breakpoints): Delete auto-delete breakpoints and return 2.
18094 * mem-break.h (set_breakpoint_at): Update handler type.
18095 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
18096 * win32-low.c (auto_delete_breakpoint): New.
18097 (get_child_debug_event): Use it.
18099 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
18101 * configure.ac: Check for pread and pwrite.
18102 * hostio.c (handle_pread): Fall back to lseek and read.
18103 (handle_pwrite): Fall back to lseek and write.
18104 * config.in, configure: Regenerated.
18106 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
18108 * server.c (myresume): Add own_buf argument.
18109 (main): Update calls.
18111 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
18113 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
18114 * remote-utils.c (remote_open): Do not call disable_async_io.
18115 (block_async_io): Delete.
18116 (unblock_async_io): Make static.
18117 (initialize_async_io): New.
18118 * server.c (handle_v_cont): Handle async I/O here.
18119 (myresume): Likewise. Move other common resume tasks here...
18120 (main): ... from here. Call initialize_async_io. Disable async
18121 I/O before the main loop.
18122 * server.h (initialize_async_io): Declare.
18123 (block_async_io, unblock_async_io): Delete prototypes.
18124 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
18126 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
18128 * remote-utils.c (readchar): Allow binary data in received messages.
18130 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18132 * win32-low.c (attaching): New global.
18133 (win32_create_inferior): Clear the `attaching' global.
18134 (win32_attach): Set the `attaching' global.
18135 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
18136 attaching. Only set a breakpoint at the entry point if not
18139 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18141 * server.c (main): Don't report dll events on the initial
18142 connection on attaches.
18144 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18146 * server.c (main): Relax numerical bases supported for the pid of
18147 the --attach command line argument.
18149 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18151 * win32-low.c (win32_attach): Call OpenProcess before
18152 DebugActiveProcess, not after. Add last error output to error
18155 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18157 * win32-low.c (win32_get_thread_context)
18158 (win32_set_thread_context): New functions.
18159 (thread_rec): Use win32_get_thread_context.
18160 (continue_one_thread, win32_resume): Use win32_set_thread_context.
18161 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
18164 2007-12-03 Leo Zayas
18165 Pedro Alves <pedro_alves@portugalmail.pt>
18167 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
18169 (child_add_thread): Minor cleanup.
18170 (child_continue): Resume artificially suspended threads before
18171 calling ContinueDebugEvent.
18172 (suspend_one_thread): New.
18173 (fake_breakpoint_event): New.
18174 (get_child_debug_event): Change return type to int. Check here if
18175 gdb sent an interrupt request. If a soft interrupt was requested,
18176 fake a breakpoint event. Return 0 if there is no event to handle,
18178 (win32_wait): Don't check here if gdb sent an interrupt request.
18179 Ensure there is a valid event to handle.
18180 (win32_request_interrupt): Add soft interruption method as last
18183 2007-12-03 Leo Zayas
18184 Pedro Alves <pedro_alves@portugalmail.pt>
18186 * win32-low.h (win32_thread_info): Add descriptions to the
18187 structure members. Replace `suspend_count' counter by a
18189 * win32-low.c (thread_rec): Update condition of when to get the
18190 context from the inferior. Rely on ContextFlags being set if it
18191 has already been retrieved. Only suspend the inferior thread if
18192 we haven't already. Warn if that fails.
18193 (continue_one_thread): s/suspend_count/suspended/. Only call
18194 ResumeThread once. Warn if that fails.
18196 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18198 * win32-low.c (win32_wait): Don't read from the inferior when it
18199 has already exited.
18201 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18203 * Makefile.in (win32_low_h): New variable.
18204 (win32-low.o): Add dependency on $(win32_low_h).
18205 (win32-arm-low.o, win32-i386-low.o): New rules.
18207 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18209 * hostio.c: Correct copyright year.
18211 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18213 * Makefile.in (OBS): Add hostio.o.
18214 (hostio.o): New rule.
18215 * server.h (handle_vFile): Declare.
18216 * hostio.c: New file.
18217 * server.c (handle_v_requests): Take packet_len and new_packet_len
18218 for binary packets. Call handle_vFile.
18219 (main): Update call to handle_v_requests.
18221 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18223 * linux-low.c: Include <sched.h>.
18225 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18227 * linux-low.c (linux_tracefork_grandchild): New.
18228 (linux_tracefork_child): Use clone.
18229 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18231 2007-10-31 Joel Brobecker <brobecker@adacore.com>
18233 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18235 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18237 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18239 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18241 * inferiors.c (change_inferior_id): Delete.
18242 (add_pid_to_list, pull_pid_from_list): New.
18243 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18244 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18245 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18246 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18247 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18248 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18249 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18250 (using_threads): Always set to 1.
18251 (handle_extended_wait): New.
18252 (add_process): Do not set TID.
18253 (linux_create_inferior): Set must_set_ptrace_flags.
18254 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18255 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18256 (linux_thread_alive): Rename TID argument to LWPID.
18257 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18258 (linux_wait_for_event): Do not use TID or check using_threads. Update
18259 call to dead_thread_notify. Call handle_extended_wait.
18260 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18261 (send_sigstop): Delete sigstop_sent.
18262 (wait_for_sigstop): Avoid TID.
18263 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18264 (linux_test_for_tracefork): New.
18265 (linux_lookup_signals): Use thread_db_active and
18266 linux_supports_tracefork_flag.
18267 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18268 * linux-low.h (get_process_thread): Avoid TID.
18269 (struct process_ifo): Move thread_known and tid to the end. Remove
18271 (linux_attach_lwp, thread_db_init): Update prototypes.
18272 * server.h (change_inferior_id): Delete prototype.
18273 (add_pid_to_list, pull_pid_from_list): New prototypes.
18274 * thread-db.c (thread_db_use_events): New.
18275 (find_first_thread): Rename to...
18276 (find_one_thread): ...this. Update callers and messages. Do not
18277 call fatal. Check thread_db_use_events. Do not call
18278 change_inferior_id or new_thread_notify.
18279 (maybe_attach_thread): Update. Do not call new_thread_notify.
18280 (thread_db_init): Set thread_db_use_events. Check use_events.
18281 * utils.c (fatal, warning): Correct message prefix.
18283 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18285 * Makefile.in (clean): Remove new files.
18286 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18287 (powerpc-64.o, powerpc-64.c): New rules.
18288 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18289 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18291 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18293 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18294 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18295 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18296 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18297 (target_regsets): Add AltiVec and SPE register sets.
18298 * configure.ac: Check for AltiVec and SPE.
18299 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18300 (ppc_fill_vrregset, ppc_store_vrregset): New.
18301 (target_regsets): Add AltiVec register set.
18302 * configure: Regenerated.
18304 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18306 * linux-low.c (O_LARGEFILE): Define.
18307 (linux_read_memory): Use /proc/PID/mem.
18308 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18309 * configure, config.in: Regenerated.
18311 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18313 * linux-low.c (linux_wait_for_event): Do not pass signals while
18316 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18318 * win32-low.c (create_process): New.
18319 (win32_create_inferior): Use create_process instead of
18320 CreateProcess. If create_process failed retry appending an ".exe"
18321 suffix. Store the GetLastError result immediatelly after
18322 create_process calls and use it on the call to error.
18324 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18326 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18328 2007-08-23 Joel Brobecker <brobecker@adacore.com>
18330 * configure.ac: Switch license to GPLv3.
18332 2007-08-01 Michael Snyder <msnyder@access-company.com>
18334 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18336 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18338 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18340 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18341 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18342 CloseToolhelp32Snapshot.
18343 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18344 CloseToolhelp32Snapshot.
18346 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
18348 * server.c (main): Check for inferior exit before main loop.
18350 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18352 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18353 instead of on tmp_desc.
18355 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18356 Daniel Jacobowitz <dan@codesourcery.com>
18358 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18359 (add_thread): Minor cleanups.
18360 (clear_inferiors): Move lower in the file. Clear the DLL
18362 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18363 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18364 (xml_escape_text): New.
18365 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18367 (handle_v_cont): Report errors.
18368 (gdbserver_version): Update.
18369 (main): Correct size of own_buf. Do not report initial DLL events.
18370 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18371 (unloaded_dll, xml_escape_text): New.
18372 * win32-low.c (enum target_waitkind): Update comments.
18373 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18374 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18375 (win32_EnumProcessModules, win32_GetModuleInformation)
18376 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18377 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18378 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18379 (win32_Module32First, win32_Module32Next, load_toolhelp)
18380 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18381 (get_child_debug_event): Handle DLL events.
18382 (win32_wait): Likewise.
18384 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18386 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18387 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18389 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18391 * win32-low.c (handle_output_debug_string): Ignore event if not
18394 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18396 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18398 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18400 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18402 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18404 * inferiors.c (change_inferior_id): Add comment.
18405 * linux-low.c (check_removed_breakpoint): Add an early
18406 prototype. Improve debug output.
18407 (linux_attach): Doc update.
18408 (linux_detach_one_process, linux_detach): Clean up before releasing
18410 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18411 * linux-low.h (struct process_info): Doc improvement.
18412 * mem-break.c (delete_all_breakpoints): New.
18413 * mem-break.h (delete_all_breakpoints): New prototype.
18414 * thread-db.c (find_first_thread): New.
18415 (thread_db_create_event): Call it instead of
18416 thread_db_find_new_threads. Clean up unused variables.
18417 (maybe_attach_thread): Remove first thread handling.
18418 (thread_db_find_new_threads): Use find_first_thread.
18419 (thread_db_get_tls_address): Likewise.
18421 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18423 * thread-db.c (thread_db_find_new_threads): Add prototype.
18424 (thread_db_create_event): Check for the main thread before adding
18426 (maybe_attach_thread): Only enable event reporting if TID == 0.
18427 (thread_db_get_tls_address): Check for new threads.
18429 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18431 * linux-low.c (linux_create_inferior): Try execv before execvp.
18432 * spu-low.c (spu_create_inferior): Likewise.
18434 2007-06-13 Mike Frysinger <vapier@gentoo.org>
18436 * linux-low.c (linux_create_inferior): Change execv to execvp.
18437 * spu-low.c (spu_create_inferior): Likewies.
18439 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18441 * Makefile.in (clean): Clean new files instead of deleted ones.
18442 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18443 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18445 * configure.srv: Specify XML files and new regformats for MIPS and
18447 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18448 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18449 an entry for the restart register.
18450 (mips_cannot_fetch_register, mips_cannot_store_register)
18451 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18452 register names to match the XML descriptions.
18453 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18454 restart register instead of $0.
18456 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18457 Markus Deuling <deuling@de.ibm.com>
18459 * remote-utils.c (decode_xfer_write): New function.
18460 * server.h (decode_xfer_write): Add prototype.
18461 * server.c (handle_query): Add PACKET_LEN argument. Support
18462 qXfer:spu:read and qXfer:spu:write packets.
18463 (main): Pass packet_len to handle_query.
18464 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18465 * target.h (target_ops): Add qxfer_spu.
18467 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18469 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18470 accessing non-seekable spufs files.
18472 2007-05-16 Markus Deuling <deuling@de.ibm.com>
18474 * server.c (handle_query): Add reply for qC packet.
18476 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18477 Leo Zayas <lerele@champenstudios@com>
18479 * server.h (check_remote_input_interrupt_request): New function.
18480 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18481 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18482 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18483 (check_remote_input_interrupt_request): New function.
18484 * server.h (check_remote_input_interrupt_request): Declare.
18485 * win32-low.c (winapi_DebugBreakProcess,
18486 winapi_GenerateConsoleCtrlEvent): New typedefs.
18487 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18489 (win32_wait): Check for remote interrupt request
18490 with check_remote_input_interrupt_request.
18491 (win32_request_interrupt): New function.
18492 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18494 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18496 * win32-low.c (debug_registers_changed,
18497 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18498 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18499 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18500 (thread_rec): Get context using the low target.
18501 (child_add_thread): Call thread_added on the low target,
18502 which does the same thing.
18504 (do_initial_child_stuff): Remove debug registers references.
18505 Set context using the low target. Resume threads after
18506 setting the contexts.
18507 (child_continue): Remove dead variable. Remove debug
18508 registers references.
18509 (child_fetch_inferior_registers): Go through the low target.
18510 (do_child_store_inferior_registers): Remove.
18511 (child_store_inferior_registers): Go through the low target.
18512 (win32_resume): Remove debug registers references.
18513 Set context using the low target.
18514 (handle_exception): Change return type to void. Don't record
18515 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18516 first chance exception.
18517 (get_child_debug_event): Change return type to void. Remove
18518 goto loop. Always return after waiting for debug event.
18519 (win32_wait): Convert to switch statement. Handle spurious
18522 * win32-i386-low.c (debug_registers_changed,
18523 debug_registers_used): New.
18524 (initial_stuff): Rename to ...
18525 (i386_initial_stuff): ... this. Clear debug registers
18527 (store_debug_registers): Delete.
18528 (i386_get_thread_context): New.
18529 (load_debug_registers): Delete.
18530 (i386_set_thread_context): New.
18531 (i386_thread_added): New.
18532 (single_step): Rename to ...
18533 (i386_single_step): ... this.
18534 (do_fetch_inferior_registers): Rename to ...
18535 (i386_fetch_inferior_register): ... this.
18536 (i386_store_inferior_register): New.
18537 (the_low_target): Adapt to new interface.
18539 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18540 (arm_get_thread_context): New.
18541 (arm_set_thread_context): New.
18543 (do_fetch_inferior_registers): Rename to ...
18544 (arm_fetch_inferior_register): ... this.
18545 (arm_store_inferior_register): New.
18546 (arm_wince_breakpoint): Reimplement as unsigned long.
18547 (arm_wince_breakpoint_len): Define.
18548 (the_low_target): Adapt to new interface.
18550 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18551 load_debug_registers. Add get_thread_context, set_thread_context,
18552 thread_added and store_inferior_register. Rename
18553 fetch_inferior_registers to fetch_inferior_register.
18554 (regptr): Remove declaration.
18556 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18558 * linux-low.c (linux_detach): Change return type to int. Return 0.
18559 * spu-low.c (spu_detach): Likewise.
18561 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18563 * target.h (target_ops): Change return type of detach to int.
18565 (join_inferior): New.
18566 * server.c (main): Don't skip detach support on mingw32.
18567 If the inferior doesn't support detaching return error.
18568 Call join_inferior instead of using waitpid.
18569 * linux-low.c (linux_join): New.
18570 (linux_target_op): Add linux_join.
18571 * spu-low.c (spu_join): New.
18572 (spu_target_ops): Add spu_join.
18573 * win32-low.c (win32_detach): Adapt to new interface.
18574 Reopen current_process_handle before detaching. Issue a child
18575 resume before detaching.
18577 (win32_target_op): Add win32_join.
18579 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18581 * win32-low.c (win32-attach): Fix return value.
18582 * target.h (target_ops): Describe ATTACH return values.
18584 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18586 * win32-low.c (GETPROCADDRESS): Define.
18587 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18588 (winapi_DebugSetProcessKillOnExit): Likewise.
18589 (win32_create_inferior): Force usage of ansi CreateProcessA.
18590 (win32_attach): Use GETPROCADDRESS.
18591 (win32_detach): Likewise.
18593 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18595 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18597 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18599 * win32-low.c: Commit leftover changes from 2007-03-29.
18601 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18603 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18604 fields short instead of int. Add explicit padding.
18605 (i387_cache_to_fsave): Remove unnecessary casts.
18606 (i387_fsave_to_cache): Doc fix.
18607 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18609 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18611 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18612 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18614 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18616 * configure.srv (arm*-*-mingw32ce*): Move near the other
18619 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18621 * configure.ac: Add errno checking.
18622 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
18623 sys/file.h and malloc.h.
18624 (AC_CHECK_DECLS): Add perror.
18625 (srv_mingwce): Handle.
18626 * configure.srv (i[34567]86-*-cygwin*): Add
18627 win32-i386-low.o to srv_tgtobj.
18628 (i[34567]86-*-mingw*): Likewise.
18629 (arm*-*-mingw32ce*): Add case.
18630 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18631 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
18632 [__MINGW32CE__] (strerror): New function.
18633 [__MINGW32CE__] (errno): Define to GetLastError.
18634 [__MINGW32CE__] (COUNTOF): New macro.
18635 (remote_open): Remove extra close call.
18636 * mem-break.c (delete_breakpoint_at): New function.
18637 * mem-break.h (delete_breakpoint_at): Declare.
18638 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18639 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
18640 [USE_WIN32API] (read, write): Add char* casts.
18641 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
18642 * server.h: Include wincecompat.h on Windows CE.
18643 [HAVE_ERRNO_H]: Check.
18644 (perror): Declare if not declared.
18645 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
18646 (perror_with_name): Remove errno declaration.
18647 * wincecompat.h: New.
18648 * wincecompat.c: New.
18649 * win32-low.h: New.
18650 * win32-arm-low.c: New.
18651 * win32-i386-low.c: New.
18652 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
18653 (OUTMSG2): Make it safe.
18655 (COUNTOF): New macro.
18656 (NUM_REGS): Get it from the low target.
18657 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
18658 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
18659 (thread_rec): Let low target handle debug registers.
18660 (child_add_thread): Likewise.
18661 (child_init_thread_list): Likewise.
18662 (continue_one_thread): Likewise.
18664 (do_child_fetch_inferior_registers): Move to ...
18665 * win32-i386-low.c: ... here, and rename to ...
18666 (do_fetch_inferior_registers): ... this.
18667 * win32-low.c (child_fetch_inferior_registers):
18668 Go through the low target.
18669 (do_child_store_inferior_registers): Use regptr.
18670 (strwinerror): New function.
18671 (win32_create_inferior): Handle Windows CE.
18672 Use strwinerror instead of strerror on Windows error
18673 codes. Add program to the error output.
18674 Don't close the main thread handle on Windows CE.
18675 (win32_attach): Use coredll.dll on Windows CE.
18676 (win32_kill): Close current process and current
18678 (win32_detach): Use coredll.dll on Windows CE.
18679 (win32_resume): Let low target handle debug registers, and
18681 (handle_exception): Add/Remove initial breakpoint. Avoid
18682 non-existant WSTOPSIG on Windows CE.
18683 (win32_read_inferior_memory): Cast to remove warning.
18684 (win32_arch_string): Go through the low target.
18685 (initialize_low): Call set_breakpoint_data with the low
18686 target's breakpoint.
18687 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
18688 FOP_REGNUM, mappings): Move to ...
18689 * win32-i386-low.c: ... here.
18690 * win32-low.c (win32_thread_info): Move to ...
18691 * win32-low.h: ... here.
18692 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
18693 win32-arm-low.c and wincecompat.c.
18694 (all:): Add $EXEEXT.
18695 (install-only:): Likewise.
18696 (gdbserver:): Likewise.
18697 (gdbreplay:): Likewise.
18698 * config.in: Regenerate.
18699 * configure: Regenerate.
18701 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18703 * win32-low.c: Rename typedef thread_info to
18704 win32_thread_info throughout.
18706 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18708 * win32-i386-low.c: Rename to ...
18709 * win32-low.c: ... this.
18710 * configure.srv: Replace win32-i386-low.o with win32-low.o.
18711 * Makefile.in: Likewise.
18713 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18715 * remote-utils.c (monitor_output): Constify msg parameter.
18716 * server.h (monitor_output): Likewise.
18717 * win32-i386-low.c (handle_output_debug_string): New.
18718 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
18719 handle_output_debug_string.
18720 (get_child_debug_event): Likewise.
18722 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18724 * server.c (main): Correct strtoul check.
18726 2007-03-27 Jon Ringle <jon@ringle.org>
18728 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18730 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18732 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18734 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18736 * terminal.h: Check HAVE_SGTTY_H.
18738 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
18740 * remote-utils.c (remote_open): Print out the assigned port number.
18742 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18744 * remote-utils.c (monitor_output): New function.
18745 * server.c (debug_threads): Define here.
18746 (monitor_show_help): New function.
18747 (handle_query): Handle qRcmd.
18748 (main): Do not handle 'd' packet.
18749 * server.h (debug_threads, remote_debug, monitor_output): Declare.
18750 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
18753 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18755 * Makefile.in (EXEEXT): New.
18756 (clean): Use $(EXEEXT).
18758 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18760 * target.h (target_ops): Rename send_signal to request_interrupt,
18761 and remove enum target_signal parameter.
18762 * linux-low.c (linux_request_interrupt): Rename from
18763 linux_send_signal, and always send SIGINT.
18764 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
18765 and always send SIGINT.
18766 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
18768 (input_interrupt): Likewise.
18770 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18772 * server.c (get_features_xml): Check if target implemented
18774 * win32-i386-low.c (win32_arch_string): New.
18775 (win32_target_ops): Add win32_arch_string as arch_string member.
18777 2007-02-22 Markus Deuling <deuling@de.ibm.com>
18779 * spu-low.c (spu_arch_string): New.
18780 (spu_target_ops): Add spu_arch_string.
18782 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18784 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18785 * configure.ac: Do not check for terminal.h.
18786 * configure, config.in: Regenerated.
18788 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18790 * Makefile.in (OBS): Add $(XML_BUILTIN).
18791 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18793 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
18794 (arm-with-iwmmxt.c): New.
18795 * config.in, configure: Regenerate.
18796 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
18797 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
18798 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
18799 (arm*-*-linux*): Add iWMMXt and regset support.
18800 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
18801 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
18802 (arm_store_wmmxregset, target_regsets): New.
18803 * server.c (get_features_xml): Take annex argument. Check builtin
18805 (handle_query): Handle multiple annexes.
18807 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18809 * remote-utils.c [USE_WIN32API] (read, write): Define.
18810 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18813 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18815 * linux-i386-low.c (the_low_target): Set arch_string.
18816 * linux-x86-64-low.c (the_low_target): Likewise.
18817 * linux-low.c (linux_arch_string): New.
18818 (linux_target_ops): Add it.
18819 * linux-low.h (struct linux_target_ops): Add arch_string.
18820 * server.c (write_qxfer_response): Use const void * for DATA.
18821 (get_features_xml): New.
18822 (handle_query): Handle qXfer:features:read. Report it for qSupported.
18823 * target.h (struct target_ops): Add arch_string method.
18825 2007-01-03 Denis Pilat <denis.pilat@st.com>
18826 Daniel Jacobowitz <dan@codesourcery.com>
18828 * linux-low.c (linux_kill): Handle being called with no threads.
18829 * win32-i386-low.c (win32_kill): Likewise.
18830 (get_child_debug_event): Clear current_process_handle.
18832 2006-12-30 Denis PILAT <denis.pilat@st.com>
18833 Daniel Jacobowitz <dan@codesourcery.com>
18835 * remote-utils.c (remote_open): Check the type of specified
18836 serial port devices before opening them.
18837 * server.c (main): Kill the inferior if an error occurs during
18838 the first remote_open.
18840 2006-12-05 Markus Deuling <deuling@de.ibm.com>
18842 * README: Update supported targets.
18844 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18846 * Makefile.in (clean): Remove reg-mips64.c.
18847 (reg-mips64.c, reg-mips64.o): New rules.
18848 * configure.srv: Handle mips64. Include regset support for mips.
18849 * linux-mips-low.c (union mips_register): New.
18850 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
18851 (mips_breakpoint, mips_breakpoint_at): Use int.
18852 (mips_collect_register, mips_supply_register)
18853 (mips_collect_register_32bit, mips_supply_register_32bit)
18854 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18855 (mips_store_fpregset, target_regsets): New.
18856 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
18858 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18860 * configure.srv: Add target "spu*-*-*".
18861 * Makefile.in (clean): Remove reg-spu.c.
18862 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
18863 * spu-low.c: New file.
18865 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18867 * configure.ac: Correct td_thr_tls_get_addr test.
18868 * configure: Regenerated.
18870 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18872 * linux-low.c (linux_wait_for_event): Reformat. Use the
18873 pass_signals array.
18874 * remote-utils.c (decode_address_to_semicolon): New.
18875 * server.c (pass_signals, handle_general_set): New.
18876 (handle_query): Mention QPassSignals for qSupported.
18877 (main): Call handle_general_set.
18878 * server.h (pass_signals, decode_address_to_semicolon): New.
18880 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
18882 * server.c (handle_query): Correct error handling for read_auxv.
18884 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
18886 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
18887 and srv_linux_thread_db to yes.
18888 * linux-s390-low.c (s390_fill_gregset): New function.
18889 (target_regsets): Define data structure.
18891 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
18893 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
18894 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
18895 * config.in, configure: Regenerated.
18896 * inferiors.c (gdb_id_to_thread): New function.
18897 (gdb_id_to_thread_id): Use it.
18898 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
18899 * linux-low.h (struct process_info): Add th member.
18900 (thread_db_get_tls_address): New prototype.
18901 * remote-utils.c (decode_address): Make non-static.
18902 * server.c (handle_query): Handle qGetTLSAddr.
18903 * server.h (gdb_id_to_thread, decode_address): New prototypes.
18904 * target.h (struct target_ops): Add get_tls_address.
18905 * thread-db.c (maybe_attach_thread): Save the thread handle.
18906 (thread_db_get_tls_address): New.
18908 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
18910 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
18911 (linux_resume_one_process): Take a siginfo_t *. Update all
18912 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
18913 (struct pending_signals): Add a siginfo_t.
18914 (linux_wait_for_process): Always set last_status.
18915 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
18916 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
18917 * linux-low.h (struct process_info): Add last_status.
18919 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
18921 * remote-utils.c (try_rle): New function.
18922 (putpkt_binary): Use it.
18924 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
18926 * Makefile.in (clean): Clean reg-x86-64-linux.c.
18927 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
18928 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
18929 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
18930 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
18933 2006-08-08 Richard Sandiford <richard@codesourcery.com>
18935 * server.c (terminal_fd): New variable.
18936 (old_foreground_pgrp): Likewise.
18937 (restore_old_foreground_pgrp): New function.
18938 (start_inferior): Record the terminal file descriptor in terminal_fd
18939 and its original foreground group in old_foreground_pgrp. Register
18940 restore_old_foreground_pgrp with atexit().
18942 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
18944 * server.c (handle_query): Correct qPart to qXfer.
18946 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
18948 * configure.ac: Check for more headers which are missing on
18949 Windows. Automatically supply -lwsock32 and USE_WIN32API.
18950 * configure.srv: Add Cygwin and mingw32.
18951 * remote-utils.c: Don't include headers unconditionally which
18952 are missing on mingw32. Include <winsock.h> for mingw32.
18953 (remote_open): Adjust for mingw32 support. Flush
18954 standard error after writing to it.
18955 (remote_close, putpkt_binary, input_interrupt, block_async_io)
18956 (unblock_async_io, enable_async_io, disable_async_io)
18957 (readchar, getpkt): Update for Winsock support.
18958 (prepare_resume_reply): Expect a protocol signal number.
18959 * server.c: Disable <sys/wait.h> on mingw32.
18960 (start_inferior): Adjust for mingw32 support. Flush
18961 standard error after writing to it.
18962 (attach_inferior): Likewise. Use protocol signal
18964 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
18966 * win32-i386-low.c: New file.
18967 * Makefile.in (XM_CLIBS): Set.
18968 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
18969 (win32-i386-low.o): New dependency rule.
18970 * linux-low.c (linux_wait): Use target signal numbers.
18971 * target.h (struct target_ops): Doc fix.
18972 * server.h (target_signal_to_name): New prototype.
18973 * gdbreplay.c: Don't include headers unconditionally which
18974 are missing on mingw32. Include <winsock.h> for mingw32.
18975 (remote_close, remote_open): Adjust for Winsock support.
18976 * configure, config.in: Regenerated.
18978 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18980 * server.c (decode_xfer_read, write_qxfer_response): New.
18981 (handle_query): Take a packet length argument. Handle
18982 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
18983 the qSupported response.
18984 (main): Update call to handle_query.
18986 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
18988 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
18989 (putpkt_binary): Renamed from putpkt and adjusted for binary
18991 (putpkt): New wrapper for putpkt_binary.
18992 (readchar): Don't mask off the high bit.
18993 (decode_X_packet): New function.
18994 * server.c (main): Call putpkt_binary if a handler sets the packet
18995 length. Save the length of the incoming packet. Handle 'X'.
18996 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
18998 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
19000 * server.c (handle_query): Handle qSupported.
19002 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19004 * remote-utils.c (all_symbols_looked_up): New variable.
19005 (look_up_one_symbol): Check it.
19006 * server.h (look_up_one_symbol): New declaration.
19007 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
19009 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19011 * Makefile.in (linux-arm-low.o): Update dependencies.
19012 * linux-arm-low.c: Include "gdb_proc_service.h".
19013 (PTRACE_GET_THREAD_AREA): Define.
19014 (ps_get_thread_area): New function.
19016 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
19018 * configure.srv (m68k*-*-uclinux*): New target.
19019 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
19020 (linux_resume_one_process): Remove extraneous cast.
19021 (linux_read_offsets): New.
19022 (linux_target_op): Add linux_read_offsets on mmuless systems.
19023 * server.c (handle_query): Add qOffsets logic.
19024 * target.h (struct target_ops): Add read_offsets.
19026 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19028 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
19029 (PTRACE_GET_THREAD_AREA): Define.
19030 (ps_get_thread_area): New function.
19031 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
19032 (linux-x86-64-low.o): Update.
19034 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19036 * configure.ac: Remove checks for prfpregset_t.
19037 * gdb_proc_service.h: New file.
19038 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
19039 new "gdb_proc_service.h".
19040 * proc-service.c: Likewise.
19041 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
19042 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
19043 * Makefile.in (gdb_proc_service_h): Updated.
19044 * configure, config.in: Regenerated.
19046 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19048 * remote-utils.c (prepare_resume_reply): Move declaration
19049 of gdb_id_from_wait to the top of the block.
19051 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
19053 * linux-low.c (regsets_store_inferior_registers): Read the regset
19054 from the target before filling it.
19056 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19058 * server.c (attach_inferior): Return SIGTRAP for a successful
19061 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19063 * Makefile.in (OBS): Add version.o.
19064 (STAGESTUFF): Delete.
19065 (version.o): Add dependencies.
19066 (version.c): Replace rule.
19067 (clean): Remove version.c.
19068 * server.c (gdbserver_version): New.
19069 (gdbserver_usage): Use printf.
19070 (main): Handle --version and --help.
19071 * server.h (version, host_name): Add declarations.
19073 2005-12-23 Eli Zaretskii <eliz@gnu.org>
19085 * linux-x86-64-low.c:
19087 * linux-s390-low.c:
19088 * linux-ppc64-low.c:
19090 * linux-mips-low.c:
19091 * linux-m68k-low.c:
19092 * linux-m32r-low.c:
19095 * linux-ia64-low.c:
19096 * linux-i386-low.c:
19097 * linux-crisv32-low.c:
19109 * gdbserver.1: Add (C) after Copyright. Update the FSF
19112 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19114 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
19115 (arm_breakpoint_at): Recognize both breakpoints.
19116 (the_low_target): Use the correct breakpoint instruction.
19118 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
19120 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
19121 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
19122 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
19123 (the_low_target): Update.
19125 2005-10-25 Andreas Schwab <schwab@suse.de>
19127 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
19129 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
19130 (ia64_num_regs): Reduce to 462.
19132 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
19134 * acinclude.m4: Correct quoting.
19135 * aclocal.m4: Regenerated.
19137 Suggested by SZOKOVACS Robert <szo@ies.hu>:
19138 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
19139 (thread_db_init): Call thread_db_err_str.
19140 * configure.ac: Check for TD_VERSION.
19141 * config.in, configure: Regenerated.
19143 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19145 * server.h (error, fatal, warning): Add ATTR_FORMAT.
19147 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19149 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
19150 is not available. Define HAVE_PTRACE_GETREGS if it is.
19151 * config.in, configure: Regenerated.
19152 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
19153 * linux-i386-low.c, linux-m68k-low.c: Update to use
19154 HAVE_PTRACE_GETREGS.
19155 * linux-low.c (regsets_fetch_inferior_registers)
19156 (regsets_store_inferior_registers): Only return 0 if we processed
19158 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
19159 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
19161 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19163 * inferiors.c (struct thread_info): Add gdb_id.
19164 (add_thread): Add gdb_id argument.
19165 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
19166 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
19167 calls to add_thread.
19168 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
19169 * server.c (handle_query): Use thread_to_gdb_id.
19170 (handle_v_cont, main): Use gdb_id_to_thread_id.
19171 * server.h (add_thread): Update prototype.
19172 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
19175 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19177 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
19178 left-padded registers.
19179 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
19180 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
19182 2005-07-01 Steve Ellcey <sje@cup.hp.com>
19184 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
19185 * configure: Regenerate.
19186 * config.in: Regenerate.
19187 * server.h (NEED_DECLARATION_STRERROR):
19188 Replace with !HAVE_DECL_STRERROR.
19190 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
19192 * linux-low.c (linux_wait, linux_send_signal): Don't test
19193 an unsigned long variable for > 0 if it could be MAX_ULONG.
19194 * server.c (myresume): Likewise.
19195 * target.c (set_desired_inferior): Likewise.
19197 2005-06-13 Mark Kettenis <kettenis@gnu.org>
19199 * configure.ac: Simplify and improve check for socklen_t.
19200 * configure, config.in: Regenerate.
19202 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19204 * acconfig.h: Remove.
19205 * configure.ac: Add a test for socklen_t. Use three-argument
19206 AC_DEFINE throughout.
19207 * config.in: Regenerated using autoheader 2.59.
19208 * configure: Regenerated.
19210 * gdbreplay.c (socklen_t): Provide a default.
19211 (remote_open): Use socklen_t.
19212 * remote-utils.c (socklen_t): Provide a default.
19213 (remote_open): Use socklen_t.
19214 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19217 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19219 * linux-low.c (linux_read_memory, linux_write_memory)
19220 (linux_read_auxv): Likewise.
19221 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19222 (check_mem_write): Likewise.
19223 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19225 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19226 (registers_from_string, register_data): Likewise.
19227 * server.c (handle_query, main): Likewise.
19228 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19229 (decode_M_packet): Likewise.
19230 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19231 * target.h (struct target_ops): Update read_memory, write_memory,
19233 (read_inferior_memory, write_inferior_memory): Update.
19234 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19235 to unsigned char *.
19236 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19237 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19238 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19239 linux-s390-low.c, linux-sh-low.c: Update for changes in
19240 read_inferior_memory and the_low_target->breakpoint.
19242 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19244 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19245 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19246 * configure.srv: Add powerpc64-*-linux*.
19247 * linux-ppc64-low.c: New file.
19249 2005-05-23 Orjan Friberg <orjanf@axis.com>
19251 * linux-cris-low.c: New file with support for CRIS.
19252 * linux-crisv32-low.c: Ditto for CRISv32.
19253 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19254 (clean): Add reg-cris.c and reg-crisv32.c.
19255 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
19256 reg-crisv32.o, and reg-crisv32.c to make rules.
19257 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19258 recognized targets.
19260 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19262 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19263 of sizeof (PTRACE_XFER_TYPE).
19264 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19266 2005-05-12 Orjan Friberg <orjanf@axis.com>
19268 * target.h (struct target_ops): Add insert_watchpoint,
19269 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19270 pointers for hardware watchpoint support.
19271 * linux-low.h (struct linux_target_ops): Ditto.
19272 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19273 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19274 to linux_target_ops.
19275 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19277 * server.c (main): Recognize 'Z' and 'z' packets.
19279 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19281 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19282 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19283 (the_low_target): Add new members.
19285 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19287 * proc-service.c (ps_lgetregs): Search all_processes instead of
19290 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19292 * server.c (start_inferior): Change return type to int.
19293 (attach_inferior): Change sigptr to int *.
19294 (handle_v_cont, handle_v_requests): Change signal to int *.
19295 (main): Change signal to int.
19297 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
19299 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19300 * configure.srv: Add m32r*-*-linux*.
19301 * linux-m32r-low.c: New file.
19303 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19305 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19307 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19309 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19310 Take unsigned long arguments for PIDs.
19311 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19312 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19313 (wait_for_sigstop, linux_resume_one_process)
19314 (regsets_fetch_inferior_registers, linux_send_signal)
19315 (linux_read_auxv): Likewise. Update the types of variables holding
19316 PIDs. Update format string specifiers.
19317 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19318 * remote-utils.c (prepare_resume_reply): Likewise.
19319 * server.c (cont_thread, general_thread, step_thread)
19320 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19322 (handle_query): Update format specifiers.
19323 (handle_v_cont, main): Use strtoul for thread IDs.
19324 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19325 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19326 (general_thread, step_thread, thread_from_wait)
19327 (old_thread_from_wait): Update.
19328 * target.h (struct thread_resume): Use unsigned long for THREAD.
19329 (struct target_ops): Use unsigned long for arguments to attach and
19332 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19334 * acinclude.m4: Include bfd/bfd.m4 directly.
19335 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19336 <agriffis@toolchain.org>.
19337 * aclocal.m4, configure: Regenerated.
19339 2005-01-07 Andrew Cagney <cagney@gnu.org>
19341 * configure.ac: Rename configure.in, require autoconf 2.59.
19342 * configure: Re-generate.
19344 2004-12-08 Daniel Jacobowitz <dan@debian.org>
19346 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19347 LIBS when finished.
19348 * aclocal.m4: Regenerated.
19349 * configure: Regenerated.
19351 2004-11-21 Andreas Schwab <schwab@suse.de>
19353 * linux-m68k-low.c (m68k_num_gregs): Define.
19354 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19355 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19356 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19357 (m68k_breakpoint_at): New. Add to the_low_target.
19359 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19360 srv_linux_thread_db to yes.
19362 2004-10-20 Joel Brobecker <brobecker@gnat.com>
19364 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19365 (ARCH_SET_FS): Likewise.
19366 (ARCH_GET_FS): Likewise.
19367 (ARCH_GET_GS): Likewise.
19369 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19371 * linux-i386-low.c (ps_get_thread_area): New.
19372 * linux-x86-64-low.c (ps_get_thread_area): New.
19373 * linux-low.c: Include <sys/syscall.h>.
19374 (linux_kill_one_process): Don't kill the first thread here.
19375 (linux_kill): Kill the first thread here.
19376 (kill_lwp): New function.
19377 (send_sigstop, linux_send_signal): Use it.
19378 * proc-service.c: Clean up #ifdefs.
19379 (fpregset_info): Delete.
19380 (ps_lgetregs): Update and enable implementation.
19381 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19383 * remote-utils.c (struct sym_cache, symbol_cache): New.
19384 (input_interrupt): Print a clearer message.
19385 (async_io_enabled): New variable.
19386 (enable_async_io, disable_async_io): Use it. Update comments.
19387 (look_up_one_symbol): Use the symbol cache.
19388 * thread-db.c (thread_db_look_up_symbols): New function.
19389 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19391 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19393 * configure.in: Test for -rdynamic.
19394 * configure: Regenerated.
19395 * Makefile (INTERNAL_LDFLAGS): New.
19396 (gdbserver, gdbreplay): Use it.
19398 2004-09-02 Andrew Cagney <cagney@gnu.org>
19400 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19402 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
19404 * linux-low.c (linux_wait): Clear all_processes list also.
19406 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19408 * linux-low.c: Include <errno.h>. Remove extern declaration of
19411 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19413 * gdbreplay.c, server.h, utils.c: Update copyright years.
19415 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19417 * server.c (main): Print child status or termination signal from
19418 variable 'signal', not 'sig'.
19420 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19422 * linux-low.c (linux_read_memory): Change return type to
19423 int. Check for and return error from ptrace().
19424 * target.c (read_inferior_memory): Change return type to int. Pass
19425 back return status from the_target->read_memory().
19426 * target.h (struct target_ops): Adapt *read_memory() prototype.
19428 (read_inferior_memory): Adapt prototype.
19429 * server.c (main): Return an error packet if
19430 read_inferior_memory() returns an error.
19432 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
19434 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19435 Unify with other clean targets.
19437 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19439 * server.c (handle_v_cont): Call set_desired_inferior.
19441 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19443 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19445 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19447 * linux-low.c (linux_wait): Unblock async I/O.
19448 (linux_resume): Block and enable async I/O.
19449 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19450 * server.h (block_async_io, unblock_async_io): Add prototypes.
19452 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19454 * remote-utils.c (remote_open): Print a status notice after
19455 opening a TCP port.
19456 * server.c (attach_inferior): Print a status notice after
19459 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19461 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19463 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
19465 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19467 * server.c, target.h: Update copyright years.
19469 2004-02-25 Roland McGrath <roland@redhat.com>
19471 * target.h (struct target_ops): New member `read_auxv'.
19472 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19473 * linux-low.c (linux_read_auxv): New function.
19474 (linux_target_ops): Initialize `read_auxv' member to that.
19476 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19478 Committed by Jim Blandy <jimb@redhat.com>.
19480 * linux-s390-low.c (s390_num_regs): Update.
19481 (s390_regmap): Remove control registers. Use __s390x__ predefine
19482 instead of GPR_SIZE to distiguish s390 and s390x targets.
19484 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
19486 * linux-low.c: Update copyright year.
19487 (check_removed_breakpoint): Clear pending_is_breakpoint.
19488 (linux_set_resume_request, linux_queue_one_thread)
19489 (resume_status_pending_p): New functions.
19490 (linux_continue_one_thread): Use process->resume.
19491 (linux_resume): Only resume threads if there are no pending events.
19492 * linux-low.h (struct process_info): Add resume request
19495 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
19497 * regcache.c (new_register_cache): Clear the allocated register
19498 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19500 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
19502 * linux-low.c (linux_resume): Take a struct thread_resume *
19504 (linux_wait): Update call.
19505 (resume_ptr): New static variable.
19506 (linux_continue_one_thread): Renamed from
19507 linux_continue_one_process. Use resume_ptr.
19508 (linux_resume): Use linux_continue_one_thread.
19509 * server.c (handle_v_cont, handle_v_requests): New functions.
19510 (myresume): New function.
19511 (main): Handle 'v' case.
19512 * target.h (struct thread_resume): New type.
19513 (struct target_ops): Change argument of "resume" to struct
19515 (myresume): Delete macro.
19517 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19519 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19520 (uninstall): Support DESTDIR.
19522 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19524 * configure.srv: Add xscale*linux copy of arm*linux entry.
19526 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
19528 * linux-arm-low.c (arm_reinsert_addr): New function.
19529 (the_low_target): Add arm_reinsert_addr.
19531 2003-07-08 Mark Kettenis <kettenis@gnu.org>
19533 * mem-break.c: Remove whitespace at end of file.
19535 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19537 * configure.in: Check whether we need to prototype strerror.
19538 * server.h: Optionally prototype strerror.
19539 * gdbreplay.c (perror_with_name): Use strerror.
19540 * linux-low.c (linux_attach_lwp): Use strerror.
19541 * utils.c (perror_with_name): Use strerror.
19542 * config.in, configure: Regenerated.
19544 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19546 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19547 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19549 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
19551 * Makefile.in (SFILES): Update.
19552 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19553 low-sun3.c: Remove files.
19555 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
19557 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19558 (linux_detach_one_process, linux_detach): New functions.
19559 (linux_target_ops): Add linux_detach.
19560 * server.c (main): Handle 'D' packet.
19561 * target.h (struct target_ops): Add "detach" member.
19562 (detach_inferior): Define.
19564 2003-06-13 Mark Kettenis <kettenis@gnu.org>
19566 From Kelley Cook <kelleycook@wideopenwest.com>:
19567 * configure.srv: Accept i[34567]86 variants.
19569 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
19571 * linux-low.c (linux_wait_for_event): Correct comment typos.
19572 (linux_resume_one_process): Call check_removed_breakpoint.
19573 (linux_send_signal): New function.
19574 (linux_target_ops): Add linux_send_signal.
19575 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19577 * target.h (struct target_ops): Add send_signal.
19579 2003-05-29 Jim Blandy <jimb@redhat.com>
19581 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19582 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19583 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19584 away part of the register's value.
19586 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
19588 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19589 (linux_wait_for_event, linux_init_signals): Likewise.
19591 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
19593 * configure.in: Check for stdlib.h.
19594 * configure: Regenerated.
19595 * config.in: Regenerated.
19597 2003-01-04 Andreas Schwab <schwab@suse.de>
19599 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19601 2003-01-02 Andrew Cagney <ac131313@redhat.com>
19603 * Makefile.in: Remove obsolete code.
19605 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
19607 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19608 defined(PT_FPR0_HI).
19610 2002-11-17 Stuart Hughes <seh@zee2.com>
19612 * linux-arm-low.c (arm_num_regs): Increase.
19613 (arm_regmap): Include status register.
19615 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
19617 * linux-low.c (register_addr): Remove incorrect -1 check.
19619 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
19621 * linux-low.c (linux_create_inferior): Call setpgid. Return
19623 (unstopped_p, linux_signal_pid): Remove.
19624 (linux_target_ops): Remove linux_signal_pid.
19625 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
19626 global instead of target method.
19627 * target.h (struct target_ops): Remove signal_pid. Update comment
19628 for create_inferior.
19629 * server.c (signal_pid): New variable.
19630 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
19631 gdbserver. Set the child to be the foreground process group.
19632 (attach_inferior): Set signal_pid.
19634 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
19636 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19638 2002-08-20 Jim Blandy <jimb@redhat.com>
19640 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19643 2002-08-01 Andrew Cagney <cagney@redhat.com>
19645 * Makefile.in: Make chill references obsolete.
19647 2002-07-24 Kevin Buettner <kevinb@redhat.com>
19649 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19650 * configure: Regenerate.
19651 * config.in: Regenerate.
19653 2002-07-09 David O'Brien <obrien@FreeBSD.org>
19655 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19656 (perror_with_name, remote_close, remote_open, expect, play): Static.
19658 2002-07-04 Michal Ludvig <mludvig@suse.cz>
19660 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
19661 byte offsets instead of an array of indexes.
19662 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19664 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
19666 * regcache.c: Add comment.
19668 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
19670 * thread-db.c: New file.
19671 * proc-service.c: New file.
19672 * acinclude.m4: New file.
19673 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
19674 proc-service.o, and thread-db.o.
19675 (linux-low.o): Add USE_THREAD_DB.
19676 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
19677 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
19678 * aclocal.m4: Regenerated.
19679 * config.in: Regenerated.
19680 * configure: Regenerated.
19681 * configure.in: Check for proc_service.h, sys/procfs.h,
19682 thread_db.h, and linux/elf.h headrs.
19683 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
19684 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
19685 Check for -lthread_db and thread support.
19686 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
19687 PowerPC, and SuperH.
19688 * i387-fp.c: Constify arguments.
19689 * i387-fp.h: Likewise.
19690 * inferiors.c: (struct thread_info): Renamed from
19691 `struct inferior_info'. Remove PID member. Use generic inferior
19692 list header. All uses updated.
19693 (inferiors, signal_pid): Removed.
19694 (all_threads): New variable.
19695 (get_thread): Define.
19696 (add_inferior_to_list): New function.
19697 (for_each_inferior): New function.
19698 (change_inferior_id): New function.
19699 (add_inferior): Removed.
19700 (remove_inferior): New function.
19701 (add_thread): New function.
19702 (free_one_thread): New function.
19703 (remove_thread): New function.
19704 (clear_inferiors): Use for_each_inferior and free_one_thread.
19705 (find_inferior): New function.
19706 (find_inferior_id): New function.
19707 (inferior_target_data): Update argument type.
19708 (set_inferior_target_data): Likewise.
19709 (inferior_regcache_data): Likewise.
19710 (set_inferior_regcache_data): Likewise.
19711 * linux-low.c (linux_bp_reinsert): Remove.
19712 (all_processes, stopping_threads, using_thrads)
19713 (struct pending_signals, debug_threads, pid_of): New.
19714 (inferior_pid): Replace with macro.
19715 (struct inferior_linux_data): Remove.
19716 (get_stop_pc, add_process): New functions.
19717 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
19718 Use add_process and add_thread.
19719 (linux_attach_lwp): New function, based on old linux_attach. Use
19720 add_process and add_thread. Set stop_expected for new threads.
19721 (linux_attach): New function.
19722 (linux_kill_one_process): New function.
19723 (linux_kill): Kill all LWPs.
19724 (linux_thread_alive): Use find_inferior_id.
19725 (check_removed_breakpoints, status_pending_p): New functions.
19726 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
19727 Update. Use WNOHANG. Wait for cloned processes also. Update process
19728 struct for the found process.
19729 (linux_wait_for_event): New function.
19730 (linux_wait): Use it. Support LWPs.
19731 (send_sigstop, wait_for_sigstop, stop_all_processes)
19732 (linux_resume_one_process, linux_continue_one_process): New functions.
19733 (linux_resume): Support LWPs.
19734 (REGISTER_RAW_SIZE): Remove.
19735 (fetch_register): Use register_size instead. Call supply_register.
19736 (usr_store_inferior_registers): Likewise. Call collect_register.
19737 Fix recursive case.
19738 (regsets_fetch_inferior_registers): Improve error message.
19739 (regsets_store_inferior_registers): Add debugging.
19740 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
19741 (unstopped_p, linux_signal_pid): New functions.
19742 (linux_target_ops): Add linux_signal_pid.
19743 (linux_init_signals): New function.
19744 (initialize_low): Call it. Initialize using_threads.
19745 * regcache.c (inferior_regcache_data): Add valid
19747 (get_regcache): Fetch registers lazily. Add fetch argument
19748 and update all callers.
19749 (regcache_invalidate_one, regcache_invalidate): New
19751 (new_register_cache): Renamed from create_register_cache.
19752 Return the new regcache.
19753 (free_register_cache): Change argument to a void *.
19754 (registers_to_string, registers_from_string): Call get_regcache
19755 with fetch flag set.
19756 (register_data): Make static. Pass fetch flag to get_regcache.
19757 (supply_register): Call get_regcache with fetch flag clear.
19758 (collect_register): Call get_regcache with fetch flag set.
19759 (collect_register_as_string): New function.
19760 * regcache.h: Update.
19761 * remote-utils.c (putpkt): Flush after debug output and use
19763 Handle input interrupts while waiting for an ACK.
19764 (input_interrupt): Use signal_pid method.
19765 (getpkt): Flush after debug output and use stderr.
19766 (outreg): Use collect_register_as_string.
19767 (new_thread_notify, dead_thread_notify): New functions.
19768 (prepare_resume_reply): Check using_threads. Set thread_from_wait
19769 and general_thread.
19770 (look_up_one_symbol): Flush after debug output.
19771 * server.c (step_thread, server_waiting): New variables.
19772 (start_inferior): Don't use signal_pid. Update call to mywait.
19773 (attach_inferior): Update call to mywait.
19774 (handle_query): Handle qfThreadInfo and qsThreadInfo.
19775 (main): Don't fetch/store registers explicitly. Use
19776 set_desired_inferior. Support proposed ``Hs'' packet. Update
19778 * server.h: Update.
19779 (struct inferior_list, struct_inferior_list_entry): New.
19780 * target.c (set_desired_inferior): New.
19781 (write_inferior_memory): Constify.
19782 (mywait): New function.
19783 * target.h: Update.
19784 (struct target_ops): New signal_pid method.
19785 (mywait): Removed macro, added prototype.
19787 * linux-low.h (regset_func): Removed.
19788 (regset_fill_func, regset_store_func): New.
19789 (enum regset_type): New.
19790 (struct regset_info): Add type field. Use new operation types.
19791 (struct linux_target_ops): stop_pc renamed to get_pc.
19792 Add decr_pc_after_break and breakpoint_at.
19793 (get_process, get_thread_proess, get_process_thread)
19794 (strut process_info, all_processes, linux_attach_lwp)
19795 (thread_db_init): New.
19797 * linux-arm-low.c (arm_get_pc, arm_set_pc,
19798 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
19799 (the_low_target): Add new members.
19800 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
19801 (i386_store_fpxregset): Constify.
19802 (target_regsets): Add new kind identifier.
19803 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
19804 (i386_set_pc): Add debugging.
19805 (i386_breakpoint_at): New function.
19806 (the_low_target): Add new members.
19807 * linux-mips-low.c (mips_get_pc, mips_set_pc)
19808 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
19809 (mips_breakpoint_at): New.
19810 (the_low_target): Add new members.
19811 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
19812 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
19813 (the_low_target): Add new members.
19814 * linux-sh-low.c (sh_get_pc, sh_set_pc)
19815 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
19816 (the_low_target): Add new members.
19817 * linux-x86-64-low.c (target_regsets): Add new kind
19820 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
19822 From Martin Pool <mbp@samba.org>:
19823 * server.c (gdbserver_usage): New function.
19826 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
19828 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19829 stop_at -> stop_pc.
19831 2002-05-04 Andrew Cagney <ac131313@redhat.com>
19833 * Makefile.in: Remove obsolete code.
19835 2002-04-24 Michal Ludvig <mludvig@suse.cz>
19837 * linux-low.c (regsets_fetch_inferior_registers),
19838 (regsets_store_inferior_registers): Removed cast to int from
19840 * regcache.h: Added declaration of struct inferior_info.
19842 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19844 * inferiors.c (struct inferior_info): Add regcache_data.
19845 (add_inferior): Call create_register_cache.
19846 (clear_inferiors): Call free_register_cache.
19847 (inferior_regcache_data, set_inferior_regcache_data): New functions.
19848 * regcache.c (struct inferior_regcache_data): New.
19849 (registers): Remove.
19850 (get_regcache): New function.
19851 (create_register_cache, free_register_cache): New functions.
19852 (set_register_cache): Don't initialize the register cache here.
19853 (registers_to_string, registers_from_string, register_data): Call
19855 * regcache.h: Add prototypes.
19856 * server.h: Likewise.
19858 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19860 * mem-break.c: New file.
19861 * mem-break.h: New file.
19862 * Makefile.in: Add mem-break.o rule; update server.h
19864 * inferiors.c (struct inferior_info): Add target_data
19866 (clear_inferiors): Free target_data member if set.
19867 (inferior_target_data, set_inferior_target_data): New functions.
19868 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19869 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19870 * linux-low.c (linux_bp_reinsert): New variable.
19871 (struct inferior_linux_data): New.
19872 (linux_create_inferior): Use set_inferior_target_data.
19873 (linux_attach): Likewise. Call add_inferior.
19874 (linux_wait_for_one_inferior): New function.
19875 (linux_wait): Call it.
19876 (linux_write_memory): Add const.
19877 (initialize_low): Call set_breakpoint_data.
19878 * linux-low.h (struct linux_target_ops): Add breakpoint
19880 * server.c (attach_inferior): Remove extra add_inferior
19882 * server.h: Include mem-break.h. Update inferior.c
19884 * target.c (read_inferior_memory)
19885 (write_inferior_memory): New functions.
19886 * target.h (read_inferior_memory)
19887 (write_inferior_memory): Change macros to prototypes.
19888 (struct target_ops): Update comments. Add const to write_memory
19891 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
19893 * linux-low.c (usr_store_inferior_registers): Support
19894 registers which are allowed to fail to store.
19895 * linux-low.h (linux_target_ops): Likewise.
19896 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
19897 (ppc_cannot_store_register): FPSCR may not be storable.
19899 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19901 * server.h: Include <string.h> if HAVE_STRING_H.
19902 * ChangeLog: Correct paths in last ChangeLog entry.
19904 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19906 * linux-low.h: Remove obsolete prototypes.
19907 (struct linux_target_ops): New.
19908 (extern the_low_target): New.
19909 * linux-low.c (num_regs, regmap): Remove declarations.
19910 (register_addr): Use the_low_target explicitly.
19911 (fetch_register): Likewise.
19912 (usr_fetch_inferior_registers): Likewise.
19913 (usr_store_inferior_registers): Likewise.
19914 * linux-arm-low.c (num_regs): Remove.
19915 (arm_num_regs): Define.
19916 (arm_regmap): Renamed from regmap, made static.
19917 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
19919 (arm_cannot_store_register): Renamed from cannot_store_register,
19921 (the_low_target): New.
19922 * linux-i386-low.c (num_regs): Remove.
19923 (i386_num_regs): Define.
19924 (i386_regmap): Renamed from regmap, made static.
19925 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
19927 (i386_cannot_store_register): Renamed from cannot_store_register,
19929 (the_low_target): New.
19930 * linux-ia64-low.c (num_regs): Remove.
19931 (ia64_num_regs): Define.
19932 (ia64_regmap): Renamed from regmap, made static.
19933 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
19935 (ia64_cannot_store_register): Renamed from cannot_store_register,
19937 (the_low_target): New.
19938 * linux-m68k-low.c (num_regs): Remove.
19939 (m68k_num_regs): Define.
19940 (m68k_regmap): Renamed from regmap, made static.
19941 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
19943 (m68k_cannot_store_register): Renamed from cannot_store_register,
19945 (the_low_target): New.
19946 * linux-mips-low.c (num_regs): Remove.
19947 (mips_num_regs): Define.
19948 (mips_regmap): Renamed from regmap, made static.
19949 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
19951 (mips_cannot_store_register): Renamed from cannot_store_register,
19953 (the_low_target): New.
19954 * linux-ppc-low.c (num_regs): Remove.
19955 (ppc_num_regs): Define.
19956 (ppc_regmap): Renamed from regmap, made static.
19957 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
19959 (ppc_cannot_store_register): Renamed from cannot_store_register,
19961 (the_low_target): New.
19962 * linux-s390-low.c (num_regs): Remove.
19963 (s390_num_regs): Define.
19964 (s390_regmap): Renamed from regmap, made static.
19965 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
19967 (s390_cannot_store_register): Renamed from cannot_store_register,
19969 (the_low_target): New.
19970 * linux-sh-low.c (num_regs): Remove.
19971 (sh_num_regs): Define.
19972 (sh_regmap): Renamed from regmap, made static.
19973 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
19975 (sh_cannot_store_register): Renamed from cannot_store_register,
19977 (the_low_target): New.
19978 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
19979 (the_low_target): New.
19981 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19983 * Makefile.in: Add stamp-h target.
19984 * configure.in: Create stamp-h.
19985 * configure: Regenerated.
19987 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
19989 * inferiors.c: New file.
19990 * target.c: New file.
19991 * target.h: New file.
19992 * Makefile.in: Add target.o and inferiors.o. Update
19994 * linux-low.c (inferior_pid): New static variable,
19995 moved from server.c.
19996 (linux_create_inferior): Renamed from create_inferior.
19997 Call add_inferior. Return 0 on success instead of a PID.
19998 (linux_attach): Renamed from myattach.
19999 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
20000 (linux_thread_alive): Renamed from mythread_alive.
20001 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
20003 (linux_resume): Renamed from myresume. Add missing ``return 0''.
20004 (regsets_store_inferior_registers): Correct error message.
20005 Add missing ``return 0''.
20006 (linux_fetch_registers): Renamed from fetch_inferior_registers.
20007 (linux_store_registers): Renamed from store_inferior_registers.
20008 (linux_read_memory): Renamed from read_inferior_memory.
20009 (linux_write_memory): Renamed from write_inferior_memory.
20010 (linux_target_ops): New structure.
20011 (initialize_low): Call set_target_ops ().
20012 * remote-utils.c (unhexify): New function.
20013 (hexify): New function.
20014 (input_interrupt): Send signals to ``signal_pid''.
20015 * server.c (inferior_pid): Remove.
20016 (start_inferior): Update create_inferior call.
20017 (attach_inferior): Call add_inferior.
20018 (handle_query): New function.
20019 (main): Call handle_query for `q' packets.
20020 * server.h: Include "target.h". Remove obsolete prototypes.
20021 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
20023 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20025 * Makefile.in: Add WARN_CFLAGS. Update configury
20027 * configure.in: Check for <string.h>
20028 * configure: Regenerate.
20029 * config.in: Regenerate.
20030 * gdbreplay.c: Include needed system headers.
20031 (remote_open): Remove strchr prototype.
20032 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
20033 * regcache.c (supply_register): Change buf argument to const void *.
20034 (supply_register_by_name): Likewise.
20035 (collect_register): Change buf argument to void *.
20036 (collect_register_by_name): Likewise.
20037 * regcache.h: Add missing prototypes.
20038 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
20039 * server.c (handle_query): New function.
20040 (attached): New static variable, moved out of main.
20041 (main): Quiet longjmp clobber warnings.
20042 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
20043 * utils.c (error): Remove NORETURN.