1 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 Turn the 'arch_setup' linux target op into a method of
6 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
7 (class linux_process_target) <arch_setup_thread>
8 <low_arch_setup>: New declarations.
9 * linux-low.cc (linux_arch_setup): Delete.
10 (linux_arch_setup_thread): Turn into...
11 (linux_process_target::arch_setup_thread): ... this.
13 Update the callers below.
15 (linux_process_target::handle_extended_wait)
16 (linux_process_target::post_create_inferior)
17 (linux_process_target::filter_event)
19 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
21 (x86_linux_update_xmltarget): Turn into...
22 (x86_target::update_xmltarget): ...this.
23 (x86_linux_process_qsupported): Update the call to
24 x86_linux_update_xmltarget.
25 (x86_arch_setup): Turn into ...
26 (x86_target::low_arch_setup): ...this.
27 (the_low_target): Remove the op field.
28 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
30 (aarch64_arch_setup): Turn into ...
31 (aarch64_target::low_arch_setup): ...this.
32 (the_low_target): Remove the op field.
33 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
35 (arm_arch_setup): Turn into ...
36 (arm_target::low_arch_setup): ...this.
37 (the_low_target): Remove the op field.
38 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
40 (bfin_arch_setup): Turn into ...
41 (bfin_target::low_arch_setup): ...this.
42 (the_low_target): Remove the op field.
43 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
45 (cris_arch_setup): Turn into ...
46 (cris_target::low_arch_setup): ...this.
47 (the_low_target): Remove the op field.
48 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
50 (crisv32_arch_setup): Turn into ...
51 (crisv32_target::low_arch_setup): ...this.
52 (the_low_target): Remove the op field.
53 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
55 (ia64_arch_setup): Turn into ...
56 (ia64_target::low_arch_setup): ...this.
57 (the_low_target): Remove the op field.
58 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
60 (m32r_arch_setup): Turn into ...
61 (m32r_target::low_arch_setup): ...this.
62 (the_low_target): Remove the op field.
63 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
65 (m68k_arch_setup): Turn into ...
66 (m68k_target::low_arch_setup): ...this.
67 (the_low_target): Remove the op field.
68 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
70 (mips_arch_setup): Turn into ...
71 (mips_target::low_arch_setup): ...this.
72 (the_low_target): Remove the op field.
73 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
75 (nios2_arch_setup): Turn into ...
76 (nios2_target::low_arch_setup): ...this.
77 (the_low_target): Remove the op field.
78 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
80 (ppc_arch_setup): Turn into ...
81 (ppc_target::low_arch_setup): ...this.
82 (the_low_target): Remove the op field.
83 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
85 (riscv_arch_setup): Turn into ...
86 (riscv_target::low_arch_setup): ...this.
87 (the_low_target): Remove the op field.
88 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
90 (s390_arch_setup): Turn into ...
91 (s390_target::low_arch_setup): ...this.
92 (the_low_target): Remove the op field.
93 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
95 (sh_arch_setup): Turn into ...
96 (sh_target::low_arch_setup): ...this.
97 (the_low_target): Remove the op field.
98 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
100 (sparc_arch_setup): Turn into ...
101 (sparc_target::low_arch_setup): ...this.
102 (the_low_target): Remove the op field.
103 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
105 (tic6x_arch_setup): Turn into ...
106 (tic6x_target::low_arch_setup): ...this.
107 (the_low_target): Remove the op field.
108 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
110 (tile_arch_setup): Turn into ...
111 (tile_target::low_arch_setup): ...this.
112 (the_low_target): Remove the op field.
113 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
115 (xtensa_arch_setup): Turn into ...
116 (xtensa_target::low_arch_setup): ...this.
117 (the_low_target): Remove the op field.
119 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
121 * linux-low.h (the_linux_target): New extern declaration.
122 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
124 (the_linux_target): Remove.
125 * linux-x86-low.cc (class x86_target): New class.
126 (the_x86_target): New static object.
127 (the_linux_target): Define as pointer to the_x86_target.
128 * linux-aarch64-low.cc (class aarch64_target): New class.
129 (the_aarch64_target): New static object.
130 (the_linux_target): Define as pointer to the_aarch64_target.
131 * linux-arm-low.cc (class arm_target): New class.
132 (the_arm_target): New static object.
133 (the_linux_target): Define as pointer to the_arm_target.
134 * linux-bfin-low.cc (class bfin_target): New class.
135 (the_bfin_target): New static object.
136 (the_linux_target): Define as pointer to the_bfin_target.
137 * linux-cris-low.cc (class cris_target): New class.
138 (the_cris_target): New static object.
139 (the_linux_target): Define as pointer to the_cris_target.
140 * linux-crisv32-low.cc (class crisv32_target): New class.
141 (the_crisv32_target): New static object.
142 (the_linux_target): Define as pointer to the_crisv32_target.
143 * linux-ia64-low.cc (class ia64_target): New class.
144 (the_ia64_target): New static object.
145 (the_linux_target): Define as pointer to the_ia64_target.
146 * linux-m32r-low.cc (class m32r_target): New class.
147 (the_m32r_target): New static object.
148 (the_linux_target): Define as pointer to the_m32r_target.
149 * linux-m68k-low.cc (class m68k_target): New class.
150 (the_m68k_target): New static object.
151 (the_linux_target): Define as pointer to the_m68k_target.
152 * linux-mips-low.cc (class mips_target): New class.
153 (the_mips_target): New static object.
154 (the_linux_target): Define as pointer to the_mips_target.
155 * linux-nios2-low.cc (class nios2_target): New class.
156 (the_nios2_target): New static object.
157 (the_linux_target): Define as pointer to the_nios2_target.
158 * linux-ppc-low.cc (class ppc_target): New class.
159 (the_ppc_target): New static object.
160 (the_linux_target): Define as pointer to the_ppc_target.
161 * linux-riscv-low.cc (class riscv_target): New class.
162 (the_riscv_target): New static object.
163 (the_linux_target): Define as pointer to the_riscv_target.
164 * linux-s390-low.cc (class s390_target): New class.
165 (the_s390_target): New static object.
166 (the_linux_target): Define as pointer to the_s390_target.
167 * linux-sh-low.cc (class sh_target): New class.
168 (the_sh_target): New static object.
169 (the_linux_target): Define as pointer to the_sh_target.
170 * linux-sparc-low.cc (class sparc_target): New class.
171 (the_sparc_target): New static object.
172 (the_linux_target): Define as pointer to the_sparc_target.
173 * linux-tic6x-low.cc (class tic6x_target): New class.
174 (the_tic6x_target): New static object.
175 (the_linux_target): Define as pointer to the_tic6x_target.
176 * linux-tile-low.cc (class tile_target): New class.
177 (the_tile_target): New static object.
178 (the_linux_target): Define as pointer to the_tile_target.
179 * linux-xtensa-low.cc (class xtensa_target): New class.
180 (the_xtensa_target): New static object.
181 (the_linux_target): Define as pointer to the_xtensa_target.
183 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
185 Turn some static functions in linux-low.cc into private methods of
186 linux_process_target.
188 * linux-low.cc (handle_extended_wait): Turn into ...
189 (linux_process_target::handle_extended_wait): ...this. Call
190 'mourn' on 'this' object instead of 'the_target'.
191 (maybe_move_out_of_jump_pad): Turn into...
192 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
193 (linux_low_filter_event): Turn into...
194 (linux_process_target::filter_event): ...this.
195 (linux_wait_for_event_filtered): Turn into...
196 (linux_process_target::wait_for_event_filtered): ...this.
197 (linux_wait_for_event): Turn into...
198 (linux_process_target::wait_for_event): ...this.
199 (linux_wait_1): Turn into...
200 (linux_process_target::wait_1): ...this.
201 (wait_for_sigstop): Turn into...
202 (linux_process_target::wait_for_sigstop): ...this.
203 (move_out_of_jump_pad_callback): Turn into...
204 (linux_process_target::move_out_of_jump_pad): ...this.
205 (stop_all_lwps): Turn into...
206 (linux_process_target::stop_all_lwps): ...this.
207 (start_step_over): Turn into...
208 (linux_process_target::start_step_over): ...this.
209 (complete_ongoing_step_over): Turn into...
210 (linux_process_target::complete_ongoing_step_over): ...this.
211 (proceed_all_lwps): Turn into...
212 (linux_process_target::proceed_all_lwps): ...this.
213 (unstop_all_lwps): Turn into...
214 (linux_process_target::unstop_all_lwps): ...this.
216 * linux-low.h (class linux_process_target)
217 <handle_extended_wait>
218 <maybe_move_out_of_jump_pad>
220 <wait_for_event_filtered>
224 <move_out_of_jump_pad>
227 <complete_ongoing_step_over>
229 <unstop_all_lwps>: Declare.
231 Update the callers below.
233 * linux-low.cc (linux_process_target::attach): Update.
234 (linux_process_target::stabilize_threads): Ditto.
235 (linux_process_target::wait): Ditto.
237 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
239 * linux-low.h (struct linux_target_ops): Update the comment for
240 'cannot_store_register' to return 0 or 1.
241 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
244 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
246 * config.in: Re-generate.
247 * configure: Re-generate.
249 2020-03-17 Kamil Rytarowski <n54@gmx.com>
251 * regcache.cc (find_register_by_number): Update.
252 * tdesc.cc (init_target_desc): Likewise.
253 * tdesc.h (target_desc::reg_defs): Likewise.
255 2020-03-12 Tom Tromey <tom@tromey.com>
257 * configure: Rebuild.
258 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
259 (WIN32APILIBS): New subst.
260 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
262 (gdbsupport/%.o): Remove target.
263 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
264 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
265 (WIN32APILIBS): New variable.
266 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
267 (gdbreplay$(EXEEXT)): Likewise.
269 2020-03-12 Tom Tromey <tom@tromey.com>
271 * config.in, configure: Rebuild.
272 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
273 * acinclude.m4: Include gettext-sister.m4.
274 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
276 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
277 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
279 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
281 * acinclude.m4: Update path to selftest.m4.
283 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
285 * configure.ac: Don't source bfd/development.sh, move
286 GDB_AC_COMMON higher.
287 * configure: Re-generate.
289 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
291 * configure: Re-generate.
293 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
295 * configure: Re-generate.
297 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
299 * .dir-locals.el: New file.
301 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
303 * .gitattributes: New file.
305 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
307 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
308 reply into an S reply.
309 * server.cc (disable_packet_T): New global.
310 (captured_main): Set new global when appropriate.
311 * server.h (disable_packet_T): Declare.
313 2020-02-21 Tom Tromey <tom@tromey.com>
315 * Makefile.in (mostlyclean): New target.
317 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
319 * target.h (struct process_stratum_target): Remove.
320 (class process_target): Rename to ...
321 (class process_stratum_target): ... this.
322 * linux-low.h (class linux_process_target): Derive from
323 'process_stratum_target'.
324 * linux-low.cc (linux_target_ops): Remove.
325 (initialize_low): Set the_target to the singleton instance of
326 linux_process_target.
327 * lynx-low.h (class lynx_process_target): Derive from
328 'process_stratum_target'.
329 * lynx-low.cc (lynx_target_ops): Remove.
330 (initialize_low): Set the_target to the singleton instance of
332 * nto-low.h (class nto_process_target): Derive from
333 'process_stratum_target'.
334 * nto-low.cc (nto_target_ops): Remove.
335 (initialize_low): Set the_target to the singleton instance of
337 * win32-low.h (class win32_process_target): Derive from
338 'process_stratum_target'.
339 * win32-low.cc (win32_target_ops): Remove.
340 (initialize_low): Set the_target to the singleton instance of
341 win32_process_target.
343 Replace 'the_target->pt' with 'the_target' in the uses below.
345 * hostio.cc (hostio_error)
350 * linux-aarch32-low.cc (arm_breakpoint_at)
351 * linux-aarch64-low.cc (aarch64_breakpoint_at)
352 * linux-arm-low.cc (arm_sigreturn_next_pc)
354 (arm_get_syscall_trapinfo)
355 * linux-cris-low.cc (cris_breakpoint_at)
356 * linux-crisv32-low.cc (cris_breakpoint_at)
357 * linux-low.cc (handle_extended_wait)
360 (linux_process_target::breakpoint_kind_from_pc)
362 * linux-m32r-low.cc (m32r_breakpoint_at)
363 * linux-mips-low.cc (mips_breakpoint_at)
364 * linux-nios2-low.cc (nios2_breakpoint_at)
365 * linux-ppc-low.cc (ppc_breakpoint_at)
366 * linux-s390-low.cc (s390_get_hwcap)
367 * linux-sh-low.cc (sh_breakpoint_at)
368 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
369 (sparc_store_gregset_from_stack)
370 (sparc_breakpoint_at)
371 * linux-tic6x-low.cc (tic6x_breakpoint_at)
372 * linux-tile-low.cc (tile_breakpoint_at)
373 * linux-x86-low.cc (x86_breakpoint_at)
374 * linux-xtensa-low.cc (xtensa_breakpoint_at)
375 * mem-break.cc (bp_size)
377 (insert_memory_breakpoint)
378 (set_raw_breakpoint_at)
379 (delete_raw_breakpoint)
381 (uninsert_raw_breakpoint)
382 (reinsert_raw_breakpoint)
383 (validate_inserted_breakpoint)
384 * regcache.cc (regcache_read_pc)
386 * remote-utils.cc (putpkt_binary_1)
389 (prepare_resume_reply)
390 * server.cc (handle_general_set)
393 (handle_qxfer_exec_file)
394 (handle_qxfer_libraries_svr4)
395 (handle_qxfer_osdata)
396 (handle_qxfer_siginfo)
401 (queue_stop_reply_callback)
403 * target.cc (prepare_to_access_memory)
404 (done_accessing_memory)
405 (read_inferior_memory)
406 (target_write_memory)
407 (target_stop_and_wait)
409 (target_mourn_inferior)
410 (target_continue_no_signal)
412 (target_supports_multi_process)
415 (target_create_inferior)
416 (target_post_create_inferior)
418 (target_supports_fork_events)
419 (target_supports_vfork_events)
420 (target_supports_exec_events)
421 (target_handle_new_gdb_connection)
424 (fetch_inferior_registers)
425 (store_inferior_registers)
427 (target_supports_non_stop)
429 (target_process_qsupported)
430 (target_supports_catch_syscall)
431 (target_get_ipa_tdesc_idx)
432 (target_supports_tracepoints)
433 (target_supports_fast_tracepoints)
434 (target_get_min_fast_tracepoint_insn_len)
435 (target_thread_stopped)
438 (target_stabilize_threads)
439 (target_install_fast_tracepoint_jump_pad)
441 (target_supports_disable_randomization)
442 (target_supports_agent)
443 (target_enable_btrace)
444 (target_disable_btrace)
446 (target_read_btrace_conf)
447 (target_supports_range_stepping)
448 (target_supports_stopped_by_sw_breakpoint)
449 (target_stopped_by_sw_breakpoint)
450 (target_supports_stopped_by_hw_breakpoint)
451 (target_supports_hardware_single_step)
452 (target_stopped_by_hw_breakpoint)
453 (target_breakpoint_kind_from_pc)
454 (target_breakpoint_kind_from_current_state)
455 (target_supports_software_single_step)
456 (target_core_of_thread)
458 (target_thread_handle)
459 * win32-low.cc (do_initial_child_stuff)
461 Rename target op default definitions listed below.
463 * target.cc (process_target::post_create_inferior): Rename as ...
464 (process_stratum_target::post_create_inferior): ... this.
465 (process_target::prepare_to_access_memory): Rename as ...
466 (process_stratum_target::prepare_to_access_memory): ... this.
467 (process_target::done_accessing_memory): Rename as ...
468 (process_stratum_target::done_accessing_memory): ... this.
469 (process_target::look_up_symbols): Rename as ...
470 (process_stratum_target::look_up_symbols): ... this.
471 (process_target::supports_read_auxv): Rename as ...
472 (process_stratum_target::supports_read_auxv): ... this.
473 (process_target::read_auxv): Rename as ...
474 (process_stratum_target::read_auxv): ... this.
475 (process_target::supports_z_point_type): Rename as ...
476 (process_stratum_target::supports_z_point_type): ... this.
477 (process_target::insert_point): Rename as ...
478 (process_stratum_target::insert_point): ... this.
479 (process_target::remove_point): Rename as ...
480 (process_stratum_target::remove_point): ... this.
481 (process_target::stopped_by_sw_breakpoint): Rename as ...
482 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
483 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
484 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
485 (process_target::stopped_by_hw_breakpoint): Rename as ...
486 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
487 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
488 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
489 (process_target::supports_hardware_single_step): Rename as ...
490 (process_stratum_target::supports_hardware_single_step): ... this.
491 (process_target::stopped_by_watchpoint): Rename as ...
492 (process_stratum_target::stopped_by_watchpoint): ... this.
493 (process_target::stopped_data_address): Rename as ...
494 (process_stratum_target::stopped_data_address): ... this.
495 (process_target::supports_read_offsets): Rename as ...
496 (process_stratum_target::supports_read_offsets): ... this.
497 (process_target::read_offsets): Rename as ...
498 (process_stratum_target::read_offsets): ... this.
499 (process_target::supports_get_tls_address): Rename as ...
500 (process_stratum_target::supports_get_tls_address): ... this.
501 (process_target::get_tls_address): Rename as ...
502 (process_stratum_target::get_tls_address): ... this.
503 (process_target::hostio_last_error): Rename as ...
504 (process_stratum_target::hostio_last_error): ... this.
505 (process_target::supports_qxfer_osdata): Rename as ...
506 (process_stratum_target::supports_qxfer_osdata): ... this.
507 (process_target::qxfer_osdata): Rename as ...
508 (process_stratum_target::qxfer_osdata): ... this.
509 (process_target::supports_qxfer_siginfo): Rename as ...
510 (process_stratum_target::supports_qxfer_siginfo): ... this.
511 (process_target::qxfer_siginfo): Rename as ...
512 (process_stratum_target::qxfer_siginfo): ... this.
513 (process_target::supports_non_stop): Rename as ...
514 (process_stratum_target::supports_non_stop): ... this.
515 (process_target::async): Rename as ...
516 (process_stratum_target::async): ... this.
517 (process_target::start_non_stop): Rename as ...
518 (process_stratum_target::start_non_stop): ... this.
519 (process_target::supports_multi_process): Rename as ...
520 (process_stratum_target::supports_multi_process): ... this.
521 (process_target::supports_fork_events): Rename as ...
522 (process_stratum_target::supports_fork_events): ... this.
523 (process_target::supports_vfork_events): Rename as ...
524 (process_stratum_target::supports_vfork_events): ... this.
525 (process_target::supports_exec_events): Rename as ...
526 (process_stratum_target::supports_exec_events): ... this.
527 (process_target::handle_new_gdb_connection): Rename as ...
528 (process_stratum_target::handle_new_gdb_connection): ... this.
529 (process_target::handle_monitor_command): Rename as ...
530 (process_stratum_target::handle_monitor_command): ... this.
531 (process_target::core_of_thread): Rename as ...
532 (process_stratum_target::core_of_thread): ... this.
533 (process_target::supports_read_loadmap): Rename as ...
534 (process_stratum_target::supports_read_loadmap): ... this.
535 (process_target::read_loadmap): Rename as ...
536 (process_stratum_target::read_loadmap): ... this.
537 (process_target::process_qsupported): Rename as ...
538 (process_stratum_target::process_qsupported): ... this.
539 (process_target::supports_tracepoints): Rename as ...
540 (process_stratum_target::supports_tracepoints): ... this.
541 (process_target::read_pc): Rename as ...
542 (process_stratum_target::read_pc): ... this.
543 (process_target::write_pc): Rename as ...
544 (process_stratum_target::write_pc): ... this.
545 (process_target::supports_thread_stopped): Rename as ...
546 (process_stratum_target::supports_thread_stopped): ... this.
547 (process_target::thread_stopped): Rename as ...
548 (process_stratum_target::thread_stopped): ... this.
549 (process_target::supports_get_tib_address): Rename as ...
550 (process_stratum_target::supports_get_tib_address): ... this.
551 (process_target::get_tib_address): Rename as ...
552 (process_stratum_target::get_tib_address): ... this.
553 (process_target::pause_all): Rename as ...
554 (process_stratum_target::pause_all): ... this.
555 (process_target::unpause_all): Rename as ...
556 (process_stratum_target::unpause_all): ... this.
557 (process_target::stabilize_threads): Rename as ...
558 (process_stratum_target::stabilize_threads): ... this.
559 (process_target::supports_fast_tracepoints): Rename as ...
560 (process_stratum_target::supports_fast_tracepoints): ... this.
561 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
562 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
563 (process_target::emit_ops): Rename as ...
564 (process_stratum_target::emit_ops): ... this.
565 (process_target::supports_disable_randomization): Rename as ...
566 (process_stratum_target::supports_disable_randomization): ... this.
567 (process_target::supports_qxfer_libraries_svr4): Rename as ...
568 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
569 (process_target::qxfer_libraries_svr4): Rename as ...
570 (process_stratum_target::qxfer_libraries_svr4): ... this.
571 (process_target::supports_agent): Rename as ...
572 (process_stratum_target::supports_agent): ... this.
573 (process_target::enable_btrace): Rename as ...
574 (process_stratum_target::enable_btrace): ... this.
575 (process_target::disable_btrace): Rename as ...
576 (process_stratum_target::disable_btrace): ... this.
577 (process_target::read_btrace): Rename as ...
578 (process_stratum_target::read_btrace): ... this.
579 (process_target::read_btrace_conf): Rename as ...
580 (process_stratum_target::read_btrace_conf): ... this.
581 (process_target::supports_range_stepping): Rename as ...
582 (process_stratum_target::supports_range_stepping): ... this.
583 (process_target::supports_pid_to_exec_file): Rename as ...
584 (process_stratum_target::supports_pid_to_exec_file): ... this.
585 (process_target::pid_to_exec_file): Rename as ...
586 (process_stratum_target::pid_to_exec_file): ... this.
587 (process_target::supports_multifs): Rename as ...
588 (process_stratum_target::supports_multifs): ... this.
589 (process_target::multifs_open): Rename as ...
590 (process_stratum_target::multifs_open): ... this.
591 (process_target::multifs_unlink): Rename as ...
592 (process_stratum_target::multifs_unlink): ... this.
593 (process_target::multifs_readlink): Rename as ...
594 (process_stratum_target::multifs_readlink): ... this.
595 (process_target::breakpoint_kind_from_pc): Rename as ...
596 (process_stratum_target::breakpoint_kind_from_pc): ... this.
597 (process_target::breakpoint_kind_from_current_state): Rename as ...
598 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
599 (process_target::thread_name): Rename as ...
600 (process_stratum_target::thread_name): ... this.
601 (process_target::thread_handle): Rename as ...
602 (process_stratum_target::thread_handle): ... this.
603 (process_target::supports_software_single_step): Rename as ...
604 (process_stratum_target::supports_software_single_step): ... this.
605 (process_target::supports_catch_syscall): Rename as ...
606 (process_stratum_target::supports_catch_syscall): ... this.
607 (process_target::get_ipa_tdesc_idx): Rename as ...
608 (process_stratum_target::get_ipa_tdesc_idx): ... this.
610 2020-02-20 Pedro Alves <palves@redhat.com>
612 * target.cc (set_target_ops): Simply copy the given target pointer
613 instead of creating a copy of the pointed object.
615 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
617 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
620 * target.h (struct process_stratum_target): Remove the target op.
621 (class process_target): Add the target op.
622 (target_get_ipa_tdesc_idx): Update the macro.
623 * target.cc (process_target::get_ipa_tdesc_idx): Define.
625 Update the derived classes and callers below.
627 * linux-low.cc (linux_target_ops): Update.
628 (linux_get_ipa_tdesc_idx): Turn into ...
629 (linux_process_target::get_ipa_tdesc_idx): ... this.
630 * linux-low.h (class linux_process_target): Update.
631 * lynx-low.cc (lynx_target_ops): Update.
632 * nto-low.cc (nto_target_ops): Update.
633 * win32-low.cc (win32_target_ops): Update.
635 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
637 Turn process_stratum_target's supports_catch_syscall op into a
638 method of process_target.
640 * target.h (struct process_stratum_target): Remove the target op.
641 (class process_target): Add the target op.
642 (target_supports_catch_syscall): Update the macro.
643 * target.cc (process_target::supports_catch_syscall): Define.
645 Update the derived classes and callers below.
647 * linux-low.cc (linux_target_ops): Update.
648 (linux_supports_catch_syscall): Turn into ...
649 (linux_process_target::supports_catch_syscall): ... this.
650 * linux-low.h (class linux_process_target): Update.
651 * lynx-low.cc (lynx_target_ops): Update.
652 * nto-low.cc (nto_target_ops): Update.
653 * win32-low.cc (win32_target_ops): Update.
655 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
657 Turn process_stratum_target's supports_software_single_step op
658 into a method of process_target.
660 * target.h (struct process_stratum_target): Remove the target op.
661 (class process_target): Add the target op.
662 (target_supports_software_single_step): Update the macro.
663 * target.cc (process_target::supports_software_single_step): Define.
665 Update the derived classes and callers below.
667 * linux-low.cc (linux_target_ops): Update.
668 (linux_supports_software_single_step): Turn into ...
669 (linux_process_target::supports_software_single_step): ... this.
670 * linux-low.h (class linux_process_target): Update.
671 * lynx-low.cc (lynx_target_ops): Update.
672 * nto-low.cc (nto_target_ops): Update.
673 * win32-low.cc (win32_target_ops): Update.
675 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
677 Turn process_stratum_target's thread_name and thread_handle ops
678 into methods of process_target.
680 * target.h (struct process_stratum_target): Remove the target ops.
681 (class process_target): Add the target ops.
682 (target_thread_name): Update the macro.
683 (target_thread_handle): Update the macro.
684 * target.cc (process_target::thread_name): Define.
685 (process_target::thread_handle): Define.
687 Update the derived classes and callers below.
689 * linux-low.cc (linux_target_ops): Update.
690 (linux_process_target::thread_name): Define.
691 (linux_process_target::thread_handle): Define.
692 * linux-low.h (class linux_process_target): Update.
693 * lynx-low.cc (lynx_target_ops): Update.
694 * nto-low.cc (nto_target_ops): Update.
695 * win32-low.cc (win32_target_ops): Update.
697 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
699 Turn process_stratum_target's breakpoint_kind_from_pc,
700 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
701 ops into methods of process_target.
703 * target.h (struct process_stratum_target): Remove the target op.
704 (class process_target): Add the target op.
705 (target_breakpoint_kind_from_pc): Update the macro.
706 (target_breakpoint_kind_from_current_state): Update the macro.
707 (default_breakpoint_kind_from_pc): Remove declaration.
708 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
709 (process_target::breakpoint_kind_from_pc): ... this.
710 (process_target::breakpoint_kind_from_current_state): Define.
712 Update the derived classes and callers below.
714 * mem-break.cc (bp_size): Update.
716 * linux-low.cc (linux_target_ops): Update.
717 (linux_wait_1): Update.
718 (linux_breakpoint_kind_from_pc): Turn into ...
719 (linux_process_target::breakpoint_kind_from_pc): ... this.
720 (linux_sw_breakpoint_from_kind): Turn into ...
721 (linux_process_target::sw_breakpoint_from_kind): ... this.
722 (linux_breakpoint_kind_from_current_state): Turn into ...
723 (linux_process_target::breakpoint_kind_from_current_state): ... this.
724 * linux-low.h (class linux_process_target): Update.
725 * lynx-low.cc (lynx_target_ops): Update.
726 (lynx_process_target::sw_breakpoint_from_kind): Define.
727 * lynx-low.h (class lynx_process_target): Update.
728 * nto-low.cc (nto_target_ops): Update.
729 (nto_sw_breakpoint_from_kind): Turn into ...
730 (nto_process_target::sw_breakpoint_from_kind): ... this.
731 * nto-low.h (class nto_process_target): Update.
732 * win32-low.cc (win32_target_ops): Update.
733 (win32_sw_breakpoint_from_kind): Turn into ...
734 (win32_process_target::sw_breakpoint_from_kind): ... this.
735 * win32-low.h (class win32_process_target): Update.
737 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
739 Turn process_stratum_target's multifs_open, multifs_readlink,
740 multifs_unlink ops into methods of process_target.
742 * target.h (struct process_stratum_target): Remove the target ops.
743 (class process_target): Add the target ops. Also add
745 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
747 (process_target::supports_multifs): Define.
748 (process_target::multifs_open): Define.
749 (process_target::multifs_readlink): Define.
750 (process_target::multifs_unlink): Define.
752 Update the derived classes and callers below.
754 * hostio.cc (handle_setfs): Update.
755 (handle_open): Update.
756 (handle_unlink): Update.
757 (handle_readlink): Update.
758 * linux-low.cc (linux_target_ops): Update.
759 (linux_process_target::supports_multifs): Define.
760 (linux_process_target::multifs_open): Define.
761 (linux_process_target::multifs_readlink): Define.
762 (linux_process_target::multifs_unlink): Define.
763 * linux-low.h (class linux_process_target): Update.
764 * lynx-low.cc (lynx_target_ops): Update.
765 * nto-low.cc (nto_target_ops): Update.
766 * win32-low.cc (win32_target_ops): Update.
768 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
770 Turn process_stratum_target's pid_to_exec_file op into a method
773 * target.h (struct process_stratum_target): Remove the target op.
774 (class process_target): Add the target op. Also add
775 'supports_pid_to_exec_file'.
776 * target.cc (process_target::pid_to_exec_file): Define.
777 (process_target::supports_pid_to_exec_file): Define.
779 Update the derived classes and callers below.
781 * server.cc (handle_qxfer_exec_file): Update.
782 (handle_query): Update.
783 * linux-low.cc (linux_target_ops): Update.
784 (linux_process_target::supports_pid_to_exec_file): Define.
785 (linux_process_target::pid_to_exec_file): Define.
786 * linux-low.h (class linux_process_target): Update.
787 * lynx-low.cc (lynx_target_ops): Update.
788 * nto-low.cc (nto_target_ops): Update.
789 * win32-low.cc (win32_target_ops): Update.
791 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
793 Turn process_stratum_target's supports_range_stepping op into a
794 method of process_target.
796 * target.h (struct process_stratum_target): Remove the target op.
797 (class process_target): Add the target op.
798 (target_supports_range_stepping): Update the macro.
799 * target.cc (process_target::supports_range_stepping): Define.
801 Update the derived classes and callers below.
803 * linux-low.cc (linux_target_ops): Update.
804 (linux_supports_range_stepping): Turn into ...
805 (linux_process_target::supports_range_stepping): ... this.
806 * linux-low.h (class linux_process_target): Update.
807 * lynx-low.cc (lynx_target_ops): Update.
808 * nto-low.cc (nto_target_ops): Update.
809 * win32-low.cc (win32_target_ops): Update.
811 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
813 Turn process_stratum_target's btrace-related ops (enable_btrace,
814 disable_btrace, read_btrace, read_btrace_conf) into methods of
817 * target.h (struct process_stratum_target): Remove the target ops.
818 (class process_target): Add the target ops.
819 (target_enable_btrace): Update.
820 (target_disable_btrace): Update.
821 (target_read_btrace): Update.
822 (target_read_btrace_conf): Update.
823 * target.cc (process_target::enable_btrace): Define.
824 (process_target::disable_btrace): Define.
825 (process_target::read_btrace): Define.
826 (process_target::read_btrace_conf): Define.
828 Update the derived classes and callers below.
830 * linux-low.cc (linux_target_ops): Update.
831 (linux_process_target:enable_btrace): Define as a wrapper around
833 (linux_low_disable_btrace): Turn into ...
834 (linux_process_target::disable_btrace): ... this.
835 (linux_low_read_btrace): Turn into ...
836 (linux_process_target::read_btrace): ... this.
837 (linux_low_btrace_conf): Turn into ...
838 (linux_process_target::read_btrace_conf): ... this.
839 * linux-low.h (class linux_process_target): Update.
840 * lynx-low.cc (lynx_target_ops): Update.
841 * nto-low.cc (nto_target_ops): Update.
842 * win32-low.cc (win32_target_ops): Update.
844 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
846 Turn process_stratum_target's supports_agent op into a method of
849 * target.h (struct process_stratum_target): Remove the target op.
850 (class process_target): Add the target op.
851 (target_supports_agent): Update the macro.
852 * target.cc (process_target::supports_agent): Define.
854 Update the derived classes and callers below.
856 * linux-low.cc (linux_target_ops): Update.
857 (linux_supports_agent): Turn into ...
858 (linux_process_target::supports_agent): ... this.
859 * linux-low.h (class linux_process_target): Update.
860 * lynx-low.cc (lynx_target_ops): Update.
861 * nto-low.cc (nto_target_ops): Update.
862 * win32-low.cc (win32_target_ops): Update.
864 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
866 Turn process_stratum_target's qxfer_libraries_svr4 op into a
867 method of process_target.
869 * target.h (struct process_stratum_target): Remove the target op.
870 (class process_target): Add the target op. Also add
871 'supports_qxfer_libraries_svr4'.
872 * target.cc (process_target::qxfer_libraries_svr4): Define.
873 (process_target::supports_qxfer_libraries_svr4): Define.
875 Update the derived classes and callers below.
877 * server.cc (handle_qxfer_libraries_svr4): Update.
878 (handle_query): Update.
879 * linux-low.cc (linux_target_ops): Update.
880 (linux_process_target::supports_qxfer_libraries_svr4): Define.
881 (linux_qxfer_libraries_svr4): Turn into ...
882 (linux_process_target::qxfer_libraries_svr4): ... this.
883 * linux-low.h (class linux_process_target): Update.
884 * lynx-low.cc (lynx_target_ops): Update.
885 * nto-low.cc (nto_target_ops): Update.
886 * win32-low.cc (win32_target_ops): Update.
888 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
890 Turn process_stratum_target's supports_disable_randomization op
891 into a method of process_target.
893 * target.h (struct process_stratum_target): Remove the target op.
894 (class process_target): Add the target op.
895 (target_supports_disable_randomization): Update the macro.
896 * target.cc (process_target::supports_disable_randomization): Define.
898 Update the derived classes and callers below.
900 * linux-low.cc (linux_target_ops): Update.
901 (linux_supports_disable_randomization): Turn into ...
902 (linux_process_target::supports_disable_randomization): ... this.
903 * linux-low.h (class linux_process_target): Update.
904 * lynx-low.cc (lynx_target_ops): Update.
905 * nto-low.cc (nto_target_ops): Update.
906 * win32-low.cc (win32_target_ops): Update.
908 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
910 Turn process_stratum_target's emit_ops op into a method of
913 * target.h (struct process_stratum_target): Remove the target op.
914 (class process_target): Add the target op.
915 (target_emit_ops): Update the macro.
916 * target.cc (process_target::emit_ops): Define.
918 Update the derived classes and callers below.
920 * linux-low.cc (linux_target_ops): Update.
921 (linux_emit_ops): Turn into ...
922 (linux_process_target::emit_ops): ... this.
923 * linux-low.h (class linux_process_target): Update.
924 * lynx-low.cc (lynx_target_ops): Update.
925 * nto-low.cc (nto_target_ops): Update.
926 * win32-low.cc (win32_target_ops): Update.
928 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
930 Turn process_stratum_target's install_fast_tracepoint_jump_pad
931 and get_min_fast_tracepoint_insn_len ops into methods of
934 * target.h (struct process_stratum_target): Remove the target ops.
935 (class process_target): Add the target ops. Also add
936 'supports_fast_tracepoints'.
937 (target_supports_fast_tracepoints): Update the macro.
938 (target_get_min_fast_tracepoint_insn_len): Update the macro.
939 (install_fast_tracepoint_jump_pad): Update and rename the macro
941 (target_install_fast_tracepoint_jump_pad): ... this.
942 * target.cc (process_target::supports_fast_tracepoints): Define.
943 (process_target::install_fast_tracepoint_jump_pad): Define.
944 (process_target::get_min_fast_tracepoint_insn_len): Define.
946 Update the derived classes and callers below.
948 * tracepoint.cc (install_fast_tracepoint): Update.
949 * linux-low.cc (linux_target_ops): Update.
950 (linux_process_target::supports_fast_tracepoints): Define.
951 (linux_install_fast_tracepoint_jump_pad): Turn into ...
952 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
953 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
954 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
955 * linux-low.h (class linux_process_target): Update.
956 * lynx-low.cc (lynx_target_ops): Update.
957 * nto-low.cc (nto_target_ops): Update.
958 * win32-low.cc (win32_target_ops): Update.
960 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
962 Turn process_stratum_target's stabilize_threads op into a
963 method of process_target.
965 * target.h (struct process_stratum_target): Remove the target op.
966 (class process_target): Add the target op.
967 (target_stabilize_threads): Update the macro.
968 * target.cc (process_target::stabilize_threads): Define.
970 Update the derived classes and callers below.
972 * server.cc (handle_status): Update.
973 * tracepoint.cc (cmd_qtdp): Update.
974 (cmd_qtstart): Update.
975 * linux-low.cc (linux_target_ops): Update.
976 (linux_stabilize_threads): Turn into ...
977 (linux_process_target::stabilize_threads): ... this.
978 (linux_wait_1): Update.
979 * linux-low.h (class linux_process_target): Update.
980 * lynx-low.cc (lynx_target_ops): Update.
981 * nto-low.cc (nto_target_ops): Update.
982 * win32-low.cc (win32_target_ops): Update.
984 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
986 Turn process_stratum_target's pause_all and unpause_all ops
987 into methods of process_target.
989 * target.h (struct process_stratum_target): Remove the target ops.
990 (class process_target): Add the target ops.
991 (pause_all): Update the macro and rename to...
992 (target_pause_all): ... this.
993 (unpause_all): Update the macro and rename to...
994 (target_unpause_all): ... this.
995 * target.cc (process_target::pause_all): Define.
996 (process_target::unpause_all): Define.
998 Update the derived classes and callers below.
1000 * server.cc (handle_status): Update.
1001 * tracepoint.cc (clear_installed_tracepoints): Update.
1003 (cmd_qtstart): Update.
1004 (stop_tracing): Update.
1005 (cmd_qtstatus): Update.
1006 (upload_fast_traceframes): Update.
1007 (run_inferior_command): Update.
1008 * linux-low.cc (linux_target_ops): Update.
1009 (linux_pause_all): Turn into ...
1010 (linux_process_target::pause_all): ... this.
1011 (linux_unpause_all): Turn into ...
1012 (linux_process_target::unpause_all): ... this.
1013 (linux_process_target::prepare_to_access_memory): Update.
1014 (linux_process_target::done_accessing_memory): Update.
1015 * linux-low.h (class linux_process_target): Update.
1016 * lynx-low.cc (lynx_target_ops): Update.
1017 * nto-low.cc (nto_target_ops): Update.
1018 * win32-low.cc (win32_target_ops): Update.
1020 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1022 Turn process_stratum_target's get_tib_address op into a method of
1025 * target.h (struct process_stratum_target): Remove the target op.
1026 (class process_target): Add the target op. Also add
1027 'supports_get_tib_address'.
1028 * target.cc (process_target::get_tib_address): Define.
1029 (process_target::supports_get_tib_address): Define.
1031 Update the derived classes and callers below.
1033 * server.cc (handle_query): Update.
1034 * linux-low.cc (win32_target_ops): Update.
1035 * lynx-low.cc (lynx_target_ops): Update.
1036 * nto-low.cc (nto_target_ops): Update.
1037 * win32-low.cc (win32_target_ops): Update.
1038 (win32_process_target::supports_get_tib_address): Define.
1039 (win32_get_tib_address): Turn into ...
1040 (win32_process_target::get_tib_address): ... this.
1041 * win32-low.h (class win32_process_target): Update.
1043 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1045 Turn process_stratum_target's thread_stopped op into a method of
1048 * target.h (struct process_stratum_target): Remove the target op.
1049 (class process_target): Add the target op. Also add
1050 'supports_thread_stopped'.
1051 (target_thread_stopped): Update the macro.
1052 * target.cc (process_target::thread_stopped): Define.
1053 (process_target::supports_thread_stopped): Define.
1054 (prepare_to_access_memory): Update.
1056 Update the derived classes and callers below.
1058 * server.cc (queue_stop_reply_callback): Update.
1059 * linux-low.cc (linux_target_ops): Update.
1060 (linux_process_target::supports_thread_stopped): Define.
1061 (linux_thread_stopped): Turn into ...
1062 (linux_process_target::thread_stopped): ... this.
1063 * linux-low.h (class linux_process_target): Update.
1064 * lynx-low.cc (lynx_target_ops): Update.
1065 * nto-low.cc (nto_target_ops): Update.
1066 * win32-low.cc (win32_target_ops): Update.
1068 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1070 Turn process_stratum_target's read_pc and write_pc ops into
1071 methods of process_target.
1073 * target.h (struct process_stratum_target): Remove the target ops.
1074 (class process_target): Add the target ops.
1075 * target.cc (process_target::read_pc): Define.
1076 (process_target::write_pc): Define.
1078 Update the derived classes and callers below.
1080 * regcache.cc (regcache_read_pc): Update.
1081 (regcache_write_pc): Update.
1082 * linux-low.cc (linux_target_ops): Update.
1083 (linux_read_pc): Turn into ...
1084 (linux_process_target::read_pc): ... this.
1085 (linux_write_pc): Turn into ...
1086 (linux_process_target::write_pc): ... this.
1087 * linux-low.h (class linux_process_target): Update.
1088 * lynx-low.cc (lynx_target_ops): Update.
1089 * nto-low.cc (nto_target_ops): Update.
1090 * win32-low.cc (win32_target_ops): Update.
1092 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1094 Turn process_stratum_target's supports_tracepoints op into a
1095 method of process_target.
1097 * target.h (struct process_stratum_target): Remove the target op.
1098 (class process_target): Add the target op.
1099 (target_supports_tracepoints): Update the macro.
1100 * target.cc (process_target::supports_tracepoints): Define.
1102 Update the derived classes and callers below.
1104 * linux-low.cc (linux_target_ops): Update.
1105 (linux_supports_tracepoints): Turn into ...
1106 (linux_process_target::supports_tracepoints): ... this.
1107 * linux-low.h (class linux_process_target): Update.
1108 * lynx-low.cc (lynx_target_ops): Update.
1109 * nto-low.cc (nto_target_ops): Update.
1110 * win32-low.cc (win32_target_ops): Update.
1112 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1114 Turn process_stratum_target's process_qsupported op into a method
1117 * target.h (struct process_stratum_target): Remove the target op.
1118 (class process_target): Add the target op.
1119 (target_process_qsupported): Update the macro.
1120 * target.cc (process_target::process_qsupported): Define.
1122 Update the derived classes and callers below.
1124 * linux-low.cc (linux_target_ops): Update.
1125 (linux_process_qsupported): Turn into ...
1126 (linux_process_target::process_qsupported): ... this.
1127 * linux-low.h (class linux_process_target): Update.
1128 * lynx-low.cc (lynx_target_ops): Update.
1129 * nto-low.cc (nto_target_ops): Update.
1130 * win32-low.cc (win32_target_ops): Update.
1132 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1134 Turn process_stratum_target's read_loadmap op into a method of
1137 * target.h (struct process_stratum_target): Remove the target op.
1138 (class process_target): Add the target op. Also add
1139 'supports_read_loadmap'.
1140 * target.cc (process_target::read_loadmap): Define.
1141 (process_target::supports_read_loadmap): Define.
1143 Update the derived classes and callers below.
1145 * server.cc (handle_qxfer_fdpic): Update.
1146 (handle_query): Update.
1147 * linux-low.cc (linux_target_ops): Update.
1148 (linux_process_target::supports_read_loadmap): Define.
1149 (linux_read_loadmap): Turn into ...
1150 (linux_process_target::read_loadmap): ... this.
1151 * linux-low.h (class linux_process_target): Update.
1152 * lynx-low.cc (lynx_target_ops): Update.
1153 * nto-low.cc (nto_target_ops): Update.
1154 * win32-low.cc (win32_target_ops): Update.
1156 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1158 Turn process_stratum_target's core_of_thread op into a method of
1161 * target.h (struct process_stratum_target): Remove the target op.
1162 (class process_target): Add the target op.
1163 (target_core_of_thread): Update the macro.
1164 * target.cc (process_target::core_of_thread): Define.
1166 Update the derived classes and callers below.
1168 * linux-low.cc (linux_target_ops): Update.
1169 (linux_process_target::core_of_thread): Define.
1170 * linux-low.h (class linux_process_target): Update.
1171 * lynx-low.cc (lynx_target_ops): Update.
1172 * nto-low.cc (nto_target_ops): Update.
1173 * win32-low.cc (win32_target_ops): Update.
1175 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1177 Turn process_stratum_target's handle_monitor_command op into a
1178 method of process_target.
1180 * target.h (struct process_stratum_target): Remove the target op.
1181 (class process_target): Add the target op.
1182 (target_handle_monitor_command): Update the macro.
1183 * target.cc (process_target::handle_monitor_command): Define.
1185 Update the derived classes and callers below.
1187 * server.cc (handle_query): Update.
1188 * linux-low.cc (linux_target_ops): Update.
1189 (linux_process_target::handle_monitor_command): Define.
1190 * linux-low.h (class linux_process_target): Update.
1191 * lynx-low.cc (lynx_target_ops): Update.
1192 * nto-low.cc (nto_target_ops): Update.
1193 * win32-low.cc (win32_target_ops): Update.
1195 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1197 Turn process_stratum_target's handle_new_gdb_connection op into a
1198 method of process_target.
1200 * target.h (struct process_stratum_target): Remove the target op.
1201 (class process_target): Add the target op.
1202 (target_handle_new_gdb_connection): Update the macro.
1203 * target.cc (process_target::handle_new_gdb_connection): Define.
1205 Update the derived classes and callers below.
1207 * linux-low.cc (linux_target_ops): Update.
1208 (linux_handle_new_gdb_connection): Turn into ...
1209 (linux_process_target::handle_new_gdb_connection): ... this.
1210 * linux-low.h (class linux_process_target): Update.
1211 * lynx-low.cc (lynx_target_ops): Update.
1212 * nto-low.cc (nto_target_ops): Update.
1213 * win32-low.cc (win32_target_ops): Update.
1215 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1217 Turn process_stratum_target's supports_fork_events,
1218 supports_vfork_events, and supports_exec_events ops into methods
1221 * target.h (struct process_stratum_target): Remove the target ops.
1222 (class process_target): Add the target ops.
1223 (target_supports_fork_events): Update the macro.
1224 (target_supports_vfork_events): Update the macro.
1225 (target_supports_exec_events): Update the macro.
1226 * target.cc (process_target::supports_fork_events): Define.
1227 (process_target::supports_vfork_events): Define.
1228 (process_target::supports_exec_events): Define.
1230 Update the derived classes and callers below.
1232 * linux-low.cc (linux_target_ops): Update.
1233 (linux_supports_fork_events): Turn into ...
1234 (linux_process_target::supports_fork_events): ... this.
1235 (linux_supports_vfork_events): Turn into ...
1236 (linux_process_target::supports_vfork_events): ... this.
1237 (linux_supports_exec_events): Turn into ...
1238 (linux_process_target::supports_exec_events): ... this.
1239 * linux-low.h (class linux_process_target): Update.
1240 * lynx-low.cc (lynx_target_ops): Update.
1241 * nto-low.cc (nto_target_ops): Update.
1242 * win32-low.cc (win32_target_ops): Update.
1244 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1246 Turn process_stratum_target's supports_multi_process op into a
1247 method of process_target.
1249 * target.h (struct process_stratum_target): Remove the target op.
1250 (class process_target): Add the target op.
1251 * target.cc (process_target::supports_multi_process): Define.
1252 (target_supports_multi_process): Update.
1254 Update the derived classes and callers below.
1256 * linux-low.cc (linux_target_ops): Update.
1257 (linux_supports_multi_process): Turn into ...
1258 (linux_process_target::supports_multi_process): ... this.
1259 * linux-low.h (class linux_process_target): Update.
1260 * lynx-low.cc (lynx_target_ops): Update.
1261 * nto-low.cc (nto_target_ops): Update.
1262 * win32-low.cc (win32_target_ops): Update.
1264 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1266 Turn process_stratum_target's supports_non_stop, async, and
1267 start_non_stop ops into methods of process_target.
1269 * target.h (struct process_stratum_target): Remove the target ops.
1270 (class process_target): Add the target ops.
1271 (target_supports_non_stop): Update the macro.
1272 (target_async): Update the macro.
1273 (start_non_stop): Remove declaration.
1274 * target.cc (process_target::supports_non_stop): Define.
1275 (process_target::async): Define.
1276 (process_target::start_non_stop): Define.
1277 (start_non_stop): Remove.
1279 Update the derived classes and callers below.
1281 * server.cc (handle_qxfer_siginfo): Update.
1282 (handle_query): Update.
1283 * linux-low.cc (linux_target_ops): Update.
1284 (linux_supports_non_stop): Turn into ...
1285 (linux_process_target::supports_non_stop): ... this.
1286 (linux_async): Turn into ...
1287 (linux_process_target::async): ... this.
1288 (linux_start_non_stop): Turn into ...
1289 (linux_process_target::start_non_stop): ... 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 (nto_supports_non_stop): Remove; rely on the default behavior
1295 * win32-low.cc (win32_target_ops): Update.
1297 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1299 Turn process_stratum_target's qxfer_siginfo op into a method of
1302 * target.h (struct process_stratum_target): Remove the target op.
1303 (class process_target): Add the target op. Also add
1304 'supports_qxfer_siginfo'.
1305 * target.cc (process_target::qxfer_siginfo): Define.
1306 (process_target::supports_qxfer_siginfo): Define.
1308 Update the derived classes and callers below.
1310 * server.cc (handle_qxfer_siginfo): Update.
1311 (handle_query): Update.
1312 * linux-low.cc (linux_target_ops): Update.
1313 (linux_process_target::supports_qxfer_siginfo): Define.
1314 (linux_xfer_siginfo): Turn into ...
1315 (linux_process_target::qxfer_siginfo): ... this.
1316 * linux-low.h (class linux_process_target): Update.
1317 * lynx-low.cc (lynx_target_ops): Update.
1318 * nto-low.cc (nto_target_ops): Update.
1319 * win32-low.cc (win32_target_ops): Update.
1321 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1323 Turn process_stratum_target's qxfer_osdata op into a method of
1326 * target.h (struct process_stratum_target): Remove the target op.
1327 (class process_target): Add the target op. Also add
1328 'supports_qxfer_osdata'.
1329 * target.cc (process_target::qxfer_osdata): Define.
1330 (process_target::supports_qxfer_osdata): Define.
1332 Update the derived classes and callers below.
1334 * server.cc (handle_qxfer_osdata): Update.
1335 (handle_query): Update.
1336 * linux-low.cc (linux_target_ops): Update.
1337 (linux_process_target::supports_qxfer_osdata): Define.
1338 (linux_qxfer_osdata): Turn into ...
1339 (linux_process_target::qxfer_osdata): ... this.
1340 * linux-low.h (class linux_process_target): Update.
1341 * lynx-low.cc (lynx_target_ops): Update.
1342 * nto-low.cc (nto_target_ops): Update.
1343 * win32-low.cc (win32_target_ops): Update.
1345 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1347 Turn process_stratum_target's hostio_last_error op into a
1348 method of process_target.
1350 * target.h (struct process_stratum_target): Remove the target op.
1351 (class process_target): Add the target op.
1352 * target.cc: Add "hostio.h" to includes.
1353 (process_target::hostio_last_error): Define.
1355 Update the derived classes and callers below.
1357 * hostio.cc (hostio_error): Update.
1358 * linux-low.cc: Remove "hostio.h" from includes.
1359 (linux_target_ops): Update.
1360 * lynx-low.cc (lynx_target_ops): Update.
1361 * nto-low.cc (nto_target_ops): Update.
1362 * win32-low.h (class win32_process_target): Update.
1363 * win32-low.cc (win32_target_ops): Update.
1364 (wince_hostio_last_error): Turn into ...
1365 (win32_process_target::hostio_last_error): ... this.
1367 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1369 Turn process_stratum_target's get_tls_address op into a method of
1372 * target.h (struct process_stratum_target): Remove the target op.
1373 (class process_target): Add the target op. Also add
1374 'supports_get_tls_address'.
1375 * target.cc (process_target::get_tls_address): Define.
1376 (process_target::supports_get_tls_address): Define.
1378 Update the derived classes and callers below.
1380 * server.cc (handle_query): Update.
1381 * linux-low.cc (linux_target_ops): Update.
1382 (linux_process_target::supports_get_tls_address): Define.
1383 (linux_process_target::get_tls_address): Define.
1384 * linux-low.h (class linux_process_target): Update.
1385 * lynx-low.cc (lynx_target_ops): Update.
1386 * nto-low.cc (nto_target_ops): Update.
1387 * win32-low.cc (win32_target_ops): Update.
1389 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1391 Turn process_stratum_target's read_offsets op into a method of
1394 * target.h (struct process_stratum_target): Remove the target op.
1395 (class process_target): Add the target op. Also add
1396 'supports_read_offsets'.
1397 * target.cc (process_target::read_offsets): Define.
1398 (process_target::supports_read_offsets): Define.
1400 Update the derived classes and callers below.
1402 * server.cc (handle_query): Update.
1403 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
1404 (linux_target_ops): Update.
1405 (linux_process_target::supports_read_offsets): Define.
1406 (linux_read_offsets): Turn into ...
1407 (linux_process_target::read_offsets): ... this.
1408 * linux-low.h (class linux_process_target): Update.
1409 * lynx-low.cc (lynx_target_ops): Update.
1410 * nto-low.cc (nto_target_ops): Update.
1411 * win32-low.cc (win32_target_ops): Update.
1413 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1415 Turn process_stratum_target's stopped_by_watchpoint and
1416 stopped_data_address ops into methods of process_target.
1418 * target.h (struct process_stratum_target): Remove the target ops.
1419 (class process_target): Add the target ops.
1420 * target.cc (process_target::stopped_by_watchpoint): Define.
1421 (process_target::stopped_data_address): Define.
1423 Update the derived classes and callers below.
1425 * remote-utils.cc (prepare_resume_reply): Update.
1426 * linux-low.cc (linux_target_ops): Update.
1427 (linux_stopped_by_watchpoint): Turn into ...
1428 (linux_process_target::stopped_by_watchpoint): ... this.
1429 (linux_stopped_data_address): Turn into ...
1430 (linux_process_target::stopped_data_address): ... this.
1431 * linux-low.h (class linux_process_target): Update.
1432 * lynx-low.cc (lynx_target_ops): Update.
1433 * nto-low.cc (nto_target_ops): Update.
1434 (nto_stopped_by_watchpoint): Turn into ...
1435 (nto_process_target::stopped_by_watchpoint): ... this.
1436 (nto_stopped_data_address): Turn into ...
1437 (nto_process_target::stopped_data_address): ... this.
1438 * nto-low.h (class nto_process_target): Update.
1439 * win32-low.cc (win32_target_ops): Update.
1440 (win32_stopped_by_watchpoint): Turn into ...
1441 (win32_process_target::stopped_by_watchpoint): ... this.
1442 (win32_stopped_data_address): Turn into ...
1443 (win32_process_target::stopped_data_address): ... this.
1444 * win32-low.h (class win32_process_target): Update.
1446 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1448 Turn process_stratum_target's supports_hardware_single_step op into
1449 a method of process_target.
1451 * target.h (struct process_stratum_target): Remove the target op.
1452 (class process_target): Add the target op.
1453 (target_supports_hardware_single_step): Update the macro.
1454 (target_can_do_hardware_single_step): Remove declaration.
1455 * target.cc (process_target::supports_hardware_single_step): Define.
1456 (target_can_do_hardware_single_step): Remove.
1458 Update the derived classes and callers below.
1460 * linux-low.h (class linux_process_target): Update.
1461 * linux-low.cc (linux_target_ops): Update.
1462 (linux_supports_hardware_single_step): Turn into ...
1463 (linux_process_target::supports_hardware_single_step): ... this.
1464 * lynx-low.h (class lynx_process_target): Update.
1465 * lynx-low.cc (lynx_target_ops): Update.
1466 (lynx_process_target::supports_hardware_single_step): Define.
1467 * nto-low.h (class nto_process_target): Update.
1468 * nto-low.cc (nto_target_ops): Update.
1469 (nto_process_target::supports_hardware_single_step): Define.
1470 * win32-low.h (class win32_process_target): Update.
1471 * win32-low.cc (win32_target_ops): Update.
1472 (win32_process_target::supports_hardware_single_step): Define.
1474 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1476 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
1477 ops into methods of process_target.
1479 * target.h (struct process_stratum_target): Remove the target ops.
1480 (class process_target): Add the target ops.
1481 (target_stopped_by_hw_breakpoint): Update the macro.
1482 (target_supports_stopped_by_hw_breakpoint): Update the macro.
1483 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
1484 (process_target::supports_stopped_by_hw_breakpoint): Define.
1486 Update the derived classes and callers below.
1488 * linux-low.cc (linux_target_ops): Update.
1489 (linux_stopped_by_hw_breakpoint): Turn into ...
1490 (linux_process_target::stopped_by_hw_breakpoint): ... this.
1491 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
1492 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
1493 * linux-low.h (class linux_process_target): Update.
1494 * lynx-low.cc (lynx_target_ops): Update.
1495 * nto-low.cc (nto_target_ops): Update.
1496 * win32-low.cc (win32_target_ops): Update.
1498 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1500 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
1501 ops into methods of process_target.
1503 * target.h (struct process_stratum_target): Remove the target ops.
1504 (class process_target): Add the target ops.
1505 (target_stopped_by_sw_breakpoint): Update the macro.
1506 (target_supports_stopped_by_sw_breakpoint): Update the macro.
1507 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
1508 (process_target::supports_stopped_by_sw_breakpoint): Define.
1510 Update the derived classes and callers below.
1512 * linux-low.cc (linux_target_ops): Update.
1513 (linux_stopped_by_sw_breakpoint): Turn into ...
1514 (linux_process_target::stopped_by_sw_breakpoint): ... this.
1515 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
1516 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
1517 * linux-low.h (class linux_process_target): Update.
1518 * lynx-low.cc (lynx_target_ops): Update.
1519 * nto-low.cc (nto_target_ops): Update.
1520 * win32-low.cc (win32_target_ops): Update.
1522 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1524 Turn process_stratum_target's insert_point and remove_point ops
1525 into methods of process_target.
1527 * target.h (struct process_stratum_target): Remove the target ops.
1528 (class process_target): Add the target ops.
1529 * target.cc (process_target::insert_point): Define.
1530 (process_target::remove_point): Define.
1532 Update the derived classes and callers below.
1534 * mem-break.cc (set_raw_breakpoint_at): Update.
1535 (delete_raw_breakpoint): Update.
1536 (uninsert_raw_breakpoint): Update.
1537 (reinsert_raw_breakpoint): Update.
1538 * linux-low.cc (linux_target_ops): Update.
1539 (linux_insert_point): Turn into ...
1540 (linux_process_target::insert_point): ... this.
1541 (linux_remove_point): Turn into ...
1542 (linux_process_target::remove_point): ... this.
1543 * linux-low.h (class linux_process_target): Update.
1544 * lynx-low.cc (lynx_target_ops): Update.
1545 * nto-low.cc (nto_target_ops): Update.
1546 (nto_insert_point): Turn into ...
1547 (nto_process_target::insert_point): ... this.
1548 (nto_remove_point): Turn into ...
1549 (nto_process_target::remove_point): ... this.
1550 * nto-low.h (class nto_process_target): Update.
1551 * win32-low.cc (win32_target_ops): Update.
1552 (win32_insert_point): Turn into ...
1553 (win32_process_target::insert_point): ... this.
1554 (win32_remove_point): Turn into ...
1555 (win32_process_target::remove_point): ... this.
1556 * win32-low.h (class win32_process_target): Update.
1558 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1560 Turn process_stratum_target's supports_z_point_type op into a
1561 method of process_target.
1563 * target.h (struct process_stratum_target): Remove the target op.
1564 (class process_target): Add the target op.
1565 * target.cc (process_target::supports_z_point_type): Define.
1567 Update the derived classes and callers below.
1569 * mem-break.cc (z_type_supported): Update.
1570 * linux-low.cc (linux_target_ops): Update.
1571 (linux_supports_z_point_type): Turn into ...
1572 (linux_process_target::supports_z_point_type): ... this.
1573 * linux-low.h (class linux_process_target): Update.
1574 * lynx-low.cc (lynx_target_ops): Update.
1575 * nto-low.cc (nto_target_ops): Update.
1576 (nto_supports_z_point_type): Turn into ...
1577 (nto_process_target::supports_z_point_type): ... this.
1578 * nto-low.h (class nto_process_target): Update.
1579 * win32-low.cc (win32_target_ops): Update.
1580 (win32_supports_z_point_type): Turn into ...
1581 (win32_process_target::supports_z_point_type): ... this.
1582 * win32-low.h (class win32_process_target): Update.
1584 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1586 Turn process_stratum_target's read_auxv op into a method of
1589 * target.h (class process_stratum_target): Remove the target op.
1590 (struct process_target): Add the target op. Also add
1591 'supports_read_auxv'.
1592 * target.cc (process_target::read_auxv): Define.
1593 (process_target::supports_read_auxv): Define.
1595 Update the derived classes and callers below.
1597 * server.cc (handle_qxfer_auxv): Update.
1598 (handle_query): Update.
1599 * linux-low.cc (linux_target_ops): Update.
1600 (linux_process_target::supports_read_auxv): Define.
1601 (linux_read_auxv): Turn into ...
1602 (linux_process_target::read_auxv): ... this.
1603 * linux-low.h (class linux_process_target): Update.
1604 * lynx-low.cc (lynx_target_ops): Update.
1605 * nto-low.cc (nto_target_ops): Update.
1606 (nto_process_target::supports_read_auxv): Define.
1607 (nto_read_auxv): Turn into ...
1608 (nto_process_target::read_auxv): ... this.
1609 * nto-low.h (class nto_process_target): Update.
1610 * win32-low.cc (win32_target_ops): Update.
1612 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1614 Turn process_stratum_target's request_interrupt op into a method of
1617 * target.h (struct process_stratum_target): Remove the target op.
1618 (class process_target): Add the target op.
1620 Update the derived classes and callers below.
1622 * remote-utils.cc (putpkt_binary_1): Update.
1623 (input_interrupt): Update.
1625 * server.cc (handle_v_requests): Update.
1626 * linux-low.cc (linux_target_ops): Update.
1627 (linux_request_interrupt): Turn into ...
1628 (linux_process_target::request_interrupt): ... this.
1629 * linux-low.h (class linux_process_target): Update.
1630 * lynx-low.cc (lynx_target_ops): Update.
1631 (lynx_request_interrupt): Turn into ...
1632 (lynx_process_target::request_interrupt): ... this.
1633 * lynx-low.h (class lynx_process_target): Update.
1634 * nto-low.cc (nto_target_ops): Update.
1635 (nto_request_interrupt): Turn into ...
1636 (nto_process_target::request_interrupt): ... this.
1637 * nto-low.h (class nto_process_target): Update.
1638 * win32-low.cc (win32_target_ops): Update.
1639 (win32_request_interrupt): Turn into ...
1640 (win32_process_target::request_interrupt): ... this.
1641 * win32-low.h (class win32_process_target): Update.
1643 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1645 Turn process_stratum_target's look_up_symbols op into a method of
1648 * target.h (struct process_stratum_target): Remove the target op.
1649 (class process_target): Add the target op.
1650 * target.cc (process_target::look_up_symbols): Define.
1652 Update the derived classes and callers below.
1654 * server.cc (handle_query): Update.
1655 * linux-low.cc (linux_target_ops): Update.
1656 (linux_look_up_symbols): Turn into ...
1657 (linux_process_target::look_up_symbols): ... this.
1658 * linux-low.h (class linux_process_target): Update.
1659 * lynx-low.cc (lynx_target_ops): Update.
1660 * nto-low.cc (nto_target_ops): Update.
1661 * win32-low.cc (win32_target_ops): Update.
1663 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1665 Turn process_stratum_target's read_memory and write_memory
1666 ops into methods of process_target.
1668 * target.h (struct process_stratum_target): Remove the target ops.
1669 (class process_target): Add the target ops.
1671 Update the derived classes and callers below.
1673 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
1674 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
1675 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
1676 (arm_get_syscall_trapinfo): Update.
1677 * linux-cris-low.cc (cris_breakpoint_at): Update.
1678 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
1679 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
1680 * linux-mips-low.cc (mips_breakpoint_at): Update.
1681 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
1682 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
1683 * linux-sh-low.cc (sh_breakpoint_at): Update.
1684 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
1685 (sparc_store_gregset_from_stack): Update.
1686 (sparc_breakpoint_at): Update.
1687 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
1688 * linux-tile-low.cc (tile_breakpoint_at): Update.
1689 * linux-x86-low.cc (x86_breakpoint_at): Update.
1690 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
1691 * mem-brea.cc (insert_memory_breakpoint): Update.
1692 (validate_inserted_breakpoint): Update.
1693 * target.cc (read_inferior_memory): Update.
1694 (target_write_memory): Update.
1695 * linux-low.cc (linux_target_ops): Update.
1696 (linux_read_memory): Make a wrapper around the read_memory target
1698 (linux_process_target::read_memory): Rename from linux_read_memory.
1699 (linux_write_memory): Turn into ...
1700 (linux_process_target::write_memory): ... this.
1701 * linux-low.h (class linux_process_target): Update.
1702 * lynx-low.cc (lynx_target_ops): Update.
1703 (lynx_read_memory): Turn into ...
1704 (lynx_process_target::read_memory): ... this.
1705 (lynx_write_memory): Turn into ...
1706 (lynx_process_target::write_memory): ... this.
1707 * lynx-low.h (class lynx_process_target): Update.
1708 * nto-low.cc (nto_target_ops): Update.
1709 (nto_read_memory): Turn into ...
1710 (nto_process_target::read_memory): ... this.
1711 (nto_write_memory): Turn into ...
1712 (nto_process_target::write_memory): ... this.
1713 * nto-low.h (class nto_process_target): Update.
1714 * win32-low.cc (win32_target_ops): Update.
1715 (win32_read_inferior_memory): Turn into ...
1716 (win32_process_target::read_memory): ... this.
1717 (win32_write_inferior_memory): Turn into ...
1718 (win32_process_target::write_memory): ... this.
1719 * win32-low.h (class win32_process_target): Update.
1721 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1723 Turn process_stratum_target's prepare_to_access_memory and
1724 done_accessing_memory ops into methods of process_target.
1726 * target.h (struct process_stratum_target): Remove the target ops.
1727 (class process_target): Add the target ops.
1728 * target.cc (process_target::prepare_to_access_memory): Define.
1729 (process_target::done_accessing_memory): Define.
1730 (prepare_to_access_memory): Update.
1731 (done_accessing_memory): Update.
1733 Update the derived classes and callers below.
1735 * linux-low.cc (linux_target_ops): Update.
1736 (linux_prepare_to_access_memory): Turn into ...
1737 (linux_process_target::prepare_to_access_memory): ... this.
1738 (linux_done_accessing_memory): Turn into ...
1739 (linux_process_target::done_accessing_memory): ... this.
1740 * linux-low.h (class linux_process_target): Update.
1741 * lynx-low.cc (lynx_target_ops): Update.
1742 * nto-low.cc (nto_target_ops): Update.
1743 * win32-low.cc (win32_target_ops): Update.
1745 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1747 Turn process_stratum_target's fetch_registers and store_registers
1748 ops into methods of process_target.
1750 * target.h (struct process_stratum_target): Remove the target ops.
1751 (class process_target): Add the target ops.
1752 (fetch_inferior_registers): Update the macro.
1753 (store_inferior_registers): Update the macro.
1755 Update the derived classes and callers below.
1757 * linux-low.cc (linux_target_ops): Update.
1758 (linux_fetch_registers): Turn into ...
1759 (linux_process_target::fetch_registers): ... this.
1760 (linux_store_registers): Turn into ...
1761 (linux_process_target::store_registers): ... this.
1762 * linux-low.h (class linux_process_target): Update.
1763 * lynx-low.cc (lynx_target_ops): Update.
1764 (lynx_fetch_registers): Turn into ...
1765 (lynx_process_target::fetch_registers): ... this.
1766 (lynx_store_registers): Turn into ...
1767 (lynx_process_target::store_registers): ... this.
1768 * lynx-low.h (class lynx_process_target): Update.
1769 * nto-low.cc (nto_target_ops): Update.
1770 (nto_fetch_registers): Turn into ...
1771 (nto_process_target::fetch_registers): ... this.
1772 (nto_store_registers): Turn into ...
1773 (nto_process_target::store_registers): ... this.
1774 * nto-low.h (class nto_process_target): Update.
1775 * win32-low.cc (win32_target_ops): Update.
1776 (win32_fetch_inferior_registers): Turn into ...
1777 (win32_process_target::fetch_registers): ... this.
1778 (win32_store_inferior_registers): Turn into ...
1779 (win32_process_target::store_registers): ... 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 wait 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_wait): Update.
1793 * linux-low.cc (linux_target_ops): Update.
1794 (linux_wait): Turn into ...
1795 (linux_process_target::wait): ... this.
1796 * linux-low.h (class linux_process_target): Update.
1797 * lynx-low.cc (lynx_target_ops): Update.
1798 (lynx_wait): Turn into ...
1799 (lynx_process_target::wait): ... this.
1800 * lynx-low.h (class lynx_process_target): Update.
1801 * nto-low.cc (nto_target_ops): Update.
1802 (nto_wait): Turn into ...
1803 (nto_process_target::wait): ... this.
1804 * nto-low.h (class nto_process_target): Update.
1805 * win32-low.cc (win32_target_ops): Update.
1806 (win32_wait): Turn into ...
1807 (win32_process_target::wait): ... this.
1808 (do_initial_child_stuff): Update.
1809 * win32-low.h (class win32_process_target): Update.
1811 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1813 Turn process_stratum_target's resume op into a method of
1816 * target.h (struct process_stratum_target): Remove the target op.
1817 (class process_target): Add the target op.
1819 Update the derived classes and callers below.
1821 * server.cc (resume): Update.
1822 * target.cc (target_stop_and_wait): Update.
1823 (target_continue_no_signal): Update.
1824 (target_continue): Update.
1825 * linux-low.cc (linux_target_ops): Update.
1826 (linux_resume): Turn into ...
1827 (linux_process_target::resume): ... this.
1828 * linux-low.h (class linux_process_target): Update.
1829 * lynx-low.cc (lynx_target_ops): Update.
1830 (lynx_resume): Turn into ...
1831 (lynx_process_target::resume): ... this.
1832 * lynx-low.h (class lynx_process_target): Update.
1833 * nto-low.cc (nto_target_ops): Update.
1834 (nto_resume): Turn into ...
1835 (nto_process_target::resume): ... this.
1836 * nto-low.h (class nto_process_target): Update.
1837 * win32-low.cc (win32_target_ops): Update.
1838 (win32_resume): Turn into ...
1839 (win32_process_target::resume): ... this.
1840 (win32_process_target::detach): Update.
1841 (do_initial_child_stuff): Update.
1842 * win32-low.h (class win32_process_target): Update.
1844 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1846 Turn process_stratum_target's thread_alive op into a method of
1849 * target.h (struct process_stratum_target): Remove the target op.
1850 (class process_target): Add the target op.
1851 (mythread_alive): Update the macro.
1853 Update the derived classes and callers below.
1855 * linux-low.cc (linux_target_ops): Update.
1856 (linux_thread_alive): Turn into ...
1857 (linux_process_target::thread_alive): ... this.
1858 (wait_for_sigstop): Update.
1859 * linux-low.h (class linux_process_target): Update.
1860 * lynx-low.cc (lynx_target_ops): Update.
1861 (lynx_thread_alive): Turn into ...
1862 (lynx_process_target::thread_alive): ... this.
1863 * lynx-low.h (class lynx_process_target): Update.
1864 * nto-low.cc (nto_target_ops): Update.
1865 (nto_thread_alive): Turn into ...
1866 (nto_process_target::thread_alive): ... this.
1867 * nto-low.h (class nto_process_target): Update.
1868 * win32-low.cc (win32_target_ops): Update.
1869 (win32_thread_alive): Turn into ...
1870 (win32_process_target::thread_alive): ... this.
1871 * win32-low.h (class win32_process_target): Update.
1873 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1875 Turn process_stratum_target's join op into a method of
1878 * target.h (struct process_stratum_target): Remove the target op.
1879 (class process_target): Add the target op.
1880 (join_inferior): Update the macro.
1882 Update the derived classes and callers below.
1884 * linux-low.cc (linux_target_ops): Update.
1885 (linux_join): Turn into ...
1886 (linux_process_target::join): ... this.
1887 * linux-low.h (class linux_process_target): Update.
1888 * lynx-low.cc (lynx_target_ops): Update.
1889 (lynx_join): Turn into ...
1890 (lynx_process_target::join): ... this.
1891 * lynx-low.h (class lynx_process_target): Update.
1892 * nto-low.cc (nto_target_ops): Update.
1893 (nto_process_target::join): Define.
1894 * nto-low.h (class nto_process_target): Update.
1895 * win32-low.cc (win32_target_ops): Update.
1896 (win32_join): Turn into ...
1897 (win32_process_target::join): ... this.
1898 * win32-low.h (class win32_process_target): Update.
1900 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1902 Turn process_stratum_target's mourn op into a method of
1905 * target.h (struct process_stratum_target): Remove the target op.
1906 (class process_target): Add the target op.
1908 Update the derived classes and callers below.
1910 * target.cc (target_mourn_inferior): Update.
1911 * linux-low.cc (linux_target_ops): Update.
1912 (linux_mourn): Turn into ...
1913 (linux_process_target::mourn): ... this.
1914 (handle_extended_wait): Update.
1915 (linux_process_target::kill): Update.
1916 (linux_process_target::detach): Update.
1917 * linux-low.h (class linux_process_target): Update.
1918 * lynx-low.cc (lynx_target_ops): Update.
1919 (lynx_mourn): Turn into ...
1920 (lynx_process_target::mourn): ... this.
1921 * lynx-low.h (class lynx_process_target): Update.
1922 * nto-low.cc (nto_target_ops): Update.
1923 (nto_mourn): Turn into ...
1924 (nto_process_target::mourn): ... this.
1925 * nto-low.h (class nto_process_target): Update.
1926 * win32-low.cc (win32_target_ops): Update.
1927 (win32_mourn): Turn into ...
1928 (win32_process_target::mourn): ... this.
1929 * win32-low.h (class win32_process_target): Update.
1931 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1933 Turn process_stratum_target's detach op into a method of
1936 * target.h (struct process_stratum_target): Remove the target op.
1937 (class process_target): Add the target op.
1938 (detach_inferior): Update the macro.
1940 Update the derived classes and callers below.
1942 * linux-low.cc (linux_target_ops): Update.
1943 (linux_detach): Turn into ...
1944 (linux_process_target::detach): ... this.
1945 * linux-low.h (class linux_process_target): Update.
1946 * lynx-low.cc (lynx_target_ops): Update.
1947 (lynx_detach): Turn into ...
1948 (lynx_process_target::detach): ... this.
1949 * lynx-low.h (class lynx_process_target): Update.
1950 * nto-low.cc (nto_target_ops): Update.
1951 (nto_detach): Turn into ...
1952 (nto_process_target::detach): ... this.
1953 * nto-low.h (class nto_process_target): Update.
1954 * win32-low.cc (win32_target_ops): Update.
1955 (win32_detach): Turn into ...
1956 (win32_process_target::detach): ... this.
1957 * win32-low.h (class win32_process_target): Update.
1959 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1961 Turn process_stratum_target's kill op into a method of
1964 * target.h (struct process_stratum_target): Remove the target op.
1965 (class process_target): Add the target op.
1967 Update the derived classes and callers below.
1969 * target.cc (kill_inferior): Update.
1970 * linux-low.cc (linux_target_ops): Update.
1971 (linux_kill): Turn into ...
1972 (linux_process_target::kill): ... this.
1973 * linux-low.h (class linux_process_target): Update.
1974 * lynx-low.cc (lynx_target_ops): Update.
1975 (lynx_kill): Turn into ...
1976 (lynx_process_target::kill): ... this.
1977 * lynx-low.h (class lynx_process_target): Update.
1978 * nto-low.cc (nto_target_ops): Update.
1979 (nto_kill): Turn into ...
1980 (nto_process_target::kill): ... this.
1981 * nto-low.h (class nto_process_target): Update.
1982 * win32-low.cc (win32_target_ops): Update.
1983 (win32_kill): Turn into ...
1984 (win32_process_target::kill): ... this.
1985 * win32-low.h (class win32_process_target): Update.
1987 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1989 Turn process_stratum_target's attach op into a method of
1992 * target.h (struct process_stratum_target): Remove the target op.
1993 (class process_target): Add the target op.
1994 (myattach): Update the macro.
1996 Update the derived classes and callers below.
1998 * linux-low.cc (linux_target_ops): Update.
1999 (linux_attach): Turn into ...
2000 (linux_process_target::attach): ... this.
2001 * linux-low.h (class linux_process_target): Update.
2002 * lynx-low.cc (lynx_target_ops): Update.
2003 (lynx_attach): Turn into ...
2004 (lynx_process_target::attach): ... this.
2005 * lynx-low.h (class lynx_process_target): Update.
2006 * nto-low.cc (nto_target_ops): Update.
2007 (nto_attach): Turn into ...
2008 (nto_process_target::attach): ... this.
2009 * nto-low.h (class nto_process_target): Update.
2010 * win32-low.cc (win32_target_ops): Update.
2011 (win32_attach): Turn into ...
2012 (win32_process_target::attach): ... this.
2013 * win32-low.h (class win32_process_target): Update.
2015 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2017 Turn process_stratum_target's post_create_inferior op into a method
2020 * target.h (struct process_stratum_target): Remove the target op.
2021 (class process_target): Add the target op.
2022 (target_post_create_inferior): Update the macro.
2023 * target.cc (process_target::post_create_inferior): Define.
2025 Update the derived classes and callers below.
2027 * linux-low.cc (linux_target_ops): Update.
2028 (linux_post_create_inferior): Turn into ...
2029 (linux_process_target::post_create_inferior): ... this.
2030 * linux-low.h (class linux_process_target): Update.
2031 * lynx-low.cc (lynx_target_ops): Update.
2032 * nto-low.cc (nto_target_ops): Update.
2033 * win32-low.cc (win32_target_ops): Update.
2035 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2037 Turn process_stratum_target's create_inferior op into a method of
2040 * target.h (struct process_stratum_target): Remove the target op.
2041 (class process_target): Add the target op.
2042 (create_inferior): Rename the macro to ...
2043 (target_create_inferior): ... this.
2045 Update the derived classes and callers below.
2047 * server.cc (handle_v_run): Update.
2048 (captured_main): Update.
2049 (process_serial_event): Update.
2050 * linux-low.cc (linux_target_ops): Update.
2051 (linux_create_inferior): Turn into ...
2052 (linux_process_target::create_inferior): ... this.
2053 * linux-low.h (class linux_process_target): Update.
2054 * lynx-low.cc (lynx_target_ops): Update.
2055 (lynx_create_inferior): Turn into ...
2056 (lynx_process_target::create_inferior): ... this.
2057 * lynx-low.h (class lynx_process_target): Update.
2058 * nto-low.cc (nto_target_ops): Update.
2059 (nto_create_inferior): Turn into ...
2060 (nto_process_target::create_inferior): ... this.
2061 * nto-low.h (class nto_process_target): Update.
2062 * win32-low.cc (win32_target_ops): Update.
2063 (win32_create_inferior): Turn into ...
2064 (win32_process_target::create_inferior): ... this.
2065 * win32-low.h (class win32_process_target): Update.
2067 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2069 * target.h (class process_target): New class definition.
2070 (struct process_stratum_target) <pt>: New field with type
2072 * linux-low.h (class linux_process_target): Define as a derived
2073 class of 'process_target'.
2074 * linux-low.cc (linux_target_ops): Add a linux_process_target*
2076 * lynx-low.h (class lynx_process_target): Define as a derived
2077 class of 'process_target'.
2078 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
2080 * nto-low.h (class nto_process_target): Define as a derived
2081 class of 'process_target'.
2082 * nto-low.cc (nto_target_ops): Add an nto_process_target*
2084 * win32-low.h (class win32_process_target): Define as a derived
2085 class of 'process_target'.
2086 * win32-low.cc (win32_target_ops): Add a win32_process_target*
2089 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
2091 * configure: Regenerate.
2093 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
2094 Andrew Burgess <andrew.burgess@embecosm.com>
2096 * linux-riscv-low.cc: New file.
2097 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
2098 and nat/riscv-linux-tdesc.c.
2099 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
2100 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
2103 2020-02-14 Tom Tromey <tom@tromey.com>
2105 * acinclude.m4: Don't include acx_configure_dir.m4.
2106 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
2107 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
2108 (all, install-only, uninstall, clean-info, clean)
2109 (maintainer-clean): Don't recurse.
2110 (subdir_do, all-lib): Remove.
2111 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
2113 (generated_files): Update.
2114 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
2115 * configure: Rebuild.
2116 * configure.ac: Don't configure gnulib or libiberty.
2119 2020-02-14 Eli Zaretskii <eliz@gnu.org>
2121 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
2122 preparing the command line for CreateProcess.
2123 (win32_create_inferior): Reflect the program name in debugging
2124 output that shows the process and its command line.
2126 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
2128 * Makefile.in: Rename source files from .c to .cc.
2129 * %.c: Rename to %.cc.
2130 * configure.ac: Rename server.c to server.cc.
2131 * configure: Re-generate.
2133 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
2135 * Makefile.in: Rename gdbsupport source files from .c to .cc.
2137 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
2139 * win32-low.c (win32_create_inferior): Set signal_pid.
2141 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
2142 Pedro Alves <palves@redhat.com>
2144 Skip building gdbserver in a cross-configuration.
2145 * configure.srv: Set $gdbserver_host depending on whether $target
2146 is $host. Use $gdbserver_host instead of $host.
2148 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2150 * configure: Re-generate.
2152 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2154 * configure: Re-generate.
2156 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
2158 * acinclude.m4: Update warning.m4 path.
2160 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
2162 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
2163 (handle_exception): Set siginfo_er.
2164 (win32_xfer_siginfo): New function.
2166 2020-02-07 Tom Tromey <tom@tromey.com>
2167 Pedro Alves <palves@redhat.com>
2169 * README: Update build documentation.
2170 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
2172 * configure.ac: Update paths.
2173 * configure: Rebuild.
2174 * acinclude.m4: Update paths.
2175 * Makefile.in: Update include paths.
2176 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
2177 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
2178 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
2179 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
2180 (%-generated.c): Update paths.
2181 * Move entire directory from ../gdb/gdbserver.
2183 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
2185 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
2187 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2189 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
2190 assignment instead of srv_linux_obj.
2192 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
2194 * server.c (handle_qxfer_libraries): Write segment-address with
2197 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
2199 * Makefile.in (install-strip): New target.
2200 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
2201 * aclocal.m4: Regenerate.
2202 * configure: Regenerate.
2203 * configure.ac: Add AM_PROG_INSTALL_STRIP.
2205 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2207 * Makefile.in (SFILES): Adjust paths to point to real files.
2208 (OBS): Move waitstatus.o to target/waitstatus.o.
2209 (TAGS): Transform paths appropriately.
2211 (nat/%.o): ... this pattern rule.
2213 (target/%.o): ... this pattern rule.
2214 * configure.srv: Adjust paths throughout to include nat/ prefix
2215 with the revant files.
2216 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
2217 * configure: Regenerate.
2219 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
2221 * Makefile.in (TAGS): Remove config files from the recipe.
2223 2020-01-14 Tom Tromey <tom@tromey.com>
2225 * configure: Rebuild.
2226 * configure.ac: Remove any checks that were added to common.m4.
2227 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
2230 2020-01-14 Tom Tromey <tom@tromey.com>
2232 * server.h: Include config.h.
2233 * gdbreplay.c: Include config.h.
2234 * configure: Rebuild.
2235 * configure.ac: Don't source common.host.
2236 * acinclude.m4: Update path.
2237 * Makefile.in (INCSUPPORT): New variable.
2238 (INCLUDE_CFLAGS): Add INCSUPPORT.
2239 (SFILES): Update paths.
2240 (version-generated.c): Update path to create-version.sh.
2241 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
2243 2020-01-14 Tom Tromey <tom@tromey.com>
2245 * configure.ac (LIBS): Use WIN32APILIBS.
2246 (USE_WIN32API): Don't define.
2247 * configure: Rebuild.
2249 2020-01-14 Tom Tromey <tom@tromey.com>
2251 * configure: Rebuild.
2253 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2255 * Makefile.in (%-generated.c): Remove rule for files from
2258 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2260 * configure: Re-generate.
2262 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2264 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
2266 * tracepoint.c (stop_tracing, flush_trace_buffer,
2267 about_to_request_buffer_space, get_trace_state_variable_value,
2268 set_trace_state_variable_value, gdb_collect): Add declaration.
2270 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2272 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
2273 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
2274 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
2275 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
2276 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
2279 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2281 * inferiors.c: Include gdbsupport/common-inferior.h.
2283 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2285 * hostio-errno.c: Include hostio.h.
2287 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2289 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
2292 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2294 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
2295 * linux-arm-tdesc.h: Include arch/arm.h.
2297 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2299 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
2301 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2303 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
2304 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
2306 2020-01-10 Pedro Alves <palves@redhat.com>
2308 * fork-child.c (post_fork_inferior): Pass target down to
2310 * inferiors.c (switch_to_thread): Add process_stratum_target
2312 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
2313 * nto-low.c (nto_target_ops): Now a process_stratum_target.
2314 * linux-low.c (linux_target_ops): Now a process_stratum_target.
2315 * remote-utils.c (prepare_resume_reply): Pass the target to
2317 * target.c (the_target): Now a process_stratum_target.
2318 (done_accessing_memory): Pass the target to switch_to_thread.
2319 (set_target_ops): Ajust to use process_stratum_target.
2320 * target.h (struct target_ops): Rename to ...
2321 (struct process_stratum_target): ... this.
2322 (the_target, set_target_ops): Adjust.
2323 (prepare_to_access_memory): Adjust comment.
2324 * win32-low.c (child_xfer_memory): Adjust to use
2325 process_stratum_target.
2326 (win32_target_ops): Now a process_stratum_target.
2328 2020-01-06 Eli Zaretskii <eliz@gnu.org>
2329 Pedro Alves <palves@redhat.com>
2331 * win32-low.c (get_child_debug_event): Extract the fatal exception
2332 from the exit status and convert to the equivalent Posix signal
2334 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
2335 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
2337 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
2339 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2341 2020-01-01 Joel Brobecker <brobecker@adacore.com>
2343 * server.c (gdbserver_version): Change copyright year to 2020.
2344 * gdbreplay.c (gdbreplay_version): Likewise.
2346 2019-12-19 Christian Biesinger <cbiesinger@google.com>
2348 * configure: Regenerate.
2349 * configure.ac: Quote variable arguments of test.
2351 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
2353 * Makefile.in: Fix build with GNU Make 3.81
2355 2019-12-16 Tom Tromey <tromey@adacore.com>
2357 * server.c (get_exec_file): Constify result.
2359 2019-12-10 Christian Biesinger <cbiesinger@google.com>
2361 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
2362 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
2363 * config.in: Regenerate.
2364 * configure: Regenerate.
2365 * configure.ac: Don't check for strerror.
2366 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
2367 Call safe_strerror instead of strerror.
2368 * server.h (strerror): Remove this now-unnecessary declaration.
2369 * tracepoint.c (init_named_socket): Call safe_strerror instead of
2371 (gdb_agent_helper_thread): Likewise.
2372 * utils.c (perror_with_name): Likewise.
2374 2019-11-26 Tom Tromey <tom@tromey.com>
2376 * configure, config.in: Rebuild.
2378 2019-11-26 Tom Tromey <tom@tromey.com>
2380 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
2381 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
2383 * configure, config.in: Rebuild.
2385 2019-11-26 Tom Tromey <tom@tromey.com>
2387 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
2388 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
2389 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
2390 * acinclude.m4: Include ax_pthread.m4.
2391 * config.in, configure: Rebuild.
2393 2019-11-26 Christian Biesinger <cbiesinger@google.com>
2395 * debug.c (debug_set_output): Call safe_strerror instead of
2397 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
2398 (linux_kill_one_lwp): Likewise.
2399 (linux_detach_one_lwp): Likewise.
2400 (linux_wait_for_event_filtered): Likewise.
2401 (store_register): Likewise.
2402 * lynx-low.c (lynx_attach): Likewise.
2403 * mem-break.c (insert_memory_breakpoint): Likewise.
2404 (remove_memory_breakpoint): Likewise.
2405 (delete_fast_tracepoint_jump): Likewise.
2406 (set_fast_tracepoint_jump): Likewise.
2407 (uninsert_fast_tracepoint_jumps_at): Likewise.
2408 (reinsert_fast_tracepoint_jumps_at): Likewise.
2409 * nto-low.c (nto_xfer_memory): Likewise.
2410 (nto_resume): Likewise.
2412 2019-11-20 Luis Machado <luis.machado@linaro.org>
2414 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
2415 instead of register count.
2416 * tdesc.c (tdesc_contains_feature): New function.
2417 * tdesc.h (tdesc_contains_feature): New prototype.
2419 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2421 * Makefile.in: Add safe-strerror.c.
2422 * configure: Regenerate.
2423 * configure.ac: Don't source common.host.
2425 2019-11-15 Christian Biesinger <cbiesinger@google.com>
2427 * config.in: Regenerate.
2428 * configure: Regenerate.
2430 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
2432 * ax.c (ax_printf): Handle size_t_arg.
2434 2019-11-06 Christian Biesinger <cbiesinger@google.com>
2436 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
2437 * mi/mi-main.c (output_cores): Likewise.
2438 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
2439 (linux_xfer_osdata_modules): Likewise.
2440 * remote.c (register_remote_support_xml): Likewise.
2441 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
2442 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
2444 2019-11-01 Christian Biesinger <cbiesinger@google.com>
2446 * configure: Regenerate.
2447 * configure.ac: Remove check for strerror_r.
2449 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2451 * config.in: Regenerate.
2452 * configure: Regenerate.
2453 * configure.ac: Also check for strerror_r.
2455 2019-10-31 Christian Biesinger <cbiesinger@google.com>
2457 * ax.h (debug_agent): Remove duplicate declaration.
2459 2019-10-26 Tom de Vries <tdevries@suse.de>
2461 * linux-aarch64-low.c: Fix typos in comments.
2462 * linux-arm-low.c: Same.
2463 * linux-low.c: Same.
2464 * linux-ppc-low.c: Same.
2465 * proc-service.c: Same.
2468 * tracepoint.c: Same.
2469 * win32-low.c: Same.
2471 2019-10-25 Tom Tromey <tromey@adacore.com>
2473 * utils.c (xstrdup): Remove.
2475 2019-10-23 Tom Tromey <tom@tromey.com>
2477 * configure, config.in: Rebuild.
2479 2019-10-23 Tom Tromey <tom@tromey.com>
2481 * configure: Rebuild.
2482 * acinclude.m4: Use m4_include, not sinclude.
2484 2019-10-17 Tom Tromey <tromey@adacore.com>
2486 * configure: Rebuild.
2487 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
2488 in AC_CONFIG_FILES invocation.
2489 * Makefile.in (stamp-h, Makefile): Use new-style config.status
2492 2019-10-16 Christian Biesinger <cbiesinger@google.com>
2494 * server.c: Include xml-builtin.h.
2495 (get_xml_features): Don't declare xml_builtins here.
2497 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2499 * Makefile.in: Remove references to vec-ipa.o.
2501 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
2503 * Makefile.in: Remove references to vec.c.
2505 2019-10-02 Christian Biesinger <cbiesinger@google.com>
2507 * server.c (server_waiting): Change to bool.
2508 (extended_protocol): Likewise.
2509 (response_needed): Likewise.
2510 (exit_requested): Likewise.
2511 (run_once): Likewise.
2512 (report_no_resumed): Likewise.
2513 (non_stop): Likewise.
2514 (disable_packet_vCont): Likewise.
2515 (disable_packet_Tthread): Likewise.
2516 (disable_packet_qC): Likewise.
2517 (disable_packet_qfThreadInfo): Likewise.
2518 (handle_general_set): Update.
2519 (handle_detach): Update.
2520 (handle_monitor_command): Update.
2521 (handle_query): Update.
2522 (captured_main): Update.
2523 (process_serial_event): Update.
2524 * server.h (server_waiting): Change to bool.
2525 (disable_packet_vCont): Likewise.
2526 (disable_packet_Tthread): Likewise.
2527 (disable_packet_qC): Likewise.
2528 (disable_packet_qfThreadInfo): Likewise.
2529 (run_once): Likewise.
2530 (non_stop): Likewise.
2531 * target.c (target_stop_and_wait): Update.
2533 2019-10-02 Tom Tromey <tromey@adacore.com>
2535 * Makefile.in (SFILES): Add common-inferior.c.
2536 (OBS): Add common-inferior.o.
2537 * server.c (startup_with_shell): Don't define.
2539 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
2541 * linux-low.c (linux_low_read_btrace): Update for change to
2544 2019-09-20 Christian Biesinger <cbiesinger@google.com>
2546 * debug.c (debug_threads): Remove comment in favor of the header.
2547 * debug.h (using_threads): Add declaration.
2548 (debug_threads): Add comment.
2549 * linux-aarch64-low.c: Include debug.h and remove declaration of
2551 * nto-low.c: Likewise.
2552 * remote-utils.c: Likewise.
2553 * thread-db.c: Likewise.
2555 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
2557 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
2558 and powerpc-cell64l-ipa.o.
2559 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
2560 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
2561 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
2564 * spu-low.c: Remove file.
2566 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
2567 (parse_spufs_run): Remove.
2568 (ppc_get_pc): Remove Cell/B.E. support.
2569 (ppc_set_pc): Likewise.
2570 (ppc_breakpoint_at): Likewise.
2571 (ppc_arch_setup): Likewise.
2572 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
2573 tdesc_powerpc_cell32l.
2574 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
2575 or init_registers_powerpc_cell32l.
2576 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
2577 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
2578 or init_registers_powerpc_cell32l.
2579 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
2580 (init_registers_powerpc_cell32l): Remove prototype.
2581 (init_registers_powerpc_cell64l): Likewise.
2583 * target.h (struct target_ops): Remove qxfer_spu member.
2584 * server.c (handle_qxfer_spu): Remove.
2585 (qxfer_packets): Remove entry for "spu".
2586 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
2587 * linux-low.c (SPUFS_MAGIC): Remove.
2588 (spu_enumerate_spu_ids): Remove.
2589 (linux_qxfer_spu): Remove.
2590 (linux_target_ops): Remove qxfer_spu member.
2591 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
2592 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
2593 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
2595 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2597 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
2598 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
2599 * config.in: Regenerate.
2600 * configure: Regenerate.
2602 2019-08-15 Tom Tromey <tromey@adacore.com>
2604 * target.c (target_write_memory): Use gdb::byte_vector.
2606 2019-08-15 Tom Tromey <tromey@adacore.com>
2608 * tracepoint.c (write_inferior_data_pointer)
2609 (write_inferior_integer, write_inferior_int8)
2610 (write_inferior_uinteger, m_tracepoint_action_download)
2611 (r_tracepoint_action_download, x_tracepoint_action_download)
2612 (l_tracepoint_action_download, clear_inferior_trace_buffer)
2613 (download_agent_expr, download_tracepoint_1)
2614 (download_trace_state_variables, upload_fast_traceframes): Update.
2615 * server.c (gdb_write_memory): Update.
2616 * remote-utils.c (relocate_instruction): Update.
2617 * proc-service.c (ps_pdwrite): Update.
2618 * mem-break.c (remove_memory_breakpoint)
2619 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
2620 (uninsert_fast_tracepoint_jumps_at)
2621 (reinsert_fast_tracepoint_jumps_at): Update.
2622 * linux-x86-low.c (append_insns)
2623 (i386_install_fast_tracepoint_jump_pad)
2624 (amd64_write_goto_address, i386_write_goto_address): Update.
2625 * linux-s390-low.c (append_insns, s390_write_goto_address):
2627 * linux-ppc-low.c (ppc_relocate_instruction)
2628 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
2629 (ppc_write_goto_address): Update.
2630 * linux-aarch64-low.c (append_insns): Update.
2631 * target.h (struct target_ops): Update.
2632 (write_inferior_memory): Don't declare.
2633 * target.c (target_write_memory): Rename from
2634 write_inferior_memory. Remove old target_write_memory.
2636 2019-08-15 Tom Tromey <tromey@adacore.com>
2638 * target.c (write_inferior_memory): Use std::vector.
2640 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
2643 * configure.ac: Drop enable-libmcheck support.
2644 * configure, config.in: Rebuild.
2645 * acinclude.m4: Don't include it.
2647 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2649 * configure.srv: Remove Arm xml files.
2651 2019-07-19 Alan Hayward <alan.hayward@arm.com>
2653 * configure.srv: Add new files. Remove xml generated files.
2654 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
2656 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
2657 * linux-aarch32-tdesc.c: New file.
2658 * linux-aarch32-tdesc.h: New file.
2659 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
2660 * linux-arm-low.c (init_registers_arm, tdesc_arm)
2661 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
2662 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
2663 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
2664 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
2665 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
2666 (arm_read_description): Call arm_linux_read_description.
2667 (initialize_low_arch): Don't init registers.
2668 * linux-arm-tdesc.c: New file.
2669 * linux-arm-tdesc.h: New file.
2671 2019-07-10 Alan Hayward <alan.hayward@arm.com>
2673 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
2674 Move counter inside for.
2675 (arm_read_description): Check ptrace earlier.
2676 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
2678 2019-07-09 Tom Tromey <tom@tromey.com>
2680 * configure: Rebuild.
2681 * configure.ac: Change common to gdbsupport.
2682 * acinclude.m4: Change common to gdbsupport.
2683 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
2684 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
2685 common to gdbsupport.
2686 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
2687 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
2688 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
2689 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
2690 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
2691 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
2692 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
2693 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
2694 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
2695 common to gdbsupport.
2697 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2699 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
2701 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
2703 2019-07-04 Alan Hayward <alan.hayward@arm.com>
2705 * configure.srv: Remove legacy xml.
2706 * linux-aarch64-low.c (initialize_low_arch): Remove
2707 initialize_low_tdesc call.
2708 * linux-aarch64-tdesc-selftest.c: Remove file.
2709 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
2710 * linux-x86-low.c (initialize_low_arch): Remove
2711 initialize_low_tdesc call.
2712 * linux-x86-tdesc-selftest.c: Remove file.
2713 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
2715 2019-06-20 Tom de Vries <tdevries@suse.de>
2717 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
2718 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
2720 2019-06-19 Tom de Vries <tdevries@suse.de>
2722 * debug.h (debug_write): Change return type to ssize_t.
2723 * debug.c (debug_write): Same.
2725 2019-06-14 Tom Tromey <tom@tromey.com>
2727 * configure.ac: Use new path to gnulib.
2728 * configure: Rebuild.
2729 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
2732 2019-06-11 Tom Tromey <tom@tromey.com>
2734 * Makefile.in (SFILES): Add alloc.c.
2736 (IPA_OBJS): Add alloc-ipa.o.
2737 (alloc-ipa.o): New target.
2738 (%.o: ../%.c): New pattern rule.
2740 2019-06-10 Tom Tromey <tromey@adacore.com>
2742 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
2743 end warning with a newline.
2744 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
2746 * thread-db.c (attach_thread): Don't end warning with a newline.
2747 (thread_db_notice_clone): Likewise.
2748 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
2750 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
2751 end warning with a newline.
2753 2019-06-04 Pedro Alves <palves@redhat.com>
2755 * server.c (captured_main): Use make_unique_xstrdup.
2757 2019-06-02 Tom Tromey <tom@tromey.com>
2759 * gdbreplay.c (fromhex): Remove.
2760 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
2762 2019-05-29 Tom Tromey <tromey@adacore.com>
2764 * configure: Rebuild.
2766 2019-05-06 Kevin Buettner <kevinb@redhat.com>
2768 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
2769 sign extension code on 32-bit builds.
2771 2019-05-03 Eli Zaretskii <eliz@gnu.org>
2774 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
2776 2019-04-19 Tom Tromey <tom@tromey.com>
2778 * server.c (struct vstop_notif): Derive from notif_event.
2780 (queue_stop_reply): Update.
2781 (remove_all_on_match_ptid): Change type. Rewrite.
2782 (discard_queued_stop_replies): Rewrite.
2783 (in_queued_stop_replies_ptid): Change type.
2784 (in_queued_stop_replies): Rewrite.
2785 (notif_stop): Update.
2786 (queue_stop_reply_callback): Update.
2787 (captured_main): Don't call initialize_notif.
2788 (push_stop_notification): Update.
2789 * notif.c (notif_write_event, handle_notif_ack)
2790 (notif_event_enque, notif_push): Update.
2791 (notif_event_xfree, initialize_notif): Remove.
2792 * notif.h (struct notif_event): Include <list>, not
2794 (struct notif_server) <queue>: Now a std::list.
2795 (notif_event_p): Remove typedef.
2796 (initialize_notif): Don't declare.
2797 (struct notif_event): Add virtual destructor.
2799 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2801 * ax.c (ax_vdebug): Call debug_printf.
2802 * debug.c (debug_write): New function.
2803 * debug.h (debug_write): New declaration.
2804 * linux-low.c (sigchld_handler): Call debug_write.
2806 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2808 * debug.c (debug_set_output): New function.
2809 (debug_vprintf): Send output to debug_file.
2810 (debug_flush): Likewise.
2811 * debug.h (debug_set_output): New declaration.
2812 * server.c (handle_monitor_command): Add debug-file option.
2813 (captured_main): Likewise.
2815 2019-04-17 Alan Hayward <alan.hayward@arm.com>
2817 * debug.c (remote_debug): Add definition.
2818 * debug.h (remote_debug): Add declaration.
2819 * hostio.c (remote_debug): Remove declaration.
2820 * remote-utils.c (struct ui_file): Likewise.
2821 (remote_debug): Likewise.
2822 * remote-utils.h (remote_debug): Likewise,
2823 * server.c (remote_debug): Remove definition.
2825 2019-04-10 Kevin Buettner <kevinb@redhat.com>
2827 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
2828 when using a 64-bit gdbserver.
2830 2019-04-09 Tom Tromey <tromey@adacore.com>
2832 * linux-low.c (select_event_lwp): Use find_thread_in_random.
2834 2019-04-08 Tom Tromey <tom@tromey.com>
2836 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
2838 (linux_resume_one_lwp): Likewise.
2840 2019-04-08 Tom Tromey <tom@tromey.com>
2842 * gdbreplay.c: Update.
2843 * linux-low.c: Update.
2846 2019-04-08 Tom Tromey <tom@tromey.com>
2848 * server.c: Use C++ exception handling.
2849 * linux-low.c: Use C++ exception handling.
2850 * gdbreplay.c: Use C++ exception handling.
2852 2019-04-08 Tom Tromey <tom@tromey.com>
2854 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
2855 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
2856 (captured_main, main): Update.
2857 * gdbreplay.c (main): Update.
2859 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2861 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
2862 value in argument pointer, return 1 if the entry is found and 0
2863 otherwise. Move comment.
2864 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
2865 * linux-low.h (linux_get_auxv): Declare.
2866 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
2868 2019-04-05 Tom Tromey <tromey@adacore.com>
2870 * server.c (gdbserver_usage): Use upper-case for metasyntactic
2873 2019-03-28 Alan Hayward <alan.hayward@arm.com>
2875 * linux-low.c (AT_HWCAP2): Add define if not already included.
2877 2019-03-26 Alan Hayward <alan.hayward@arm.com>
2879 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
2880 (aarch64_arch_setup): Call linux_get_hwcap.
2881 * linux-arm-low.c (arm_get_hwcap): Remove function.
2882 (arm_read_description): Call linux_get_hwcap.
2883 * linux-low.c (linux_get_auxv): New function.
2884 (linux_get_hwcap): Likewise.
2885 (linux_get_hwcap2): Likewise.
2886 * linux-low.h (linux_get_hwcap): New declaration.
2887 (linux_get_hwcap2): Likewise.
2888 * linux-ppc-low.c (ppc_get_auxv): Remove function.
2889 (ppc_arch_setup): Call linux_get_hwcap.
2890 * linux-s390-low.c (s390_get_hwcap): Remove function.
2891 (s390_arch_setup): Call linux_get_hwcap.
2893 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2894 Jiong Wang <jiong.wang@arm.com>
2896 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
2897 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
2899 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
2901 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2902 Jiong Wang <jiong.wang@arm.com>
2904 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
2905 (aarch64_get_hwcap): New function.
2906 (aarch64_arch_setup): Read APIA hwcap.
2908 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2909 Jiong Wang <jiong.wang@arm.com>
2911 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
2912 (initialize_low_tracepoint): Likewise.
2913 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
2914 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
2915 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
2916 (aarch64_linux_read_description): Likewise.
2917 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
2919 2019-03-12 John Baldwin <jhb@FreeBSD.org>
2921 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
2922 i386_create_target_description for 'segments' parameter.
2923 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
2924 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
2925 * win32-i386-low.c (i386_arch_setup): Likewise.
2927 2019-03-12 Tom Tromey <tromey@adacore.com>
2929 * linux-low.c (iterate_over_lwps): Update.
2931 2019-03-06 Tom Tromey <tom@tromey.com>
2933 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
2934 (captured_main): Use SCOPE_EXIT.
2936 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
2938 * configure.srv: Use '$enable_unittest' instead of '$development'
2939 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
2942 2019-02-27 Tom Tromey <tromey@adacore.com>
2944 * gdbreplay.c (logchar): Handle \r\n.
2946 2019-02-07 Alan Hayward <alan.hayward@arm.com>
2948 * linux-low.c (linux_attach): Add process before lwp.
2949 * server.c (attach_inferior): Check if already attached.
2951 2019-02-07 Tom Tromey <tom@tromey.com>
2953 * x86-tdesc.h: Rename include guard.
2954 * x86-low.h: Add include guard.
2955 * wincecompat.h: Rename include guard.
2956 * win32-low.h: Add include guard.
2957 * utils.h: Rename include guard.
2958 * tracepoint.h: Rename include guard.
2959 * tdesc.h: Rename include guard.
2960 * target.h: Rename include guard.
2961 * server.h: Rename include guard.
2962 * remote-utils.h: Rename include guard.
2963 * regcache.h: Rename include guard.
2964 * nto-low.h: Rename include guard.
2965 * notif.h: Add include guard.
2966 * mem-break.h: Rename include guard.
2967 * lynx-low.h: Add include guard.
2968 * linux-x86-tdesc.h: Add include guard.
2969 * linux-s390-tdesc.h: Add include guard.
2970 * linux-ppc-tdesc-init.h: Add include guard.
2971 * linux-low.h: Add include guard.
2972 * linux-aarch64-tdesc.h: Add include guard.
2973 * linux-aarch32-low.h: Add include guard.
2974 * inferiors.h: Rename include guard.
2975 * i387-fp.h: Rename include guard.
2976 * hostio.h: Rename include guard.
2977 * gdbthread.h: Rename include guard.
2978 * gdb_proc_service.h: Rename include guard.
2979 * event-loop.h: Rename include guard.
2980 * dll.h: Rename include guard.
2981 * debug.h: Rename include guard.
2982 * ax.h: Rename include guard.
2984 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2987 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
2988 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
2990 2019-01-25 Tom Tromey <tom@tromey.com>
2992 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
2994 2019-01-25 Tom Tromey <tom@tromey.com>
2996 * win32-low.c: Fix common/ includes.
2997 * win32-i386-low.c: Fix common/ includes.
2998 * tracepoint.c: Fix common/ includes.
2999 * thread-db.c: Fix common/ includes.
3000 * target.h: Fix common/ includes.
3001 * symbol.c: Fix common/ includes.
3002 * spu-low.c: Fix common/ includes.
3003 * server.h: Fix common/ includes.
3004 * server.c: Fix common/ includes.
3005 * remote-utils.c: Fix common/ includes.
3006 * regcache.h: Fix common/ includes.
3007 * regcache.c: Fix common/ includes.
3008 * nto-x86-low.c: Fix common/ includes.
3009 * notif.h: Fix common/ includes.
3010 * mem-break.h: Fix common/ includes.
3011 * lynx-low.c: Fix common/ includes.
3012 * lynx-i386-low.c: Fix common/ includes.
3013 * linux-x86-tdesc-selftest.c: Fix common/ includes.
3014 * linux-x86-low.c: Fix common/ includes.
3015 * linux-low.c: Fix common/ includes.
3016 * inferiors.h: Fix common/ includes.
3017 * i387-fp.c: Fix common/ includes.
3018 * hostio.c: Fix common/ includes.
3019 * hostio-errno.c: Fix common/ includes.
3020 * gdbthread.h: Fix common/ includes.
3021 * gdbreplay.c: Fix common/ includes.
3022 * fork-child.c: Fix common/ includes.
3023 * event-loop.c: Fix common/ includes.
3025 (enum gdb_agent_op): Fix common/ includes.
3027 2019-01-21 Tom Tromey <tom@tromey.com>
3029 * tracepoint.c: Fix includes.
3030 * remote-utils.c: Fix includes.
3031 * linux-x86-low.c: Fix includes.
3033 2019-01-01 Joel Brobecker <brobecker@adacore.com>
3035 * gdbreplay.c (gdbreplay_version): Update copyright year in
3037 * server.c (gdbserver_version): Likewise.
3039 2018-12-05 Alan Hayward <alan.hayward@arm.com>
3041 * linux-low.c (add_lwp): Switch ordering.
3043 2018-11-29 Tom Tromey <tom@tromey.com>
3045 * win32-low.c (win32_join): Take pid, not process.
3046 * target.h (struct target_ops) <join>: Change argument type.
3047 (join_inferior): Change argument name.
3048 * spu-low.c (spu_join): Take pid, not process.
3049 * server.c (handle_detach): Preserve pid before destroying
3051 * lynx-low.c (lynx_join): Take pid, not process.
3052 * linux-low.c (linux_join): Take pid, not process.
3054 2018-11-23 Alan Hayward <alan.hayward@arm.com>
3056 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
3057 (aarch64_cannot_fetch_register): Likewise.
3058 (struct linux_target_ops): Update references.
3060 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3062 * linux-ppc-low.c: Include nat/linux-ptrace.h.
3064 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3066 * configure.srv (ipa_ppc_linux_regobj): Add
3067 powerpc-isa207-htm-vsx32l-ipa.o and
3068 powerpc-isa207-htm-vsx64l-ipa.o.
3069 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
3070 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
3071 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
3072 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
3073 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
3074 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
3075 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
3076 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
3077 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3078 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
3079 (init_registers_powerpc_isa207_htm_vsx32l)
3080 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
3081 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
3082 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
3083 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
3084 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
3085 (ppc_store_tm_ctarregset): New functions.
3086 (ppc_regsets): Add entries for HTM regsets.
3087 (ppc_arch_setup): Set htm in features struct when needed. Set
3088 sizes for the HTM regsets.
3089 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
3090 (initialize_low_arch): Call
3091 init_registers_powerpc_isa207_htm_vsx32l and
3092 init_registers_powerpc_isa207_htm_vsx64l.
3093 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
3094 PPC_TDESC_ISA207_HTM_VSX.
3095 (initialize_low_tracepoint): Call
3096 init_registers_powerpc_isa207_htm_vsx32l and
3097 init_registers_powerpc_isa207_htm_vsx64l.
3099 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3101 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
3102 rs6000/power-linux-pmu.xml to srv_xmlfiles.
3103 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
3104 (ppc_store_pmuregset): New functions.
3105 (ppc_regsets): Add entries for ebb and pmu regsets.
3106 (ppc_arch_setup): Set isa207 in features struct if the ebb and
3107 pmu regsets are available. Set sizes for these regsets.
3109 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3111 * configure.srv (ipa_ppc_linux_regobj): Add
3112 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
3113 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
3114 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
3115 rs6000/powerpc-isa207-vsx32l.xml, and
3116 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
3117 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3118 <PPC_TDESC_ISA207_VSX>: New enum value.
3119 (init_registers_powerpc_isa207_vsx32l): Declare.
3120 (init_registers_powerpc_isa207_vsx64l): Declare.
3121 * linux-ppc-low.c (ppc_fill_tarregset): New function.
3122 (ppc_store_tarregset): New function.
3123 (ppc_regsets): Add entry for the TAR regset.
3124 (ppc_arch_setup): Set isa207 in features struct when needed. Set
3125 size for the TAR regsets.
3126 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
3127 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
3128 and init_registers_powerpc_isa207_vsx64l.
3129 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
3130 (initialize_low_tracepoint): Call
3131 init_registers_powerpc_isa207_vsx32l and
3132 init_registers_powerpc_isa207_vsx64l.
3134 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3135 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3137 * configure.srv (ipa_ppc_linux_regobj): Add
3138 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
3139 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
3140 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
3141 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
3142 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
3143 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
3144 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
3145 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
3146 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
3147 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
3148 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
3149 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
3150 (ppc_hwcap): Add comment.
3151 (ppc_hwcap2): New global.
3152 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
3153 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
3154 (ppc_regsets): Add entries for the DSCR and PPR regsets.
3155 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
3156 when needed. Set sizes for the the DSCR and PPR regsets.
3157 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
3158 (initialize_low_arch): Call
3159 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
3160 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
3161 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
3162 PPC_TDESC_ISA205_PPR_DSCR_VSX.
3163 (initialize_low_tracepoint): Call
3164 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
3165 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
3167 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3169 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
3171 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
3172 Simon Marchi <simark@simark.ca>
3174 * acinclude.m4: Include "../selftest.m4".
3175 * configure: Regenerate.
3176 * configure.ac: Use "GDB_AC_SELFTEST".
3177 * configure.srv: Use "$enable_unittests" instead of
3178 "$development" when checking whether unit tests have been
3180 * server.c (captured_main): Update message informing that
3181 selftests have been disabled.
3183 2018-10-04 Tom Tromey <tom@tromey.com>
3185 * configure: Rebuild.
3187 2018-10-04 Tom Tromey <tom@tromey.com>
3189 * server.c (handle_status): Rename inner "thread".
3190 (process_serial_event): Declare "res" in 'm' case.
3191 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
3192 (iterate_over_lwps): Rename inner "thread".
3193 (linux_qxfer_libraries_svr4): Rename inner "len".
3194 * gdbthread.h (find_thread_in_random): Rename inner "thread".
3196 2018-10-01 Gary Benson <gbenson@redhat.com>
3198 * gdb_proc_service.h: Moved common code to
3199 common/gdb_proc_service.h.
3201 2018-10-01 Gary Benson <gbenson@redhat.com>
3203 * gdb_proc_service.h: Synchronize comments and whitespace with
3204 GDB's version of this file.
3206 2018-09-25 Tom Tromey <tom@tromey.com>
3208 * configure: Rebuild.
3209 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
3211 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3213 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
3214 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
3215 ($(IPA_LIB)): Sort IPA_OBJS.
3217 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
3219 * Makefile.in: Remove references to $(ADD_DEPS).
3221 2018-09-16 Tom Tromey <tom@tromey.com>
3223 * remote-utils.c (remote_open): Use GNU style for metasyntactic
3225 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
3228 2018-09-05 Tom Tromey <tom@tromey.com>
3230 * configure: Rebuild.
3232 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
3235 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
3237 2018-08-27 Tom Tromey <tom@tromey.com>
3240 * configure: Rebuild.
3242 2018-08-27 Tom Tromey <tom@tromey.com>
3244 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
3245 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
3246 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
3247 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
3248 (s390x_emit_stack_adjust): Add casts to unsigned char.
3250 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
3254 * server.h (struct client_state) <disable_randomization>:
3257 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3259 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
3261 (mips_supply_ptrace_register): Likewise.
3263 2018-07-22 Tom Tromey <tom@tromey.com>
3265 * configure: Rebuild.
3267 2018-07-22 Tom Tromey <tom@tromey.com>
3269 * win32-low.c (win32_create_inferior): Remove unused variables.
3270 * gdbreplay.c (remote_open): Remove unused variable.
3271 * remote-utils.c (remote_prepare): Remove unused variable.
3272 * x86-tdesc.h (X86_TDESC_H): Define.
3273 (amd64_expedite_regs): Define conditionally.
3274 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
3275 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
3276 * remote-utils.c (readchar): Remove unused variable.
3278 2018-07-13 Pedro Alves <palves@redhat.com>
3280 * linux-low.c (linux_kill): Change parameter to process_info
3281 pointer instead of pid. Adjust.
3282 * lynx-low.c (lynx_kill): Likewise.
3283 * nto-low.c (nto_kill): Likewise.
3284 * spu-low.c (spu_kill): Likewise.
3285 * win32-low.c (win32_kill): Likewise.
3286 * server.c (handle_v_kill, kill_inferior_callback)
3287 (detach_or_kill_for_exit): Adjust.
3288 * target.c (kill_inferior): Change parameter to process_info
3289 pointer instead of pid. Adjust.
3290 * target.h (struct target_ops) <kill>: Change parameter to
3291 process_info pointer instead of pid. Adjust all implementations
3293 (kill_inferior): Likewise.
3295 2018-07-13 Pedro Alves <palves@redhat.com>
3297 * linux-low.c (linux_detach, linux_join): Change parameter to
3298 process_info pointer instead of pid. Adjust.
3299 * lynx-low.c (lynx_detach, lynx_join): Likewise.
3300 * nto-low.c (nto_detach): Likewise.
3301 * spu-low.c (spu_detach, spu_join): Likewise.
3302 * win32-low.c (win32_detach, win32_join): Likewise.
3303 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
3304 * target.h (struct target_ops) <detach, join>: Change parameter to
3305 process_info pointer instead of pid. Adjust all implementations
3307 (detach_inferior, join_inferior): Rename 'pid' parameter to
3310 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3311 Jan Kratochvil <jan.kratochvil@redhat.com>
3312 Paul Fertser <fercerpav@gmail.com>
3313 Tsutomu Seki <sekiriki@gmail.com>
3315 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
3316 (OBS): Add 'common/netstuff.o'.
3317 (GDBREPLAY_OBS): Likewise.
3318 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
3319 (remote_open): Implement support for IPv6
3321 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
3323 (handle_accept_event): Accept connections from IPv6 sources.
3324 (remote_prepare): Handle IPv6-style hostnames; implement
3325 support for IPv6 connections.
3326 (remote_open): Implement support for printing connections from
3329 2018-07-11 Pedro Alves <palves@redhat.com>
3332 * mem-break.c (any_persistent_commands): Add process_info
3333 parameter and use it instead of relying on the current process.
3334 Change return type to bool.
3335 * mem-break.h (any_persistent_commands): Add process_info
3336 parameter and change return type to bool.
3337 * server.c (handle_detach): Remove require_running_or_return call.
3338 Look up the process_info for the process we're about to detach.
3339 If not found, return back error to GDB. Adjust
3340 any_persistent_commands call to pass down a process pointer.
3342 2018-07-11 Pedro Alves <palves@redhat.com>
3344 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
3345 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
3346 instead of collect_register_by_name.
3347 * regcache.c (regcache_raw_get_unsigned_by_name): New.
3348 * regcache.h (regcache_raw_get_unsigned_by_name): New.
3350 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
3351 Pedro Alves <palves@redhat.com>
3353 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
3355 2018-07-03 Tom Tromey <tom@tromey.com>
3357 * linux-low.c: Update.
3358 * lynx-low.c: Update.
3359 * mem-break.c: Update.
3360 * nto-low.c: Update.
3361 * remote-utils.c: Update.
3363 * spu-low.c: Update.
3365 * win32-low.c: Update.
3367 2018-07-03 Tom Tromey <tom@tromey.com>
3371 2018-07-03 Tom Tromey <tom@tromey.com>
3373 * linux-low.c: Update.
3375 2018-07-03 Tom Tromey <tom@tromey.com>
3379 2018-07-03 Tom Tromey <tom@tromey.com>
3381 * linux-low.c: Update.
3382 * linux-mips-low.c: Update.
3383 * lynx-low.c: Update.
3384 * nto-low.c: Update.
3385 * remote-utils.c: Update.
3387 * spu-low.c: Update.
3389 * thread-db.c: Update.
3391 2018-07-03 Tom Tromey <tom@tromey.com>
3393 * linux-low.c: Update.
3394 * linux-mips-low.c: Update.
3395 * lynx-low.c: Update.
3396 * mem-break.c: Update.
3397 * nto-low.c: Update.
3398 * remote-utils.c: Update.
3400 * spu-low.c: Update.
3402 * tracepoint.c: Update.
3404 2018-07-03 Tom Tromey <tom@tromey.com>
3406 * linux-low.c: Update.
3407 * linux-ppc-low.c: Update.
3408 * linux-x86-low.c: Update.
3409 * proc-service.c: Update.
3411 * spu-low.c: Update.
3412 * thread-db.c: Update.
3413 * win32-low.c: Update.
3415 2018-07-03 Tom Tromey <tom@tromey.com>
3417 * linux-low.c: Update.
3418 * lynx-low.c: Update.
3419 * nto-low.c: Update.
3420 * remote-utils.c: Update.
3421 * spu-low.c: Update.
3422 * thread-db.c: Update.
3423 * win32-low.c: Update.
3425 2018-06-29 Joel Brobecker <brobecker@adacore.com>
3427 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
3428 parameter in call to 'amd64_create_target_description'.
3430 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3432 * x86-tdesc.h: Remove executable permission flag.
3434 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
3436 * configure.ac: Remove AC_PREREQ, add missing quoting.
3437 * configure: Re-generate.
3438 * config.in: Re-generate.
3439 * aclocal.m4: Re-generate.
3441 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
3443 * tracepoint.h (current_traceframe): Remove declaration.
3445 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3447 * linux-aarch64-low.c (is_sve_tdesc): New function.
3448 (aarch64_sve_regs_copy_to_regcache): Likewise.
3449 (aarch64_sve_regs_copy_from_regcache): Likewise.
3450 (aarch64_regs_info): Add SVE checks.
3451 (initialize_low_arch): Initialize SVE.
3453 2018-06-18 Alan Hayward <alan.hayward@arm.com>
3455 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
3457 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3459 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
3460 (initialize_low_tracepoint): Likewise
3461 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
3462 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
3464 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
3466 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
3468 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3470 * server.h (PBUFSIZ): Increase size
3472 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3474 * regcache.c (regcache::raw_compare): New function.
3475 * regcache.h (regcache::raw_compare): New declaration.
3477 2018-06-11 Alan Hayward <alan.hayward@arm.com>
3479 * regcache.c (new_register_cache): Use new.
3480 (free_register_cache): Use delete.
3481 (register_data): Use const.
3482 (supply_register): Move body inside regcache.
3483 (regcache::raw_supply): New override function.
3484 (collect_register): Move body inside regcache.
3485 (regcache::raw_collect): New override function.
3486 (regcache::get_register_status): New override function.
3487 * regcache.h (struct regcache): Inherit from reg_buffer_common.
3489 2018-06-09 Tom Tromey <tom@tromey.com>
3491 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
3493 (event_queue): Use std::queue.
3494 (gdb_event_xfree): Remove.
3495 (initialize_event_loop, process_event, wait_for_event): Update.
3497 2018-06-08 Stan Cox <scox@redhat.com>
3499 * win32-low.c (win32_create_inferior): last_ptid and last_status
3500 moved to client_state.
3502 2018-06-08 Pedro Alves <palves@redhat.com>
3504 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
3505 common/common-exceptions.o, common/common-utils.o,
3506 common/errors.o, common/print-utils.o and utils.o.
3507 * gdbreplay.c: Include "common-defs.h" instead of the two
3508 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
3509 string.h or alloca.h.
3510 (perror_with_name): Delete.
3511 (remote_open): Use xstrdup instead of strdup.
3512 (main): Rename to ...
3513 (captured_main): ... this.
3516 2018-06-08 Tom Tromey <tom@tromey.com>
3518 * linux-low.c (linux_low_read_btrace): Update.
3520 2018-06-04 Stan Cox <scox@redhat.com>
3522 * server.h (struct client_state): New.
3523 * server.c (cont_thread, general_thread, multi_process)
3524 (report_fork_events, report_vfork_events, report_exec_events)
3525 (report_thread_events, swbreak_feature, hwbreak_feature)
3526 (vCont_supported, disable_randomization, pass_signals)
3527 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
3528 Moved to client_state.
3529 * remote-utils.c (remote_debug, noack_mode)
3530 (transport_is_reliable): Moved to client_state.
3531 * tracepoint.c (current_traceframe): Moved to client_state.
3534 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
3535 linux-low.c, remote-utils.h, target.c: Use client_state.
3537 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3539 * configure.srv: Add new c/h file.
3541 2018-05-31 Alan Hayward <alan.hayward@arm.com>
3543 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
3546 2018-05-25 Maciej W. Rozycki <macro@mips.com>
3548 * gdb.arch/mips-fpregset-core.exp: New test.
3549 * gdb.arch/mips-fpregset-core.c: New test source.
3551 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
3554 * hostio.c (require_int): Do not report overflow for integers
3555 between 0xfffffff and 0x7fffffff.
3557 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3559 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
3560 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
3561 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
3563 (the_low_target): Wire them.
3565 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3567 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
3568 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
3569 mode. Call collect_register_by_name with vscr using
3570 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
3571 (ppc_store_vrregset): Add and set vscr_offset variable as in
3572 ppc_fill_vrregset. Call supply_register_by_name with vscr using
3575 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3577 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
3578 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
3579 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
3581 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3583 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
3584 (ppc_store_vsxregset): Likewise.
3585 (ppc_fill_vrregset): Likewise.
3586 (ppc_store_vrregset): Likewise.
3587 (ppc_fill_evrregset): Likewise.
3588 (ppc_store_evrregset): Likewise.
3589 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
3590 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
3593 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3595 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
3596 wordsize of the inferior. Call ppc_linux_target_wordsize.
3598 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
3600 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
3601 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
3602 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
3603 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
3604 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
3605 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
3606 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
3607 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
3608 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
3609 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
3610 (tdesc_powerpc_e500l): Remove.
3611 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
3612 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
3613 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
3614 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
3616 (ppc_arch_setup): Remove target description matching code. Fill a
3617 ppc_linux_features struct and call ppc_linux_match_description
3620 2018-05-22 Maciej W. Rozycki <macro@mips.com>
3622 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
3623 width of the requested register exceeds the width of the
3625 (mips_cannot_store_register): Likewise.
3627 2018-05-21 Maciej W. Rozycki <macro@mips.com>
3629 * linux-mips-low.c (mips_fetch_register): New function. Update
3631 (mips_store_gregset): Supply 0 rather than $restart for $zero.
3632 (the_low_target): Wire `mips_fetch_register'.
3634 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3636 * lynx-i386-low.c (LYNXOS_178): New macro.
3637 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
3638 the layout on LynxOS-178.
3639 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
3640 handle floating point registers that are not supported by
3643 2018-05-10 Tom Tromey <tom@tromey.com>
3645 * configure: Rebuild.
3647 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3650 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
3651 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
3652 Use it to set the expedite_regs field in the given tdesc.
3653 * x86-tdesc.h: New file.
3654 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
3655 Adjust following the addition of the new expedite_regs parameter
3656 to init_target_desc.
3657 * linux-tic6x-low.c (tic6x_read_description): Likewise.
3658 * linux-x86-tdesc.c: #include "x86-tdesc.h".
3659 (i386_linux_read_description, amd64_linux_read_description):
3660 Adjust following the addition of the new expedite_regs parameter
3661 to init_target_desc.
3662 * lynx-i386-low.c: #include "x86-tdesc.h".
3663 (lynx_i386_arch_setup): Adjust following the addition of the new
3664 expedite_regs parameter to init_target_desc.
3665 * nto-x86-low.c: #include "x86-tdesc.h".
3666 (nto_x86_arch_setup): Adjust following the addition of the new
3667 expedite_regs parameter to init_target_desc.
3668 * win32-i386-low.c: #include "x86-tdesc.h".
3669 (i386_arch_setup): Adjust following the addition of the new
3670 expedite_regs parameter to init_target_desc.
3672 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3675 * win32-low.c (win32_create_inferior): Add call to my_wait
3676 setting last_status global.
3678 2018-05-10 Joel Brobecker <brobecker@adacore.com>
3681 * win32-low.c (create_process): Only call gdb_tilde_expand if
3682 inferior_cwd is not NULL.
3684 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
3686 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
3687 registers to the cache if their values have changed.
3688 (i387_xsave_to_cache): Provide default values for x87 control
3689 registers when these features are available, but disabled.
3690 * regcache.c (supply_register_by_name_zeroed): New function.
3691 * regcache.h (supply_register_by_name_zeroed): Declare new
3694 2018-05-07 Tom Tromey <tom@tromey.com>
3696 * configure: Rebuild.
3698 2018-05-04 Tom Tromey <tom@tromey.com>
3700 * configure: Rebuild.
3702 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3703 Pedro Alves <palves@redhat.com>
3705 * linux-aarch64-low.c (aarch64_stopped_data_address):
3708 2018-04-27 Tom Tromey <tom@tromey.com>
3710 * configure: Rebuild.
3712 2018-04-23 Tom Tromey <tom@tromey.com>
3714 * configure: Rebuild.
3716 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
3718 * Makefile.in (depcomp): Add "..".
3719 (all_deps_files): New and use it.
3721 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3723 * configure.srv (aarch64*-*-linux*): Don't include xml.
3724 (i[34567]86-*-cygwin*): Likewise.
3725 (i[34567]86-*-linux*): Likewise.
3726 (i[34567]86-*-lynxos*): Likewise.
3727 (i[34567]86-*-mingw32ce*): Likewise.
3728 (i[34567]86-*-mingw*): Likewise.
3729 (i[34567]86-*-nto*): Likewise.
3730 (tic6x-*-uclinux): Likewise.
3731 (x86_64-*-linux*): Likewise.
3732 (x86_64-*-mingw*): Likewise.
3733 (x86_64-*-cygwin*): Likewise.
3735 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3737 * tdesc.c: Remove xml parameter.
3739 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3741 * server.c (get_features_xml): Remove cast.
3742 * tdesc.c (void target_desc::accept): Fill in function.
3743 (tdesc_get_features_xml): Remove old xml creation.
3744 (print_xml_feature::visit_pre): Add xml vistor.
3745 * tdesc.h (struct target_desc): Make xmltarget mutable.
3746 (tdesc_get_features_xml): Remove declaration.
3748 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3750 * tdesc.c (tdesc_architecture_name): Add new function.
3751 (tdesc_osabi_name): Likewise.
3752 (tdesc_get_features_xml): Use new functions.
3754 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3756 * tdesc.c (tdesc_create_flags): Remove.
3757 (tdesc_add_flag): Likewise.
3758 (tdesc_named_type): Likewise.
3759 (tdesc_create_union): Likewise.
3760 (tdesc_create_struct): Likewise.
3761 (tdesc_create_vector): Likewise.
3762 (tdesc_add_bitfield): Likewise.
3763 (tdesc_add_field): Likewise.
3764 (tdesc_set_struct_size): Likewise.
3766 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3768 * tdesc.c (~target_desc): Remove implictly deleted items.
3769 (init_target_desc): Iterate all features.
3770 (tdesc_get_features_xml): Use vector.
3771 (tdesc_create_feature): Create feature.
3772 * tdesc.h (tdesc_feature) Remove
3773 (target_desc): Add features.
3775 2018-04-18 Alan Hayward <alan.hayward@arm.com>
3777 * Makefile.in: Add common/tdesc.c
3778 * tdesc.c (init_target_desc): init all reg_defs from register
3780 (tdesc_create_reg): Create tdesc_reg.
3781 * tdesc.h (tdesc_feature): Add register vector.
3783 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3785 * tdesc.h (struct target_desc) <features>: Change type to
3786 std::vector<std::string>.
3787 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
3789 (tdesc_get_features_xml): Likewise.
3790 (tdesc_create_feature): Likewise.
3792 2018-03-26 Alan Hayward <alan.hayward@arm.com>
3794 * regcache.c (find_register_by_number): Return a ref.
3795 (find_regno): Use references.
3796 (register_size): Likewise.
3797 (register_data): Likewise.
3798 * tdesc.c (target_desc::~target_desc): Remove free calls.
3799 (target_desc::operator==): Use std::vector compare.
3800 (init_target_desc): Use reference.
3801 (tdesc_create_reg): Use reg constructors.
3802 * tdesc.h (struct target_desc): Replace pointer with object.
3804 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3806 * regcache.c (find_register_by_number): Make static.
3807 (find_regno): Use find_register_by_number
3808 * regcache.h (struct reg): Remove declaration.
3810 2018-03-23 Alan Hayward <alan.hayward@arm.com>
3812 * tdesc.c (target_desc::~target_desc): Move to here.
3813 (target_desc::operator==): Likewise.
3814 * tdesc.h (target_desc::~target_desc): Move from here.
3815 (target_desc::operator==): Likewise.
3817 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
3819 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
3821 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3823 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
3825 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
3826 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
3827 and init_registers_s390_gs_linux64.
3829 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3831 * linux-s390-low.c (s390_fill_gs): Remove function.
3832 (s390_fill_gsbc): Remove function.
3833 (s390_regsets): Set fill functions for the guarded storage regsets
3836 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3838 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
3839 the word size. Add comment.
3840 (s390_get_wordsize): New function.
3841 (s390_arch_setup): No longer select a temporary tdesc to fetch the
3842 pswm with it. Instead, use s390_get_wordsize to determine the
3843 word size first and derive the correct tdesc from that directly.
3845 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
3847 * Makefile.in: Include silent-rules.mk.
3848 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
3849 (COMPILE): Add ECHO_CXX.
3850 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3851 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
3852 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
3853 (version-generated.c): Add ECHO_GEN.
3854 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
3855 (IPAGENT_COMPILE): Add ECHO_CXX.
3856 (%-generated.c): Add ECHO_REGDAT.
3858 2018-03-14 Tom Tromey <tom@tromey.com>
3861 * ax.c (ax_printf): Special case for NULL.
3863 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3865 * linux-low.c (linux_qxfer_libraries_svr4): Use
3866 xml_escape_text_append.
3868 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
3870 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
3872 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3874 * server.c (handle_general_set): Remove unnecessary xstrdup.
3876 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3878 * server.c (parse_debug_format_options): Adjust to
3879 delim_string_to_char_ptr_vec changes.
3880 * thread-db.c (thread_db_load_search): Adjust to
3881 dirnames_to_char_ptr_vec changes.
3883 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
3885 * target.h (target_enable_btrace, target_disable_btrace)
3886 (target_read_btrace, target_read_btrace_conf): Turn macro into
3887 inline function. Throw error if target method is not defined.
3888 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
3889 check for btrace target method. Be prepared to handle exceptions
3890 from btrace target methods.
3892 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3894 * server.c (captured_main): Change order of error message printed
3895 when the current working directory cannot be found.
3897 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3899 * server.c: Include "filenames.h" and "pathstuff.h".
3900 (program_name): Delete variable.
3901 (program_path): New anonymous class.
3902 (get_exec_wrapper): Use "program_path" instead of
3904 (handle_v_run): Likewise.
3905 (captured_main): Likewise.
3906 (process_serial_event): Likewise.
3908 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
3910 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
3911 (OBJS): Add "pathstuff.o".
3912 * server.c (current_directory): New global variable.
3913 (captured_main): Initialize "current_directory".
3915 2018-02-26 Alan Hayward <alan.hayward@arm.com>
3917 * tdesc.c: Use common/tdesc.h.
3918 * tdesc.h: Likewise.
3920 2018-02-20 Alan Hayward <alan.hayward@arm.com>
3921 Simon Marchi <simon.marchi@ericsson.com>
3923 * Makefile.in: Switch order of make rules.
3925 2018-02-19 Alan Hayward <alan.hayward@arm.com>
3927 * Makefile.in: Add common directory in build.
3928 * configure.ac: Add common reference.
3929 * configure: Regenerate.
3931 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3933 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
3934 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
3935 * spu-low.c (spu_target_ops): Likewise.
3936 * win32-low.c (win32_target_ops): Likewise.
3937 * server.c (supported_btrace_packets): Report packets unconditionally.
3938 * target.h (target_ops) <supports_btrace>: Remove.
3939 (target_supports_btrace): Remove.
3941 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
3943 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
3944 (handle_btrace_disable): Change return type to void. Use exceptions
3946 (handle_btrace_general_set): Catch exception and copy message to
3949 2018-02-08 Tom Tromey <tom@tromey.com>
3951 * linux-low.c (install_software_single_step_breakpoints): Use
3952 make_scoped_restore.
3953 * inferiors.c (make_cleanup_restore_current_thread): Remove.
3954 (do_restore_current_thread_cleanup): Remove.
3955 * gdbthread.h (make_cleanup_restore_current_thread): Don't
3958 2018-02-08 Tom Tromey <tom@tromey.com>
3960 * mem-break.c (set_raw_breakpoint_at): Use
3961 gdb::unique_xmalloc_ptr.
3963 2018-01-30 Pedro Alves <palves@redhat.com>
3966 * target.c (target_terminal::terminal_state): Rename to ...
3967 (target_terminal::m_terminal_state): ... this.
3969 2018-01-19 James Clarke <jrtc27@jrtc27.com>
3971 * linux-low.c (handle_extended_wait): Surround call to
3972 thread_db_notice_clone with #ifdef USE_THREAD_DB.
3974 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
3976 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
3977 linux_ptrace_attach_fail_reason_string now returning an
3979 (linux_attach): Likewise.
3980 * thread-db.c (attach_thread): Likewise.
3982 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
3985 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
3986 checking for fs_base/gs_base fields in struct user_regs_struct.
3987 * configure: Regenerate.
3989 2018-01-16 Yao Qi <yao.qi@linaro.org>
3992 * linux-low.c (fetch_register): Call supply_register instead of
3995 2018-01-08 Yao Qi <yao.qi@linaro.org>
3996 Simon Marchi <simon.marchi@ericsson.com>
3998 * Makefile.in (OBS): Remove selftest.o.
3999 * configure.ac: Set srv_selftest_objs if $development is true.
4000 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
4001 * configure: Re-generated.
4002 * server.c (captured_main): Wrap variable selftest_filter with
4005 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
4007 * server.c (parse_debug_format_options): Return std::string.
4008 (handle_monitor_command, captured_main): Adjust.
4010 2018-01-05 Pedro Alves <palves@redhat.com>
4013 * server.c (captured_main): Pass quiet=false to
4014 save_original_signals_state.
4016 2018-01-01 Joel Brobecker <brobecker@adacore.com>
4018 * gdbreplay.c (gdbreplay_version): Update copyright year in
4020 * server.c (gdbserver_version): Likewise.
4022 2017-12-08 Tom Tromey <tom@tromey.com>
4024 * ax.c (ax_printf): Update.
4026 2017-12-07 Yao Qi <yao.qi@linaro.org>
4028 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
4029 aarch64_linux_read_description.
4030 * linux-amd64-ipa.c (idx2mask): New array.
4031 (get_ipa_tdesc): Move idx2mask out.
4032 (initialize_low_tracepoint): Initialize target descriptions.
4033 * linux-i386-ipa.c (idx2mask): New array.
4034 (get_ipa_tdesc): Move idx2mask out.
4035 (initialize_low_tracepoint): Initialize target descriptions.
4037 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
4039 * tdesc.c (struct tdesc_type): Change return type.
4040 (tdesc_add_flag): Change parameter type.
4041 (tdesc_add_bitfield): Likewise.
4042 (tdesc_add_field): Likewise.
4043 (tdesc_set_struct_size): Likewise.
4045 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
4047 * regcache.c (registers_to_string): Remove unused variable.
4049 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4051 * inferiors.c (for_each_inferior_with_data): Remove.
4052 * inferiors.h (for_each_inferior_with_data): Remove.
4053 * server.c (handle_qxfer_threads_worker): Change parameter type.
4054 (handle_qxfer_threads_proper): Use for_each_thread.
4056 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4058 * inferiors.c (for_each_inferior): Remove.
4059 (clear_inferiors): Use for_each_thread.
4060 * inferiors.h (for_each_inferior): Remove.
4061 * linux-low.c (linux_wait_for_event_filtered): Use
4063 (linux_stabilize_threads): Likewise.
4064 * regcache.c (regcache_release): Likewise.
4065 * server.c (gdb_wants_all_threads_stopped): Likewise.
4066 (clear_pending_status_callback): Remove.
4067 (handle_status): Use for_each_thread.
4068 (captured_main): Likewise.
4069 * win32-low.c (child_init_thread_list): Likewise.
4070 (win32_clear_inferiors): Likewise.
4071 (fake_breakpoint_event): Likewise.
4073 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4075 * inferiors.h (find_inferior): Remove.
4076 * inferiors.c (find_inferior): Remove.
4078 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4080 * linux-low.c (resume_status_pending_p): Update comment.
4081 (need_step_over_p): Update comment.
4083 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4085 * linux-low.c (proceed_one_lwp): Return void, change parameter
4087 (unsuspend_and_proceed_one_lwp): Likewise.
4088 (proceed_all_lwps): Use for_each_thread.
4089 (unstop_all_lwps): Likewise.
4091 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4093 * linux-low.c (linux_resume_one_thread): Return void, take
4095 (linux_resume): Use for_each_thread.
4097 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4099 * linux-low.c (send_sigstop_callback): Return void, change
4100 parameter type. Rename to...
4101 (send_sigstop): ... this.
4102 (suspend_and_send_sigstop_callback): Return void, change parameter
4104 (suspend_and_send_sigstop): ... this.
4105 (stop_all_lwps): Use for_each_thread.
4107 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4109 * linux-low.c (lwp_running): Return bool, remove unused
4111 (linux_stabilize_threads): Use find_thread.
4113 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4115 * linux-low.c (select_singlestep_lwp_callback): Remove.
4116 (count_events_callback): Remove.
4117 (select_event_lwp_callback): Remove.
4118 (select_event_lwp): Use find_thread/for_each_thread.
4120 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4122 * linux-low.c (not_stopped_callback): Return bool, take filter
4124 (linux_wait_for_event_filtered): Use find_thread.
4125 (linux_wait_1): Likewise.
4127 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4129 * linux-low.c (same_lwp): Remove.
4130 (find_lwp_pid): Use find_thread.
4132 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4134 * linux-low.c (delete_lwp_callback): Remove.
4135 (linux_mourn): Use for_each_thread.
4137 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4139 * linux-low.c (linux_detach_lwp_callback): Return void, remove
4140 args parameter, don't check for pid.
4141 (linux_detach): Use for_each_thread.
4143 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4145 * linux-low.c (struct counter): Remove.
4146 (second_thread_of_pid_p): Remove.
4147 (last_thread_of_process_p): Use find_thread.
4149 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4151 * inferiors.c (find_inferior_in_random): Remove.
4152 * inferiors.h (find_inferior_in_random): Remove.
4153 * linux-low.c (status_pending_p_callback): Return bool, accept
4154 parameter ptid directly.
4155 (linux_wait_for_event_filtered): Use find_thread_in_random.
4156 (linux_wait_1): Likewise.
4158 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4160 * inferiors.c (find_inferior_id): Remove.
4161 (find_thread_ptid): Move implemention from find_inferior_id to
4163 * inferiors.h (find_inferior_id): Remove.
4164 * server.c (handle_status): Use find_thread_ptid.
4165 (process_serial_event): Likewise.
4166 * thread-db.c (find_one_thread): Likewise.
4167 (thread_db_thread_handle): Likewise.
4168 * win32-low.c (thread_rec): Likewise.
4169 (child_delete_thread): Likewise.
4170 (win32_thread_alive): Likewise.
4171 (get_child_debug_event): Likewise.
4173 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4175 * linux-mips-low.c (update_watch_registers_callback): Return
4176 void, remove pid_p parameter, don't check for pid.
4177 (mips_insert_point, mips_remove_point): Use for_each_thread.
4179 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4181 * lynx.low (lynx_delete_thread_callback): Remove.
4182 (lynx_mourn): Use for_each_thread.
4184 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
4186 * regcache.c (regcache_invalidate_one): Remove.
4187 (regcache_invalidate_pid): use for_each_thread.
4189 2017-11-26 Tom Tromey <tom@tromey.com>
4191 * linux-low.c (linux_create_inferior): Update.
4193 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
4195 * spu-low.c (spu_create_inferior): Fix typo in argument name.
4197 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4199 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
4200 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4201 * linux-aarch64-tdesc-selftest.c: New file.
4202 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4204 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4206 * configure.srv: Add new file.
4207 * linux-aarch64-low.c (initialize_low_arch): Call init func.
4208 * linux-aarch64-tdesc-selftest.c: New file.
4209 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
4211 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4213 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
4214 * linux-aarch64-low.c (initialize_low_arch): Remove init.
4215 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
4217 2017-11-24 Alan Hayward <alan.hayward@arm.com>
4219 * configure.srv: Add new files.
4220 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
4221 aarch64_linux_read_description.
4222 * linux-aarch64-low.c (aarch64_linux_read_description):
4223 Merge with aarch64_arch_setup.
4224 (aarch64_arch_setup): Call aarch64_linux_read_description.
4225 * linux-aarch64-tdesc.c: New file.
4226 * linux-aarch64-tdesc.h: New file.
4228 2017-11-24 Yao Qi <yao.qi@linaro.org>
4230 * configure.srv: Set $srv_regobj for tic6x-linux.
4231 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
4232 (tic6x_read_description): Move some code to tic6x_arch_setup.
4233 (tic6x_tdesc_test): New function.
4234 (initialize_low_arch): Call selftests::register_test.
4236 2017-11-22 Yao Qi <yao.qi@linaro.org>
4238 * remote-utils.c (prepare_resume_reply): Use memcpy.
4240 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4242 * linux-low.c (kill_one_lwp_callback): Return void, take
4243 argument directly, don't filter on pid.
4244 (linux_kill): Use for_each_thread.
4246 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4248 * linux-low.c (need_step_over_p): Return bool, remove dummy
4250 (linux_resume, proceed_all_lwps): Use find_thread.
4252 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4254 * linux-low.c (resume_status_pending_p): Return bool, remove
4256 (linux_resume): Use find_thread.
4258 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4260 * linux-low.c (struct thread_resume_array): Remove.
4261 (linux_set_resume_request): Return void, take arguments
4263 (linux_resume): Use for_each_thread.
4265 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4267 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
4268 return bool, remove data argument.
4269 (linux_stabilize_threads): Use find_thread.
4271 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4273 * linux-low.c (unsuspend_one_lwp): Remove.
4274 (unsuspend_all_lwps): Use for_each_thread, inline code from
4277 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4279 * gdbthread.h (find_thread): Add overload with ptid_t filter.
4280 * linux-low.c (struct iterate_over_lwps_args): Remove.
4281 (iterate_over_lwps_filter): Remove.
4282 (iterate_over_lwps): Use find_thread.
4284 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4286 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
4287 (linux_handle_new_gdb_connection): Use for_each_thread, inline
4288 code from reset_lwp_ptrace_options_callback.
4290 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4292 * linux-arm-low.c (struct update_registers_data): Remove.
4293 (update_registers_callback): Return void, take arguments
4294 directly, don't check thread's pid.
4295 (arm_insert_point, arm_remove_point): Use for_each_thread.
4297 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4299 * win32-low.c (continue_one_thread): Return void, take argument
4301 (child_continue): Use for_each_thread.
4303 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
4305 * win32-i386-low.c (update_debug_registers_callback): Rename
4307 (update_debug_registers): ... this, return void, remove pid_p arg.
4308 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
4310 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4312 * inferiors.h (struct process_info): Add constructor, initialize
4314 <syscalls_to_catch>: Change type to std::vector<int>.
4315 * inferiors.c (add_process): Allocate process_info with new.
4316 (remove_process): Free process_info with delete.
4317 * linux-low.c (handle_extended_wait): Adjust.
4318 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
4319 * server.c (handle_general_set): Adjust.
4321 2017-11-16 Pedro Alves <palves@redhat.com>
4323 * remote-utils.c (remote_close): Block SIGIO signals instead of
4324 uninstalling the SIGIO handler.
4326 2017-11-16 Alan Hayward <alan.hayward@arm.com>
4328 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
4330 2017-11-16 Yao Qi <yao.qi@linaro.org>
4332 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
4333 (tic6x_store_gregset): Likewise.
4334 (tic6x_usrregs_info): Move it up.
4336 2017-11-15 Alan Hayward <alan.hayward@arm.com>
4338 * Makefile.in: Update arch rules.
4339 * configure.srv: Explicitly mark arch/ files.
4341 2017-11-13 Andreas Schwab <schwab@suse.de>
4343 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
4345 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
4347 2017-11-06 Pedro Alves <palves@redhat.com>
4349 * config.in, configure: Regenerate.
4351 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4353 * target.c (struct thread_search): Remove.
4354 (thread_search_callback): Remove.
4355 (prepare_to_access_memory): Use for_each_thread instead of
4356 find_inferior. Inline code from thread_search_callback.
4358 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4360 * server.c (struct visit_actioned_threads_data): Remove.
4361 (visit_actioned_threads): Change prototype to take arguments
4363 (resume): Use find_thread instead of find_inferior.
4365 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
4367 * server.c (queue_stop_reply_callback): Change prototype, return
4369 (find_status_pending_thread_callback): Remove.
4370 (handle_status): Replace find_inferior with find_thread and
4373 2017-10-25 Alan Hayward <alan.hayward@arm.com>
4375 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
4377 (aarch64_store_gregset): Likewise.
4378 (aarch64_fill_fpregset): Likewise.
4379 (aarch64_store_fpregset): Likewise.
4381 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
4383 * gdbthread.h (find_thread, for_each_thread): New functions.
4384 * inferiors.c (thread_of_pid): Remove.
4385 (find_any_thread_of_pid): Use find_thread.
4386 * linux-low.c (num_lwps): Use for_each_thread.
4388 2017-10-17 Yao Qi <yao.qi@linaro.org>
4390 * Makefile.in: Remove one rule.
4391 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
4393 2017-10-17 Yao Qi <yao.qi@linaro.org>
4395 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
4396 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
4398 2017-10-17 Yao Qi <yao.qi@linaro.org>
4400 * configure.srv: Rename arm.o with arch/arm.o.
4402 2017-10-17 Yao Qi <yao.qi@linaro.org>
4404 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
4405 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
4406 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
4407 (arch-i386.o, arch-amd64.o): Remove rules.
4408 (arch/%.o): New rule.
4409 Update POSTCOMPILE and COMPILE.pre.
4410 * configure.ac: Invoke AC_CONFIG_COMMANDS.
4411 * configure: Re-generated.
4412 * configure.srv: Replace arch-i386.o with arch/i386.o.
4413 Replace arch-amd64.o with arch/amd64.o.
4415 2017-10-16 Yao Qi <yao.qi@linaro.org>
4417 * configure: Regenerated.
4419 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4421 * inferiors.h: (struct inferior_list): Remove.
4422 (struct inferior_list_entry); Remove.
4423 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
4424 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
4425 get_first_inferior): Remove.
4426 (for_each_inferior, for_each_inferior_with_data, find_inferior,
4427 find_inferior_id, find_inferior_in_random): Change signature.
4428 * inferiors.c (all_threads): Change type to
4429 std::list<thread_info *>.
4430 (get_thread): Remove macro.
4431 (find_inferior, find_inferior_id): Change signature, implement
4433 (find_inferior_in_random): Change signature, implement using
4434 find_thread_in_random.
4435 (for_each_inferior, for_each_inferior_with_data): Change
4436 signature, implement using for_each_thread.
4437 (add_inferior_to_list, remove_inferior): Remove.
4438 (add_thread, get_first_thread, thread_of_pid,
4439 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
4440 (get_first_inferior, one_inferior_p, clear_inferior_list):
4442 (clear_inferiors, get_thread_process): Update.
4443 * gdbthread.h: Include <list>.
4444 (struct thread_info) <entry>: Remove field.
4446 (all_threads): Change type to std::list<thread_info *>.
4447 (get_first_inferior): Add doc.
4448 (find_thread, for_each_thread, find_thread_in_random): New
4450 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
4451 * linux-arm-low.c (update_registers_callback): Update.
4452 * linux-low.c (second_thread_of_pid_p): Update.
4453 (kill_one_lwp_callback, linux_detach_lwp_callback,
4454 delete_lwp_callback, status_pending_p_callback, same_lwp,
4455 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
4456 iterate_over_lwps, not_stopped_callback,
4457 resume_stopped_resumed_lwps, count_events_callback,
4458 select_singlestep_lwp_callback, select_event_lwp_callback,
4459 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
4460 suspend_and_send_sigstop_callback, wait_for_sigstop,
4461 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
4462 lwp_running, linux_set_resume_request, resume_status_pending_p,
4463 need_step_over_p, start_step_over, linux_resume_one_thread,
4464 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
4465 reset_lwp_ptrace_options_callback): Update.
4466 * linux-mips-low.c (update_watch_registers_callback): Update.
4467 * regcache.c (regcache_invalidate_one, regcache_invalidate):
4469 (free_register_cache_thread_one): Remove.
4470 (regcache_release): Update.
4471 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
4472 handle_qxfer_threads_worker): Update.
4473 (handle_query): Update, use list iterator.
4474 (visit_actioned_threads, handle_pending_status,
4475 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
4476 clear_pending_status_callback, set_pending_status_callback,
4477 find_status_pending_thread_callback, handle_status,
4478 process_serial_event): Update.
4479 * target.c (thread_search_callback): Update.
4480 * thread-db.c (thread_db_get_tls_address): Update.
4481 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
4483 * win32-i386-low.c (update_debug_registers_callback): Update.
4484 * win32-low.c (delete_thread_info, child_delete_thread,
4485 continue_one_thread, suspend_one_thread,
4486 get_child_debug_event): Adjust.
4488 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4490 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
4491 * inferiors.h: Include <list>.
4492 (struct process_info) <entry>: Remove field.
4494 (pid_of): Change macro to function.
4495 (ptid_of, lwpid_of): Remove macro.
4496 (all_processes): Change type to std::list<process_info *>.
4497 (ALL_PROCESSES): Remove macro.
4498 (for_each_process, find_process): New function.
4499 * inferiors.c (all_processes): Change type to
4500 std::list<process_info *>.
4501 (find_thread_process): Adjust.
4502 (add_process): Likewise.
4503 (remove_process): Likewise.
4504 (find_process_pid): Likewise.
4505 (get_first_process): Likewise.
4506 (started_inferior_callback): Remove.
4507 (have_started_inferiors_p): Adjust.
4508 (attached_inferior_callback): Remove.
4509 (have_attached_inferiors_p): Adjust.
4510 * linux-low.c (check_zombie_leaders): Likewise.
4511 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
4512 (x86_linux_update_xmltarget): Adjust.
4513 * server.c (handle_query): Likewise.
4514 (gdb_reattached_process): Remove.
4515 (handle_status): Adjust.
4516 (kill_inferior_callback): Likewise.
4517 (detach_or_kill_inferior): Remove.
4518 (print_started_pid): Likewise.
4519 (print_attached_pid): Likewise.
4520 (detach_or_kill_for_exit): Update.
4521 (process_serial_event): Likewise.
4522 * linux-arm-low.c (arm_new_fork): Likewise.
4524 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
4526 * dll.h: Include <list>.
4527 (struct dll_info): Add constructor.
4528 <entry>: Remove field.
4529 (all_dlls): Change type to std::list<dll_info>.
4530 * dll.c: Include <algorithm>.
4531 (get_dll): Remove macro.
4532 (all_dlls): Change type to std::list<dll_info *>.
4533 (free_one_dll): Remove.
4534 (match_dll): Likewise.
4535 (loaded_dll): Adjust.
4536 (unloaded_dll): Adjust to all_dlls type change, use
4537 std::find_if. Inline code from match_dll.
4538 (clear_dlls): Adjust to all_dlls type change.
4539 * server.c (emit_dll_description): Remove.
4540 (handle_qxfer_libraries): Adjust to all_dlls type change,
4541 integrate emit_dll_description's functionality.
4543 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4545 * linux-low.h (struct linux_target_ops) <delete_process>: New
4547 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
4548 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
4549 (struct linux_target_ops): Add delete_process callback.
4550 * linux-arm-low.c (arm_delete_process): New.
4551 (struct linux_target_ops): Add delete_process callback.
4552 * linux-bfin-low.c (struct linux_target_ops): Likewise.
4553 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
4554 * linux-m32r-low.c (struct linux_target_ops): Likewise.
4555 * linux-mips-low.c (mips_linux_delete_process): New.
4556 (struct linux_target_ops): Add delete_process callback.
4557 * linux-ppc-low.c (struct linux_target_ops): Likewise.
4558 * linux-s390-low.c (struct linux_target_ops): Likewise.
4559 * linux-sh-low.c (struct linux_target_ops): Likewise.
4560 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
4561 * linux-tile-low.c (struct linux_target_ops): Likewise.
4562 * linux-x86-low.c (x86_linux_delete_process): New.
4563 (struct linux_target_ops): Add delete_process callback.
4564 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
4566 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
4568 * linux-aarch64-low.c (the_low_target): Add thread delete
4570 * linux-arm-low.c (arm_delete_thread): New function.
4571 (the_low_target): Add thread delete callback.
4572 * linux-bfin-low.c (the_low_target): Likewise.
4573 * linux-crisv32-low.c (the_low_target): Likewise.
4574 * linux-low.c (delete_lwp): Invoke delete_thread callback if
4576 * linux-low.h (struct linux_target_ops) <delete_thread>: New
4578 * linux-m32r-low.c (the_low_target): Add thread delete callback.
4579 * linux-mips-low.c (mips_linux_delete_thread): New function.
4580 (the_low_target): Add thread delete callback.
4581 * linux-ppc-low.c (the_low_target): Likewise.
4582 * linux-s390-low.c (the_low_target): Likewise.
4583 * linux-sh-low.c (the_low_target): Likewise.
4584 * linux-tic6x-low.c (the_low_target): Likewise.
4585 * linux-tile-low.c (the_low_target): Likewise.
4586 * linux-x86-low.c (the_low_target): Likewise.
4587 * linux-xtensa-low.c (the_low_target): Likewise.
4589 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
4591 * win32-low.c: Include "common-inferior.h".
4593 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4595 * inferiors.c (set_inferior_cwd): New function.
4596 * server.c (handle_general_set): Handle QSetWorkingDir packet.
4597 (handle_query): Inform that QSetWorkingDir is supported.
4598 * win32-low.c (create_process): Pass the inferior's cwd to
4601 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4603 * inferiors.c (current_inferior_cwd): New global variable.
4604 (get_inferior_cwd): New function.
4605 * inferiors.h (struct process_info) <cwd>: New field.
4607 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
4609 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
4610 (OBS): Add gdb_tilde_expand.o.
4612 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
4614 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
4615 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4617 2017-09-29 Pedro Alves <palves@redhat.com>
4619 * ax.c (gdb_parse_agent_expr): Constify.
4620 * ax.h (gdb_parse_agent_expr): Constify.
4621 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4623 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
4624 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
4625 * remote-utils.h (read_ptid): Constify.
4626 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
4627 (process_point_options, process_serial_event): Constify.
4628 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
4629 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
4630 (cmd_qtbuffer): Constify.
4632 2017-09-29 Pedro Alves <palves@redhat.com>
4634 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
4637 2017-09-29 Pedro Alves <palves@redhat.com>
4639 * linux-low.c (handle_extended_wait): Pass parent thread instead
4640 of process to thread_db_notice_clone.
4641 * linux-low.h (thread_db_notice_clone): Replace parent process
4642 parameter with parent thread parameter.
4643 * thread-db.c (find_one_thread): Add comment.
4644 (thread_db_notice_clone): Replace parent process parameter with
4645 parent thread parameter. Temporarily switch to the parent thread.
4647 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
4649 * gdbthread.h: Include "common-gdbthread.h".
4650 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
4651 "if" when validating the ptid.
4652 * remote-utils.c: Include "gdbthread.h".
4653 (prepare_resume_reply): Use "switch_to_thread".
4654 * target.c (done_accessing_memory): Likewise.
4656 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
4658 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
4659 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
4660 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
4661 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
4662 s390x-gs-linux64-ipa.o to ipa_obj.
4663 * linux-s390-low.c (HWCAP_S390_GS): New define.
4664 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
4666 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
4667 (s390_arch_setup): Check for guarded-storage support and choose
4669 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
4670 init_registers_s390x_gs_linux64.
4671 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
4673 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
4674 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
4676 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
4678 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
4680 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4682 * linux-low.h (struct lwp_info): Add new field, thread_handle.
4683 (thread_db_thread_handle): Declare.
4684 * linux-low.c (linux_target_ops): Initialize thread_handle.
4685 * server.c (handle_qxfer_threads_worker): Add support for
4687 * target.h (struct target_ops): Add new function pointer,
4689 (target_thread_handle): Define.
4690 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
4692 (thread_db_thread_handle): New function.
4694 2017-09-21 Kevin Buettner <kevinb@redhat.com>
4696 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
4697 * linux-low.h (thread_db_notice_clone): Declare.
4698 * thread-db.c (thread_db_notice_clone): New function.
4700 2017-09-21 Pedro Alves <palves@redhat.com>
4702 * server.c (gdb_read_memory, handle_status, process_serial_event)
4703 (handle_serial_event, handle_target_event): Adjust to
4704 set_desired_thread prototype change.
4705 * target.c (set_desired_thread): Remove 'use_general' parameter
4707 * target.h (set_desired_thread): Remove 'use_general' parameter.
4709 2017-09-20 Tom Tromey <tom@tromey.com>
4711 * target.c (target_terminal::terminal_state): Define.
4712 (target_terminal::init): Rename from target_terminal_init.
4713 (target_terminal::inferior): Rename from
4714 target_terminal_inferior.
4715 (target_terminal::ours): Rename from target_terminal_ours.
4716 (target_terminal::ours_for_output, target_terminal::info): New.
4718 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4720 * server.c (accumulate_file_name_length): Remove.
4721 (emit_dll_description): Adjust to std::string change.
4722 (handle_qxfer_libraries): Use std::string to hold document.
4724 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4726 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
4727 return type of xml_escape_text.
4728 * server.c (emit_dll_description): Likewise.
4730 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
4732 * server.c (captured_main): Accept argument for --selftest.
4733 Update run_tests call.
4734 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
4735 when registering selftests.
4737 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
4739 * regcache.c (get_thread_regcache): Update code to use "std::vector"
4740 instead of "VEC" for "target_desc.reg_defs".
4741 (regcache_cpy): Likewise.
4742 (registers_to_string): Likewise.
4743 (registers_from_string): Likewise.
4744 (find_regno): Likewise.
4745 (supply_regblock): Likewise.
4746 (regcache_raw_read_unsigned): Likewise.
4747 * tdesc.c (init_target_desc): Likewise.
4748 (tdesc_create_reg): Likewise.
4749 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
4750 (struct target_desc) <reg_defs>: Convert to "std::vector".
4751 (target_desc): Do not initialize "reg_defs".
4752 (~target_desc): Update code to use "std::vector" instead of "VEC"
4753 for "target_desc.reg_defs".
4754 (operator==): Likewise.
4756 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4758 * inferiors.h (thread_to_gdb_id): Remove.
4759 * inferiors.c (thread_to_gdb_id): Remove.
4760 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
4761 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
4762 lynx_store_registers, lynx_read_memory, lynx_write_memory):
4764 * nto-low.c (nto_fetch_registers, nto_store_registers,
4765 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
4767 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4769 * inferiors.h (gdb_id_to_thread_id): Remove.
4770 * inferiors.c (gdb_id_to_thread_id): Remove.
4771 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
4772 removal. Move pid declaration closer to where it's used.
4774 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4776 * server.c (handle_detach): New function.
4777 (process_serial_event): Move code out, call handle_detach.
4779 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4781 * server.c (require_running): Rename to ...
4782 (require_running_or_return): ... this ...
4783 (require_running_or_break): ... and this.
4784 (handle_query, process_serial_event): Adjust.
4786 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4788 * linux-low.c (linux_set_resume_request): Remove unused
4791 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
4793 * server.c (first_thread_of): Remove.
4794 (process_serial_event): Replace usage of first_thread_of with
4795 find_any_thread_of_pid.
4796 * tracepoint.c (same_process_p): Remove.
4797 (gdb_agent_about_to_close): Replace usage of same_process_p with
4798 find_any_thread_of_pid.
4799 * linux-x86-low.c (same_process_callback): Remove.
4800 (x86_arch_setup_process_callback): Replace usage of
4801 same_process_callback with find_any_thread_of_pid.
4802 * thread-db.c (any_thread_of): Remove.
4803 (switch_to_process): Replace usage of any_thread_of with
4804 find_any_thread_of_pid.
4805 * inferiors.c (thread_pid_matches_callback): Remove.
4806 (find_thread_process): Adjust to use find_any_thread_of_pid.
4808 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4810 * regcache.c (get_thread_regcache): Guard calls to "memset"
4813 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
4815 * linux-low.c (handle_extended_wait): Use
4816 "allocate_target_description" instead of "XNEW".
4817 * linux-x86-low.c (initialize_low_arch): Likewise.
4819 2017-09-05 Yao Qi <yao.qi@linaro.org>
4821 * configure.srv (srv_i386_regobj): Remove.
4822 (srv_amd64_regobj): Remove.
4823 (srv_regobj): Set it to "" for x86 non-linux targets.
4824 * linux-x86-tdesc.c (i386_linux_read_description):
4825 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
4826 (init_registers_i386): Remove the declaration.
4827 (tdesc_i386): Remove the declaration.
4828 (lynx_i386_arch_setup): Call i386_create_target_description.
4829 * nto-x86-low.c: Likewise.
4830 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
4831 [!__x86_64__]: include arch/i386.h.
4832 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
4834 2017-09-05 Yao Qi <yao.qi@linaro.org>
4836 * configure.srv (srv_amd64_linux_xmlfiles): Remove
4837 i386/amd64-XXX-linux from it.
4839 2017-09-05 Yao Qi <yao.qi@linaro.org>
4841 * configure.srv: Empty srv_amd64_linux_regobj if $development is
4843 (ipa_amd64_linux_regobj): Remove.
4844 (ipa_x32_linux_regobj): Remove.
4846 2017-09-05 Yao Qi <yao.qi@linaro.org>
4848 * Makefile.in (arch-amd64.o): New rule.
4849 * configure.srv: Append arch-amd64.o.
4850 * linux-amd64-ipa.c: Include common/x86-xstate.h.
4851 (get_ipa_tdesc): Call amd64_linux_read_description.
4852 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
4853 and init_registers_amd64_XXX.
4854 * linux-x86-low.c (x86_linux_read_description): Call
4855 amd64_linux_read_description.
4856 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
4857 (initialize_low_arch): Don't call init_registers_x32_XXX and
4858 init_registers_amd64_XXX.
4859 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
4860 and tdesc_amd64_XXX.
4861 [__x86_64__] (amd64_tdesc_test): New function.
4862 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
4863 and init_registers_amd64_XXX.
4864 * linux-x86-tdesc.c: Include arch/amd64.h.
4865 (xcr0_to_tdesc_idx): New function.
4866 (i386_linux_read_description): New function.
4867 (amd64_get_ipa_tdesc_idx): New function.
4868 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
4869 (amd64_get_ipa_tdesc): Declare.
4871 2017-09-05 Yao Qi <yao.qi@linaro.org>
4873 * configure.srv (srv_i386_linux_xmlfiles): Remove
4874 i386/i386-XXX-linux.xml from it.
4876 2017-09-05 Yao Qi <yao.qi@linaro.org>
4878 * configure.srv: Set srv_i386_linux_regobj empty if $development
4880 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
4881 initialize_low_tdesc.
4882 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
4883 with #if initialize_low_tdesc.
4884 * linux-x86-tdesc-selftest.c: New file.
4885 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
4887 2017-09-05 Yao Qi <yao.qi@linaro.org>
4889 * Makefile.in (arch-i386.o): New rule.
4890 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
4891 (x86_64-*-linux*): Likewise.
4892 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
4893 include arch/i386.h.
4894 (i386_linux_read_description): Remove code and call
4895 i386_create_target_description.
4896 * tdesc.c (allocate_target_description): New function.
4897 * tdesc.h (set_tdesc_architecture): Remove declaration.
4898 (set_tdesc_osabi): Likewise.
4900 2017-09-05 Yao Qi <yao.qi@linaro.org>
4902 * linux-x86-tdesc.c: Don't include <inttypes.h>.
4903 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
4904 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
4906 * server.c (get_features_xml): Call tdesc_get_features_xml.
4907 * tdesc.c (set_tdesc_architecture): New function.
4908 (set_tdesc_osabi): New function.
4909 (tdesc_get_features_xml): New function.
4910 (tdesc_create_feature): Add an argument.
4911 * tdesc.h (struct target_desc) <features>: New field.
4912 <arch, osabi>: New field.
4913 (~target_desc): xfree features, arch, and osabi.
4914 (target_desc::oerator==): Don't compare .xmltarget.
4915 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
4916 (set_tdesc_osabi): Likewise.
4917 (tdesc_get_features_xml): Likewise.
4919 2017-09-05 Yao Qi <yao.qi@linaro.org>
4921 * linux-x86-tdesc.c: Include selftest.h.
4922 (i386_tdesc_test): New function.
4923 (initialize_low_tdesc): Call selftests::register_test.
4924 * tdesc.h: Include regdef.h.
4925 (target_desc): Override operator == and !=.
4927 2017-09-05 Yao Qi <yao.qi@linaro.org>
4929 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
4930 (ipa_obj): Likewise.
4931 * linux-i386-ipa.c: Include common/x86-xstate.h
4932 (get_ipa_tdesc): Call i386_linux_read_description.
4933 (initialize_low_tracepoint): Don't call init_registers_XXX
4934 functions, call initialize_low_tdesc instead.
4935 * linux-x86-low.c (x86_linux_read_description): Call
4936 i386_linux_read_description.
4937 (initialize_low_arch): Don't call init_registers_i386_XXX
4938 functions, call initialize_low_tdesc.
4939 * linux-x86-tdesc.c: New file.
4940 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
4941 (i386_get_ipa_tdesc_idx): Declare.
4942 (i386_get_ipa_tdesc): Declare.
4943 (initialize_low_tdesc): Declare.
4945 2017-09-05 Yao Qi <yao.qi@linaro.org>
4947 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
4950 2017-09-05 Yao Qi <yao.qi@linaro.org>
4952 * Makefile.in (IPA_OBJS): Add vec-ipa.o
4953 * regcache.c (get_thread_regcache): Use VEC_length.
4954 (init_register_cache): Likewise.
4955 (regcache_cpy): Likewise.
4956 (registers_to_string): Iterate reg_defs via VEC_iterate.
4957 (find_regno): Likewise.
4958 (find_register_by_number): Use VEC_index.
4959 (register_size): Call find_register_by_number.
4960 (register_data): Call find_register_by_number.
4961 (supply_regblock): Use VEC_length.
4962 (regcache_raw_read_unsigned): Likewise.
4963 * tdesc.c (init_target_desc): Iterate reg_defs via
4965 (default_description): Update initializer.
4966 (copy_target_description): Don't update field num_registers.
4967 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
4968 <num_registers>: Remove.
4970 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4972 * Makefile.in (.SECONDARY): Define target.
4974 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4976 * linux-low.c (linux_wait_1): Adjust.
4977 * server.c (queue_stop_reply_callback): Adjust.
4979 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4981 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
4982 QEnvironmentUnset and QEnvironmentReset packets.
4983 (handle_query): Inform remote that QEnvironmentHexEncoded,
4984 QEnvironmentUnset and QEnvironmentReset are supported.
4986 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
4988 * inferiors.h (inferior_target_data): Rename to ...
4989 (thread_target_data): ... this.
4990 (inferior_regcache_data): Rename to ...
4991 (thread_regcache_data): ... this.
4992 (set_inferior_regcache_data): Rename to ...
4993 (set_thread_regcache_data): ... this.
4994 * inferiors.c (inferior_target_data): Rename to ...
4995 (thread_target_data): ... this.
4996 (inferior_regcache_data): Rename to ...
4997 (thread_regcache_data): ... this.
4998 (set_inferior_regcache_data): Rename to ...
4999 (set_thread_regcache_data): ... this.
5000 (free_one_thread): Update.
5001 * linux-low.h (get_thread_lwp): Update.
5002 * regcache.c (get_thread_regcache): Update.
5003 (regcache_invalidate_thread): Update.
5004 (free_register_cache_thread): Update.
5005 * win32-i386-low.c (update_debug_registers_callback): Update.
5006 (win32_get_current_dr): Update.
5007 * win32-low.c (thread_rec): Update.
5008 (delete_thread_info): Update.
5009 (continue_one_thread): Update.
5010 (suspend_one_thread): Update.
5012 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
5014 * inferiors.c (set_inferior_target_data): Remove.
5015 * inferiors.h (set_inferior_target_data): Remove.
5017 2017-08-18 Yao Qi <yao.qi@linaro.org>
5019 * Makefile.in (OBS): Add selftest.o.
5020 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
5021 * configure, config.in: Re-generated.
5022 * server.c: Include common/sefltest.h.
5023 (captured_main): Handle option --selftest.
5025 2017-08-09 Yao Qi <yao.qi@linaro.org>
5027 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
5028 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
5029 i386-avx-mpx.o and i386-mmx.o.
5030 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
5031 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
5032 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
5033 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
5034 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
5035 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
5036 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
5037 i386/amd64-avx-mpx.xml.
5039 2017-08-09 Yao Qi <yao.qi@linaro.org>
5041 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
5042 and x32-avx-avx512.o.
5043 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
5044 i386/x32-avx-avx512.xml.
5046 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
5048 * tracepoint.h (enum class fast_tpoint_collect_result): New
5050 (fast_tracepoint_collecting): Change return type to
5051 fast_tpoint_collect_result.
5052 * tracepoint.c (fast_tracepoint_collecting): Likewise.
5053 * linux-low.h: Include tracepoint.h.
5054 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
5055 fast_tpoint_collect_result.
5056 * linux-low.c (handle_tracepoints): Adjust.
5057 (linux_fast_tracepoint_collecting): Change return type to
5058 fast_tpoint_collect_result.
5059 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
5060 linux_wait_1, stuck_in_jump_pad_callback,
5061 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
5062 proceed_one_lwp): Adjust to type change.
5064 2017-07-10 Yao Qi <yao.qi@linaro.org>
5066 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
5068 2017-06-29 Yao Qi <yao.qi@linaro.org>
5070 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
5072 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
5074 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
5076 * Makefile.in (IPA_OBJS): Sort and format one item per line.
5078 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5080 * linux-low.c (linux_create_inferior): Adjust code to access the
5081 environment information via 'gdb_environ' class.
5082 * lynx-low.c (lynx_create_inferior): Likewise.
5083 * server.c (our_environ): Make it an instance of 'gdb_environ'.
5084 (get_environ): Return a pointer to 'our_environ'.
5085 (captured_main): Initialize 'our_environ'.
5086 * server.h (get_environ): Adjust prototype.
5087 * spu-low.c (spu_create_inferior): Adjust code to access the
5088 environment information via 'gdb_environ' class.
5090 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5092 * linux-low.c (linux_read_memory, linux_write_memory): Remove
5093 usage of "register" keyword.
5095 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5097 * configure: Re-generate.
5099 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5101 * configure: Re-generate.
5103 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5105 * Makefile.in (COMPILE.pre): Add "-x c++".
5107 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
5109 * fork-child.c: Conditionally include <signal.h>.
5111 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5113 * server.c (handle_general_set): Handle new packet
5114 "QStartupWithShell".
5115 (handle_query): Add "QStartupWithShell" to the list of supported
5117 (gdbserver_usage): Add help text explaining the
5118 new "--startup-with-shell" and "--no-startup-with-shell" CLI
5120 (captured_main): Recognize and act upon the presence of the new
5123 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5124 Pedro Alves <palves@redhat.com>
5126 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
5127 * configure: Regenerate.
5128 * configure.srv (srv_linux_obj): Add "fork-child.o" and
5130 (i[34567]86-*-lynxos*): Likewise.
5131 (spu*-*-*): Likewise.
5132 * fork-child.c: New file.
5133 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
5135 (linux_ptrace_fun): New function.
5136 (linux_create_inferior): Adjust function prototype to reflect
5137 change on "target.h". Adjust function code to use
5139 (linux_request_interrupt): Delete "signal_pid".
5140 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
5141 (lynx_ptrace_fun): New function.
5142 (lynx_create_inferior): Adjust function prototype to reflect
5143 change on "target.h". Adjust function code to use
5145 * nto-low.c (nto_create_inferior): Adjust function prototype and
5146 code to reflect change on "target.h". Update comments.
5147 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
5148 "common-terminal.h" and "environ.h".
5149 (terminal_fd): Moved to fork-child.c.
5150 (old_foreground_pgrp): Likewise.
5151 (restore_old_foreground_pgrp): Likewise.
5152 (last_status): Make it global.
5153 (last_ptid): Likewise.
5154 (our_environ): New variable.
5155 (startup_with_shell): Likewise.
5156 (program_name): Likewise.
5157 (program_argv): Rename to...
5158 (program_args): ...this.
5159 (wrapper_argv): New variable.
5160 (start_inferior): Delete function.
5161 (get_exec_wrapper): New function.
5162 (get_exec_file): Likewise.
5163 (get_environ): Likewise.
5164 (prefork_hook): Likewise.
5165 (post_fork_inferior): Likewise.
5166 (postfork_hook): Likewise.
5167 (postfork_child_hook): Likewise.
5168 (handle_v_run): Update code to deal with arguments coming from the
5169 remote host. Update calls from "start_inferior" to
5171 (captured_main): Likewise. Initialize environment variable. Call
5173 * server.h (post_fork_inferior): New prototype.
5174 (get_environ): Likewise.
5175 (last_status): Declare.
5176 (last_ptid): Likewise.
5177 (signal_pid): Likewise.
5178 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
5179 (spu_ptrace_fun): New function.
5180 (spu_create_inferior): Adjust function prototype to reflect change
5181 on "target.h". Adjust function code to use "fork_inferior".
5182 * target.c (target_terminal_init): New function.
5183 (target_terminal_inferior): Likewise.
5184 (target_terminal_ours): Likewise.
5185 * target.h: Include <vector>.
5186 (struct target_ops) <create_inferior>: Update prototype.
5187 (create_inferior): Update macro.
5188 * utils.c (gdb_flush_out_err): New function.
5189 * win32-low.c (win32_create_inferior): Adjust function prototype
5190 and code to reflect change on "target.h".
5192 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5194 * inferiors.c (switch_to_thread): New function.
5196 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5198 * Makefile.in (SFILE): Add "common/job-control.c".
5199 (OBS): Add "job-control.o".
5201 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5203 * Makefile: Remove "@host_makefile_frag@".
5205 2017-05-05 Pedro Alves <palves@redhat.com>
5207 * configure: Regenerate.
5209 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5211 * configure: Regenerate.
5213 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
5215 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
5216 software_single_step change of return type to
5217 std::vector<CORE_ADDR>.
5218 * linux-low.c (install_software_single_step_breakpoints):
5220 * linux-low.h (install_software_single_step_breakpoints):
5223 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5225 * remote-utils.c: Include "gdb_termios.h" instead of
5227 * terminal.h: Delete file.
5229 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
5231 * server.c: Include <vector>.
5232 <program_argv, wrapper_argv>: Convert to std::vector.
5233 (start_inferior): Rewrite function to use C++.
5234 (handle_v_run): Likewise. Update code that calculates the argv
5235 based on the vRun packet; use C++.
5236 (captured_main): Likewise.
5238 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
5240 * server.c (handle_v_cont): Initialize thread_resume::thread
5243 2017-04-05 Pedro Alves <palves@redhat.com>
5245 * configure: Regenerate.
5247 2017-04-05 Pedro Alves <palves@redhat.com>
5249 * gdbreplay.c (sync_error): Constify.
5250 * linux-x86-low.c (push_opcode): Constify.
5252 2017-04-05 Pedro Alves <palves@redhat.com>
5254 * win32-low.c (get_child_debug_event)
5255 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
5256 Report TARGET_WAITKIND_SPURIOUS instead.
5258 2017-04-05 Pedro Alves <palves@redhat.com>
5260 * remote-utils.c (remote_prepare, remote_open): Constify.
5261 * remote-utils.h (remote_prepare, remote_open): Constify.
5262 * server.c (captured_main): Constify 'port' handling.
5264 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
5266 * Makefile.in (clean): Clear .deps.
5268 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
5270 * .gitignore: Remove generated files, replace with wildcard.
5271 * (clean): Replace removal of generated files with wildcard.
5272 (version.c): Replace with...
5273 (version-generated.c): ...this.
5274 (xml-builtin.c): Replace with...
5275 (xml-builtin-generated.c): ...this.
5276 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
5277 (%.c: *regformats*): Replace with...
5278 (%-generated.c: *regformats*): ...this.
5280 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5282 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
5283 (xtensa_fill_gregset): Call collect_register_by_name for
5285 (xtensa_store_gregset): Call supply_register_by_name for
5288 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
5290 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
5291 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
5292 (xtensa_store_gregset): Call supply_register for all registers in
5293 a0_regnum..a0_regnum + C0_NREGS range.
5295 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5297 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
5298 (ax-ipa.o: ax.c): Remove.
5299 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
5300 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
5301 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
5302 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
5303 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
5305 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5307 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
5308 (print-utils-ipa.o: ../common/print-utils.c): Remove.
5309 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
5310 (errors-ipa.o: ../common/errors.c): Remove.
5311 (format-ipa.o: ../common/format.c): Remove.
5312 (common-utils-ipa.o: ../common/common-utils.c): Remove.
5314 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5316 * Makefile.in (%-ipa.o: %.c): New rule.
5317 (tracepoint-ipa.o: tracepoint.c): Remove.
5318 (utils-ipa.o: utils.c): Remove.
5319 (remote-utils-ipa.o: remote-utils.c): Remove.
5320 (regcache-ipa.o: regcache.c): Remove.
5321 (i386-linux-ipa.o: i386-linux.c): Remove.
5322 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
5323 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
5324 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
5325 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
5326 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
5327 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
5328 (amd64-linux-ipa.o: amd64-linux.c): Remove.
5329 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
5330 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
5331 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
5332 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
5333 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
5334 (aarch64-ipa.o: aarch64.c): Remove.
5335 (s390-linux32-ipa.o: s390-linux32.c): Remove.
5336 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
5337 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
5338 (s390-linux64-ipa.o: s390-linux64.c): Remove.
5339 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
5340 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
5341 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
5342 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
5343 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
5344 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
5345 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
5346 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
5347 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
5348 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
5349 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
5350 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
5351 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
5352 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
5353 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
5354 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
5355 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
5356 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
5357 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
5358 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
5359 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
5360 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
5361 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
5362 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
5363 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
5364 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
5365 (tdesc-ipa.o: tdesc.c): Remove.
5366 (x32-linux-ipa.o: x32-linux.c): Remove.
5367 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
5368 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
5370 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5372 * Makefile.in (%.o: ../arch/%.c): New rule.
5373 (arm.o: ../arch/arm.c): Remove.
5374 (arm-linux.o: ../arch/arm-linux.c): Remove.
5375 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
5376 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
5378 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5380 * Makefile.in (%.o: ../nat/%.c): New rule.
5381 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
5382 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
5383 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
5384 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
5385 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
5386 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
5387 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
5388 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
5389 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
5390 (linux-personality.o: ../nat/linux-personality.c): Remove.
5391 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
5392 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
5393 (x86-linux.o: ../nat/x86-linux.c): Remove.
5394 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
5395 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
5397 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5399 * Makefile.in (%.o: ../common/%.c): New rule.
5400 (signals.o: ../common/signals.c): Remove.
5401 (print-utils.o: ../common/print-utils.c): Remove.
5402 (rsp-low.o: ../common/rsp-low.c): Remove.
5403 (common-utils.o: ../common/common-utils.c): Remove.
5404 (posix-strerror.o: ../common/posix-strerror.c): Remove.
5405 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
5406 (vec.o: ../common/vec.c): Remove.
5407 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
5408 (xml-utils.o: ../common/xml-utils.c): Remove.
5409 (ptid.o: ../common/ptid.c): Remove.
5410 (buffer.o: ../common/buffer.c): Remove.
5411 (format.o: ../common/format.c): Remove.
5412 (filestuff.o: ../common/filestuff.c): Remove.
5413 (agent.o: ../common/agent.c): Remove.
5414 (errors.o: ../common/errors.c): Remove.
5415 (environ.o: ../common/environ.c): Remove.
5416 (common-debug.o: ../common/common-debug.c): Remove.
5417 (cleanups.o: ../common/cleanups.c): Remove.
5418 (common-exceptions.o: ../common/common-exceptions.c): Remove.
5419 (fileio.o: ../common/fileio.c): Remove.
5420 (common-regcache.o: ../common/common-regcache.c): Remove.
5421 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
5422 (new-op.o: ../common/new-op.c): Remove.
5423 (btrace-common.o: ../common/btrace-common.c): Remove.
5425 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5427 * Makefile.in (%.o: ../target/%.c): New rule.
5428 (waitstatus.o: ../target/waitstatus.c): Remove.
5430 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
5433 (%.c: ../regformats/%.dat,
5434 (%.c: ../regformats/arm/%.dat,
5435 (%.c: ../regformats/i386/%.dat,
5436 (%.c: ../regformats/rs6000/%.dat): New rules.
5437 (aarch64.c): Remove.
5438 (reg-arm.c): Remove.
5439 (arm-with-iwmmxt.c): Remove.
5440 (arm-with-vfpv2.c): Remove.
5441 (arm-with-vfpv3.c): Remove.
5442 (arm-with-neon.c): Remove.
5443 (reg-bfin.c): Remove.
5444 (reg-cris.c): Remove.
5445 (reg-crisv32.c): Remove.
5447 (i386-linux.c): Remove.
5448 (i386-avx.c): Remove.
5449 (i386-avx-linux.c): Remove.
5450 (i386-avx-avx512.c): Remove.
5451 (i386-avx-avx512-linux.c): Remove.
5452 (i386-mpx.c): Remove.
5453 (i386-mpx-linux.c): Remove.
5454 (i386-avx-mpx-avx512-pku.c): Remove.
5455 (i386-avx-mpx-avx512-pku-linux.c): Remove.
5456 (i386-avx-mpx.c): Remove.
5457 (i386-avx-mpx-linux.c): Remove.
5458 (i386-mmx.c): Remove.
5459 (i386-mmx-linux.c): Remove.
5460 (reg-ia64.c): Remove.
5461 (reg-m32r.c): Remove.
5462 (reg-m68k.c): Remove.
5464 (mips-linux.c): Remove.
5465 (mips-dsp-linux.c): Remove.
5466 (mips64-linux.c): Remove.
5467 (mips64-dsp-linux.c): Remove.
5468 (nios2-linux.c): Remove.
5469 (powerpc-32.c): Remove.
5470 (powerpc-32l.c): Remove.
5471 (powerpc-altivec32l.c): Remove.
5472 (powerpc-cell32l.c): Remove.
5473 (powerpc-vsx32l.c): Remove.
5474 (powerpc-isa205-32l.c): Remove.
5475 (powerpc-isa205-altivec32l.c): Remove.
5476 (powerpc-isa205-vsx32l.c): Remove.
5477 (powerpc-e500l.c): Remove.
5478 (powerpc-64l.c): Remove.
5479 (powerpc-altivec64l.c): Remove.
5480 (powerpc-cell64l.c): Remove.
5481 (powerpc-vsx64l.c): Remove.
5482 (powerpc-isa205-64l.c): Remove.
5483 (powerpc-isa205-altivec64l.c): Remove.
5484 (powerpc-isa205-vsx64l.c): Remove.
5485 (s390-linux32.c): Remove.
5486 (s390-linux32v1.c): Remove.
5487 (s390-linux32v2.c): Remove.
5488 (s390-linux64.c): Remove.
5489 (s390-linux64v1.c): Remove.
5490 (s390-linux64v2.c): Remove.
5491 (s390-te-linux64.c): Remove.
5492 (s390-vx-linux64.c): Remove.
5493 (s390-tevx-linux64.c): Remove.
5494 (s390x-linux64.c): Remove.
5495 (s390x-linux64v1.c): Remove.
5496 (s390x-linux64v2.c): Remove.
5497 (s390x-te-linux64.c): Remove.
5498 (s390x-vx-linux64.c): Remove.
5499 (s390x-tevx-linux64.c): Remove.
5500 (tic6x-c64xp-linux.c): Remove.
5501 (tic6x-c64x-linux.c): Remove.
5502 (tic6x-c62x-linux.c): Remove.
5504 (reg-sparc64.c): Remove.
5505 (reg-spu.c): Remove.
5507 (amd64-linux.c): Remove.
5508 (amd64-avx.c): Remove.
5509 (amd64-avx-linux.c): Remove.
5510 (amd64-avx-avx512.c): Remove.
5511 (amd64-avx-avx512-linux.c): Remove.
5512 (amd64-mpx.c): Remove.
5513 (amd64-mpx-linux.c): Remove.
5514 (amd64-avx-mpx-avx512-pku.c): Remove.
5515 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
5516 (amd64-avx-mpx.c): Remove.
5517 (amd64-avx-mpx-linux.c): Remove.
5519 (x32-linux.c): Remove.
5520 (x32-avx.c): Remove.
5521 (x32-avx-linux.c): Remove.
5522 (x32-avx-avx512.c): Remove.
5523 (x32-avx-avx512-linux.c): Remove.
5524 (reg-xtensa.c): Remove.
5525 (reg-tilegx.c): Remove.
5526 (reg-tilegx32.c): Remove.
5528 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
5530 * Makefile.in (SFILES): Add "common/environ.c".
5531 (OBJS): Add "common/environ.h".
5533 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
5535 * configure.ac: Check if the fs_base and gs_base members of
5536 `struct user_regs_struct' exist.
5537 * config.in: Regenerated.
5538 * configure: Likewise.
5540 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
5542 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
5544 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
5545 (get_next_pcs_syscall_next_pc): Likewise.
5547 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
5549 * win32-i386-low.c: Fix incorrect reference to a couple source files.
5550 * nto-x86-low.c: Likewise.
5552 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
5554 * Makefile.in: Include disable-implicit-rules.mk.
5556 2016-11-23 Pedro Alves <palves@redhat.com>
5558 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
5559 (debug_vprintf): Use std::chrono::steady_clock instead of
5560 gettimeofday. Use '.' instead of ':'.
5561 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
5562 (get_timestamp): Use std::chrono::steady_clock instead of
5565 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5567 * Makefile.in: Fix whitespace formatting.
5569 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
5571 * Makefile.in (SFILES, OBS): Flatten list and order
5574 2016-11-23 Pedro Alves <palves@redhat.com>
5576 * event-loop.c (handle_file_event): Use warning.
5577 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
5578 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
5581 2016-11-23 Pedro Alves <palves@redhat.com>
5583 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
5585 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
5586 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
5587 debug_printf and debug_flush for debug output.
5588 * server.c (handle_general_set): Likewise.
5589 * thread-db.c (try_thread_db_load): Use debug_printf for debug
5592 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5594 * Makefile.in (.c.o): Replace rule with ...
5595 (%.o: %.c): ... this one.
5597 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
5599 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
5600 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
5602 * configure.ac: Remove checks for the make program.
5603 * configure: Re-generate.
5605 2016-10-28 Pedro Alves <palves@redhat.com>
5607 * Makefile.in (CXX_DIALECT): Get from configure.
5608 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
5609 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
5610 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
5611 * config.in: Regenerate.
5612 * configure: Regenerate.
5614 2016-10-27 Yao Qi <yao.qi@linaro.org>
5616 * linux-low.c (linux_supports_range_stepping): Return true if
5617 can_software_single_step return true.
5619 2016-10-27 Yao Qi <yao.qi@linaro.org>
5621 * inferiors.c (find_inferior_in_random): New function.
5622 * inferiors.h (find_inferior_in_random): Declare.
5623 * linux-low.c (linux_wait_for_event_filtered): Call
5624 find_inferior_in_random instead of find_inferior.
5626 2016-10-27 Yao Qi <yao.qi@linaro.org>
5628 * linux-low.c (linux_wait_1): If single-step breakpoints are
5629 inserted, remove them.
5631 2016-10-26 Pedro Alves <palves@redhat.com>
5633 * linux-low.c (handle_extended_wait): Link parent/child fork
5635 (linux_wait_1): Unlink them.
5636 (linux_set_resume_request): Ignore resume requests for
5637 already-resumed and unhandled fork child threads.
5638 * linux-low.h (struct lwp_info) <fork_relative>: New field.
5639 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
5641 (handle_v_requests) <vCont>: Don't call require_running.
5642 * server.h (in_queued_stop_replies): New declaration.
5644 2016-10-24 Yao Qi <yao.qi@linaro.org>
5647 * linux-aarch64-low.c (append_insns): Cast the return value to
5650 2016-10-10 Yao Qi <yao.qi@linaro.org>
5652 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
5654 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
5656 * target.c (target_supports_multi_process): New function, moved
5658 * target.h (target_supports_multi_process): ... here. Remove
5661 2016-10-05 Tom Tromey <tom@tromey.com>
5664 * tracepoint.c (handle_tracepoint_bkpts): Check
5665 ipa_error_tracepoint, not ipa_stopping_tracepoint.
5667 2016-10-05 Yao Qi <yao.qi@linaro.org>
5669 * configure.srv: Update the path of arm-*.xml files.
5671 2016-10-05 Terry Guo <terry.guo@arm.com>
5672 Yao Qi <yao.qi@linaro.org>
5674 * Makefile.in: Adjust the path of rules.
5675 * configure.srv: Update the path of xml files.
5676 * regformats/arm-with-iwmmxt.dat: Regenerated.
5677 * regformats/arm-with-neon.dat: Likewise.
5678 * regformats/arm-with-vfpv2.dat: Likewise.
5679 * regformats/arm-with-vfpv3.dat Likewise.
5681 2016-09-30 Yao Qi <yao.qi@linaro.org>
5684 * target.c (target_stop_and_wait): Don't call
5685 target_continue_no_signal, use resume_stop instead.
5687 2016-09-26 Yao Qi <yao.qi@linaro.org>
5689 * linux-low.c (linux_wait_1): Call debug_exit.
5691 2016-09-23 Pedro Alves <palves@redhat.com>
5693 * Makefile.in (SFILES): Add common/new-op.c.
5694 (OBS): Add common/new-op.o.
5695 (new-op.o): New rule.
5697 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
5699 * .gitinore: Ignore more files.
5701 2016-09-21 Yao Qi <yao.qi@linaro.org>
5703 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
5706 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
5708 * server.c (start_inferior): Call target_mourn_inferior instead of
5709 mourn_inferior; pass ptid_t argument to it.
5711 (handle_target_event): Likewise.
5712 * target.c (target_mourn_inferior): New function.
5713 * target.h (mourn_inferior): Delete macro.
5715 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
5717 * linux-low.c (lwp_is_stepping): New function.
5719 2016-09-06 Carl Love <cel@us.ibm.com>
5721 * server.c (start_inferior): Fixed comment, requested comment change
5722 didn't get updated correctly. Removed reference to ptrace () call as
5723 it is only true on Linux systems.
5725 2016-09-06 Carl Love <cel@us.ibm.com>
5727 * server.c (start_inferior): Do not call
5728 function target_post_create_inferior () if the
5729 inferior process has already exited.
5731 2016-09-05 Pedro Alves <palves@redhat.com>
5733 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
5734 (COMPILE.pre, CC_LD): Use CXX directly.
5735 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
5736 * acinclude.m4: Don't include build-with-cxx.m4.
5737 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
5738 * configure: Regenerate.
5740 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
5743 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
5744 call writing data to own_buf.
5746 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5748 * target.c (mywait): Call target_wait instead of
5750 (target_wait): New function.
5752 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
5754 * server.c (start_inferior): New variable 'ptid'. Replace calls
5755 to the_target->resume by target_continue{,_no_signal}, depending
5757 * target.c (target_stop_and_wait): Call target_continue_no_signal
5758 instead of the_target->resume.
5759 (target_continue): New function.
5761 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
5763 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
5765 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5768 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
5770 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
5771 * linux-arm-low.c (ps_get_thread_area): Likewise.
5772 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
5773 * linux-m68k-low.c (ps_get_thread_area): Likewise.
5774 * linux-mips-low.c (ps_get_thread_area): Likewise.
5775 * linux-nios2-low.c (ps_get_thread_area): Likewise.
5776 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
5777 * linux-x86-low.c (ps_get_thread_area): Likewise.
5778 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
5780 2016-08-19 Pedro Alves <palves@redhat.com>
5782 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
5784 2016-08-19 Pedro Alves <palves@redhat.com>
5786 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
5787 comment. Use memcpy instead of casting through unsigned long.
5789 2016-08-19 Pedro Alves <palves@redhat.com>
5791 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
5792 allocating around 0x80000000.
5794 2016-08-19 Pedro Alves <palves@redhat.com>
5797 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
5798 (x32-avx512-linux-ipa.o): New rules.
5799 * configure.ac (x86_64-*-linux*): New x32 check.
5800 * configure.srv (ipa_x32_linux_regobj): New.
5801 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
5802 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
5804 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
5806 * configure: Regenerate.
5808 2016-08-09 Pedro Alves <palves@redhat.com>
5811 * Makefile.in (OBS): Add signals-state-save-restore.o.
5812 (signals-state-save-restore.o): New rule.
5813 * config.in: Regenerate.
5814 * configure: Regenerate.
5815 * linux-low.c: Include "signals-state-save-restore.h".
5816 (linux_create_inferior): Call
5817 restore_original_signals_state.
5818 * server.c: Include "dispositions-save-restore.h".
5819 (captured_main): Call save_original_signals_state.
5821 2016-08-05 Pedro Alves <palves@redhat.com>
5823 * configure: Regenerate.
5825 2016-08-04 Yao Qi <yao.qi@linaro.org>
5827 * linux-low.c (regsets_fetch_inferior_registers): Check
5828 errno is ESRCH or not.
5830 2016-08-02 Yao Qi <yao.qi@linaro.org>
5832 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
5833 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
5834 (thread_db_load_search): Update.
5835 (try_thread_db_load_1): Don't look for td_ta_event_addr,
5836 td_ta_set_event and td_ta_event_getmsg.
5838 2016-07-26 Pedro Alves <palves@redhat.com>
5841 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
5842 of unsigned long for 64-bit registers and use uint32_t instead of
5843 unsigned int for 32-bit registers.
5845 2016-07-26 Pedro Alves <palves@redhat.com>
5847 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
5850 2016-07-21 Tom Tromey <tom@tromey.com>
5852 * configure: Rebuild.
5854 2016-07-21 Yao Qi <yao.qi@linaro.org>
5856 * mem-break.c (find_gdb_breakpoint): Cast bp to
5857 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
5859 2016-07-21 Yao Qi <yao.qi@linaro.org>
5861 * server.c (handle_v_requests): Support s and S actions
5862 if target_supports_software_single_step return true.
5864 2016-07-21 Yao Qi <yao.qi@linaro.org>
5866 * linux-low.c (resume_stopped_resumed_lwps): If resume request
5867 is resume_step, call maybe_hw_step.
5868 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
5870 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
5872 (proceed_one_lwp): If resume request is resume_step, install
5873 reinsert breakpoints and call maybe_hw_step.
5875 2016-07-21 Yao Qi <yao.qi@linaro.org>
5877 * linux-low.c (proceed_one_lwp): Declare.
5878 (linux_resume_one_thread): Remove local variable 'step'.
5879 Lift code enqueue signal. Call proceed_one_lwp instead of
5880 linux_resume_one_lwp.
5882 2016-07-21 Yao Qi <yao.qi@linaro.org>
5884 * linux-low.c (linux_resume_one_thread): Call
5885 enqueue_pending_signal.
5887 2016-07-21 Yao Qi <yao.qi@linaro.org>
5889 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
5890 * inferiors.c (do_restore_current_thread_cleanup): New function.
5891 (make_cleanup_restore_current_thread): Likewise.
5892 * linux-low.c (install_software_single_step_breakpoints): Call
5893 make_cleanup_restore_current_thread. Switch current_thread to
5896 2016-07-21 Yao Qi <yao.qi@linaro.org>
5898 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
5899 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
5900 (clone_one_breakpoint): Likewise.
5901 (delete_reinsert_breakpoints): Change parameter to thread.
5903 (has_reinsert_breakpoints): Likewise.
5904 (uninsert_reinsert_breakpoints): Likewise.
5905 (reinsert_reinsert_breakpoints): Likewise.
5906 * mem-break.h (set_reinsert_breakpoint): Update declaration.
5907 (delete_reinsert_breakpoints): Likewise.
5908 (reinsert_reinsert_breakpoints): Likewise.
5909 (uninsert_reinsert_breakpoints): Likewise.
5910 (has_reinsert_breakpoints): Likewise.
5912 2016-07-21 Yao Qi <yao.qi@linaro.org>
5914 * inferiors.c (get_thread_process): Make parameter const.
5915 * inferiors.h (get_thread_process): Update declaration.
5916 * mem-break.c (clone_all_breakpoints): Remove all parameters.
5917 Add new parameters child_thread and parent_thread. Callers
5919 * mem-break.h (clone_all_breakpoints): Update declaration.
5921 2016-07-21 Yao Qi <yao.qi@linaro.org>
5923 * mem-break.c (struct breakpoint) <cond_list>: Remove.
5924 <command_list, handler>: Remove.
5925 (struct gdb_breakpoint): New.
5926 (struct other_breakpoint): New.
5927 (struct reinsert_breakpoint): New.
5928 (is_gdb_breakpoint): New function.
5929 (any_persistent_commands): Update command_list if
5930 is_gdb_breakpoint returns true.
5931 (set_breakpoint): Create breakpoints according to their types.
5932 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
5933 (set_gdb_breakpoint_1): Likewise.
5934 (set_gdb_breakpoint): Likewise.
5935 (clear_breakpoint_conditions): Change parameter type to
5936 'struct gdb_breakpoint *'.
5937 (clear_breakpoint_commands): Likewise.
5938 (clear_breakpoint_conditions_and_commands): Likewise.
5939 (add_condition_to_breakpoint): Likewise.
5940 (add_breakpoint_condition): Likewise.
5941 (add_commands_to_breakpoint): Likewise.
5942 (check_breakpoints): Check other_breakpoint.
5943 (clone_one_breakpoint): Clone breakpopint according to its type.
5944 * mem-break.h (struct gdb_breakpoint): Declare.
5945 (set_gdb_breakpoint): Update declaration.
5946 (clear_breakpoint_conditions_and_commands): Likewise.
5947 (add_breakpoint_condition): Likewise.
5948 (add_breakpoint_commands): Likewise.
5949 * server.c (process_point_options): Change parameter type to
5950 'struct gdb_breakpoint *'.
5952 2016-07-21 Yao Qi <yao.qi@linaro.org>
5954 * mem-break.c (set_breakpoint_at): Rename it to ...
5955 (set_breakpoint_type_at): ... it.
5956 (set_breakpoint_at): Call set_breakpoint_type_at.
5957 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
5958 * mem-break.h (set_breakpoint_at): Update comments.
5960 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
5962 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
5964 (nios2_store_gregset): Likewise.
5966 2016-07-01 Pedro Alves <palves@redhat.com>
5967 Antoine Tremblay <antoine.tremblay@ericsson.com>
5969 * linux-low.c: Change interface to take the target lwp_info
5970 pointer directly and return void. Handle detaching from a zombie
5972 (linux_detach_lwp_callback): New function.
5973 (linux_detach): Detach from the leader thread after detaching from
5976 2016-06-28 Yao Qi <yao.qi@linaro.org>
5978 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
5979 for variable new_offset.
5980 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
5981 (aarch64_ftrace_insn_reloc_cb): Likewise.
5982 (aarch64_ftrace_insn_reloc_tb): Likewise.
5983 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
5984 PRIx64 instead of PRIx32.
5986 2016-06-28 Yao Qi <yao.qi@linaro.org>
5988 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
5989 (the_low_target): Install arm_get_syscall_trapinfo.
5991 2016-06-28 Yao Qi <yao.qi@linaro.org>
5993 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
5995 (the_low_target): Install aarch64_get_syscall_trapinfo.
5997 2016-06-28 Yao Qi <yao.qi@linaro.org>
5999 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
6001 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
6002 Remove parameter sysno.
6003 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
6006 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6008 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
6009 (s390_emit_ne_goto): Likewise.
6010 (s390_emit_lt_goto): Likewise.
6011 (s390_emit_le_goto): Likewise.
6012 (s390_emit_gt_goto): Likewise.
6013 (s390_emit_ge_goto): Likewise.
6014 (s390x_emit_eq_goto): Likewise.
6015 (s390x_emit_ne_goto): Likewise.
6016 (s390x_emit_lt_goto): Likewise.
6017 (s390x_emit_le_goto): Likewise.
6018 (s390x_emit_gt_goto): Likewise.
6019 (s390x_emit_ge_goto): Likewise.
6020 (s390_emit_ops_impl): Mark variable static.
6021 (s390x_emit_ops): Likewise.
6023 2016-06-17 Yao Qi <yao.qi@linaro.org>
6025 * linux-low.c (handle_extended_wait): Call
6026 uninsert_reinsert_breakpoints for the parent process. Remove
6027 reinsert breakpoints from the child process. Reinsert them to
6028 the parent process when vfork is done.
6029 * mem-break.c (uninsert_reinsert_breakpoints): New function.
6030 (reinsert_reinsert_breakpoints): New function.
6031 * mem-break.h (uninsert_reinsert_breakpoints): Declare
6032 (reinsert_reinsert_breakpoints): Declare.
6034 2016-06-17 Yao Qi <yao.qi@linaro.org>
6036 * linux-low.c (handle_extended_wait): If the parent is doing
6037 step-over, remove the reinsert breakpoints from the forked child.
6039 2016-06-17 Yao Qi <yao.qi@linaro.org>
6041 * linux-low.c (unsuspend_all_lwps): Declare.
6042 (linux_low_filter_event): If thread exited, call finish_step_over.
6043 If step-over is finished, unsuspend other threads.
6045 2016-06-17 Yao Qi <yao.qi@linaro.org>
6047 * linux-low.c (linux_resume_one_lwp_throw): Assert
6048 has_reinsert_breakpoints returns false.
6049 * mem-break.c (delete_disabled_breakpoints): Assert
6050 bp type isn't reinsert_breakpoint.
6052 2016-06-17 Yao Qi <yao.qi@linaro.org>
6054 * linux-low.c (maybe_hw_step): New function.
6055 (linux_resume_one_lwp_throw): Call maybe_hw_step.
6056 (finish_step_over): Switch current_thread to lwp temporarily,
6057 and assert has_reinsert_breakpoints returns true.
6058 (proceed_one_lwp): Call maybe_hw_step.
6059 * mem-break.c (has_reinsert_breakpoints): New function.
6060 * mem-break.h (has_reinsert_breakpoints): Declare.
6062 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
6064 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
6066 2016-05-17 Yao Qi <yao.qi@linaro.org>
6068 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
6069 instead of find_inferior.
6071 2016-05-05 Yao Qi <yao.qi@linaro.org>
6073 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
6074 Initialize res to zero.
6076 2016-05-05 Yao Qi <yao.qi@linaro.org>
6078 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
6081 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6083 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
6084 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
6085 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6087 2016-04-28 Par Olsson <par.olsson@windriver.com>
6088 Simon Marchi <simon.marchi@ericsson.com>
6090 * tracepoint.c (write_inferior_int8): New function.
6091 (cmd_qtenable_disable): Write enable flag using
6092 write_inferior_int8.
6094 2016-04-25 Yao Qi <yao.qi@linaro.org>
6096 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
6097 (need_step_over_p): Return zero if the LWP has pending signals
6098 can be delivered on software single step target.
6100 2016-04-25 Yao Qi <yao.qi@linaro.org>
6102 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
6103 return instead of error.
6105 2016-04-22 Yao Qi <yao.qi@linaro.org>
6107 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
6110 2016-04-22 Yao Qi <yao.qi@linaro.org>
6112 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
6113 signal when stepping over breakpoint with software single
6116 2016-04-21 Pedro Alves <palves@redhat.com>
6118 * linux-s390-low.c (s390_collect_ptrace_register)
6119 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
6121 (s390_check_regset): Use void * instead of gdb_byte *.
6123 2016-04-20 Pedro Alves <palves@redhat.com>
6125 * configure: Renegerate.
6127 2016-04-20 Yao Qi <yao.qi@linaro.org>
6129 * linux-aarch32-low.c: Include "arch/arm-linux.h".
6130 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
6132 (arm_store_gregset): Likewise.
6134 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
6136 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
6137 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
6138 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
6139 (amd64-avx-mpx-linux.c): New rules.
6140 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
6141 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
6142 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
6143 (srv_amd64_regobj): Add amd64-avx-mpx.o.
6144 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
6145 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
6146 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
6147 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
6148 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
6149 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
6150 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
6151 * linux-x86-low.c (x86_linux_read_description): Add case for
6152 X86_XSTATE_AVX_MPX_MASK.
6153 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
6154 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
6155 init_registers_i386_avx_mpx_linux.
6156 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
6157 (initialize_low_tracepoint): Call
6158 init_registers_i386_avx_mpx_linux.
6159 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
6160 (initialize_low_tracepoint): Call
6161 init_registers_amd64_avx_mpx_linux.
6162 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
6163 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
6164 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
6167 2016-04-18 Pedro Alves <palves@redhat.com>
6169 * configure: Regenerate.
6171 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
6173 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
6174 (aarch64_emit_sub): Likewise.
6176 2016-04-12 Pedro Alves <palves@redhat.com>
6178 * utils.c (prepare_to_throw_exception): Delete.
6180 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
6182 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
6184 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
6186 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
6188 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
6190 * linux-aarch64-ipa.c: Add <elf.h> include.
6191 * linux-ppc-ipa.c: Add <elf.h> include.
6192 * linux-s390-ipa.c: Add <elf.h> include.
6194 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6196 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
6197 (get_raw_reg_ptr): Likewise.
6198 (get_trace_state_variable_value_ptr): Likewise.
6199 (set_trace_state_variable_value_ptr): Likewise.
6200 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
6203 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6204 Marcin Kościelnicki <koriakin@0x04.net>
6207 * linux-ppc-low.c (emit_insns): New function.
6208 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
6209 (ppc_emit_prologue): New function.
6210 (ppc_emit_epilogue): New function.
6211 (ppc_emit_add): New function.
6212 (ppc_emit_sub): New function.
6213 (ppc_emit_mul): New function.
6214 (ppc_emit_lsh): New function.
6215 (ppc_emit_rsh_signed): New function.
6216 (ppc_emit_rsh_unsigned): New function.
6217 (ppc_emit_ext): New function.
6218 (ppc_emit_zero_ext): New function.
6219 (ppc_emit_log_not): New function.
6220 (ppc_emit_bit_and): New function.
6221 (ppc_emit_bit_or): New function.
6222 (ppc_emit_bit_xor): New function.
6223 (ppc_emit_bit_not): New function.
6224 (ppc_emit_equal): New function.
6225 (ppc_emit_less_signed): New function.
6226 (ppc_emit_less_unsigned): New function.
6227 (ppc_emit_ref): New function.
6228 (ppc_emit_const): New function.
6229 (ppc_emit_reg): New function.
6230 (ppc_emit_pop): New function.
6231 (ppc_emit_stack_flush): New function.
6232 (ppc_emit_swap): New function.
6233 (ppc_emit_stack_adjust): New function.
6234 (ppc_emit_call): New function.
6235 (ppc_emit_int_call_1): New function.
6236 (ppc_emit_void_call_2): New function.
6237 (ppc_emit_if_goto): New function.
6238 (ppc_emit_goto): New function.
6239 (ppc_emit_eq_goto): New function.
6240 (ppc_emit_ne_goto): New function.
6241 (ppc_emit_lt_goto): New function.
6242 (ppc_emit_le_goto): New function.
6243 (ppc_emit_gt_goto): New function.
6244 (ppc_emit_ge_goto): New function.
6245 (ppc_write_goto_address): New function.
6246 (ppc_emit_ops_impl): New static variable.
6247 (ppc64v1_emit_prologue): New function.
6248 (ppc64v2_emit_prologue): New function.
6249 (ppc64_emit_epilogue): New function.
6250 (ppc64_emit_add): New function.
6251 (ppc64_emit_sub): New function.
6252 (ppc64_emit_mul): New function.
6253 (ppc64_emit_lsh): New function.
6254 (ppc64_emit_rsh_signed): New function.
6255 (ppc64_emit_rsh_unsigned): New function.
6256 (ppc64_emit_ext): New function.
6257 (ppc64_emit_zero_ext): New function.
6258 (ppc64_emit_log_not): New function.
6259 (ppc64_emit_bit_and): New function.
6260 (ppc64_emit_bit_or): New function.
6261 (ppc64_emit_bit_xor): New function.
6262 (ppc64_emit_bit_not): New function.
6263 (ppc64_emit_equal): New function.
6264 (ppc64_emit_less_signed): New function.
6265 (ppc64_emit_less_unsigned): New function.
6266 (ppc64_emit_ref): New function.
6267 (ppc64_emit_const): New function.
6268 (ppc64v1_emit_reg): New function.
6269 (ppc64v2_emit_reg): New function.
6270 (ppc64_emit_pop): New function.
6271 (ppc64_emit_stack_flush): New function.
6272 (ppc64_emit_swap): New function.
6273 (ppc64v1_emit_call): New function.
6274 (ppc64v2_emit_call): New function.
6275 (ppc64v1_emit_int_call_1): New function.
6276 (ppc64v2_emit_int_call_1): New function.
6277 (ppc64v1_emit_void_call_2): New function.
6278 (ppc64v2_emit_void_call_2): New function.
6279 (ppc64_emit_if_goto): New function.
6280 (ppc64_emit_eq_goto): New function.
6281 (ppc64_emit_ne_goto): New function.
6282 (ppc64_emit_lt_goto): New function.
6283 (ppc64_emit_le_goto): New function.
6284 (ppc64_emit_gt_goto): New function.
6285 (ppc64_emit_ge_goto): New function.
6286 (ppc64v1_emit_ops_impl): New static variable.
6287 (ppc64v2_emit_ops_impl): New static variable.
6288 (ppc_emit_ops): New function.
6289 (linux_low_target): Wire in ppc_emit_ops.
6291 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
6292 Marcin Kościelnicki <koriakin@0x04.net>
6295 * Makefile.in: Add powerpc-*-ipa.o
6296 * configure.srv: Add ipa_obj for powerpc*-linux.
6297 * linux-ppc-ipa.c: New file.
6298 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
6300 (PPC_FIELD): New macro.
6301 (PPC_SEXT): New macro.
6302 (PPC_OP6): New macro.
6303 (PPC_BO): New macro.
6304 (PPC_LI): New macro.
6305 (PPC_BD): New macro.
6306 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
6307 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
6308 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
6309 (ppc_get_thread_area): New function.
6310 (is_elfv2_inferior): New function.
6311 (gen_ds_form): New function.
6312 (GEN_STD): New macro.
6313 (GEN_STDU): New macro.
6314 (GEN_LD): New macro.
6315 (GEN_LDU): New macro.
6316 (gen_d_form): New function.
6317 (GEN_ADDI): New macro.
6318 (GEN_ADDIS): New macro.
6319 (GEN_LI): New macro.
6320 (GEN_LIS): New macro.
6321 (GEN_ORI): New macro.
6322 (GEN_ORIS): New macro.
6323 (GEN_LWZ): New macro.
6324 (GEN_STW): New macro.
6325 (GEN_STWU): New macro.
6326 (gen_xfx_form): New function.
6327 (GEN_MFSPR): New macro.
6328 (GEN_MTSPR): New macro.
6329 (GEN_MFCR): New macro.
6330 (GEN_MTCR): New macro.
6331 (GEN_SYNC): New macro.
6332 (GEN_LWSYNC): New macro.
6333 (gen_x_form): New function.
6334 (GEN_OR): New macro.
6335 (GEN_MR): New macro.
6336 (GEN_LWARX): New macro.
6337 (GEN_STWCX): New macro.
6338 (GEN_CMPW): New macro.
6339 (gen_md_form): New function.
6340 (GEN_RLDICL): New macro.
6341 (GEN_RLDICR): New macro.
6342 (gen_i_form): New function.
6344 (GEN_BL): New macro.
6345 (gen_b_form): New function.
6346 (GEN_BNE): New macro.
6347 (GEN_LOAD): New macro.
6348 (GEN_STORE): New macro.
6349 (gen_limm): New function.
6350 (gen_atomic_xchg): New function.
6351 (gen_call): New function.
6352 (ppc_relocate_instruction): New function.
6353 (ppc_install_fast_tracepoint_jump_pad): New function.
6354 (ppc_get_min_fast_tracepoint_insn_len): New function.
6355 (ppc_get_ipa_tdesc_idx): New function.
6356 (the_low_target): Wire in the new functions.
6357 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
6359 * linux-ppc-tdesc.h: New file.
6361 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
6363 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6364 (alloc_jump_pad_buffer): New function.
6365 * linux-amd64-ipa.c: Add <sys/mman.h> include.
6366 (alloc_jump_pad_buffer): New function.
6367 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
6368 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
6369 (alloc_jump_pad_buffer): New function.
6370 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
6371 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
6372 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
6373 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
6375 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6377 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
6378 * linux-amd64-ipa.c: Likewise.
6379 * linux-i386-ipa.c: Likewise.
6380 * linux-s390-ipa.c: Likewise.
6381 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
6382 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
6383 set_trace_state_variable_value_ptr.
6384 (struct ipa_sym_addresses): Likewise.
6385 (symbol_list): Likewise.
6386 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
6387 accessing gdb_collect directly.
6388 (gdb_collect_ptr_type): New typedef.
6389 (get_raw_reg_ptr_type): New typedef.
6390 (get_trace_state_variable_value_ptr_type): New typedef.
6391 (set_trace_state_variable_value_ptr_type): New typedef.
6392 (gdb_collect_ptr): New global.
6393 (get_raw_reg_ptr): New global.
6394 (get_trace_state_variable_value_ptr): New global.
6395 (set_trace_state_variable_value_ptr): New global.
6396 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
6397 accessing get_raw_reg directly.
6398 (get_get_tsv_func_addr): Likewise for
6399 get_trace_state_variable_value_ptr.
6400 (get_set_tsv_func_addr): Likewise for
6401 set_trace_state_variable_value_ptr.
6402 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
6404 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
6406 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
6408 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
6410 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
6412 (relocate_instruction): Remove own_buf.
6413 * server.c (own_buf): Make global.
6414 (handle_v_requests): Make global.
6415 * server.h (own_buf): New declaration.
6416 (handle_v_requests): New prototype.
6418 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6421 * linux-s390-low.c (add_insns): New function.
6422 (s390_emit_prologue): New function.
6423 (s390_emit_epilogue): New function.
6424 (s390_emit_add): New function.
6425 (s390_emit_sub): New function.
6426 (s390_emit_mul): New function.
6427 (s390_emit_lsh): New function.
6428 (s390_emit_rsh_signed): New function.
6429 (s390_emit_rsh_unsigned): New function.
6430 (s390_emit_ext): New function.
6431 (s390_emit_log_not): New function.
6432 (s390_emit_bit_and): New function.
6433 (s390_emit_bit_or): New function.
6434 (s390_emit_bit_xor): New function.
6435 (s390_emit_bit_not): New function.
6436 (s390_emit_equal): New function.
6437 (s390_emit_less_signed): New function.
6438 (s390_emit_less_unsigned): New function.
6439 (s390_emit_ref): New function.
6440 (s390_emit_if_goto): New function.
6441 (s390_emit_goto): New function.
6442 (s390_write_goto_address): New function.
6443 (s390_emit_litpool): New function.
6444 (s390_emit_const): New function.
6445 (s390_emit_call): New function.
6446 (s390_emit_reg): New function.
6447 (s390_emit_pop): New function.
6448 (s390_emit_stack_flush): New function.
6449 (s390_emit_zero_ext): New function.
6450 (s390_emit_swap): New function.
6451 (s390_emit_stack_adjust): New function.
6452 (s390_emit_set_r2): New function.
6453 (s390_emit_int_call_1): New function.
6454 (s390_emit_void_call_2): New function.
6455 (s390_emit_eq_goto): New function.
6456 (s390_emit_ne_goto): New function.
6457 (s390_emit_lt_goto): New function.
6458 (s390_emit_le_goto): New function.
6459 (s390_emit_gt_goto): New function.
6460 (s390_emit_ge_goto): New function.
6461 (s390x_emit_prologue): New function.
6462 (s390x_emit_epilogue): New function.
6463 (s390x_emit_add): New function.
6464 (s390x_emit_sub): New function.
6465 (s390x_emit_mul): New function.
6466 (s390x_emit_lsh): New function.
6467 (s390x_emit_rsh_signed): New function.
6468 (s390x_emit_rsh_unsigned): New function.
6469 (s390x_emit_ext): New function.
6470 (s390x_emit_log_not): New function.
6471 (s390x_emit_bit_and): New function.
6472 (s390x_emit_bit_or): New function.
6473 (s390x_emit_bit_xor): New function.
6474 (s390x_emit_bit_not): New function.
6475 (s390x_emit_equal): New function.
6476 (s390x_emit_less_signed): New function.
6477 (s390x_emit_less_unsigned): New function.
6478 (s390x_emit_ref): New function.
6479 (s390x_emit_if_goto): New function.
6480 (s390x_emit_const): New function.
6481 (s390x_emit_call): New function.
6482 (s390x_emit_reg): New function.
6483 (s390x_emit_pop): New function.
6484 (s390x_emit_stack_flush): New function.
6485 (s390x_emit_zero_ext): New function.
6486 (s390x_emit_swap): New function.
6487 (s390x_emit_stack_adjust): New function.
6488 (s390x_emit_int_call_1): New function.
6489 (s390x_emit_void_call_2): New function.
6490 (s390x_emit_eq_goto): New function.
6491 (s390x_emit_ne_goto): New function.
6492 (s390x_emit_lt_goto): New function.
6493 (s390x_emit_le_goto): New function.
6494 (s390x_emit_gt_goto): New function.
6495 (s390x_emit_ge_goto): New function.
6496 (s390_emit_ops): New function.
6497 (struct linux_target_ops): Fill in emit_ops hook.
6499 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6502 * Makefile.in: Add s390 IPA files.
6503 * configure.srv: Build IPA for s390.
6504 * linux-s390-ipa.c: New file.
6505 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
6506 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
6507 (tdesc_s390_linux32): Likewise.
6508 (init_registers_s390_linux32v1): Likewise.
6509 (tdesc_s390_linux32v1): Likewise.
6510 (init_registers_s390_linux32v2): Likewise.
6511 (tdesc_s390_linux32v2): Likewise.
6512 (init_registers_s390_linux64): Likewise.
6513 (tdesc_s390_linux64): Likewise.
6514 (init_registers_s390_linux64v1): Likewise.
6515 (tdesc_s390_linux64v1): Likewise.
6516 (init_registers_s390_linux64v2): Likewise.
6517 (tdesc_s390_linux64v2): Likewise.
6518 (init_registers_s390_te_linux64): Likewise.
6519 (tdesc_s390_te_linux64): Likewise.
6520 (init_registers_s390_vx_linux64): Likewise.
6521 (tdesc_s390_vx_linux64): Likewise.
6522 (init_registers_s390_tevx_linux64): Likewise.
6523 (tdesc_s390_tevx_linux64): Likewise.
6524 (init_registers_s390x_linux64): Likewise.
6525 (tdesc_s390x_linux64): Likewise.
6526 (init_registers_s390x_linux64v1): Likewise.
6527 (tdesc_s390x_linux64v1): Likewise.
6528 (init_registers_s390x_linux64v2): Likewise.
6529 (tdesc_s390x_linux64v2): Likewise.
6530 (init_registers_s390x_te_linux64): Likewise.
6531 (tdesc_s390x_te_linux64): Likewise.
6532 (init_registers_s390x_vx_linux64): Likewise.
6533 (tdesc_s390x_vx_linux64): Likewise.
6534 (init_registers_s390x_tevx_linux64): Likewise.
6535 (tdesc_s390x_tevx_linux64): Likewise.
6536 (have_hwcap_s390_vx): New static variable.
6537 (s390_arch_setup): Fill have_hwcap_s390_vx.
6538 (s390_get_thread_area): New function.
6539 (s390_ft_entry_gpr_esa): New const.
6540 (s390_ft_entry_gpr_zarch): New const.
6541 (s390_ft_entry_misc): New const.
6542 (s390_ft_entry_fr): New const.
6543 (s390_ft_entry_vr): New const.
6544 (s390_ft_main_31): New const.
6545 (s390_ft_main_64): New const.
6546 (s390_ft_exit_fr): New const.
6547 (s390_ft_exit_vr): New const.
6548 (s390_ft_exit_misc): New const.
6549 (s390_ft_exit_gpr_esa): New const.
6550 (s390_ft_exit_gpr_zarch): New const.
6551 (append_insns): New function.
6552 (s390_relocate_instruction): New function.
6553 (s390_install_fast_tracepoint_jump_pad): New function.
6554 (s390_get_min_fast_tracepoint_insn_len): New function.
6555 (s390_get_ipa_tdesc_idx): New function.
6556 (struct linux_target_ops): Wire in the above functions.
6557 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
6558 * linux-s390-tdesc.h: New file.
6560 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
6562 * linux-s390-low.c (s390_supports_tracepoints): New function.
6563 (struct linux_target_ops): Fill supports_tracepoints hook.
6565 2016-03-18 Yao Qi <yao.qi@linaro.org>
6567 * linux-low.c (lwp_signal_can_be_delivered): New function.
6568 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
6570 2016-03-18 Yao Qi <yao.qi@linaro.org>
6572 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
6573 0 if signal is enqueued. Remove 'signal' from one debugging
6574 message. Move one debugging message to some lines below.
6575 Remove code setting 'signal' to 0.
6577 2016-03-18 Yao Qi <yao.qi@linaro.org>
6579 * linux-low.c (linux_low_filter_event): Remove redundant
6580 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
6582 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
6584 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
6585 (struct linux_target_ops): Wire in the above.
6587 2016-03-03 Yao Qi <yao.qi@linaro.org>
6589 * linux-low.c: Update comments to start_step_over.
6591 2016-03-03 Yao Qi <yao.qi@linaro.org>
6594 * linux-low.c (handle_extended_wait): Set child suspended
6595 if event_lwp->bp_reinsert isn't zero.
6597 2016-03-02 Yao Qi <yao.qi@linaro.org>
6599 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
6600 enqueue_pending_signal.
6602 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
6604 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
6607 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6609 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
6610 (s390_regmap_3264) [!__s390x__]: New global.
6611 (s390_collect_ptrace_register): Skip map entries containing -1.
6612 (s390_supply_ptrace_register): Ditto.
6613 (s390_fill_gprs_high): New function.
6614 (s390_store_gprs_high): New function.
6615 (s390_regsets): Add NT_S390_HIGH_GPRS.
6616 (s390_get_hwcap): Enable on 31-bit.
6617 (have_hwcap_s390_high_gprs): Enable on 31-bit.
6618 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
6619 Detect NT_S390_HIGH_GPRS.
6620 (s390_usrregs_info_3264): Enable on 31-bit.
6621 (s390_regs_info): Enable regs_info_3264 on 31-bit.
6622 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
6624 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
6627 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
6628 * configure.srv: Ditto.
6629 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
6630 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
6631 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
6632 (init_registers_amd64_linux): Remove prototype.
6633 (tdesc_amd64_linux): Remove declaration.
6634 (get_ipa_tdesc): New function.
6635 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6636 initialize remaining tdescs.
6637 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
6638 (init_registers_i386_linux): Remove prototype.
6639 (tdesc_i386_linux): Remove declaration.
6640 (get_ipa_tdesc): New function.
6641 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
6642 initialize remaining tdescs.
6643 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
6644 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
6645 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
6646 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
6647 (x86_get_ipa_tdesc_idx): New function.
6648 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
6649 * linux-x86-tdesc.h: New file.
6650 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
6651 (target_get_ipa_tdesc_idx): New macro.
6652 * tracepoint.c (ipa_tdesc_idx): New macro.
6653 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
6654 (symbol_list): Add ipa_tdesc_idx.
6655 (cmd_qtstart): Write ipa_tdesc_idx in the target.
6656 (ipa_tdesc): Remove.
6657 (ipa_tdesc_idx): New variable.
6658 (get_context_regcache): Use get_ipa_tdesc.
6659 (gdb_collect): Ditto.
6661 * tracepoint.h (get_ipa_tdesc): New prototype.
6662 (ipa_tdesc): Remove.
6664 2016-02-24 Pedro Alves <palves@redhat.com>
6666 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
6667 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
6668 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
6669 Factor out common code between the USE_SIGTRAP_SIGINFO and
6670 !USE_SIGTRAP_SIGINFO blocks.
6671 (linux_low_filter_event): Call save_stop_reason instead of
6672 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
6674 (linux_wait_1): Update comments.
6676 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
6678 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
6679 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
6680 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
6681 ppc_insert_point, ppc_remove_point.
6683 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
6685 * linux-s390-low.c (s390_supports_z_point_type): New function.
6686 (struct linux_target_ops): Wire s390_supports_z_point_type in.
6688 2016-02-16 Yao Qi <yao.qi@linaro.org>
6690 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
6691 PC. Get pc from regcache_read_pc.
6693 2016-02-12 Yao Qi <yao.qi@linaro.org>
6695 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
6696 or linux_get_pc_32bit.
6697 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
6699 2016-02-12 Yao Qi <yao.qi@linaro.org>
6701 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
6702 arm_linux_get_next_pcs_fixup.
6704 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
6706 * tracepoint.c (x_tracepoint_action_download): Change
6707 write_inferior_data_ptr to write_inferior_data_pointer.
6708 (cmd_qtstart): Likewise.
6709 (write_inferior_data_ptr): Remove.
6710 (download_agent_expr): Change write_inferior_data_ptr to
6711 write_inferior_data_pointer.
6712 (download_tracepoint_1): Likewise.
6713 (download_tracepoint): Likewise.
6714 (download_trace_state_variables): Likewise.
6716 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
6717 Marcin Kościelnicki <koriakin@0x04.net>
6719 * tracepoint.c (struct tracepoint_action_ops): Remove.
6720 (struct tracepoint_action): Remove ops.
6721 (m_tracepoint_action_download, r_tracepoint_action_download)
6722 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
6723 size and offset accordingly.
6724 (m_tracepoint_action_ops, r_tracepoint_action_ops)
6725 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
6726 (tracepoint_action_send, tracepoint_action_download): New functions.
6727 Helpers for trace action handlers.
6728 (add_tracepoint_action): Remove setup actions ops.
6729 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
6731 2016-02-10 Yao Qi <yao.qi@linaro.org>
6733 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
6735 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6737 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
6739 * configure: Regenerate.
6741 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
6743 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
6744 void * to gdb_byte *.
6745 * linux-low.c (siginfo_fixup): Likewise.
6746 (linux_xfer_siginfo): Likewise.
6747 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
6749 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
6751 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
6753 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
6755 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
6757 * linux-x86-low.c [__x86_64__]: Include
6758 "nat/amd64-linux-siginfo.h".
6759 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
6760 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
6761 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
6762 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
6763 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
6764 (cpt_si_fd, si_timerid, si_overrun): Move from
6765 nat/amd64-linux-siginfo.c.
6766 * Makefile.in (amd64-linux-siginfo.o:): New rule.
6768 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
6770 * server.c (skip_to_semicolon): Remove.
6771 (process_point_options): Use strchrnul instead of
6774 2016-01-26 Yao Qi <yao.qi@linaro.org>
6776 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
6777 * linux-low.c (install_software_single_step_breakpoints): Don't
6778 call regcache_read_pc.
6779 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
6782 2016-01-26 Yao Qi <yao.qi@linaro.org>
6784 * linux-low.c (install_software_single_step_breakpoints): Call
6785 regcache_read_pc instead of get_pc.
6787 2016-01-26 Yao Qi <yao.qi@linaro.org>
6789 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
6790 (unblock_async_io): Rename to ...
6791 (block_unblock_async_io): ... it. New function.
6792 (enable_async_io): Don't install SIGIO handler. Unblock it
6794 (disable_async_io): Don't ignore SIGIO. Block it instead.
6795 (initialize_async_io): Install SIGIO handler. Don't call
6798 2016-01-26 Yao Qi <yao.qi@linaro.org>
6800 * remote-utils.c (getpkt): If the buffer isn't empty, and the
6801 first character is '\003', call *the_target->request_interrupt.
6803 2016-01-25 Yao Qi <yao.qi@linaro.org>
6805 * remote-utils.c (new_thread_notify): Remove.
6806 (dead_thread_notify): Likewise.
6807 * remote-utils.h (new_thread_notify): Remove declaration.
6808 (dead_thread_notify): Likewise.
6810 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
6812 * gdb.trace/pending.exp: Fix expected message on continue.
6814 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
6816 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
6817 it works properly on big-endian machines where sizeof (CORE_ADDR)
6820 2016-01-21 Pedro Alves <palves@redhat.com>
6822 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
6823 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
6824 * configure: Regenerate.
6826 2016-01-21 Yao Qi <yao.qi@linaro.org>
6828 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
6829 is_thumb and set it according to CPSR saved on the stack.
6830 (get_next_pcs_syscall_next_pc): Pass is_thumb to
6831 arm_sigreturn_next_pc.
6833 2016-01-18 Yao Qi <yao.qi@linaro.org>
6835 * linux-low.c (linux_set_pc_64bit): New function.
6836 (linux_get_pc_64bit): New function.
6837 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
6839 * linux-sparc-low.c (debug_threads): Remove declaration.
6840 (sparc_get_pc): Remove.
6841 (the_low_target): Use linux_get_pc_64bit instead of
6843 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
6844 (the_low_target): Use linux_get_pc_64bit and
6847 2016-01-18 Yao Qi <yao.qi@linaro.org>
6849 * linux-arm-low.c (debug_threads): Remove declaration.
6850 (arm_get_pc, arm_set_pc): Remove.
6851 (the_low_target): Use linux_get_pc_32bit and
6853 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
6854 (the_low_target): Use linux_get_pc_32bit and
6856 * linux-cris-low.c (debug_threads): Remove declaration.
6857 (cris_get_pc, cris_set_pc,): Remove.
6858 (the_low_target): Use linux_get_pc_32bit and
6860 * linux-crisv32-low.c (debug_threads): Remove declaration.
6861 (cris_get_pc, cris_set_pc): Remove.
6862 (the_low_target): Use linux_get_pc_32bit and
6864 * linux-low.c: Include inttypes.h.
6865 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
6866 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
6867 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
6868 (the_low_target): Use linux_get_pc_32bit and
6870 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
6871 (the_low_target): Use linux_get_pc_32bit and
6873 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
6874 (the_low_target): Use linux_get_pc_32bit and
6876 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
6877 (the_low_target): Use linux_get_pc_32bit and
6879 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
6880 (the_low_target): Use linux_get_pc_32bit and
6883 2016-01-18 Gary Benson <gbenson@redhat.com>
6885 * configure.ac (AC_FUNC_FORK): New check.
6886 * config.in: Regenerate.
6887 * configure: Likewise.
6889 2016-01-14 Yao Qi <yao.qi@linaro.org>
6891 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
6892 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
6893 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
6894 arm_get_next_pcs_ctor.
6896 2016-01-12 Josh Stone <jistone@redhat.com>
6897 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6899 * inferiors.h: Include "gdb_vecs.h".
6900 (struct process_info): Add syscalls_to_catch.
6901 * inferiors.c (remove_process): Free syscalls_to_catch.
6902 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
6903 syscall_return stops.
6904 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
6905 * server.c (handle_general_set): Handle QCatchSyscalls.
6906 (handle_query): Report support for QCatchSyscalls.
6907 * target.h (struct target_ops): Add supports_catch_syscall.
6908 (target_supports_catch_syscall): New macro.
6909 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
6910 (struct lwp_info): Add syscall_state.
6911 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
6912 Maintain syscall_state and syscalls_to_catch across exec.
6913 (get_syscall_trapinfo): New function, proxy to the_low_target.
6914 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
6915 (linux_low_filter_event): Toggle syscall_state entry/return for
6916 syscall traps, and set it ignored for all others.
6917 (gdb_catching_syscalls_p): New function.
6918 (gdb_catch_this_syscall_p): New function.
6919 (linux_wait_1): Handle SYSCALL_SIGTRAP.
6920 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
6921 (linux_supports_catch_syscall): New function.
6922 (linux_target_ops): Install it.
6923 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
6924 (the_low_target): Install it.
6926 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6928 * acinclude.m4: Include new ../warning.m4 file.
6929 * configure: Regenerated.
6930 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
6932 2016-01-12 Mike Frysinger <vapier@gentoo.org>
6934 * ax.c (is_goto_target): Mark static.
6935 * linux-low.c (register_addr): Likewise.
6936 (linux_fetch_registers, linux_store_registers): Likewise.
6937 * mem-break.c (any_persistent_commands): Fix old prototype.
6938 (add_commands_to_breakpoint): Mark static.
6939 * regcache.c (find_register_by_name): Delete unused func.
6940 * remote-utils.c (hex_or_minus_one): Mark static.
6941 * server.c (monitor_show_help): Mark static.
6942 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
6943 handle_v_requests): Likewise.
6945 2016-01-12 Pedro Alves <palves@redhat.com>
6947 Remove use of the registered trademark symbol throughout.
6949 2016-01-08 Yao Qi <yao.qi@linaro.org>
6951 * remote-utils.c (getpkt): If c is '\003', call target hook
6954 2016-01-06 Yao Qi <yao.qi@linaro.org>
6956 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
6957 linux-aarch32-low.c.
6958 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6959 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6960 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6961 (thumb2_breakpoint): Declare.
6962 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
6963 linux-aarch32-low.h.
6964 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
6965 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
6966 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
6968 2016-01-01 Joel Brobecker <brobecker@adacore.com>
6970 * gdbreplay.c (gdbreplay_version): Change copyright year in
6972 * server.c (gdbserver_version): Likewise.
6974 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
6976 * server.c (crc32_table): Delete.
6977 (crc32): Use libiberty's xcrc32 function.
6979 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6981 * lynx-low.c (lynx_delete_thread_callback): New function.
6982 (lynx_mourn): Properly delete our process and all of its
6983 threads. Remove call to clear_inferiors.
6985 2015-12-22 Joel Brobecker <brobecker@adacore.com>
6987 * target.c (thread_search_callback): Add check that
6988 the thread_stopped target callback is not NULL before
6991 2015-12-21 Yao Qi <yao.qi@linaro.org>
6993 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
6996 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
6998 * server.c (handle_query): Call target_supports_software_single_step.
7000 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7002 * linux-low.c (single_step): New function.
7003 (linux_resume_one_lwp_throw): Call single_step.
7004 (start_step_over): Likewise.
7006 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7008 * Makefile.in (SFILES): Append arch/arm-linux.c,
7009 arch/arm-get-next-pcs.c.
7010 (arm-linux.o): New rule.
7011 (arm-get-next-pcs.o): New rule.
7012 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
7014 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
7015 to linux-aarch32-low.c.
7016 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7017 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7018 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7019 (thumb2_breakpoint_len): Likewise.
7020 (arm_is_thumb_mode): Make non-static.
7021 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
7022 from linux-aarch32-low.c.
7023 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7024 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7025 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7026 (thumb2_breakpoint_len): Likewise.
7027 (arm_is_thumb_mode): New declaration.
7028 * linux-arm-low.c: Include arch/arm-linux.h
7029 aarch/arm-get-next-pcs.h, sys/syscall.h.
7030 (get_next_pcs_ops): New struct.
7031 (get_next_pcs_addr_bits_remove): New function.
7032 (get_next_pcs_is_thumb): New function.
7033 (get_next_pcs_read_memory_unsigned_integer): Likewise.
7034 (arm_sigreturn_next_pc): Likewise.
7035 (get_next_pcs_syscall_next_pc): Likewise.
7036 (arm_gdbserver_get_next_pcs): Likewise.
7037 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
7039 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
7040 * server.h: Include gdb_vecs.h.
7042 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7044 * Makefile.in (SFILES): Append common/common-regcache.c.
7045 (OBS): Append common-regcache.o.
7046 (common-regcache.o): New rule.
7047 * regcache.c (init_register_cache): Initialize cache to
7049 (regcache_raw_read_unsigned): New function.
7050 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
7051 register_status enum.
7053 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
7055 * linux-aarch64-low.c (the_low_targets): Rename
7056 breakpoint_reinsert_addr to get_next_pcs.
7057 * linux-arm-low.c (the_low_targets): Likewise.
7058 * linux-bfin-low.c (the_low_targets): Likewise.
7059 * linux-cris-low.c (the_low_targets): Likewise.
7060 * linux-crisv32-low.c (the_low_targets): Likewise.
7061 * linux-low.c (can_software_single_step): Likewise.
7062 (install_software_single_step_breakpoints): New function.
7063 (start_step_over): Use install_software_single_step_breakpoints.
7064 * linux-low.h: New CORE_ADDR vector.
7065 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
7067 * linux-mips-low.c (the_low_targets): Likewise.
7068 * linux-nios2-low.c (the_low_targets): Likewise.
7069 * linux-sparc-low.c (the_low_targets): Likewise.
7071 2015-12-17 Pedro Alves <palves@redhat.com>
7073 * linux-low.c (linux_kill_one_lwp): Remove references to
7075 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
7077 (linux_init_signals): Delete.
7078 (initialize_low): Adjust.
7079 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
7081 2015-12-16 Pedro Alves <palves@redhat.com>
7083 * configure.ac (compiler warning flags): When testing a
7084 -Wno-foo option, check whether -Wfoo works instead.
7085 * configure: Regenerate.
7087 2015-12-11 Don Breazeal <donb@codesourcery.com>
7089 * server.c (process_serial_event): Don't exit from gdbserver
7090 in remote mode if there are still active inferiors.
7092 2015-12-11 Yao Qi <yao.qi@linaro.org>
7094 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
7095 arm_breakpoint_at if the process is 32-bit.
7097 2015-12-11 Yao Qi <yao.qi@linaro.org>
7099 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
7102 2015-12-07 Yao Qi <yao.qi@linaro.org>
7104 * configure.srv: Append arm.o to srv_tgtobj for
7105 aarch64*-*-linux* target.
7106 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
7107 from linux-arm-low.c.
7108 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
7109 (arm_breakpoint_len, thumb_breakpoint): Likewise.
7110 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
7111 (thumb2_breakpoint_len): Likewise.
7112 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
7113 (arm_breakpoint_kinds): Likewise.
7114 (arm_breakpoint_kind_from_pc): Likewise.
7115 (arm_sw_breakpoint_from_kind): Likewise.
7116 (arm_breakpoint_kind_from_current_state): Likewise.
7117 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
7118 (arm_sw_breakpoint_from_kind): Declare.
7119 (arm_breakpoint_kind_from_current_state): Declare.
7120 (arm_breakpoint_at): Declare.
7121 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
7122 arm_sw_breakpoint_from_kind if process is 32-bit.
7123 (aarch64_breakpoint_kind_from_pc): New function.
7124 (aarch64_breakpoint_kind_from_current_state): New function.
7125 (the_low_target): Initialize fields breakpoint_kind_from_pc
7126 and breakpoint_kind_from_current_state.
7127 * linux-arm-low.c (arm_breakpoint_kinds): Move to
7128 linux-aarch32-low.c.
7129 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
7130 (arm_breakpoint, arm_breakpoint_len): Likewise.
7131 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
7132 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
7133 (arm_is_thumb_mode): Likewise.
7134 (arm_breakpoint_at): Likewise.
7135 (arm_breakpoint_kind_from_pc): Likewise.
7136 (arm_sw_breakpoint_from_kind): Likewise.
7137 (arm_breakpoint_kind_from_current_state): Likewise.
7140 2015-08-04 Yao Qi <yao.qi@linaro.org>
7142 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7143 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7144 * server.c (extended_protocol): Remove "static".
7145 * server.h (extended_protocol): Declare it.
7147 2015-12-04 Josh Stone <jistone@redhat.com>
7149 * target.h (struct target_ops) <arch_setup>: Rename to ...
7150 (struct target_ops) <post_create_inferior>: ... this.
7151 (target_arch_setup): Rename to ...
7152 (target_post_create_inferior): ... this, calling post_create_inferior.
7153 * server.c (start_inferior): Update target_arch_setup calls to
7154 target_post_create_inferior.
7155 * linux-low.c (linux_low_ptrace_options): Forward declare.
7156 (linux_arch_setup): Update its comment for general use.
7157 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
7158 (struct linux_target_ops): Use linux_post_create_inferior.
7159 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
7160 to post_create_inferior.
7161 * nto-low.c (struct nto_target_ops): Likewise.
7162 * spu-low.c (struct spu_target_ops): Likewise.
7163 * win32-low.c (struct win32_target_ops): Likewise.
7165 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
7167 * linux-arm-low.c: Remove duplicate arch/arm.h include.
7169 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7171 * linux-arm-low.c (arm_reinsert_addr): Remove function.
7172 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
7173 * linux-cris-low.c (cris_reinsert_addr> Remove function.
7174 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7175 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
7176 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7177 * linux-mips-low.c (mips_reinsert_addr): Remove function.
7178 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7179 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
7180 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7181 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
7182 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
7184 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7186 * linux-low.c (linux_look_up_symbols): Don't call
7187 linux_supports_traceclone.
7188 * linux-low.h (thread_db_init): Remove use_events argument.
7189 * thread-db.c (thread_db_use_event): Remove global variable.
7190 (struct thread_db) <td_thr_event_enable_p>: Remove field.
7191 (struct thread_db) <td_create_bp>: Remove field.
7192 (thread_db_create_event): Remove function.
7193 (thread_db_enable_reporting): Likewise.
7194 (find_one_thread): Don't check for thread_db_use_events.
7195 (attach_thread): Likewise.
7196 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
7197 (try_thread_db_load_1): Don't check for thread_db_use_events.
7198 (thread_db_init): Remove use_events argument and thread events
7200 (remove_thread_event_breakpoints): Remove function.
7201 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
7203 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7205 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
7207 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7208 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
7209 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7210 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
7211 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
7213 * linux-crisv32-low.c (cris_supports_hardware_single_step):
7215 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7216 * linux-low.c (can_hardware_single_step): Use
7217 supports_hardware_single_step.
7218 (can_software_single_step): New function.
7219 (start_step_over): Call can_software_single_step.
7220 (linux_supports_hardware_single_step): New function.
7221 (struct target_ops) <supports_software_single_step>: Initialize.
7222 * linux-low.h (struct linux_target_ops)
7223 <supports_hardware_single_step>: Initialize.
7224 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
7225 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7226 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
7227 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
7228 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
7229 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7230 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
7231 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7232 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
7233 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
7235 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
7236 (struct linux_target_ops) <tile_supports_hardware_single_step>:
7238 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
7239 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7240 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
7242 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
7243 * target.h (struct target_ops): <supports_software_single_step>:
7245 (target_supports_software_single_step): New macro.
7247 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7249 * linux-low.c (linux_wait_1): Fix pc advance condition.
7250 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
7251 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
7253 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
7255 * linux-arm-low.c (arm_is_thumb_mode): New function.
7256 (arm_breakpoint_at): Use arm_is_thumb_mode.
7257 (arm_breakpoint_kind_from_current_state): New function.
7258 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
7260 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
7261 (linux_breakpoint_kind_from_current_state): New function.
7262 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
7263 * linux-low.h (struct linux_target_ops)
7264 <breakpoint_kind_from_current_state>: New field.
7265 * target.h (struct target_ops): Likewise.
7266 (target_breakpoint_kind_from_current_state): New macro.
7268 2015-11-30 Pedro Alves <palves@redhat.com>
7270 * linux-low.c (linux_resume): Wake up the event loop before
7273 2015-11-30 Pedro Alves <palves@redhat.com>
7275 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
7277 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
7279 * target.c (struct thread_search): New structure.
7280 (thread_search_callback): New function.
7281 (prev_general_thread): New global.
7282 (prepare_to_access_memory, done_accessing_memory): New functions.
7283 * target.h (prepare_to_access_memory, done_accessing_memory):
7284 Replace macros with function declarations.
7286 2015-11-30 Pedro Alves <palves@redhat.com>
7289 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
7290 report TARGET_WAITKIND_NO_RESUMED.
7291 * remote-utils.c (prepare_resume_reply): Handle
7292 TARGET_WAITKIND_NO_RESUMED.
7293 * server.c (report_no_resumed): New global.
7294 (handle_query) <qSupported>: Handle "no-resumed+". Report
7295 "no-resumed+" support.
7296 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
7297 return error if the client doesn't support no-resumed events.
7298 (push_stop_notification): New function.
7299 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
7300 events if the client supports them.
7302 2015-11-30 Pedro Alves <palves@redhat.com>
7304 * linux-low.c (thread_still_has_status_pending_p): Don't check
7306 (lwp_resumed): New function.
7307 (status_pending_p_callback): Return early if the LWP is not
7308 supposed to be resumed.
7310 2015-11-30 Pedro Alves <palves@redhat.com>
7312 * linux-low.c (handle_extended_wait): Assert that the LWP's
7313 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
7314 thread create events, leave the new child's status pending.
7315 (linux_low_filter_event): If GDB wants to hear about thread exit
7316 events, leave the LWP marked dead and don't delete it.
7317 (linux_wait_for_event_filtered): Don't check for thread exit.
7318 (filter_exit_event): New function.
7319 (linux_wait_1): Use it, when returning an exit event.
7320 (linux_resume_one_lwp_throw): Assert that the LWP's
7321 waitstatus is TARGET_WAITKIND_IGNORE.
7322 * remote-utils.c (prepare_resume_reply): Handle
7323 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
7324 * server.c (report_thread_events): New global.
7325 (handle_general_set): Handle QThreadEvents.
7326 (handle_query) <qSupported>: Handle and report QThreadEvents+;
7327 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
7328 TARGET_WAITKIND_THREAD_EXITED.
7329 * server.h (report_thread_events): Declare.
7331 2015-11-30 Pedro Alves <palves@redhat.com>
7333 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
7334 the thread's last_resume_kind was resume_stop.
7336 2015-11-30 Pedro Alves <palves@redhat.com>
7338 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
7341 2015-11-30 Pedro Alves <palves@redhat.com>
7343 * server.c (handle_v_requests): Handle vCtrlC.
7345 2015-11-30 Pedro Alves <palves@redhat.com>
7347 * gdbthread.h (find_any_thread_of_pid): Declare.
7348 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
7350 * server.c (handle_query): If current_thread is NULL, look for
7351 another thread of the selected process.
7353 2015-11-26 Daniel Colascione <dancol@dancol.org>
7354 Simon Marchi <simon.marchi@ericsson.com>
7356 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
7357 * server.c (handle_qxfer_threads_worker): Refactor to include thread
7359 * target.h (struct target_ops) <thread_name>: New field.
7360 (target_thread_name): New macro.
7362 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7364 * regcache.h (regcache_invalidate_pid): Add declaration.
7365 * regcache.c (regcache_invalidate_pid): New function, extracted
7366 from regcache_invalidate.
7367 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
7368 Add trivial documentation comment.
7369 * lynx-low.c: Use regcache_invalidate_pid instead of
7370 regcache_invalidate.
7372 2015-11-23 Joel Brobecker <brobecker@adacore.com>
7374 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
7375 and Elf64_auxv_t if the target is Android.
7377 2015-11-22 Doug Evans <xdje42@gmail.com>
7379 * target.h: #include <sys/types.h>.
7381 2015-11-19 Pedro Alves <palves@redhat.com>
7383 * linux-low.c (linux_process_qsupported): Change prototype.
7385 * linux-low.h (struct linux_target_ops) <process_qsupported>:
7387 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
7388 and adjust to loop over all features.
7389 * server.c (handle_query) <qSupported>: Adjust to call
7390 target_process_qsupported once, passing it a vector of unprocessed
7392 * target.h (struct target_ops) <process_qsupported>: Change
7394 (target_process_qsupported): Adjust.
7396 2015-11-19 Pedro Alves <palves@redhat.com>
7398 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
7400 * configure: Regenerate.
7402 2015-11-19 Pedro Alves <palves@redhat.com>
7404 * configure: Regenerate.
7406 2015-11-19 Yao Qi <yao.qi@linaro.org>
7408 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
7411 2015-11-19 Yao Qi <yao.qi@linaro.org>
7413 * linux-aarch64-low.c (enum aarch64_operand_type): New.
7414 (struct aarch64_operand): Move enum out.
7416 2015-11-19 Yao Qi <yao.qi@linaro.org>
7418 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
7419 struct user_fpsimd_state *.
7420 (aarch64_store_fpregset): Likewise.
7422 2015-11-19 Yao Qi <yao.qi@linaro.org>
7424 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
7425 struct user_pt_regs *.
7426 (aarch64_store_gregset): Likewise.
7428 2015-11-18 Pedro Alves <palves@redhat.com>
7430 * Makefile.in (all_object_files): Add $IPA_OBJS.
7432 2015-11-17 Pedro Alves <palves@redhat.com>
7434 * win32-low.c (win32_resume): Use gdb_signal_from_host,
7435 GDB_SIGNAL_0 and gdb_signal_to_string.
7437 2015-11-17 Pedro Alves <palves@redhat.com>
7439 * win32-low.c (handle_output_debug_string): Remove parameter.
7440 (win32_kill): Remove our_status local and adjust call to
7441 handle_output_debug_string.
7442 (get_child_debug_event): Adjust call to
7443 handle_output_debug_string.
7445 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7447 * linux-mips-low.c (mips_fill_gregset): Add cast.
7448 (mips_store_gregset): Likewise.
7449 (mips_fill_fpregset): Likewise.
7450 (mips_store_fpregset): Likewise.
7452 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7454 * linux-mips-low.c (mips_add_watchpoint): Rename private to
7457 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7459 * linux-mips-low.c (mips_linux_new_thread): Change type of
7460 watch_type to enum target_hw_bp_type.
7462 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7464 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
7465 Change return type to arm_hwbp_type.
7467 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7469 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
7470 (arm_store_gregset): Likewise.
7471 * linux-arm-low.c (arm_get_hwcap): Likewise.
7472 (arm_read_description): Likewise.
7474 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7476 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
7478 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7480 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
7481 (ppc_fill_vsxregset): Likewise.
7482 (ppc_store_vsxregset): Likewise.
7483 (ppc_fill_vrregset): Likewise.
7484 (ppc_store_vrregset): Likewise.
7485 (ppc_fill_evrregset): Likewise.
7486 (ppc_store_evrregset): Likewise.
7488 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
7490 * linux-ppc-low.c (ppc_usrregs_info): Remove
7491 forward-declaration.
7492 (ppc_arch_setup): Move lower in file.
7494 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
7496 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
7497 (ps_pdwrite): Likewise.
7499 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
7501 * linux-arm-low.c (arm_new_thread): Move pointer dereference
7502 to after assert checks.
7504 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
7506 * proc-service.c (ps_pdread): Add/adjust casts.
7507 (ps_pdwrite): Add/adjust casts.
7509 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7511 * server.c (handle_search_memory_1): Cast return value of
7514 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
7516 * server.c (write_qxfer_response): Change type of data to
7519 2015-10-29 Pedro Alves <palves@redhat.com>
7521 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
7523 2015-10-29 Pedro Alves <palves@redhat.com>
7525 * tracepoint.c (clear_installed_tracepoints): Add casts.
7527 2015-10-29 Pedro Alves <palves@redhat.com>
7529 * server.c (handle_v_cont, process_serial_event): Add enum
7530 gdb_signal casts to signal parsing code.
7532 2015-10-29 Pedro Alves <palves@redhat.com>
7534 * linux-low.h (NULL_REGSET): Define.
7535 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7536 * linux-arm-low.c (arm_regsets): Likewise.
7537 * linux-crisv32-low.c (cris_regsets): Likewise.
7538 * linux-m68k-low.c (m68k_regsets): Likewise.
7539 * linux-mips-low.c (mips_regsets): Likewise.
7540 * linux-nios2-low.c (nios2_regsets): Likewise.
7541 * linux-ppc-low.c (ppc_regsets): Likewise.
7542 * linux-s390-low.c (s390_regsets): Likewise.
7543 * linux-sh-low.c (sh_regsets): Likewise.
7544 * linux-sparc-low.c (sparc_regsets): Likewise.
7545 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7546 * linux-tile-low.c (tile_regsets): Likewise.
7547 * linux-x86-low.c (x86_regsets): Likewise.
7548 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7550 2015-10-29 Pedro Alves <palves@redhat.com>
7552 * linux-low.h (NULL_REGSET): Define.
7553 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
7554 * linux-arm-low.c (arm_regsets): Likewise.
7555 * linux-crisv32-low.c (cris_regsets): Likewise.
7556 * linux-m68k-low.c (m68k_regsets): Likewise.
7557 * linux-mips-low.c (mips_regsets): Likewise.
7558 * linux-nios2-low.c (nios2_regsets): Likewise.
7559 * linux-ppc-low.c (ppc_regsets): Likewise.
7560 * linux-s390-low.c (s390_regsets): Likewise.
7561 * linux-sh-low.c (sh_regsets): Likewise.
7562 * linux-sparc-low.c (sparc_regsets): Likewise.
7563 * linux-tic6x-low.c (tic6x_regsets): Likewise.
7564 * linux-tile-low.c (tile_regsets): Likewise.
7565 * linux-x86-low.c (x86_regsets): Likewise.
7566 * linux-xtensa-low.c (xtensa_regsets): Likewise.
7568 2015-10-26 Doug Evans <dje@google.com>
7570 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
7572 2015-10-26 Doug Evans <dje@google.com>
7574 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
7576 2015-10-26 Doug Evans <dje@google.com>
7578 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
7580 (attach_thread, find_new_threads_callback): Ditto.
7582 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7584 * mem-break.h (set_breakpoint_data): Remove.
7586 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7588 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
7589 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7590 (initialize_low): Remove set_breakpoint_data call.
7591 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
7592 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
7593 (initialize_low): Remove set_breakpoint_data call.
7594 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
7595 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
7596 (initialize_low): Remove set_breakpoint_data call.
7598 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
7600 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
7601 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
7602 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
7603 * target.h (target_breakpoint_kind_from_pc): New macro.
7605 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
7607 * linux-low.c (default_breakpoint_kind_from_pc): New function.
7608 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
7609 the default breakpoint kind.
7611 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7613 * linux-arm-low.c (arm_supports_z_point_type): Add software
7616 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7618 * linux-arm-low.c: Refactor breakpoint definitions.
7619 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
7620 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
7622 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7624 * Makefile.in: Add arm.c/o.
7625 * configure.srv: Likewise.
7626 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
7627 (arm_breakpoint_kind_from_pc): New function.
7628 (arm_sw_breakpoint_from_kind): Return proper kind.
7629 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
7631 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7633 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
7635 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
7636 (struct raw_breakpoint) <size>: Remove.
7637 (struct raw_breakpoint) <kind>: Add.
7638 (bp_size): New function.
7639 (bp_opcode): Likewise.
7640 (find_raw_breakpoint_at): Adjust for kind.
7641 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
7642 (remove_memory_breakpoint): Adjust for kind call bp_size.
7643 (set_raw_breakpoint_at): Adjust for kind.
7644 (set_breakpoint): Likewise.
7645 (set_breakpoint_at): Call breakpoint_kind_from_pc.
7646 (delete_raw_breakpoint): Adjust for kind.
7647 (delete_breakpoint): Likewise.
7648 (find_gdb_breakpoint): Likewise.
7649 (set_gdb_breakpoint_1): Likewise.
7650 (set_gdb_breakpoint): Likewise.
7651 (delete_gdb_breakpoint_1): Likewise.
7652 (delete_gdb_breakpoint): Likewise.
7653 (uninsert_raw_breakpoint): Likewise.
7654 (reinsert_raw_breakpoint): Likewise.
7655 (set_breakpoint_data): Remove.
7656 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
7657 (check_mem_read): Adjust for kind call bp_size.
7658 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
7659 (clone_one_breakpoint): Adjust for kind.
7660 * mem-break.h (set_gdb_breakpoint): Likewise.
7661 (delete_gdb_breakpoint): Likewise.
7662 * server.c (process_serial_event): Likewise.
7664 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7666 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
7667 (struct linux_target_ops) <breakpoint>: Remove.
7668 (struct linux_target_ops) <breakpoint_len>: Remove.
7669 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7670 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7671 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
7672 (arm_sw_breakpoint_from_kind): New function.
7673 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
7674 (struct linux_target_ops) <breakpoint>: Remove.
7675 (struct linux_target_ops) <breakpoint_len>: Remove.
7676 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7677 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7678 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
7679 (struct linux_target_ops) <breakpoint>: Remove.
7680 (struct linux_target_ops) <breakpoint_len>: Remove.
7681 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7682 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7683 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
7684 (struct linux_target_ops) <breakpoint>: Remove.
7685 (struct linux_target_ops) <breakpoint_len>: Remove.
7686 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7687 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7688 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
7689 and sw_breakpoint_from_kind to increment the pc.
7690 (linux_breakpoint_kind_from_pc): New function.
7691 (linux_sw_breakpoint_from_kind): New function.
7692 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
7693 (initialize_low): Call breakpoint_kind_from_pc and
7694 sw_breakpoint_from_kind to replace breakpoint_data/len.
7695 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
7697 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
7698 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
7699 (struct linux_target_ops) <breakpoint>: Remove.
7700 (struct linux_target_ops) <breakpoint_len>: Remove.
7701 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7702 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7703 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
7704 (struct linux_target_ops) <breakpoint>: Remove.
7705 (struct linux_target_ops) <breakpoint_len>: Remove.
7706 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7707 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7708 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
7709 (struct linux_target_ops) <breakpoint>: Remove.
7710 (struct linux_target_ops) <breakpoint_len>: Remove.
7711 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7712 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7713 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
7714 (struct linux_target_ops) <breakpoint>: Remove.
7715 (struct linux_target_ops) <breakpoint_len>: Remove.
7716 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7717 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7718 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
7719 (struct linux_target_ops) <breakpoint>: Remove.
7720 (struct linux_target_ops) <breakpoint_len>: Remove.
7721 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7722 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7723 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
7724 (struct linux_target_ops) <breakpoint>: Remove.
7725 (struct linux_target_ops) <breakpoint_len>: Remove.
7726 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7727 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7728 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
7729 (struct linux_target_ops) <breakpoint>: Remove.
7730 (struct linux_target_ops) <breakpoint_len>: Remove.
7731 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7732 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7733 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
7734 (struct linux_target_ops) <breakpoint>: Remove.
7735 (struct linux_target_ops) <breakpoint_len>: Remove.
7736 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7737 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7738 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
7739 (struct linux_target_ops) <breakpoint>: Remove.
7740 (struct linux_target_ops) <breakpoint_len>: Remove.
7741 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7742 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7743 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
7744 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
7745 (struct linux_target_ops) <breakpoint>: Remove.
7746 (struct linux_target_ops) <breakpoint_len>: Remove.
7747 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7748 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7749 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
7750 (struct linux_target_ops) <breakpoint>: Remove.
7751 (struct linux_target_ops) <breakpoint_len>: Remove.
7752 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
7753 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
7755 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
7757 * linux-cris-low.c (cris_get_pc): Remove void arg.
7759 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7761 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
7764 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
7766 * inferiors.c (thread_pid_matches_callback): New function.
7767 (find_thread_process): New function.
7768 (remove_thread): Reset current_thread.
7769 (remove_process): Assert threads have been removed first.
7771 2015-10-15 Yao Qi <yao.qi@linaro.org>
7773 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
7775 (aarch64_remove_point): Likewise.
7776 * regcache.c (regcache_register_size): New function.
7778 2015-10-12 Yao Qi <yao.qi@linaro.org>
7780 * linux-aarch64-low.c: Update all callers as emit_load_store
7781 is renamed to aarch64_emit_load_store.
7783 2015-10-12 Yao Qi <yao.qi@linaro.org>
7785 * linux-aarch64-low.c: Update all callers of function renaming
7786 from emit_insn to aarch64_emit_insn.
7788 2015-10-12 Yao Qi <yao.qi@linaro.org>
7790 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
7791 arch/aarch64-insn.h.
7792 (struct aarch64_memory_operand): Likewise.
7794 (emit_insn): Move to arch/aarch64-insn.c.
7795 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
7796 (emit_load_store): Move to arch/aarch64-insn.c.
7797 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
7798 (can_encode_int32): Remove.
7800 2015-10-12 Yao Qi <yao.qi@linaro.org>
7802 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
7803 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
7804 (aarch64_relocate_instruction): Likewise.
7805 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
7806 (struct aarch64_insn_visitor): Likewise.
7808 2015-10-12 Yao Qi <yao.qi@linaro.org>
7810 * linux-aarch64-low.c (struct aarch64_insn_data): New.
7811 (struct aarch64_insn_visitor): New.
7812 (struct aarch64_insn_relocation_data): New.
7813 (aarch64_ftrace_insn_reloc_b): New function.
7814 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7815 (aarch64_ftrace_insn_reloc_cb): Likewise.
7816 (aarch64_ftrace_insn_reloc_tb): Likewise.
7817 (aarch64_ftrace_insn_reloc_adr): Likewise.
7818 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
7819 (aarch64_ftrace_insn_reloc_others): Likewise.
7821 (aarch64_relocate_instruction): Use visitor.
7823 2015-10-12 Yao Qi <yao.qi@linaro.org>
7825 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
7826 int. Add argument buf.
7827 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
7828 aarch64_relocate_instruction.
7830 2015-10-12 Yao Qi <yao.qi@linaro.org>
7832 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
7833 argument insn. Remove local variable insn. Don't call
7835 (aarch64_install_fast_tracepoint_jump_pad): Call
7838 2015-09-30 Yao Qi <yao.qi@linaro.org>
7840 * linux-aarch64-low.c (emit_movk): Shorten a long line.
7841 (emit_load_store_pair): Likewise.
7843 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7845 * dll.c (match_dll): Add cast(s).
7846 (unloaded_dll): Likewise.
7847 * linux-low.c (second_thread_of_pid_p): Likewise.
7848 (delete_lwp_callback): Likewise.
7849 (count_events_callback): Likewise.
7850 (select_event_lwp_callback): Likewise.
7851 (linux_set_resume_request): Likewise.
7852 * server.c (accumulate_file_name_length): Likewise.
7853 (emit_dll_description): Likewise.
7854 (handle_qxfer_threads_worker): Likewise.
7855 (visit_actioned_threads): Likewise.
7856 * thread-db.c (any_thread_of): Likewise.
7857 * tracepoint.c (same_process_p): Likewise.
7858 (match_blocktype): Likewise.
7859 (build_traceframe_info_xml): Likewise.
7861 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
7863 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
7865 (gdb_unparse_agent_expr): Likewise.
7866 * hostio.c (require_data): Likewise.
7867 (handle_pread): Likewise.
7868 * linux-low.c (disable_regset): Likewise.
7869 (fetch_register): Likewise.
7870 (store_register): Likewise.
7871 (get_dynamic): Likewise.
7872 (linux_qxfer_libraries_svr4): Likewise.
7873 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
7874 (set_fast_tracepoint_jump): Likewise.
7875 (uninsert_fast_tracepoint_jumps_at): Likewise.
7876 (reinsert_fast_tracepoint_jumps_at): Likewise.
7877 (validate_inserted_breakpoint): Likewise.
7878 (clone_agent_expr): Likewise.
7879 * regcache.c (init_register_cache): Likewise.
7880 * remote-utils.c (putpkt_binary_1): Likewise.
7881 (decode_M_packet): Likewise.
7882 (decode_X_packet): Likewise.
7883 (look_up_one_symbol): Likewise.
7884 (relocate_instruction): Likewise.
7885 (monitor_output): Likewise.
7886 * server.c (handle_search_memory): Likewise.
7887 (handle_qxfer_exec_file): Likewise.
7888 (handle_qxfer_libraries): Likewise.
7889 (handle_qxfer): Likewise.
7890 (handle_query): Likewise.
7891 (handle_v_cont): Likewise.
7892 (handle_v_run): Likewise.
7893 (captured_main): Likewise.
7894 * target.c (write_inferior_memory): Likewise.
7895 * thread-db.c (try_thread_db_load_from_dir): Likewise.
7896 * tracepoint.c (init_trace_buffer): Likewise.
7897 (add_tracepoint_action): Likewise.
7898 (add_traceframe): Likewise.
7899 (add_traceframe_block): Likewise.
7900 (cmd_qtdpsrc): Likewise.
7901 (cmd_qtdv): Likewise.
7902 (cmd_qtstatus): Likewise.
7903 (response_source): Likewise.
7904 (response_tsv): Likewise.
7905 (cmd_qtnotes): Likewise.
7906 (gdb_collect): Likewise.
7907 (initialize_tracepoint): Likewise.
7909 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7911 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
7912 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
7913 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
7915 (enum aarch64_condition_codes): New enum.
7916 (w0): New static global.
7919 (struct aarch64_memory_operand) <type>: New
7920 MEMORY_OPERAND_POSTINDEX type.
7921 (postindex_memory_operand): New helper function.
7922 (emit_ret): New function.
7923 (emit_load_store_pair): New function, factored out of emit_stp
7924 with support for MEMORY_OPERAND_POSTINDEX.
7925 (emit_stp): Rewrite using emit_load_store_pair.
7926 (emit_ldp): New function.
7927 (emit_load_store): Likewise.
7928 (emit_ldr): Mention post-index instruction in comment.
7929 (emit_ldrh): New function.
7930 (emit_ldrb): New function.
7931 (emit_ldrsw): Mention post-index instruction in comment.
7932 (emit_str): Likewise.
7933 (emit_subs): New function.
7934 (emit_cmp): Likewise.
7935 (emit_and): Likewise.
7936 (emit_orr): Likewise.
7937 (emit_orn): Likewise.
7938 (emit_eor): Likewise.
7939 (emit_mvn): Likewise.
7940 (emit_lslv): Likewise.
7941 (emit_lsrv): Likewise.
7942 (emit_asrv): Likewise.
7943 (emit_mul): Likewise.
7944 (emit_sbfm): Likewise.
7945 (emit_sbfx): Likewise.
7946 (emit_ubfm): Likewise.
7947 (emit_ubfx): Likewise.
7948 (emit_csinc): Likewise.
7949 (emit_cset): Likewise.
7950 (emit_nop): Likewise.
7951 (emit_ops_insns): New helper function.
7952 (emit_pop): Likewise.
7953 (emit_push): Likewise.
7954 (aarch64_emit_prologue): New function.
7955 (aarch64_emit_epilogue): Likewise.
7956 (aarch64_emit_add): Likewise.
7957 (aarch64_emit_sub): Likewise.
7958 (aarch64_emit_mul): Likewise.
7959 (aarch64_emit_lsh): Likewise.
7960 (aarch64_emit_rsh_signed): Likewise.
7961 (aarch64_emit_rsh_unsigned): Likewise.
7962 (aarch64_emit_ext): Likewise.
7963 (aarch64_emit_log_not): Likewise.
7964 (aarch64_emit_bit_and): Likewise.
7965 (aarch64_emit_bit_or): Likewise.
7966 (aarch64_emit_bit_xor): Likewise.
7967 (aarch64_emit_bit_not): Likewise.
7968 (aarch64_emit_equal): Likewise.
7969 (aarch64_emit_less_signed): Likewise.
7970 (aarch64_emit_less_unsigned): Likewise.
7971 (aarch64_emit_ref): Likewise.
7972 (aarch64_emit_if_goto): Likewise.
7973 (aarch64_emit_goto): Likewise.
7974 (aarch64_write_goto_address): Likewise.
7975 (aarch64_emit_const): Likewise.
7976 (aarch64_emit_call): Likewise.
7977 (aarch64_emit_reg): Likewise.
7978 (aarch64_emit_pop): Likewise.
7979 (aarch64_emit_stack_flush): Likewise.
7980 (aarch64_emit_zero_ext): Likewise.
7981 (aarch64_emit_swap): Likewise.
7982 (aarch64_emit_stack_adjust): Likewise.
7983 (aarch64_emit_int_call_1): Likewise.
7984 (aarch64_emit_void_call_2): Likewise.
7985 (aarch64_emit_eq_goto): Likewise.
7986 (aarch64_emit_ne_goto): Likewise.
7987 (aarch64_emit_lt_goto): Likewise.
7988 (aarch64_emit_le_goto): Likewise.
7989 (aarch64_emit_gt_goto): Likewise.
7990 (aarch64_emit_ge_got): Likewise.
7991 (aarch64_emit_ops_impl): New static global variable.
7992 (aarch64_emit_ops): New target function, return
7993 &aarch64_emit_ops_impl.
7994 (struct linux_target_ops): Install it.
7996 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
7998 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
7999 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
8001 * linux-aarch64-ipa.c: New file.
8002 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
8004 (aarch64_get_thread_area): New target method.
8005 (extract_signed_bitfield): New helper function.
8006 (aarch64_decode_ldr_literal): New function.
8007 (enum aarch64_opcodes): New enum.
8008 (struct aarch64_register): New struct.
8009 (struct aarch64_operand): New struct.
8010 (x0): New static global.
8019 (aarch64_register): New helper function.
8020 (register_operand): Likewise.
8021 (immediate_operand): Likewise.
8022 (struct aarch64_memory_operand): New struct.
8023 (offset_memory_operand): New helper function.
8024 (preindex_memory_operand): Likewise.
8025 (enum aarch64_system_control_registers): New enum.
8026 (ENCODE): New macro.
8027 (emit_insn): New helper function.
8028 (emit_b): New function.
8029 (emit_bcond): Likewise.
8030 (emit_cb): Likewise.
8031 (emit_tb): Likewise.
8032 (emit_blr): Likewise.
8033 (emit_stp): Likewise.
8034 (emit_ldp_q_offset): Likewise.
8035 (emit_stp_q_offset): Likewise.
8036 (emit_load_store): Likewise.
8037 (emit_ldr): Likewise.
8038 (emit_ldrsw): Likewise.
8039 (emit_str): Likewise.
8040 (emit_ldaxr): Likewise.
8041 (emit_stxr): Likewise.
8042 (emit_stlr): Likewise.
8043 (emit_data_processing_reg): Likewise.
8044 (emit_data_processing): Likewise.
8045 (emit_add): Likewise.
8046 (emit_sub): Likewise.
8047 (emit_mov): Likewise.
8048 (emit_movk): Likewise.
8049 (emit_mov_addr): Likewise.
8050 (emit_mrs): Likewise.
8051 (emit_msr): Likewise.
8052 (emit_sevl): Likewise.
8053 (emit_wfe): Likewise.
8054 (append_insns): Likewise.
8055 (can_encode_int32_in): New helper function.
8056 (aarch64_relocate_instruction): New function.
8057 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
8058 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
8059 (struct linux_target_ops): Install aarch64_get_thread_area,
8060 aarch64_install_fast_tracepoint_jump_pad and
8061 aarch64_get_min_fast_tracepoint_insn_len.
8063 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
8065 * Makefile.in (aarch64-insn.o): New rule.
8066 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
8068 2015-09-21 Yao Qi <yao.qi@linaro.org>
8070 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
8072 2015-09-21 Yao Qi <yao.qi@linaro.org>
8074 * tracepoint.c (max_jump_pad_size): Remove.
8076 2015-09-18 Yao Qi <yao.qi@linaro.org>
8078 * linux-aarch64-low.c: Don't include sys/uio.h.
8079 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
8081 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
8083 * tracepoint.c (eval_result_type): Change prototype.
8084 (condition_true_at_tracepoint): Fix argument to compiled_cond.
8086 2015-09-15 Pedro Alves <palves@redhat.com>
8088 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
8089 Check whether to report exec events instead of checking whether
8090 multiprocess is enabled.
8092 2015-09-15 Pedro Alves <palves@redhat.com>
8095 * remote-utils.c (prepare_resume_reply): Merge
8096 TARGET_WAITKIND_VFORK_DONE switch case with the
8097 TARGET_WAITKIND_FORKED case.
8099 2015-09-15 Yao Qi <yao.qi@linaro.org>
8101 * server.c (handle_query): Check string comparison using
8102 "else if" instead of "if".
8104 2015-09-15 Yao Qi <yao.qi@linaro.org>
8106 * server.c (vCont_supported): New global variable.
8107 (handle_query): Set vCont_supported to 1 if "vContSupported+"
8108 matches. Append ";vContSupported+" to own_buf.
8109 (handle_v_requests): Append ";s;S" to own_buf if target supports
8110 hardware single step or vCont_supported is false.
8111 (capture_main): Set vCont_supported to zero.
8113 2015-09-15 Yao Qi <yao.qi@linaro.org>
8115 * linux-low.c (linux_supports_conditional_breakpoints): Rename
8117 (linux_supports_hardware_single_step): ... New function.
8118 (linux_target_ops): Update.
8119 * lynx-low.c (lynx_target_ops): Set field
8120 supports_hardware_single_step to target_can_do_hardware_single_step.
8121 * nto-low.c (nto_target_ops): Likewise.
8122 * spu-low.c (spu_target_ops): Likewise.
8123 * win32-low.c (win32_target_ops): Likewise.
8124 * target.c (target_can_do_hardware_single_step): New function.
8125 * target.h (struct target_ops) <supports_conditional_breakpoints>:
8126 Remove. <supports_hardware_single_step>: New field.
8127 (target_supports_conditional_breakpoints): Remove.
8128 (target_supports_hardware_single_step): New macro.
8129 (target_can_do_hardware_single_step): Declare.
8130 * server.c (handle_query): Use target_supports_hardware_single_step
8131 instead of target_supports_conditional_breakpoints.
8133 2015-09-15 Yao Qi <yao.qi@linaro.org>
8135 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
8137 (struct linux_target_ops the_low_target): Install
8138 aarch64_linux_siginfo_fixup.
8140 2015-09-11 Don Breazeal <donb@codesourcery.com>
8141 Luis Machado <lgustavo@codesourcery.com>
8143 * linux-low.c (linux_mourn): Static declaration.
8144 (linux_arch_setup): Move in front of
8145 handle_extended_wait.
8146 (linux_arch_setup_thread): New function.
8147 (handle_extended_wait): Handle exec events. Call
8148 linux_arch_setup_thread. Make event_lwp argument a
8149 pointer-to-a-pointer.
8150 (check_zombie_leaders): Do not check stopped threads.
8151 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
8152 (linux_low_filter_event): Add lwp and thread for exec'ing
8153 non-leader thread if leader thread has been deleted.
8154 Refactor code into linux_arch_setup_thread and call it.
8155 Pass child lwp pointer by reference to handle_extended_wait.
8156 (linux_wait_for_event_filtered): Update comment.
8157 (linux_wait_1): Prevent clobbering exec event status.
8158 (linux_supports_exec_events): New function.
8159 (linux_target_ops) <supports_exec_events>: Initialize new member.
8160 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
8162 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
8163 * server.c (report_exec_events): New global variable.
8164 (handle_query): Handle qSupported query for exec-events feature.
8165 (captured_main): Initialize report_exec_events.
8166 * server.h (report_exec_events): Declare new global variable.
8167 * target.h (struct target_ops) <supports_exec_events>: New
8169 (target_supports_exec_events): New macro.
8170 * win32-low.c (win32_target_ops) <supports_exec_events>:
8171 Initialize new member.
8173 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
8175 * linux-low.c (linux_low_enable_btrace): Remove.
8176 (linux_target_ops): Replace linux_low_enable_btrace with
8177 linux_enable_btrace.
8179 2015-09-03 Yao Qi <yao.qi@linaro.org>
8181 * linux-aarch64-low.c (aarch64_insert_point): Call
8182 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
8185 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8187 * linux-low.c (check_stopped_by_breakpoint): Use
8188 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
8190 2015-08-27 Pedro Alves <palves@redhat.com>
8192 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
8194 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
8196 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
8197 the XNEW-family equivalent.
8198 (compile_bytecodes): Likewise.
8199 * dll.c (loaded_dll): Likewise.
8200 * event-loop.c (append_callback_event): Likewise.
8201 (create_file_handler): Likewise.
8202 (create_file_event): Likewise.
8203 * hostio.c (handle_open): Likewise.
8204 * inferiors.c (add_thread): Likewise.
8205 (add_process): Likewise.
8206 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
8207 * linux-arm-low.c (arm_new_process): Likewise.
8208 (arm_new_thread): Likewise.
8209 * linux-low.c (add_to_pid_list): Likewise.
8210 (linux_add_process): Likewise.
8211 (handle_extended_wait): Likewise.
8212 (add_lwp): Likewise.
8213 (enqueue_one_deferred_signal): Likewise.
8214 (enqueue_pending_signal): Likewise.
8215 (linux_resume_one_lwp_throw): Likewise.
8216 (linux_resume_one_thread): Likewise.
8217 (linux_read_memory): Likewise.
8218 (linux_write_memory): Likewise.
8219 * linux-mips-low.c (mips_linux_new_process): Likewise.
8220 (mips_linux_new_thread): Likewise.
8221 (mips_add_watchpoint): Likewise.
8222 * linux-x86-low.c (initialize_low_arch): Likewise.
8223 * lynx-low.c (lynx_add_process): Likewise.
8224 * mem-break.c (set_raw_breakpoint_at): Likewise.
8225 (set_breakpoint): Likewise.
8226 (add_condition_to_breakpoint): Likewise.
8227 (add_commands_to_breakpoint): Likewise.
8228 (clone_agent_expr): Likewise.
8229 (clone_one_breakpoint): Likewise.
8230 * regcache.c (new_register_cache): Likewise.
8231 * remote-utils.c (look_up_one_symbol): Likewise.
8232 * server.c (queue_stop_reply): Likewise.
8233 (start_inferior): Likewise.
8234 (queue_stop_reply_callback): Likewise.
8235 (handle_target_event): Likewise.
8236 * spu-low.c (fetch_ppc_memory): Likewise.
8237 (store_ppc_memory): Likewise.
8238 * target.c (set_target_ops): Likewise.
8239 * thread-db.c (thread_db_load_search): Likewise.
8240 (try_thread_db_load_1): Likewise.
8241 * tracepoint.c (add_tracepoint): Likewise.
8242 (add_tracepoint_action): Likewise.
8243 (create_trace_state_variable): Likewise.
8244 (cmd_qtdpsrc): Likewise.
8245 (cmd_qtro): Likewise.
8246 (add_while_stepping_state): Likewise.
8247 * win32-low.c (child_add_thread): Likewise.
8248 (get_image_name): Likewise.
8250 2015-08-25 Yao Qi <yao.qi@linaro.org>
8252 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
8254 2015-08-25 Yao Qi <yao.qi@linaro.org>
8256 * Makefile.in (aarch64-linux.o): New rule.
8257 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
8259 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
8260 (aarch64_init_debug_reg_state): Make it extern.
8261 (aarch64_linux_prepare_to_resume): Remove.
8263 2015-08-25 Yao Qi <yao.qi@linaro.org>
8265 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
8266 lwp_arch_private_info and ptid_of_lwp.
8268 2015-08-25 Yao Qi <yao.qi@linaro.org>
8270 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
8271 Find proc_info by find_process_pid. All callers updated.
8273 2015-08-25 Yao Qi <yao.qi@linaro.org>
8275 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
8277 (debug_reg_change_callback): Remove.
8278 (aarch64_notify_debug_reg_change): Remove.
8280 2015-08-25 Yao Qi <yao.qi@linaro.org>
8282 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
8283 Call current_lwp_ptid.
8285 2015-08-25 Yao Qi <yao.qi@linaro.org>
8287 * linux-aarch64-low.c (debug_reg_change_callback): Use
8290 2015-08-25 Yao Qi <yao.qi@linaro.org>
8292 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
8294 2015-08-25 Yao Qi <yao.qi@linaro.org>
8296 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
8298 2015-08-25 Yao Qi <yao.qi@linaro.org>
8300 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
8303 2015-08-25 Yao Qi <yao.qi@linaro.org>
8305 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
8307 (debug_reg_change_callback): Remove argument entry and add argument
8308 lwp. Remove local variable thread. Don't print thread id in the
8309 debugging output. Don't check whether pid of thread equals to pid.
8310 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
8311 iterate_over_lwps instead find_inferior.
8313 2015-08-24 Pedro Alves <palves@redhat.com>
8315 * inferiors.c (get_first_process): New function.
8316 * inferiors.h (get_first_process): New declaration.
8317 * remote-utils.c (read_ptid): Default to the first process in the
8318 list, instead of to the current thread's process.
8320 2015-08-24 Pedro Alves <palves@redhat.com>
8322 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
8323 * event-loop.c: Likewise.
8324 * remote-utils.c: Likewise.
8325 * tracepoint.c: Likewise.
8327 2015-08-24 Pedro Alves <palves@redhat.com>
8329 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
8332 2015-08-21 Pedro Alves <palves@redhat.com>
8334 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
8335 instead of literal 1.
8337 2015-08-21 Pedro Alves <palves@redhat.com>
8339 * tdesc.c (default_description): Explicitly zero-initialize.
8341 2015-08-21 Pedro Alves <palves@redhat.com>
8344 * inferiors.c (remove_thread): Discard any pending stop reply for
8346 * server.c (remove_all_on_match_pid): Rename to ...
8347 (remove_all_on_match_ptid): ... this. Work with a filter ptid
8349 (discard_queued_stop_replies): Change parameter to a ptid. Now
8351 (handle_v_kill, kill_inferior_callback, captured_main)
8352 (process_serial_event): Adjust.
8353 * server.h (discard_queued_stop_replies): Declare.
8355 2015-08-21 Pedro Alves <palves@redhat.com>
8357 * linux-low.c (wait_for_sigstop): Always switch to no thread
8358 selected if the previously current thread dies.
8359 * lynx-low.c (lynx_request_interrupt): Use the first thread's
8360 process instead of the current thread's.
8361 * remote-utils.c (input_interrupt): Don't check if there's no
8363 * server.c (gdb_read_memory, gdb_write_memory): If setting the
8364 current thread to the general thread fails, error out.
8365 (handle_qxfer_auxv, handle_qxfer_libraries)
8366 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
8367 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
8368 (handle_query): Check if there's a thread selected instead of
8369 checking whether there's any thread in the thread list.
8370 (handle_qxfer_threads, handle_qxfer_btrace)
8371 (handle_qxfer_btrace_conf): Don't error out early if there's no
8372 thread in the thread list.
8373 (handle_v_cont, myresume): Don't set the current thread to the
8375 (process_serial_event) <Hg handling>: Also set thread_id if the
8376 previous general thread is still alive.
8377 (process_serial_event) <g/G handling>: If setting the current
8378 thread to the general thread fails, error out.
8379 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
8380 thread's lwp instead of the current thread's.
8381 * target.c (set_desired_thread): If the desired thread was not
8382 found, leave the current thread pointing to NULL. Return an int
8383 (boolean) indicating success.
8384 * target.h (set_desired_thread): Change return type to int.
8386 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
8388 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
8389 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
8391 (ps_get_thread_area): New function.
8393 2015-08-19 Gary Benson <gbenson@redhat.com>
8395 * hostio.c (handle_pread): Do not attempt to read more data
8396 than hostio_reply_with_data can fit in a packet.
8398 2015-08-18 Joel Brobecker <brobecker@adacore.com>
8400 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
8402 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
8404 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
8406 2015-08-06 Pedro Alves <palves@redhat.com>
8408 * tracepoint.c (expr_eval_result): Now an int.
8410 2015-08-06 Pedro Alves <palves@redhat.com>
8412 * gdbthread.h (struct regcache): Forward declare.
8413 (struct thread_info) <regcache_data>: Now a struct regcache
8415 * inferiors.c (inferior_regcache_data)
8416 (set_inferior_regcache_data): Now work with struct regcache
8418 * inferiors.h (struct regcache): Forward declare.
8419 (inferior_regcache_data, set_inferior_regcache_data): Now work
8420 with struct regcache pointers.
8421 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
8422 (free_register_cache_thread): Remove struct regcache pointer
8425 2015-08-06 Pedro Alves <palves@redhat.com>
8427 * server.c (captured_main): On error, print the exception message
8428 to stderr, and if run_once is set, throw a quit.
8430 2015-08-06 Pedro Alves <palves@redhat.com>
8432 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
8435 2015-08-06 Pedro Alves <palves@redhat.com>
8437 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
8438 reading beyond the passed in buffer length.
8440 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
8442 * tracepoint.c (symbol_list) <required>: Remove.
8444 2015-08-06 Pedro Alves <palves@redhat.com>
8446 * linux-low.c (handle_extended_wait): Set the fork child's suspend
8447 count if stopping and suspending threads.
8448 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
8449 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
8450 (linux_detach): Complete an ongoing step-over.
8451 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
8453 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
8454 (linux_wait_1): If passing a signal to the inferior after
8455 finishing a step-over, unsuspend and re-resume all lwps. If we
8456 see a single-step event but the thread should be continuing, don't
8457 pass the trap to gdb.
8458 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
8459 internal_error instead of gdb_assert.
8460 (enqueue_pending_signal): New function.
8461 (check_ptrace_stopped_lwp_gone): Add debug output.
8462 (start_step_over): Use internal_error instead of gdb_assert.
8463 (complete_ongoing_step_over): New function.
8464 (linux_resume_one_thread): Don't resume a suspended thread.
8465 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
8468 2015-08-06 Pedro Alves <palves@redhat.com>
8470 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
8471 (linux_thread_alive): Use lwp_is_marked_dead.
8472 (extended_event_reported): Delete.
8473 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
8474 instead of extended_event_reported.
8475 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
8477 (lwp_is_marked_dead): New function.
8478 (lwp_running): Use lwp_is_marked_dead.
8479 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
8482 2015-08-06 Pedro Alves <palves@redhat.com>
8484 * linux-low.c (linux_wait_1): Move fork event output out of the
8485 !report_to_gdb check. Pass event_child->waitstatus to
8486 target_waitstatus_to_string instead of ourstatus.
8488 2015-08-04 Yao Qi <yao.qi@linaro.org>
8490 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
8491 if current_thread is 32 bit.
8493 2015-08-04 Yao Qi <yao.qi@linaro.org>
8495 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
8496 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
8497 * server.c (extended_protocol): Remove "static".
8498 * server.h (extended_protocol): Declare it.
8500 2015-08-04 Yao Qi <yao.qi@linaro.org>
8502 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
8503 both aarch64 and aarch32.
8504 (aarch64_set_pc): Likewise.
8506 2015-08-04 Yao Qi <yao.qi@linaro.org>
8508 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
8509 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
8510 arm-with-neon.xml to srv_xmlfiles.
8511 * linux-aarch64-low.c: Include linux-aarch32-low.h.
8512 (is_64bit_tdesc): New function.
8513 (aarch64_linux_read_description): New function.
8514 (aarch64_arch_setup): Call aarch64_linux_read_description.
8515 (regs_info): Rename to regs_info_aarch64.
8516 (aarch64_regs_info): Return right regs_info.
8517 (initialize_low_arch): Call initialize_low_arch_aarch32.
8519 2015-08-04 Yao Qi <yao.qi@linaro.org>
8521 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
8522 * linux-aarch32-low.c: New file.
8523 * linux-aarch32-low.h: New file.
8524 * linux-arm-low.c (arm_fill_gregset): Move it to
8525 linux-aarch32-low.c.
8526 (arm_store_gregset): Likewise.
8527 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
8528 (arm_store_vfpregset): Call arm_store_vfpregset_num.
8529 (arm_arch_setup): Check if PTRACE_GETREGSET works.
8530 (regs_info): Rename to regs_info_arm.
8531 (arm_regs_info): Return regs_info_aarch32 if
8532 have_ptrace_getregset is 1 and target description is
8533 arm_with_neon or arm_with_vfpv3.
8534 (initialize_low_arch): Don't call init_registers_arm_with_neon.
8535 Call initialize_low_arch_aarch32 instead.
8537 2015-08-04 Yao Qi <yao.qi@linaro.org>
8539 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
8540 * linux-low.c: ... here.
8541 * linux-low.h (have_ptrace_getregset): Declare it.
8543 2015-08-04 Pedro Alves <palves@redhat.com>
8545 * thread-db.c (struct thread_db): Use new typedefs.
8546 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
8548 (disable_thread_event_reporting): Cast result of dlsym to
8549 destination function pointer type.
8550 (thread_db_mourn): Use td_ta_delete_ftype.
8552 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
8554 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
8556 (CDX_BREAKPOINT): Define for R2.
8557 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
8558 (the_low_target): Add comments.
8560 2015-07-30 Yao Qi <yao.qi@linaro.org>
8562 * linux-arm-low.c (arm_hwcap): Remove it.
8563 (arm_read_description): New local variable arm_hwcap. Don't
8564 set arm_hwcap to zero.
8566 2015-07-30 Yao Qi <yao.qi@linaro.org>
8568 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
8569 Use regcache->tdesc instead.
8570 (arm_store_wmmxregset): Likewise.
8571 (arm_fill_vfpregset): Likewise.
8572 (arm_store_vfpregset): Likewise.
8574 2015-07-30 Yao Qi <yao.qi@linaro.org>
8576 * linux-arm-low.c: Include arch/arm.h.
8577 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
8578 (arm_store_gregset): Likewise.
8580 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
8582 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
8583 ptrace's 4th parameter.
8585 2015-07-27 Yao Qi <yao.qi@linaro.org>
8587 * configure.srv (case aarch64*-*-linux*): Don't set
8590 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
8592 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
8594 * linux-arm-low.c: Likewise.
8595 * linux-cris-low.c: Likewise.
8596 * linux-crisv32-low.c: Likewise.
8597 * linux-low.c: Likewise.
8598 * linux-m68k-low.c: Likewise.
8599 * linux-mips-low.c: Likewise.
8600 * linux-nios2-low.c: Likewise.
8601 * linux-s390-low.c: Likewise.
8602 * linux-sparc-low.c: Likewise.
8603 * linux-tic6x-low.c: Likewise.
8604 * linux-tile-low.c: Likewise.
8605 * linux-x86-low.c: Likewise.
8607 2015-07-24 Pedro Alves <palves@redhat.com>
8609 * config.in: Regenerate.
8610 * configure: Regenerate.
8612 2015-07-24 Pedro Alves <palves@redhat.com>
8614 * acinclude.m4: Include ../ptrace.m4.
8615 * configure.ac: Call GDB_AC_PTRACE.
8616 * config.in, configure: Regenerate.
8618 2015-07-24 Yao Qi <yao.qi@linaro.org>
8620 * linux-low.c (linux_create_inferior): Remove setting to
8621 proc->priv->new_inferior.
8622 (linux_attach): Likewise.
8623 (linux_low_filter_event): Likewise.
8624 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
8626 2015-07-24 Yao Qi <yao.qi@linaro.org>
8628 * linux-low.c (linux_arch_setup): New function.
8629 (linux_low_filter_event): If proc->tdesc is NULL and
8630 proc->attached is true, call the_low_target.arch_setup.
8631 Otherwise, keep status pending, and return.
8632 (linux_resume_one_lwp_throw): Don't call get_pc if
8633 thread->while_stepping isn't NULL. Don't call
8634 get_thread_regcache if proc->tdesc is NULL.
8635 (need_step_over_p): Return 0 if proc->tdesc is NULL.
8636 (linux_target_ops): Install arch_setup.
8637 * server.c (start_inferior): Call the_target->arch_setup.
8638 * target.h (struct target_ops) <arch_setup>: New field.
8639 (target_arch_setup): New marco.
8640 * lynx-low.c (lynx_target_ops): Update.
8641 * nto-low.c (nto_target_ops): Update.
8642 * spu-low.c (spu_target_ops): Update.
8643 * win32-low.c (win32_target_ops): Update.
8645 2015-07-24 Yao Qi <yao.qi@linaro.org>
8647 * linux-low.c (linux_add_process): Don't set
8648 proc->priv->new_inferior.
8649 (linux_create_inferior): Set proc->priv->new_inferior to 1.
8650 (linux_attach): Likewise.
8652 2015-07-24 Yao Qi <yao.qi@linaro.org>
8654 * server.c (start_inferior): Code refactor.
8656 2015-07-24 Yao Qi <yao.qi@linaro.org>
8658 * server.c (process_serial_event): Set general_thread.
8660 2015-07-21 Yao Qi <yao.qi@linaro.org>
8662 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
8663 aarch64_linux_get_debug_reg_capacity.
8665 2015-07-17 Yao Qi <yao.qi@linaro.org>
8667 * Makefile.in (aarch64-linux-hw-point.o): New rule.
8668 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
8669 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
8670 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
8671 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
8672 (AARCH64_HWP_ALIGNMENT): Likewise.
8673 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
8674 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
8675 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
8676 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
8677 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
8678 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
8679 (struct aarch64_debug_reg_state): Likewise.
8680 (struct arch_lwp_info): Likewise.
8681 (aarch64_align_watchpoint): Likewise.
8682 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
8683 (aarch64_watchpoint_length): Likewise.
8684 (aarch64_point_encode_ctrl_reg): Likewise
8685 (aarch64_point_is_aligned): Likewise.
8686 (aarch64_align_watchpoint): Likewise.
8687 (aarch64_linux_set_debug_regs):
8688 (aarch64_dr_state_insert_one_point): Likewise.
8689 (aarch64_dr_state_remove_one_point): Likewise.
8690 (aarch64_handle_breakpoint): Likewise.
8691 (aarch64_handle_aligned_watchpoint): Likewise.
8692 (aarch64_handle_unaligned_watchpoint): Likewise.
8693 (aarch64_handle_watchpoint): Likewise.
8695 2015-07-17 Yao Qi <yao.qi@linaro.org>
8697 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
8698 and don't aarch64_get_debug_reg_state. All callers update.
8699 (aarch64_handle_aligned_watchpoint): Likewise.
8700 (aarch64_handle_unaligned_watchpoint): Likewise.
8701 (aarch64_handle_watchpoint): Likewise.
8702 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
8703 (aarch64_remove_point): Likewise.
8705 2015-07-17 Yao Qi <yao.qi@linaro.org>
8707 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
8709 (aarch64_handle_unaligned_watchpoint): Likewise.
8711 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8713 Revert the previous 3 commits:
8714 Move gdb_regex* to common/
8715 Move linux_find_memory_regions_full & co.
8716 gdbserver build-id attribute generator
8718 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8719 Jan Kratochvil <jan.kratochvil@redhat.com>
8721 gdbserver build-id attribute generator.
8722 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
8723 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
8724 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
8726 (get_dynamic): Use find_pdhr to traverse program headers.
8727 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
8728 (compare_mapping_entry_range, struct find_memory_region_callback_data)
8729 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
8730 (get_hex_build_id): New.
8731 (linux_qxfer_libraries_svr4): Add optional build-id attribute
8732 to reply XML document.
8734 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8735 Jan Kratochvil <jan.kratochvil@redhat.com>
8737 * target.c: Include target/target-utils.h and fcntl.h.
8738 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
8739 (target_fileio_read_stralloc): New functions.
8741 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8743 * Makefile.in (OBS): Add gdb_regex.o.
8745 * config.in: Rebuilt.
8746 * configure: Rebuilt.
8748 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
8749 Jan Kratochvil <jan.kratochvil@redhat.com>
8751 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
8752 * Makefile.in (OBS): Add target-utils.o.
8753 (linux-maps.o, target-utils.o): New.
8754 * configure.srv (srv_linux_obj): Add linux-maps.o.
8756 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
8758 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
8760 (the_low_target): Install it.
8762 2015-07-14 Pedro Alves <palves@redhat.com>
8764 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
8765 Instead, ignore ECHILD, and throw an error for other errnos.
8767 2015-07-10 Pedro Alves <palves@redhat.com>
8769 * event-loop.c (struct callback_event) <data>: Change type to
8770 gdb_client_data instance instead of gdb_client_data pointer.
8771 (append_callback_event): Adjust.
8773 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
8775 * linux-aarch64-low.c: Add comments for each linux_target_ops
8776 method. Remove comments already covered in target_ops and
8777 linux_target_ops definitions.
8778 (the_low_target): Add comments for each unimplemented method.
8780 2015-07-09 Yao Qi <yao.qi@linaro.org>
8782 * linux-aarch64-low.c (aarch64_regmap): Remove.
8783 (aarch64_usrregs_info): Remove.
8784 (regs_info): Set field usrregs to NULL.
8786 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
8788 * linux-low.c: Include "rsp-low.h"
8789 (linux_low_encode_pt_config, linux_low_encode_raw): New.
8790 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
8791 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
8792 (handle_btrace_enable_pt): New.
8793 (handle_btrace_general_set): Support "pt".
8794 (handle_btrace_conf_general_set): Support "pt:size".
8796 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8798 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
8801 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
8803 * linux-aarch64-low.c: Remove comment about endianness.
8804 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
8805 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
8808 2015-06-24 Gary Benson <gbenson@redhat.com>
8810 * linux-i386-ipa.c (stdint.h): Do not include.
8811 * lynx-i386-low.c (stdint.h): Likewise.
8812 * lynx-ppc-low.c (stdint.h): Likewise.
8813 * mem-break.c (stdint.h): Likewise.
8814 * thread-db.c (stdint.h): Likewise.
8815 * tracepoint.c (stdint.h): Likewise.
8816 * win32-low.c (stdint.h): Likewise.
8818 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
8820 * server.c (write_qxfer_response): Update call to
8821 remote_escape_output.
8823 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
8824 Jan Kratochvil <jan.kratochvil@redhat.com>
8826 Merge multiple hex conversions.
8827 * gdbreplay.c (tohex): Rename to 'fromhex'.
8828 (logchar): Use fromhex.
8830 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8832 * server.c (handle_qxfer_libraries): Set `version' attribute for
8835 2015-06-10 Gary Benson <gbenson@redhat.com>
8837 * target.h (struct target_ops) <multifs_open>: New field.
8838 <multifs_unlink>: Likewise.
8839 <multifs_readlink>: Likewise.
8840 * linux-low.c (nat/linux-namespaces.h): New include.
8841 (linux_target_ops): Initialize the_target->multifs_open,
8842 the_target->multifs_unlink and the_target->multifs_readlink.
8843 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
8844 * hostio.c (hostio_fs_pid): New static variable.
8845 (hostio_handle_new_gdb_connection): New function.
8846 (handle_setfs): Likewise.
8847 (handle_open): Use the_target->multifs_open as appropriate.
8848 (handle_unlink): Use the_target->multifs_unlink as appropriate.
8849 (handle_readlink): Use the_target->multifs_readlink as
8851 (handle_vFile): Handle vFile:setfs packets.
8852 * server.c (handle_query): Call hostio_handle_new_gdb_connection
8853 after target_handle_new_gdb_connection.
8855 2015-06-10 Gary Benson <gbenson@redhat.com>
8857 * configure.ac (AC_CHECK_FUNCS): Add setns.
8858 * config.in: Regenerate.
8859 * configure: Likewise.
8860 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
8861 (linux-namespaces.o): New rule.
8862 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
8864 2015-06-09 Gary Benson <gbenson@redhat.com>
8866 * hostio.c (handle_open): Process mode argument with
8867 fileio_to_host_mode.
8869 2015-06-01 Yao Qi <yao.qi@linaro.org>
8871 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
8872 * linux-x86-low.c: Likewise.
8874 2015-05-28 Don Breazeal <donb@codesourcery.com>
8876 * linux-low.c (handle_extended_wait): Initialize
8877 thread_info.last_resume_kind for new fork children.
8879 2015-05-15 Pedro Alves <palves@redhat.com>
8881 * target.h (target_handle_new_gdb_connection): Rewrite using if
8882 wrapped in do/while.
8884 2015-05-14 Joel Brobecker <brobecker@adacore.com>
8886 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
8887 * configure, config.in: Regenerate.
8888 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
8891 2015-05-12 Don Breazeal <donb@codesourcery.com>
8893 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
8894 PTRACE_EVENT_VFORK_DONE.
8895 (linux_low_ptrace_options, extended_event_reported): Add vfork
8897 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
8898 and "vforkdone" for RSP 'T' Stop Reply Packet.
8899 * server.h (report_vfork_events): Declare
8902 2015-05-12 Don Breazeal <donb@codesourcery.com>
8904 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
8905 (the_low_target) <new_fork>: Initialize new member.
8906 * linux-arm-low.c (arm_new_fork): New function.
8907 (the_low_target) <new_fork>: Initialize new member.
8908 * linux-low.c (handle_extended_wait): Call new target function
8910 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
8911 * linux-mips-low.c (mips_add_watchpoint): New function
8912 extracted from mips_insert_point.
8913 (the_low_target) <new_fork>: Initialize new member.
8914 (mips_linux_new_fork): New function.
8915 (mips_insert_point): Call mips_add_watchpoint.
8916 * linux-x86-low.c (x86_linux_new_fork): New function.
8917 (the_low_target) <new_fork>: Initialize new member.
8919 2015-05-12 Don Breazeal <donb@codesourcery.com>
8921 * linux-low.c (handle_extended_wait): Implement return value,
8922 rename argument 'event_child' to 'event_lwp', handle
8923 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
8924 (linux_low_ptrace_options): New function.
8925 (linux_low_filter_event): Call linux_low_ptrace_options,
8926 use different argument fo linux_enable_event_reporting,
8927 use return value from handle_extended_wait.
8928 (extended_event_reported): New function.
8929 (linux_wait_1): Call extended_event_reported and set
8930 status to report fork events.
8931 (linux_write_memory): Add pid to debug message.
8932 (reset_lwp_ptrace_options_callback): New function.
8933 (linux_handle_new_gdb_connection): New function.
8934 (linux_target_ops): Initialize new structure member.
8935 * linux-low.h (struct lwp_info) <waitstatus>: New member.
8936 * lynx-low.c: Initialize new structure member.
8937 * remote-utils.c (prepare_resume_reply): Implement stop reason
8938 "fork" for "T" stop message.
8939 * server.c (handle_query): Call handle_new_gdb_connection.
8940 * server.h (report_fork_events): Declare global flag.
8941 * target.h (struct target_ops) <handle_new_gdb_connection>:
8943 (target_handle_new_gdb_connection): New macro.
8944 * win32-low.c: Initialize new structure member.
8946 2015-05-12 Don Breazeal <donb@codesourcery.com>
8948 * mem-break.c (APPEND_TO_LIST): Define macro.
8949 (clone_agent_expr): New function.
8950 (clone_one_breakpoint): New function.
8951 (clone_all_breakpoints): New function.
8952 * mem-break.h: Declare new functions.
8954 2015-05-12 Don Breazeal <donb@codesourcery.com>
8956 * linux-low.c (linux_supports_fork_events): New function.
8957 (linux_supports_vfork_events): New function.
8958 (linux_target_ops): Initialize new structure members.
8959 (initialize_low): Call linux_check_ptrace_features.
8960 * lynx-low.c (lynx_target_ops): Initialize new structure
8962 * server.c (report_fork_events, report_vfork_events):
8964 (handle_query): Add new features to qSupported packet and
8966 (captured_main): Initialize new global variables.
8967 * target.h (struct target_ops) <supports_fork_events>:
8969 <supports_vfork_events>: New member.
8970 (target_supports_fork_events): New macro.
8971 (target_supports_vfork_events): New macro.
8972 * win32-low.c (win32_target_ops): Initialize new structure
8975 2015-05-12 Gary Benson <gbenson@redhat.com>
8977 * server.c (handle_qxfer_exec_file): Use current process
8980 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8982 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
8983 Remove HAVE_PTRACE_GETREGS conditionals.
8984 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
8985 instead of PTRACE_GETREGS and PTRACE_SETREGS.
8987 2015-05-08 Yao Qi <yao.qi@linaro.org>
8989 * linux-low.c (linux_supports_conditional_breakpoints): New
8991 (linux_target_ops): Install new target method.
8992 * lynx-low.c (lynx_target_ops): Install NULL hook for
8993 supports_conditional_breakpoints.
8994 * nto-low.c (nto_target_ops): Likewise.
8995 * spu-low.c (spu_target_ops): Likewise.
8996 * win32-low.c (win32_target_ops): Likewise.
8997 * server.c (handle_query): Check
8998 target_supports_conditional_breakpoints.
8999 * target.h (struct target_ops) <supports_conditional_breakpoints>:
9001 (target_supports_conditional_breakpoints): New macro.
9003 2015-05-06 Pedro Alves <palves@redhat.com>
9006 * server.c (start_inferior): If the process exits, mourn it.
9008 2015-04-21 Gary Benson <gbenson@redhat.com>
9010 * hostio.c (fileio_open_flags_to_host): Factored out to
9011 fileio_to_host_openflags in common/fileio.c. Single use
9014 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9016 * linux-xtensa-low.c (xtensa_fill_gregset)
9017 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
9020 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
9022 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
9023 (regs_info): Replace usrregs pointer with NULL.
9025 2015-04-17 Gary Benson <gbenson@redhat.com>
9027 * target.h (struct target_ops) <pid_to_exec_file>: New field.
9028 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
9029 * server.c (handle_qxfer_exec_file): New function.
9030 (qxfer_packets): Add exec-file entry.
9031 (handle_query): Report qXfer:exec-file:read as supported packet.
9033 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
9035 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
9037 2015-04-09 Gary Benson <gbenson@redhat.com>
9039 * hostio-errno.c (errno_to_fileio_error): Remove function.
9040 Update caller to use remote_fileio_to_fio_error.
9042 2015-04-09 Yao Qi <yao.qi@linaro.org>
9044 * linux-low.c (linux_insert_point): Call
9045 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
9046 (linux_remove_point): Call remove_memory_breakpoint if type is
9048 * linux-x86-low.c (x86_insert_point): Don't call
9049 insert_memory_breakpoint.
9050 (x86_remove_point): Don't call remove_memory_breakpoint.
9052 2015-04-01 Pedro Alves <palves@redhat.com>
9053 Cleber Rosa <crosa@redhat.com>
9055 * server.c (gdbserver_usage): Reorganize and extend the usage
9058 2015-03-24 Pedro Alves <palves@redhat.com>
9060 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
9061 output. Also dump TRAP_TRACE.
9062 (linux_low_filter_event): In debug output, distinguish a
9063 resume_stop SIGSTOP from a delayed SIGSTOP.
9065 2015-03-24 Gary Benson <gbenson@redhat.com>
9067 * linux-x86-low.c (x86_linux_new_thread): Moved to
9069 (x86_linux_prepare_to_resume): Likewise.
9071 2015-03-24 Gary Benson <gbenson@redhat.com>
9073 * Makefile.in (x86-linux-dregs.o): New rule.
9074 * configure.srv: Add x86-linux-dregs.o to relevant targets.
9075 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
9076 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9077 (x86_linux_dr_get): Likewise.
9078 (x86_linux_dr_set): Likewise.
9079 (update_debug_registers_callback): Likewise.
9080 (x86_linux_dr_set_addr): Likewise.
9081 (x86_linux_dr_get_addr): Likewise.
9082 (x86_linux_dr_set_control): Likewise.
9083 (x86_linux_dr_get_control): Likewise.
9084 (x86_linux_dr_get_status): Likewise.
9085 (x86_linux_update_debug_registers): Likewise.
9087 2015-03-24 Gary Benson <gbenson@redhat.com>
9089 * linux-x86-low.c (x86_linux_update_debug_registers):
9090 New function, factored out from...
9091 (x86_linux_prepare_to_resume): ...this.
9093 2015-03-24 Gary Benson <gbenson@redhat.com>
9095 * linux-x86-low.c (x86_linux_dr_get): Update comments.
9096 (x86_linux_dr_set): Likewise.
9097 (update_debug_registers_callback): Likewise.
9098 (x86_linux_dr_set_addr): Likewise.
9099 (x86_linux_dr_get_addr): Likewise.
9100 (x86_linux_dr_set_control): Likewise.
9101 (x86_linux_dr_get_control): Likewise.
9102 (x86_linux_dr_get_status): Likewise.
9103 (x86_linux_prepare_to_resume): Likewise.
9105 2015-03-24 Gary Benson <gbenson@redhat.com>
9107 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
9108 Use perror_with_name. Pass string through gettext.
9109 (x86_linux_dr_set): Likewise.
9111 2015-03-24 Gary Benson <gbenson@redhat.com>
9113 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
9114 (x86_linux_dr_set_addr): ...this.
9115 (x86_dr_low_get_addr): Rename to...
9116 (x86_linux_dr_get_addr): ...this.
9117 (x86_dr_low_set_control): Rename to...
9118 (x86_linux_dr_set_control): ...this.
9119 (x86_dr_low_get_control): Rename to...
9120 (x86_linux_dr_get_control): ...this.
9121 (x86_dr_low_get_status): Rename to...
9122 (x86_linux_dr_get_status): ...this.
9123 (x86_dr_low): Update with new function names.
9125 2015-03-24 Gary Benson <gbenson@redhat.com>
9127 * Makefile.in (x86-linux.o): New rule.
9128 * configure.srv: Add x86-linux.o to relevant targets.
9129 * linux-low.c (lwp_set_arch_private_info): New function.
9130 (lwp_arch_private_info): Likewise.
9131 * linux-x86-low.c: Include nat/x86-linux.h.
9132 (arch_lwp_info): Removed structure.
9133 (update_debug_registers_callback):
9134 Use lwp_set_debug_registers_changed.
9135 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9136 and lwp_set_debug_registers_changed.
9137 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9139 2015-03-24 Gary Benson <gbenson@redhat.com>
9141 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
9142 * linux-arm-low.c (arm_new_thread): Likewise.
9143 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
9144 * linux-mips-low.c (mips_linux_new_thread): Likewise.
9145 * linux-x86-low.c (x86_linux_new_thread): Likewise.
9146 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
9148 2015-03-24 Gary Benson <gbenson@redhat.com>
9150 * linux-low.c (ptid_of_lwp): New function.
9151 (lwp_is_stopped): Likewise.
9152 (lwp_stop_reason): Likewise.
9153 * linux-x86-low.c (update_debug_registers_callback):
9155 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9158 2015-03-24 Gary Benson <gbenson@redhat.com>
9160 * linux-low.h (linux_stop_lwp): Remove declaration.
9162 2015-03-24 Gary Benson <gbenson@redhat.com>
9164 * linux-low.h: Include nat/linux-nat.h.
9165 * linux-low.c (iterate_over_lwps_args): New structure.
9166 (iterate_over_lwps_filter): New function.
9167 (iterate_over_lwps): Likewise.
9168 * linux-x86-low.c (update_debug_registers_callback):
9169 Update signature to what iterate_over_lwps expects.
9170 Remove PID check that iterate_over_lwps now performs.
9171 (x86_dr_low_set_addr): Use iterate_over_lwps.
9172 (x86_dr_low_set_control): Likewise.
9174 2015-03-24 Gary Benson <gbenson@redhat.com>
9176 * linux-x86-low.c (x86_debug_reg_state): New function.
9177 (x86_linux_prepare_to_resume): Use the above.
9179 2015-03-24 Gary Benson <gbenson@redhat.com>
9181 * linux-low.c (current_lwp_ptid): New function.
9182 * linux-x86-low.c: Include nat/linux-nat.h.
9183 (x86_dr_low_get_addr): Use current_lwp_ptid.
9184 (x86_dr_low_get_control): Likewise.
9185 (x86_dr_low_get_status): Likewise.
9187 2015-03-20 Pedro Alves <palves@redhat.com>
9189 * tracepoint.c (cmd_qtstatus): Make "str" const.
9191 2015-03-20 Pedro Alves <palves@redhat.com>
9193 * server.c (handle_general_set): Make "req_str" const.
9195 2015-03-19 Pedro Alves <palves@redhat.com>
9197 * linux-low.c (linux_resume_one_lwp): Rename to ...
9198 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9199 instead call perror_with_name.
9200 (check_ptrace_stopped_lwp_gone): New function.
9201 (linux_resume_one_lwp): Reimplement as wrapper around
9202 linux_resume_one_lwp_throw that swallows errors if the LWP is
9205 2015-03-19 Pedro Alves <palves@redhat.com>
9207 * linux-low.c (count_events_callback, select_event_lwp_callback):
9208 No longer check whether the thread has resume_stop as last resume
9211 2015-03-19 Pedro Alves <palves@redhat.com>
9213 * linux-low.c (count_events_callback, select_event_lwp_callback):
9214 Use the lwp's status_pending_p field, not the thread's.
9216 2015-03-19 Pedro Alves <palves@redhat.com>
9218 * linux-low.c (select_event_lwp_callback): Update comments to
9219 no longer mention SIGTRAP.
9221 2015-03-18 Gary Benson <gbenson@redhat.com>
9223 * server.c (handle_query): Do not report vFile:fstat as supported.
9225 2015-03-11 Gary Benson <gbenson@redhat.com>
9227 * hostio.c (sys/types.h): New include.
9228 (sys/stat.h): Likewise.
9229 (common-remote-fileio.h): Likewise.
9230 (handle_fstat): New function.
9231 (handle_vFile): Handle vFile:fstat packets.
9233 2015-03-11 Gary Benson <gbenson@redhat.com>
9235 * configure.ac (AC_CHECK_MEMBERS): Add checks for
9236 struct stat.st_blocks and struct stat.st_blksize.
9237 * configure: Regenerate.
9238 * config.in: Likewise.
9239 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9240 (OBS): Add common-remote-fileio.o.
9241 (common-remote-fileio.o): New rule.
9243 2015-03-09 Pedro Alves <palves@redhat.com>
9245 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
9246 'struct sockaddr' pointer in 'accept' call.
9248 2015-03-09 Pedro Alves <palves@redhat.com>
9251 2015-03-07 Pedro Alves <palves@redhat.com>
9252 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9253 or <winsock2.h> here. Instead include "gdb_socket.h".
9254 (remote_open): Use union gdb_sockaddr_u.
9255 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9256 or <winsock2.h> here. Instead include "gdb_socket.h".
9257 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9258 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9260 (init_named_socket, gdb_agent_helper_thread): Use union
9263 2015-03-07 Pedro Alves <palves@redhat.com>
9265 * configure.ac (build_warnings): Move
9266 -Wdeclaration-after-statement to the C-specific set.
9267 * configure: Regenerate.
9269 2015-03-07 Pedro Alves <palves@redhat.com>
9271 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
9272 or <winsock2.h> here. Instead include "gdb_socket.h".
9273 (remote_open): Use union gdb_sockaddr_u.
9274 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
9275 or <winsock2.h> here. Instead include "gdb_socket.h".
9276 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
9277 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
9279 (init_named_socket, gdb_agent_helper_thread): Use union
9282 2015-03-07 Pedro Alves <palves@redhat.com>
9284 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
9287 2015-03-06 Yao Qi <yao.qi@linaro.org>
9289 * linux-aarch64-low.c (aarch64_insert_point): Use
9290 show_debug_regs as a boolean.
9291 (aarch64_remove_point): Likewise.
9293 2015-03-05 Pedro Alves <palves@redhat.com>
9295 * lynx-low.c (lynx_target_ops): Install NULL hooks for
9296 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
9297 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
9298 * nto-low.c (nto_target_ops): Likewise.
9299 * spu-low.c (spu_target_ops): Likewise.
9300 * win32-low.c (win32_target_ops): Likewise.
9302 2015-03-04 Pedro Alves <palves@redhat.com>
9304 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
9305 Decide whether a breakpoint triggered based on the SIGTRAP's
9307 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9308 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9309 (linux_low_filter_event): Check for breakpoints before checking
9311 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
9313 (linux_stopped_by_sw_breakpoint)
9314 (linux_supports_stopped_by_sw_breakpoint)
9315 (linux_stopped_by_hw_breakpoint)
9316 (linux_supports_stopped_by_hw_breakpoint): New functions.
9317 (linux_target_ops): Install new target methods.
9319 2015-03-04 Pedro Alves <palves@redhat.com>
9321 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
9322 * server.c (swbreak_feature, hwbreak_feature): New globals.
9323 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
9324 (captured_main): Clear swbreak_feature and hwbreak_feature.
9325 * server.h (swbreak_feature, hwbreak_feature): Declare.
9326 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
9327 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
9328 supports_stopped_by_hw_breakpoint>: New fields.
9329 (target_supports_stopped_by_sw_breakpoint)
9330 (target_stopped_by_sw_breakpoint)
9331 (target_supports_stopped_by_hw_breakpoint)
9332 (target_stopped_by_hw_breakpoint): Declare.
9334 2015-03-04 Pedro Alves <palves@redhat.com>
9336 enum lwp_stop_reason -> enum target_stop_reason
9337 * linux-low.c (check_stopped_by_breakpoint): Adjust.
9338 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
9339 (linux_wait_1, stuck_in_jump_pad_callback)
9340 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
9341 (linux_stopped_by_watchpoint):
9342 * linux-low.h (enum lwp_stop_reason): Delete.
9343 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9344 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9346 2015-03-04 Yao Qi <yao.qi@linaro.org>
9348 * Makefile.in (SFILES): Add linux-aarch64-low.c.
9350 2015-03-03 Gary Benson <gbenson@redhat.com>
9352 * hostio.c (handle_vFile): Fix prefix lengths.
9354 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9356 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
9359 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9361 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
9362 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
9363 (clean): Add "rm -f" for above C files.
9364 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
9365 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
9366 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
9367 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
9368 * linux-s390-low.c (HWCAP_S390_VX): New macro.
9369 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
9370 (init_registers_s390x_vx_linux64)
9371 (init_registers_s390x_tevx_linux64)
9372 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9373 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
9375 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
9376 (s390_store_vxrs_high): New functions.
9377 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
9379 (s390_arch_setup): Add logic for selecting one of the new target
9380 descriptions. Activate the new vector regsets if applicable.
9381 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
9382 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
9383 and init_registers_s390x_tevx_linux64.
9385 2015-03-01 Pedro Alves <palves@redhat.com>
9387 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
9390 2015-02-27 Pedro Alves <palves@redhat.com>
9392 * linux-x86-low.c (u_debugreg_offset): New function.
9393 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9395 2015-02-27 Pedro Alves <palves@redhat.com>
9397 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9398 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
9399 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9400 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9401 (ps_lsetfpregs, ps_getpid)
9402 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
9403 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
9404 (ps_lsetxregs, ps_plog): Declare.
9406 2015-02-27 Pedro Alves <palves@redhat.com>
9408 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
9409 IP_AGENT_EXPORT_FUNC.
9410 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
9411 IP_AGENT_EXPORT_FUNC.
9412 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
9413 (IP_AGENT_EXPORT): Delete.
9414 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9415 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9416 (gdb_trampoline_buffer_error, collecting, gdb_collect)
9417 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
9418 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
9419 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
9420 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
9421 (traceframe_read_count, traceframe_write_count)
9422 (traceframes_created, trace_state_variables, get_raw_reg)
9423 (get_trace_state_variable_value, set_trace_state_variable_value)
9424 (ust_loaded, helper_thread_id, cmd_buf): Use
9425 IPA_SYM_EXPORTED_NAME.
9426 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
9427 (tracepoints) Use IP_AGENT_EXPORT_VAR.
9428 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
9429 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9430 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
9431 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
9432 EXTERN_C_PUSH/EXTERN_C_POP.
9433 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
9434 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
9435 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9436 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
9437 (traceframe_write_count, traceframe_read_count)
9438 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
9439 (about_to_request_buffer_space, get_trace_state_variable_value)
9440 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
9441 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
9442 EXTERN_C_PUSH/EXTERN_C_POP.
9443 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
9444 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
9445 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
9446 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
9447 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
9448 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
9449 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
9450 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
9452 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
9453 (IP_AGENT_EXPORT_VAR_DECL): Define.
9455 (gdb_agent_get_raw_reg): Declare.
9457 2015-02-27 Tom Tromey <tromey@redhat.com>
9458 Pedro Alves <palves@redhat.com>
9460 Rename symbols whose names are reserved C++ keywords throughout.
9462 2015-02-27 Pedro Alves <palves@redhat.com>
9464 * Makefile.in (COMPILER): New, get it from autoconf.
9465 (CXX): Get from autoconf instead.
9466 (COMPILE.pre): Use COMPILER.
9467 (CC-LD): Rename to ...
9468 (CC_LD): ... this. Use COMPILER.
9469 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
9470 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9471 * acinclude.m4: Include build-with-cxx.m4.
9472 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9473 Disable -Werror by default if building in C++ mode.
9474 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9475 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
9476 the C++ compiler. Save/restore CXXFLAGS too.
9477 * configure: Regenerate.
9479 2015-02-27 Pedro Alves <palves@redhat.com>
9481 * acinclude.m4: Include libiberty.m4.
9482 * configure.ac: Call libiberty_INIT.
9483 * config.in, configure: Regenerate.
9485 2015-02-26 Pedro Alves <palves@redhat.com>
9487 * linux-low.c (linux_wait_1): When incrementing the PC past a
9488 program breakpoint always use the_low_target.breakpoint_len as
9489 increment, rather than the maximum between that and
9490 the_low_target.decr_pc_after_break.
9492 2015-02-23 Pedro Alves <palves@redhat.com>
9494 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
9495 thread was doing a step-over; always adjust the PC if
9496 we stepped over a permanent breakpoint.
9497 (linux_wait_1): If we stepped over breakpoint that was on top of a
9498 permanent breakpoint, manually advance the PC past it.
9500 2015-02-23 Pedro Alves <palves@redhat.com>
9502 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
9504 (x86_fill_gregset, x86_store_gregset): Use it when handling
9507 2015-02-20 Pedro Alves <palves@redhat.com>
9509 * thread-db.c: Include "nat/linux-procfs.h".
9510 (thread_db_init): Skip listing new threads if the kernel supports
9511 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
9513 2015-02-20 Pedro Alves <palves@redhat.com>
9515 * linux-low.c (status_pending_p_callback): Use ptid_match.
9517 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9519 PR breakpoints/16812
9520 * linux-low.c (wstatus_maybe_breakpoint): Remove.
9521 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
9522 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
9524 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9526 PR breakpoints/15956
9527 * tracepoint.c (cmd_qtinit): Add check for current_thread.
9529 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9531 * linux-low.c (linux_low_btrace_conf): Print size.
9532 * server.c (handle_btrace_conf_general_set): New.
9533 (hanle_general_set): Call handle_btrace_conf_general_set.
9534 (handle_query): Report Qbtrace-conf:bts:size as supported.
9536 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9538 * linux-low.c (linux_low_enable_btrace): Update parameters.
9539 (linux_low_btrace_conf): New.
9540 (linux_target_ops)<to_btrace_conf>: Initialize.
9541 * server.c (current_btrace_conf): New.
9542 (handle_btrace_enable): Rename to ...
9543 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
9544 to target_enable_btrace. Update comment. Update users.
9545 (handle_qxfer_btrace_conf): New.
9546 (qxfer_packets): Add btrace-conf entry.
9547 (handle_query): Report qXfer:btrace-conf:read as supported packet.
9548 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
9549 (target_ops)<read_btrace_conf>: New.
9550 (target_enable_btrace): Update parameters.
9551 (target_read_btrace_conf): New.
9553 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9555 * server.c (handle_btrace_general_set): Remove call to
9556 target_supports_btrace.
9557 (supported_btrace_packets): New.
9558 (handle_query): Call supported_btrace_packets.
9559 * target.h: include btrace-common.h.
9560 (btrace_target_info): Removed.
9561 (supports_btrace, target_supports_btrace): Update parameters.
9563 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9565 * Makefile.in (SFILES): Add common/btrace-common.c.
9566 (OBS): Add common/btrace-common.o.
9567 (btrace-common.o): Add build rules.
9568 * linux-low: Include btrace-common.h.
9569 (linux_low_read_btrace): Use struct btrace_data. Call
9570 btrace_data_init and btrace_data_fini.
9572 2015-02-06 Pedro Alves <palves@redhat.com>
9574 * thread-db.c (find_new_threads_callback): Add debug output.
9576 2015-02-04 Pedro Alves <palves@redhat.com>
9578 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
9579 (resume_stopped_resumed_lwps): New function.
9580 (linux_wait_for_event_filtered): Use it.
9582 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9584 * Makefile.in (SFILES): Add linux-personality.c.
9585 (linux-personality.o): New rule.
9586 * configure.srv (srv_linux_obj): Add linux-personality.o to the
9587 list of objects to be built.
9588 * linux-low.c: Include nat/linux-personality.h.
9589 (linux_create_inferior): Remove code to disable address space
9590 randomization (moved to ../nat/linux-personality.c). Create
9591 cleanup to disable address space randomization.
9593 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9595 * Makefile.in (posix-strerror.o): New rule.
9596 (mingw-strerror.o): Likewise.
9597 * configure: Regenerated.
9598 * configure.ac: Source file ../common/common.host. Initialize new
9599 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
9601 2015-01-14 Yao Qi <yao@codesourcery.com>
9603 * Makefile.in (SFILES): Add nat/ppc-linux.c.
9604 (ppc-linux.o): New rule.
9605 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
9606 * configure.ac: AC_CHECK_FUNCS(getauxval).
9607 * config.in: Re-generated.
9608 * configure: Re-generated.
9609 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
9610 ppc64_64bit_inferior_p
9612 2015-01-14 Yao Qi <yao@codesourcery.com>
9614 * linux-ppc-low.c: Include "nat/ppc-linux.h".
9615 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
9616 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
9617 (PT_ORIG_R3, PT_TRAP): Likewise.
9618 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9619 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9620 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9622 2015-01-10 Joel Brobecker <brobecker@adacore.com>
9624 * i387-fp.c (i387_cache_to_xsave): In look over
9625 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
9626 zmmh_low_space field by use of zmmh_high_space.
9628 2015-01-09 Pedro Alves <palves@redhat.com>
9630 * linux-low.c (step_over_bkpt): Move higher up in the file.
9631 (handle_extended_wait): Don't store the stop_pc here.
9632 (get_stop_pc): Adjust comments and rename to ...
9633 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9634 stopped for a software breakpoint or hardware breakpoint.
9635 (thread_still_has_status_pending_p): New function.
9636 (status_pending_p_callback): Use
9637 thread_still_has_status_pending_p. If the event is no longer
9638 interesting, resume the LWP.
9639 (handle_tracepoints): Add assert.
9640 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
9641 (wstatus_maybe_breakpoint): New function.
9642 (cancel_breakpoint): Delete function.
9643 (check_stopped_by_watchpoint): New function, factored out from
9644 linux_low_filter_event.
9645 (lp_status_maybe_breakpoint): Delete function.
9646 (linux_low_filter_event): Remove filter_ptid argument.
9647 Leave thread group exits pending here. Store the LWP's stop PC.
9648 Always leave events pending.
9649 (linux_wait_for_event_filtered): Pull all events out of the
9650 kernel, and leave them all pending.
9651 (count_events_callback, select_event_lwp_callback): Consider all
9653 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
9654 (select_event_lwp): Only give preference to the stepping LWP in
9655 all-stop mode. Adjust comments.
9656 (ignore_event): New function.
9657 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
9658 references to cancel_breakpoints. Adjust to renames. Also give
9659 equal priority to all LWPs that have had events in non-stop mode.
9660 If reporting a software breakpoint event, unadjust the LWP's PC.
9661 (linux_wait): If linux_wait_1 returned an ignored event, retry.
9662 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
9664 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
9665 (resume_status_pending_p): Use thread_still_has_status_pending_p.
9666 (linux_stopped_by_watchpoint): Adjust.
9667 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
9668 * linux-low.h (enum lwp_stop_reason): New.
9669 (struct lwp_info) <stop_pc>: Adjust comment.
9670 <stopped_by_watchpoint>: Delete field.
9671 <stop_reason>: New field.
9672 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
9673 * mem-break.c (software_breakpoint_inserted_here)
9674 (hardware_breakpoint_inserted_here): New function.
9675 * mem-break.h (software_breakpoint_inserted_here)
9676 (hardware_breakpoint_inserted_here): Declare.
9677 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
9678 (cancel_breakpoints): Delete.
9679 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
9680 (upload_fast_traceframes): Remove references to
9683 2015-01-09 Pedro Alves <palves@redhat.com>
9685 * thread-db.c (find_new_threads_callback): Ignore thread if the
9686 kernel thread ID is -1.
9688 2015-01-09 Pedro Alves <palves@redhat.com>
9690 * linux-low.c (linux_attach_fail_reason_string): Move to
9691 nat/linux-ptrace.c, and rename.
9692 (linux_attach_lwp): Update comment.
9693 (attach_proc_task_lwp_callback): New function.
9694 (linux_attach): Adjust to rename and use
9695 linux_proc_attach_tgid_threads.
9696 (linux_attach_fail_reason_string): Delete declaration.
9698 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9700 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
9701 * server.c (gdbserver_version): Likewise.
9703 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
9705 * remote-utils.c: Include ctype.h.
9706 (input_interrupt): Explicitly handle the case when the char
9707 received is the NUL byte. Improve the printing of non-ASCII
9710 2014-12-16 Joel Brobecker <brobecker@adacore.com>
9712 * linux-low.c (linux_low_filter_event): Update call to
9713 linux_enable_event_reporting following the addition of
9714 a new parameter to that function.
9716 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
9719 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
9720 (AARCH64_FPCR_REGNO): Likewise.
9721 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
9722 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
9723 (aarch64_store_fpregset): Likewise.
9725 2014-12-15 Joel Brobecker <brobecker@adacore.com>
9727 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
9728 Remove FIXME comment about assumption about N.
9730 2014-12-13 Joel Brobecker <brobecker@adacore.com>
9732 * configure.ac: If large-file support is disabled in GDBserver,
9733 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
9734 * configure: Regenerate.
9736 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9738 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
9739 warning upon ENODATA from ptrace.
9740 * linux-s390-low.c (s390_store_tdb): New.
9741 (s390_regsets): Add regset for NT_S390_TDB.
9743 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9745 * linux-low.c (regsets_store_inferior_registers): Skip regsets
9746 without a fill_function.
9747 * linux-s390-low.c (s390_fill_last_break): Remove.
9748 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
9749 (s390_arch_setup): Use regset's size instead of fill_function for
9752 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9754 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
9755 the regset's store function when ptrace returned an error.
9756 * regcache.c (get_thread_regcache): Invalidate register cache
9757 before fetching inferior's registers.
9759 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
9761 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
9762 while-loop as for-loop.
9763 (regsets_store_inferior_registers): Likewise.
9765 2014-11-28 Yao Qi <yao@codesourcery.com>
9767 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
9768 * config.in, configure: Re-generate.
9769 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
9772 2014-11-21 Yao Qi <yao@codesourcery.com>
9774 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
9775 (AC_CHECK_HEADERS): Remove malloc.h.
9776 * configure: Re-generated.
9777 * config.in: Re-generated.
9778 * server.h: Don't include alloca.h and malloc.h.
9779 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
9780 Don't include malloc.h.
9782 2014-11-17 Joel Brobecker <brobecker@adacore.com>
9784 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
9785 corresponding ERRNO check in same block.
9787 2014-11-12 Pedro Alves <palves@redhat.com>
9789 * server.c (cont_thread): Update comment.
9790 (start_inferior, attach_inferior): No longer clear cont_thread.
9791 (handle_v_cont): No longer set cont_thread.
9792 (captured_main): Clear cont_thread each time a GDB connects.
9794 2014-11-12 Pedro Alves <palves@redhat.com>
9796 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
9797 thread, and don't resume all threads if the Hc thread has exited.
9799 2014-11-12 Pedro Alves <palves@redhat.com>
9801 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
9802 the process group instead of to a specific LWP.
9804 2014-10-15 Pedro Alves <palves@redhat.com>
9807 * win32-arm-low.c (arm_set_thread_context): Remove current_event
9809 (arm_set_thread_context): Delete.
9810 (the_low_target): Adjust.
9811 * win32-i386-low.c (debug_registers_changed)
9812 (debug_registers_used): Delete.
9813 (update_debug_registers_callback): New function.
9814 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
9815 needing to update their debug registers.
9816 (win32_get_current_dr): New function.
9817 (x86_dr_low_get_addr, x86_dr_low_get_control)
9818 (x86_dr_low_get_status): Fetch the debug register from the thread
9820 (i386_initial_stuff): Adjust.
9821 (i386_get_thread_context): Remove current_event parameter. Don't
9822 clear debug_registers_changed nor copy DR values to
9824 (i386_set_thread_context): Delete.
9825 (i386_prepare_to_resume): New function.
9826 (i386_thread_added): Mark the thread as needing to update irs
9828 (the_low_target): Remove i386_set_thread_context and install
9829 i386_prepare_to_resume.
9830 * win32-low.c (win32_get_thread_context): Adjust.
9831 (win32_set_thread_context): Use SetThreadContext
9833 (win32_prepare_to_resume): New function.
9834 (win32_require_context): New function, factored out from ...
9835 (thread_rec): ... this.
9836 (continue_one_thread): Call win32_prepare_to_resume on each thread
9837 we're about to continue.
9838 (win32_resume): Call win32_prepare_to_resume on the event thread.
9839 * win32-low.h (struct win32_thread_info)
9840 <debug_registers_changed>: New field.
9841 (struct win32_target_ops): Change prototype of set_thread_context,
9842 delete set_thread_context and add prepare_to_resume.
9843 (win32_require_context): New declaration.
9845 2014-10-08 Gary Benson <gbenson@redhat.com>
9847 * server.h: Do not include common-exceptions.h.
9849 2014-10-08 Gary Benson <gbenson@redhat.com>
9851 * server.h: Do not include cleanups.h.
9853 2014-09-30 James Hogan <james.hogan@imgtec.com>
9855 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
9858 2014-09-23 Yao Qi <yao@codesourcery.com>
9860 * linux-low.c (lp_status_maybe_breakpoint): New function.
9861 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
9862 (count_events_callback): Likewise.
9863 (select_event_lwp_callback): Likewise.
9864 (cancel_breakpoints_callback): Likewise.
9866 2014-09-19 Don Breazeal <donb@codesourcery.com>
9868 * linux-low.c (handle_extended_wait): Call
9869 linux_ptrace_get_extended_event.
9870 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
9871 linux_is_extended_waitstatus.
9873 2014-09-16 Joel Brobecker <brobecker@adacore.com>
9875 * Makefile.in (CPPFLAGS): Define.
9876 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
9877 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
9879 2014-09-16 Gary Benson <gbenson@redhat.com>
9881 * inferiors.h (current_inferior): Renamed as...
9882 (current_thread): New variable. All uses updated.
9883 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
9884 (maybe_move_out_of_jump_pad): Likewise.
9885 (cancel_breakpoint): Likewise.
9886 (linux_low_filter_event): Likewise.
9887 (wait_for_sigstop): Likewise.
9888 (linux_resume_one_lwp): Likewise.
9889 (need_step_over_p): Likewise.
9890 (start_step_over): Likewise.
9891 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
9892 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
9893 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
9894 and save_inferior as saved_thread.
9895 * regcache.c (get_thread_regcache): Renamed saved_inferior as
9897 (regcache_invalidate_thread): Likewise.
9898 * remote-utils.c (prepare_resume_reply): Likewise.
9899 * thread-db.c (thread_db_get_tls_address): Likewise.
9900 (disable_thread_event_reporting): Likewise.
9901 (remove_thread_event_breakpoints): Likewise.
9902 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
9904 * target.h (set_desired_inferior): Renamed as...
9905 (set_desired_thread): New declaration. All uses updated.
9906 * server.c (myresume): Updated comment to reference thread instead
9908 (handle_serial_event): Likewise.
9909 (handle_target_event): Likewise.
9911 2014-09-12 Tom Tromey <tromey@redhat.com>
9912 Gary Benson <gbenson@redhat.com>
9914 * regcache.h: Include common-regcache.h.
9915 (regcache_read_pc): Don't declare.
9916 * regcache.c (get_thread_regcache_for_ptid): New function.
9918 2014-09-11 Tom Tromey <tromey@redhat.com>
9919 Gary Benson <gbenson@redhat.com>
9921 * symbol.c: New file.
9922 * Makefile.in (SFILES): Add symbol.c.
9923 (OBS): Add symbol.o.
9925 2014-09-11 Gary Benson <gbenson@redhat.com>
9927 * target.c (target_stop_ptid, target_continue_ptid): New
9930 2014-09-11 Tom Tromey <tromey@redhat.com>
9931 Gary Benson <gbenson@redhat.com>
9933 * target.h: Include target/target.h.
9934 * target.c (target_read_memory, target_read_uint32)
9935 (target_write_memory): New functions.
9937 2014-09-11 Gary Benson <gbenson@redhat.com>
9939 * server.h (debug_hw_points): Don't declare.
9940 * server.c (debug_hw_points): Don't define. Replace all uses
9941 with show_debug_regs.
9942 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
9943 all uses with show_debug_regs.
9945 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9947 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
9948 endianness into account.
9949 (ppc_supply_ptrace_register): Likewise.
9951 2014-09-03 James Hogan <james.hogan@imgtec.com>
9953 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
9954 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
9956 2014-09-03 Gary Benson <gbenson@redhat.com>
9958 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
9959 ALL_DEBUG_ADDRESS_REGISTERS.
9961 2014-09-02 Gary Benson <gbenson@redhat.com>
9963 * i386-low.h: Renamed as...
9964 * x86-low.h: New file. All type, function and variable name
9965 prefixes changed from "i386_" to "x86_". All references updated.
9966 * i386-low.c: Renamed as...
9967 * x86-low.c: New file. All type, function and variable name
9968 prefixes changed from "i386_" to "x86_". All references updated.
9970 2014-09-02 Gary Benson <gbenson@redhat.com>
9972 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
9973 (x86_linux_new_thread): Likewise.
9975 2014-08-29 Gary Benson <gbenson@redhat.com>
9977 * server.h (setjmp.h): Do not include.
9978 (toplevel): Do not declare.
9979 (common-exceptions.h): Include.
9980 (cleanups.h): Likewise.
9981 * server.c (toplevel): Do not define.
9982 (exit_code): New static global.
9983 (detach_or_kill_for_exit_cleanup): New function.
9984 (main): New function. Original main renamed to...
9985 (captured_main): New function.
9986 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
9988 2014-08-29 Gary Benson <gbenson@redhat.com>
9990 * Makefile.in (SFILES): Add common/common-exceptions.c.
9991 (OBS): Add common-exceptions.o.
9992 (common-exceptions.o): New rule.
9993 * utils.c (prepare_to_throw_exception): New function.
9995 2014-08-29 Gary Benson <gbenson@redhat.com>
9997 * config.in: Regenerate.
9998 * configure: Likewise.
10000 2014-08-29 Gary Benson <gbenson@redhat.com>
10002 * Makefile.in (SFILES): Add common/cleanups.c.
10004 (cleanups.o): New rule.
10006 2014-08-29 Gary Benson <gbenson@redhat.com>
10008 * utils.c (internal_vwarning): New function.
10010 2014-08-28 Gary Benson <gbenson@redhat.com>
10012 * utils.h (fatal): Remove declaration.
10013 * utils.c (fatal): Remove function.
10015 2014-08-28 Gary Benson <gbenson@redhat.com>
10017 * tracepoint.c (gdb_agent_init): Replace fatal with
10019 (initialize_tracepoint): Likewise.
10021 2014-08-28 Gary Benson <gbenson@redhat.com>
10023 * remote-utils.c (remote_prepare): Replace fatal with error.
10025 2014-08-28 Gary Benson <gbenson@redhat.com>
10027 * linux-low.c (linux_async): Replace fatal with warning.
10028 Tidy up and return.
10029 (linux_start_non_stop): Return -1 if linux_async failed.
10031 2014-08-28 Gary Benson <gbenson@redhat.com>
10033 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
10035 (i386_dr_low_get_addr): Remove vague comment.
10036 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
10039 2014-08-28 Gary Benson <gbenson@redhat.com>
10041 * inferiors.c (get_thread_process): Replace check with gdb_assert.
10042 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
10044 (linux_resume_one_lwp): Likewise.
10045 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
10047 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
10048 with internal_error.
10049 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
10050 (init_register_cache): Replace fatal with gdb_assert_not_reached.
10051 (find_register_by_name): Replace fatal with internal_error.
10052 (find_regno): Likewise.
10053 * tdesc.c (init_target_desc): Replace check with gdb_assert.
10054 * thread-db.c (thread_db_create_event): Likewise.
10055 (thread_db_load_search): Likewise.
10056 (try_thread_db_load_1): Likewise.
10057 * tracepoint.c (get_jump_space_head): Replace fatal with
10059 (claim_trampoline_space): Likewise.
10060 (have_fast_tracepoint_trampoline_buffer): Likewise.
10061 (cmd_qtstart): Likewise.
10062 (stop_tracing): Likewise.
10063 (fast_tracepoint_collecting): Likewise.
10064 (target_malloc): Likewise.
10065 (download_tracepoint): Likewise.
10066 (download_trace_state_variables): Replace check with gdb_assert.
10067 (upload_fast_traceframes): Replace fatal with internal_error.
10069 2014-08-19 Tom Tromey <tromey@redhat.com>
10070 Gary Benson <gbenson@redhat.com>
10072 * Makefile.in (SFILES): Add common/common-debug.c.
10073 (OBS): Add common-debug.o.
10074 (common-debug.o): New rule.
10075 * debug.h (debug_printf): Don't declare.
10076 * debug.c (debug_printf): Renamed and rewritten as...
10077 (debug_vprintf): New function.
10079 2014-08-19 Gary Benson <gbenson@redhat.com>
10081 * utils.h: Do not include print-utils.h.
10083 2014-08-19 Tom Tromey <tromey@redhat.com>
10084 Gary Benson <gbenson@redhat.com>
10086 * server.h: Add static assertion.
10087 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
10089 2014-08-19 Tom Tromey <tromey@redhat.com>
10090 Gary Benson <gbenson@redhat.com>
10092 * Makefile.in (SFILES): Add common/errors.c.
10093 (OBS): Add errors.o.
10094 (IPA_OBS): Add errors-ipa.o.
10095 (errors.o): New rule.
10096 (errors-ipa.o): Likewise.
10097 * utils.h (perror_with_name, error, warning): Don't declare.
10098 * utils.c (warning): Renamed and rewritten as...
10099 (vwarning): New function.
10100 (error): Renamed and rewritten as...
10101 (verror): New function.
10102 (internal_error): Renamed and rewritten as...
10103 (internal_verror): New function.
10105 2014-08-07 Gary Benson <gbenson@redhat.com>
10107 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
10108 * configure: Regenerate.
10109 * config.in: Likewise.
10110 * server.h: Do not include errno.h.
10111 * event-loop.c: Likewise.
10112 * hostio-errno.c: Likewise.
10113 * linux-low.c: Likewise.
10114 * remote-utils.c: Likewise.
10115 * spu-low.c: Likewise.
10116 * utils.c: Likewise.
10117 * gdbreplay.c: Unconditionally include errno.h.
10119 2014-08-07 Gary Benson <gbenson@redhat.com>
10121 * server.h: Do not include string.h.
10122 * event-loop.c: Likewise.
10123 * linux-low.c: Likewise.
10124 * regcache.c: Likewise.
10125 * remote-utils.c: Likewise.
10126 * spu-low.c: Likewise.
10127 * utils.c: Likewise.
10129 2014-08-07 Gary Benson <gbenson@redhat.com>
10131 * server.h: Do not include gdb_assert.h.
10133 2014-08-07 Gary Benson <gbenson@redhat.com>
10135 * server.h: Do not include common-utils.h.
10137 2014-08-07 Gary Benson <gbenson@redhat.com>
10139 * server.h: Do not include ptid.h.
10140 * notif.h: Likewise.
10142 2014-08-07 Gary Benson <gbenson@redhat.com>
10144 * server.h: Do not include gdb_locale.h.
10146 2014-08-07 Gary Benson <gbenson@redhat.com>
10148 * server.h: Do not include gdb/signals.h.
10149 * win32-low.c: Likewise.
10151 2014-08-07 Gary Benson <gbenson@redhat.com>
10153 * server.h: Do not include pathmax.h.
10155 2014-08-07 Gary Benson <gbenson@redhat.com>
10157 * server.h: Do not include libiberty.h.
10158 * linux-bfin-low.c: Likewise.
10160 2014-08-07 Gary Benson <gbenson@redhat.com>
10162 * server.h: Do not include ansidecl.h.
10164 2014-08-07 Gary Benson <gbenson@redhat.com>
10166 * linux-x86-low.c: Do not include stddef.h.
10167 * lynx-ppc-low.c: Likewise.
10168 * tracepoint.c: Likewise.
10170 2014-08-07 Gary Benson <gbenson@redhat.com>
10172 * server.h: Do not include stdarg.h.
10173 * nto-low.c: Likewise.
10175 2014-08-07 Gary Benson <gbenson@redhat.com>
10177 * server.h: Do not include stdlib.h.
10178 * inferiors.c: Likewise.
10179 * linux-low.c: Likewise.
10180 * regcache.c: Likewise.
10181 * spu-low.c: Likewise.
10182 * tracepoint.c: Likewise.
10183 * utils.c: Likewise.
10185 2014-08-07 Gary Benson <gbenson@redhat.com>
10187 * server.h: Do not include stdio.h.
10188 * linux-low.c: Likewise.
10189 * remote-utils.c: Likewise.
10190 * spu-low.c: Likewise.
10191 * utils.c: Likewise.
10192 * wincecompat.c: Likewise.
10194 2014-08-06 Gary Benson <gbenson@redhat.com>
10196 * regcache.c (init_register_cache): Move conditionals inside if.
10198 2014-08-06 Gary Benson <gbenson@redhat.com>
10200 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
10202 2014-07-31 Gary Benson <gbenson@redhat.com>
10204 * ax.h: Do not include server.h.
10205 * gdbthread.h: Likewise.
10206 * lynx-low.h: Likewise.
10207 * notif.h: Likewise.
10209 2014-07-30 Gary Benson <gbenson@redhat.com>
10211 * server.h: Include common-defs.h.
10212 Do not include config.h or build-gnulib-gdbserver/config.h.
10214 2014-07-30 Gary Benson <gbenson@redhat.com>
10216 * hostio-errno.c: Move server.h to top of includes list.
10217 * inferiors.c: Likewise.
10218 * linux-x86-low.c: Likewise.
10219 * notif.c: Include server.h.
10221 2014-07-24 Tom Tromey <tromey@redhat.com>
10222 Gary Benson <gbenson@redhat.com>
10224 * server.h (CORE_ADDR): Now unsigned.
10226 2014-07-16 Pedro Alves <palves@redhat.com>
10228 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
10230 2014-07-15 Pedro Alves <palves@redhat.com>
10232 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
10235 2014-07-11 Pedro Alves <palves@redhat.com>
10237 * linux-low.c (kill_wait_lwp): New function, based on
10238 kill_one_lwp_callback, but use my_waitpid directly.
10239 (kill_one_lwp_callback, linux_kill): Use it.
10241 2014-06-23 Pedro Alves <palves@redhat.com>
10243 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
10244 before setting DR0..DR3.
10246 2014-06-20 Gary Benson <gbenson@redhat.com>
10248 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
10249 * configure: Regenerated.
10250 * config.in: Likewise.
10252 2014-06-20 Gary Benson <gbenson@redhat.com>
10254 * Makefile.in (SFILES): Update locations for files moved
10255 from common to nat.
10256 (object file files): Reordered.
10258 2014-06-20 Gary Benson <gbenson@redhat.com>
10260 * i386-low.h (i386_dr_low_can_set_addr): Removed.
10261 (i386_dr_low_set_addr): Likewise.
10262 (i386_dr_low_get_addr): Likewise.
10263 (i386_dr_low_can_set_control): Likewise.
10264 (i386_dr_low_set_control): Likewise.
10265 (i386_dr_low_get_control): Likewise.
10266 (i386_dr_low_get_status): Likewise.
10267 (i386_get_debug_register_length): Likewise.
10268 * linux-x86-low.c (i386_dr_low_set_addr):
10269 Changed signature. Made static.
10270 (i386_dr_low_get_addr): Likewise.
10271 (i386_dr_low_set_control): Likewise.
10272 (i386_dr_low_get_control): Likewise.
10273 (i386_dr_low_get_status): Likewise.
10274 (i386_dr_low): New global variable.
10275 * win32-i386-low.c (i386_dr_low_set_addr):
10276 Changed signature. Made static.
10277 (i386_dr_low_get_addr): Likewise.
10278 (i386_dr_low_set_control): Likewise.
10279 (i386_dr_low_get_control): Likewise.
10280 (i386_dr_low_get_status): Likewise.
10281 (i386_dr_low): New global variable.
10283 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
10285 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
10286 * Makefile.in (AR, AR_FLAGS): Define.
10287 * configure: Regenerate.
10289 2014-06-19 Gary Benson <gbenson@redhat.com>
10291 * Makefile.in (i386-dregs.o): New rule.
10292 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
10293 * i386-low.c (target.h): Remove include.
10294 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
10295 (DR_CONTROL_SHIFT): Likewise.
10296 (DR_CONTROL_SIZE): Likewise.
10297 (DR_RW_EXECUTE): Likewise.
10298 (DR_RW_WRITE): Likewise.
10299 (DR_RW_READ): Likewise.
10300 (DR_RW_IORW): Likewise.
10301 (DR_LEN_1): Likewise.
10302 (DR_LEN_2): Likewise.
10303 (DR_LEN_4): Likewise.
10304 (DR_LEN_8): Likewise.
10305 (DR_LOCAL_ENABLE_SHIFT): Likewise.
10306 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
10307 (DR_ENABLE_SIZE): Likewise.
10308 (DR_LOCAL_SLOWDOWN): Likewise.
10309 (DR_GLOBAL_SLOWDOWN): Likewise.
10310 (DR_CONTROL_RESERVED): Likewise.
10311 (I386_DR_CONTROL_MASK): Likewise.
10312 (I386_DR_VACANT): Likewise.
10313 (I386_DR_LOCAL_ENABLE): Likewise.
10314 (I386_DR_GLOBAL_ENABLE): Likewise.
10315 (I386_DR_DISABLE): Likewise.
10316 (I386_DR_SET_RW_LEN): Likewise.
10317 (I386_DR_GET_RW_LEN): Likewise.
10318 (I386_DR_WATCH_HIT): Likewise.
10319 (i386_wp_op_t): Likewise.
10320 (i386_show_dr): Likewise.
10321 (i386_length_and_rw_bits): Likewise.
10322 (i386_insert_aligned_watchpoint): Likewise.
10323 (i386_remove_aligned_watchpoint): Likewise.
10324 (i386_handle_nonaligned_watchpoint): Likewise.
10325 i386_update_inferior_debug_regs(): Likewise.
10326 (i386_dr_insert_watchpoint): Likewise.
10327 (i386_dr_remove_watchpoint): Likewise.
10328 (i386_dr_region_ok_for_watchpoint): Likewise.
10329 (i386_dr_stopped_data_address): Likewise.
10330 (i386_dr_stopped_by_watchpoint): Likewise.
10332 2014-06-19 Gary Benson <gbenson@redhat.com>
10334 * i386-low.c (i386_dr_show): Renamed to
10335 i386_show_dr and made static. All uses updated.
10336 (i386_dr_length_and_rw_bits): Renamed to
10337 i386_length_and_rw_bits and made static.
10339 (i386_dr_insert_aligned_watchpoint): Renamed to
10340 i386_insert_aligned_watchpoint and made static.
10342 (i386_dr_remove_aligned_watchpoint): Renamed to
10343 i386_remove_aligned_watchpoint and made static.
10345 (i386_dr_update_inferior_debug_regs): Renamed to
10346 i386_update_inferior_debug_regs and made static.
10349 2014-06-18 Gary Benson <gbenson@redhat.com>
10351 * i386-low.h (i386_dr_low_can_set_addr): New macro.
10352 (i386_dr_low_can_set_control): Likewise.
10353 (i386_get_debug_register_length): Likewise.
10354 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
10355 (i386_dr_low_can_set_control): Likewise.
10356 (i386_get_debug_register_length): Likewise.
10358 2014-06-17 Gary Benson <gbenson@redhat.com>
10360 * i386-low.h (i386-dregs.h): New include.
10361 (DR_FIRSTADDR): Now in i386-dregs.h.
10362 (DR_LASTADDR): Likewise.
10363 (DR_NADDR): Likewise.
10364 (DR_STATUS): Likewise.
10365 (DR_CONTROL): Likewise.
10366 (i386_debug_reg_state): Likewise.
10367 (i386_dr_insert_watchpoint): Likewise.
10368 (i386_dr_remove_watchpoint): Likewise.
10369 (i386_dr_region_ok_for_watchpoint): Likewise.
10370 (i386_dr_stopped_data_address): Likewise.
10371 (i386_dr_stopped_by_watchpoint): Likewise.
10372 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
10374 2014-06-18 Gary Benson <gbenson@redhat.com>
10376 * i386-low.h (i386_low_insert_watchpoint): Renamed to
10377 i386_dr_insert_watchpoint.
10378 (i386_low_remove_watchpoint): Renamed to
10379 i386_dr_remove_watchpoint.
10380 (i386_low_region_ok_for_watchpoint): Renamed to
10381 i386_dr_region_ok_for_watchpoint.
10382 (i386_low_stopped_data_address): Renamed to
10383 i386_dr_stopped_data_address.
10384 (i386_low_stopped_by_watchpoint): Renamed to
10385 i386_dr_stopped_by_watchpoint.
10386 * i386-low.c (i386_show_dr): Renamed to
10387 i386_dr_show and made nonstatic. All uses updated.
10388 (i386_length_and_rw_bits): Renamed to
10389 i386_dr_length_and_rw_bits and made nonstatic.
10391 (i386_insert_aligned_watchpoint): Renamed to
10392 i386_dr_insert_aligned_watchpoint and made nonstatic.
10394 (i386_remove_aligned_watchpoint): Renamed to
10395 i386_dr_remove_aligned_watchpoint and made nonstatic.
10397 (i386_update_inferior_debug_regs): Renamed to
10398 i386_dr_update_inferior_debug_regs and made nonstatic.
10400 (i386_low_insert_watchpoint): Renamed to
10401 i386_dr_insert_watchpoint. All uses updated.
10402 (i386_low_remove_watchpoint): Renamed to
10403 i386_dr_remove_watchpoint. All uses updated.
10404 (i386_low_region_ok_for_watchpoint): Renamed to
10405 i386_dr_region_ok_for_watchpoint. All uses updated.
10406 (i386_low_stopped_data_address): Renamed to
10407 i386_dr_stopped_data_address. All uses updated.
10408 (i386_low_stopped_by_watchpoint): Renamed to
10409 i386_dr_stopped_by_watchpoint. All uses updated.
10411 2014-06-18 Gary Benson <gbenson@redhat.com>
10413 * i386-low.c (i386_dr_low_can_set_addr): New macro.
10414 (i386_dr_low_can_set_control): Likewise.
10415 (i386_insert_aligned_watchpoint): New check.
10417 2014-06-18 Gary Benson <gbenson@redhat.com>
10419 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
10422 2014-06-18 Gary Benson <gbenson@redhat.com>
10424 * i386-low.c (i386_length_and_rw_bits): Use internal_error
10425 instead of fatal and error.
10426 (i386_handle_nonaligned_watchpoint): Likewise.
10428 2014-06-18 Gary Benson <gbenson@redhat.com>
10430 * i386-low.c (i386_get_debug_register_length): New macro.
10431 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
10432 (i386_show_dr): Use debug_printf instead of fprintf. Use
10433 phex to format values.
10435 2014-06-18 Gary Benson <gbenson@redhat.com>
10437 * i386-low.h: Comment changes.
10438 * i386-low.c: Likewise.
10440 2014-06-18 Gary Benson <gbenson@redhat.com>
10442 * i386-low.c: Whitespace changes.
10444 2014-06-12 Tom Tromey <tromey@redhat.com>
10446 * utils.c (freeargv): Remove.
10448 2014-06-12 Tom Tromey <tromey@redhat.com>
10450 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
10451 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
10452 (parse_debug_format_options): Likewise.
10453 (gdbserver_usage): Likewise.
10454 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
10455 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
10456 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
10458 ($(LIBGNU)): Depend on libiberty.
10459 (all-lib): Recurse into all subdirs.
10460 (install-only): Invoke "install" target in subdirs.
10461 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
10463 * configure: Rebuild.
10464 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
10465 for vasprintf, vsnprintf, or gettimeofday.
10466 * configure.srv: Don't add safe-ctype.o or lbasename.o to
10469 2014-06-05 Joel Brobecker <brobecker@adacore.com>
10471 * development.sh: Delete.
10472 * Makefile.in (config.status): Adjust dependency on development.sh.
10473 * configure.ac: Adjust development.sh source call.
10474 * configure: Regenerate.
10476 2014-06-02 Pedro Alves <palves@redhat.com>
10478 * ax.c (gdb_free_agent_expr): New function.
10479 * ax.h (gdb_free_agent_expr): New declaration.
10480 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
10482 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
10484 (clear_breakpoint_conditions_and_commands): New function.
10485 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
10486 (clear_breakpoint_conditions_and_commands): New declaration.
10488 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10490 * linux-aarch64-low.c (asm/ptrace.h): Include.
10492 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10494 Fix TLS access for -static -pthread.
10495 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
10496 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
10497 (thread_db_load_search, try_thread_db_load_1): Initialize it.
10499 2014-05-20 Pedro Alves <palves@redhat.com>
10501 * linux-aarch64-low.c (aarch64_insert_point)
10502 (aarch64_remove_point): No longer check whether the type is
10503 supported here. Adjust to new interface.
10504 (the_low_target): Install aarch64_supports_z_point_type as
10505 supports_z_point_type method.
10506 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
10507 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
10508 instead of a Z packet char. Adjust.
10509 (arm_supports_z_point_type): New function.
10510 (arm_insert_point, arm_remove_point): Adjust to new interface.
10511 (the_low_target): Install arm_supports_z_point_type.
10512 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
10513 (cris_insert_point, cris_remove_point): Adjust to new interface.
10514 Don't check whether the type is supported here.
10515 (the_low_target): Install cris_supports_z_point_type.
10516 * linux-low.c (linux_supports_z_point_type): New function.
10517 (linux_insert_point, linux_remove_point): Adjust to new interface.
10518 * linux-low.h (struct linux_target_ops) <insert_point,
10519 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
10520 raw_breakpoint pointer parameter.
10521 <supports_z_point_type>: New method.
10522 * linux-mips-low.c (mips_supports_z_point_type): New function.
10523 (mips_insert_point, mips_remove_point): Adjust to new interface.
10524 Use mips_supports_z_point_type.
10525 (the_low_target): Install mips_supports_z_point_type.
10526 * linux-ppc-low.c (the_low_target): Install NULL as
10527 supports_z_point_type method.
10528 * linux-s390-low.c (the_low_target): Install NULL as
10529 supports_z_point_type method.
10530 * linux-sparc-low.c (the_low_target): Install NULL as
10531 supports_z_point_type method.
10532 * linux-x86-low.c (x86_supports_z_point_type): New function.
10533 (x86_insert_point): Adjust to new insert_point interface. Use
10534 insert_memory_breakpoint. Adjust to new
10535 i386_low_insert_watchpoint interface.
10536 (x86_remove_point): Adjust to remove_point interface. Use
10537 remove_memory_breakpoint. Adjust to new
10538 i386_low_remove_watchpoint interface.
10539 (the_low_target): Install x86_supports_z_point_type.
10540 * lynx-low.c (lynx_target_ops): Install NULL as
10541 supports_z_point_type callback.
10542 * nto-low.c (nto_supports_z_point_type): New.
10543 (nto_insert_point, nto_remove_point): Adjust to new interface.
10544 (nto_target_ops): Install nto_supports_z_point_type.
10545 * mem-break.c: Adjust intro comment.
10546 (struct raw_breakpoint) <raw_type, size>: New fields.
10547 <inserted>: Update comment.
10548 <shlib_disabled>: Delete field.
10549 (enum bkpt_type) <gdb_breakpoint>: Delete value.
10550 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
10551 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
10552 (raw_bkpt_type_to_target_hw_bp_type): New function.
10553 (find_enabled_raw_code_breakpoint_at): New function.
10554 (find_raw_breakpoint_at): New type and size parameters. Use them.
10555 (insert_memory_breakpoint): New function, based off
10556 set_raw_breakpoint_at.
10557 (remove_memory_breakpoint): New function.
10558 (set_raw_breakpoint_at): Reimplement.
10559 (set_breakpoint): New, based on set_breakpoint_at.
10560 (set_breakpoint_at): Reimplement.
10561 (delete_raw_breakpoint): Go through the_target->remove_point
10562 instead of assuming memory breakpoints.
10563 (find_gdb_breakpoint_at): Delete.
10564 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
10565 (find_gdb_breakpoint): New function.
10566 (set_gdb_breakpoint_at): Delete.
10567 (z_type_supported): New function.
10568 (set_gdb_breakpoint_1): New function, loosely based off
10569 set_gdb_breakpoint_at.
10570 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
10571 (delete_gdb_breakpoint_at): Delete.
10572 (delete_gdb_breakpoint_1): New function, loosely based off
10573 delete_gdb_breakpoint_at.
10574 (delete_gdb_breakpoint): New function.
10575 (clear_gdb_breakpoint_conditions): Rename to ...
10576 (clear_breakpoint_conditions): ... this. Don't handle a NULL
10578 (add_condition_to_breakpoint): Make static.
10579 (add_breakpoint_condition): Take a struct breakpoint pointer
10580 instead of an address. Adjust.
10581 (gdb_condition_true_at_breakpoint): Rename to ...
10582 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
10584 (gdb_condition_true_at_breakpoint): Reimplement.
10585 (add_breakpoint_commands): Take a struct breakpoint pointer
10586 instead of an address. Adjust.
10587 (gdb_no_commands_at_breakpoint): Rename to ...
10588 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
10589 parameter. Return true if no breakpoint was found. Change debug
10591 (gdb_no_commands_at_breakpoint): Reimplement.
10592 (run_breakpoint_commands): Rename to ...
10593 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
10594 and change return type to boolean.
10595 (run_breakpoint_commands): New function.
10596 (gdb_breakpoint_here): Also check for Z1 breakpoints.
10597 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
10598 breakpoint. Go through the_target->remove_point instead of
10599 assuming memory breakpoint.
10600 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
10601 software and hardware breakpoints.
10602 (reinsert_raw_breakpoint): Go through the_target->insert_point
10603 instead of assuming memory breakpoint.
10604 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
10605 software and hardware breakpoints.
10606 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
10607 Check both software and hardware breakpoints.
10608 (validate_inserted_breakpoint): Assert the breakpoint is a
10609 software breakpoint. Set the inserted flag to -1 instead of
10610 setting shlib_disabled.
10611 (delete_disabled_breakpoints): Adjust.
10612 (validate_breakpoints): Only validate software breakpoints.
10613 Adjust to inserted flag change.
10614 (check_mem_read, check_mem_write): Skip breakpoint types other
10615 than software breakpoints. Adjust to inserted flag change.
10616 * mem-break.h (enum raw_bkpt_type): New enum.
10617 (raw_breakpoint, struct process_info): Forward declare.
10618 (Z_packet_to_target_hw_bp_type): Delete declaration.
10619 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
10620 (set_gdb_breakpoint, delete_gdb_breakpoint)
10621 (clear_breakpoint_conditions): New declarations.
10622 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
10623 (breakpoint_inserted_here): Update comment.
10624 (add_breakpoint_condition, add_breakpoint_commands): Replace
10625 address parameter with a breakpoint pointer parameter.
10626 (gdb_breakpoint_here): Update comment.
10627 (delete_gdb_breakpoint_at): Delete.
10628 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
10629 * server.c (process_point_options): Take a struct breakpoint
10630 pointer instead of an address. Adjust.
10631 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
10632 delete_gdb_breakpoint.
10633 * spu-low.c (spu_target_ops): Install NULL as
10634 supports_z_point_type method.
10635 * target.h: Include mem-break.h.
10636 (struct target_ops) <prepare_to_access_memory>: Update comment.
10637 <supports_z_point_type>: New field.
10638 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10639 instead of a char. Also take a raw breakpoint pointer.
10640 * win32-arm-low.c (the_low_target): Install NULL as
10641 supports_z_point_type.
10642 * win32-i386-low.c (i386_supports_z_point_type): New function.
10643 (i386_insert_point, i386_remove_point): Adjust to new interface.
10644 (the_low_target): Install i386_supports_z_point_type.
10645 * win32-low.c (win32_supports_z_point_type): New function.
10646 (win32_insert_point, win32_remove_point): Adjust to new interface.
10647 (win32_target_ops): Install win32_supports_z_point_type.
10648 * win32-low.h (struct win32_target_ops):
10649 <supports_z_point_type>: New method.
10650 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
10651 instead of a char. Also take a raw breakpoint pointer.
10653 2014-05-20 Pedro Alves <palves@redhat.com>
10655 * mem-break.h: Include break-common.h.
10656 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10657 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
10658 (Z_packet_to_target_hw_bp_type): New declaration.
10659 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
10660 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
10661 (Z_PACKET_ACCESS_WP): Delete macros.
10662 (Z_packet_to_hw_type): Delete function.
10663 * i386-low.h: Don't include break-common.h here.
10664 (Z_packet_to_hw_type): Delete declaration.
10665 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
10666 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10667 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
10668 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
10669 * linux-aarch64-low.c: Don't include break-common.h here.
10670 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
10671 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
10672 (Z_packet_to_target_hw_bp_type): Delete function.
10673 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
10675 (mips_insert_point, mips_remove_point): Use
10676 Z_packet_to_target_hw_bp_type.
10678 2014-05-20 Pedro Alves <palves@redhat.com>
10680 * linux-aarch64-low.c: Include break-common.h.
10681 (enum target_point_type): Delete.
10682 (Z_packet_to_point_type): Rename to ...
10683 (Z_packet_to_target_hw_bp_type): ... this, and return a
10684 target_hw_bp_type instead.
10685 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
10686 instead of an enum target_point_type.
10687 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
10689 (aarch64_dr_state_insert_one_point)
10690 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
10691 (aarch64_handle_aligned_watchpoint)
10692 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
10693 Take an enum target_hw_bp_type instead of an enum
10695 (aarch64_supports_z_point_type): New function.
10696 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
10697 use Z_packet_to_target_hw_bp_type.
10699 2014-05-20 Joel Brobecker <brobecker@adacore.com>
10701 * configure.ac: Only use -Werror by default when DEVELOPMENT
10703 * configure: Regenerate.
10705 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10707 Fix gdbserver qGetTLSAddr for x86_64 -m32.
10708 * linux-x86-low.c (X86_64_USER_REGS): New.
10709 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
10711 2014-04-28 Yao Qi <yao@codesourcery.com>
10713 * Makefile.in (i386-avx512.c): Fix the typo of generated file
10716 2014-04-25 Pedro Alves <palves@redhat.com>
10719 * linux-low.c (linux_attach_fail_reason_string): New function.
10720 (linux_attach_lwp): Delete.
10721 (linux_attach_lwp_1): Rename to ...
10722 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
10723 argument. Remove "initial" parameter. Return int instead of
10724 void. Don't error or warn here.
10725 (linux_attach): Adjust to call linux_attach_lwp. Call error on
10726 failure to attach to the tgid. Call warning when failing to
10728 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
10729 argument. Remove "initial" parameter. Return int instead of
10730 void. Don't error or warn here.
10731 (linux_attach_fail_reason_string): New declaration.
10732 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
10733 interface change. Use linux_attach_fail_reason_string.
10735 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
10736 Walfred Tedeschi <walfred.tedeschi@intel.com>
10738 * Makefile.in: Added rules to handle new files
10739 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
10740 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
10741 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
10742 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
10743 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
10744 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
10745 x32-avx512-linux.o.
10746 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
10747 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
10748 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
10749 i386/x32-avx512.xml.
10750 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
10751 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
10752 i386/x32-avx512-linux.xml.
10753 * i387-fp.c (num_avx512_k_registers): New constant for number
10755 (num_avx512_zmmh_low_registers): New constant for number of
10756 lower ZMM registers (0-15).
10757 (num_avx512_zmmh_high_registers): New constant for number of
10758 higher ZMM registers (16-31).
10759 (num_avx512_ymmh_registers): New contant for number of higher
10760 YMM registers (ymm16-31 added by avx521 on x86_64).
10761 (num_avx512_xmm_registers): New constant for number of higher
10762 XMM registers (xmm16-31 added by AVX512 on x86_64).
10763 (struct i387_xsave): Add space for AVX512 registers.
10764 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
10765 Add code to handle AVX512 registers.
10766 (i387_xsave_to_cache): Add code to handle AVX512 registers.
10767 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
10768 prototypei from generated file.
10769 (tdesc_amd64_avx512_linux): Likewise.
10770 (init_registers_x32_avx512_linux): Likewise.
10771 (tdesc_x32_avx512_linux): Likewise.
10772 (init_registers_i386_avx512_linux): Likewise.
10773 (tdesc_i386_avx512_linux): Likewise.
10774 (x86_64_regmap): Add AVX512 registers.
10775 (x86_linux_read_description): Add code to handle AVX512 XSTATE
10777 (initialize_low_arch): Add code to initialize AVX512 registers.
10779 2014-04-23 Pedro Alves <palves@redhat.com>
10781 * mem-break.c (find_gdb_breakpoint_at): Make static.
10782 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
10784 2014-04-23 Pedro Alves <palves@redhat.com>
10786 * i386-low.c: Don't include break-common.h here.
10787 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10788 prototype to take target_hw_bp_type as argument instead of a Z
10790 * i386-low.h: Include break-common.h here.
10791 (Z_packet_to_hw_type): Declare.
10792 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
10794 * linux-x86-low.c (x86_insert_point): Convert the packet number to
10795 a target_hw_bp_type before calling i386_low_insert_watchpoint.
10796 (x86_remove_point): Convert the packet number to a
10797 target_hw_bp_type before calling i386_low_remove_watchpoint.
10798 * win32-i386-low.c (i386_insert_point): Convert the packet number
10799 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
10800 (i386_remove_point): Convert the packet number to a
10801 target_hw_bp_type before calling i386_low_remove_watchpoint.
10803 2014-04-23 Pedro Alves <palves@redhat.com>
10805 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
10807 2014-04-10 Pedro Alves <palves@redhat.com>
10809 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
10810 Check if the condition or command is NULL before checking if the
10811 breakpoint is known. On success, return true.
10812 * mem-break.h (add_breakpoint_condition): Document return.
10813 (add_breakpoint_commands): Add describing comment.
10814 * server.c (skip_to_semicolon): New function.
10815 (process_point_options): Use it.
10817 2014-04-09 Pedro Alves <palves@redhat.com>
10819 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
10822 2014-02-27 Pedro Alves <palves@redhat.com>
10825 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
10827 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
10829 (last_thread_of_process_p): Take a PID argument instead of a
10831 (linux_wait_for_lwp): Delete.
10832 (num_lwps, check_zombie_leaders, not_stopped_callback): New
10834 (linux_low_filter_event): New function, party factored out from
10835 linux_wait_for_event.
10836 (linux_wait_for_event): Rename to ...
10837 (linux_wait_for_event_filtered): ... this. Add new filter ptid
10838 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
10839 sigsuspend. Check for zombie leaders.
10840 (linux_wait_for_event): Reimplement as wrapper around
10841 linux_wait_for_event_filtered.
10842 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
10843 a normal or signal exit is seen, it's the whole process exiting.
10844 (wait_for_sigstop): No longer a for_each_inferior callback.
10845 Rewrite on top of linux_wait_for_event_filtered.
10846 (stop_all_lwps): Call wait_for_sigstop directly.
10847 * server.c (resume, handle_target_event): Handle
10848 TARGET_WAITKIND_NO_RESUMED.
10850 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10852 * win32-low.c (psapi_get_dll_name,
10853 * win32_CreateToolhelp32Snapshot): Delete.
10854 (win32_CreateToolhelp32Snapshot, win32_Module32First)
10855 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
10857 (handle_load_dll): Add function description.
10858 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
10860 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10862 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
10864 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
10865 base address when calling win32_add_one_solib.
10866 (handle_load_dll): Delete local variable load_addr.
10867 Remove 0x1000 offset applied to DLL base address when calling
10868 win32_add_one_solib.
10869 (handle_unload_dll): Add comment.
10871 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10873 * win32-low.c (win32_add_all_dlls): Renames
10874 win32_ensure_ntdll_loaded. Rewrite function documentation.
10875 Adjust implementation to always load all DLLs.
10876 Add 0x1000 offset to DLL base address when calling
10877 win32_add_one_solib.
10878 (child_initialization_done): New static global.
10879 (do_initial_child_stuff): Set child_initialization_done to
10880 zero during child initialization, and 1 after. Replace call
10881 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
10883 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
10884 (handle_unload_dll): Add function documentation.
10885 (get_child_debug_event): Ignore load and unload DLL events
10886 during child initialization.
10888 2014-02-20 Doug Evans <dje@google.com>
10890 Remove global all_lwps.
10891 * inferiors.h (ptid_of): Move here from linux-low.h.
10892 (pid_of, lwpid_of): Ditto.
10893 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
10894 parameter is a struct thread_info * now.
10895 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
10896 directly. Pass &all_threads to find_inferior instead of &all_lwps.
10897 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
10899 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
10900 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
10901 * linux-arm-low.c (update_registers_callback): Update, "entry"
10902 parameter is a struct thread_info * now.
10903 Fetch lwpid from current_inferior directly.
10904 (arm_insert_point): Pass &all_threads to find_inferior instead of
10906 (arm_remove_point): Ditto.
10907 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
10908 (arm_prepare_to_resume): Fetch pid from thread.
10909 (arm_read_description): Fetch lwpid from current_inferior directly.
10910 * linux-low.c (all_lwps): Delete.
10911 (delete_lwp): Delete call to remove_inferior.
10912 (handle_extended_wait): Fetch lwpid from thread.
10913 (add_lwp): Don't set lwp->entry.id. Remove call to
10914 add_inferior_to_list.
10915 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
10916 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
10917 (kill_one_lwp_callback): Ditto.
10918 (linux_kill): Don't dereference NULL pointer.
10919 Fetch ptid,lwpid from thread.
10920 (get_detach_signal): Fetch ptid from thread.
10921 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
10922 Simplify call to regcache_invalidate_thread.
10923 (delete_lwp_callback): Update, "entry" parameter is a
10924 struct thread_info * now. Fetch pid from thread.
10925 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
10926 (status_pending_p_callback): Update, "entry" parameter is a
10927 struct thread_info * now. Fetch ptid from thread.
10928 (find_lwp_pid): Update, "entry" parameter is a
10929 struct thread_info * now.
10930 (linux_wait_for_lwp): Fetch pid from thread.
10931 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
10932 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
10933 (enqueue_one_deferred_signal): Fetch lwpid from thread.
10934 (dequeue_one_deferred_signal): Ditto.
10935 (cancel_breakpoint): Fetch ptid from current_inferior.
10936 (linux_wait_for_event): Pass &all_threads to find_inferior,
10937 not &all_lwps. Fetch ptid, lwpid from thread.
10938 (count_events_callback): Update, "entry" parameter is a
10939 struct thread_info * now.
10940 (select_singlestep_lwp_callback): Ditto.
10941 (select_event_lwp_callback): Ditto.
10942 (cancel_breakpoints_callback): Ditto.
10943 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
10945 (select_event_lwp): Ditto. Fetch ptid from event_thread.
10946 (unsuspend_one_lwp): Update, "entry" parameter is a
10947 struct thread_info * now.
10948 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
10950 (linux_stabilize_threads): Ditto. And for for_each_inferior.
10951 Fetch lwpid from thread, not lwp.
10952 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
10953 Pass &all_threads to find_inferior, not &all_lwps.
10954 (send_sigstop): Fetch lwpid from thread, not lwp.
10955 (send_sigstop_callback): Update, "entry" parameter is a
10956 struct thread_info * now.
10957 (suspend_and_send_sigstop_callback): Ditto.
10958 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
10959 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
10960 struct thread_info * now.
10961 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
10963 (lwp_running): Update, "entry" parameter is a
10964 struct thread_info * now.
10965 (stop_all_lwps): Fetch ptid from thread.
10966 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
10967 (linux_resume_one_lwp): Fetch lwpid from thread.
10968 (linux_set_resume_request): Update, "entry" parameter is a
10969 struct thread_info * now. Fetch pid, lwpid from thread.
10970 (resume_status_pending_p): Update, "entry" parameter is a
10971 struct thread_info * now.
10972 (need_step_over_p): Ditto. Fetch lwpid from thread.
10973 (start_step_over): Fetch lwpid from thread.
10974 (linux_resume_one_thread): Update, "entry" parameter is a
10975 struct thread_info * now. Fetch lwpid from thread.
10976 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
10977 (proceed_one_lwp): Update, "entry" parameter is a
10978 struct thread_info * now. Fetch lwpid from thread.
10979 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
10980 struct thread_info * now.
10981 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
10982 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
10983 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
10985 (regsets_store_inferior_registers): Ditto.
10986 (fetch_register, store_register): Ditto.
10987 (linux_read_memory, linux_write_memory): Ditto.
10988 (linux_request_interrupt): Ditto.
10989 (linux_read_auxv): Ditto.
10990 (linux_xfer_siginfo): Ditto.
10991 (linux_qxfer_spu): Ditto.
10992 (linux_qxfer_libraries_svr4): Ditto.
10993 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
10994 moved to inferiors.h.
10996 (get_thread_lwp): Update.
10997 (struct lwp_info): Delete member "entry". Simplify comment for
10999 (all_lwps): Delete.
11000 * linux-mips-low.c (mips_read_description): Fetch lwpid from
11001 current_inferior directly.
11002 (update_watch_registers_callback): Update, "entry" parameter is a
11003 struct thread_info * now. Fetch pid from thread.
11004 (mips_linux_prepare_to_resume): Fetch ptid from thread.
11005 (mips_insert_point): Fetch lwpid from current_inferior.
11006 Pass &all_threads to find_inferior, not &all_lwps.
11007 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
11008 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
11010 (mips_stopped_data_address): Ditto.
11011 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
11013 * linux-tile-low.c (tile_arch_setup): Ditto.
11014 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
11015 (update_debug_registers_callback): Update, "entry" parameter is a
11016 struct thread_info * now. Fetch pid from thread.
11017 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
11018 Pass &all_threads to find_inferior, not &all_lwps.
11019 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
11020 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
11021 Pass &all_threads to find_inferior, not &all_lwps.
11022 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
11023 (i386_dr_low_get_status): Ditto.
11024 (x86_linux_prepare_to_resume): Fetch ptid from thread.
11025 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
11026 (x86_linux_read_description): Ditto.
11027 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
11029 2014-02-20 Doug Evans <dje@google.com>
11031 * inferiors.c (get_first_inferior): Fix buglet.
11033 2014-02-19 Doug Evans <dje@google.com>
11035 * gdbthread.h (add_thread): Change result type to struct thread_info *.
11036 * inferiors.c (add_thread): Change result type to struct thread_info *.
11037 All callers updated.
11038 (add_lwp): Call add_thread here instead of in callers.
11039 All callers updated.
11040 * linux-low.h (get_lwp_thread): Rewrite.
11041 (struct lwp_info): New member "thread".
11043 2014-02-19 Doug Evans <dje@google.com>
11045 * linux-low.c (add_lwp): Change result to struct lwp_info *.
11046 All callers updated.
11048 2014-02-19 Doug Evans <dje@google.com>
11050 * inferiors.c (add_thread): Fix whitespace.
11052 2014-02-19 Doug Evans <dje@google.com>
11054 * dll.c (clear_dlls): Replace accessing list implemention details
11056 * gdbthread.h (get_first_thread): Declare.
11057 * inferiors.c (for_each_inferior_with_data): New function.
11058 (get_first_thread): New function.
11059 (find_thread_ptid): Simplify.
11060 (get_first_inferior): New function.
11061 (clear_list): Delete.
11062 (one_inferior_p): New function.
11063 (clear_inferior_list): New function.
11064 (clear_inferiors): Update.
11065 * inferiors.h (for_each_inferior_with_data): Declare.
11066 (clear_inferior_list): Declare.
11067 (one_inferior_p): Declare.
11068 (get_first_inferior): Declare.
11069 * linux-low.c (linux_wait_for_event): Replace accessing list
11070 implemention details with API function.
11071 * server.c (target_running): Ditto.
11072 (accumulate_file_name_length): New function.
11073 (emit_dll_description): New function.
11074 (handle_qxfer_libraries): Replace accessing list implemention
11075 details with API function.
11076 (handle_qxfer_threads_worker): New function.
11077 (handle_qxfer_threads_proper): Replace accessing list implemention
11078 details with API function.
11079 (handle_query): Ditto.
11080 (visit_actioned_threads_callback_ftype): New typedef.
11081 (visit_actioned_threads_data): New struct.
11082 (visit_actioned_threads): Rewrite to be find_inferior callback.
11083 (resume): Call find_inferior.
11084 (handle_status): Replace accessing list implemention
11085 details with API function.
11086 (process_serial_event): Replace accessing list implemention details
11088 * target.c (set_desired_inferior): Replace accessing list implemention
11089 details with API function.
11090 * tracepoint.c (same_process_p): New function.
11091 (gdb_agent_about_to_close): Replace accessing list implemention
11092 details with API function.
11093 * win32-low.c (child_delete_thread): Replace accessing list
11094 implemention details with API function.
11095 (match_dll_by_basename): New function.
11096 (dll_is_loaded_by_basename): New function.
11097 (win32_ensure_ntdll_loaded): Replace accessing list implemention
11098 details call to dll_is_loaded_by_basename.
11100 2014-02-19 Doug Evans <dje@google.com>
11102 * dll.h (struct dll_info): Add comment.
11103 * gdbthread.h (struct thread_info): Add comment.
11104 (current_ptid): Simplify.
11105 * inferiors.c (add_process): Update.
11106 (remove_process): Update.
11107 * inferiors.h (struct process_info): Rename member "head" to "entry".
11108 * linux-low.c (delete_lwp): Update.
11110 (last_thread_of_process_p): Update.
11111 (kill_one_lwp_callback, linux_kill): Update.
11112 (status_pending_p_callback): Update.
11113 (wait_for_sigstop): Update. Simplify read of ptid.
11114 (start_step_over): Update.
11115 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
11116 (get_lwp_thread): Update.
11117 (struct lwp_info): Rename member "head" to "entry".
11118 * regcache.h (inferior_list_entry): Delete.
11119 * server.c (kill_inferior_callback): Update.
11120 (detach_or_kill_inferior_callback): Update.
11121 (print_started_pid): Update.
11122 (print_attached_pid): Update.
11123 (process_serial_event): Simplify read of ptid.
11124 * thread-db.c (thread_db_create_event): Update.
11125 (thread_db_get_tls_address): Update.
11126 * win32-low.c (current_inferior_ptid): Simplify.
11128 2014-02-19 Tom Tromey <tromey@redhat.com>
11130 * target.h (struct target_ops) <supports_btrace>: Add target_ops
11132 (target_supports_btrace): Update.
11134 2014-02-14 Yao Qi <yao@codesourcery.com>
11136 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
11137 (rsp-low-ipa.o): New target.
11139 2014-02-12 Tom Tromey <tromey@redhat.com>
11141 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
11142 convert_ascii_to_int.
11143 * regcache.c (registers_to_string): Likewise.
11144 * remote-utils.c (decode_M_packet): Likewise.
11145 * server.c (process_serial_event): Likewise.
11147 2014-02-12 Tom Tromey <tromey@redhat.com>
11149 * server.c (handle_query, handle_v_run): Use hex2bin, not
11151 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
11153 2014-02-12 Tom Tromey <tromey@redhat.com>
11155 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
11156 convert_int_to_ascii.
11157 * regcache.c (registers_to_string, collect_register_as_string):
11159 * remote-utils.c (look_up_one_symbol, relocate_instruction):
11161 * server.c (process_serial_event): Likewise.
11162 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
11163 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
11165 2014-02-12 Tom Tromey <tromey@redhat.com>
11167 * remote-utils.c (look_up_one_symbol, monitor_output): Use
11168 bin2hex, not hexify.
11169 * tracepoint.c (cmd_qtstatus): Likewise.
11171 2014-02-12 Tom Tromey <tromey@redhat.com>
11173 * remote-utils.c (monitor_output): Pass explicit length to
11176 2014-02-12 Tom Tromey <tromey@redhat.com>
11178 * tracepoint.c: Include rsp-low.h.
11179 * server.c: Include rsp-low.h.
11180 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
11181 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
11183 * remote-utils.c: Include rsp-low.h.
11184 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
11185 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
11186 (convert_int_to_ascii, convert_ascii_to_int): Move to
11188 * regcache.c: Include rsp-low.h.
11189 * ax.c: Include rsp-low.h.
11190 * Makefile.in (SFILES): Add common/rsp-low.c.
11191 (OBS): Add rsp-low.o.
11192 (rsp-low.o): New target.
11194 2014-02-12 Tom Tromey <tromey@redhat.com>
11196 * utils.h (pulongest, plongest, phex_nz): Don't declare.
11197 Include print-utils.h.
11198 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11199 (plongest, thirty_two, phex_nz): Remove.
11200 * Makefile.in (SFILES): Add common/print-utils.c.
11201 (OBS): Add print-utils.o.
11202 (print-utils-ipa.o): New target.
11203 (print-utils.o): New target.
11204 (IPA_OBJS): Add print-utils-ipa.o.
11206 2014-02-06 Tom Tromey <tromey@redhat.com>
11208 * Makefile.in (SFILES): Fix indentation.
11210 2014-02-05 Doug Evans <dje@google.com>
11212 * linux-low.c (linux_wait_for_event): Improve comment.
11213 (linux_wait_1): Keep current_inferior in sync with event_child.
11215 2014-01-22 Doug Evans <dje@google.com>
11217 * gdbthread.h (gdb_id_to_thread): Delete, unused.
11219 2014-01-22 Doug Evans <dje@google.com>
11221 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
11222 * configure: Regenerate.
11223 * config.in: Regenerate.
11224 * Makefile.in (SFILES): Add debug.c.
11225 (OBS): Add debug.o.
11226 * debug.c: New file.
11227 * debug.h: New file.
11228 * linux-aarch64-low.c (*): Update all debugging printfs to use
11229 debug_printf instead of fprintf.
11230 * linux-arm-low.c (*): Ditto.
11231 * linux-cris-low.c (*): Ditto.
11232 * linux-crisv32-low.c (*): Ditto.
11233 * linux-m32r-low.c (*): Ditto.
11234 * linux-sparc-low.c (*): Ditto.
11235 * linux-x86.c (*): Ditto.
11236 * linux-low.c (*): Ditto.
11237 (linux_wait_1): Add calls to debug_enter, debug_exit.
11238 (linux_wait): Remove redundant debugging printf.
11239 (stop_all_lwps): Add calls to debug_enter, debug_exit.
11240 (linux_resume, unstop_all_lwps): Ditto.
11241 * mem-break.c (*): Update all debugging printfs to use
11242 debug_printf instead of fprintf.
11243 * remote-utils.c (*): Ditto.
11244 * thread-db.c (*): Ditto.
11245 * server.c #include <ctype.h>, "gdb_vecs.h".
11246 (debug_threads): Moved to debug.c.
11247 (*): Update all debugging printfs to use debug_printf instead of
11249 (start_inferior): Replace call to fflush with call to debug_flush.
11250 (monitor_show_help): Mention set debug-format.
11251 (parse_debug_format_options): New function.
11252 (handle_monitor_command): Handle "monitor set debug-format".
11253 (gdbserver_usage): Mention --debug-format.
11254 (main): Parse --debug-format.
11255 * server.h (debug_threads): Declaration moved to debug.h.
11256 #include "debug.h".
11257 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
11258 trace_debug_1 that uses debug_printf.
11259 (tracepoint_look_up_symbols): Update all debugging printfs to use
11260 debug_printf instead of fprintf.
11262 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11264 * linux-xtensa-low.c: Include asm/ptrace.h instead of
11267 2014-01-17 Pedro Alves <palves@redhat.com>
11270 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
11271 defined after including gdb_proc_service.h.
11273 2014-01-16 Doug Evans <dje@google.com>
11275 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
11276 (match_dll): Use it.
11278 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11280 * target.h (target_ops) <read_btrace>: Change parameters and
11281 return type to allow error reporting.
11282 * server.c (handle_qxfer_btrace): Support delta reads. Pass
11283 trace reading errors on.
11284 * linux-low.c (linux_low_read_btrace): Pass trace reading
11286 (linux_low_disable_btrace): New.
11288 2014-01-15 Doug Evans <dje@google.com>
11290 * inferiors.c (thread_id_to_gdb_id): Delete.
11291 * inferiors.h (thread_id_to_gdb_id): Delete.
11293 2014-01-13 Eli Zaretskii <eliz@gnu.org>
11295 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
11296 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
11299 2014-01-08 Pedro Alves <palves@redhat.com>
11301 * server.c (handle_status): Don't discard previous queued stop
11302 replies or thread's pending status here.
11303 (main) <disconnection>: Do it here instead.
11305 2014-01-08 Pedro Alves <palves@redhat.com>
11307 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
11308 * server.c (visit_actioned_threads, handle_pending_status): New
11310 (handle_v_cont): Factor out parts to ...
11311 (resume): ... this new function. If in all-stop, and a thread
11312 being resumed has a pending status, report it without actually
11314 (myresume): Adjust to use the new 'resume' function.
11315 (clear_pending_status_callback, set_pending_status_callback)
11316 (find_status_pending_thread_callback): New functions.
11317 (handle_status): Handle the case of multiple threads having
11318 interesting statuses to report. Report threads' real last signal
11319 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
11320 with an interesting thread to report the status for, instead of
11321 always reporting the status of the first thread.
11323 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11325 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
11326 * gdbreplay.c (gdbreplay_version): Likewise.
11328 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
11330 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
11331 iov.iov_len with the real length in use.
11333 2013-12-13 Joel Brobecker <brobecker@adacore.com>
11335 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
11336 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
11337 for all targets that use win32-low.c.
11338 * win32-low.c (win32_ensure_ntdll_loaded): New function.
11339 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
11341 2013-12-13 Pedro Alves <palves@redhat.com>
11343 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
11344 if equal to TARGET_WAITKIND_LOADED.
11345 * win32-low.c (cached_status): New static global.
11346 (win32_wait): Add declaration.
11347 (do_initial_child_stuff): Flush all initial pending debug events
11348 up to the initial breakpoint.
11349 (win32_wait): If CACHED_STATUS was set, return that instead
11350 of doing a real wait. Remove the code resuming the execution
11351 of the inferior after receiving a TARGET_WAITKIND_LOADED event
11352 during the initial phase. Also remove the code changing
11353 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
11354 TARGET_WAITKIND_STOPPED.
11356 2013-12-11 Yao Qi <yao@codesourcery.com>
11358 * notif.c (handle_notif_ack): Return 0 if no notification
11361 2013-11-20 Doug Evans <dje@google.com>
11363 * linux-low.c (linux_set_resume_request): Fix comment.
11365 2013-11-20 Doug Evans <dje@google.com>
11367 * linux-low.c (resume_status_pending_p): Tweak comment.
11369 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
11371 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
11372 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
11373 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
11374 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
11375 (srv_amd64_regobj): Add amd64-mpx.o.
11376 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
11377 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
11378 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
11379 * i387-fp.c (num_pl_bnd_register) Added constant.
11380 (num_pl_bnd_cfg_registers) Added constant.
11381 (struct i387_xsave) Added reserved area and MPX fields.
11382 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
11383 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
11385 (tdesc_i386_mpx_linux): Add MPX amd64 target.
11386 (init_registers_amd64_mpx_linux): Declare new function.
11387 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
11388 (x86_64_regmap): Add MPX registers.
11389 (x86_linux_read_description): Add MPX case.
11390 (initialize_low_arch): Initialize MPX targets.
11392 2013-11-18 Tom Tromey <tromey@redhat.com>
11394 * configure: Rebuild.
11395 * configure.ac: Don't check for stdlib.h.
11396 * gdbreplay.c: Unconditionally include stdlib.h.
11398 2013-11-18 Tom Tromey <tromey@redhat.com>
11400 * config.in: Rebuild.
11401 * configure: Rebuild.
11402 * configure.ac: Don't use AC_HEADER_DIRENT.
11404 2013-11-18 Tom Tromey <tromey@redhat.com>
11406 * server.h: Don't check HAVE_STRING_H.
11407 * gdbreplay.c: Don't check HAVE_STRING_H.
11408 * configure: Rebuild.
11410 2013-11-18 Tom Tromey <tromey@redhat.com>
11412 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
11415 2013-11-08 Tom Tromey <tromey@redhat.com>
11417 * configure, config.in: Rebuild.
11418 * configure.ac: Remove unused configury.
11420 2013-11-08 Tom Tromey <tromey@redhat.com>
11422 * acinclude.m4: Include common.m4, codeset.m4.
11423 * configure, config.in: Rebuild.
11424 * configure.ac: Use GDB_AC_COMMON.
11426 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
11428 * linux-s390-low.c (HWCAP_S390_TE): New define.
11429 (s390_arch_setup): Consider the TE field in the HWCAP for
11430 determining 'have_regset_tdb'.
11432 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
11435 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
11438 2013-10-02 Pedro Alves <palves@redhat.com>
11440 * server.c (process_serial_event): Don't output "GDBserver
11441 exiting" if GDB is connected through stdio.
11442 * target.c (mywait): Likewise, be silent if GDB is connected
11445 2013-10-01 Joel Brobecker <brobecker@adacore.com>
11447 * lynx-low.c (lynx_add_threads_after_attach): New function.
11448 (lynx_attach): Remove call to add_thread. Add call to
11449 lynx_add_threads_after_attach instead.
11451 2013-09-28 Mike Frysinger <vapier@gentoo.org>
11453 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
11454 * config.in, configure: Regenerated.
11456 2013-09-18 Yao Qi <yao@codesourcery.com>
11459 * server.c (start_inferior): Clear 'resume_info'.
11461 2013-09-16 Jiong Wang <jiwang@tilera.com>
11463 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
11466 2013-09-16 Jiong Wang <jiwang@tilera.com>
11468 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
11469 linux-tile-low.o to srv_tgtobj.
11471 2013-09-16 Will Newton <will.newton@linaro.org>
11473 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
11476 2013-09-06 Pedro Alves <palves@redhat.com>
11478 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
11479 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
11480 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
11481 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
11482 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
11483 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
11485 2013-09-06 Pedro Alves <palves@redhat.com>
11487 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
11488 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
11490 2013-09-06 Pedro Alves <palves@redhat.com>
11492 * linux-amd64-ipa.c: Include tracepoint.h.
11493 * linux-i386-ipa.c: Include tracepoint.h.
11495 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11497 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
11498 (ps_get_thread_area): New function.
11500 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
11502 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
11503 (initialize_low_arch): Call init_registers_crisv32 rather than
11504 init_register_crisv32.
11506 2013-09-05 Pedro Alves <palves@redhat.com>
11508 * server.h (handle_vFile, hostio_last_error_from_errno): Move
11510 * hostio.h: ... this new file.
11511 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
11512 win32-low.c: Include hostio.h.
11514 2013-09-05 Pedro Alves <palves@redhat.com>
11516 * server.h (gdb_client_data, handler_func, callback_handler_func)
11517 (delete_file_handler, add_file_handler, append_callback_event)
11518 (delete_callback_event, start_event_loop, initialize_event_loop):
11519 Move to event-loop.h and include it.
11520 * event-loop.h: New file.
11522 2013-09-05 Pedro Alves <palves@redhat.com>
11524 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
11525 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
11526 (loaded_dll, unloaded_dll): Move to ...
11527 * dll.h: ... this new file.
11528 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
11530 2013-09-05 Pedro Alves <palves@redhat.com>
11532 * server.h (current_process, get_thread_process, all_processes)
11533 (add_inferior_to_list, for_each_inferior, current_inferior)
11534 (remove_inferior, add_process, remove_process, find_process_pid)
11535 (have_started_inferiors_p, have_attached_inferiors_p)
11536 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
11537 (clear_inferiors, find_inferior, find_inferior_id)
11538 (inferior_target_data, set_inferior_target_data)
11539 (inferior_regcache_data, set_inferior_regcache_data): Move to
11540 inferiors.h, and include it.
11541 * inferiors.h: New file.
11543 2013-09-05 Pedro Alves <palves@redhat.com>
11545 * server.h (struct emit_ops, current_insn_ptr, emit_error):
11549 2013-09-05 Pedro Alves <palves@redhat.com>
11551 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
11553 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
11554 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
11555 (handle_tracepoint_general_set, handle_tracepoint_query)
11556 (tracepoint_finished_step, tracepoint_was_hit)
11557 (release_while_stepping_state_list, current_traceframe)
11558 (in_readonly_region, traceframe_read_mem)
11559 (fetch_traceframe_registers, traceframe_read_sdata)
11560 (traceframe_read_info, struct fast_tpoint_collect_status)
11561 (fast_tracepoint_collecting, force_unlock_trace_buffer)
11562 (handle_tracepoit_bkpts, initialize_low_tracepoint)
11563 (supply_fast_tracepoint_registers)
11564 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
11565 (ipa_tdesc, claim_trampoline_space)
11566 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
11567 (agent_mem_read, agent_get_trace_state_variable_value)
11568 (agent_set_trace_state_variable_value, agent_tsv_read)
11569 (agent_mem_read_string, get_raw_reg_func_addr)
11570 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
11571 * tracepoint.h: ... this new file.
11573 2013-09-05 Pedro Alves <palves@redhat.com>
11575 * server.h (perror_with_name, error, fatal, warning, paddress)
11576 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
11578 * utils.h: New file.
11580 2013-09-05 Pedro Alves <palves@redhat.com>
11582 * server.h (remote_debug, noack_mode, transport_is_reliable)
11583 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
11584 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
11585 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
11586 (write_enn, initialize_async_io, enable_async_io)
11587 (disable_async_io, check_remote_input_interrupt_request)
11588 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
11589 (dead_thread_notify, prepare_resume_reply)
11590 (decode_address_to_semicolon, decode_address, decode_m_packet)
11591 (decode_M_packet, decode_X_packet, decode_xfer_write)
11592 (decode_search_memory_packet, unhexify, hexify)
11593 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
11594 (look_up_one_symbol, relocate_instruction)
11595 (monitor_output): Move to remote-utils.h, and include it.
11596 * remote-utils.h: New file.
11598 2013-09-05 Pedro Alves <palves@redhat.com>
11600 * server.h (_): Delete.
11602 2013-09-02 Pedro Alves <palves@redhat.com>
11604 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
11605 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
11607 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
11609 2013-09-02 Pierre Muller <muller@sourceware.org>
11611 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
11612 or WriteProcessMemory complete successfully and handle
11613 ERROR_PARTIAL_COPY error.
11615 2013-09-02 Pedro Alves <palves@redhat.com>
11617 * server.c (gdb_read_memory): Return -1 on traceframe memory read
11618 error instead of EIO.
11620 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11623 * linux-low.c: Include filestuff.h.
11624 (linux_create_inferior) <pid == 0>: Call close_most_fds.
11625 * lynx-low.c: Include filestuff.h.
11626 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
11627 * server.c: Include filestuff.h.
11628 (main): Call notice_open_fds.
11629 * spu-low.c: Include filestuff.h.
11630 (spu_create_inferior) <pid == 0>: Call close_most_fds.
11632 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
11634 * Makefile.in: Explain why ../target and ../nat are not
11635 listed as include file search paths.
11636 (linux-waitpid.o): New object file rule.
11637 * configure.srv (srv_native_linux_obj): New variable.
11638 Replace all occurrences of linux native object files with
11639 $srv_native_linux_obj.
11640 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
11641 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
11642 (linux_enable_event_reporting): Remove declaration.
11643 (my_waitpid): Moved to common/linux-waitpid.c.
11644 (linux_wait_for_event): Pass ptid when calling
11645 linux_enable_event_reporting.
11646 (linux_supports_tracefork_flag): Remove.
11647 (linux_enable_event_reporting): Likewise.
11648 (linux_tracefork_grandchild): Remove.
11649 (STACK_SIZE): Moved to common/linux-ptrace.c.
11650 (linux_tracefork_child): Remove.
11651 (linux_test_for_tracefork): Remove.
11652 (linux_look_up_symbols): Call linux_supports_traceclone.
11653 (initialize_low): Remove call to linux_test_for_tracefork.
11654 * linux-low.h (PTRACE_TYPE_ARG3): Move to
11655 common/linux-ptrace.h.
11656 (PTRACE_TYPE_ARG4): Likewise.
11657 Include linux-ptrace.h.
11659 2013-08-21 Pedro Alves <palves@redhat.com>
11661 * config.in: Renegerate.
11663 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
11665 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
11666 (SFILES): Remove $(srcdir)/common/target-common.c and
11667 add $(srcdir)/target/waitstatus.c.
11668 (OBS): Remove target-common.o and add waitstatus.o.
11669 (server_h): Remove $(srcdir)/../common/target-common.h and
11670 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
11671 and $(srcdir)/../target/waitstatus.h.
11672 (target-common.o): Remove.
11673 (waitstatus.o): New target object file.
11674 * target.h: Do not include target-common.h and
11675 include target/resume.h, target/wait.h and
11676 target/waitstatus.h.
11678 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
11680 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11681 to PTRACE_TYPE_ARG3.
11682 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
11683 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
11685 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
11686 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
11688 2013-07-27 Jie Zhang <jie@codesourcery.com>
11689 Daniel Jacobowitz <dan@codesourcery.com>
11690 Yao Qi <yao@codesourcery.com>
11692 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
11693 (mips-linux-watch.o): New rule.
11694 (mips_linux_watch_h): New variable.
11695 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
11697 * linux-mips-low.c: Include mips-linux-watch.h.
11698 (struct arch_process_info, struct arch_lwp_info): New.
11699 (update_watch_registers_callback): New function.
11700 (mips_linux_new_process, mips_linux_new_thread) New functions.
11701 (mips_linux_prepare_to_resume, mips_insert_point): New
11703 (mips_remove_point, mips_stopped_by_watchpoint): New
11705 (rsp_bp_type_to_target_hw_bp_type): New function.
11706 (mips_stopped_data_address): New function.
11707 (the_low_target): Add watchpoint support functions.
11709 2013-07-27 Yao Qi <yao@codesourcery.com>
11711 * i386-low.c: Include break-common.h.
11712 (enum target_hw_bp_type): Remove.
11714 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
11716 * Makefile.in (SFILES): /common/target-common.c.
11717 (OBS): Add target-common.o.
11718 (server_h): Add $(srcdir)/../common/target-common.h.
11719 (target-common.o): New target.
11720 * server.c (queue_stop_reply_callback): Free
11721 status string after use.
11722 * target.c (target_waitstatus_to_string): Remove.
11723 * target.h: Include target-common.h.
11724 (resume_kind): Likewise.
11725 (target_waitkind): Likewise.
11726 (target_waitstatus): Likewise.
11727 (TARGET_WNOHANG): Likewise.
11729 2013-07-04 Yao Qi <yao@codesourcery.com>
11731 * Makefile.in (host_alias): Use @host_noncanonical@.
11732 (target_alias): Use @target_noncanonical@.
11733 * configure.ac: Use ACX_NONCANONICAL_TARGET and
11734 ACX_NONCANONICAL_HOST.
11735 * configure: Regenerated.
11738 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11740 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11741 * configure: Rebuild.
11742 * Makefile.in (version_host, version_target): Get from configure.
11743 (version.c): Use $(version_host) and $(version_target).
11745 2013-07-03 Pedro Alves <palves@redhat.com>
11747 * Makefile.in (config.status): Depend on development.sh.
11748 * acinclude.m4: Include libmcheck.m4.
11749 * configure: Regenerate.
11751 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11753 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
11754 attribute inside the parentheses.
11755 (winapi_DebugSetProcessKillOnExit): Ditto.
11756 (winapi_DebugBreakProcess): Ditto.
11757 (winapi_GenerateConsoleCtrlEvent): Ditto.
11759 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
11761 * notif.h (notif_event): Add a dummy member to avoid compiler
11764 2013-07-01 Pedro Alves <palves@redhat.com>
11766 * hostio.c (HOSTIO_PATH_MAX): Define.
11767 (require_filename, handle_open, handle_unlink, handle_readlink):
11770 2013-07-01 Pedro Alves <palves@redhat.com>
11772 * server.h: Include "pathmax.h".
11773 * linux-low.c: Don't include sys/param.h.
11774 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
11776 * win32-low.c: Don't include sys/param.h.
11777 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
11779 2013-07-01 Pedro Alves <palves@redhat.com>
11781 * event-loop.c: Don't check HAVE_UNISTD_H before including
11783 * gdbreplay.c: Likewise.
11784 * remote-utils.c: Likewise.
11785 * server.c: Likewise.
11786 * configure.ac: Don't check for unistd.h.
11787 * configure: Regenerate.
11789 2013-06-28 Tom Tromey <tromey@redhat.com>
11791 * Makefile.in (version.c): Use version.in, not
11794 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
11796 * configure.ac (version_host, version_target): Set and AC_SUBST them.
11797 * configure: Rebuild.
11798 * Makefile.in (version_host, version_target): Get from configure.
11799 (version.c): Use $(version_host) and $(version_target).
11801 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11803 Fix trace-status to output user name without trailing colon.
11804 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
11806 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
11808 Fix trace-status to output proper start-time and stop-time.
11809 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
11810 output start time and stop time in hex as gdb expects.
11812 2013-06-26 Pedro Alves <pedro@codesourcery.com>
11814 * tracepoint.c (build_traceframe_info_xml): Output trace state
11815 variables present in the trace buffer.
11817 2013-06-24 Tom Tromey <tromey@redhat.com>
11819 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
11821 (version.o): Remove.
11822 * gdbreplay.c: Include version.h.
11823 (version, host_name): Don't declare.
11824 * server.h: Include version.h.
11825 (version, host_name): Don't declare.
11827 2013-06-12 Pedro Alves <palves@redhat.com>
11829 * linux-x86-low.c (linux_is_elf64): Delete global.
11830 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
11831 with local linux_pid_exe_is_elf_64_file use.
11833 2013-06-11 Pedro Alves <palves@redhat.com>
11835 * linux-low.c (regset_disabled, disable_regset): New functions.
11836 (regsets_fetch_inferior_registers)
11837 (regsets_store_inferior_registers): Use them.
11838 (initialize_regsets_info); Don't allocate the disabled_regsets
11840 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
11843 2013-06-11 Pedro Alves <palves@redhat.com>
11845 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
11848 2013-06-11 Pedro Alves <palves@redhat.com>
11850 * linux-x86-low.c (initialize_low_arch): Call
11851 init_registers_x32_avx_linux.
11853 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11855 Fix compatibility with Android Bionic.
11856 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
11859 2013-06-07 Pedro Alves <palves@redhat.com>
11862 * Makefile.in (OBS): Add tdesc.o.
11863 (IPA_OBJS): Add tdesc-ipa.o.
11864 (tdesc-ipa.o): New rule.
11865 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
11867 * linux-low.c (new_inferior): Delete.
11868 (disabled_regsets, num_regsets): Delete.
11869 (linux_add_process): Adjust to set the new per-process
11871 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
11872 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
11873 was a stop. When calling arch_setup, switch the current inferior
11874 to the thread that got an event.
11875 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
11876 (regsets_fetch_inferior_registers)
11877 (regsets_store_inferior_registers): New regsets_info parameter.
11879 (linux_register_in_regsets): New regs_info parameter. Adjust to
11881 (register_addr, fetch_register, store_register): New usrregs_info
11882 parameter. Adjust to use it.
11883 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
11884 parameter regs_info. Adjust to use it.
11885 (linux_fetch_registers): Get the current inferior's regs_info, and
11887 (linux_store_registers): Ditto.
11888 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
11889 (initialize_low): Don't initialize the target_regsets here. Call
11890 initialize_low_arch.
11891 * linux-low.h (target_regsets): Delete declaration.
11892 (struct regsets_info): New.
11893 (struct usrregs_info): New.
11894 (struct regs_info): New.
11895 (struct process_info_private) <new_inferior>: New field.
11896 (struct linux_target_ops): Delete the num_regs, regmap, and
11897 regset_bitmap fields. New field regs_info.
11898 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
11899 * i387-fp.c (num_xmm_registers): Delete.
11900 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
11901 calls to new interface.
11902 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
11903 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
11904 Infer the number of xmm registers from the regcache's target
11906 * i387-fp.h (num_xmm_registers): Delete.
11907 * inferiors.c (add_thread): Don't install the thread's regcache
11909 * proc-service.c (gregset_info): Fetch the current inferior's
11910 regs_info. Adjust to use it.
11911 * regcache.c: Include tdesc.h.
11912 (register_bytes, reg_defs, num_registers)
11913 (gdbserver_expedite_regs): Delete.
11914 (get_thread_regcache): If the thread doesn't have a regcache yet,
11915 create one, instead of aborting gdbserver.
11916 (regcache_invalidate_one): Rename to ...
11917 (regcache_invalidate_thread): ... this.
11918 (regcache_invalidate_one): New.
11919 (regcache_invalidate): Only invalidate registers of the current
11921 (init_register_cache): Add target_desc parameter, and use it.
11922 (new_register_cache): Ditto. Assert the target description has a
11923 non zero registers_size.
11924 (regcache_cpy): Add assertions. Adjust.
11925 (realloc_register_cache, set_register_cache): Delete.
11926 (registers_to_string, registers_from_string): Adjust.
11927 (find_register_by_name, find_regno, find_register_by_number)
11928 (register_cache_size): Add target_desc parameter, and use it.
11929 (free_register_cache_thread, free_register_cache_thread_one)
11930 (regcache_release, register_cache_size): New.
11931 (register_size): Add target_desc parameter, and use it.
11932 (register_data, supply_register, supply_register_zeroed)
11933 (supply_regblock, supply_register_by_name, collect_register)
11934 (collect_register_as_string, collect_register_by_name): Adjust.
11935 * regcache.h (struct target_desc): Forward declare.
11936 (struct regcache) <tdesc>: New field.
11937 (init_register_cache, new_register_cache): Add target_desc
11939 (regcache_invalidate_thread): Declare.
11940 (regcache_invalidate_one): Delete declaration.
11941 (regcache_release): Declare.
11942 (find_register_by_number, register_cache_size, register_size)
11943 (find_regno): Add target_desc parameter.
11944 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
11946 * remote-utils.c: Include tdesc.h.
11947 (outreg, prepare_resume_reply): Adjust.
11948 * server.c: Include tdesc.h.
11949 (gdbserver_xmltarget): Delete declaration.
11950 (get_features_xml, process_serial_event): Adjust.
11951 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
11953 (struct process_info) <tdesc>: New field.
11954 (ipa_tdesc): Declare.
11955 * tdesc.c: New file.
11956 * tdesc.h: New file.
11957 * tracepoint.c: Include tdesc.h.
11958 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
11959 (get_context_regcache): Adjust to pass ipa_tdesc down.
11960 (do_action_at_tracepoint): Adjust to get the register cache size
11961 from the context regcache's description.
11962 (traceframe_walk_blocks): Adjust to get the register cache size
11963 from the current trace frame's description.
11964 (traceframe_get_pc): Adjust to get current trace frame's
11965 description and pass it down.
11966 (gdb_collect): Adjust to get the register cache size from the
11968 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
11969 (gdbserver_xmltarget): Delete.
11970 (initialize_low_tracepoint): Set the ipa's target description.
11971 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
11972 (initialize_low_tracepoint): Set the ipa's target description.
11973 * linux-x86-low.c: Include tdesc.h.
11974 [__x86_64__] (is_64bit_tdesc): New.
11975 (ps_get_thread_area, x86_get_thread_area): Use it.
11976 (i386_cannot_store_register): Rename to ...
11977 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
11978 (i386_cannot_fetch_register): Rename to ...
11979 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
11980 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
11982 (target_regsets): Rename to ...
11983 (x86_regsets): ... this.
11984 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
11986 (x86_siginfo_fixup): Use is_64bit_tdesc.
11987 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
11988 (tdesc_x32_avx_linux, tdesc_x32_linux)
11989 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
11991 (x86_linux_update_xmltarget): Delete.
11992 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
11993 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
11994 (AMD64_LINUX_USER64_CS): New.
11995 (x86_linux_read_description): New, based on
11996 x86_linux_update_xmltarget.
11997 (same_process_callback): New.
11998 (x86_arch_setup_process_callback): New.
11999 (x86_linux_update_xmltarget): New.
12000 (x86_regsets_info): New.
12001 (amd64_linux_regs_info): New.
12002 (i386_linux_usrregs_info): New.
12003 (i386_linux_regs_info): New.
12004 (x86_linux_regs_info): New.
12005 (x86_arch_setup): Reimplement.
12006 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
12007 (x86_emit_ops): Ditto.
12008 (the_low_target): Adjust. Install x86_linux_regs_info,
12009 x86_cannot_fetch_register, and x86_cannot_store_register.
12010 (initialize_low_arch): New.
12011 * linux-ia64-low.c (tdesc_ia64): Declare.
12012 (ia64_fetch_register): Adjust.
12013 (ia64_usrregs_info, regs_info): New globals.
12014 (ia64_regs_info): New function.
12015 (the_low_target): Adjust.
12016 (initialize_low_arch): New function.
12017 * linux-sparc-low.c (tdesc_sparc64): Declare.
12018 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
12020 (sparc_arch_setup): New function.
12021 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
12022 (the_low_target): Adjust.
12023 (initialize_low_arch): New function.
12024 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
12025 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
12026 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
12027 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
12028 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
12029 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
12030 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
12031 (tdesc_powerpc_isa205_vsx64l): Declare.
12032 (ppc_cannot_store_register, ppc_collect_ptrace_register)
12033 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
12034 (ppc_set_pc, ppc_get_hwcap): Adjust.
12035 (ppc_usrregs_info): Forward declare.
12036 (!__powerpc64__) ppc_regmap_adjusted: New global.
12037 (ppc_arch_setup): Adjust to the current process'es target
12039 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
12040 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
12041 (ppc_store_evrregset): Adjust.
12042 (target_regsets): Rename to ...
12043 (ppc_regsets): ... this, and make static.
12044 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
12045 (ppc_regs_info): New function.
12046 (the_low_target): Adjust.
12047 (initialize_low_arch): New function.
12048 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
12049 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
12050 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
12051 (tdesc_s390x_linux64v2): Declare.
12052 (s390_collect_ptrace_register, s390_supply_ptrace_register)
12053 (s390_fill_gregset, s390_store_last_break): Adjust.
12054 (target_regsets): Rename to ...
12055 (s390_regsets): ... this, and make static.
12056 (s390_get_pc, s390_set_pc): Adjust.
12057 (s390_get_hwcap): New target_desc parameter, and use it.
12058 [__s390x__] (have_hwcap_s390_high_gprs): New global.
12059 (s390_arch_setup): Adjust to set the current process'es target
12060 description. Don't adjust the regmap.
12061 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
12062 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
12063 (regs_info_3264): New globals.
12064 (s390_regs_info): New function.
12065 (the_low_target): Adjust.
12066 (initialize_low_arch): New function.
12067 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
12068 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
12069 [__mips64] (init_registers_mips_linux)
12070 (init_registers_mips_dsp_linux): Delete defines.
12071 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
12072 (have_dsp): New global.
12073 (mips_read_description): New, based on mips_arch_setup.
12074 (mips_arch_setup): Reimplement.
12075 (get_usrregs_info): New function.
12076 (mips_cannot_fetch_register, mips_cannot_store_register)
12077 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
12078 (mips_fill_fpregset, mips_store_fpregset): Adjust.
12079 (target_regsets): Rename to ...
12080 (mips_regsets): ... this, and make static.
12081 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
12082 (dsp_regs_info, regs_info): New globals.
12083 (mips_regs_info): New function.
12084 (the_low_target): Adjust.
12085 (initialize_low_arch): New function.
12086 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
12087 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
12089 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
12090 (arm_read_description): New, with bits factored from
12092 (arm_arch_setup): Reimplement.
12093 (target_regsets): Rename to ...
12094 (arm_regsets): ... this, and make static.
12095 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
12096 (arm_regs_info): New function.
12097 (the_low_target): Adjust.
12098 (initialize_low_arch): New function.
12099 * linux-m68k-low.c (tdesc_m68k): Declare.
12100 (target_regsets): Rename to ...
12101 (m68k_regsets): ... this, and make static.
12102 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
12103 (m68k_regs_info): New function.
12104 (m68k_arch_setup): New function.
12105 (the_low_target): Adjust.
12106 (initialize_low_arch): New function.
12107 * linux-sh-low.c (tdesc_sharch): Declare.
12108 (target_regsets): Rename to ...
12109 (sh_regsets): ... this, and make static.
12110 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
12111 (sh_regs_info, sh_arch_setup): New functions.
12112 (the_low_target): Adjust.
12113 (initialize_low_arch): New function.
12114 * linux-bfin-low.c (tdesc_bfin): Declare.
12115 (bfin_arch_setup): New function.
12116 (bfin_usrregs_info, regs_info): New globals.
12117 (bfin_regs_info): New function.
12118 (the_low_target): Adjust.
12119 (initialize_low_arch): New function.
12120 * linux-cris-low.c (tdesc_cris): Declare.
12121 (cris_arch_setup): New function.
12122 (cris_usrregs_info, regs_info): New globals.
12123 (cris_regs_info): New function.
12124 (the_low_target): Adjust.
12125 (initialize_low_arch): New function.
12126 * linux-cris-low.c (tdesc_crisv32): Declare.
12127 (cris_arch_setup): New function.
12128 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
12129 (cris_regs_info): New function.
12130 (the_low_target): Adjust.
12131 (initialize_low_arch): New function.
12132 * linux-m32r-low.c (tdesc_m32r): Declare.
12133 (m32r_arch_setup): New function.
12134 (m32r_usrregs_info, regs_info): New globals.
12135 (m32r_regs_info): Adjust.
12136 (initialize_low_arch): New function.
12137 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
12138 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
12139 (tic6x_usrregs_info): Forward declare.
12140 (tic6x_read_description): New function, based on ...
12141 (tic6x_arch_setup): ... this. Reimplement.
12142 (target_regsets): Rename to ...
12143 (tic6x_regsets): ... this, and make static.
12144 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
12145 (tic6x_regs_info): New function.
12146 (the_low_target): Adjust.
12147 (initialize_low_arch): New function.
12148 * linux-xtensa-low.c (tdesc_xtensa): Declare.
12149 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
12150 (target_regsets): Rename to ...
12151 (xtensa_regsets): ... this, and make static.
12152 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
12154 (xtensa_arch_setup, xtensa_regs_info): New functions.
12155 (the_low_target): Adjust.
12156 (initialize_low_arch): New function.
12157 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
12158 (nios2_arch_setup): Set the current process'es tdesc.
12159 (target_regsets): Rename to ...
12160 (nios2_regsets): ... this.
12161 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
12162 (nios2_regs_info): New function.
12163 (the_low_target): Adjust.
12164 (initialize_low_arch): New function.
12165 * linux-aarch64-low.c (tdesc_aarch64): Declare.
12166 (aarch64_arch_setup): Set the current process'es tdesc.
12167 (target_regsets): Rename to ...
12168 (aarch64_regsets): ... this.
12169 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
12170 (aarch64_regs_info): New function.
12171 (the_low_target): Adjust.
12172 (initialize_low_arch): New function.
12173 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
12175 (target_regsets): Rename to ...
12176 (tile_regsets): ... this.
12177 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
12178 (tile_regs_info): New function.
12179 (tile_arch_setup): Set the current process'es tdesc.
12180 (the_low_target): Adjust.
12181 (initialize_low_arch): New function.
12182 * spu-low.c (tdesc_spu): Declare.
12183 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
12184 * win32-arm-low.c (tdesc_arm): Declare.
12185 (arm_arch_setup): New function.
12186 (the_low_target): Install arm_arch_setup instead of
12187 init_registers_arm.
12188 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
12189 (init_windows_x86): Rename to ...
12190 (i386_arch_setup): ... this. Set `win32_tdesc'.
12191 (the_low_target): Adjust.
12192 * win32-low.c (win32_tdesc): New global.
12193 (child_add_thread): Don't create the thread cache here.
12194 (do_initial_child_stuff): Set the new process'es tdesc.
12195 * win32-low.h (struct target_desc): Forward declare.
12196 (win32_tdesc): Declare.
12197 * lynx-i386-low.c (tdesc_i386): Declare global.
12198 (lynx_i386_arch_setup): Set `lynx_tdesc'.
12199 * lynx-low.c (lynx_tdesc): New global.
12200 (lynx_add_process): Set the new process'es tdesc.
12201 * lynx-low.h (struct target_desc): Forward declare.
12202 (lynx_tdesc): Declare global.
12203 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
12204 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
12205 * nto-low.c (nto_tdesc): New global.
12206 (do_attach): Set the new process'es tdesc.
12207 * nto-low.h (struct target_desc): Forward declare.
12208 (nto_tdesc): Declare.
12209 * nto-x86-low.c (tdesc_i386): Declare.
12210 (nto_x86_arch_setup): Set `nto_tdesc'.
12212 2013-06-04 Gary Benson <gbenson@redhat.com>
12214 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
12215 to qSupported response when appropriate.
12216 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
12217 with nonzero-length annex.
12218 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
12219 arguments supplied in annex.
12221 2013-05-31 Doug Evans <dje@google.com>
12224 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
12225 64 bits in 64-cross-32 environment.
12227 2013-05-28 Pedro Alves <palves@redhat.com>
12229 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
12230 (aarch64-without-fpu.c): Delete rule.
12231 * configure.srv (aarch64*-*-linux*): Remove references to
12232 aarch64-without-fpu.o and aarch64-without-fpu.xml.
12233 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
12236 2013-05-24 Pedro Alves <palves@redhat.com>
12238 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
12239 instead of strchr/decode_address. Error if the range isn't split
12240 with a ','. Don't assume there's be a ':' in the action.
12242 2013-05-23 Yao Qi <yao@codesourcery.com>
12243 Pedro Alves <palves@redhat.com>
12245 * linux-low.c (lwp_in_step_range): New function.
12246 (linux_wait_1): If the thread was range stepping and stopped
12247 outside the stepping range, report the stop to GDB. Otherwise,
12248 continue stepping. Add range stepping debug output.
12249 (linux_set_resume_request): Copy the step range from the resume
12250 request to the lwp.
12251 (linux_supports_range_stepping): New.
12252 (linux_target_ops) <supports_range_stepping>: Set to
12253 linux_supports_range_stepping.
12254 * linux-low.h (struct linux_target_ops)
12255 <supports_range_stepping>: New field.
12256 (struct lwp_info) <step_range_start, step_range_end>: New fields.
12257 * linux-x86-low.c (x86_supports_range_stepping): New.
12258 (the_low_target) <supports_range_stepping>: Set to
12259 x86_supports_range_stepping.
12260 * server.c (handle_v_cont): Handle 'r' action.
12261 (handle_v_requests): Append ";r" if the target supports range
12263 * target.h (struct thread_resume) <step_range_start,
12264 step_range_end>: New fields.
12265 (struct target_ops) <supports_range_stepping>:
12267 (target_supports_range_stepping): New macro.
12269 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12271 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
12272 confusion in comment.
12274 2013-05-17 Joel Brobecker <brobecker@adacore.com>
12276 * lynx-low.c (struct process_info_private): New type.
12277 (lynx_add_process): New function.
12278 (lynx_create_inferior, lynx_attach): Replace calls to
12279 add_process by calls to lynx_add_process.
12280 (lynx_resume): If PTID is null, then try using
12281 current_process()->private->last_wait_event_ptid.
12283 (lynx_clear_inferiors): Delete. The contents of that function
12284 has been inlined in lynx_mourn;
12285 (lynx_wait_1): Save the ptid in the process's private data.
12286 (lynx_mourn): Free the process' private data. Replace call
12287 to lynx_clear_inferiors by call to clear_inferiors.
12289 2013-05-17 Yao Qi <yao@codesourcery.com>
12291 * i386-low.c (i386_length_and_rw_bits): Move the comment to
12294 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
12296 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
12297 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
12298 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
12299 PT_TEXT_END_ADDR guards. Update comments.
12300 (linux_target_op) <read_offsets>: Conditionally define to
12301 linux_read_offsets if the target is UCLIBC and if it defines
12302 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
12304 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
12305 Andrew Jenner <andrew@codesourcery.com>
12307 * Makefile.in (SFILES): Add linux-nios2-low.c.
12308 (clean): Add action to delete nios2-linux.c.
12309 (nios2-linux.c): New rule.
12310 * configure.srv: Add nios2*-*-linux*.
12311 * linux-nios2-low.c: New.
12313 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
12315 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
12317 2013-04-25 Hui Zhu <hui@codesourcery.com>
12320 * ax.c (ax_printf): Add fflush.
12322 2013-04-22 Tom Tromey <tromey@redhat.com>
12324 * Makefile.in (SFILES): Add filestuff.c.
12325 (OBS): Add filestuff.o.
12326 (filestuff.o): New target.
12327 * config.in, configure: Rebuild.
12328 * configure.ac: Check for fdwalk, pipe2.
12330 2013-04-17 Pedro Alves <palves@redhat.com>
12332 * configure.ac (USE_THREAD_DB): Delete variable.
12333 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
12334 Don't AC_SUBST USE_THREAD_DB.
12335 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
12336 * config.in, configure: Regenerate.
12338 2013-04-16 Pedro Alves <palves@redhat.com>
12340 * linux-low.h (struct lwp_info) <thread_known>: Move under
12341 the USE_THREAD_DB #ifdef.
12343 2013-04-16 Pedro Alves <palves@redhat.com>
12345 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
12346 (linux-low.o): Delete rule.
12347 * linux-low.h: Always include "gdb_thread_db.h" instead of
12348 conditionally including thread_db.h.
12349 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
12352 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12354 * Makefile.in (install-only): Fix make install regression.
12356 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
12358 Convert man pages to texinfo, new gdbinit.5 texinfo page.
12359 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
12361 * gdbserver.1: Remove.
12363 2013-03-22 Pedro Alves <palves@redhat.com>
12365 * linux-low.c (handle_extended_wait): Don't call
12366 linux_enable_event_reporting.
12368 2013-03-15 Tony Theodore <tonyt@logyst.com>
12371 * Makefile.in (SHELL): Use @SHELL@.
12373 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
12375 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
12378 2013-03-13 Joel Brobecker <brobecker@adacore.com>
12380 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
12381 Remove extraneous NULL element.
12383 2013-03-13 Yao Qi <yao@codesourcery.com>
12385 * tracepoint.c (traceframe_read_tsv): Look for the last matched
12386 'V' block in trace frame.
12388 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12390 * target.h (struct target_ops): Add btrace ops.
12391 (target_supports_btrace): New macro.
12392 (target_enable_btrace): New macro.
12393 (target_disable_btrace): New macro.
12394 (target_read_btrace): New macro.
12395 * gdbthread.h (struct thread_info): Add btrace field.
12396 * server.c: Include btrace-common.h.
12397 (handle_btrace_general_set): New function.
12398 (handle_btrace_enable): New function.
12399 (handle_btrace_disable): New function.
12400 (handle_general_set): Call handle_btrace_general_set.
12401 (handle_qxfer_btrace): New function.
12402 (struct qxfer qxfer_packets[]): Add btrace entry.
12403 * inferiors.c (remove_thread): Disable btrace.
12404 * linux-low: Include linux-btrace.h.
12405 (linux_low_enable_btrace): New function.
12406 (linux_low_read_btrace): New function.
12407 (linux_target_ops): Add btrace ops.
12408 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
12409 Add srv_linux_btrace=yes.
12410 (x86_64-*-linux*): Add linux-btrace.o.
12411 Add srv_linux_btrace=yes.
12412 * configure.ac: Define HAVE_LINUX_BTRACE.
12413 * config.in: Regenerated.
12414 * configure: Regenerated.
12416 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12418 * server.c (handle_qxfer): Preserve error message if -3 is
12420 (qxfer): Document the -3 return value.
12422 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
12424 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
12425 (linux_btrace_h): New variable.
12426 (linux-btrace.o): New rule.
12428 2013-03-08 Stan Shebs <stan@codesourcery.com>
12429 Hafiz Abid Qadeer <abidh@codesourcery.com>
12431 * tracepoint.c (trace_buffer_size): New global.
12432 (DEFAULT_TRACE_BUFFER_SIZE): New define.
12433 (init_trace_buffer): Change to one-argument function. Allocate
12434 trace buffer memory.
12435 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
12436 handle QTBuffer:size packet.
12437 (cmd_bigqtbuffer_size): New function.
12438 (initialize_tracepoint): Call init_trace_buffer with
12439 DEFAULT_TRACE_BUFFER_SIZE.
12440 * server.c (handle_query): Add QTBuffer:size in the
12443 2013-03-07 Yao Qi <yao@codesourcery.com>
12445 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
12446 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
12448 (cmd_qtsp): Adjust condition. Do post increment.
12449 Set cur_action and cur_step_action back to 0.
12451 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
12454 * linux-low.c (linux_write_memory): Return early success if LEN is
12457 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
12459 * configure.srv: Add x86_64-*-cygwin* as target.
12461 2013-02-28 Tom Tromey <tromey@redhat.com>
12463 * configure.ac: Invoke AC_SYS_LARGEFILE.
12464 * configure, config.in: Rebuild.
12466 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
12468 * win32-low.c: Throughout, fix format strings and casts of
12469 printf-like functions to avoid type related warnings on all
12471 (get_child_debug_event): Print dwDebugEventCode as hex since
12472 that's how it's usually documented.
12474 2013-02-28 Yao Qi <yao@codesourcery.com>
12476 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
12479 2013-02-27 Jiong Wang <jiwang@tilera.com>
12481 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
12482 (reg-tilegx32.c): New rule.
12483 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
12484 * linux-tile-low.c (tile_arch_setup): New function. Invoke
12485 different register info initializer according to elf class.
12486 (init_registers_tilgx32): New function. The tilegx32 register info
12488 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
12489 (tile_store_gregset): Likewise.
12491 2013-02-27 Yao Qi <yao@codesourcery.com>
12493 * server.c (process_point_options): Print debug message when
12494 debug_threads is true.
12496 2013-02-26 Yao Qi <yao@codesourcery.com>
12498 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
12500 2013-02-19 Pedro Alves <palves@redhat.com>
12501 Kai Tietz <ktietz@redhat.com>
12505 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
12506 instead of strtoul to extract address from packet.
12507 (process_serial_event) <'z'>: Likewise.
12509 2013-02-18 Yao Qi <yao@codesourcery.com>
12511 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
12513 2013-02-14 Pedro Alves <palves@redhat.com>
12517 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
12518 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
12520 2013-02-14 Pedro Alves <palves@redhat.com>
12522 * tracepoint.c (cmd_qtdpsrc): Use savestring.
12524 2013-02-14 Pedro Alves <palves@redhat.com>
12526 * tracepoint.c (save_string): Delete.
12527 (add_tracepoint_action): Use savestring instead of save_string.
12529 2013-02-12 Pedro Alves <palves@redhat.com>
12531 * linux-xtensa-low.c: Ditto.
12532 * xtensa-xtregs.c: Ditto.
12534 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12536 * thread-db.c (thread_db_get_tls_address): NULL pointer check
12539 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12541 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
12542 aarch64_num_wp_regs and aarch64_num_bp_regs to
12543 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
12545 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12547 * linux-aarch64-low.c (ps_get_thread_area): Replace
12548 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
12550 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
12551 Marcus Shawcroft <marcus.shawcroft@arm.com>
12552 Nigel Stephens <nigel.stephens@arm.com>
12553 Yufeng Zhang <yufeng.zhang@arm.com>
12555 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
12556 (aarch64.c, aarch64-without-fpu.c): New targets.
12557 * configure.srv (aarch64*-*-linux*): New.
12558 * linux-aarch64-low.c: New file.
12560 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
12562 * linux-low.c (handle_extended_wait, linux_create_inferior)
12563 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
12564 (dequeue_one_deferred_signal, linux_resume_one_thread)
12565 (fetch_register, linux_write_memory, linux_enable_event_reporting)
12566 (linux_tracefork_grandchild, linux_test_for_tracefork)
12567 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
12568 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
12569 where the argument is 0.
12571 2013-01-25 Yao Qi <yao@codesourcery.com>
12573 * event-loop.c: Include "queue.h".
12574 (gdb_event_p): New typedef.
12575 (struct gdb_event) <next_event>: Remove.
12576 (event_queue): Change to QUEUE(gdb_event_p).
12577 (async_queue_event): Remove.
12578 (gdb_event_xfree): New.
12579 (initialize_event_loop): New.
12580 (process_event): Use API from QUEUE.
12581 (wait_for_event): Likewise.
12582 * server.c (main): Call initialize_event_loop.
12583 * server.h (initialize_event_loop): Declare.
12585 2013-01-18 Yao Qi <yao@codesourcery.com>
12587 * ax.h (struct eval_agent_expr_context): New.
12588 (gdb_eval_agent_expr): Update declaration.
12589 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
12590 TFRAME. Add new argument CTX.
12591 * server.h (struct eval_agent_expr_context): Declare.
12592 (agent_mem_read, agent_tsv_read): Update declaration.
12593 (agent_mem_read_string): Likewise.
12594 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
12595 (add_traceframe_block): Add new argument TPOINT.
12596 Increase TPOINT->traceframe_usage.
12597 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
12598 eval_tracepoint_agent_expr.
12599 (condition_true_at_tracepoint): Likewise.
12600 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
12601 (agent_mem_read_string, agent_tsv_read): Likewise.
12603 2013-01-16 Yao Qi <yao@codesourcery.com>
12605 * linux-low.c (linux_resume_one_lwp): Don't check
12606 'lwp->bp_reinsert != 0'.
12608 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12609 Pedro Alves <palves@redhat.com>
12611 * lynx-low.c (ptrace_request_to_str): Define a temporary
12612 macro and use it to simplify this function's implementation.
12614 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12616 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
12619 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12621 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
12623 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12625 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
12627 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12629 * lynx-low.c (lynx_resume): Use the resume_info parameter
12630 to determine the ptid for the lynx_ptrace call, unless
12631 it is equal to minus_one_ptid, in which case we use the
12632 ptid of the current_inferior.
12633 (lynx_wait_1): After having received a thread create/exit
12634 event, resume the inferior's execution using the signaling
12635 thread's ptid, rather than the old ptid.
12637 2013-01-07 Joel Brobecker <brobecker@adacore.com>
12639 * lynx-low.c (lynx_resume): Delete variable ret.
12641 2013-01-01 Joel Brobecker <brobecker@adacore.com>
12643 * gdbreplay.c (gdbreplay_version): Update copyright year.
12644 * server.c (gdbserver_version): Likewise.
12646 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12648 * lynx-low.c (lynx_wait_1): Add debug trace before adding
12651 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12653 * lynx-low.c (ptrace_request_to_str): Add handling for
12654 PTRACE_GETTRACESIG.
12656 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12658 * lynx-low.c (lynx_attach): Delete variable new_process.
12660 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12662 * lynx-low.c (lynx_create_inferior): Delete variable
12665 2012-12-17 Joel Brobecker <brobecker@adacore.com>
12667 * lynx-low.c (ptrace_request_to_str): Do not handle
12668 PTRACE_GETTHREADLIST if this macro does not exist.
12670 2012-12-15 Yao Qi <yao@codesourcery.com>
12672 * Makefile.in (OBS): Add notif.o.
12673 * notif.c, notif.h: New.
12674 * server.c: Include "notif.h".
12675 (struct vstop_notif) <next>: Remove.
12677 (queue_stop_reply): Update.
12678 (push_event, send_next_stop_reply): Remove.
12679 (discard_queued_stop_replies): Update.
12680 (notif_stop): New variable.
12681 (handle_v_stopped): Remove.
12682 (handle_v_requests): Don't call handle_v_stopped. Call
12683 handle_ack_notif instead.
12684 (queue_stop_reply_callback): Call notif_event_enque instead
12685 of queue_stop_reply.
12686 (handle_status): Don't call send_next_stop_reply, call
12687 notif_write_event instead.
12688 (kill_inferior_callback): Likewise.
12689 (detach_or_kill_inferior_callback): Likewise.
12690 (main): Call initialize_notif.
12691 (process_serial_event): Call QUEUE_is_empty.
12692 (handle_target_event): Call notif_push instead of push event.
12693 * server.h (push_event): Remove declaration.
12695 2012-12-10 Tom Tromey <tromey@redhat.com>
12697 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
12698 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
12701 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
12702 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
12703 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
12704 (amd64-linux-ipa.o, ax.o): Rewrite.
12705 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
12706 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
12707 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
12708 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
12709 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
12710 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
12711 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
12712 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
12713 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
12714 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
12715 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
12716 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
12717 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
12718 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
12719 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
12720 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
12721 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
12722 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
12723 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
12724 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
12725 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
12726 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
12727 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
12728 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
12729 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
12730 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
12731 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
12732 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
12733 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
12734 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
12735 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
12736 (reg-tilegx.o): Remove.
12737 (all_object_files): New macro.
12738 Include .deps files.
12739 * aclocal.m4, configure: Rebuild.
12740 * acinclude.m4: Include depstand.m4, lead-dot.m4.
12741 * configure.ac: Invoke ZW_CREATE_DEPDIR,
12742 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
12744 2012-12-05 Tom Tromey <tromey@redhat.com>
12747 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
12749 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
12751 * configure.ac: Check for linux/perf_event.h.
12752 * config.in: Regenerated.
12753 * configure: Regenerated.
12755 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
12757 * hostio.c (handle_readlink): Decrease buffer size
12758 parameter passed to readlink by one byte.
12760 2012-11-26 Yao Qi <yao@codesourcery.com>
12762 * configure.ac (build_warnings): Append '-Wempty-body'.
12763 * configure: Regenerated.
12764 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
12767 2012-11-15 Pierre Muller <muller@sourceware.org>
12769 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
12770 * config.in: Regenerate.
12771 * configure: Regenerate.
12772 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
12773 Use "gdb_wait.h" header instead of <sys/wait.h> header.
12774 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12775 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
12777 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
12778 instead of <sys/wait.h> header.
12779 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
12781 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
12783 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
12784 (various make rules): Remove -DGDBSERVER
12786 2012-11-09 Yao Qi <yao@codesourcery.com>
12788 * spu-low.c (current_ptid): Move it to ..
12789 * gdbthread.h: ... here. New.
12790 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
12791 * server.c (myresume, process_serial_event): Likewise.
12792 * thread-db.c (thread_db_find_new_threads): Likewise.
12793 * tracepoint.c (run_inferior_command): Likewise.
12795 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
12797 * server.c (handle_search_memory_1): Include access length in
12800 2012-09-05 Michael Brandt <michael.brandt@axis.com>
12802 * linux-crisv32-low.c: Fix compile errors.
12804 2012-09-04 Yao Qi <yao@codesourcery.com>
12806 * tracepoint.c (cmd_qtsv): Adjust debug message.
12807 Don't check CUR_TPOINT.
12809 2012-08-28 Yao Qi <yao@codesourcery.com>
12811 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
12812 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
12813 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
12814 Remove declarations of xmalloc, xreallloc, xstrdup and
12816 * Makefile.in (libiberty_h): New.
12817 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
12818 (linux-bfin-low.o): Append dependency 'libiberty.h'.
12820 2012-08-23 Yao Qi <yao@codesourcery.com>
12822 * server.h: Remove declaration of 'xsnprintf'.
12824 2012-08-22 Keith Seitz <keiths@redhat.com>
12826 * server.h: Include build-gnulib-gbserver/config.h.
12827 * gdbreplay.c: Likewise.
12829 2012-08-08 Doug Evans <dje@google.com>
12831 * Makefile.in (SFILES): Add gdb_vecs.c.
12832 (OBS): Add gdb_vecs.o.
12833 (gdb_vecs_h, host_defs_h): New variables.
12834 (thread-db.o): Add $(gdb_vecs_h) dependency.
12835 (gdb_vecs.o): New rule.
12836 * thread-db.c: #include "gdb_vecs.h".
12837 (thread_db_load_search): Use a vector to iterate over path elements.
12838 Handle text appearing after "$pdir".
12840 * configure.ac: Add check for strstr.
12841 * config.in: Regenerate.
12842 * configure: Regenerate.
12844 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
12846 * hostio.c (handle_pread): If pread fails, fall back to attempting
12848 (handle_pwrite): Likewise for pwrite.
12850 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
12852 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
12853 between unsupported TYPE and unimplementable ADDR/LEN combination.
12854 (arm_insert_point): Act on new return value.
12856 2012-07-31 Pedro Alves <palves@redhat.com>
12858 * server.c (process_point_options): Only skip tokens if we find
12859 one that is unrecognized. Don't treat 'X' specially while
12860 skipping unrecognized tokens.
12862 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
12864 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
12865 to 4-byte-align HW breakpoint addresses for Thumb.
12867 2012-07-27 Yao Qi <yao@codesourcery.com>
12871 * server.h: Declare gdb_agent_about_to_close.
12872 * target.c (kill_inferior): Include "agent.h".
12873 New. Send command 'kill'.
12874 * target.h (kill_inferior): Removed macro.
12875 * tracepoint.c (gdb_agent_about_to_close): New.
12876 (gdb_agent_helper_thread): Handle command 'close'.
12877 Wait endlessly until the inferior stops.
12878 Install gdb_agent_remove_socket to atexit hook.
12879 (agent_socket_name): New static variable.
12880 (gdb_agent_socket_init): Replace local variable 'name' with
12881 'agent_socket_name'.
12882 (gdb_agent_remove_socket): New.
12884 2012-07-27 Yao Qi <yao@codesourcery.com>
12886 * server.c (process_point_options): Stop at 'X' when parsing.
12888 2012-07-19 Michael Eager <eager@eagercon.com>
12890 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
12892 * linux-x86-low.c (x86_insert_point, x86_remove_point):
12893 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
12894 hardware breakpoint.
12896 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12898 * gdbserver/linux-low.c (initialize_low): Call
12899 linux_ptrace_init_warnings.
12901 2012-07-02 Doug Evans <dje@google.com>
12903 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
12906 2012-07-02 Stan Shebs <stan@codesourcery.com>
12908 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
12909 (ax.o): Add it to build rule.
12911 (OBS): Add format.o.
12912 (IPA_OBS): Add format.o.
12913 * server.c (handle_query): Claim support for breakpoint commands.
12914 (process_point_options): Add command case.
12915 (process_serial_event): Leave running if there are printfs in
12917 * mem-break.h (any_persistent_commands): Declare.
12918 (add_breakpoint_commands): Declare.
12919 (gdb_no_commands_at_breakpoint): Declare.
12920 (run_breakpoint_commands): Declare.
12921 * mem-break.c (struct point_command_list): New struct.
12922 (struct breakpoint): New field command_list.
12923 (any_persistent_commands): New function.
12924 (add_commands_to_breakpoint): New function.
12925 (add_breakpoint_commands): New function.
12926 (gdb_no_commands_at_breakpoint): New function.
12927 (run_breakpoint_commands): New function.
12928 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
12930 * ax.c: Include format.h.
12931 (ax_printf): New function.
12932 (gdb_eval_agent_expr): Add printf opcode.
12934 2012-06-13 Yao Qi <yao@codesourcery.com>
12936 * server.c (start_inferior): Remove duplicated writes to fields
12937 'last_resume_kind' and 'last_status' of 'current_inferior'.
12939 2012-06-12 Yao Qi <yao@codesourcery.com>
12940 Pedro Alves <palves@redhat.com>
12942 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
12944 * server.c (handle_v_cont): Extend comment.
12946 2012-06-11 Yao Qi <yao@codesourcery.com>
12948 * linux-low.c (linux_attach): Add 'static'.
12950 2012-06-06 Yao Qi <yao@codesourcery.com>
12952 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
12954 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
12956 Fix gcc -flto compilation warning.
12957 * server.c (main): Make variable multi_mode and attach volatile.
12959 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
12961 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
12962 if the platform doesn't know about it.
12964 2012-05-30 Jeff Kenton <jkenton@tilera.com>
12966 * Makefile.in (SFILES): Add linux-tile-low.c.
12967 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
12968 * configure.srv: Handle tilegx-*-linux*.
12969 * linux-tile-low.c: New file.
12971 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12973 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
12975 2012-05-24 Pedro Alves <palves@redhat.com>
12979 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
12981 2012-05-24 Pedro Alves <palves@redhat.com>
12985 Replace target_signal with gdb_signal throughout.
12987 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
12989 * linux-low.c (linux_store_registers): Avoid the copying sequence
12990 when no data has been retrieved by ptrace.
12992 2012-05-22 Will Deacon <will.deacon@arm.com>
12994 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
12995 Include asm/ptrace.h.
12996 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
12999 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
13001 * linux-low.c (linux_store_registers): Don't re-retrieve data
13002 with ptrace that has already been obtained from /proc. Always
13003 copy any data retrieved with ptrace to the buffer supplied.
13005 2012-05-11 Yao Qi <yao@codesourcery.com>
13006 Pedro Alves <palves@redhat.com>
13008 * linux-low.c (enum stopping_threads_kind): New.
13009 (stopping_threads): Change type to `enum stopping_threads_kind'.
13010 (handle_extended_wait): If stopping and suspending threads, leave
13011 the new_lwp suspended too.
13012 (linux_wait_for_event): Adjust.
13013 (stop_all_lwps): Set `stopping_threads' to
13014 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
13015 whether we're suspending threads or just stopping them. Assert no
13018 2012-04-29 Yao Qi <yao@codesourcery.com>
13020 * server.h: Move some code to ...
13021 * gdbthread.h: ... here. New.
13022 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
13023 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
13024 (nto-low.o, win32-low.o): Likewise.
13025 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
13026 * regcache.c, remote-utils.c, server.c: Likewise.
13027 * target.c, tracepoint.c, win32-low.c: Likewise.
13029 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13031 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
13032 (PTRACE_ARG4_TYPE): Likewise.
13033 (PTRACE_XFER_TYPE): Likewise.
13034 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
13035 ptrace to PTRACE_ARG3_TYPE.
13036 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
13037 (PTRACE_ARG4_TYPE): Likewise.
13038 (PTRACE_XFER_TYPE): Likewise.
13039 (linux_detach_one_lwp): Cast fourth argument of
13040 ptrace to long then PTRACE_ARG4_TYPE.
13041 (regsets_fetch_inferior_registers): Cast third argument of
13042 ptrace to long then PTRACE_ARG3_TYPE.
13043 (regsets_store_inferior_registers): Likewise.
13045 2012-04-20 Pedro Alves <palves@redhat.com>
13047 * configure: Regenerate.
13049 2012-04-19 Pedro Alves <palves@redhat.com>
13051 * Makefile.in (GNULIB_BUILDDIR): New.
13052 (LIBGNU, INCGNU, GNULIB_H): Adjust.
13053 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
13054 (all, install-only, uninstall, clean-info, all-lib, clean): No
13055 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
13056 (maintainer-clean realclean distclean): Use subdir_do.
13058 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
13059 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
13060 * acinclude.m4: Include acx_configure_dir.m4.
13061 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
13062 calls. Call AC_PROG_RANLIB. Configure gnulib using
13065 (GNULIB_STDINT_H): Adjust.
13066 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
13067 * gdbreplay.c: Include build-gnulib/config.h.
13068 * server.h: Likewise.
13069 * aclocal.m4: Regenerate.
13070 * config.in: Regenerate.
13071 * configure: Regenerate.
13073 2012-04-19 Pedro Alves <palves@redhat.com>
13075 * Makefile.in (LIBGNU, INCGNU): Adjust.
13076 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
13077 (all, install-only, uninstall, clean-info, all-lib, clean)
13078 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
13079 * configure.ac: Adjust AC_OUTPUT output.
13080 * aclocal.m4: Regenerate.
13081 * configure: Regenerate.
13083 2012-04-19 Pedro Alves <palves@redhat.com>
13085 * Makefile.in (generated_files): New.
13086 (server_h): Remove the explicit dependency on config.h, and depend
13087 on $generated_files.
13089 2012-04-19 Pedro Alves <palves@redhat.com>
13091 * Makefile.in (INCGNU): Add -Ignulib.
13093 2012-04-19 Pedro Alves <palves@redhat.com>
13095 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
13096 (INCGNU): ... this, and spell out -I here.
13097 (GNULIB_LIB): Rename to ...
13098 (LIBGNU): ... this.
13099 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
13101 2012-04-19 Pedro Alves <palves@redhat.com>
13103 * config.in: Regenerate.
13105 2012-04-19 Pedro Alves <palves@redhat.com>
13107 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
13108 * server.h (memmem): Remove declaration.
13109 * config.in: Regenerate.
13110 * configure: Regenerate.
13112 2012-04-19 Yao Qi <yao@codesourcery.com>
13114 * Makefile.in (SFILES): Add common/vec.c.
13118 2012-04-19 Yao Qi <yao@codesourcery.com>
13120 * remote-utils.c (prepare_resume_reply): Replace with macro
13121 target_core_of_thread.
13122 * server.c (handle_qxfer_threads_proper): Likewise.
13123 * target.h (traget_core_of_thread): New macro.
13125 2012-04-18 Pedro Alves <palves@redhat.com>
13127 * aclocal.m4: Regenerate.
13128 * configure: Regenerate.
13130 2012-04-16 Yao Qi <yao@codesourcery.com>
13132 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
13133 duplicated on address.
13135 2012-04-16 Yao Qi <yao@codesourcery.com>
13137 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
13138 (struct tracepoint_action_ops) <send>: New field.
13139 (m_tracepoint_action_send, r_tracepoint_action_send): New.
13140 (agent_expr_send, x_tracepoint_action_send): New.
13141 (l_tracepoint_action_send): New.
13142 (cmd_qtdp): Download and install tracepoint
13143 according to `use_agent'.
13144 (run_inferior_command): Add one more parameter `len'.
13146 (tracepoint_send_agent): New.
13147 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
13149 2012-04-16 Yao Qi <yao@codesourcery.com>
13151 * tracepoint.c (download_tracepoints): Moved to ...
13152 (cmd_qtstart): ... here.
13154 2012-04-14 Yao Qi <yao@codesourcery.com>
13156 * tracepoint.c: Include inttypes.h.
13157 (struct collect_memory_action): Use sized types.
13158 (struct tracepoint): Likewise.
13159 (cmd_qtdp, stop_tracing): Update print specifiers.
13160 (cmd_qtp, response_tracepoint): Likewise.
13161 (collect_data_at_tracepoint): Likewise.
13162 (collect_data_at_step): Likewise.
13164 2012-04-14 Yao Qi <yao@codesourcery.com>
13166 Import gnulib module inttypes.
13167 * aclocal.m4, config.in, configure: Regenerated.
13169 2012-04-14 Yao Qi <yao@codesourcery.com>
13171 * Makefile.in (maintainer-clean, realclean, distclean): Remove
13172 Makefile and config.status at last.
13174 2012-04-13 Yao Qi <yao@codesourcery.com>
13176 * tracepoint.c: Include stdint.h unconditionally.
13178 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13180 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
13181 on BFD_HAVE_SYS_PROCFS_TYPE.
13182 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
13183 * configure: Regenerate.
13184 * config.in: Likewise.
13186 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
13188 * Makefile.in (clean): Also remove x32.c x32-linux.c
13189 x32-avx.c x32-avx-linux.c.
13190 (x32.o): New target.
13192 (x32-linux.o): Likewise.
13193 (x32-linux.c): Likewise.
13194 (x32-avx.o): Likewise.
13195 (x32-avx.c): Likewise.
13196 (x32-avx-linux.o): Likewise.
13197 (x32-avx-linux.c): Likewise.
13199 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
13200 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
13201 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
13202 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
13203 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
13204 i386/x32-avx-linux.xml.
13206 * linux-x86-low.c (init_registers_x32_linux): New prototype.
13207 (init_registers_x32_avx_linux): Likwise.
13208 (x86_linux_update_xmltarget): Call init_registers_x32_linux
13209 or init_registers_x32_avx_linux if linux_is_elf64 is false.
13211 2012-04-13 Pedro Alves <palves@redhat.com>
13213 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
13214 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
13215 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
13216 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
13219 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13221 * linux-x86-low.c (compat_x32_clock_t): New.
13222 (compat_x32_siginfo_t): Likewise.
13223 (compat_x32_siginfo_from_siginfo): Likewise.
13224 (siginfo_from_compat_x32_siginfo): Likewise.
13225 (linux_is_elf64): Likewise.
13226 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
13227 and siginfo_from_compat_x32_siginfo for x32.
13228 (x86_arch_setup): Set linux_is_elf64.
13230 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
13233 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
13235 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
13236 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
13237 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
13238 compatible with process.
13240 2012-04-12 Yao Qi <yao@codesourcery.com>
13242 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
13243 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
13244 (install-only, install-info, clean): Handle sub dir gnulib.
13245 (all-lib, am--refresh): New targets.
13246 (memmem.o): Remove target.
13247 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
13248 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
13249 (AC_REPLACE_FUNCS): Remove memmem.
13250 Invoke gl_INIT and AM_INIT_AUTOMAKE.
13251 (AC_OUTPUT): Generate Makefile in gnulib/.
13252 * aclocal.m4, config.in, configure: Regenerated.
13254 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
13256 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
13258 2012-04-05 Pedro Alves <palves@redhat.com>
13260 -Werror=strict-aliasing
13262 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
13265 2012-04-04 Pedro Alves <palves@redhat.com>
13267 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
13268 (sparc_store_gregset_from_stack, sparc_store_gregset)
13269 (sparc_breakpoint_at): Fix formatting.
13271 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
13273 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
13275 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
13276 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
13277 * config.in: Regenerate.
13278 * configure: Likewise.
13280 2012-03-29 Pedro Alves <palves@redhat.com>
13282 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
13283 Correct ptrace arguments.
13285 2012-03-28 Pedro Alves <palves@redhat.com>
13287 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
13288 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
13289 (IA64_FR1_REGNUM): New defines.
13290 (ia64_fetch_register): New.
13291 (the_low_target): Install it.
13292 * linux-low.h (struct linux_target_ops) <fetch_register>: New
13294 * linux-low.c (linux_fetch_registers): Try the
13295 the_low_target.fetch_register hook first.
13297 * linux-arm-low.c (the_low_target): Adjust.
13298 * linux-bfin-low.c (the_low_target): Adjust.
13299 * linux-cris-low.c (the_low_target): Adjust.
13300 * linux-crisv32-low.c (the_low_target): Adjust.
13301 * linux-m32r-low.c (the_low_target): Adjust.
13302 * linux-m68k-low.c (the_low_target): Adjust.
13303 * linux-mips-low.c (the_low_target): Adjust.
13304 * linux-ppc-low.c (the_low_target): Adjust.
13305 * linux-s390-low.c (the_low_target): Adjust.
13306 * linux-sh-low.c (the_low_target): Adjust.
13307 * linux-sparc-low.c (the_low_target): Adjust.
13308 * linux-tic6x-low.c (the_low_target): Adjust.
13309 * linux-x86-low.c (the_low_target): Adjust.
13310 * linux-xtensa-low.c (the_low_target): Adjust.
13312 2012-03-26 Pedro Alves <palves@redhat.com>
13314 * server.c (handle_qxfer_libraries): Don't bail early if
13315 the_target->qxfer_libraries_svr4 is not NULL.
13317 2012-03-26 Pedro Alves <palves@redhat.com>
13319 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
13321 2012-03-23 Pedro Alves <palves@redhat.com>
13323 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
13324 "library-list-svr4" element's start tag when the the DSO list is
13327 2012-03-23 Pedro Alves <palves@redhat.com>
13329 * linux-low.c (read_one_ptr): Read the inferior's pointer through
13330 a variable whose type size is the same as the inferior's pointer
13333 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
13335 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
13337 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
13338 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
13339 * linux-low.h: Include <signal.h>.
13340 (struct siginfo): Remove forward declaration.
13341 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
13344 2012-03-21 Mike Frysinger <vapier@gentoo.org>
13346 * .gitignore: Ignore more files.
13348 2012-03-19 Pedro Alves <palves@redhat.com>
13349 Jan Kratochvil <jan.kratochvil@redhat.com>
13351 * server.c (cont_thread, general_thread): Add describing comments.
13352 (start_inferior): Clear `cont_thread'.
13353 (handle_v_cont): Don't set `cont_thread' if resuming all threads
13356 2012-03-15 Yao Qi <yao@codesourcery.com>
13358 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
13360 (cmd_qtdp): ... here.
13362 2012-03-15 Yao Qi <yao@codesourcery.com>
13364 * tracepoint.c (struct tracepoint_action_ops): New.
13365 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
13366 (m_tracepoint_action_download): New.
13367 (r_tracepoint_action_download): New.
13368 (x_tracepoint_action_download): New.
13369 (l_tracepoint_action_download): New.
13370 (add_tracepoint_action): Install `action->ops' according type.
13371 (download_tracepoint_1): Move code `download' function pointer
13372 of various tracepoint_action_ops.
13374 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13376 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
13377 linux_ptrace_attach_warnings.
13379 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13381 * Makefile.in (linux-ptrace.o): New.
13382 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
13383 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
13384 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
13385 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
13386 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
13388 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
13390 2012-03-08 Yao Qi <yao@codesourcery.com>
13391 Pedro Alves <palves@redhat.com>
13393 Fix PR server/13392.
13394 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
13395 offset of JMP insn.
13396 * tracepoint.c (remove_tracepoint): New.
13397 (cmd_qtdp): Call remove_tracepoint when failed to install.
13399 2012-03-07 Pedro Alves <palves@redhat.com>
13401 * linux-low.c (get_detach_signal): New.
13402 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
13403 Pass on pending signals to PTRACE_DETACH. Check the result of the
13405 * server.c (program_signals, program_signals_p): New.
13406 (handle_general_set): Handle QProgramSignals.
13407 * server.h (program_signals, program_signals_p): Declare.
13409 2012-03-05 Pedro Alves <palves@redhat.com>
13410 Jan Kratochvil <jan.kratochvil@redhat.com>
13412 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
13415 2012-03-03 Yao Qi <yao@codesourcery.com>
13417 * tracepoint.c (tracepoint_look_up_symbols): Update call to
13418 agent_look_up_symbols.
13420 2012-03-03 Yao Qi <yao@codesourcery.com>
13422 * Makefile.in (linux-low.o): Keep dependence on agent.h.
13423 (linux-x86-low.o): Likewise.
13424 * server.h: Remove in_process_agent_loaded.
13425 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
13429 2012-03-03 Yao Qi <yao@codesourcery.com>
13431 * tracepoint.c (gdb_agent_capability): New global.
13432 (in_process_agent_loaded_ust): Renamed to
13433 `in_process_agent_supports_ust'.
13435 (in_process_agent_supports_ust): Call agent_capability_check.
13436 (clear_installed_tracepoints): Assert that agent supports
13439 2012-03-03 Yao Qi <yao@codesourcery.com>
13441 * linux-low.c (linux_supports_agent): New.
13442 (linux_target_ops): Initialize field `supports_agent' with
13443 linux_supports_agent.
13444 * target.h (struct target_ops) <supports_agent>: New.
13445 (target_supports_agent): New macro.
13446 * server.c (handle_general_set): Handle packet 'QAgent'.
13447 (handle_query): Send `QAgent+'.
13448 * Makefile.in (server.o): Depends on agent.h.
13450 2012-03-03 Yao Qi <yao@codesourcery.com>
13452 * Makefile.in (OBS): Add agent.o.
13453 Add new rule for agent.o.
13454 Track dependence of tracepoint.c on agent.h.
13455 * tracepoint.c (run_inferior_command_1):
13456 (run_inferior_command): Call agent_run_command.
13457 (gdb_ust_connect_sync_socket): Deleted. Move it to
13459 (resume_thread, stop_thread): Likewise.
13460 (gdb_ust_socket_init): Renamed to ...
13461 (gdb_agent_socket_init): ... New.
13462 (gdb_ust_thread): Renamed to ...
13463 (gdb_agent_helper_thread): ... New.
13464 (gdb_ust_init): Move some code to ...
13465 (gdb_agent_init): ... here. New.
13466 [HAVE_UST]: Call gdb_ust_init.
13467 (initialize_tracepoint_ftlib): Call gdb_agent_init.
13468 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
13469 * config.in, configure: Regenerated.
13471 2012-03-02 Pedro Alves <palves@redhat.com>
13473 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
13474 * linux-low.c (struct simple_pid_list): New.
13475 (stopped_pids): New a struct simple_pid_list pointer.
13476 (add_to_pid_list, pull_pid_from_list): New.
13477 (handle_extended_wait): Don't assume the first signal new children
13478 report is SIGSTOP. Adjust call to pull_pid_from_list.
13479 (linux_wait_for_lwp): Adjust.
13481 2012-03-02 Yao Qi <yao@codesourcery.com>
13483 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
13486 2012-03-02 Yao Qi <yao@codesourcery.com>
13488 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
13489 `stop_pc' and `tpoint'. Update caller.
13491 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
13493 * linux-low.h (linux_target_ops): Add regset_bitmap member.
13494 * linux-low.c (use_linux_regsets): New macro.
13495 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
13496 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
13497 (linux_register_in_regsets): New function.
13498 (usr_fetch_inferior_registers): Skip registers covered by
13500 (usr_store_inferior_registers): Likewise.
13501 (usr_fetch_inferior_registers): New macro.
13502 (usr_store_inferior_registers): Likewise.
13503 (linux_fetch_registers): Handle mixed regset/non-regset targets.
13504 (linux_store_registers): Likewise.
13505 * linux-mips-low.c (init_registers_mips_dsp_linux): New
13507 (init_registers_mips64_dsp_linux): Likewise.
13508 (init_registers_mips_linux): New macro.
13509 (init_registers_mips_dsp_linux): Likewise.
13510 (mips_dsp_num_regs): Likewise.
13511 (DSP_BASE, DSP_CONTROL): New fallback macros.
13512 (mips_base_regs): New macro.
13513 (mips_regmap): Use it. Fix the size.
13514 (mips_dsp_regmap): New variable.
13515 (mips_dsp_regset_bitmap): Likewise.
13516 (mips_arch_setup): New function.
13517 (mips_cannot_fetch_register): Use the_low_target.regmap rather
13519 (mips_cannot_store_register): Likewise.
13520 (the_low_target): Update .arch_setup, .num_regs and .regmap
13521 initializers. Add .regset_bitmap initializer.
13522 * linux-arm-low.c (the_low_target): Add .regset_bitmap
13524 * linux-bfin-low.c (the_low_target): Likewise.
13525 * linux-cris-low.c (the_low_target): Likewise.
13526 * linux-crisv32-low.c (the_low_target): Likewise.
13527 * linux-ia64-low.c (the_low_target): Likewise.
13528 * linux-m32r-low.c (the_low_target): Likewise.
13529 * linux-m68k-low.c (the_low_target): Likewise.
13530 * linux-ppc-low.c (the_low_target): Likewise.
13531 * linux-s390-low.c (the_low_target): Likewise.
13532 * linux-sh-low.c (the_low_target): Likewise.
13533 * linux-sparc-low.c (the_low_target): Likewise.
13534 * linux-tic6x-low.c (the_low_target): Likewise.
13535 * linux-x86-low.c (the_low_target): Likewise.
13536 * linux-xtensa-low.c (the_low_target): Likewise.
13537 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
13538 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
13539 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
13541 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
13542 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
13544 2012-02-29 Yao Qi <yao@codesourcery.com>
13545 Pedro Alves <palves@redhat.com>
13547 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
13548 `step_over_finished' is true.
13550 2012-02-27 Pedro Alves <palves@redhat.com>
13552 * linux-low.c (pid_is_stopped): Delete, moved to common/.
13553 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
13555 2012-02-27 Pedro Alves <palves@redhat.com>
13558 * linux-low.c (pid_is_stopped): New.
13559 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
13561 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
13563 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
13566 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
13568 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
13570 2012-02-24 Luis Machado <lgustavo@codesourcery>
13572 * server.c (handle_query): Advertise support for target-side
13573 breakpoint condition evaluation.
13574 (process_point_options): New function.
13575 (process_serial_event): When inserting a breakpoint, check for
13576 a target-side condition that should be evaluated.
13578 * mem-break.c: Include regcache.h and ax.h.
13579 (point_cond_list_t): New data structure.
13580 (breakpoint) <cond_list>: New field.
13581 (find_gdb_breakpoint_at): Make non-static.
13582 (delete_gdb_breakpoint_at): Clear any target-side
13584 (clear_gdb_breakpoint_conditions): New function.
13585 (add_condition_to_breakpoint): Likewise.
13586 (add_breakpoint_condition): Likewise.
13587 (gdb_condition_true_at_breakpoint): Likewise.
13588 (gdb_breakpoint_here): Return result directly instead
13589 of going through a local variable.
13591 * mem-break.h (find_gdb_breakpoint_at): New prototype.
13592 (clear_gdb_breakpoint_conditions): Likewise.
13593 (add_breakpoint_condition): Likewise.
13594 (gdb_condition_true_at_breakpoint): Likewise.
13596 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
13597 (need_step_over_p): Take target-side breakpoint condition into
13600 2012-02-24 Luis Machado <lgustavo@codesourcery>
13602 * server.h: Include tracepoint.h.
13603 (agent_mem_read, agent_get_trace_state_variable_value,
13604 agent_set_trace_state_variable_value,
13605 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
13606 get_set_tsv_func_addr): New prototypes.
13608 * ax.h: New include file.
13609 * ax.c: New source file.
13611 * tracepoint.c: Include ax.h.
13612 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
13613 agent_expr, eval_result_type): Move to ax.h.
13614 (parse_agent_expr): Rename to ...
13615 (gdb_parse_agent_expr): ... this, make it non-static and move
13617 (unparse_agent_expr) Rename to ...
13618 (gdb_unparse_agent_expr): ... this, make it non-static and move
13620 (eval_agent_expr): Rename to ...
13621 (eval_tracepoint_agent_expr): ... this.
13622 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
13623 forward declarations.
13624 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
13625 (agent_get_trace_state_variable_value): New function.
13626 (agent_set_trace_state_variable_value): New function.
13627 (cmd_qtdp): Call gdb_parse_agent_expr (...).
13628 (response_tracepoint): Call gdb_unparse_agent_expr (...).
13629 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
13630 (condition_true_at_tracepoint): Likewise.
13631 (parse_agent_expr): Rename to ...
13632 (gdb_parse_agent_expr): ... this and move to ax.c.
13633 (unparse_agent_expr): Rename to ...
13634 (gdb_unparse_agent_expr): ... this and move to ax.c.
13635 (gdb_agent_op_name): Move to ax.c.
13636 (eval_agent_expr): Rename to ...
13637 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
13639 (eval_tracepoint_agent_expr): New function.
13640 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
13642 (current_insn_ptr, emit_error, struct bytecode_address): Move to
13644 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
13645 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
13646 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
13647 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
13648 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
13649 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
13650 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
13651 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
13652 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
13653 (compile_bytecodes): Remove forward declaration.
13654 (is_goto_target): Move to ax.c.
13655 (compile_bytecodes): Move to ax.c and call
13656 agent_get_trace_state_variable_value (...) and
13657 agent_set_trace_state_variable_value (...).
13659 * Makefile.in: Update ax.c and IPA dependencies.
13661 2012-02-24 Pedro Alves <palves@redhat.com>
13663 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
13664 (cmd_bigqtbuffer_circular): ... this. Only handle
13665 'QTBuffer:circular:'.
13666 (handle_tracepoint_general_set): Adjust.
13668 2012-02-16 Yao Qi <yao@codesourcery.com>
13670 * inferiors.c: Move code to ...
13671 * dll.c: .... here. New.
13672 * server.h: Declare clear_dlls.
13673 * Makefile.in (SFILES): Add dll.c.
13677 2012-02-11 Yao Qi <yao@codesourcery.com>
13679 * server.c: (handle_monitor_command): Add a new parameter
13681 (handle_query): Update caller.
13683 2012-02-09 Joel Brobecker <brobecker@adacore.com>
13685 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
13686 * configure, config.in: Regenerate.
13687 * hostio.c: Provide an alternate implementation if HAVE_READLINK
13690 2012-02-02 Pedro Alves <palves@redhat.com>
13692 Try SIGKILL first, then PTRACE_KILL.
13693 * linux-low.c (linux_kill_one_lwp): New.
13694 (linux_kill_one_lwp): Rename to ...
13695 (kill_one_lwp_callback): ... this. Use the new
13696 linux_kill_one_lwp.
13698 2012-02-02 Pedro Alves <palves@redhat.com>
13700 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
13703 2012-01-27 Pedro Alves <palves@redhat.com>
13705 * linux-low.c (linux_child_pid_to_exec_file): Delete.
13706 (elf_64_file_p): Make static.
13707 (linux_pid_exe_is_elf_64_file): New.
13708 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
13709 Delete declarations.
13710 (linux_pid_exe_is_elf_64_file): Declare.
13711 * linux-x86-low.c (x86_arch_setup): Use
13712 linux_pid_exe_is_elf_64_file.
13714 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13716 * linux-low.c (linux_wait_for_event_1): Rename to ...
13717 (linux_wait_for_event): ... here and merge it with former
13718 linux_wait_for_event - new variable wait_ptid, use it.
13719 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
13721 2012-01-23 Pedro Alves <palves@redhat.com>
13723 * server.c (main): Avoid yet another case of infinite loop while
13724 detaching/killing after a longjmp.
13726 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
13729 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
13731 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
13733 * hostio.c (handle_readlink): New function.
13734 (handle_vFile): Call it to handle "vFile:readlink" packets.
13736 2012-01-20 Pedro Alves <palves@redhat.com>
13737 Ulrich Weigand <ulrich.weigand@linaro.org>
13739 * server.c (handle_v_requests): Only support vAttach and vRun to
13740 start multiple processes when in extended protocol mode.
13742 2012-01-17 Pedro Alves <palves@redhat.com>
13744 * tracepoint.c (initialize_tracepoint): Use mmap instead of
13745 memalign plus mprotect to allocate the scratch buffer.
13747 2012-01-13 Pedro Alves <palves@redhat.com>
13749 * server.c (attach_inferior): Clear `cont_thread'.
13751 2012-01-13 Pedro Alves <palves@redhat.com>
13753 * server.c (main): Avoid infinite loop while detaching/killing
13756 2012-01-09 Doug Evans <dje@google.com>
13758 * server.c (start_inferior): Set last_ptid in --wrapper case.
13760 2012-01-06 Yao Qi <yao@codesourcery.com>
13762 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
13764 [IN_PROCESS_AGENT] (debug_agent): New global variable.
13766 2012-01-04 Yao Qi <yao@codesourcery.com>
13768 * tracepoint.c (cmd_qtdp): Print debug message
13769 for static tracepoint.
13771 2012-01-04 Yao Qi <yao@codesourcery.com>
13773 * tracepoint.c (trace_vdebug): Differentiate debug message
13774 between gdbserver and IPA.
13776 2012-01-03 Yao Qi <yao@codesourcery.com>
13778 * tracepoint.c (tracepoint_was_hit): Don't collect for
13781 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13783 * terminal.h: Reformat copyright header.
13785 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13787 * server.c (gdbserver_version): Update copyright year.
13788 * gdbreplay.c (gdbreplay_version): Likewise.
13790 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
13792 * linux-low.c (linux_create_inferior): Put empty if clause for write.
13795 2011-12-18 Hui Zhu <teawater@gmail.com>
13796 * linux-low.c (linux_create_inferior): Save return value to ret.
13798 2011-12-18 Hui Zhu <teawater@gmail.com>
13800 * linux-low.c (linux_create_inferior): Save return value to ret.
13802 2011-12-16 Doug Evans <dje@google.com>
13804 * linux-low.c (linux_create_inferior): If stdio connection,
13805 redirect stdin from /dev/null, stdout to stderr.
13806 * remote-utils.c (remote_is_stdio): New static global.
13807 (remote_connection_is_stdio): New function.
13808 (remote_prepare): Handle stdio connection.
13809 (remote_open): Ditto.
13810 (remote_close): Don't close stdin for stdio connections.
13811 (read_prim,write_prim): New functions. Replace all calls to
13812 read/write to these.
13813 * server.c (main): Watch for "-" argument. Move call to
13814 remote_prepare before start_inferior.
13815 * server.h (STDIO_CONNECTION_NAME): New macro.
13816 (remote_connection_is_stdio): Declare.
13818 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
13819 in debugging output.
13821 2011-12-15 Yao Qi <yao@codesourcery.com>
13823 * tracepoint.c: Include sys/syscall.h.
13824 (gdb_ust_thread): Remove preprocessor conditional.
13826 2011-12-14 Pedro Alves <pedro@codesourcery.com>
13828 * linux-low.c (linux_detach_one_lwp): Call
13829 the_low_target.prepare_to_resume before detaching.
13831 2011-12-14 Yao Qi <yao@codesourcery.com>
13833 * tracepoint.c (gdb_ust_thread): Don't ignore return value
13836 2011-12-14 Yao Qi <yao@codesourcery.com>
13838 * i386-low.c (i386_low_stopped_data_address): Initialize local
13839 variable `control'.
13841 2011-12-13 Pedro Alves <pedro@codesourcery.com>
13845 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
13846 DR_CONTROL unless necessary. Extend comments.
13847 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
13848 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
13850 2011-12-13 Yao Qi <yao@codesourcery.com>
13852 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
13854 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
13856 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
13858 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
13859 Print new debug message for such case.
13861 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13863 Fix overlapping memcpy.
13864 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
13865 the read_inferior_memory transfer.
13866 (delete_fast_tracepoint_jump): New variable buf. Use it for the
13867 write_inferior_memory transfer.
13868 (set_fast_tracepoint_jump): New variable buf. Use it for the
13869 read_inferior_memory and write_inferior_memory transfers.
13870 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
13871 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
13872 Use it for the write_inferior_memory transfer.
13873 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
13876 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13878 * linux-low.c (fetch_register, store_register): Make code
13879 consistent, fix formatting.
13881 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
13883 * linux-low.c (usr_store_inferior_registers): Factor out code
13884 to handle individual registers into...
13885 (store_register): ... this new function.
13887 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
13889 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
13890 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
13891 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
13892 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
13893 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
13894 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
13895 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
13896 (srv_xmlfiles): Add new XML files.
13898 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
13900 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
13901 (init_registers_s390_linux32v1): Add prototype.
13902 (init_registers_s390_linux32v2): Likewise.
13903 (init_registers_s390_linux64v1): Likewise.
13904 (init_registers_s390_linux64v2): Likewise.
13905 (init_registers_s390x_linux64v1): Likewise.
13906 (init_registers_s390x_linux64v2): Likewise.
13907 (s390_num_regs): Increment to 52.
13908 (s390_regmap): Add orig_r2 register.
13909 (s390_num_regs_3264): Increment to 68.
13910 (s390_regmap_3264): Add orig_r2 register.
13911 (s390_collect_ptrace_register): Handle orig_r2 register.
13912 (s390_supply_ptrace_register): Likewise.
13913 (s390_fill_last_break): New function.
13914 (s390_store_last_break): Likewise.
13915 (s390_fill_system_call): New function.
13916 (s390_store_system_call): Likewise.
13917 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
13919 (s390_check_regset): New function.
13920 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
13921 NT_S390_SYSTEM_CALL regsets and use appropriate description.
13922 Update target_regsets for available register sets.
13924 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
13925 Jan Kratochvil <jan.kratochvil@redhat.com>
13927 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
13928 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
13930 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
13931 * linux-low.h (struct process_info_private): New member r_debug.
13932 * server.c (handle_qxfer_libraries): Call
13933 the_target->qxfer_libraries_svr4.
13934 (handle_qxfer_libraries_svr4): New function.
13935 (qxfer_packets): New entry "libraries-svr4".
13936 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
13937 * target.h (struct target_ops): New member qxfer_libraries_svr4.
13938 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
13939 PACKET_qXfer_libraries_svr4.
13941 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
13943 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
13944 PSW address/mask between 8-byte and 16-byte formats.
13945 (s390_supply_ptrace_register): Likewise.
13946 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
13947 basic addressing mode bit.
13949 2011-11-24 Stan Shebs <stan@codesourcery.com>
13951 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
13953 2011-11-17 Stan Shebs <stan@codesourcery.com>
13955 * tracepoint.c (struct tracepoint): New field traceframe_usage.
13956 (tracing_start_time): New global.
13957 (tracing_stop_time): New global.
13958 (tracing_user_name): New global.
13959 (tracing_notes): New global.
13960 (tracing_stop_note): New global.
13961 (cmd_qtstart): Set traceframe_usage, start_time.
13962 (stop_tracing): Set stop_time.
13963 (cmd_qtstatus): Report additional status.
13964 (cmd_qtp): New function.
13965 (handle_tracepoint_query): Call it.
13966 (cmd_qtnotes): New function.
13967 (handle_tracepoint_general_set): Call it.
13968 (get_timestamp): Rename from tsv_get_timestamp.
13970 2011-11-14 Stan Shebs <stan@codesourcery.com>
13971 Kwok Cheung Yeung <kcy@codesourcery.com>
13973 * linux-x86-low.c (small_jump_insn): New.
13974 (i386_install_fast_tracepoint_jump_pad): Add arguments for
13975 trampoline and error message, build a trampoline and issue a small
13976 jump instruction to it.
13977 (x86_install_fast_tracepoint_jump_pad): Add arguments for
13978 trampoline and error message.
13979 (x86_get_min_fast_tracepoint_insn_len): New.
13980 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
13981 * linux-low.h (struct linux_target_ops): Add arguments to
13982 install_fast_tracepoint_jump_pad operation, add new operation.
13983 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
13985 (linux_get_min_fast_tracepoint_insn_len): New function.
13986 (linux_target_op): Add new operation.
13987 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
13988 (gdb_trampoline_buffer_end): Ditto.
13989 (gdb_trampoline_buffer_error): Ditto.
13990 (struct ipa_sym_addresses): Add fields for new IPA variables.
13991 (symbol_list): Add entries for new IPA variables.
13992 (struct tracepoint): Add fields to hold the address range of the
13993 trampoline used by the tracepoint.
13994 (trampoline_buffer_head): New static variable.
13995 (trampoline_buffer_tail): Ditto.
13996 (claim_trampoline_space): New function.
13997 (have_fast_tracepoint_trampoline_buffer): New function.
13998 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
14000 (install_fast_tracepoint): Ditto, also add error buffer argument.
14001 (cmd_qtminftpilen): New function.
14002 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
14003 (fast_tracepoint_from_trampoline_address): New function.
14004 (fast_tracepoint_collecting): Handle trampoline as part of jump
14006 (set_trampoline_buffer_space): New function.
14007 (initialize_tracepoint): Initialize new IPA variables.
14008 * target.h (struct target_ops): Add arguments to
14009 install_fast_tracepoint_jump_pad operation, add new
14010 get_min_fast_tracepoint_insn_len operation.
14011 (target_get_min_fast_tracepoint_insn_len): New.
14012 (install_fast_tracepoint_jump_pad): Add arguments.
14013 * server.h (IPA_BUFSIZ): Define.
14014 * linux-i386-ipa.c: Include extra header files.
14015 (initialize_fast_tracepoint_trampoline_buffer): New function.
14016 (initialize_low_tracepoint): Call it.
14017 * server.h (set_trampoline_buffer_space): Declare.
14018 (claim_trampoline_space): Ditto.
14019 (have_fast_tracepoint_trampoline_buffer): Ditto.
14021 2011-11-14 Yao Qi <yao@codesourcery.com>
14023 * server.c (handle_query): Handle InstallInTrace for qSupported.
14024 * tracepoint.c (add_tracepoint): Sort list.
14025 (install_tracepoint, download_tracepoint): New.
14026 (cmd_qtdp): Call them to install and download tracepoints.
14027 (sort_tracepoints): Removed.
14028 (cmd_qtstart): Update.
14030 2011-11-14 Yao Qi <yao@codesourcery.com>
14032 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
14033 * mem-break.h: Declare.
14034 * tracepoint.c (cmd_qtstart): Move some code to ...
14035 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
14037 (download_tracepoints): Move some code to ...
14038 (download_tracepoint_1): ... here. New.
14040 2011-11-08 Yao Qi <yao@codesourcery.com>
14042 * remote-utils.c (relocate_instruction): A comment fix.
14044 2011-11-07 Joel Brobecker <brobecker@adacore.com>
14046 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
14047 (i386_dr_low_get_control, i386_dr_low_get_status): Use
14048 dr_status_mirror and dr_control_mirror from debug_reg_state.
14049 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
14050 (i386_initial_stuff): Remove use of deleted globals.
14051 (i386_get_thread_context, i386_set_thread_context,
14052 i386_thread_added): Use dr_status_mirror and dr_control_mirror
14053 from debug_reg_state.
14055 2011-11-05 Yao Qi <yao@codesourcery.com>
14057 * tracepoint.c (gdb_collect): Loop over tracepoints of same
14058 address as TPOINT's.
14060 2011-11-02 Stan Shebs <stan@codesourcery.com>
14062 * tracepoint.c (agent_mem_read_string): New function.
14063 (eval_agent_expr): Call it for tracenz.
14064 * server.c (handle_query): Report support for tracenz.
14066 2011-11-02 Yao Qi <yao@codesourcery.com>
14068 * tracepoint.c (cmd_qtstart): Remove unused local variables.
14070 2011-11-02 Yao Qi <yao@codesourcery.com>
14072 * target.h: Fix a typo in comment.
14074 2011-10-31 Pedro Alves <pedro@codesourcery.com>
14076 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
14077 clobber the breakpoints' shadows with fast tracepoint jumps.
14078 * mem-break.h (check_mem_write): Add `myaddr' parameter.
14079 * target.c (write_inferior_memory): Also pass MYADDR down to
14082 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
14084 * configure.ac: Check support for personality routine.
14085 * configure: Regenerate.
14086 * config.in: Likewise.
14087 * linux-low.c: Include <sys/personality.h>.
14088 Define ADDR_NO_RANDOMIZE if necessary.
14089 (linux_create_inferior): Disable address space randomization when
14090 forking inferior, if requested.
14091 (linux_supports_disable_randomization): New function.
14092 (linux_target_ops): Install it.
14093 * server.h (disable_randomization): Declare.
14094 * server.c (disable_randomization): New global variable.
14095 (handle_general_set): Handle QDisableRandomization.
14096 (handle_query): Likewise for qSupported.
14097 (main): Support --disable-randomization and --no-disable-randomization
14098 command line arguments.
14099 * target.h (struct target_ops): Add supports_disable_randomization.
14100 (target_supports_disable_randomization): New macro.
14102 2011-09-29 Mike Frysinger <vapier@gentoo.org>
14104 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
14106 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
14107 [!PT_GETDSBT] (target_loadmap): New definition.
14108 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
14109 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
14110 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
14111 and PT_GETDSBT to LINUX_LOADMAP.
14112 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
14113 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
14115 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
14117 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
14118 (arm_linux_hwbp_cap): New static variable.
14119 (arm_linux_get_hwbp_cap): Replace by ...
14120 (arm_linux_init_hwbp_cap): ... this new function.
14121 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
14122 (arm_linux_get_hw_watchpoint_count): Likewise.
14123 (arm_linux_get_hw_watchpoint_max_length): Likewise.
14124 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
14125 (arm_prepare_to_resume): Use perror_with_name instead of error.
14127 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
14129 * linux-arm-low.c: Include <signal.h>.
14130 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
14131 (struct arm_linux_hwbp_cap): New data type.
14132 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
14133 (struct arm_linux_hw_breakpoint): New data type.
14134 (MAX_BPTS, MAX_WPTS): Define.
14135 (struct arch_process_info, struct arch_lwp_info): New data types.
14136 (arm_linux_get_hwbp_cap): New function.
14137 (arm_linux_get_hw_breakpoint_count): Likewise.
14138 (arm_linux_get_hw_watchpoint_count): Likewise.
14139 (arm_linux_get_hw_watchpoint_max_length): Likewise.
14140 (arm_hwbp_control_initialize): Likewise.
14141 (arm_hwbp_control_is_enabled): Likewise.
14142 (arm_hwbp_control_is_initialized): Likewise.
14143 (arm_hwbp_control_disable): Likewise.
14144 (arm_linux_hw_breakpoint_equal): Likewise.
14145 (arm_linux_hw_point_initialize): Likewise.
14146 (struct update_registers_data): New data structure.
14147 (update_registers_callback: New function.
14148 (arm_insert_point): Likewise.
14149 (arm_remove_point): Likewise.
14150 (arm_stopped_by_watchpoint): Likewise.
14151 (arm_stopped_data_address): Likewise.
14152 (arm_new_process): Likewise.
14153 (arm_new_thread): Likewise.
14154 (arm_prepare_to_resume): Likewise.
14155 (the_low_target): Register arm_insert_point, arm_remove_point,
14156 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
14157 arm_new_thread, and arm_prepare_to_resume.
14159 2011-09-15 Stan Shebs <stan@codesourcery.com>
14161 * server.h (struct emit_ops): Add compare-goto fields.
14162 * tracepoint.c (gdb_agent_op_sizes): New table.
14163 (emit_eq_goto): New function.
14164 (emit_ne_goto): New function.
14165 (emit_lt_goto): New function.
14166 (emit_le_goto): New function.
14167 (emit_gt_goto): New function.
14168 (emit_ge_goto): New function.
14169 (is_goto_target): New function.
14170 (compile_bytecodes): Recognize special cases of compare-goto
14171 combinations and call specialized emitters for them.
14172 * linux-x86-low.c (amd64_emit_eq_goto): New function.
14173 (amd64_emit_ne_goto): New function.
14174 (amd64_emit_lt_goto): New function.
14175 (amd64_emit_le_goto): New function.
14176 (amd64_emit_gt_goto): New function.
14177 (amd64_emit_ge_goto): New function.
14178 (amd64_emit_ops): Add the new functions.
14179 (i386_emit_eq_goto): New function.
14180 (i386_emit_ne_goto): New function.
14181 (i386_emit_lt_goto): New function.
14182 (i386_emit_le_goto): New function.
14183 (i386_emit_gt_goto): New function.
14184 (i386_emit_ge_goto): New function.
14185 (i386_emit_ops): Add the new functions.
14187 2011-09-08 Stan Shebs <stan@codesourcery.com>
14189 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
14190 (i386_emit_epilogue): Restore %ebx.
14192 2011-08-31 Jie Zhang <jzhang918@gmail.com>
14194 * server.c (step_thread): Remove definition.
14195 (process_serial_event): Don't handle Hs.
14196 * server.h (step_thread): Remove declaration.
14197 * target.c (set_desired_inferior): Remove use of step_thread.
14199 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14201 * linux-low.c: Include linux-procfs.h.
14202 (linux_attach_lwp_1): Update comments.
14203 (linux_attach): Scan for existing threads when attaching to a
14204 process that is the tgid.
14205 * Makefile.in: Update dependencies.
14207 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
14209 * configure.srv: Add linux-procfs.o dependencies.
14211 2011-08-14 Yao Qi <yao@codesourcery.com>
14213 * target.h (struct target_ops): Fix indent.
14214 * win32-low.c (win32_target_ops): Fix comment.
14216 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
14217 Yao Qi <yao@codesourcery.com>
14219 * Makefile.in (clean): Remove tic6x-*.c files.
14220 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
14221 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
14222 (tic6x-c64xp-linux.c): Likewise.
14223 * configure.srv: Add support for tic6x-*-uclinux.
14224 * linux-tic6x-low.c: New.
14225 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
14227 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
14228 Yao Qi <yao@codesourcery.com>
14230 * target.h (struct target_ops): Add read_loadmap.
14231 * linux-low.c (struct target_loadseg): New type.
14232 (struct target_loadmap): New type.
14233 (linux_read_loadmap): New function.
14234 (linux_target_ops): Add linux_read_loadmap.
14235 * server.c (handle_query): Support qXfer:fdpic:read packet.
14236 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
14239 2011-08-05 Eli Zaretskii <eliz@gnu.org>
14241 * win32-low.c: Include <stdint.h>.
14243 2011-07-22 Pedro Alves <pedro@codesourcery.com>
14245 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
14246 to the inferior here.
14247 (i386_remove_aligned_watchpoint): Ditto.
14248 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
14249 fit part of the watchpoint in the debug registers.
14250 (i386_update_inferior_debug_regs): New.
14251 (i386_low_insert_watchpoint): Work on a local mirror of the debug
14252 registers, and only update the inferior on success.
14253 (i386_low_remove_watchpoint): Ditto.
14255 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
14257 * linux-low.c (compare_ints, unique, list_threads, show_process,
14258 linux_core_of_thread): Delete.
14259 (linux_target_ops): Change linux_core_of_thread to
14260 linux_common_core_of_thread.
14261 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
14262 * utils.c (malloc_failure): Change type of argument.
14263 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
14264 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
14265 common/linux-osdata.c, common/ptid.c and common/buffer.c.
14266 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
14267 (IPA_OBJS): Add common-utils-ipa.o.
14268 (ptid_h, linux_osdata_h): New macros.
14269 (server_h): Add common/common-utils.h, common/xml-utils.h,
14270 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
14272 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
14273 ptid.o, buffer.o): New rules.
14274 (linux-low.o): Add common/linux-osdata.h as a dependency.
14275 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
14276 * configure.ac: Add AC_HEADER_DIRENT check.
14277 * config.in: Regenerate.
14278 * configure: Regenerate.
14279 * remote-utils.c (xml_escape_text): Delete.
14280 (buffer_grow, buffer_free, buffer_init, buffer_finish,
14281 buffer_xml_printf): Move to common/buffer.c.
14282 * server.c (main): Remove call to initialize_inferiors.
14283 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
14284 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
14285 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
14286 internal_error, gdb_assert, gdb_assert_fail): Delete.
14287 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
14288 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
14290 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
14291 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
14292 initialize_inferiors): Delete.
14294 2011-07-20 Pedro Alves <pedro@codesourcery.com>
14296 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
14299 2011-05-31 Pedro Alves <pedro@codesourcery.com>
14301 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
14303 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
14305 2011-05-26 Yao Qi <yao@codesourcery.com>
14307 * Makefile.in (thread-db.o): Track dependence to
14308 common/gdb_thread_db.h.
14309 * thread-db.c: include gdb_thread_db.h from right place.
14311 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
14313 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
14314 __FILE__ and __LINE__ to internal_error.
14316 2011-05-13 Doug Evans <dje@google.com>
14318 * thread-db.c (try_thread_db_load_from_sdir): New function.
14319 (try_thread_db_load_from_dir): New function.
14320 (thread_db_load_search): Handle $sdir, ignore $pdir.
14321 Remove trying of system directories if search of
14322 libthread-db-search-path fails, that is now done via $sdir.
14324 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
14326 * server.c (handle_query): Add EnableDisableTracepoints to the list
14327 of supported features.
14328 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
14330 (cmd_qtenable_disable): New.
14331 (cmd_qtstart): Install tracepoints even if disabled.
14332 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
14333 receiving a QTEnable or QTDisable packet.
14334 (gdb_collect): Skip data collection if fast tracepoint is disabled.
14335 (ust_marker_to_static_tracepoint): Do not ignore disabled static
14337 (gdb_probe): Skip data collection if static tracepoint is disabled.
14339 2011-05-10 Doug Evans <dje@google.com>
14341 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
14343 2011-05-04 Doug Evans <dje@google.com>
14345 * linux-low.c (linux_join): Skip process lookup.
14346 * spu-low.c (spu_join): Ditto.
14347 * server.c (join_inferiors_callback): Delete.
14348 (process_serial_event): For 'D' packet (detach) call join_inferior
14351 2011-05-04 Joseph Myers <joseph@codesourcery.com>
14353 * README: Don't mention xscale*-*-linux*.
14354 * configure.srv (xscale*-*-linux*): Don't handle target.
14356 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
14358 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
14360 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
14361 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
14362 (i386_emit_void_call_2): Likewise.
14364 2011-04-26 Yao Qi <yao@codesourcery.com>
14366 * linux-low.c: Move common macros to linux-ptrace.h.
14367 Include linux-ptrace.h.
14368 * Makefile.in (linux_ptrace_h): New.
14369 (linux-low.o): Depends on linux-ptrace.h.
14371 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
14373 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
14374 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
14375 (remote_prepare): New function with most of the TCP code from ...
14376 (remote_open): ... here. Detect PORT here unconditionally. Move also
14377 setting transport_is_reliable.
14378 * server.c (run_once): New variable.
14379 (gdbserver_usage): Document it.
14380 (main): Set run_once for `--once'. Call remote_prepare. Exit after
14381 the first run if RUN_ONCE.
14382 * server.h (run_once, remote_prepare): New declarations.
14384 2011-04-19 Tom Tromey <tromey@redhat.com>
14386 * win32-low.c (handle_load_dll): Remove duplicate "the".
14388 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
14390 Remove support for old Cygwin 1.5 versions.
14391 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
14392 function to avoid warning.
14393 (win32_add_one_solib): Use cygwin_conv_path function to avoid
14396 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
14398 * gdbserver/server.h (Macro _): Define it if not available.
14400 2011-03-14 Michael Snyder <msnyder@vmware.com>
14402 * hostio.c (handle_close): Remove unnecessary null test.
14404 2011-03-10 Joel Brobecker <brobecker@adacore.com>
14406 * Makefile.in (maintainer-clean realclean distclean): Remove
14407 "make ... subdir_do" command.
14409 2011-03-10 Michael Snyder <msnyder@vmware.com>
14411 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
14413 * server.c (handle_v_run): Free alloced buffer on early return.
14415 2011-03-09 Yao Qi <yao@codesourcery.com>
14418 2011-03-04 Yao Qi <yao@codesourcery.com>
14420 * Makefile.in: Remove GNU make feature --directory.
14422 2011-03-05 Yao Qi <yao@codesourcery.com>
14424 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14425 (subdir_do): New make target. Copied from gdb/Makefile.
14426 (maintainer-clean, realclean, distclean, clean): Call corresponding
14427 make targets in common/Makefile.
14429 2011-02-11 Yao Qi <yao@codesourcery.com>
14431 * configure.ac: Call AC_PROG_RANLIB.
14432 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14433 * configure: Regenerate.
14435 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14437 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
14439 2011-03-06 Yao Qi <yao@codesourcery.com>
14441 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
14443 2011-03-05 Yao Qi <yao@codesourcery.com>
14445 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
14446 (subdir_do): New make target. Copied from gdb/Makefile.
14447 (maintainer-clean, realclean, distclean, clean): Call corresponding
14448 make targets in common/Makefile.
14450 2011-03-04 Yao Qi <yao@codesourcery.com>
14452 * Makefile.in: Remove GNU make feature --directory.
14454 2011-03-04 Michael Snyder <msnyder@vmware.com>
14456 * server.c (queue_stop_reply): Call xmalloc not malloc.
14458 2011-03-02 Michael Snyder <msnyder@vmware.com>
14460 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
14462 2011-02-28 Michael Snyder <msnyder@vmware.com>
14464 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
14465 (cmd_qtframe): Ditto.
14466 (cmd_qtbuffer): Ditto.
14467 (cmd_bigqtbuffer): Ditto.
14469 * utils.c (decimal2str): Initialize 'width' to nine, then
14470 don't mess with it.
14472 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
14474 * hostio.c (require_data): Free *data, not data.
14476 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14478 * hostio.c (require_data): Use free, not xfree.
14480 2011-02-27 Michael Snyder <msnyder@vmware.com>
14482 * server.c (handle_query): Discard unused value.
14484 * hostio.c (require_data): Free malloc memory before returning
14487 2011-02-26 Michael Snyder <msnyder@vmware.com>
14489 * linux-low.c (list_threads): Call closedir for dirent.
14491 2011-02-27 Michael Snyder <msnyder@vmware.com>
14493 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
14494 a case statement falls through.
14496 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
14498 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
14501 2011-02-26 Michael Snyder <msnyder@vmware.com>
14503 * utils.c (decimal2str): Eliminate dead code and dead param.
14504 (pulongest): Drop dead param from call to decimal2str.
14507 2011-02-24 Joel Brobecker <brobecker@adacore.com>
14509 Revert the following patch (not approved yet):
14510 2011-02-21 Hui Zhu <teawater@gmail.com>
14511 * tracepoint.c (tp_printf): New function.
14512 (eval_agent_expr): Handle gdb_agent_op_printf.
14514 2011-02-21 Hui Zhu <teawater@gmail.com>
14516 * tracepoint.c (tp_printf): New function.
14517 (eval_agent_expr): Handle gdb_agent_op_printf.
14519 2011-02-18 Tom Tromey <tromey@redhat.com>
14521 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
14522 (tracepoint.o): Likewise.
14523 * tracepoint.c (enum gdb_agent_op): Use ax.def.
14524 (gdb_agent_op_names): Likewise.
14526 2011-02-18 Tom Tromey <tromey@redhat.com>
14528 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
14529 gdb_agent_op_rot>: New constants.
14530 (gdb_agent_op_names): Add pick and roll.
14531 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
14534 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
14536 * aclocal.m4: Regenerated with aclocal-1.11.1.
14538 2011-02-14 Pedro Alves <pedro@codesourcery.com>
14540 * server.c (handle_qxfer_traceframe_info): New.
14541 (qxfer_packets): Register "traceframe-info".
14542 (handle_query): Report support for qXfer:traceframe-info:read+.
14543 * tracepoint.c (match_blocktype): New.
14544 (traceframe_find_block_type): Rename to ...
14545 (traceframe_walk_blocks): ... this. Add callback filter argument,
14547 (traceframe_find_block_type): New, reimplemented on top of
14548 traceframe_walk_blocks.
14549 (build_traceframe_info_xml): New.
14550 (traceframe_read_info): New.
14551 * server.h (traceframe_read_info): Declare.
14553 2011-02-11 Yao Qi <yao@codesourcery.com>
14555 * configure.ac: Call AC_PROG_RANLIB.
14556 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
14557 * configure: Regenerate.
14559 2011-02-07 Pedro Alves <pedro@codesourcery.com>
14561 * server.c (gdb_read_memory): Change return semantics to allow
14563 (handle_search_memory_1): Adjust.
14564 (process_serial_event) <'m' packet>: Handle partial transfers.
14565 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
14567 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14569 * regcache.c (init_register_cache): Initialize
14570 regcache->register_status.
14571 (free_register_cache): Release regcache->register_status.
14572 (regcache_cpy): Copy register_status.
14573 (registers_to_string): Print 'x's for unavailable registers.
14574 (supply_register): Mark the register's status valid or
14575 unavailable, depending on whether a buffer was passed in or not.
14576 (supply_register_zeroed): New.
14577 (supply_regblock): Mark the registers' status valid or
14578 unavailable, depending on whether a buffer was passed in or not.
14579 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
14580 (struct regcache): New `register_status' field.
14581 (supply_register_zeroed): Declare.
14582 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
14583 supply_register_zeroed, rather than passing a NULL buffer to
14585 * tracepoint.c (fetch_traceframe_registers): Update comment.
14587 2011-01-28 Pedro Alves <pedro@codesourcery.com>
14589 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
14592 2011-01-25 Pedro Alves <pedro@codesourcery.com>
14594 * server.h (decode_xfer_write): Change prototype.
14595 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
14596 and don't extract the annex here.
14597 * server.c (decode_xfer_read): Remove `annex' parameter,
14598 and don't extract the annex here.
14599 (decode_xfer): New.
14600 (struct qxfer): New.
14601 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
14602 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
14603 (handle_qxfer_statictrace): New functions, abstracted out from
14604 handle_query, and made to use the struct qxfer interface.
14605 (handle_threads_qxfer_proper): Rename to ...
14606 (handle_qxfer_threads_proper): ... this.
14607 (handle_threads_qxfer): Rename to ...
14608 (handle_qxfer_threads): ... this. Adjust.
14609 (qxfer_packets): New array.
14610 (handle_qxfer): New function.
14611 (handle_query): Use handle_qxfer.
14613 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
14615 * gdbreplay.c: Shorten lines of >= 80 columns.
14616 * linux-low.c: Ditto.
14617 * linux-ppc-low.c: Ditto.
14618 * linux-s390-low.c: Ditto.
14619 * linux-sparc-low.c: Ditto.
14620 * linux-x86-low.c: Ditto.
14621 * linux-xtensa-low.c: Ditto.
14622 * mem-break.c: Ditto.
14623 * nto-low.c: Ditto.
14624 * regcache.h: Ditto.
14625 * remote-utils.c: Ditto.
14628 * thread-db.c: Ditto.
14629 * tracepoint.c: Ditto.
14631 * win32-low.h: Ditto.
14633 2011-01-05 Joel Brobecker <brobecker@adacore.com>
14635 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
14638 2011-01-01 Joel Brobecker <brobecker@adacore.com>
14640 * server.c (gdbserver_version): Update copyright year in version
14642 * gdbreplay.c (gdbreplay_version): Ditto.
14644 2010-12-29 Jie Zhang <jie.zhang@analog.com>
14646 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
14647 * linux-bfin-low.c: New file.
14648 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
14649 PT_DATA_ADDR for BFIN targets.
14650 * Makefile.in (SFILES): Add linux-bfin-low.c.
14651 (clean): Remove reg-bfin.c.
14652 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
14653 * README: Mention supported Blackfin targets.
14655 2010-12-23 Mike Frysinger <vapier@gentoo.org>
14657 * .gitignore: New file.
14659 2010-11-16 Mike Frysinger <vapier@gentoo.org>
14661 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
14663 2010-10-22 Jie Zhang <jie@codesourcery.com>
14665 * Makefile.in: Add FLAGS_TO_PASS variable.
14666 (install): Remove dependency of install-only and recursively
14667 invoke make for install-only.
14669 2010-10-04 Doug Evans <dje@google.com>
14671 * Makefile.in (uninstall): Use $(DESTDIR).
14673 2010-09-24 Pedro Alves <pedro@codesourcery.com>
14677 * linux-x86-low.c (compat_siginfo_from_siginfo)
14678 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
14679 si_code is < 0. Check for si_code == SI_TIMER before checking for
14682 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14684 * lynx-i386-low.c: New file.
14685 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
14687 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14689 * lynx-low.c (ptrace_request_to_str): Remove handling for
14690 request values that have been removed in LynxOS 5.x.
14692 2010-09-13 Joel Brobecker <brobecker@adacore.com>
14694 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
14697 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
14699 * configure.ac: Add --enable-inprocess-agent option.
14700 * configure: Rebuilt.
14702 2010-09-06 Yao Qi <yao@codesourcery.com>
14704 * linux-low.c (linux_kill): Remove unused variable.
14705 (linux_stabilize_threads): Likewise.
14706 * server.c (start_inferior): Likewise.
14707 (queue_stop_reply_callback): Likewise.
14708 * tracepoint.c (do_action_at_tracepoint): Likewise.
14710 2010-09-06 Yao Qi <yao@codesourcery.com>
14712 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
14715 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
14717 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
14719 2010-09-06 Pedro Alves <pedro@codesourcery.com>
14721 * Makefile.in (install-only): Replace $IPA_DEPFILES with
14724 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14726 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
14727 gdbserver/lynx-ppc-low.c: New files.
14728 * Makefile.in (lynx_low_h): New variable.
14729 (lynx-low.o, lynx-ppc-low.o): New rules.
14730 * configure.ac: On LynxOS, link with -lnetinet.
14731 * configure.srv: Add handling of powerpc-*-lynxos* targets.
14732 * configure: regenerate.
14734 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14736 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
14737 * configure.ac: Add check for vasprintf and vsnprintf.
14738 * configure, config.in: Regenerate.
14739 * server.h (vasprintf, vsnprintf): Add conditional declarations.
14741 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14743 * gdbreplay.c: Move include of alloca.h up, next to include of
14745 * server.h: Add include of malloc.h.
14746 * mem-break.c: Remove include of malloc.h.
14747 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
14749 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14751 * Makefile.in (memmem.o): Build with -Wno-error.
14753 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14755 * utils.c (xsnprintf): Make non-static.
14756 * server.h: Add xsnprintf declaration.
14757 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
14758 replace calls to snprintf by calls to xsnprintf throughout.
14760 2010-09-01 Joel Brobecker <brobecker@adacore.com>
14762 * configure.ac: Add configure check for alloca.
14763 * configure, config.in: Regenerate.
14764 * server.h: Include alloca.h if it exists.
14765 * gdbreplay.c: Include alloca.h if it exists.
14767 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14769 * linux-low.c (__SIGRTMIN): Define if not already defined.
14770 (linux_create_inferior): Check for __ANDROID__ rather than
14772 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
14773 are already deferred.
14774 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
14775 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
14776 stopped and already has a pending signal to report.
14777 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
14778 a pending signal to report or is moving out of a jump pad.
14779 (linux_init_signals): Check for __ANDROID__ rather than
14782 2010-08-28 Pedro Alves <pedro@codesourcery.com>
14784 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
14785 debug_threads check. Avoid a linear search when not doing debug
14788 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14790 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
14791 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
14792 (struct file_handler) <fd>: Change type to gdb_fildes_t.
14793 (process_event): Change local fd's type to gdb_fildes_t.
14794 (create_file_handler): Adjust prototype.
14795 (delete_file_handler): Adjust prototype.
14796 (handle_file_event): Adjust prototype. Use pfildes.
14797 (create_file_event): Adjsut prototype.
14798 * remote-utils.c (remote_desc, listen_desc): Change type to
14800 * server.h: New gdb_fildes_t typedef.
14801 [USE_WIN32API]: Include winsock2.h.
14802 (delete_file_handler, add_file_handler): Adjust prototypes.
14803 (pfildes): Declare.
14804 * utils.c (pfildes): New.
14806 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14808 * configure.ac (build_warnings): Add -Wno-char-subscripts.
14809 * configure: Regenerate.
14811 2010-08-27 Pedro Alves <pedro@codesourcery.com>
14813 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
14814 (linux_done_accessing_memory): ... this.
14815 (linux_target_ops): Adjust.
14816 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
14817 * nto-low.c (nto_target_ops): Adjust comment.
14818 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
14819 * spu-low.c (spu_target_ops): Adjust comment.
14820 * target.h (target_ops): Rename unprepare_to_access_memory field
14821 to done_accessing_memory.
14822 (unprepare_to_access_memory): Rename to ...
14823 (done_accessing_memory): ... this.
14825 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14827 * linux-low.c (linux_prepare_to_access_memory): New.
14828 (linux_unprepare_to_access_memory): New.
14829 (linux_target_ops): Install them.
14830 * server.c (read_memory): Rename to ...
14831 (gdb_read_memory): ... this. Use
14832 prepare_to_access_memory/prepare_to_access_memory.
14833 (write_memory): Rename to ...
14834 (gdb_write_memory): ... this. Use
14835 prepare_to_access_memory/prepare_to_access_memory.
14836 (handle_search_memory_1): Adjust.
14837 (process_serial_event): Adjust.
14838 * target.h (struct target_ops): New fields
14839 prepare_to_access_memory and unprepare_to_access_memory.
14840 (prepare_to_access_memory, unprepare_to_access_memory): New.
14841 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
14842 prepare_to_access_memory/prepare_to_access_memory.
14843 * nto-low.c (nto_target_ops): Adjust.
14844 * spu-low.c (spu_target_ops): Adjust.
14845 * win32-low.c (win32_target_ops): Adjust.
14847 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14849 * Makefile.in (WARN_CFLAGS): Get it from configure.
14850 (WERROR_CFLAGS): New.
14851 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
14852 * configure.ac: Introduce --enable-werror, which adds -Werror to
14853 the compiler command line. Enabled by default. Disable with
14854 --disable-werror. Add -Wdeclaration-after-statement
14855 Wpointer-arith and -Wformat-nonliteral to warning flags.
14856 * configure: Regenerate.
14858 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14860 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
14862 2010-08-26 Pedro Alves <pedro@codesourcery.com>
14864 * gdbreplay.c (remote_error): New.
14866 (expect): Use gdbchar. Check for error reading from GDB.
14867 Clarify sync error output.
14868 (play): Check for errors writing to GDB.
14869 * linux-low.c (sigchld_handler): Really ignore `write' errors.
14870 * remote-utils.c (getpkt): Check for errors writing to the remote
14873 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14875 * linux-low.c (linux_wait_1): Move non-debugging code out of
14876 `debug_threads' control.
14878 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14880 * linux-low.c (linux_wait_1): Don't set last_status here.
14881 * server.c (push_event, queue_stop_reply_callback): Assert we're
14882 not pushing a TARGET_WAITKIND_IGNORE event.
14883 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
14884 (myresume, handle_target_event): Set the thread's last_resume_kind
14885 and last_status from the target returned status.
14887 2010-08-25 Pedro Alves <pedro@codesourcery.com>
14891 * linux-x86-low.c (update_debug_registers_callback): New.
14892 (i386_dr_low_set_addr): Use it.
14893 (i386_dr_low_get_addr): New.
14894 (i386_dr_low_set_control): Use update_debug_registers_callback.
14895 (i386_dr_low_get_control): New.
14896 (i386_dr_low_get_status): Adjust.
14897 * linux-low.c (linux_stop_lwp): New.
14898 * linux-low.h (linux_stop_lwp): Declare.
14900 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
14901 argument instead of a i386_debug_reg_state.
14902 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
14903 a i386_debug_reg_state.
14904 (i386_insert_aligned_watchpoint): Adjust.
14905 (i386_remove_aligned_watchpoint): Adjust.
14906 (i386_low_stopped_data_address): Read the debug registers from the
14907 inferior instead of from the mirrors.
14908 * i386-low.h (struct i386_debug_reg_state): Extend comment.
14909 (i386_dr_low_get_addr): Declare.
14910 (i386_dr_low_get_control): Declare.
14911 (i386_dr_low_get_status): Change prototype.
14913 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
14914 (i386_dr_low_get_addr): New.
14915 (i386_dr_low_get_control): New.
14916 (i386_dr_low_get_status): Adjust prototype. Return
14918 (i386_initial_stuff): Clear dr_status_mirror and
14920 (i386_get_thread_context): Adjust.
14921 (i386_set_thread_context): Adjust.
14922 (i386_thread_added): Adjust.
14924 2010-08-24 Pedro Alves <pedro@codesourcery.com>
14926 * linux-low.h (linux_thread_area): Delete declaration.
14928 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
14930 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
14931 after its termination.
14933 2010-08-09 Pedro Alves <pedro@codesourcery.com>
14935 * linux-low.c (gdb_wants_lwp_stopped): Delete.
14936 (gdb_wants_all_stopped): Delete.
14937 (linux_wait_1): Don't call them.
14938 * server.c (handle_v_cont): Tag all threads as want-stopped.
14939 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
14940 stopped as "client-wants-stopped".
14942 2010-07-31 Pedro Alves <pedro@codesourcery.com>
14944 * Makefile.in (signals_h): New.
14945 (server_h): Depend on it.
14946 (server.o): Don't depend on $(signals_def).
14947 (signals.o): Depend on $(signals_def).
14949 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
14951 * Makefile.in (signals_def): New.
14952 (server_h): Append include/gdb/signals.h and signals_def.
14953 (server.o): Append signals_def.
14955 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14957 * server.c (handle_target_event): Use target_signal_to_host for
14958 resume_info.sig initialization.
14959 * target.h (struct thread_resume) <sig>: New comment.
14961 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
14963 * server.c (handle_query): strcpy() the returned string from paddress()
14964 instead of sprintf().
14965 * utils.c (paddress): Return phex_nz().
14967 2010-07-07 Joel Brobecker <brobecker@adacore.com>
14969 * server.c (handle_v_cont): Call mourn_inferior if process
14971 (myresume): Likewise.
14973 2010-07-01 Pedro Alves <pedro@codesourcery.com>
14975 Static tracepoints, and integration with UST.
14977 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
14978 * mem-break.c (uninsert_all_breakpoints)
14979 (reinsert_all_breakpoints): New.
14980 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
14981 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
14982 (gdb_agent_ust_loaded, helper_thread_id)
14983 (gdb_agent_helper_thread_id): New macros.
14984 (struct ipa_sym_addresses): Add addr_ust_loaded,
14985 addr_helper_thread_id, addr_cmd_buf.
14986 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
14987 (in_process_agent_loaded_ust): New.
14988 (write_e_ust_not_loaded): New.
14989 (maybe_write_ipa_ust_not_loaded): New.
14990 (struct collect_static_trace_data_action): New.
14991 (enum tracepoint_type) <static_tracepoint>: New.
14992 (struct tracepoint) <handle>: Mention static tracepoints.
14993 (struct static_tracepoint_ctx): New.
14994 (CMD_BUF_SIZE): New.
14995 (add_tracepoint_action): Handle static tracepoint actions.
14996 (unprobe_marker_at): New.
14997 (clear_installed_tracepoints): Handle static tracepoints.
14998 (cmd_qtdp): Handle static tracepoints.
14999 (probe_marker_at): New.
15000 (cmd_qtstart): Handle static tracepoints.
15001 (response_tracepoint): Handle static tracepoints.
15002 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
15003 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
15004 (get_context_regcache): Handle static tracepoints.
15005 (do_action_at_tracepoint): Handle static tracepoint actions.
15006 (traceframe_find_block_type): Handle static trace data blocks.
15007 (traceframe_read_sdata): New.
15008 (download_tracepoints): Download static tracepoint actions.
15009 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
15010 (GDB_PROBE_NAME): New.
15012 (GET_UST_SYM): New.
15015 (ust_marker_to_static_tracepoint): New.
15017 (collect_ust_data_at_tracepoint): New.
15018 (gdb_ust_probe): New.
15019 (UNIX_PATH_MAX, SOCK_DIR): New.
15020 (gdb_ust_connect_sync_socket): New.
15021 (resume_thread, stop_thread): New.
15022 (run_inferior_command): New.
15023 (init_named_socket): New.
15024 (gdb_ust_socket_init): New.
15025 (cstr_to_hexstr): New.
15027 (first_marker, next_marker): New.
15028 (response_ust_marker): New.
15029 (cmd_qtfstm, cmd_qtsstm): New.
15030 (unprobe_marker_at, probe_marker_at): New.
15031 (cmd_qtstmat, gdb_ust_thread): New.
15032 (gdb_ust_init): New.
15033 (initialize_tracepoint_ftlib): Call gdb_ust_init.
15034 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
15035 (ST_REGENTRY): New.
15036 (x86_64_st_collect_regmap): New.
15037 (X86_64_NUM_ST_COLLECT_GREGS): New.
15038 (AMD64_RIP_REGNUM): New.
15039 (supply_static_tracepoint_registers): New.
15040 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
15041 (ST_REGENTRY): New.
15042 (i386_st_collect_regmap): New.
15043 (i386_NUM_ST_COLLECT_GREGS): New.
15044 (supply_static_tracepoint_registers): New.
15045 * server.c (handle_query): Handle qXfer:statictrace:read.
15046 <qSupported>: Report support for StaticTracepoints, and
15047 qXfer:statictrace:read features.
15048 * server.h (traceframe_read_sdata)
15049 (supply_static_tracepoint_registers): Declare.
15050 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
15051 (unpack_varlen_hex): Include in IPA build.
15052 * Makefile.in (ustlibs, ustinc): New.
15053 (IPA_OBJS): Add remote-utils-ipa.o.
15054 ($(IPA_LIB)): Link -ldl and -lpthread.
15056 (IPAGENT_CFLAGS): Add UST_CFLAGS.
15057 * config.in, configure: Regenerate.
15059 2010-06-20 Ian Lance Taylor <iant@google.com>
15060 Pedro Alves <pedro@codesourcery.com>
15062 * linux-x86-low.c (always_true): Delete.
15063 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
15064 trying to fool the compiler with always_true.
15066 2010-06-20 Pedro Alves <pedro@codesourcery.com>
15068 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
15069 conditions in gdbserver.
15071 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
15073 * spu-low.c (spu_read_memory): Wrap around local store limit.
15074 (spu_write_memory): Likewise.
15076 2010-06-15 Pedro Alves <pedro@codesourcery.com>
15078 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
15079 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
15081 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
15083 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
15084 uses with LONGEST uses.
15086 2010-06-14 Stan Shebs <stan@codesourcery.com>
15087 Pedro Alves <pedro@codesourcery.com>
15091 * linux-x86-low.c: Include limits.h.
15093 (always_true): New.
15096 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
15097 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
15098 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
15099 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
15100 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
15101 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
15102 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
15103 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
15104 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
15105 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
15106 (amd64_emit_void_call_2): New.
15107 (amd64_emit_ops): New.
15108 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
15109 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
15110 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
15111 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
15112 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
15113 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
15114 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
15115 (i386_emit_call, i386_emit_reg, i386_emit_pop)
15116 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
15117 (i386_emit_stack_adjust, i386_emit_int_call_1)
15118 (i386_emit_void_call_2): New.
15119 (i386_emit_ops): New.
15120 (x86_emit_ops): New.
15121 (the_low_target): Install x86_emit_ops.
15122 * server.h (struct emit_ops): New.
15123 (get_raw_reg_func_addr): Declare.
15124 (current_insn_ptr, emit_error): Declare.
15125 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
15126 (set_trace_state_variable_value): New defines.
15127 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
15128 addr_get_trace_state_variable_value and
15129 addr_set_trace_state_variable_value.
15130 (symbol_list): New fields for get_raw_reg,
15131 get_trace_state_variable_value and set_trace_state_variable_value.
15132 (condfn): New typedef.
15133 (struct tracepoint): New field `compiled_cond'.
15134 (do_action_at_tracepoint): Clear compiled_cond.
15135 (get_trace_state_variable_value, set_trace_state_variable_value):
15137 (condition_true_at_tracepoint): If there's a compiled condition,
15139 (current_insn_ptr, emit_error): New globals.
15140 (struct bytecode_address): New.
15141 (get_raw_reg_func_addr): New.
15142 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
15143 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
15144 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
15145 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
15146 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
15147 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
15148 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
15149 (compile_tracepoint_condition, compile_bytecodes): New.
15150 * target.h (emit_ops): Forward declare.
15151 (struct target_ops): New field emit_ops.
15152 (target_emit_ops): New.
15153 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
15154 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
15155 * linux-low.c (linux_emit_ops): New.
15156 (linux_target_ops): Install it.
15157 * linux-low.h (struct linux_target_ops): New field emit_ops.
15159 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
15161 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
15162 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
15164 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15165 Stan Shebs <stan@codesourcery.com>
15167 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
15168 (all): Depend on $(extra_libraries).
15169 (install-only): Install the IPA.
15170 (IPA_OBJS, IPA_LIB): New.
15171 (clean): Remove the IPA lib.
15172 (IPAGENT_CFLAGS): New.
15173 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
15174 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
15175 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
15176 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
15177 * configure.ac: Check for atomic builtins support in the compiler.
15178 (IPA_DEPFILES, extra_libraries): Define.
15179 * configure.srv (ipa_obj): Add description.
15180 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
15181 (i[34567]86-*-linux*): Set ipa_obj.
15182 (x86_64-*-linux*): Set ipa_obj.
15183 * linux-low.c (stabilizing_threads): New.
15184 (supports_fast_tracepoints): New.
15185 (linux_detach): Stabilize threads before detaching.
15186 (handle_tracepoints): Handle internal tracing breakpoints. Assert
15187 the lwp is either not stabilizing, or is moving out of a jump pad.
15188 (linux_fast_tracepoint_collecting): New.
15189 (maybe_move_out_of_jump_pad): New.
15190 (enqueue_one_deferred_signal): New.
15191 (dequeue_one_deferred_signal): New.
15192 (linux_wait_for_event_1): If moving out of a jump pad, defer
15193 pending signals to later.
15194 (linux_stabilize_threads): New.
15195 (linux_wait_1): Check if threads need moving out of jump pads, and
15197 (stuck_in_jump_pad_callback): New.
15198 (move_out_of_jump_pad_callback): New.
15199 (lwp_running): New.
15200 (linux_resume_one_lwp): Handle moving out of jump pads.
15201 (linux_set_resume_request): Dequeue deferred signals.
15202 (need_step_over_p): Also step over fast tracepoint jumps.
15203 (start_step_over): Also uninsert fast tracepoint jumps.
15204 (finish_step_over): Also reinsert fast tracepoint jumps.
15205 (linux_install_fast_tracepoint_jump): New.
15206 (linux_target_ops): Install linux_stabilize_threads and
15207 linux_install_fast_tracepoint_jump_pad.
15208 * linux-low.h (linux_target_ops) <get_thread_area,
15209 install_fast_tracepoint_jump_pad>: New fields.
15210 (struct lwp_info) <collecting_fast_tracepoint,
15211 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
15212 (linux_get_thread_area): Declare.
15213 * linux-x86-low.c (jump_insn): New.
15214 (x86_get_thread_area): New.
15215 (append_insns): New.
15216 (push_opcode): New.
15217 (amd64_install_fast_tracepoint_jump_pad): New.
15218 (i386_install_fast_tracepoint_jump_pad): New.
15219 (x86_install_fast_tracepoint_jump_pad): New.
15220 (the_low_target): Install x86_get_thread_area and
15221 x86_install_fast_tracepoint_jump_pad.
15222 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
15223 (struct fast_tracepoint_jump): New.
15224 (fast_tracepoint_jump_insn): New.
15225 (fast_tracepoint_jump_shadow): New.
15226 (find_fast_tracepoint_jump_at): New.
15227 (fast_tracepoint_jump_here): New.
15228 (delete_fast_tracepoint_jump): New.
15229 (set_fast_tracepoint_jump): New.
15230 (uninsert_fast_tracepoint_jumps_at): New.
15231 (reinsert_fast_tracepoint_jumps_at): New.
15232 (set_breakpoint_at): Use write_inferior_memory.
15233 (uninsert_raw_breakpoint): Use write_inferior_memory.
15234 (check_mem_read): Mask out fast tracepoint jumps.
15235 (check_mem_write): Mask out fast tracepoint jumps.
15236 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
15237 (set_fast_tracepoint_jump): Declare.
15238 (delete_fast_tracepoint_jump)
15239 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
15240 (reinsert_fast_tracepoint_jumps_at): Declare.
15241 * regcache.c: Don't compile many functions when building the
15242 in-process agent library.
15243 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
15244 the register buffer in the heap.
15245 (free_register_cache): If the register buffer isn't owned by the
15246 regcache, don't free it.
15247 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
15248 pre-existing register caches.
15249 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
15251 (convert_ascii_to_int): : Constify `from' parameter type.
15252 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
15253 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
15254 the needed buffer in-place.
15255 (relocate_instruction): New.
15256 * server.c (handle_query) <qSymbols>: If the target supports
15257 tracepoints, give it a chance of looking up symbols. Report
15258 support for fast tracepoints.
15259 (handle_status): Stabilize threads.
15260 (process_serial_event): Adjust.
15261 * server.h (struct fast_tracepoint_jump): Forward declare.
15262 (struct process_info) <fast_tracepoint_jumps>: New field.
15263 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
15264 (decode_X_packet, decode_M_packet): Adjust.
15265 (relocate_instruction): Declare.
15266 (in_process_agent_loaded): Declare.
15267 (tracepoint_look_up_symbols): Declare.
15268 (struct fast_tpoint_collect_status): Declare.
15269 (fast_tracepoint_collecting): Declare.
15270 (force_unlock_trace_buffer): Declare.
15271 (handle_tracepoint_bkpts): Declare.
15272 (initialize_low_tracepoint)
15273 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
15274 * target.h (struct target_ops) <stabilize_threads,
15275 install_fast_tracepoint_jump_pad>: New fields.
15276 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
15277 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
15278 [HAVE_STDINT_H]: Include stdint.h.
15279 (trace_debug_1): Rename to ...
15280 (trace_vdebug): ... this.
15281 (trace_debug): Rename to ...
15282 (trace_debug_1): ... this. Add `level' parameter.
15283 (trace_debug): New.
15284 (ATTR_USED, ATTR_NOINLINE): New.
15285 (IP_AGENT_EXPORT): New.
15286 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
15287 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
15288 (about_to_request_buffer_space, trace_buffer_is_full)
15289 (stopping_tracepoint, expr_eval_result, error_tracepoint)
15290 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
15291 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
15292 (traceframe_write_count, traceframes_created)
15293 (trace_state_variables)
15294 New renaming defines.
15295 (struct ipa_sym_addresses): New.
15296 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
15297 (symbol_list): New.
15298 (ipa_sym_addrs): New.
15299 (all_tracepoint_symbols_looked_up): New.
15300 (in_process_agent_loaded): New.
15301 (write_e_ipa_not_loaded): New.
15302 (maybe_write_ipa_not_loaded): New.
15303 (tracepoint_look_up_symbols): New.
15304 (debug_threads) [IN_PROCESS_AGENT]: New.
15305 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
15306 (UNKNOWN_SIDE_EFFECTS): New.
15307 (stop_tracing): New.
15308 (flush_trace_buffer): New.
15309 (stop_tracing_bkpt): New.
15310 (flush_trace_buffer_bkpt): New.
15311 (read_inferior_integer): New.
15312 (read_inferior_uinteger): New.
15313 (read_inferior_data_pointer): New.
15314 (write_inferior_data_pointer): New.
15315 (write_inferior_integer): New.
15316 (write_inferior_uinteger): New.
15317 (struct collect_static_trace_data_action): Delete.
15318 (enum tracepoint_type): New.
15319 (struct tracepoint) <type>: New field `type'.
15320 <actions_str, step_actions, step_actions_str>: Only include in
15322 <orig_size, obj_addr_on_target, adjusted_insn_addr>
15323 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
15324 (tracepoints): Use IP_AGENT_EXPORT.
15325 (last_tracepoint): Don't include in the IPA.
15326 (stopping_tracepoint): Use IP_AGENT_EXPORT.
15327 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
15328 (alloced_trace_state_variables): New.
15329 (trace_state_variables): Use IP_AGENT_EXPORT.
15330 (traceframe_t): Delete unused variable.
15331 (circular_trace_buffer): Don't include in the IPA.
15332 (trace_buffer_start): Delete.
15333 (struct trace_buffer_control): New.
15334 (trace_buffer_free): Delete.
15335 (struct ipa_trace_buffer_control): New.
15336 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
15337 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
15339 (trace_buffer_ctrl): New.
15340 (TRACE_BUFFER_CTRL_CURR): New.
15341 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
15342 Reimplement as macros.
15343 (trace_buffer_wrap): Delete.
15344 (traceframe_write_count, traceframe_read_count)
15345 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
15346 (struct tracepoint_hit_ctx) <type>: New field.
15347 (struct fast_tracepoint_ctx): New.
15348 (memory_barrier): New.
15350 (record_tracepoint_error): Update atomically in the IPA.
15351 (clear_inferior_trace_buffer): New.
15352 (about_to_request_buffer_space): New.
15353 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
15354 updating the same buffer.
15355 (add_tracepoint): Default the tracepoint's type to trap
15356 tracepoint, and orig_size to -1.
15357 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
15358 internal variables.
15359 (create_trace_state_variable): New parameter `gdb'. Handle it.
15360 (clear_installed_tracepoints): Clear fast tracepoint jumps.
15361 (cmd_qtdp): Handle fast tracepoints.
15362 (cmd_qtdv): Adjust.
15363 (max_jump_pad_size): New.
15364 (gdb_jump_pad_head): New.
15365 (get_jump_space_head): New.
15366 (claim_jump_space): New.
15367 (sort_tracepoints): New.
15368 (MAX_JUMP_SIZE): New.
15369 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
15371 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
15372 support. Upload fast traceframes, and delete internal IPA
15374 (stop_tracing_handler): New.
15375 (flush_trace_buffer_handler): New.
15376 (cmd_qtstop): Upload fast tracepoints.
15377 (response_tracepoint): Handle fast tracepoints.
15378 (tracepoint_finished_step): Upload fast traceframes. Set the
15379 tracepoint hit context's tracepoint type.
15380 (handle_tracepoint_bkpts): New.
15381 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
15382 type. Add comment about fast tracepoints.
15383 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
15384 non-existing action_str field.
15385 (get_context_regcache): Handle fast tracepoints.
15386 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
15388 (fast_tracepoint_from_jump_pad_address): New.
15389 (fast_tracepoint_from_ipa_tpoint_address): New.
15390 (collecting_t): New.
15391 (force_unlock_trace_buffer): New.
15392 (fast_tracepoint_collecting): New.
15394 (gdb_collect): New.
15395 (write_inferior_data_ptr): New.
15396 (target_tp_heap): New.
15397 (target_malloc): New.
15398 (download_agent_expr): New.
15400 (download_tracepoints): New.
15401 (download_trace_state_variables): New.
15402 (upload_fast_traceframes): New.
15403 (IPA_FIRST_TRACEFRAME): New.
15404 (IPA_NEXT_TRACEFRAME_1): New.
15405 (IPA_NEXT_TRACEFRAME): New.
15406 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
15407 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
15408 (gdb_jump_pad_buffer_end): New.
15409 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
15410 (initialize_tracepoint): Adjust.
15411 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
15412 buffer. Initialize the low module.
15413 * utils.c (PREFIX, TOOLNAME): New.
15414 (malloc_failure): Use PREFIX.
15415 (error): In the IPA, an error causes an exit.
15416 (fatal, warning): Use PREFIX.
15417 (internal_error): Use TOOLNAME.
15418 (NUMCELLS): Increase to 10.
15419 * configure, config.in: Regenerate.
15421 2010-06-01 Pedro Alves <pedro@codesourcery.com>
15423 * server.c (handle_query) <qSupported>: Do two passes over the
15424 qSupported string to avoid nesting strtok.
15426 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15428 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
15430 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
15431 -Wl,--dynamic-list.
15432 * configure: Regenerate.
15433 * proc-service.list: New.
15435 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15437 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
15440 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
15442 * gdbreplay.c (remote_open): Check error return from socket() call by
15443 its equality to -1 not by it being negative.
15444 * remote-utils.c (remote_open): Likewise.
15446 2010-05-23 Pedro Alves <pedro@codesourcery.com>
15448 * config.h: Regenerate.
15450 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15452 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
15453 doesn't provide PTRACE_GET_THREAD_AREA.
15455 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
15457 * linux-m68k-low.c: Include <asm/ptrace.h>
15458 (ps_get_thread_area): Implement.
15460 2010-05-03 Doug Evans <dje@google.com>
15462 * event-loop.c (struct callback_event): New struct.
15463 (callback_list): New global.
15464 (append_callback_event, delete_callback_event): New functions.
15465 (process_callback): New function.
15466 (start_event_loop): Call it.
15467 * remote-utils.c (NOT_SCHEDULED): Define.
15468 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
15469 moved out of readchar.
15470 (readchar): Rewrite. Call reschedule before returning.
15471 (reset_readchar): New function.
15472 (remote_close): Call it.
15473 (process_remaining, reschedule): New functions.
15474 * server.h (callback_handler_func): New typedef.
15475 (append_callback_event, delete_callback_event): Declare.
15477 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15479 * proc-service.c (ps_pglobal_lookup): Use
15480 thread_db_look_up_one_symbol.
15481 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
15482 parameter. Use it instead of all_symbols_looked_up.
15483 * server.h (struct process_info) <all_symbols_looked_up>: Delete
15485 (all_symbols_looked_up): Don't declare.
15486 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
15487 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
15489 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
15490 Set all_symbols_looked_up here.
15491 (thread_db_look_up_one_symbol): New.
15492 (thread_db_get_tls_address): Adjust.
15493 (thread_db_load_search, try_thread_db_load_1): Always allocate the
15494 thread_db object on the heap, and tentatively set it in the
15496 (thread_db_init): Don't set all_symbols_looked_up here.
15497 * linux-low.h (thread_db_look_up_one_symbol): Declare.
15499 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15501 * linux-low.c (linux_kill, linux_detach): Adjust.
15502 (status_pending_p_callback): Remove redundant statement. Check
15503 for !TARGET_WAITIKIND_IGNORE, instead of
15504 TARGET_WAITKIND_STOPPED.
15505 (handle_tracepoints): Make sure LWP is locked. Adjust.
15506 (linux_wait_for_event_1): Adjust.
15507 (linux_cancel_breakpoints): New.
15508 (unsuspend_one_lwp): New.
15509 (unsuspend_all_lwps): New.
15510 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
15511 (send_sigstop_callback): Change return type to int, add new
15512 `except' parameter and handle it.
15513 (suspend_and_send_sigstop_callback): New.
15514 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
15515 pass them down. If SUSPEND, also increment the lwp's suspend
15517 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
15518 (need_step_over_p): Don't consider suspended LWPs.
15519 (start_step_over): Adjust.
15520 (proceed_one_lwp): Change return type to int, add new `except'
15521 parameter and handle it.
15522 (unsuspend_and_proceed_one_lwp): New.
15523 (proceed_all_lwps): Use find_inferior instead of
15525 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
15526 also decrement the suspend count of LWPs. Pass `except' down,
15527 instead of hacking its suspend count.
15528 (linux_pause_all): Add `freeze' parameter. Adjust.
15529 (linux_unpause_all): New.
15530 (linux_target_ops): Install linux_unpause_all.
15531 * server.c (handle_status): Adjust.
15532 * target.h (struct target_ops): New fields `unpause_all' and
15533 `cancel_breakpoints'. Add new parameter to `pause_all'.
15534 (pause_all): Add new `freeze' parameter.
15535 (unpause_all): New.
15536 (cancel_breakpoints): New.
15537 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
15538 cancel breakpoints.
15539 (cmd_qtstart): Pause threads.
15540 (stop_tracing): Pause threads, and cancel breakpoints.
15541 * win32-low.c (win32_target_ops): Adjust.
15543 2010-05-03 Pedro Alves <pedro@codesourcery.com>
15545 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
15546 the inferior right away from here...
15547 (linux_wait_1): ... to here, and adjust to check the thread's
15548 last_resume_kind instead of the lwp's step or stop_expected flags.
15550 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15552 * README: Use consistent `GDB' and `GDBserver' spellings.
15554 2010-05-02 Pedro Alves <pedro@codesourcery.com>
15556 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
15557 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
15558 (linux_detach_one_lwp): Assume the lwp is stopped.
15559 (any_thread_of): Delete.
15560 (linux_detach): Stop all lwps here. Don't blindly delete all
15562 (delete_lwp_callback): New.
15563 (linux_mourn): Delete all lwps of the process that is gone.
15564 (linux_wait_1): Don't delete the last lwp of the process here.
15565 * mem-break.h (mark_breakpoints_out): Declare.
15566 * mem-break.c (mark_breakpoints_out): New.
15567 (free_all_breakpoints): Use it.
15568 * server.c (handle_target_event): If the process is gone, mark
15570 * thread-db.c (struct thread_db) <create_bp>: New field.
15571 (thread_db_enable_reporting): Fix prototype. Store a thread event
15572 breakpoint reference in the thread_db struct.
15573 (thread_db_load_search): Clear the thread_db object.
15574 (try_thread_db_load_1): Ditto.
15575 (switch_to_process): New.
15576 (disable_thread_event_reporting): Use it.
15577 (remove_thread_event_breakpoints): New.
15578 (thread_db_detach, thread_db_mourn): Use it.
15580 2010-05-01 Pedro Alves <pedro@codesourcery.com>
15582 * linux-low.c (linux_enable_event_reporting): New.
15583 (linux_wait_for_event_1, handle_extended_wait): Use it.
15585 2010-04-30 Pedro Alves <pedro@codesourcery.com>
15587 * linux-low.c (linux_kill_one_lwp, linux_kill)
15588 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
15589 (send_sigstop): Take an lwp_info as parameter instead. Queue a
15590 SIGSTOP even if the LWP is stopped.
15591 (send_sigstop_callback): New.
15592 (stop_all_lwps): Use send_sigstop_callback instead.
15593 (linux_resume_one_thread): Adjust.
15594 (proceed_one_lwp): Still proceed an LWP that the client has
15595 requested to stop, if we haven't reported it as stopped yet. Make
15596 sure that LWPs the client want stopped, have a pending SIGSTOP.
15598 2010-04-26 Doug Evans <dje@google.com>
15600 * server.c (handle_general_set): Make static.
15602 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
15603 Print received char after testing for error/eof instead of before.
15604 (input_interrupt): Tweak comment.
15606 2010-04-23 Doug Evans <dje@google.com>
15608 * server.c (start_inferior): Print inferior argv if --debug.
15610 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
15612 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
15613 * nto-x86-low.c: Include server.h
15615 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
15617 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
15618 be consistent with other sources of this directory.
15619 (init_registers_amd64): Correct name of source file of this function
15622 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15624 * configure.srv (x86_64-*-mingw*): New configuration for Windows
15625 64-bit executables.
15627 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15629 * win32-i386-low.c: Add 64-bit support.
15630 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
15631 (init_registers_amd64): Declare.
15632 (mappings): Add 64-bit version of array.
15633 (init_windows_x86): New function.
15634 (the_low_target): Change init_arch field to init_windows_x86.
15636 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15638 * win32-low.c: Adapt to support also 64-bit architecture.
15639 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
15640 (get_image_name): Use SIZE_T type for local variable `done'.
15641 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
15642 (toolhelp_get_dll_name): Idem.
15643 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
15644 Use uintptr_t typecast to avoid warning.
15645 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
15646 (handle_exception): Use phex_nz to avoid warning.
15647 (win32_wait): Remove unused local variable `process'.
15649 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
15651 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
15654 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
15656 * configure.ac: Use `ws2_32' library for srv_mingw.
15657 * configure: Regenerate.
15658 * gdbreplay.c: Include winsock2.h instead of winsock.h.
15659 * remote-utils.c: Likewise.
15661 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
15663 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
15664 if __x86_64__ is defined.
15666 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15668 * configure: Regenerate.
15670 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
15672 * server.c (handle_query): Handle 'qGetTIBAddr' query.
15673 * target.h (target_ops): New get_tib_address field.
15674 * win32-low.h (win32_thread_info): Add thread_local_base field.
15675 * win32-low.c (child_add_thread): Add tlb argument.
15676 Set thread_local_base field to TLB.
15677 (get_child_debug_event): Adapt to child_add_thread change.
15678 (win32_get_tib_address): New function.
15679 (win32_target_ops): Set get_tib_address field to
15680 win32_get_tib_address.
15681 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
15683 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15685 * linux-low.c (linux_mourn): Also remove the process.
15686 * server.c (handle_target_event): Don't remove the process here.
15687 * nto-low.c (nto_mourn): New.
15688 (nto_target_ops): Install it.
15689 * spu-low.c (spu_mourn): New.
15690 (spu_target_ops): Install it.
15691 * win32-low.c (win32_mourn): New.
15692 (win32_target_ops): Install it.
15694 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15696 * server.h (buffer_xml_printf): Remove redundant `;'.
15698 2010-04-12 Pedro Alves <pedro@codesourcery.com>
15700 * regcache.c (set_register_cache): Invalidate regcaches before
15701 changing the register cache layout.
15702 (regcache_invalidate_one): Allow a NULL regcache.
15703 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
15704 regcaches before changing the register cache layout or the target
15707 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
15709 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
15710 variable warning on Linux/x86-64.
15712 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15714 GDBserver disconnected tracing support.
15716 * linux-low.c (linux_remove_process): Delete.
15717 (add_lwp): Don't set last_resume_kind here.
15718 (linux_kill): Use `mourn'.
15719 (linux_detach): Use `thread_db_detach', and `mourn'.
15720 (linux_mourn): New.
15721 (linux_attach_lwp_1): Adjust comment.
15722 (linux_attach): last_resume_kind moved the thread_info; adjust.
15723 (status_pending_p_callback): Adjust.
15724 (linux_wait_for_event_1): Adjust.
15725 (count_events_callback, select_singlestep_lwp_callback)
15726 (select_event_lwp_callback, cancel_breakpoints_callback)
15727 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
15728 (proceed_one_lwp): Adjust.
15729 (linux_async): Add debug output.
15730 (linux_thread_stopped): New.
15731 (linux_pause_all): New.
15732 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
15734 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
15735 (thread_db_free): Delete declaration.
15736 (thread_db_detach, thread_db_mourn): Declare.
15737 * thread-db.c (thread_db_init): Use thread_db_mourn.
15738 (thread_db_free): Delete, split in two.
15739 (disable_thread_event_reporting): New.
15740 (thread_db_detach): New.
15741 (thread_db_mourn): New.
15743 * server.h (struct thread_info) <last_resume_kind>: New field.
15744 <attached>: Add comment.
15745 <gdb_detached>: New field.
15746 (handler_func): Change return type to int.
15747 (handle_serial_event, handle_target_event): Ditto.
15748 (gdb_connected): Declare.
15750 (disconnected_tracing): Declare.
15751 (stop_tracing): Declare.
15753 * server.c (handle_query) <qSupported>: Report support for
15754 disconnected tracing.
15755 (queue_stop_reply_callback): Account for running threads.
15756 (gdb_wants_thread_stopped): New.
15757 (gdb_wants_all_threads_stopped): New.
15758 (gdb_reattached_process): New.
15759 (handle_status): Clear the `gdb_detached' flag of all processes.
15760 In all-stop, stop all threads.
15761 (main): Be sure to leave tfind mode. Handle disconnected tracing.
15762 (process_serial_event): If the remote connection breaks, or if an
15763 exit was forced with "monitor exit", force an event loop exit.
15764 Handle disconnected tracing on detach.
15765 (handle_serial_event): Adjust.
15766 (handle_target_event): If GDB isn't connected, forward events back
15767 to the inferior, unless the last process exited, in which case,
15768 exit gdbserver. Adjust interface.
15770 * remote-utils.c (remote_open): Don't block in accept. Instead
15771 register an event loop source on the listen socket file
15772 descriptor. Refactor bits into ...
15773 (listen_desc): ... this new global.
15774 (gdb_connected): ... this new function.
15775 (enable_async_notification): ... this new function.
15776 (handle_accept_event): ... this new function.
15777 (remote_close): Clear remote_desc.
15779 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
15781 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
15783 (mourn_inferior): Define.
15784 (target_process_qsupported): Avoid the dangling else problem.
15785 (thread_stopped): Define.
15786 (pause_all): Define.
15787 (target_waitstatus_to_string): Declare.
15788 * target.c (target_waitstatus_to_string): New.
15790 * tracepoint.c (tracing): Make extern.
15791 (disconnected_tracing): New.
15792 (stop_tracing): Make extern. Handle tracing stops due to GDB
15794 (cmd_qtdisconnected): New.
15795 (cmd_qtstatus): Report disconnected tracing status in trace reply.
15796 (handle_tracepoint_general_set): Handle QTDisconnected.
15798 * event-loop.c (event_handler_func): Change return type to int.
15799 (process_event): Bail out if the event handler wants the event
15801 (handle_file_event): Ditto.
15802 (start_event_loop): Bail out if the event handler wants the event
15805 * nto-low.c (nto_target_ops): Adjust.
15806 * spu-low.c (spu_wait): Don't remove the process here.
15807 (spu_target_ops): Adjust.
15808 * win32-low.c (win32_wait): Don't remove the process here.
15809 (win32_target_ops): Adjust.
15811 2010-04-11 Pedro Alves <pedro@codesourcery.com>
15813 * regcache.c (realloc_register_cache): Invalidate inferior's
15814 regcache before recreating it.
15816 2010-04-09 Pedro Alves <pedro@codesourcery.com>
15818 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
15820 2010-04-09 Stan Shebs <stan@codesourcery.com>
15821 Pedro Alves <pedro@codesourcery.com>
15823 * server.h (LONGEST): New.
15824 (struct thread_info) <while_stepping>: New field.
15825 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
15827 (initialize_tracepoint, handle_tracepoint_general_set)
15828 (handle_tracepoint_query, tracepoint_finished_step)
15829 (tracepoint_was_hit, release_while_stepping_state_list):
15830 (current_traceframe): Declare.
15831 * server.c (handle_general_set): Handle tracepoint packets.
15832 (read_memory): New.
15833 (write_memory): New.
15834 (handle_search_memory_1): Use read_memory.
15835 (handle_query): Report support for conditional tracepoints, trace
15836 state variables, and tracepoint sources. Handle tracepoint
15838 (main): Initialize the tracepoints module.
15839 (process_serial_event): Handle traceframe reads/writes.
15841 * linux-low.c (handle_tracepoints): New.
15842 (linux_wait_1): Call it.
15843 (linux_resume_one_lwp): Handle while-stepping.
15844 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
15845 (linux_target_ops): Install them.
15846 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
15848 * linux-x86-low.c (x86_supports_tracepoints): New.
15849 (the_low_target). Install it.
15851 * mem-break.h (delete_breakpoint): Declare.
15852 * mem-break.c (delete_breakpoint): Make external.
15854 * target.h (struct target_ops): Add `supports_tracepoints',
15855 `read_pc', and `write_pc' fields.
15856 (target_supports_tracepoints): Define.
15857 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
15860 * regcache.h (struct regcache) <registers_owned>: New field.
15861 (init_register_cache, regcache_cpy): Declare.
15862 (regcache_read_pc, regcache_write_pc): Declare.
15863 (register_cache_size): Declare.
15864 (supply_regblock): Declare.
15865 * regcache.c (init_register_cache): New.
15866 (new_register_cache): Use it.
15867 (regcache_cpy): New.
15868 (register_cache_size): New.
15869 (supply_regblock): New.
15870 (regcache_read_pc, regcache_write_pc): New.
15872 * tracepoint.c: New.
15874 * Makefile.in (OBS): Add tracepoint.o.
15875 (tracepoint.o): New rule.
15877 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
15879 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
15881 (i386-mmx.c): Likewise.
15882 (i386-mmx-linux.o): Likewise.
15883 (i386-mmx-linux.c): Likewise.
15885 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
15886 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
15887 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
15888 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
15890 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
15891 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
15892 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
15894 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
15896 * Makefile.in (clean): Updated.
15898 (i386-avx.c): Likewise.
15899 (i386-avx-linux.o): Likewise.
15900 (i386-avx-linux.c): Likewise.
15901 (amd64-avx.o): Likewise.
15902 (amd64-avx.c): Likewise.
15903 (amd64-avx-linux.o): Likewise.
15904 (amd64-avx-linux.c): Likewise.
15906 * configure.srv (srv_i386_regobj): Add i386-avx.o.
15907 (srv_i386_linux_regobj): Add i386-avx-linux.o.
15908 (srv_amd64_regobj): Add amd64-avx.o.
15909 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
15910 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
15911 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
15912 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
15913 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
15914 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
15915 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
15917 * i387-fp.c: Include "i386-xstate.h".
15919 (i387_cache_to_xsave): Likewise.
15920 (i387_xsave_to_cache): Likewise.
15921 (x86_xcr0): Likewise.
15923 * i387-fp.h (i387_cache_to_xsave): Likewise.
15924 (i387_xsave_to_cache): Likewise.
15925 (x86_xcr0): Likewise.
15927 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
15928 * linux-crisv32-low.c (target_regsets): Likewise.
15929 * linux-m68k-low.c (target_regsets): Likewise.
15930 * linux-mips-low.c (target_regsets): Likewise.
15931 * linux-ppc-low.c (target_regsets): Likewise.
15932 * linux-s390-low.c (target_regsets): Likewise.
15933 * linux-sh-low.c (target_regsets): Likewise.
15934 * linux-sparc-low.c (target_regsets): Likewise.
15935 * linux-xtensa-low.c (target_regsets): Likewise.
15937 * linux-low.c: Include <sys/uio.h>.
15938 (regsets_fetch_inferior_registers): Support nt_type.
15939 (regsets_store_inferior_registers): Likewise.
15940 (linux_process_qsupported): New.
15941 (linux_target_ops): Add linux_process_qsupported.
15943 * linux-low.h (regset_info): Add nt_type.
15944 (linux_target_ops): Add process_qsupported.
15946 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
15948 (init_registers_i386_avx_linux): New.
15949 (init_registers_amd64_avx_linux): Likewise.
15950 (xmltarget_i386_linux_no_xml): Likewise.
15951 (xmltarget_amd64_linux_no_xml): Likewise.
15952 (PTRACE_GETREGSET): Likewise.
15953 (PTRACE_SETREGSET): Likewise.
15954 (x86_fill_xstateregset): Likewise.
15955 (x86_store_xstateregset): Likewise.
15956 (use_xml): Likewise.
15957 (x86_linux_update_xmltarget): Likewise.
15958 (x86_linux_process_qsupported): Likewise.
15959 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
15960 (x86_arch_setup): Don't call init_registers_amd64_linux nor
15961 init_registers_i386_linux here. Call
15962 x86_linux_update_xmltarget.
15963 (the_low_target): Add x86_linux_process_qsupported.
15965 * server.c (handle_query): Call target_process_qsupported.
15967 * target.h (target_ops): Add process_qsupported.
15968 (target_process_qsupported): New.
15970 2010-04-03 Pedro Alves <pedro@codesourcery.com>
15972 * inferiors.c (add_thread): Set last_status kind to
15973 TARGET_WAITKIND_IGNORE.
15974 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
15975 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
15976 (linux_wait_1): Move `thread' local definition to block that uses
15977 it. Don't NULL initialize `event_child'.
15978 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
15979 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
15980 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
15982 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15984 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
15985 an extended waitstatus, or by a watchpoint.
15986 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
15987 thread was stepping or has been stopped by a watchpoint.
15989 2010-04-01 Pedro Alves <pedro@codesourcery.com>
15991 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
15992 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
15993 of another, then delete the previous, and validate all
15995 (validate_inserted_breakpoint): New.
15996 (delete_disabled_breakpoints): New.
15997 (validate_breakpoints): New.
15998 (check_mem_read): Validate breakpoints before trusting their
15999 shadow. Delete disabled breakpoints.
16000 (check_mem_write): Validate breakpoints before trusting they
16001 should be inserted. Delete disabled breakpoints.
16002 * mem-break.h (validate_breakpoints):
16003 * server.c (handle_query): Validate breakpoints when we see a
16006 2010-04-01 Pedro Alves <pedro@codesourcery.com>
16008 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
16009 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
16010 if we could tell there's a GDB breakpoint at stop_pc.
16011 (need_step_over_p): Don't do a step over if we find a GDB
16012 breakpoint at the resume PC.
16014 * mem-break.c (struct raw_breakpoint): New.
16015 (enum bkpt_type): New type `gdb_breakpoint'.
16016 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
16017 fields. New field `raw'.
16018 (find_raw_breakpoint_at): New.
16019 (set_raw_breakpoint_at): Handle refcounting. Create a raw
16020 breakpoint instead.
16021 (set_breakpoint_at): Adjust.
16022 (delete_raw_breakpoint): New.
16023 (release_breakpoint): New.
16024 (delete_breakpoint): Rename to...
16025 (delete_breakpoint_1): ... this. Add proc parameter. Use
16026 release_breakpoint. Return ENOENT.
16027 (delete_breakpoint): Reimplement.
16028 (find_breakpoint_at): Delete.
16029 (find_gdb_breakpoint_at): New.
16030 (delete_breakpoint_at): Delete.
16031 (set_gdb_breakpoint_at): New.
16032 (delete_gdb_breakpoint_at): New.
16033 (gdb_breakpoint_here): New.
16034 (set_reinsert_breakpoint): Use release_breakpoint.
16035 (uninsert_breakpoint): Rename to ...
16036 (uninsert_raw_breakpoint): ... this.
16037 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
16038 (reinsert_raw_breakpoint): Change parameter type to
16040 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
16042 (check_breakpoints): Adjust. Use release_breakpoint.
16043 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
16044 (breakpoint_inserted_here): Ditto.
16045 (check_mem_read): Adjust to iterate over raw breakpoints instead.
16046 Don't trust the breakpoint's shadow if it is not inserted.
16047 (check_mem_write): Adjust to iterate over raw breakpoints instead.
16048 (delete_all_breakpoints): Adjust.
16049 (free_all_breakpoints): Mark all breakpoints as uninserted, and
16050 use delete_breakpoint_1.
16052 * mem-break.h (breakpoints_supported): Delete declaration.
16053 (set_gdb_breakpoint_at): Declare.
16054 (gdb_breakpoint_here): Declare.
16055 (delete_breakpoint_at): Delete.
16056 (delete_gdb_breakpoint_at): Declare.
16058 * server.h (struct raw_breakpoint): Forward declare.
16059 (struct process_info): New field `raw_breakpoints'.
16061 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
16064 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16066 * linux-low.c (status_pending_p_callback): Fix comment.
16067 (linux_wait_for_event_1): Move most of the internal breakpoint
16068 handling from here...
16069 (linux_wait_1): ... to here.
16070 (count_events_callback): New.
16071 (select_singlestep_lwp_callback): New.
16072 (select_event_lwp_callback): New.
16073 (cancel_breakpoints_callback): New.
16074 (select_event_lwp): New.
16075 (linux_wait_1): Simplify internal breakpoint handling. Give equal
16076 priority to all LWPs that have had events that should be reported
16077 to the client. Cancel breakpoints when about to reporting the
16078 event to the client, not while stopping lwps. No longer cancel
16079 finished single-steps here.
16080 (cancel_finished_single_step): Delete.
16081 (cancel_finished_single_steps): Delete.
16083 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16085 * mem-break.c (enum bkpt_type): New.
16086 (struct breakpoint): New field `type'.
16087 (set_breakpoint_at): Change return type to struct breakpoint
16088 pointer. Set type to `other_breakpoint' by default.
16089 (delete_breakpoint): Rewrite, supporting more than one breakpoint
16090 in the breakpoint list.
16091 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
16092 (reinsert_breakpoint): Rename to ...
16093 (reinsert_raw_breakpoint): ... this.
16094 (reinsert_breakpoints_at): Adjust.
16095 * mem-break.h (struct breakpoint): Declare.
16096 (set_breakpoint_at): Change return type to struct breakpoint
16099 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16101 * server.c (handle_query): Assign, not compare.
16103 2010-03-24 Pedro Alves <pedro@codesourcery.com>
16105 Teach linux gdbserver to step-over-breakpoints.
16107 * linux-low.c (can_hardware_single_step): New.
16108 (supports_breakpoints): New.
16109 (handle_extended_wait): If stopping threads, read the stop pc of
16110 the new cloned LWP.
16112 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
16113 low target doesn't support retrieving the PC.
16114 (add_lwp): Set last_resume_kind to resume_continue.
16115 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
16116 (linux_attach): Don't clear stop_expected. Set the lwp's
16117 last_resume_kind to resume_stop.
16118 (linux_detach_one_lwp): Don't check for removed breakpoints.
16119 (check_removed_breakpoint): Delete.
16120 (status_pending_p): Rename to ...
16121 (status_pending_p_callback): ... this. Don't check for removed
16122 breakpoints. Don't consider threads that are stopped from GDB's
16124 (linux_wait_for_lwp): Always read the stop_pc here.
16125 (cancel_breakpoint): New.
16126 (step_over_bkpt): New global.
16127 (linux_wait_for_event_1): Implement stepping over breakpoints.
16128 (gdb_wants_lwp_stopped): New.
16129 (gdb_wants_all_stopped): New.
16130 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
16131 single-step traps here. Store the thread's last reported target
16133 (send_sigstop): Don't clear stop_expected. Always set it,
16135 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
16136 (cancel_finished_single_step): New.
16137 (cancel_finished_single_steps): New.
16138 (wait_for_sigstop): Don't cancel finished single-step traps here.
16139 (linux_resume_one_lwp): Don't check for removed breakpoints.
16140 Don't set `step' on non-hardware step archs.
16141 (linux_set_resume_request): Ignore resume_stop requests if already
16142 stopping or stopped. Set the lwp's last_resume_kind.
16143 (resume_status_pending_p): Don't check for removed breakpoints.
16144 (need_step_over_p): New.
16145 (start_step_over): New.
16146 (finish_step_over): New.
16147 (linux_resume_one_thread): Always queue a sigstop for resume_stop
16148 requests. Clear the thread's last reported target waitstatus.
16149 Don't use the `suspended' flag. Don't consider pending breakpoints.
16150 (linux_resume): Start a step-over if necessary.
16151 (proceed_one_lwp): New.
16152 (proceed_all_lwps): New.
16153 (unstop_all_lwps): New.
16154 * linux-low.h (struct lwp_info): Rewrite comment for the
16155 `suspended' flag. Add the `stop_pc' field. Delete the
16156 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
16157 Add `'last_resume_kind' and `need_step_over' fields.
16158 * inferiors.c (struct thread_info): Delete, moved elsewhere.
16159 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
16160 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
16161 (set_raw_breakpoint_at): New.
16162 (set_breakpoint_at): Rewrite to use it.
16163 (reinsert_breakpoint_handler): Delete.
16164 (set_reinsert_breakpoint): New.
16165 (reinsert_breakpoint_by_bp): Delete.
16166 (delete_reinsert_breakpoints): New.
16167 (uninsert_breakpoint): Rewrite.
16168 (uninsert_breakpoints_at): New.
16169 (reinsert_breakpoint): Rewrite.
16170 (reinsert_breakpoints_at): New.
16171 (check_breakpoints): Rewrite.
16172 (breakpoint_here): New.
16173 (breakpoint_inserted_here): New.
16174 (check_mem_read): Adjust.
16175 * mem-break.h (breakpoints_supported, breakpoint_here)
16176 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
16177 (reinsert_breakpoint_by_bp): Delete declaration.
16178 (delete_reinsert_breakpoints): Declare.
16179 (reinsert_breakpoint): Delete declaration.
16180 (reinsert_breakpoints_at): Declare.
16181 (uninsert_breakpoint): Delete declaration.
16182 (uninsert_breakpoints_at): Declare.
16183 (check_breakpoints): Adjust prototype.
16184 * server.h: Adjust include order.
16185 (struct thread_info): Declare here. Add a `last_status' field.
16187 2010-03-23 Michael Snyder <msnyder@vmware.com>
16189 * server.c (crc32): New function.
16190 (handle_query): Add handling for 'qCRC:' request.
16192 2010-03-23 Pedro Alves <pedro@codesourcery.com>
16194 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
16195 lwp had been stopped by a watchpoint.
16197 2010-03-16 Pedro Alves <pedro@codesourcery.com>
16199 * server.h (internal_error): Declare.
16200 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
16201 * utils.c (internal_error): New function.
16203 2010-03-15 Andreas Schwab <schwab@redhat.com>
16205 * configure.srv: Fix typo setting srv_regobj.
16207 2010-03-15 Pedro Alves <pedro@codesourcery.com>
16209 * linux-low.c (fetch_register): Avoid passing a non string literal
16211 (usr_store_inferior_registers): Ditto.
16213 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16215 * linux-low.c (linux_write_memory): Bail out early if peeking
16218 2010-03-14 Pedro Alves <pedro@codesourcery.com>
16220 * linux-low.h (struct lwp_info): New fields
16221 `stopped_by_watchpoint' and `stopped_data_address'.
16222 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
16223 here, and cache them in the lwp object.
16224 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
16226 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
16228 (linux_stopped_by_watchpoint): Rewrite.
16229 (linux_stopped_data_address): Rewrite.
16231 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
16233 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
16234 switching the current inferior, not before.
16236 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
16238 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
16239 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
16240 i386-linux.c and amd64-linux.c.
16241 (reg-i386.o): Removed.
16242 (reg-i386.c): Likewise.
16243 (reg-i386-linux.o): Likewise.
16244 (reg-i386-linux.c): Likewise.
16245 (reg-x86-64.o): Likewise.
16246 (reg-x86-64.c): Likewise.
16247 (reg-x86-64-linux.o): Likewise.
16248 (reg-x86-64-linux.c): Likewise.
16250 (i386.c): Likewise.
16251 (i386-linux.o): Likewise.
16252 (i386-linux.c): Likewise.
16253 (amd64.o): Likewise.
16254 (amd64.c): Likewise.
16255 (amd64-linux.o): Likewise.
16256 (amd64-linux.c): Likewise.
16258 * configure.srv (srv_i386_regobj): New.
16259 (srv_i386_linux_regobj): Likewise.
16260 (srv_amd64_regobj): Likewise.
16261 (srv_amd64_linux_regobj): Likewise.
16262 (srv_i386_32bit_xmlfiles): Likewise.
16263 (srv_i386_64bit_xmlfiles): Likewise.
16264 (srv_i386_xmlfiles): Likewise.
16265 (srv_amd64_xmlfiles): Likewise.
16266 (srv_i386_linux_xmlfiles): Likewise.
16267 (srv_amd64_linux_xmlfiles): Likewise.
16268 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
16269 srv_xmlfiles to $srv_i386_xmlfiles.
16270 (i[34567]86-*-mingw32ce*): Likewise.
16271 (i[34567]86-*-mingw*): Likewise.
16272 (i[34567]86-*-nto*): Likewise.
16273 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
16274 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
16275 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
16276 (x86_64-*-linux*): Likewise.
16278 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
16279 (init_registers_amd64_linux): New.
16280 (x86_arch_setup): Replace init_registers_x86_64_linux with
16281 init_registers_amd64_linux.
16283 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
16285 * configure.ac: Check for libdl. If it is not available link against
16286 static libthread_db.
16287 * configure: Regenerate.
16289 2010-02-22 Pedro Alves <pedro@codesourcery.com>
16293 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
16294 handing a read watchpoint.
16295 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
16297 2010-02-12 Doug Evans <dje@google.com>
16299 * linux-low.c (linux_supports_tracefork_flag): Document.
16300 (linux_look_up_symbols): Add comment.
16302 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
16304 * regcache.c (supply_register): Clear regcache if buf is NULL.
16306 2010-02-02 Nicolas Roche <roche@sourceware.org>
16307 Joel Brobecker <brobecker@adacore.com>
16309 * inferiors.c (find_inferior): Add function documentation.
16310 (unloaded_dll): Handle the case where the unloaded dll has not
16311 been previously registered in the dll list.
16313 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
16315 * linux-arm-low.c (thumb_breakpoint_len): Delete.
16316 (thumb2_breakpoint): New.
16317 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
16319 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16321 * linux-low.c (get_stop_pc): Check for SIGTRAP.
16322 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
16325 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16327 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
16329 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
16331 * linux-s390-low.c (s390_collect_ptrace_register)
16332 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
16334 2010-01-21 Doug Evans <dje@google.com>
16336 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
16337 (PTRACE_ARG4_TYPE): New macro.
16338 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
16339 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
16340 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
16341 (usr_store_inferior_registers): Ditto.
16342 (linux_read_memory, linux_write_memory): Ditto.
16343 (linux_test_for_tracefork): Ditto.
16345 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
16346 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
16348 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16350 * proc-service.c (ps_lgetregs): Don't refetch registers from the
16353 2010-01-21 Pedro Alves <pedro@codesourcery.com>
16355 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
16356 prototype to take a regcache. Adjust.
16358 2010-01-20 Pedro Alves <pedro@codesourcery.com>
16360 * regcache.h (struct thread_info): Forward declare.
16361 (struct regcache): New.
16362 (new_register_cache): Adjust prototype.
16363 (get_thread_regcache): Declare.
16364 (free_register_cache): Adjust prototype.
16365 (registers_to_string, registers_from_string): Ditto.
16366 (supply_register, supply_register_by_name, collect_register)
16367 (collect_register_as_string, collect_register_by_name): Ditto.
16368 * regcache.c (struct inferior_regcache_data): Delete.
16369 (get_regcache): Rename to ...
16370 (get_thread_regcache): ... this. Adjust. Switch inferior before
16371 fetching registers.
16372 (regcache_invalidate_one): Adjust.
16373 (regcache_invalidate): Fix prototype.
16374 (new_register_cache): Return the new register cache.
16375 (free_register_cache): Change prototype.
16376 (realloc_register_cache): Adjust.
16377 (registers_to_string): Change prototype to take a regcache. Adjust.
16378 (registers_from_string): Ditto.
16379 (register_data): Ditto.
16380 (supply_register): Ditto.
16381 (supply_register_by_name): Ditto.
16382 (collect_register): Ditto.
16383 (collect_register_as_string): Ditto.
16384 (collect_register_by_name): Ditto.
16385 * server.c (process_serial_event): Adjust.
16386 * linux-low.h (regset_fill_func, regset_store_func): Change
16388 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
16390 * linux-low.c (get_stop_pc): Adjust.
16391 (check_removed_breakpoint): Adjust.
16392 (linux_wait_for_event): Adjust.
16393 (linux_resume_one_lwp): Adjust.
16394 (fetch_register): Add regcache parameter. Adjust.
16395 (usr_store_inferior_registers): Ditto.
16396 (regsets_fetch_inferior_registers): Ditto.
16397 (regsets_store_inferior_registers): Ditto.
16398 (linux_fetch_registers, linux_store_registers): Ditto.
16399 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
16401 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
16403 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
16404 prototype to take a regcache.
16405 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
16406 * remote-utils.c (convert_ascii_to_int, outreg)
16407 (prepare_resume_reply): Change prototype to take a regcache.
16409 * target.h (struct target_ops) <fetch_registers, store_registers>:
16410 Change prototype to take a regcache.
16411 (fetch_inferior_registers, store_inferior_registers): Change
16412 prototype to take a regcache. Adjust.
16413 * proc-service.c (ps_lgetregs): Adjust.
16414 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
16415 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
16416 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
16417 take a regcache. Adjust.
16418 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
16419 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
16420 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
16421 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
16422 * linux-cris-low.c (cris_get_pc, cris_set_pc)
16423 (cris_cannot_fetch_register):
16424 (cris_breakpoint_at): Change prototype to take a regcache.
16426 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
16427 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
16428 to take a regcache. Adjust.
16429 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
16431 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
16432 take a regcache. Adjust.
16433 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
16434 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
16435 (m68k_set_pc): Change prototype to take a regcache. Adjust.
16436 * linux-mips-low.c (mips_get_pc):
16437 (mips_set_pc): Change prototype to take a regcache. Adjust.
16438 (mips_reinsert_addr): Adjust.
16439 (mips_collect_register): Change prototype to take a regcache.
16441 (mips_supply_register):
16442 (mips_collect_register_32bit, mips_supply_register_32bit)
16443 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
16444 (mips_store_fpregset): Ditto.
16445 * linux-ppc-low.c (ppc_supply_ptrace_register)
16446 (ppc_supply_ptrace_register): Ditto.
16447 (parse_spufs_run): Adjust.
16448 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
16449 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
16450 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
16451 take a regcache. Adjust.
16452 * linux-s390-low.c (s390_collect_ptrace_register)
16453 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
16454 (s390_set_pc): Change prototype to take a regcache. Adjust.
16455 (s390_arch_setup): Adjust.
16456 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
16457 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
16458 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
16459 (sparc_fill_gregset, sparc_store_gregset_from_stack)
16460 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
16462 (sparc_breakpoint_at): Adjust.
16463 * linux-xtensa-low.c (xtensa_fill_gregset):
16464 (xtensa_store_gregset):
16465 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
16466 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
16467 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
16468 prototype to take a regcache. Adjust.
16469 * win32-arm-low.c (arm_fetch_inferior_register)
16470 (arm_store_inferior_register): Change prototype to take a
16472 * win32-i386-low.c (i386_fetch_inferior_register)
16473 (i386_store_inferior_register): Change prototype to take a
16475 * win32-low.c (child_fetch_inferior_registers)
16476 (child_store_inferior_registers): Change prototype to take a
16478 (win32_wait): Adjust.
16479 (win32_fetch_inferior_registers): Change prototype to take a
16481 (win32_store_inferior_registers): Adjust.
16482 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
16483 store_inferior_register>: Change prototype to take a regcache.
16485 2010-01-20 Doug Evans <dje@google.com>
16487 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
16489 (linux_wait_for_event1, linux_init_signals): Ditto.
16490 (W_STOPCODE): Provide definition if missing.
16492 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
16494 * linux-low.c (linux_core_of_thread): New.
16495 (compare_ints, show_process, list_threads): New.
16496 (linux_qxfer_osdata): Report threads and cores.
16497 (linux_target_op): Register linux_core_of_thread.
16498 * remote-utils.c (prepare_resume_reply): Report the core.
16499 (buffer_xml_printf): Support %d specifier.
16500 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
16502 (handle_query): Handle qXfer:threads. Announce availability
16504 * target.h (struct target_ops): New field core_of_thread.
16506 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
16508 * Makefile.in (clean): Remove new generated files.
16509 (reg-s390.o, reg-s390.c): Remove rules.
16510 (reg-s390x.o, reg-s390x.c): Likewise.
16511 (s390-linux32.o, s390-linux32.c): Add rules.
16512 (s390-linux64.o, s390-linux64.c): Likewise.
16513 (s390x-linux64.o, s390x-linux64.c): Likewise.
16514 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
16515 * linux-s390-low.c: Include <elf.h>.
16516 (HWCAP_S390_HIGH_GPRS): Define if undefined.
16517 (init_registers_s390): Remove prototype.
16518 (init_registers_s390x): Likewise.
16519 (init_registers_s390_linux32): Add prototype.
16520 (init_registers_s390_linux64): Likewise.
16521 (init_registers_s390x_linux64): Likewise.
16522 (s390_num_regs_3264): New define.
16523 (s390_regmap_3264): New global variable.
16524 (s390_cannot_fetch_register): Remove obsolete check.
16525 (s390_cannot_store_register): Likewise.
16526 (s390_collect_ptrace_register): Handle upper/lower register halves.
16527 (s390_supply_ptrace_register): Likewise.
16528 (s390_fill_gregset): Update to register number changes.
16529 (s390_get_hwcap): New routine.
16530 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
16531 Install appropriate regmap and register set.
16533 2010-01-01 Joel Brobecker <brobecker@adacore.com>
16535 * server.c (gdbserver_version): Update copyright year to 2010.
16536 * gdbreplay.c (gdbreplay_version): Likewise.
16538 2009-12-28 Doug Evans <dje@google.com>
16540 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
16541 elf/external.h. Include <elf.h> instead but only if necessary.
16543 2009-12-28 Pedro Alves <pedro@codesourcery.com>
16545 * linux-low.c (linux_remove_process): Remove `detaching'
16546 parameter. Don't release/detach from thread_db here.
16547 (linux_kill): Release/detach from thread_db here, ...
16548 (linux_detach): ... and here, before actually detaching.
16549 (linux_wait_1): ... and here, when a process exits.
16550 * thread-db.c (any_thread_of): New.
16551 (thread_db_free): Switch the current inferior to a thread of the
16554 2009-12-21 Doug Evans <dje@google.com>
16556 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
16558 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
16559 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
16560 warning ifndef __NR_tkill. Move setting of errno there too.
16561 Delete unnecessary resetting of errno after syscall.
16562 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
16564 * configure.ac: Check for dladdr.
16565 * config.in: Regenerate.
16566 * configure: Regenerate.
16567 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
16568 (try_thread_db_load): Update.
16570 * linux-low.c (my_waitpid): Delete unnecessary prototype.
16572 2009-12-18 Doug Evans <dje@google.com>
16574 * event-loop.c: Include unistd.h if it exists.
16576 * linux-low.c (my_waitpid): Move definition away from being in
16577 between linux_tracefork_child/linux_test_for_tracefork.
16579 * gdb_proc_service.h (psaddr_t): Fix type.
16580 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
16581 signature to match glibc.
16583 2009-12-16 Doug Evans <dje@google.com>
16585 * linux-low.c (linux_read_memory): Fix argument to read.
16587 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16589 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
16590 events, don't leave current_inferior pointing at null.
16592 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16594 * win32-low.c (LOG): Delete.
16595 (OUTMSG): Output to stderr.
16596 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
16597 on compile time LOG macro.
16598 (win32_wait): Fix debug output.
16600 2009-11-26 Pedro Alves <pedro@codesourcery.com>
16602 * win32-low.c (win32_add_one_solib): If the dll name is
16603 "ntdll.dll", prepend the system directory to the dll path.
16605 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
16607 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
16609 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
16610 Vladimir Prus <vladimir@codesourcery.com>
16612 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
16613 * configure.ac: Check for __mcoldfire__ and set
16614 gdb_cv_m68k_is_coldfire.
16615 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
16616 reg-cf.o and reg-m68k.o.
16617 * configure: Regenerated.
16619 2009-11-16 Pedro Alves <pedro@codesourcery.com>
16621 * linux-low.c (linux_remove_process): Add `detaching' parameter.
16622 Pass it to thread_db_free.
16623 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
16624 proper `detaching' argument to linux_remove_process.
16625 * linux-low.h (thread_db_free): Add `detaching' parameter.
16626 * thread-db.c (thread_db_init): Pass false as `detaching' argument
16628 (thread_db_free): Add `detaching' parameter. Only
16629 call td_ta_clear_event if detaching from process.
16631 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
16633 * thread-db.c (thread_db_free): Fix typo.
16635 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
16638 * thread-db.c (thread_db_free): Call td_ta_clear_event.
16640 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
16642 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
16643 with an i686 compiler.
16644 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
16646 * configure: Rebuilt.
16648 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
16652 * server.c (handle_search_memory_1): Correct read_addr initialization
16653 in loop for searching subsequent chunks.
16655 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
16657 * configure.ac: New --with-libthread-db option.
16658 * thread-db.c: Allow direct dependence on libthread_db.
16659 (thread_db_free): Adjust.
16660 * config.in: Regenerate.
16661 * configure: Likewise.
16663 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
16666 * thread-db.c (attach_thread): New function.
16667 (maybe_attach_thread): Return success/failure.
16668 (find_new_threads_callback): Adjust.
16669 (thread_db_find_new_threads): Loop until no new threads.
16671 2009-10-13 Pedro Alves <pedro@codesourcery.com>
16673 * proc-service.c (ps_lgetregs): Formatting.
16675 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
16677 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
16678 * configure.ac: Adjust.
16679 * linux-low.h (struct process_info_private): Move members to struct
16681 (thread_db_free, thread_db_handle_monitor_command): New prototype.
16682 * linux-low.c (linux_remove_process): Adjust.
16683 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
16684 * server.c (handle_query): Move code ...
16685 (handle_monitor_command): ... here. New function.
16686 * target.h (struct target_ops): New member.
16687 * thread-db.c (struct thread_db): New.
16688 (libthread_db_search_path): New variable.
16689 (thread_db_create_event, thread_db_enable_reporting)
16690 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
16691 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
16692 (try_thread_db_load_1, dladdr_to_soname): New functions.
16693 (try_thread_db_load, thread_db_load_search): New functions.
16694 (thread_db_init): Search for libthread_db.
16695 (thread_db_free): New function.
16696 (thread_db_handle_monitor_command): Likewise.
16697 * config.in: Regenerate.
16698 * configure: Regenerate.
16700 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
16702 * spu-low.c (spu_kill): Wait for inferior to terminate.
16703 Call clear_inferiors.
16704 (spu_detach): Call clear_inferiors.
16706 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16708 * aclocal.m4: Regenerate.
16709 * config.in: Likewise.
16710 * configure: Likewise.
16712 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16714 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
16715 (parse_spufs_run): New function.
16716 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
16717 (ppc_breakpoint_at): Handle SPU breakpoints.
16719 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16721 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
16722 (SPUFS_MAGIC): Define.
16723 (spu_enumerate_spu_ids): New function.
16724 (linux_qxfer_spu): New function.
16725 (linux_target_ops): Install linux_qxfer_spu.
16727 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
16729 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
16730 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
16731 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
16732 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
16733 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
16734 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
16735 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
16736 (init_registers_powerpc_cell32l): Add prototype.
16737 (init_registers_powerpc_cell64l): Likewise.
16738 (ppc_arch_setup): Detect Cell/B.E. architecture.
16740 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16742 * Makefile.in (datarootdir): New variable.
16744 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16746 * linux-low.c (linux_write_memory): Update debugging output.
16747 * Makefile.in (clean): Add new descriptions.
16748 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
16749 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
16750 * configure.srv: Add new files for arm*-*-linux*.
16751 * linux-arm-low.c: Add new declarations.
16752 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
16753 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
16754 (HWCAP_VFPv3D16): New.
16755 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
16756 instead of __IWMMXT__.
16757 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
16758 (arm_arch_setup): New.
16759 (target_regsets): Remove #ifdef. Add VFP regset.
16760 (the_low_target): Use arm_arch_setup.
16762 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
16764 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
16765 the main thread again.
16767 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
16769 Adding Neutrino gdbserver.
16770 * configure: Regenerated.
16771 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
16772 * configure.srv (i[34567]86-*-nto*): New target.
16773 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
16774 * remote-utils.c [__QNX__]: Include sys/iomgr.h
16775 (nto_comctrl) [__QNX__]: New function.
16776 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
16778 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
16780 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
16783 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
16784 Pedro Alves <pedro@codesourcery.com>
16786 * win32-i386-low.c (i386_get_thread_context): Handle systems that
16787 don't support CONTEXT_EXTENDED_REGISTERS.
16788 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
16789 (the_low_target): Install them.
16790 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
16791 failing with ERROR_PIPE_NOT_CONNECTED.
16793 2009-06-30 Doug Evans <dje@google.com>
16794 Pierre Muller <muller@ics.u-strasbg.fr>
16796 Add h/w watchpoint support to x86-linux, win32-i386.
16797 * Makefile.in (SFILES): Add i386-low.c
16798 (i386_low_h): Define.
16799 (i386-low.o): Add dependencies.
16800 (linux-x86-low.o): Add i386-low.h dependency.
16801 (win32-i386-low.o): Ditto.
16802 * i386-low.c: New file.
16803 * i386-low.h: New file.
16804 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
16805 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
16806 * linux-low.c (linux_add_process): Initialize arch_private.
16807 (linux_remove_process): Free arch_private.
16808 (add_lwp): Initialize arch_private.
16809 (delete_lwp): Free arch_private.
16810 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
16812 * linux-low.h (process_info_private): New member arch_private.
16813 (lwp_info): New member arch_private.
16814 (linux_target_ops): New members new_process, new_thread,
16816 (ptid_of): New macro.
16817 * linux-x86-low.c: Include stddef.h, i386-low.h.
16818 (arch_process_info): New struct.
16819 (arch_lwp_info): New struct.
16820 (x86_linux_dr_get, x86_linux_dr_set): New functions.
16821 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16822 (i386_dr_low_get_status): New function.
16823 (x86_insert_point, x86_remove_point): New functions.
16824 (x86_stopped_by_watchpoint): New function.
16825 (x86_stopped_data_address): New function.
16826 (x86_linux_new_process, x86_linux_new_thread): New functions.
16827 (x86_linux_prepare_to_resume): New function.
16828 (the_low_target): Add entries for insert_point, remove_point,
16829 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
16831 * server.c (debug_hw_points): New global.
16832 (monitor_show_help): Document set debug-hw-points.
16833 (handle_query): Process "set debug-hw-points".
16834 * server.h (debug_hw_points): Declare.
16835 (paddress): Declare.
16836 * utils.c (NUMCELLS, CELLSIZE): New macros.
16837 (get_sell, xsnprintf, paddress): New functions.
16838 * win32-arm-low.c (the_low_target): Add entries for insert_point,
16839 remove_point, stopped_by_watchpoint, stopped_data_address.
16840 * win32-i386-low.c: Include i386-low.h.
16841 (debug_reg_state): Replaces dr.
16842 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
16843 (i386_dr_low_get_status): New function.
16844 (i386_insert_point, i386_remove_point): New functions.
16845 (i386_stopped_by_watchpoint): New function.
16846 (i386_stopped_data_address): New function.
16847 (i386_initial_stuff): Update.
16848 (get_thread_context,set_thread_context,i386_thread_added): Update.
16849 (the_low_target): Add entries for insert_point,
16850 remove_point, stopped_by_watchpoint, stopped_data_address.
16851 * win32-low.c (win32_insert_watchpoint): New function.
16852 (win32_remove_watchpoint): New function.
16853 (win32_stopped_by_watchpoint): New function.
16854 (win32_stopped_data_address): New function.
16855 (win32_target_ops): Add entries for insert_watchpoint,
16856 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
16857 * win32-low.h (win32_target_ops): New members insert_point,
16858 remove_point, stopped_by_watchpoint, stopped_data_address.
16860 2009-06-25 Pedro Alves <pedro@codesourcery.com>
16862 * server.c (process_serial_event): Re-return unsupported, not
16863 error, if the type isn't recognized. Re-allow supporting only
16864 insert or remove packets. Also call require_running for
16865 breakpoints. Add missing break statement to default case. Tidy.
16866 * target.h (struct target_ops): Rename insert_watchpoint to
16867 insert_point, and remove_watchpoint to remove_point.
16869 * linux-low.h (struct linux_target_ops): Likewise.
16870 * linux-low.c (linux_insert_watchpoint): Rename to ...
16871 (linux_insert_point): ... this. Adjust.
16872 (linux_remove_watchpoint): Rename to ...
16873 (linux_remove_point): ... this. Adjust.
16874 (linux_target_ops): Adjust.
16875 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
16876 (cris_insert_point): ... this.
16877 (cris_remove_watchpoint): Rename to ...
16878 (cris_remove_point): ... this.
16879 (the_low_target): Adjust.
16881 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
16883 * server.c (handle_v_kill): Pass signal_pid to
16884 kill_inferior if multi_process is zero.
16886 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
16888 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
16889 * target.h (target_ops): Comment for *_watchpoint to make it clear
16890 the functions can get types '0' and '1'.
16892 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
16894 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
16895 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
16896 * regcache.c (get_regcache): Likewise.
16897 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
16898 * win32-low.c (child_fetch_inferior_registers): Remove check for
16901 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
16902 Pedro Alves <pedro@codesourcery.com>
16904 * target.h (struct target_ops) <supports_multi_process>: New
16906 (target_supports_multi_process): New.
16907 * server.c (handle_query): Even if GDB reports support, only
16908 enable multi-process if the target also supports it. Report
16909 multi-process support only if the target backend supports it.
16910 * linux-low.c (linux_supports_multi_process): New function.
16911 (linux_target_ops): Install it as target_supports_multi_process
16914 2009-05-24 Doug Evans <dje@google.com>
16916 Global renaming of find_thread_pid to find_thread_ptid.
16917 * server.h (find_thread_ptid): Renamed from find_thread_pid.
16918 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
16919 All callers updated.
16921 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
16922 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
16925 * linux-low.c (get_stop_pc): Print pc if debug_threads.
16926 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
16927 (linux_resume_one_lwp): Ditto.
16929 2009-05-23 Doug Evans <dje@google.com>
16931 * linux-low.c (linux_resume_one_lwp): Change type of first arg
16932 from struct inferior_list_entry * to struct lwp_info *.
16933 All callers updated.
16935 2009-05-13 Doug Evans <dje@google.com>
16937 * linux-x86-low.c: Don't include assert.h.
16938 (x86_siginfo_fixup): Use fatal, not assert.
16939 (x86_arch_setup): Fix comment.
16941 2009-05-12 Doug Evans <dje@google.com>
16943 Biarch support for i386/amd64 gdbserver.
16944 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
16945 Add linux-x86-low.c.
16946 (linux-i386-low.o, linux-x86-64-low.o): Delete.
16947 (linux-x86-low.o): Add.
16948 * linux-x86-64-low.c: Delete.
16949 * linux-i386-low.c: Delete.
16950 * linux-x86-low.c: New file.
16951 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
16953 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
16955 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
16956 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
16957 (linux_child_pid_to_exec_file): New function.
16958 (elf_64_header_p, elf_64_file_p): New functions.
16959 (siginfo_fixup): New function.
16960 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
16961 give target a chance to convert layout.
16962 * linux-low.h (linux_target_ops): New member siginfo_fixup.
16963 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
16965 2009-05-07 Doug Evans <dje@google.com>
16967 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
16968 (regsets_store_inferior_registers): Ditto.
16970 2009-05-06 Pedro Alves <pedro@codesourcery.com>
16974 * linux-low.c (must_set_ptrace_flags): Delete.
16975 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
16977 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
16978 `lwp->must_set_ptrace_flags' instead.
16979 (linux_wait_for_event_1): Set ptrace options here.
16980 (linux_wait_1): ... not here.
16982 2009-04-30 Doug Evans <dje@google.com>
16984 * inferiors.c (started_inferior_callback): New function.
16985 (attached_inferior_callback): New function.
16986 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
16987 * server.c (print_started_pid, print_attached_pid): New functions.
16988 (detach_or_kill_for_exit): New function.
16989 (main): Call it instead of for_each_inferior (kill_inferior_callback).
16990 * server.h (have_started_inferiors_p): Declare.
16991 (have_attached_inferiors_p): Declare.
16993 * inferiors.c (remove_process): Fix memory leak, free process.
16994 * linux-low.c (linux_remove_process): New function.
16995 (linux_kill): Call it instead of remove_process.
16996 (linux_detach, linux_wait_1): Ditto.
16998 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
17000 * configure.srv: Add x86 Windows CE target.
17002 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17004 * inferiors.c (get_thread_process): Make global.
17005 * server.h (get_thread_process): Add prototype.
17006 * thread-db.c (find_one_thread): Use get_thread_process
17007 instead of current_process.
17008 (thread_db_get_tls_address): Do not crash if called when
17009 thread layer is not yet initialized.
17011 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
17013 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
17014 * spu-low.c (current_tid): Rename to ...
17015 (current_ptid): ... this.
17016 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
17017 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
17018 ptid_get_lwp (current_ptid) instead of current_tid.
17019 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
17020 instead of current_tid. Use find_process_pid to verify pid
17021 argument is valid. Pass proper argument to remove_process.
17022 (spu_thread_alive): Compare current_ptid instead of current_tid.
17023 (spu_resume): Likewise.
17025 2009-04-02 Pedro Alves <pedro@codesourcery.com>
17027 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
17030 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17032 Implement the multiprocess extensions, and add linux multiprocess
17035 * server.h (ULONGEST): Declare.
17036 (struct ptid, ptid_t): New.
17037 (minus_one_ptid, null_ptid): Declare.
17038 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17039 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
17040 (struct inferior_list_entry): Change `id' type from unsigned from
17042 (struct sym_cache, struct breakpoint, struct
17043 process_info_private): Forward declare.
17044 (struct process_info): Declare.
17045 (current_process): Declare.
17046 (all_processes): Declare.
17047 (initialize_inferiors): Declare.
17048 (add_thread): Adjust to use ptid_t.
17049 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
17050 (add_process, remove_process, find_thread_pid): Declare.
17051 (find_inferior_id): Adjust to use ptid_t.
17052 (cont_thread, general_thread, step_thread): Change type to ptid_t.
17053 (multi_process): Declare.
17054 (push_event): Adjust to use ptid_t.
17055 (read_ptid, write_ptid): Declare.
17056 (prepare_resume_reply): Adjust to use ptid_t.
17057 (clear_symbol_cache): Declare.
17058 * inferiors.c (all_processes): New.
17059 (null_ptid, minus_one_ptid): New.
17060 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
17061 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
17062 (add_thread): Change unsigned long to ptid. Remove gdb_id
17064 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
17065 (gdb_id_to_thread): Rename to ...
17066 (find_thread_pid): ... this. Change unsigned long to ptid.
17067 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
17068 (loaded_dll, pull_pid_from_list): Adjust.
17069 (add_process, remove_process, find_process_pid)
17070 (get_thread_process, current_process, initialize_inferiors): New.
17071 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
17072 (struct target_waitstatus) <related_pid>: Ditto.
17073 (struct target_ops) <kill, detach>: Add `pid' argument. Change
17074 return type to int.
17075 (struct target_ops) <join>: Add `pid' argument.
17076 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
17077 (struct target_ops) <wait>: Add `ptid' field. Change return type
17079 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
17080 (mywait): Add `ptid' argument. Change return type to ptid_t.
17081 (target_pid_to_str): Declare.
17082 * target.c (set_desired_inferior): Adjust to use ptids.
17083 (mywait): Add new `ptid' argument. Adjust.
17084 (target_pid_to_str): New.
17085 * mem-break.h (free_all_breakpoints): Declare.
17086 * mem-break.c (breakpoints): Delelete.
17087 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
17088 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
17089 to use per-process breakpoint list.
17090 (free_all_breakpoints): New.
17091 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
17092 (symbol_cache, all_symbols_looked_up): Delete.
17094 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
17096 (prepare_resume_reply): Change ptid argument's type from unsigned
17097 long to ptid_t. Adjust. Implement W;process and X;process.
17098 (free_sym_cache, clear_symbol_cache): New.
17099 (look_up_one_symbol): Adjust to per-process symbol cache. *
17100 * server.c (cont_thread, general_thread, step_thread): Change type
17102 (attached): Delete.
17103 (multi_process): New.
17104 (last_ptid): Change type to ptid_t.
17105 (struct vstop_notif) <ptid>: Change type to ptid_t.
17106 (queue_stop_reply, push_event): Change `ptid' argument's type to
17108 (discard_queued_stop_replies): Add `pid' argument.
17109 (start_inferior): Adjust to use ptids. Adjust to mywait interface
17110 changes. Don't reference the `attached' global.
17111 (attach_inferior): Adjust to mywait interface changes.
17112 (handle_query): Adjust to use ptids. Parse GDB's qSupported
17113 features. Handle and report "multiprocess+". Handle
17115 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
17117 (handle_v_kill): New.
17118 (handle_v_stopped): Adjust to use target_pid_to_str.
17119 (handle_v_requests): Allow multiple attaches and runs when
17120 multiprocess extensions are in effect. Handle "vKill".
17121 (myresume): Adjust to use ptids.
17122 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
17123 (handle_status): Adjust to discard_queued_stop_replies interface
17125 (first_thread_of, kill_inferior_callback)
17126 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
17127 (main): Call initialize_inferiors. Adjust to use ptids, killing
17128 and detaching from all inferiors. Handle multiprocess packet
17130 * linux-low.h: Include gdb_proc_service.h.
17131 (struct process_info_private): New.
17132 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
17133 <lwpid_of>: Use ptid_get_lwp.
17134 (get_lwp_thread): Adjust.
17135 (struct lwp_info): Add `dead' member.
17136 (find_lwp_pid): Declare.
17137 * linux-low.c (thread_db_active): Delete.
17138 (new_inferior): Adjust comment.
17139 (inferior_pid): Delete.
17140 (linux_add_process): New.
17141 (handle_extended_wait): Adjust.
17142 (add_lwp): Change unsigned long to ptid.
17143 (linux_create_inferior): Add process to processes table. Adjust
17144 to use ptids. Don't set new_inferior here.
17145 (linux_attach_lwp): Rename to ...
17146 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
17147 it. Adjust to use ptids.
17148 (linux_attach_lwp): New.
17149 (linux_attach): Add process to processes table. Don't set
17151 (struct counter): New.
17152 (second_thread_of_pid_p, last_thread_of_process_p): New.
17153 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
17154 multiple processes.
17155 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
17156 processes. Remove process from process table.
17157 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
17158 to multiple processes.
17159 (any_thread_of): New.
17160 (linux_detach): Add `pid' argument, and handle it. Remove process
17161 from processes table.
17162 (linux_join): Add `pid' argument. Handle it.
17163 (linux_thread_alive): Change unsighed long argument to ptid_t.
17164 Consider dead lwps as not being alive.
17165 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
17166 threads we're not interested in.
17167 (same_lwp, find_lwp_pid): New.
17168 (linux_wait_for_lwp): Change `pid' argument's type from int to
17170 (linux_wait_for_event): Rename to ...
17171 (linux_wait_for_event_1): ... this. Change `pid' argument's type
17172 from int to ptid_t. Adjust.
17173 (linux_wait_for_event): New.
17174 (linux_wait_1): Add `ptid' argument. Change return type to
17175 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
17176 that exit from the process table.
17177 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
17179 (mark_lwp_dead): New.
17180 (wait_for_sigstop): Adjust to use ptids. If a process exits while
17181 stopping all threads, mark its main lwp as dead.
17182 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
17184 (fetch_register, usr_store_inferior_registers)
17185 (regsets_fetch_inferior_registers)
17186 (regsets_store_inferior_registers, linux_read_memory)
17187 (linux_write_memory): Inline `inferior_pid'.
17188 (linux_look_up_symbols): Adjust to use per-process
17189 `thread_db_active'.
17190 (linux_request_interrupt): Adjust to use ptids.
17191 (linux_read_auxv): Inline `inferior_pid'.
17192 (initialize_low): Don't reference thread_db_active.
17193 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
17194 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
17195 (ps_getpid): Return the pid of the current inferior.
17196 * thread-db.c (proc_handle, thread_agent): Delete.
17197 (thread_db_create_event, thread_db_enable_reporting): Adjust to
17199 (find_one_thread): Change argument type to ptid_t. Adjust to
17201 (maybe_attach_thread): Adjust to per-process data and ptids.
17202 (thread_db_find_new_threads): Ditto.
17203 (thread_db_init): Ditto.
17204 * spu-low.c (spu_create_inferior, spu_attach): Add process to
17205 processes table. Adjust to use ptids.
17206 (spu_kill, spu_detach): Adjust interface. Remove process from
17208 (spu_join, spu_thread_alive): Adjust interface.
17209 (spu_wait): Adjust interface. Remove process from processes
17210 table. Adjust to use ptids.
17211 * win32-low.c (current_inferior_tid): Delete.
17212 (current_inferior_ptid): New.
17213 (debug_event_ptid): New.
17214 (thread_rec): Take a ptid. Adjust.
17215 (child_add_thread): Add `pid' argument. Adjust to use ptids.
17216 (child_delete_thread): Ditto.
17217 (do_initial_child_stuff): Add `attached' argument. Add process to
17219 (child_fetch_inferior_registers, child_store_inferior_registers):
17221 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
17222 (win32_attach): Pass 1 to do_initial_child_stuff.
17223 (win32_kill): Adjust interface. Remove process from processes
17225 (win32_detach): Ditto.
17226 (win32_join): Adjust interface.
17227 (win32_thread_alive): Take a ptid.
17228 (win32_resume): Adjust to use ptids.
17229 (get_child_debug_event): Ditto.
17230 (win32_wait): Adjust interface. Remove exiting process from
17233 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17235 Non-stop mode support.
17237 * server.h (non_stop): Declare.
17238 (gdb_client_data, handler_func): Declare.
17239 (delete_file_handler, add_file_handler, start_event_loop):
17241 (handle_serial_event, handle_target_event, push_event)
17242 (putpkt_notif): Declare.
17243 * target.h (enum resume_kind): New.
17244 (struct thread_resume): Replace `step' field by `kind' field.
17245 (TARGET_WNOHANG): Define.
17246 (struct target_ops) <wait>: Add `options' argument.
17247 <supports_non_stop, async, start_non_stop>: New fields.
17248 (target_supports_non_stop, target_async): New.
17249 (start_non_stop): Declare.
17250 (mywait): Add `options' argument.
17251 * target.c (mywait): Add `options' argument. Print child exit
17252 notifications here.
17253 (start_non_stop): New.
17254 * server.c (non_stop, own_buf, mem_buf): New globals.
17255 (struct vstop_notif): New.
17256 (notif_queue): New global.
17257 (queue_stop_reply, push_event, discard_queued_stop_replies)
17258 (send_next_stop_reply): New.
17259 (start_inferior): Adjust to use resume_kind. Adjust to mywait
17261 (attach_inferior): In non-stop mode, don't wait for the target
17263 (handle_general_set): Handle QNonStop.
17264 (handle_query): When handling qC, return the current general
17265 thread, instead of the first thread of the list.
17266 (handle_query): If the backend supports non-stop mode, include
17267 QNonStop+ in the qSupported query response.
17268 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
17270 (handle_v_attach, handle_v_run): Handle non-stop mode.
17271 (handle_v_stopped): New.
17272 (handle_v_requests): Report support for vCont;t. Handle vStopped.
17273 (myresume): Adjust to use resume_kind. Handle non-stop.
17274 (queue_stop_reply_callback): New.
17275 (handle_status): Handle non-stop mode.
17276 (main): Clear non_stop flag on reconnection. Use the event-loop.
17277 Refactor serial protocol handling from here ...
17278 (process_serial_event): ... to this new function. When GDB
17279 selects any thread, select one here. In non-stop mode, wait until
17280 GDB acks all pending events before exiting.
17281 (handle_serial_event, handle_target_event): New.
17282 * remote-utils.c (remote_open): Install remote_desc in the event
17284 (remote_close): Remove remote_desc from the event loop.
17285 (putpkt_binary): Rename to...
17286 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
17287 (putpkt_binary): New as wrapper around putpkt_binary_1.
17288 (putpkt_notif): New.
17289 (prepare_resume_reply): In non-stop mode, don't change the
17291 * event-loop.c: New.
17292 * Makefile.in (OBJ): Add event-loop.o.
17293 (event-loop.o): New rule.
17295 * linux-low.h (pid_of): Moved here.
17297 (get_lwp_thread): Use lwpid_of.
17298 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
17299 * linux-low.c (pid_of): Delete.
17300 (inferior_pid): Use lwpid_of.
17301 (linux_event_pipe): New.
17302 (target_is_async_p): New.
17304 (handle_extended_wait): Use lwpid_of.
17305 (add_lwp): Don't set lwpid field.
17306 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
17307 (linux_kill_one_lwp): If killing a running lwp, stop it first.
17308 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
17309 (linux_detach_one_lwp): If detaching from a running lwp, stop it
17310 first. Adjust to linux_wait_for_event interface changes. Use
17312 (linux_detach): Don't delete the main lwp here.
17313 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
17314 (status_pending_p): Don't consider explicitly suspended lwps.
17315 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
17316 pointer. Add OPTIONS argument. Change return type to int. Use
17317 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
17318 (linux_wait_for_event): Take an integer pid instead of a lwp_info
17319 pointer. Add status pointer argument. Return a pid instead of a
17320 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
17321 changes. In non-stop mode, don't switch to a random thread.
17322 (linux_wait): Rename to...
17323 (linux_wait_1): ... this. Add target_options argument, and handle
17324 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
17325 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
17326 clean exit and signal exit code. Don't stop all threads in
17327 non-stop mode. In all-stop mode, only stop all threads when
17328 reporting a stop to GDB. Handle explicit thread stop requests.
17329 (async_file_flush, async_file_mark): New.
17331 (send_sigstop): Use lwpid_of.
17332 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
17333 interface changes. In non-stop mode, don't switch to a random
17335 (linux_resume_one_lwp): Use lwpid_of.
17336 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
17337 (linux_resume_one_thread): ... this. Handle resume_stop. In
17338 non-stop mode, don't look for pending flag in all threads.
17339 (resume_status_pending_p): Don't consider explicitly suspended
17341 (my_waitpid): Reimplement. Emulate __WALL.
17342 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17344 (sigchld_handler, linux_supports_non_stop, linux_async)
17345 (linux_start_non_stop): New.
17346 (linux_target_ops): Register linux_supports_non_stop, linux_async
17347 and linux_start_non_stop.
17348 (initialize_low): Install SIGCHLD handler.
17349 * thread-db.c (thread_db_create_event, find_one_thread)
17350 (thread_db_get_tls_address): Use lwpid_of.
17351 * win32-low.c (win32_detach): Adjust to use resume_kind.
17352 (win32_wait): Add `options' argument.
17353 * spu-low.c (spu_resume): Adjust to use resume_kind.
17354 (spu_wait): Add `options' argument.
17356 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17358 Decouple target code from remote protocol.
17360 * target.h (enum target_waitkind): New.
17361 (struct target_waitstatus): New.
17362 (struct target_ops) <wait>: Return an unsigned long. Take a
17363 target_waitstatus pointer instead of a char pointer.
17364 (mywait): Likewise.
17365 * target.c (mywait): Change prototype to return an unsigned long.
17366 Take a target_waitstatus pointer instead of a char pointer. Adjust.
17367 * server.h (thread_from_wait, old_thread_from_wait): Delete
17369 (prepare_resume_reply): Change prototype to take a
17371 * server.c (thread_from_wait, old_thread_from_wait): Delete.
17372 (last_status, last_ptid): New.
17373 (start_inferior): Remove "statusptr" argument. Adjust. Return a
17374 pid instead of a signal.
17375 (attach_inferior): Remove "status" and "signal" parameters.
17377 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
17379 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
17380 (handle_v_requests, myresume): Remove "status" and "signal"
17381 parameters. Adjust.
17382 (handle_status): New.
17383 (main): Delete local `status'. Adjust.
17384 * remote-utils.c: Include target.h.
17385 (prepare_resume_reply): Change prototype to take a
17386 target_waitstatus. Adjust.
17388 * linux-low.c (linux_wait): Adjust to new target_ops->wait
17390 * spu-low.c (spu_wait): Adjust.
17391 * win32-low.c (enum target_waitkind, struct target_waitstatus):
17393 (win32_wait): Adjust.
17395 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17397 * target.h (struct thread_resume): Delete leave_stopped member.
17398 (struct target_ops): Add a `n' argument to the `resume' callback.
17399 * server.c (start_inferior): Adjust.
17400 (handle_v_cont, myresume): Adjust.
17401 * linux-low.c (check_removed_breakpoint): Adjust to resume
17402 interface change, and to removed leave_stopped field.
17403 (resume_ptr): Delete.
17404 (struct thread_resume_array): New.
17405 (linux_set_resume_request): Add new `arg' parameter. Adjust to
17406 resume interface change.
17407 (linux_continue_one_thread, linux_queue_one_thread)
17408 (resume_status_pending_p): Check if the resume field is NULL
17409 instead of checking the leave_stopped member.
17410 (linux_resume): Adjust to the target resume interface change.
17411 * spu-low.c (spu_resume): Adjust to the target resume interface
17413 * win32-low.c (win32_detach, win32_resume): Ditto.
17415 2009-04-01 Pedro Alves <pedro@codesourcery.com>
17417 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
17419 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
17421 (linux_continue_one_thread): Only preserve the stepping flag if
17422 there's a pending breakpoint.
17424 2009-03-31 Pedro Alves <pedro@codesourcery.com>
17426 * server.c (main): After the inferior having exited, call
17427 remote_close before exiting gdbserver.
17429 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
17431 Fix size of FPSCR in Power 7 processors.
17432 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
17433 (PPC_FEATURE_HAS_DFP): New #define.
17434 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
17437 2009-03-23 Pedro Alves <pedro@codesourcery.com>
17439 * server.c (handle_query) Whitespace and formatting.
17441 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17443 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
17444 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
17445 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
17446 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
17447 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
17448 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
17449 Makefile.in, configure.ac: Fix whitespace throughout.
17450 * configure: Regenerate.
17452 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17454 * inferiors.c (find_inferior): Make it safe for the callback
17455 function to delete the currently iterated inferior.
17457 2009-03-22 Pedro Alves <pedro@codesourcery.com>
17459 * Makefile.in (linuw_low_h): Move higher.
17460 (thread-db.o): Depend on $(linux_low_h).
17462 2009-03-17 Pedro Alves <pedro@codesourcery.com>
17464 Rename "process" to "lwp" throughout.
17466 * linux-low.c (all_processes): Rename to...
17467 (all_lwps): ... this.
17468 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
17469 (add_process): Rename to ...
17470 (add_lwp): ... this. Adjust.
17471 (linux_create_inferior): Adjust.
17472 (linux_attach_lwp): Adjust.
17473 (linux_attach): Adjust.
17474 (linux_kill_one_process): Rename to ...
17475 (linux_kill_one_lwp): ... this. Adjust.
17476 (linux_kill): Adjust.
17477 (linux_detach_one_process): Rename to ...
17478 (linux_detach_one_lwp): ... this. Adjust.
17479 (linux_detach): Adjust.
17480 (check_removed_breakpoint): Adjust.
17481 (status_pending_p): Adjust.
17482 (linux_wait_for_process): Rename to ...
17483 (linux_wait_for_lwp): ... this. Adjust.
17484 (linux_wait_for_event): Adjust.
17485 (send_sigstop): Adjust.
17486 (wait_for_sigstop): Adjust.
17487 (stop_all_processes): Rename to ...
17488 (stop_all_lwps): ... this.
17489 (linux_resume_one_process): Rename to ...
17490 (linux_resume_one_lwp): ... this. Adjust.
17491 (linux_set_resume_request, linux_continue_one_thread)
17492 (linux_queue_one_thread, resume_status_pending_p)
17493 (usr_store_inferior_registers, regsets_store_inferior_registers)
17494 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
17496 * linux-low.h (get_process): Rename to ...
17497 (get_lwp): ... this. Adjust.
17498 (get_thread_process): Rename to ...
17499 (get_thread_lwp): ... this. Adjust.
17500 (get_process_thread): Rename to ...
17501 (get_lwp_thread): ... this. Adjust.
17502 (struct process_info): Rename to ...
17503 (struct lwp_info): ... this.
17504 (all_processes): Rename to ...
17505 (all_lwps): ... this.
17506 * proc-service.c (ps_lgetregs): Adjust.
17507 * thread-db.c (thread_db_create_event, find_one_thread)
17508 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
17510 2009-03-14 Pedro Alves <pedro@codesourcery.com>
17512 * server.c (handle_query): Handle "qAttached".
17514 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
17516 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
17517 GPLv3, update license URL.
17519 2009-03-01 Doug Evans <dje@google.com>
17521 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
17522 (server_h): Add gdb_signals.h.
17523 (signals.o): Update.
17524 * server.h (target_signal_from_host,target_signal_to_host_p)
17525 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
17527 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
17529 * remote-utils.c (getpkt): Also generate remote-debug
17530 information if noack_mode is set.
17532 2009-02-06 Pedro Alves <pedro@codesourcery.com>
17534 * server.c (handle_query): Report qXfer:siginfo:read and
17535 qXfer:siginfo:write as supported and handle them.
17536 * target.h (struct target_ops) <qxfer_siginfo>: New field.
17537 * linux-low.c (linux_xfer_siginfo): New.
17538 (linux_target_ops): Set it.
17540 2009-01-26 Pedro Alves <pedro@codesourcery.com>
17542 * server.c (gdbserver_usage): Mention --remote-debug.
17543 (main): Accept '--remote-debug' switch.
17545 2009-01-18 Doug Evans <dje@google.com>
17547 * regcache.c (new_register_cache): No need to check result of xcalloc.
17548 * server.c (handle_search_memory): Back out calls to xmalloc,
17549 result is checked and error is returned to user upon failure.
17550 (handle_query): Ditto. Add more checks for result of malloc.
17551 (handle_v_cont): Check result of malloc, report error back to
17553 (handle_v_run): Ditto. Call freeargv.
17554 * server.h (freeargv): Declare.
17555 * utils.c (freeargv): New fn.
17557 2009-01-15 Doug Evans <dje@google.com>
17559 * gdbreplay.c (perror_with_name): Make arg const char *.
17560 * server.h (target_signal_to_name): Make return type const char *.
17561 * thread-db.c (thread_db_err_str): Make return type const char *.
17562 * utils.c (perror_with_name): Make arg const char *.
17564 2009-01-14 Pedro Alves <pedro@codesourcery.com>
17566 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
17567 when handling a EXIT_PROCESS_DEBUG_EVENT.
17569 2009-01-06 Joel Brobecker <brobecker@adacore.com>
17571 * gdbreplay.c (gdbreplay_version): Update copyright year.
17572 * server.c (gdbserver_version): Likewise.
17574 2009-01-05 Doug Evans <dje@google.com>
17576 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
17577 (handle_extended_wait): Improve comment.
17579 2008-12-13 Doug Evans <dje@google.com>
17581 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
17582 * server.h (ATTR_MALLOC): New macro.
17583 (xmalloc,xcalloc,xstrdup): Declare.
17584 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
17585 * inferiors.c: Ditto.
17586 * linux-low.c: Ditto.
17587 * mem-break.c: Ditto.
17588 * regcache.c: Ditto.
17589 * remote-utils.c: Ditto.
17592 * win32-low.c: Ditto.
17594 2008-12-12 Doug Evans <dje@google.com>
17596 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
17597 in debugging printf.
17599 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
17601 2008-12-09 Doug Evans <dje@google.com>
17603 * linux-low.h (struct process_info): Delete member tid, unused.
17604 * thread-db.c (find_one_thread): Update.
17605 (maybe_attach_thread): Update.
17607 2008-12-02 Pedro Alves <pedro@codesourcery.com>
17609 * target.h (struct target_ops): Add qxfer_osdata member.
17610 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
17612 (linux_qxfer_osdata): New functions.
17613 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
17615 * server.c (handle_query): Handle "qXfer:osdata:read:".
17616 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
17617 (buffer_xml_printf): New functions.
17618 * server.h (struct buffer): New.
17619 (buffer_grow_str, buffer_grow_str0): New macros.
17620 (buffer_grow, buffer_free, buffer_init, buffer_finish)
17621 (buffer_xml_printf): Declare.
17623 2008-11-24 Doug Evans <dje@google.com>
17625 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
17627 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
17629 * server.c (handle_v_run): Always use the supplied argument list.
17631 2008-11-19 Bob Wilson <bob.wilson@acm.org>
17633 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
17634 (xtensa_regmap_table): Add entry for scompare1.
17636 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
17638 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
17639 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
17640 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
17641 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
17642 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
17643 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
17644 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
17645 XML target descriptions.
17646 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
17647 when inferior is running on an ISA 2.05 or later processor. Add
17648 special case to return offset for full 64-bit slot of FPSCR when
17651 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
17653 * Makefile.in (SFILES, clean): Added sparc64 files.
17654 (reg-sparc64.o, reg-sparc64.c): New.
17655 * configure.srv (sparc*-*-linux*): New configuration.
17656 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
17657 syscall arguments for SPARC.
17658 (regsets_store_inferior_registers): Likewise.
17659 * linux-sparc-low.c: New file.
17661 2008-10-21 Doug Evans <dje@google.com>
17663 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
17664 (READLINE_DIR,READLINE_DEP): Delete.
17665 (INTERNAL_CFLAGS): Update.
17666 (LINTFLAGS): Update.
17668 2008-10-10 Pedro Alves <pedro@codesourcery.com>
17670 * server.c (handle_v_run): If GDB didn't specify an argv, use the
17671 whole argv from the last run, not just argv[0].
17673 2008-09-08 Pedro Alves <pedro@codesourcery.com>
17675 * regcache.c (new_register_cache): Return NULL if the register
17676 cache size isn't known yet.
17677 (free_register_cache): Avoid dereferencing a NULL regcache.
17679 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17681 * configure.srv: Merge MIPS and MIPS64.
17683 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
17685 * Makefile.in (uninstall): Apply $(EXEEXT) too.
17687 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
17689 * Makefile.in: Add required vsx dependencies.
17691 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
17692 Declare init_registers_powerpc_vsx32l.
17693 Declare init_registers_powerpc_vsx64l.
17694 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
17695 (ppc_arch_setup): Check for VSX in hwcap.
17696 (ppc_fill_vsxregset): New function.
17697 (ppc_store_vsxregset): New function.
17698 Add new VSX entry in regset_info target_regsets.
17700 * configure.srv: Add new VSX dependencies.
17702 2008-08-12 Pedro Alves <pedro@codesourcery.com>
17704 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
17705 (remote_open): Set or clear transport_is_reliable.
17706 (putpkt_binary): Don't expect acks in noack mode.
17707 (getpkt): Don't send ack/nac in noack mode.
17708 * server.c (handle_general_set): Handle QStartNoAckMode.
17709 (handle_query): If connected by tcp pass QStartNoAckMode+ in
17711 (main): Reset noack_mode on every connection.
17712 * server.h (noack_mode): Declare.
17714 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17716 * Makefile.in (GDBREPLAY_OBS): New variable.
17717 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
17719 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
17720 Daniel Jacobowitz <dan@codesourcery.com>
17722 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
17723 (usr_store_inferior_registers): Likewise.
17724 (regsets_store_inferior_registers): Likewise.
17726 2008-07-31 Rolf Jansen <rj@surtec.com>
17727 Pedro Alves <pedro@codesourcery.com>
17729 * configure.ac: Check for memmem declaration.
17730 * server.c [HAVE_MALLOC_H]: Include malloc.h.
17731 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
17732 (disable_packet_qfThreadInfo): Unconditionally compile.
17733 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
17734 * configure, config.in: Regenerate.
17736 2008-07-28 Doug Kwan <dougkwan@google.com>
17738 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
17739 (linux_write_memory): Remove declaration of errno.
17741 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
17743 * linux-low.c (handle_extended_wait): Do not use "status"
17744 variable uninitialized.
17746 2008-07-07 Pedro Alves <pedro@codesourcery.com>
17748 * server.c (handle_v_attach): Inhibit reporting dll changes.
17750 2008-06-27 Pedro Alves <pedro@codesourcery.com>
17752 * remote-utils.c (prepare_resume_reply): If requested, don't
17753 output "thread:TID" in the T stop reply.
17755 * server.c (disable_packet_vCont, disable_packet_Tthread)
17756 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
17757 (handle_query): If requested, disable support for qC, qfThreadInfo
17759 (handle_v_requests): If requested, disable support for vCont.
17760 (gdbserver_show_disableable): New.
17761 (main): Handle --disable-packet and --disable-packet=LIST.
17763 * server.h (disable_packet_vCont, disable_packet_Tthread)
17764 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
17766 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
17768 * server.c (gdbserver_usage): Mention --version.
17770 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
17772 * Makefile.in (gdbreplay.o): New rule.
17774 2008-06-06 Joseph Myers <joseph@codesourcery.com>
17776 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
17777 message, not gdbserver.
17779 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
17780 Nathan Sidwell <nathan@codesourcery.com>
17781 Joseph Myers <joseph@codesourcery.com>
17783 * acinclude.m4: Include ../../config/acx.m4.
17784 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
17785 * configure, config.in: Regenerate.
17786 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
17787 * server.c (gdbserver_version): Print PKGVERSION.
17788 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
17789 (main): Adjust gdbserver_usage calls.
17790 * gdbreplay.c (version, host_name): Add declarations.
17791 (gdbreplay_version, gdbreplay_usage): New.
17792 (main): Accept --version and --help options.
17794 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
17796 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
17797 (arm_breakpoint_at): Handle Thumb.
17798 (the_low_target): Add comment.
17800 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
17802 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
17804 2008-05-09 Doug Evans <dje@google.com>
17806 * server.h (decode_search_memory_packet): Declare.
17807 * remote-utils.c (decode_search_memory_packet): New fn.
17808 * server.c (handle_search_memory_1): New fn.
17809 (handle_search_memory): New fn.
17810 (handle_query): Process qSearch:memory packets.
17812 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
17814 * regcache.c (registers_length): Remove.
17815 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
17816 full register packet.
17817 * regcache.h (registers_length): Remove prototype.
17818 * server.h (PBUFSIZ): Define to 16384.
17820 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
17822 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
17823 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
17824 powerpc-64l.o, and powerpc-altivec64l.o.
17825 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
17826 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
17827 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
17828 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
17829 rs6000/power-linux.xml, and rs6000/power64-linux.xml
17832 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
17833 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
17834 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
17835 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
17836 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
17837 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
17838 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
17839 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
17840 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
17841 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
17844 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
17845 (init_registers_powerpc_32l): ... this new prototype.
17846 (init_registers_powerpc_32): Remove, replace by ...
17847 (init_registers_powerpc_altivec32l): ... this new prototype.
17848 (init_registers_powerpc_e500): Remove, replace by ...
17849 (init_registers_powerpc_e500l): ... this new prototype.
17850 (init_registers_ppc64): Remove, replace by ...
17851 (init_registers_powerpc_64l): ... this new prototype.
17852 (init_registers_powerpc_64): Remove, replace by ...
17853 (init_registers_powerpc_altivec64l): ... this new prototype.
17854 (ppc_num_regs): Set to 73.
17855 (PT_ORIG_R3, PT_TRAP): Define if necessary.
17856 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
17857 (ppc_cannot_store_register): Handle orig_r3 and trap.
17858 (ppc_arch_setup): Update init_registers_... calls.
17859 (ppc_fill_gregset): Handle orig_r3 and trap.
17861 * inferiors.c (clear_inferiors): Reset current_inferior.
17863 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
17865 * acinclude.m4: Add override.m4.
17866 * configure: Regenerate.
17868 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17870 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
17871 initial call to init_register_ppc64.
17873 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
17875 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
17876 single powerpc*-*-linux* case.
17877 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
17879 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
17881 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
17882 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
17884 * linux-ppc-low.c: Include <elf.h>.
17885 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
17886 (ppc_hwcap): New global variable.
17887 (ppc_regmap): Remove __SPE__ #ifdef sections.
17888 (ppc_regmap_e500): New global variable.
17889 (ppc_cannot_store_register): Update __SPE__ special case.
17890 (ppc_get_hwcap): New function.
17891 (ppc_arch_setup): Use it to determine whether inferior supports
17892 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
17893 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
17894 Do not access registers if target does not support AltiVec.
17895 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
17896 Do not access registers if target does not support SPE.
17897 (target_regsets): Unconditionally include AltiVec and SPE regsets.
17899 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
17901 * linux-low.c (disabled_regsets, num_regsets): New.
17902 (use_regsets_p): Delete.
17903 (linux_wait_for_process): Clear disabled_regsets.
17904 (regsets_fetch_inferior_registers): Check and set it.
17905 (regsets_store_inferior_registers): Likewise.
17906 (linux_fetch_registers, linux_store_registers): Do not use
17908 (initialize_low): Allocate disabled_regsets.
17910 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
17912 * Makefile.in (LIBOBJS): New.
17913 (OBS): Use LIBOBJS.
17914 (memmem.o): New rule.
17915 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
17916 * configure: Regenerated.
17918 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
17920 * server.c (handle_query): Never return "unsupported" for
17921 qXfer:features:read queries.
17923 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
17925 * server.c (get_features_xml): Fix inverted condition.
17926 (handle_query): Always support qXfer:feature:read.
17928 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
17930 * server.c (wrapper_argv): New.
17931 (start_inferior): Handle wrapper_argv. If set, expect an extra
17933 (gdbserver_usage): Document --wrapper.
17934 (main): Parse --wrapper.
17936 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17938 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
17939 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
17940 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
17941 (ppc_set_pc): Likewise.
17942 (ppc_arch_setup): New function.
17943 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
17944 of collect_register.
17945 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
17947 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17949 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
17950 instead of linux-ppc64-low.o.
17951 * linux-ppc64-low.c: Remove file.
17952 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
17953 (linux-ppc64-low.o): Remove rule.
17955 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
17956 (init_registers_powerpc_64): Likewise.
17957 (ppc_regmap): Conditionally define depending on __powerpc64__.
17958 (ppc_cannot_store_register): Do not special-case "fpscr" when
17959 compiled on __powerpc64__.
17960 (ppc_collect_ptrace_register): New function.
17961 (ppc_supply_ptrace_register): New function.
17962 (ppc_breakpoint): Change type to "unsigned int".
17963 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
17964 (the_low_target): Conditionally provide initializers for the
17965 arch_setup member depending on __powerpc64__. Install
17966 collect_ptrace_register and supply_ptrace_register members.
17968 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17970 * regcache.h (gdbserver_xmltarget): Add extern declaration.
17971 * server.c (gdbserver_xmltarget): Define.
17972 (get_features_xml): Use it to replace "target.xml" and arch_string.
17974 * configure.srv: Remove srv_xmltarget. Add XML files that were
17975 mentioned there to srv_xmlfiles instead. Remove conditional tests
17976 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
17977 srv_xmlfiles and srv_regobj to include all possible choices.
17978 * configure.ac (srv_xmltarget): Remove.
17979 (srv_xmlfiles): Do not add "target.xml".
17980 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
17981 checks for supplementary target information.
17982 * configure: Regenerate.
17983 * Makefile.in (XML_TARGET): Remove.
17984 (target.xml): Remove rule.
17985 (clean): Do not clean up target.xml.
17986 (.PRECIOUS): Do not mention target.xml.
17988 * target.h (struct target_ops): Remove arch_string member.
17989 * linux-low.c (linux_arch_string): Remove.
17990 (linux_target_ops): Remove arch_string initializer.
17991 * linux-low.h (struct linux_target_ops): Remove arch_string member.
17992 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
17993 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
17994 * spu-low.c (spu_arch_string): Remove.
17995 (spu_target_ops): Remove arch_string initializer.
17996 * win32-low.c (win32_arch_string): Remove.
17997 (win32_target_ops): Remove arch_string initializer.
17998 * win32-low.h (struct win32_target_ops): Remove arch_string member.
17999 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
18000 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
18002 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18004 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
18005 by collect_ptrace_register and supply_ptrace_register hooks.
18006 * linux-low.c (fetch_register): Use supply_ptrace_register callback
18007 instead of checking for the_low_target.left_pad_xfer.
18008 (usr_store_inferior_registers): Use collect_ptrace_register callback
18009 instead of checking for the_low_target.left_pad_xfer.
18011 * linux-s390-low.c (s390_collect_ptrace_register): New function.
18012 (s390_supply_ptrace_register): Likewise.
18013 (s390_fill_gregset): Call s390_collect_ptrace_register.
18014 (the_low_target): Update.
18016 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
18017 (ppc_supply_ptrace_register): Likewise.
18018 (the_low_target): Update.
18020 * linux-i386-low.c (the_low_target): Update.
18021 * linux-x86-64-low.c (the_low_target): Update.
18023 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18025 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
18026 reg-s390.o and reg-s390x.o.
18028 * linux-low.c (new_inferior): New global variable.
18029 (linux_create_inferior, linux_attach): Set it.
18030 (linux_wait_for_process): Call the_low_target.arch_setup after the
18031 target has stopped for the first time.
18032 (initialize_low): Do not call the_low_target.arch_setup.
18034 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
18035 (s390_set_pc): Likewise.
18036 (s390_arch_setup): New function.
18037 (the_low_target): Use s390_arch_setup as arch_setup routine.
18039 * regcache.c (realloc_register_cache): New function.
18040 (set_register_cache): Call it for each existing regcache.
18042 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
18044 * server.h (init_registers): Remove prototype.
18046 * linux-low.h (struct linux_target_ops): Add arch_setup field.
18047 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
18048 instead of init_registers ().
18049 * linux-arm-low.c (init_registers_arm): Add prototype.
18050 (init_registers_arm_with_iwmmxt): Likewise.
18051 (the_low_target): Add initializer for arch_setup field.
18052 * linux-cris-low.c (init_registers_cris): Add prototype.
18053 (the_low_target): Add initializer for arch_setup field.
18054 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
18055 (the_low_target): Add initializer for arch_setup field.
18056 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
18057 (the_low_target): Add initializer for arch_setup field.
18058 * linux-ia64-low.c (init_registers_ia64): Add prototype.
18059 (the_low_target): Add initializer for arch_setup field.
18060 * linux-m32r-low.c (init_registers_m32r): Add prototype.
18061 (the_low_target): Add initializer for arch_setup field.
18062 * linux-m68k-low.c (init_registers_m68k): Add prototype.
18063 (the_low_target): Add initializer for arch_setup field.
18064 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
18065 (init_registers_mips64_linux): Likewise.
18066 (the_low_target): Add initializer for arch_setup field.
18067 * linux-ppc-low.c (init_registers_ppc): Add prototype.
18068 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
18069 (the_low_target): Add initializer for arch_setup field.
18070 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
18071 (init_registers_powerpc_64): Likewise.
18072 (the_low_target): Add initializer for arch_setup field.
18073 * linux-s390-low.c (init_registers_s390): Add prototype.
18074 (init_registers_s390x): Likewise.
18075 (the_low_target): Add initializer for arch_setup field.
18076 * linux-sh-low.c (init_registers_sh): Add prototype.
18077 (the_low_target): Add initializer for arch_setup field.
18078 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
18079 (the_low_target): Add initializer for arch_setup field.
18080 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
18081 (the_low_target): Add initializer for arch_setup field.
18083 * win32-low.h (struct win32_target_ops): Add arch_setup field.
18084 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
18085 instead of init_registers ().
18086 * win32-arm-low.c (init_registers_arm): Add prototype.
18087 (the_low_target): Add initializer for arch_setup field.
18088 * win32-i386-low.c (init_registers_i386): Add prototype.
18089 (the_low_target): Add initializer for arch_setup field.
18091 * spu-low.c (init_registers_spu): Add prototype.
18092 (initialize_low): Call initialie_registers_spu () instead of
18093 initialize_registers ().
18095 2008-02-19 Pedro Alves <pedro@codesourcery.com>
18097 * server.c (handle_v_requests): When handling the vRun and vAttach
18098 packets, if already debugging a process, don't kill it. Return an
18101 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
18103 * server.c (handle_query): Correct length check.
18105 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
18107 * win32-low.c (do_initial_child_stuff): Add process handle
18108 parameter. Set current_process_handle and current_process_id from the
18109 parameters. Clear globals.
18110 (win32_create_inferior): Don't set current_process_handle and
18111 current_process_id here. Instead pass them on the call to
18112 do_initial_child_stuff.
18113 (win32_attach): Likewise.
18114 (win32_clear_inferiors): New.
18115 (win32_kill): Don't close the current process handle or the
18116 current thread handle here. Instead call win32_clear_inferiors.
18117 (win32_detach): Don't open a new handle to the process. Call
18118 win32_clear_inferiors.
18119 (win32_join): Don't rely on current_process_handle; open a new
18120 handle using the process id.
18121 (win32_wait): Call win32_clear_inferiors when the inferior process
18124 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
18126 * server.c (monitor_show_help): Add "exit".
18128 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
18130 * Makefile.in (SFILES): Add linux-xtensa-low.c.
18131 (clean): Add reg-xtensa.c.
18132 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
18133 * configure.srv (xtensa*-*-linux*) New target.
18134 * linux-xtensa-low.c: New.
18135 * xtensa-xtregs.c: New.
18137 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
18139 * hostio.c: Don't include errno.h.
18140 (errno_to_fileio_errno): Move to hostio-errno.
18141 * hostio.c: (hostio_error): Remove the error parameter. Defer the
18142 error number outputting to the target->hostio_last_error callback.
18143 (hostio_packet_error): Use FILEIO_EINVAL directly.
18144 (handle_open, handle_pread, hostio_error, handle_unlink): Update
18145 calls to hostio_error.
18146 * hostio-errno.c: New.
18147 * server.h (hostio_last_error_from_errno): Declare.
18148 * target.h (target_ops): Add hostio_last_error member.
18149 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
18150 as hostio_last_error handler.
18151 * spu-low.c (spu_target_ops): Likewise.
18152 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
18153 (wince_hostio_last_error): New functions.
18154 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
18155 as hostio_last_error handler.
18156 (win32_target_ops) [!_WIN32_WCE]: Register
18157 hostio_last_error_from_errno as hostio_last_error handler.
18158 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
18159 (hostio-errno.o): New rule.
18160 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
18161 * configure.srv (srv_hostio_err_objs): New variable. Default to
18163 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
18164 * configure: Regenerate.
18166 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18168 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
18169 (linux_kill, linux_detach): Clean up the process list.
18170 * remote-utils.c (remote_open): Improve port number parsing.
18171 (putpkt_binary, input_interrupt): Only send interrupts if the target
18173 * server.c (extended_protocol): Make static.
18174 (attached): Define earlier.
18175 (exit_requested, response_needed, program_argv): New variables.
18176 (target_running): New.
18177 (start_inferior): Clear attached here.
18178 (attach_inferior): Set attached here.
18179 (require_running): Define.
18180 (handle_query): Use require_running and target_running. Implement
18182 (handle_v_attach, handle_v_run): New.
18183 (handle_v_requests): Use require_running. Handle vAttach and vRun.
18184 (gdbserver_usage): Update.
18185 (main): Redo argument parsing. Handle --debug and --multi. Handle
18186 --attach along with other options or after the port. Save
18187 program_argv. Support no initial program. Resynchronize
18188 communication with GDB after an error. Handle "monitor exit".
18189 Use require_running and target_running. Always allow the extended
18190 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
18191 restart in extended mode.
18192 * README: Refer to the GDB manual. Update --attach usage.
18194 2007-12-20 Andreas Schwab <schwab@suse.de>
18196 * linux-low.c (STACK_SIZE): Define.
18197 (linux_tracefork_child): Use it. Use __clone2 on ia64.
18198 (linux_test_for_tracefork): Likewise.
18200 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
18202 * linux-low.c (linux_wait_for_event): Update messages. Do not
18203 reinsert auto-delete breakpoints.
18204 * mem-break.c (struct breakpoint): Change return type of handler to
18206 (set_breakpoint_at): Update handler type.
18207 (reinsert_breakpoint_handler): Return 1 instead of calling
18209 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
18211 (check_breakpoints): Delete auto-delete breakpoints and return 2.
18212 * mem-break.h (set_breakpoint_at): Update handler type.
18213 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
18214 * win32-low.c (auto_delete_breakpoint): New.
18215 (get_child_debug_event): Use it.
18217 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
18219 * configure.ac: Check for pread and pwrite.
18220 * hostio.c (handle_pread): Fall back to lseek and read.
18221 (handle_pwrite): Fall back to lseek and write.
18222 * config.in, configure: Regenerated.
18224 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
18226 * server.c (myresume): Add own_buf argument.
18227 (main): Update calls.
18229 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
18231 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
18232 * remote-utils.c (remote_open): Do not call disable_async_io.
18233 (block_async_io): Delete.
18234 (unblock_async_io): Make static.
18235 (initialize_async_io): New.
18236 * server.c (handle_v_cont): Handle async I/O here.
18237 (myresume): Likewise. Move other common resume tasks here...
18238 (main): ... from here. Call initialize_async_io. Disable async
18239 I/O before the main loop.
18240 * server.h (initialize_async_io): Declare.
18241 (block_async_io, unblock_async_io): Delete prototypes.
18242 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
18244 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
18246 * remote-utils.c (readchar): Allow binary data in received messages.
18248 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18250 * win32-low.c (attaching): New global.
18251 (win32_create_inferior): Clear the `attaching' global.
18252 (win32_attach): Set the `attaching' global.
18253 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
18254 attaching. Only set a breakpoint at the entry point if not
18257 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18259 * server.c (main): Don't report dll events on the initial
18260 connection on attaches.
18262 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18264 * server.c (main): Relax numerical bases supported for the pid of
18265 the --attach command line argument.
18267 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18269 * win32-low.c (win32_attach): Call OpenProcess before
18270 DebugActiveProcess, not after. Add last error output to error
18273 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
18275 * win32-low.c (win32_get_thread_context)
18276 (win32_set_thread_context): New functions.
18277 (thread_rec): Use win32_get_thread_context.
18278 (continue_one_thread, win32_resume): Use win32_set_thread_context.
18279 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
18282 2007-12-03 Leo Zayas
18283 Pedro Alves <pedro_alves@portugalmail.pt>
18285 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
18287 (child_add_thread): Minor cleanup.
18288 (child_continue): Resume artificially suspended threads before
18289 calling ContinueDebugEvent.
18290 (suspend_one_thread): New.
18291 (fake_breakpoint_event): New.
18292 (get_child_debug_event): Change return type to int. Check here if
18293 gdb sent an interrupt request. If a soft interrupt was requested,
18294 fake a breakpoint event. Return 0 if there is no event to handle,
18296 (win32_wait): Don't check here if gdb sent an interrupt request.
18297 Ensure there is a valid event to handle.
18298 (win32_request_interrupt): Add soft interruption method as last
18301 2007-12-03 Leo Zayas
18302 Pedro Alves <pedro_alves@portugalmail.pt>
18304 * win32-low.h (win32_thread_info): Add descriptions to the
18305 structure members. Replace `suspend_count' counter by a
18307 * win32-low.c (thread_rec): Update condition of when to get the
18308 context from the inferior. Rely on ContextFlags being set if it
18309 has already been retrieved. Only suspend the inferior thread if
18310 we haven't already. Warn if that fails.
18311 (continue_one_thread): s/suspend_count/suspended/. Only call
18312 ResumeThread once. Warn if that fails.
18314 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18316 * win32-low.c (win32_wait): Don't read from the inferior when it
18317 has already exited.
18319 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
18321 * Makefile.in (win32_low_h): New variable.
18322 (win32-low.o): Add dependency on $(win32_low_h).
18323 (win32-arm-low.o, win32-i386-low.o): New rules.
18325 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18327 * hostio.c: Correct copyright year.
18329 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
18331 * Makefile.in (OBS): Add hostio.o.
18332 (hostio.o): New rule.
18333 * server.h (handle_vFile): Declare.
18334 * hostio.c: New file.
18335 * server.c (handle_v_requests): Take packet_len and new_packet_len
18336 for binary packets. Call handle_vFile.
18337 (main): Update call to handle_v_requests.
18339 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
18341 * linux-low.c: Include <sched.h>.
18343 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
18345 * linux-low.c (linux_tracefork_grandchild): New.
18346 (linux_tracefork_child): Use clone.
18347 (linux_test_for_tracefork): Use clone; allocate and free a stack.
18349 2007-10-31 Joel Brobecker <brobecker@adacore.com>
18351 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
18353 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
18355 * linux-low.c (handle_extended_wait): Handle unexpected signals.
18357 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
18359 * inferiors.c (change_inferior_id): Delete.
18360 (add_pid_to_list, pull_pid_from_list): New.
18361 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
18362 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
18363 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
18364 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
18365 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
18366 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
18367 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
18368 (using_threads): Always set to 1.
18369 (handle_extended_wait): New.
18370 (add_process): Do not set TID.
18371 (linux_create_inferior): Set must_set_ptrace_flags.
18372 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
18373 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
18374 (linux_thread_alive): Rename TID argument to LWPID.
18375 (linux_wait_for_process): Handle unknown processes. Do not use TID.
18376 (linux_wait_for_event): Do not use TID or check using_threads. Update
18377 call to dead_thread_notify. Call handle_extended_wait.
18378 (linux_create_inferior): Use PTRACE_SETOPTIONS.
18379 (send_sigstop): Delete sigstop_sent.
18380 (wait_for_sigstop): Avoid TID.
18381 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
18382 (linux_test_for_tracefork): New.
18383 (linux_lookup_signals): Use thread_db_active and
18384 linux_supports_tracefork_flag.
18385 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
18386 * linux-low.h (get_process_thread): Avoid TID.
18387 (struct process_ifo): Move thread_known and tid to the end. Remove
18389 (linux_attach_lwp, thread_db_init): Update prototypes.
18390 * server.h (change_inferior_id): Delete prototype.
18391 (add_pid_to_list, pull_pid_from_list): New prototypes.
18392 * thread-db.c (thread_db_use_events): New.
18393 (find_first_thread): Rename to...
18394 (find_one_thread): ...this. Update callers and messages. Do not
18395 call fatal. Check thread_db_use_events. Do not call
18396 change_inferior_id or new_thread_notify.
18397 (maybe_attach_thread): Update. Do not call new_thread_notify.
18398 (thread_db_init): Set thread_db_use_events. Check use_events.
18399 * utils.c (fatal, warning): Correct message prefix.
18401 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
18403 * Makefile.in (clean): Remove new files.
18404 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
18405 (powerpc-64.o, powerpc-64.c): New rules.
18406 * configure.srv: Use alternate register sets for powerpc64-*-linux*
18407 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
18409 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
18411 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
18412 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
18413 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
18414 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
18415 (target_regsets): Add AltiVec and SPE register sets.
18416 * configure.ac: Check for AltiVec and SPE.
18417 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
18418 (ppc_fill_vrregset, ppc_store_vrregset): New.
18419 (target_regsets): Add AltiVec register set.
18420 * configure: Regenerated.
18422 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
18424 * linux-low.c (O_LARGEFILE): Define.
18425 (linux_read_memory): Use /proc/PID/mem.
18426 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
18427 * configure, config.in: Regenerated.
18429 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
18431 * linux-low.c (linux_wait_for_event): Do not pass signals while
18434 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18436 * win32-low.c (create_process): New.
18437 (win32_create_inferior): Use create_process instead of
18438 CreateProcess. If create_process failed retry appending an ".exe"
18439 suffix. Store the GetLastError result immediatelly after
18440 create_process calls and use it on the call to error.
18442 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
18444 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
18446 2007-08-23 Joel Brobecker <brobecker@adacore.com>
18448 * configure.ac: Switch license to GPLv3.
18450 2007-08-01 Michael Snyder <msnyder@access-company.com>
18452 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
18454 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
18456 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
18458 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
18459 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
18460 CloseToolhelp32Snapshot.
18461 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
18462 CloseToolhelp32Snapshot.
18464 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
18466 * server.c (main): Check for inferior exit before main loop.
18468 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
18470 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
18471 instead of on tmp_desc.
18473 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
18474 Daniel Jacobowitz <dan@codesourcery.com>
18476 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
18477 (add_thread): Minor cleanups.
18478 (clear_inferiors): Move lower in the file. Clear the DLL
18480 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
18481 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
18482 (xml_escape_text): New.
18483 * server.c (handle_query): Handle qXfer:libraries:read. Report it
18485 (handle_v_cont): Report errors.
18486 (gdbserver_version): Update.
18487 (main): Correct size of own_buf. Do not report initial DLL events.
18488 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
18489 (unloaded_dll, xml_escape_text): New.
18490 * win32-low.c (enum target_waitkind): Update comments.
18491 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
18492 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
18493 (win32_EnumProcessModules, win32_GetModuleInformation)
18494 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
18495 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
18496 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
18497 (win32_Module32First, win32_Module32Next, load_toolhelp)
18498 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
18499 (get_child_debug_event): Handle DLL events.
18500 (win32_wait): Likewise.
18502 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
18504 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
18505 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
18507 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18509 * win32-low.c (handle_output_debug_string): Ignore event if not
18512 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
18514 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
18516 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
18518 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
18520 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
18522 * inferiors.c (change_inferior_id): Add comment.
18523 * linux-low.c (check_removed_breakpoint): Add an early
18524 prototype. Improve debug output.
18525 (linux_attach): Doc update.
18526 (linux_detach_one_process, linux_detach): Clean up before releasing
18528 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
18529 * linux-low.h (struct process_info): Doc improvement.
18530 * mem-break.c (delete_all_breakpoints): New.
18531 * mem-break.h (delete_all_breakpoints): New prototype.
18532 * thread-db.c (find_first_thread): New.
18533 (thread_db_create_event): Call it instead of
18534 thread_db_find_new_threads. Clean up unused variables.
18535 (maybe_attach_thread): Remove first thread handling.
18536 (thread_db_find_new_threads): Use find_first_thread.
18537 (thread_db_get_tls_address): Likewise.
18539 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
18541 * thread-db.c (thread_db_find_new_threads): Add prototype.
18542 (thread_db_create_event): Check for the main thread before adding
18544 (maybe_attach_thread): Only enable event reporting if TID == 0.
18545 (thread_db_get_tls_address): Check for new threads.
18547 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
18549 * linux-low.c (linux_create_inferior): Try execv before execvp.
18550 * spu-low.c (spu_create_inferior): Likewise.
18552 2007-06-13 Mike Frysinger <vapier@gentoo.org>
18554 * linux-low.c (linux_create_inferior): Change execv to execvp.
18555 * spu-low.c (spu_create_inferior): Likewies.
18557 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
18559 * Makefile.in (clean): Clean new files instead of deleted ones.
18560 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
18561 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
18563 * configure.srv: Specify XML files and new regformats for MIPS and
18565 * linux-mips-low.c (mips_num_regs): Set to only used registers.
18566 (mips_regmap): Do not fetch $0. Remove unused registers. Add
18567 an entry for the restart register.
18568 (mips_cannot_fetch_register, mips_cannot_store_register)
18569 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
18570 register names to match the XML descriptions.
18571 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
18572 restart register instead of $0.
18574 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18575 Markus Deuling <deuling@de.ibm.com>
18577 * remote-utils.c (decode_xfer_write): New function.
18578 * server.h (decode_xfer_write): Add prototype.
18579 * server.c (handle_query): Add PACKET_LEN argument. Support
18580 qXfer:spu:read and qXfer:spu:write packets.
18581 (main): Pass packet_len to handle_query.
18582 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
18583 * target.h (target_ops): Add qxfer_spu.
18585 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
18587 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
18588 accessing non-seekable spufs files.
18590 2007-05-16 Markus Deuling <deuling@de.ibm.com>
18592 * server.c (handle_query): Add reply for qC packet.
18594 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18595 Leo Zayas <lerele@champenstudios@com>
18597 * server.h (check_remote_input_interrupt_request): New function.
18598 * remote_utils.c (INVALID_DESCRIPTOR): New define.
18599 (remote_desc): Initialize with INVALID_DESCRIPTOR.
18600 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
18601 (check_remote_input_interrupt_request): New function.
18602 * server.h (check_remote_input_interrupt_request): Declare.
18603 * win32-low.c (winapi_DebugBreakProcess,
18604 winapi_GenerateConsoleCtrlEvent): New typedefs.
18605 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
18607 (win32_wait): Check for remote interrupt request
18608 with check_remote_input_interrupt_request.
18609 (win32_request_interrupt): New function.
18610 (win32_target_op): Set request_interrupt to win32_request_interrupt.
18612 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18614 * win32-low.c (debug_registers_changed,
18615 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
18616 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
18617 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
18618 (thread_rec): Get context using the low target.
18619 (child_add_thread): Call thread_added on the low target,
18620 which does the same thing.
18622 (do_initial_child_stuff): Remove debug registers references.
18623 Set context using the low target. Resume threads after
18624 setting the contexts.
18625 (child_continue): Remove dead variable. Remove debug
18626 registers references.
18627 (child_fetch_inferior_registers): Go through the low target.
18628 (do_child_store_inferior_registers): Remove.
18629 (child_store_inferior_registers): Go through the low target.
18630 (win32_resume): Remove debug registers references.
18631 Set context using the low target.
18632 (handle_exception): Change return type to void. Don't record
18633 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
18634 first chance exception.
18635 (get_child_debug_event): Change return type to void. Remove
18636 goto loop. Always return after waiting for debug event.
18637 (win32_wait): Convert to switch statement. Handle spurious
18640 * win32-i386-low.c (debug_registers_changed,
18641 debug_registers_used): New.
18642 (initial_stuff): Rename to ...
18643 (i386_initial_stuff): ... this. Clear debug registers
18645 (store_debug_registers): Delete.
18646 (i386_get_thread_context): New.
18647 (load_debug_registers): Delete.
18648 (i386_set_thread_context): New.
18649 (i386_thread_added): New.
18650 (single_step): Rename to ...
18651 (i386_single_step): ... this.
18652 (do_fetch_inferior_registers): Rename to ...
18653 (i386_fetch_inferior_register): ... this.
18654 (i386_store_inferior_register): New.
18655 (the_low_target): Adapt to new interface.
18657 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
18658 (arm_get_thread_context): New.
18659 (arm_set_thread_context): New.
18661 (do_fetch_inferior_registers): Rename to ...
18662 (arm_fetch_inferior_register): ... this.
18663 (arm_store_inferior_register): New.
18664 (arm_wince_breakpoint): Reimplement as unsigned long.
18665 (arm_wince_breakpoint_len): Define.
18666 (the_low_target): Adapt to new interface.
18668 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
18669 load_debug_registers. Add get_thread_context, set_thread_context,
18670 thread_added and store_inferior_register. Rename
18671 fetch_inferior_registers to fetch_inferior_register.
18672 (regptr): Remove declaration.
18674 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18676 * linux-low.c (linux_detach): Change return type to int. Return 0.
18677 * spu-low.c (spu_detach): Likewise.
18679 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18681 * target.h (target_ops): Change return type of detach to int.
18683 (join_inferior): New.
18684 * server.c (main): Don't skip detach support on mingw32.
18685 If the inferior doesn't support detaching return error.
18686 Call join_inferior instead of using waitpid.
18687 * linux-low.c (linux_join): New.
18688 (linux_target_op): Add linux_join.
18689 * spu-low.c (spu_join): New.
18690 (spu_target_ops): Add spu_join.
18691 * win32-low.c (win32_detach): Adapt to new interface.
18692 Reopen current_process_handle before detaching. Issue a child
18693 resume before detaching.
18695 (win32_target_op): Add win32_join.
18697 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18699 * win32-low.c (win32-attach): Fix return value.
18700 * target.h (target_ops): Describe ATTACH return values.
18702 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18704 * win32-low.c (GETPROCADDRESS): Define.
18705 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
18706 (winapi_DebugSetProcessKillOnExit): Likewise.
18707 (win32_create_inferior): Force usage of ansi CreateProcessA.
18708 (win32_attach): Use GETPROCADDRESS.
18709 (win32_detach): Likewise.
18711 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
18713 * win32-low.c (win32_wait): Don't use WSTOPSIG.
18715 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
18717 * win32-low.c: Commit leftover changes from 2007-03-29.
18719 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18721 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
18722 fields short instead of int. Add explicit padding.
18723 (i387_cache_to_fsave): Remove unnecessary casts.
18724 (i387_fsave_to_cache): Doc fix.
18725 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
18727 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
18729 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
18730 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
18732 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18734 * configure.srv (arm*-*-mingw32ce*): Move near the other
18737 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
18739 * configure.ac: Add errno checking.
18740 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
18741 sys/file.h and malloc.h.
18742 (AC_CHECK_DECLS): Add perror.
18743 (srv_mingwce): Handle.
18744 * configure.srv (i[34567]86-*-cygwin*): Add
18745 win32-i386-low.o to srv_tgtobj.
18746 (i[34567]86-*-mingw*): Likewise.
18747 (arm*-*-mingw32ce*): Add case.
18748 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18749 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
18750 [__MINGW32CE__] (strerror): New function.
18751 [__MINGW32CE__] (errno): Define to GetLastError.
18752 [__MINGW32CE__] (COUNTOF): New macro.
18753 (remote_open): Remove extra close call.
18754 * mem-break.c (delete_breakpoint_at): New function.
18755 * mem-break.h (delete_breakpoint_at): Declare.
18756 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
18757 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
18758 [USE_WIN32API] (read, write): Add char* casts.
18759 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
18760 * server.h: Include wincecompat.h on Windows CE.
18761 [HAVE_ERRNO_H]: Check.
18762 (perror): Declare if not declared.
18763 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
18764 (perror_with_name): Remove errno declaration.
18765 * wincecompat.h: New.
18766 * wincecompat.c: New.
18767 * win32-low.h: New.
18768 * win32-arm-low.c: New.
18769 * win32-i386-low.c: New.
18770 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
18771 (OUTMSG2): Make it safe.
18773 (COUNTOF): New macro.
18774 (NUM_REGS): Get it from the low target.
18775 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
18776 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
18777 (thread_rec): Let low target handle debug registers.
18778 (child_add_thread): Likewise.
18779 (child_init_thread_list): Likewise.
18780 (continue_one_thread): Likewise.
18782 (do_child_fetch_inferior_registers): Move to ...
18783 * win32-i386-low.c: ... here, and rename to ...
18784 (do_fetch_inferior_registers): ... this.
18785 * win32-low.c (child_fetch_inferior_registers):
18786 Go through the low target.
18787 (do_child_store_inferior_registers): Use regptr.
18788 (strwinerror): New function.
18789 (win32_create_inferior): Handle Windows CE.
18790 Use strwinerror instead of strerror on Windows error
18791 codes. Add program to the error output.
18792 Don't close the main thread handle on Windows CE.
18793 (win32_attach): Use coredll.dll on Windows CE.
18794 (win32_kill): Close current process and current
18796 (win32_detach): Use coredll.dll on Windows CE.
18797 (win32_resume): Let low target handle debug registers, and
18799 (handle_exception): Add/Remove initial breakpoint. Avoid
18800 non-existant WSTOPSIG on Windows CE.
18801 (win32_read_inferior_memory): Cast to remove warning.
18802 (win32_arch_string): Go through the low target.
18803 (initialize_low): Call set_breakpoint_data with the low
18804 target's breakpoint.
18805 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
18806 FOP_REGNUM, mappings): Move to ...
18807 * win32-i386-low.c: ... here.
18808 * win32-low.c (win32_thread_info): Move to ...
18809 * win32-low.h: ... here.
18810 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
18811 win32-arm-low.c and wincecompat.c.
18812 (all:): Add $EXEEXT.
18813 (install-only:): Likewise.
18814 (gdbserver:): Likewise.
18815 (gdbreplay:): Likewise.
18816 * config.in: Regenerate.
18817 * configure: Regenerate.
18819 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18821 * win32-low.c: Rename typedef thread_info to
18822 win32_thread_info throughout.
18824 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
18826 * win32-i386-low.c: Rename to ...
18827 * win32-low.c: ... this.
18828 * configure.srv: Replace win32-i386-low.o with win32-low.o.
18829 * Makefile.in: Likewise.
18831 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
18833 * remote-utils.c (monitor_output): Constify msg parameter.
18834 * server.h (monitor_output): Likewise.
18835 * win32-i386-low.c (handle_output_debug_string): New.
18836 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
18837 handle_output_debug_string.
18838 (get_child_debug_event): Likewise.
18840 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
18842 * server.c (main): Correct strtoul check.
18844 2007-03-27 Jon Ringle <jon@ringle.org>
18846 * linux-low.c: Check __ARCH_HAS_MMU__ also.
18848 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
18850 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
18852 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
18854 * terminal.h: Check HAVE_SGTTY_H.
18856 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
18858 * remote-utils.c (remote_open): Print out the assigned port number.
18860 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
18862 * remote-utils.c (monitor_output): New function.
18863 * server.c (debug_threads): Define here.
18864 (monitor_show_help): New function.
18865 (handle_query): Handle qRcmd.
18866 (main): Do not handle 'd' packet.
18867 * server.h (debug_threads, remote_debug, monitor_output): Declare.
18868 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
18871 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18873 * Makefile.in (EXEEXT): New.
18874 (clean): Use $(EXEEXT).
18876 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18878 * target.h (target_ops): Rename send_signal to request_interrupt,
18879 and remove enum target_signal parameter.
18880 * linux-low.c (linux_request_interrupt): Rename from
18881 linux_send_signal, and always send SIGINT.
18882 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
18883 and always send SIGINT.
18884 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
18886 (input_interrupt): Likewise.
18888 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
18890 * server.c (get_features_xml): Check if target implemented
18892 * win32-i386-low.c (win32_arch_string): New.
18893 (win32_target_ops): Add win32_arch_string as arch_string member.
18895 2007-02-22 Markus Deuling <deuling@de.ibm.com>
18897 * spu-low.c (spu_arch_string): New.
18898 (spu_target_ops): Add spu_arch_string.
18900 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
18902 * remote-utils.c: Remove HAVE_TERMINAL_H check.
18903 * configure.ac: Do not check for terminal.h.
18904 * configure, config.in: Regenerated.
18906 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
18908 * Makefile.in (OBS): Add $(XML_BUILTIN).
18909 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
18911 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
18912 (arm-with-iwmmxt.c): New.
18913 * config.in, configure: Regenerate.
18914 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
18915 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
18916 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
18917 (arm*-*-linux*): Add iWMMXt and regset support.
18918 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
18919 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
18920 (arm_store_wmmxregset, target_regsets): New.
18921 * server.c (get_features_xml): Take annex argument. Check builtin
18923 (handle_query): Handle multiple annexes.
18925 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18927 * remote-utils.c [USE_WIN32API] (read, write): Define.
18928 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
18931 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
18933 * linux-i386-low.c (the_low_target): Set arch_string.
18934 * linux-x86-64-low.c (the_low_target): Likewise.
18935 * linux-low.c (linux_arch_string): New.
18936 (linux_target_ops): Add it.
18937 * linux-low.h (struct linux_target_ops): Add arch_string.
18938 * server.c (write_qxfer_response): Use const void * for DATA.
18939 (get_features_xml): New.
18940 (handle_query): Handle qXfer:features:read. Report it for qSupported.
18941 * target.h (struct target_ops): Add arch_string method.
18943 2007-01-03 Denis Pilat <denis.pilat@st.com>
18944 Daniel Jacobowitz <dan@codesourcery.com>
18946 * linux-low.c (linux_kill): Handle being called with no threads.
18947 * win32-i386-low.c (win32_kill): Likewise.
18948 (get_child_debug_event): Clear current_process_handle.
18950 2006-12-30 Denis PILAT <denis.pilat@st.com>
18951 Daniel Jacobowitz <dan@codesourcery.com>
18953 * remote-utils.c (remote_open): Check the type of specified
18954 serial port devices before opening them.
18955 * server.c (main): Kill the inferior if an error occurs during
18956 the first remote_open.
18958 2006-12-05 Markus Deuling <deuling@de.ibm.com>
18960 * README: Update supported targets.
18962 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
18964 * Makefile.in (clean): Remove reg-mips64.c.
18965 (reg-mips64.c, reg-mips64.o): New rules.
18966 * configure.srv: Handle mips64. Include regset support for mips.
18967 * linux-mips-low.c (union mips_register): New.
18968 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
18969 (mips_breakpoint, mips_breakpoint_at): Use int.
18970 (mips_collect_register, mips_supply_register)
18971 (mips_collect_register_32bit, mips_supply_register_32bit)
18972 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18973 (mips_store_fpregset, target_regsets): New.
18974 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
18976 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
18978 * configure.srv: Add target "spu*-*-*".
18979 * Makefile.in (clean): Remove reg-spu.c.
18980 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
18981 * spu-low.c: New file.
18983 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18985 * configure.ac: Correct td_thr_tls_get_addr test.
18986 * configure: Regenerated.
18988 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
18990 * linux-low.c (linux_wait_for_event): Reformat. Use the
18991 pass_signals array.
18992 * remote-utils.c (decode_address_to_semicolon): New.
18993 * server.c (pass_signals, handle_general_set): New.
18994 (handle_query): Mention QPassSignals for qSupported.
18995 (main): Call handle_general_set.
18996 * server.h (pass_signals, decode_address_to_semicolon): New.
18998 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
19000 * server.c (handle_query): Correct error handling for read_auxv.
19002 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
19004 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
19005 and srv_linux_thread_db to yes.
19006 * linux-s390-low.c (s390_fill_gregset): New function.
19007 (target_regsets): Define data structure.
19009 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
19011 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
19012 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
19013 * config.in, configure: Regenerated.
19014 * inferiors.c (gdb_id_to_thread): New function.
19015 (gdb_id_to_thread_id): Use it.
19016 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
19017 * linux-low.h (struct process_info): Add th member.
19018 (thread_db_get_tls_address): New prototype.
19019 * remote-utils.c (decode_address): Make non-static.
19020 * server.c (handle_query): Handle qGetTLSAddr.
19021 * server.h (gdb_id_to_thread, decode_address): New prototypes.
19022 * target.h (struct target_ops): Add get_tls_address.
19023 * thread-db.c (maybe_attach_thread): Save the thread handle.
19024 (thread_db_get_tls_address): New.
19026 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
19028 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
19029 (linux_resume_one_process): Take a siginfo_t *. Update all
19030 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
19031 (struct pending_signals): Add a siginfo_t.
19032 (linux_wait_for_process): Always set last_status.
19033 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
19034 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
19035 * linux-low.h (struct process_info): Add last_status.
19037 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
19039 * remote-utils.c (try_rle): New function.
19040 (putpkt_binary): Use it.
19042 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
19044 * Makefile.in (clean): Clean reg-x86-64-linux.c.
19045 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
19046 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
19047 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
19048 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
19051 2006-08-08 Richard Sandiford <richard@codesourcery.com>
19053 * server.c (terminal_fd): New variable.
19054 (old_foreground_pgrp): Likewise.
19055 (restore_old_foreground_pgrp): New function.
19056 (start_inferior): Record the terminal file descriptor in terminal_fd
19057 and its original foreground group in old_foreground_pgrp. Register
19058 restore_old_foreground_pgrp with atexit().
19060 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
19062 * server.c (handle_query): Correct qPart to qXfer.
19064 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
19066 * configure.ac: Check for more headers which are missing on
19067 Windows. Automatically supply -lwsock32 and USE_WIN32API.
19068 * configure.srv: Add Cygwin and mingw32.
19069 * remote-utils.c: Don't include headers unconditionally which
19070 are missing on mingw32. Include <winsock.h> for mingw32.
19071 (remote_open): Adjust for mingw32 support. Flush
19072 standard error after writing to it.
19073 (remote_close, putpkt_binary, input_interrupt, block_async_io)
19074 (unblock_async_io, enable_async_io, disable_async_io)
19075 (readchar, getpkt): Update for Winsock support.
19076 (prepare_resume_reply): Expect a protocol signal number.
19077 * server.c: Disable <sys/wait.h> on mingw32.
19078 (start_inferior): Adjust for mingw32 support. Flush
19079 standard error after writing to it.
19080 (attach_inferior): Likewise. Use protocol signal
19082 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
19084 * win32-i386-low.c: New file.
19085 * Makefile.in (XM_CLIBS): Set.
19086 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
19087 (win32-i386-low.o): New dependency rule.
19088 * linux-low.c (linux_wait): Use target signal numbers.
19089 * target.h (struct target_ops): Doc fix.
19090 * server.h (target_signal_to_name): New prototype.
19091 * gdbreplay.c: Don't include headers unconditionally which
19092 are missing on mingw32. Include <winsock.h> for mingw32.
19093 (remote_close, remote_open): Adjust for Winsock support.
19094 * configure, config.in: Regenerated.
19096 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
19098 * server.c (decode_xfer_read, write_qxfer_response): New.
19099 (handle_query): Take a packet length argument. Handle
19100 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
19101 the qSupported response.
19102 (main): Update call to handle_query.
19104 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
19106 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
19107 (putpkt_binary): Renamed from putpkt and adjusted for binary
19109 (putpkt): New wrapper for putpkt_binary.
19110 (readchar): Don't mask off the high bit.
19111 (decode_X_packet): New function.
19112 * server.c (main): Call putpkt_binary if a handler sets the packet
19113 length. Save the length of the incoming packet. Handle 'X'.
19114 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
19116 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
19118 * server.c (handle_query): Handle qSupported.
19120 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19122 * remote-utils.c (all_symbols_looked_up): New variable.
19123 (look_up_one_symbol): Check it.
19124 * server.h (look_up_one_symbol): New declaration.
19125 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
19127 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
19129 * Makefile.in (linux-arm-low.o): Update dependencies.
19130 * linux-arm-low.c: Include "gdb_proc_service.h".
19131 (PTRACE_GET_THREAD_AREA): Define.
19132 (ps_get_thread_area): New function.
19134 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
19136 * configure.srv (m68k*-*-uclinux*): New target.
19137 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
19138 (linux_resume_one_process): Remove extraneous cast.
19139 (linux_read_offsets): New.
19140 (linux_target_op): Add linux_read_offsets on mmuless systems.
19141 * server.c (handle_query): Add qOffsets logic.
19142 * target.h (struct target_ops): Add read_offsets.
19144 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19146 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
19147 (PTRACE_GET_THREAD_AREA): Define.
19148 (ps_get_thread_area): New function.
19149 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
19150 (linux-x86-64-low.o): Update.
19152 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
19154 * configure.ac: Remove checks for prfpregset_t.
19155 * gdb_proc_service.h: New file.
19156 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
19157 new "gdb_proc_service.h".
19158 * proc-service.c: Likewise.
19159 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
19160 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
19161 * Makefile.in (gdb_proc_service_h): Updated.
19162 * configure, config.in: Regenerated.
19164 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19166 * remote-utils.c (prepare_resume_reply): Move declaration
19167 of gdb_id_from_wait to the top of the block.
19169 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
19171 * linux-low.c (regsets_store_inferior_registers): Read the regset
19172 from the target before filling it.
19174 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
19176 * server.c (attach_inferior): Return SIGTRAP for a successful
19179 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
19181 * Makefile.in (OBS): Add version.o.
19182 (STAGESTUFF): Delete.
19183 (version.o): Add dependencies.
19184 (version.c): Replace rule.
19185 (clean): Remove version.c.
19186 * server.c (gdbserver_version): New.
19187 (gdbserver_usage): Use printf.
19188 (main): Handle --version and --help.
19189 * server.h (version, host_name): Add declarations.
19191 2005-12-23 Eli Zaretskii <eliz@gnu.org>
19203 * linux-x86-64-low.c:
19205 * linux-s390-low.c:
19206 * linux-ppc64-low.c:
19208 * linux-mips-low.c:
19209 * linux-m68k-low.c:
19210 * linux-m32r-low.c:
19213 * linux-ia64-low.c:
19214 * linux-i386-low.c:
19215 * linux-crisv32-low.c:
19227 * gdbserver.1: Add (C) after Copyright. Update the FSF
19230 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
19232 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
19233 (arm_breakpoint_at): Recognize both breakpoints.
19234 (the_low_target): Use the correct breakpoint instruction.
19236 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
19238 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
19239 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
19240 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
19241 (the_low_target): Update.
19243 2005-10-25 Andreas Schwab <schwab@suse.de>
19245 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
19247 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
19248 (ia64_num_regs): Reduce to 462.
19250 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
19252 * acinclude.m4: Correct quoting.
19253 * aclocal.m4: Regenerated.
19255 Suggested by SZOKOVACS Robert <szo@ies.hu>:
19256 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
19257 (thread_db_init): Call thread_db_err_str.
19258 * configure.ac: Check for TD_VERSION.
19259 * config.in, configure: Regenerated.
19261 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19263 * server.h (error, fatal, warning): Add ATTR_FORMAT.
19265 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19267 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
19268 is not available. Define HAVE_PTRACE_GETREGS if it is.
19269 * config.in, configure: Regenerated.
19270 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
19271 * linux-i386-low.c, linux-m68k-low.c: Update to use
19272 HAVE_PTRACE_GETREGS.
19273 * linux-low.c (regsets_fetch_inferior_registers)
19274 (regsets_store_inferior_registers): Only return 0 if we processed
19276 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
19277 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
19279 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19281 * inferiors.c (struct thread_info): Add gdb_id.
19282 (add_thread): Add gdb_id argument.
19283 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
19284 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
19285 calls to add_thread.
19286 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
19287 * server.c (handle_query): Use thread_to_gdb_id.
19288 (handle_v_cont, main): Use gdb_id_to_thread_id.
19289 * server.h (add_thread): Update prototype.
19290 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
19293 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
19295 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
19296 left-padded registers.
19297 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
19298 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
19300 2005-07-01 Steve Ellcey <sje@cup.hp.com>
19302 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
19303 * configure: Regenerate.
19304 * config.in: Regenerate.
19305 * server.h (NEED_DECLARATION_STRERROR):
19306 Replace with !HAVE_DECL_STRERROR.
19308 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
19310 * linux-low.c (linux_wait, linux_send_signal): Don't test
19311 an unsigned long variable for > 0 if it could be MAX_ULONG.
19312 * server.c (myresume): Likewise.
19313 * target.c (set_desired_inferior): Likewise.
19315 2005-06-13 Mark Kettenis <kettenis@gnu.org>
19317 * configure.ac: Simplify and improve check for socklen_t.
19318 * configure, config.in: Regenerate.
19320 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
19322 * acconfig.h: Remove.
19323 * configure.ac: Add a test for socklen_t. Use three-argument
19324 AC_DEFINE throughout.
19325 * config.in: Regenerated using autoheader 2.59.
19326 * configure: Regenerated.
19328 * gdbreplay.c (socklen_t): Provide a default.
19329 (remote_open): Use socklen_t.
19330 * remote-utils.c (socklen_t): Provide a default.
19331 (remote_open): Use socklen_t.
19332 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
19335 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
19337 * linux-low.c (linux_read_memory, linux_write_memory)
19338 (linux_read_auxv): Likewise.
19339 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
19340 (check_mem_write): Likewise.
19341 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
19343 * regcache.c (struct inferior_rgcache_data, registers_to_string)
19344 (registers_from_string, register_data): Likewise.
19345 * server.c (handle_query, main): Likewise.
19346 * server.h (convert_ascii_to_int, convert_int_to_ascii)
19347 (decode_M_packet): Likewise.
19348 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
19349 * target.h (struct target_ops): Update read_memory, write_memory,
19351 (read_inferior_memory, write_inferior_memory): Update.
19352 * linux-low.h (struct linux_target_ops): Change type of breakpoint
19353 to unsigned char *.
19354 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
19355 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
19356 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
19357 linux-s390-low.c, linux-sh-low.c: Update for changes in
19358 read_inferior_memory and the_low_target->breakpoint.
19360 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
19362 * Makefile.in (SFILES): Add linux-ppc64-low.c.
19363 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
19364 * configure.srv: Add powerpc64-*-linux*.
19365 * linux-ppc64-low.c: New file.
19367 2005-05-23 Orjan Friberg <orjanf@axis.com>
19369 * linux-cris-low.c: New file with support for CRIS.
19370 * linux-crisv32-low.c: Ditto for CRISv32.
19371 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
19372 (clean): Add reg-cris.c and reg-crisv32.c.
19373 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
19374 reg-crisv32.o, and reg-crisv32.c to make rules.
19375 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
19376 recognized targets.
19378 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
19380 * linux-low.c (fetch_register): Ensure buffer size is a multiple
19381 of sizeof (PTRACE_XFER_TYPE).
19382 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
19384 2005-05-12 Orjan Friberg <orjanf@axis.com>
19386 * target.h (struct target_ops): Add insert_watchpoint,
19387 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
19388 pointers for hardware watchpoint support.
19389 * linux-low.h (struct linux_target_ops): Ditto.
19390 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
19391 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
19392 to linux_target_ops.
19393 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
19395 * server.c (main): Recognize 'Z' and 'z' packets.
19397 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
19399 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
19400 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
19401 (the_low_target): Add new members.
19403 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19405 * proc-service.c (ps_lgetregs): Search all_processes instead of
19408 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
19410 * server.c (start_inferior): Change return type to int.
19411 (attach_inferior): Change sigptr to int *.
19412 (handle_v_cont, handle_v_requests): Change signal to int *.
19413 (main): Change signal to int.
19415 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
19417 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
19418 * configure.srv: Add m32r*-*-linux*.
19419 * linux-m32r-low.c: New file.
19421 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
19423 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
19425 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
19427 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
19428 Take unsigned long arguments for PIDs.
19429 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
19430 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
19431 (wait_for_sigstop, linux_resume_one_process)
19432 (regsets_fetch_inferior_registers, linux_send_signal)
19433 (linux_read_auxv): Likewise. Update the types of variables holding
19434 PIDs. Update format string specifiers.
19435 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
19436 * remote-utils.c (prepare_resume_reply): Likewise.
19437 * server.c (cont_thread, general_thread, step_thread)
19438 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
19440 (handle_query): Update format specifiers.
19441 (handle_v_cont, main): Use strtoul for thread IDs.
19442 * server.h (struct inferior_list_entry): Use unsigned long for ID.
19443 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
19444 (general_thread, step_thread, thread_from_wait)
19445 (old_thread_from_wait): Update.
19446 * target.h (struct thread_resume): Use unsigned long for THREAD.
19447 (struct target_ops): Use unsigned long for arguments to attach and
19450 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
19452 * acinclude.m4: Include bfd/bfd.m4 directly.
19453 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
19454 <agriffis@toolchain.org>.
19455 * aclocal.m4, configure: Regenerated.
19457 2005-01-07 Andrew Cagney <cagney@gnu.org>
19459 * configure.ac: Rename configure.in, require autoconf 2.59.
19460 * configure: Re-generate.
19462 2004-12-08 Daniel Jacobowitz <dan@debian.org>
19464 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
19465 LIBS when finished.
19466 * aclocal.m4: Regenerated.
19467 * configure: Regenerated.
19469 2004-11-21 Andreas Schwab <schwab@suse.de>
19471 * linux-m68k-low.c (m68k_num_gregs): Define.
19472 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
19473 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
19474 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
19475 (m68k_breakpoint_at): New. Add to the_low_target.
19477 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
19478 srv_linux_thread_db to yes.
19480 2004-10-20 Joel Brobecker <brobecker@gnat.com>
19482 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
19483 (ARCH_SET_FS): Likewise.
19484 (ARCH_GET_FS): Likewise.
19485 (ARCH_GET_GS): Likewise.
19487 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19489 * linux-i386-low.c (ps_get_thread_area): New.
19490 * linux-x86-64-low.c (ps_get_thread_area): New.
19491 * linux-low.c: Include <sys/syscall.h>.
19492 (linux_kill_one_process): Don't kill the first thread here.
19493 (linux_kill): Kill the first thread here.
19494 (kill_lwp): New function.
19495 (send_sigstop, linux_send_signal): Use it.
19496 * proc-service.c: Clean up #ifdefs.
19497 (fpregset_info): Delete.
19498 (ps_lgetregs): Update and enable implementation.
19499 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
19501 * remote-utils.c (struct sym_cache, symbol_cache): New.
19502 (input_interrupt): Print a clearer message.
19503 (async_io_enabled): New variable.
19504 (enable_async_io, disable_async_io): Use it. Update comments.
19505 (look_up_one_symbol): Use the symbol cache.
19506 * thread-db.c (thread_db_look_up_symbols): New function.
19507 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
19509 2004-10-16 Daniel Jacobowitz <dan@debian.org>
19511 * configure.in: Test for -rdynamic.
19512 * configure: Regenerated.
19513 * Makefile (INTERNAL_LDFLAGS): New.
19514 (gdbserver, gdbreplay): Use it.
19516 2004-09-02 Andrew Cagney <cagney@gnu.org>
19518 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
19520 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
19522 * linux-low.c (linux_wait): Clear all_processes list also.
19524 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19526 * linux-low.c: Include <errno.h>. Remove extern declaration of
19529 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
19531 * gdbreplay.c, server.h, utils.c: Update copyright years.
19533 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19535 * server.c (main): Print child status or termination signal from
19536 variable 'signal', not 'sig'.
19538 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
19540 * linux-low.c (linux_read_memory): Change return type to
19541 int. Check for and return error from ptrace().
19542 * target.c (read_inferior_memory): Change return type to int. Pass
19543 back return status from the_target->read_memory().
19544 * target.h (struct target_ops): Adapt *read_memory() prototype.
19546 (read_inferior_memory): Adapt prototype.
19547 * server.c (main): Return an error packet if
19548 read_inferior_memory() returns an error.
19550 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
19552 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
19553 Unify with other clean targets.
19555 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19557 * server.c (handle_v_cont): Call set_desired_inferior.
19559 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19561 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
19563 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19565 * linux-low.c (linux_wait): Unblock async I/O.
19566 (linux_resume): Block and enable async I/O.
19567 * remote-utils.c (block_async_io, unblock_async_io): New functions.
19568 * server.h (block_async_io, unblock_async_io): Add prototypes.
19570 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19572 * remote-utils.c (remote_open): Print a status notice after
19573 opening a TCP port.
19574 * server.c (attach_inferior): Print a status notice after
19577 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
19579 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
19581 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
19583 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
19585 * server.c, target.h: Update copyright years.
19587 2004-02-25 Roland McGrath <roland@redhat.com>
19589 * target.h (struct target_ops): New member `read_auxv'.
19590 * server.c (handle_query): Handle qPart:auxv:read: query using that.
19591 * linux-low.c (linux_read_auxv): New function.
19592 (linux_target_ops): Initialize `read_auxv' member to that.
19594 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19596 Committed by Jim Blandy <jimb@redhat.com>.
19598 * linux-s390-low.c (s390_num_regs): Update.
19599 (s390_regmap): Remove control registers. Use __s390x__ predefine
19600 instead of GPR_SIZE to distiguish s390 and s390x targets.
19602 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
19604 * linux-low.c: Update copyright year.
19605 (check_removed_breakpoint): Clear pending_is_breakpoint.
19606 (linux_set_resume_request, linux_queue_one_thread)
19607 (resume_status_pending_p): New functions.
19608 (linux_continue_one_thread): Use process->resume.
19609 (linux_resume): Only resume threads if there are no pending events.
19610 * linux-low.h (struct process_info): Add resume request
19613 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
19615 * regcache.c (new_register_cache): Clear the allocated register
19616 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
19618 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
19620 * linux-low.c (linux_resume): Take a struct thread_resume *
19622 (linux_wait): Update call.
19623 (resume_ptr): New static variable.
19624 (linux_continue_one_thread): Renamed from
19625 linux_continue_one_process. Use resume_ptr.
19626 (linux_resume): Use linux_continue_one_thread.
19627 * server.c (handle_v_cont, handle_v_requests): New functions.
19628 (myresume): New function.
19629 (main): Handle 'v' case.
19630 * target.h (struct thread_resume): New type.
19631 (struct target_ops): Change argument of "resume" to struct
19633 (myresume): Delete macro.
19635 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
19637 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
19638 (uninstall): Support DESTDIR.
19640 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
19642 * configure.srv: Add xscale*linux copy of arm*linux entry.
19644 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
19646 * linux-arm-low.c (arm_reinsert_addr): New function.
19647 (the_low_target): Add arm_reinsert_addr.
19649 2003-07-08 Mark Kettenis <kettenis@gnu.org>
19651 * mem-break.c: Remove whitespace at end of file.
19653 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19655 * configure.in: Check whether we need to prototype strerror.
19656 * server.h: Optionally prototype strerror.
19657 * gdbreplay.c (perror_with_name): Use strerror.
19658 * linux-low.c (linux_attach_lwp): Use strerror.
19659 * utils.c (perror_with_name): Use strerror.
19660 * config.in, configure: Regenerated.
19662 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
19664 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
19665 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
19667 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
19669 * Makefile.in (SFILES): Update.
19670 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
19671 low-sun3.c: Remove files.
19673 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
19675 * linux-low.c: Move comment to linux_thread_alive where it belonged.
19676 (linux_detach_one_process, linux_detach): New functions.
19677 (linux_target_ops): Add linux_detach.
19678 * server.c (main): Handle 'D' packet.
19679 * target.h (struct target_ops): Add "detach" member.
19680 (detach_inferior): Define.
19682 2003-06-13 Mark Kettenis <kettenis@gnu.org>
19684 From Kelley Cook <kelleycook@wideopenwest.com>:
19685 * configure.srv: Accept i[34567]86 variants.
19687 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
19689 * linux-low.c (linux_wait_for_event): Correct comment typos.
19690 (linux_resume_one_process): Call check_removed_breakpoint.
19691 (linux_send_signal): New function.
19692 (linux_target_ops): Add linux_send_signal.
19693 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
19695 * target.h (struct target_ops): Add send_signal.
19697 2003-05-29 Jim Blandy <jimb@redhat.com>
19699 * linux-low.c (usr_store_inferior_registers): Transfer buf in
19700 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
19701 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
19702 away part of the register's value.
19704 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
19706 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
19707 (linux_wait_for_event, linux_init_signals): Likewise.
19709 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
19711 * configure.in: Check for stdlib.h.
19712 * configure: Regenerated.
19713 * config.in: Regenerated.
19715 2003-01-04 Andreas Schwab <schwab@suse.de>
19717 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
19719 2003-01-02 Andrew Cagney <ac131313@redhat.com>
19721 * Makefile.in: Remove obsolete code.
19723 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
19725 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
19726 defined(PT_FPR0_HI).
19728 2002-11-17 Stuart Hughes <seh@zee2.com>
19730 * linux-arm-low.c (arm_num_regs): Increase.
19731 (arm_regmap): Include status register.
19733 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
19735 * linux-low.c (register_addr): Remove incorrect -1 check.
19737 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
19739 * linux-low.c (linux_create_inferior): Call setpgid. Return
19741 (unstopped_p, linux_signal_pid): Remove.
19742 (linux_target_ops): Remove linux_signal_pid.
19743 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
19744 global instead of target method.
19745 * target.h (struct target_ops): Remove signal_pid. Update comment
19746 for create_inferior.
19747 * server.c (signal_pid): New variable.
19748 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
19749 gdbserver. Set the child to be the foreground process group.
19750 (attach_inferior): Set signal_pid.
19752 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
19754 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
19756 2002-08-20 Jim Blandy <jimb@redhat.com>
19758 * Makefile.in (LDFLAGS): Allow the configure script to establish a
19761 2002-08-01 Andrew Cagney <cagney@redhat.com>
19763 * Makefile.in: Make chill references obsolete.
19765 2002-07-24 Kevin Buettner <kevinb@redhat.com>
19767 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
19768 * configure: Regenerate.
19769 * config.in: Regenerate.
19771 2002-07-09 David O'Brien <obrien@FreeBSD.org>
19773 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
19774 (perror_with_name, remote_close, remote_open, expect, play): Static.
19776 2002-07-04 Michal Ludvig <mludvig@suse.cz>
19778 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
19779 byte offsets instead of an array of indexes.
19780 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
19782 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
19784 * regcache.c: Add comment.
19786 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
19788 * thread-db.c: New file.
19789 * proc-service.c: New file.
19790 * acinclude.m4: New file.
19791 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
19792 proc-service.o, and thread-db.o.
19793 (linux-low.o): Add USE_THREAD_DB.
19794 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
19795 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
19796 * aclocal.m4: Regenerated.
19797 * config.in: Regenerated.
19798 * configure: Regenerated.
19799 * configure.in: Check for proc_service.h, sys/procfs.h,
19800 thread_db.h, and linux/elf.h headrs.
19801 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
19802 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
19803 Check for -lthread_db and thread support.
19804 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
19805 PowerPC, and SuperH.
19806 * i387-fp.c: Constify arguments.
19807 * i387-fp.h: Likewise.
19808 * inferiors.c: (struct thread_info): Renamed from
19809 `struct inferior_info'. Remove PID member. Use generic inferior
19810 list header. All uses updated.
19811 (inferiors, signal_pid): Removed.
19812 (all_threads): New variable.
19813 (get_thread): Define.
19814 (add_inferior_to_list): New function.
19815 (for_each_inferior): New function.
19816 (change_inferior_id): New function.
19817 (add_inferior): Removed.
19818 (remove_inferior): New function.
19819 (add_thread): New function.
19820 (free_one_thread): New function.
19821 (remove_thread): New function.
19822 (clear_inferiors): Use for_each_inferior and free_one_thread.
19823 (find_inferior): New function.
19824 (find_inferior_id): New function.
19825 (inferior_target_data): Update argument type.
19826 (set_inferior_target_data): Likewise.
19827 (inferior_regcache_data): Likewise.
19828 (set_inferior_regcache_data): Likewise.
19829 * linux-low.c (linux_bp_reinsert): Remove.
19830 (all_processes, stopping_threads, using_thrads)
19831 (struct pending_signals, debug_threads, pid_of): New.
19832 (inferior_pid): Replace with macro.
19833 (struct inferior_linux_data): Remove.
19834 (get_stop_pc, add_process): New functions.
19835 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
19836 Use add_process and add_thread.
19837 (linux_attach_lwp): New function, based on old linux_attach. Use
19838 add_process and add_thread. Set stop_expected for new threads.
19839 (linux_attach): New function.
19840 (linux_kill_one_process): New function.
19841 (linux_kill): Kill all LWPs.
19842 (linux_thread_alive): Use find_inferior_id.
19843 (check_removed_breakpoints, status_pending_p): New functions.
19844 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
19845 Update. Use WNOHANG. Wait for cloned processes also. Update process
19846 struct for the found process.
19847 (linux_wait_for_event): New function.
19848 (linux_wait): Use it. Support LWPs.
19849 (send_sigstop, wait_for_sigstop, stop_all_processes)
19850 (linux_resume_one_process, linux_continue_one_process): New functions.
19851 (linux_resume): Support LWPs.
19852 (REGISTER_RAW_SIZE): Remove.
19853 (fetch_register): Use register_size instead. Call supply_register.
19854 (usr_store_inferior_registers): Likewise. Call collect_register.
19855 Fix recursive case.
19856 (regsets_fetch_inferior_registers): Improve error message.
19857 (regsets_store_inferior_registers): Add debugging.
19858 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
19859 (unstopped_p, linux_signal_pid): New functions.
19860 (linux_target_ops): Add linux_signal_pid.
19861 (linux_init_signals): New function.
19862 (initialize_low): Call it. Initialize using_threads.
19863 * regcache.c (inferior_regcache_data): Add valid
19865 (get_regcache): Fetch registers lazily. Add fetch argument
19866 and update all callers.
19867 (regcache_invalidate_one, regcache_invalidate): New
19869 (new_register_cache): Renamed from create_register_cache.
19870 Return the new regcache.
19871 (free_register_cache): Change argument to a void *.
19872 (registers_to_string, registers_from_string): Call get_regcache
19873 with fetch flag set.
19874 (register_data): Make static. Pass fetch flag to get_regcache.
19875 (supply_register): Call get_regcache with fetch flag clear.
19876 (collect_register): Call get_regcache with fetch flag set.
19877 (collect_register_as_string): New function.
19878 * regcache.h: Update.
19879 * remote-utils.c (putpkt): Flush after debug output and use
19881 Handle input interrupts while waiting for an ACK.
19882 (input_interrupt): Use signal_pid method.
19883 (getpkt): Flush after debug output and use stderr.
19884 (outreg): Use collect_register_as_string.
19885 (new_thread_notify, dead_thread_notify): New functions.
19886 (prepare_resume_reply): Check using_threads. Set thread_from_wait
19887 and general_thread.
19888 (look_up_one_symbol): Flush after debug output.
19889 * server.c (step_thread, server_waiting): New variables.
19890 (start_inferior): Don't use signal_pid. Update call to mywait.
19891 (attach_inferior): Update call to mywait.
19892 (handle_query): Handle qfThreadInfo and qsThreadInfo.
19893 (main): Don't fetch/store registers explicitly. Use
19894 set_desired_inferior. Support proposed ``Hs'' packet. Update
19896 * server.h: Update.
19897 (struct inferior_list, struct_inferior_list_entry): New.
19898 * target.c (set_desired_inferior): New.
19899 (write_inferior_memory): Constify.
19900 (mywait): New function.
19901 * target.h: Update.
19902 (struct target_ops): New signal_pid method.
19903 (mywait): Removed macro, added prototype.
19905 * linux-low.h (regset_func): Removed.
19906 (regset_fill_func, regset_store_func): New.
19907 (enum regset_type): New.
19908 (struct regset_info): Add type field. Use new operation types.
19909 (struct linux_target_ops): stop_pc renamed to get_pc.
19910 Add decr_pc_after_break and breakpoint_at.
19911 (get_process, get_thread_proess, get_process_thread)
19912 (strut process_info, all_processes, linux_attach_lwp)
19913 (thread_db_init): New.
19915 * linux-arm-low.c (arm_get_pc, arm_set_pc,
19916 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
19917 (the_low_target): Add new members.
19918 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
19919 (i386_store_fpxregset): Constify.
19920 (target_regsets): Add new kind identifier.
19921 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
19922 (i386_set_pc): Add debugging.
19923 (i386_breakpoint_at): New function.
19924 (the_low_target): Add new members.
19925 * linux-mips-low.c (mips_get_pc, mips_set_pc)
19926 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
19927 (mips_breakpoint_at): New.
19928 (the_low_target): Add new members.
19929 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
19930 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
19931 (the_low_target): Add new members.
19932 * linux-sh-low.c (sh_get_pc, sh_set_pc)
19933 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
19934 (the_low_target): Add new members.
19935 * linux-x86-64-low.c (target_regsets): Add new kind
19938 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
19940 From Martin Pool <mbp@samba.org>:
19941 * server.c (gdbserver_usage): New function.
19944 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
19946 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
19947 stop_at -> stop_pc.
19949 2002-05-04 Andrew Cagney <ac131313@redhat.com>
19951 * Makefile.in: Remove obsolete code.
19953 2002-04-24 Michal Ludvig <mludvig@suse.cz>
19955 * linux-low.c (regsets_fetch_inferior_registers),
19956 (regsets_store_inferior_registers): Removed cast to int from
19958 * regcache.h: Added declaration of struct inferior_info.
19960 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19962 * inferiors.c (struct inferior_info): Add regcache_data.
19963 (add_inferior): Call create_register_cache.
19964 (clear_inferiors): Call free_register_cache.
19965 (inferior_regcache_data, set_inferior_regcache_data): New functions.
19966 * regcache.c (struct inferior_regcache_data): New.
19967 (registers): Remove.
19968 (get_regcache): New function.
19969 (create_register_cache, free_register_cache): New functions.
19970 (set_register_cache): Don't initialize the register cache here.
19971 (registers_to_string, registers_from_string, register_data): Call
19973 * regcache.h: Add prototypes.
19974 * server.h: Likewise.
19976 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
19978 * mem-break.c: New file.
19979 * mem-break.h: New file.
19980 * Makefile.in: Add mem-break.o rule; update server.h
19982 * inferiors.c (struct inferior_info): Add target_data
19984 (clear_inferiors): Free target_data member if set.
19985 (inferior_target_data, set_inferior_target_data): New functions.
19986 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
19987 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
19988 * linux-low.c (linux_bp_reinsert): New variable.
19989 (struct inferior_linux_data): New.
19990 (linux_create_inferior): Use set_inferior_target_data.
19991 (linux_attach): Likewise. Call add_inferior.
19992 (linux_wait_for_one_inferior): New function.
19993 (linux_wait): Call it.
19994 (linux_write_memory): Add const.
19995 (initialize_low): Call set_breakpoint_data.
19996 * linux-low.h (struct linux_target_ops): Add breakpoint
19998 * server.c (attach_inferior): Remove extra add_inferior
20000 * server.h: Include mem-break.h. Update inferior.c
20002 * target.c (read_inferior_memory)
20003 (write_inferior_memory): New functions.
20004 * target.h (read_inferior_memory)
20005 (write_inferior_memory): Change macros to prototypes.
20006 (struct target_ops): Update comments. Add const to write_memory
20009 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
20011 * linux-low.c (usr_store_inferior_registers): Support
20012 registers which are allowed to fail to store.
20013 * linux-low.h (linux_target_ops): Likewise.
20014 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
20015 (ppc_cannot_store_register): FPSCR may not be storable.
20017 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20019 * server.h: Include <string.h> if HAVE_STRING_H.
20020 * ChangeLog: Correct paths in last ChangeLog entry.
20022 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20024 * linux-low.h: Remove obsolete prototypes.
20025 (struct linux_target_ops): New.
20026 (extern the_low_target): New.
20027 * linux-low.c (num_regs, regmap): Remove declarations.
20028 (register_addr): Use the_low_target explicitly.
20029 (fetch_register): Likewise.
20030 (usr_fetch_inferior_registers): Likewise.
20031 (usr_store_inferior_registers): Likewise.
20032 * linux-arm-low.c (num_regs): Remove.
20033 (arm_num_regs): Define.
20034 (arm_regmap): Renamed from regmap, made static.
20035 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
20037 (arm_cannot_store_register): Renamed from cannot_store_register,
20039 (the_low_target): New.
20040 * linux-i386-low.c (num_regs): Remove.
20041 (i386_num_regs): Define.
20042 (i386_regmap): Renamed from regmap, made static.
20043 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
20045 (i386_cannot_store_register): Renamed from cannot_store_register,
20047 (the_low_target): New.
20048 * linux-ia64-low.c (num_regs): Remove.
20049 (ia64_num_regs): Define.
20050 (ia64_regmap): Renamed from regmap, made static.
20051 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
20053 (ia64_cannot_store_register): Renamed from cannot_store_register,
20055 (the_low_target): New.
20056 * linux-m68k-low.c (num_regs): Remove.
20057 (m68k_num_regs): Define.
20058 (m68k_regmap): Renamed from regmap, made static.
20059 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
20061 (m68k_cannot_store_register): Renamed from cannot_store_register,
20063 (the_low_target): New.
20064 * linux-mips-low.c (num_regs): Remove.
20065 (mips_num_regs): Define.
20066 (mips_regmap): Renamed from regmap, made static.
20067 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
20069 (mips_cannot_store_register): Renamed from cannot_store_register,
20071 (the_low_target): New.
20072 * linux-ppc-low.c (num_regs): Remove.
20073 (ppc_num_regs): Define.
20074 (ppc_regmap): Renamed from regmap, made static.
20075 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
20077 (ppc_cannot_store_register): Renamed from cannot_store_register,
20079 (the_low_target): New.
20080 * linux-s390-low.c (num_regs): Remove.
20081 (s390_num_regs): Define.
20082 (s390_regmap): Renamed from regmap, made static.
20083 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
20085 (s390_cannot_store_register): Renamed from cannot_store_register,
20087 (the_low_target): New.
20088 * linux-sh-low.c (num_regs): Remove.
20089 (sh_num_regs): Define.
20090 (sh_regmap): Renamed from regmap, made static.
20091 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
20093 (sh_cannot_store_register): Renamed from cannot_store_register,
20095 (the_low_target): New.
20096 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
20097 (the_low_target): New.
20099 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20101 * Makefile.in: Add stamp-h target.
20102 * configure.in: Create stamp-h.
20103 * configure: Regenerated.
20105 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20107 * inferiors.c: New file.
20108 * target.c: New file.
20109 * target.h: New file.
20110 * Makefile.in: Add target.o and inferiors.o. Update
20112 * linux-low.c (inferior_pid): New static variable,
20113 moved from server.c.
20114 (linux_create_inferior): Renamed from create_inferior.
20115 Call add_inferior. Return 0 on success instead of a PID.
20116 (linux_attach): Renamed from myattach.
20117 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
20118 (linux_thread_alive): Renamed from mythread_alive.
20119 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
20121 (linux_resume): Renamed from myresume. Add missing ``return 0''.
20122 (regsets_store_inferior_registers): Correct error message.
20123 Add missing ``return 0''.
20124 (linux_fetch_registers): Renamed from fetch_inferior_registers.
20125 (linux_store_registers): Renamed from store_inferior_registers.
20126 (linux_read_memory): Renamed from read_inferior_memory.
20127 (linux_write_memory): Renamed from write_inferior_memory.
20128 (linux_target_ops): New structure.
20129 (initialize_low): Call set_target_ops ().
20130 * remote-utils.c (unhexify): New function.
20131 (hexify): New function.
20132 (input_interrupt): Send signals to ``signal_pid''.
20133 * server.c (inferior_pid): Remove.
20134 (start_inferior): Update create_inferior call.
20135 (attach_inferior): Call add_inferior.
20136 (handle_query): New function.
20137 (main): Call handle_query for `q' packets.
20138 * server.h: Include "target.h". Remove obsolete prototypes.
20139 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
20141 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
20143 * Makefile.in: Add WARN_CFLAGS. Update configury
20145 * configure.in: Check for <string.h>
20146 * configure: Regenerate.
20147 * config.in: Regenerate.
20148 * gdbreplay.c: Include needed system headers.
20149 (remote_open): Remove strchr prototype.
20150 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
20151 * regcache.c (supply_register): Change buf argument to const void *.
20152 (supply_register_by_name): Likewise.
20153 (collect_register): Change buf argument to void *.
20154 (collect_register_by_name): Likewise.
20155 * regcache.h: Add missing prototypes.
20156 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
20157 * server.c (handle_query): New function.
20158 (attached): New static variable, moved out of main.
20159 (main): Quiet longjmp clobber warnings.
20160 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
20161 * utils.c (error): Remove NORETURN.