1 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3 * server.cc (captured_main): Accept multiple `--selftest=`
4 options. Pass all `--selftest=` arguments to run_tests.
6 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8 * configure, config.in: Regenerate.
10 2020-07-26 Eli Zaretskii <eliz@gnu.org>
12 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
13 When checking whether socklen_t type is defined, use ws2tcpip.h if
14 it is available and sys/socket.h isn't.
15 * configure: Regenerate.
16 * config.in: Regenerate.
18 2020-07-22 Pedro Alves <pedro@palves.net>
20 * inferiors.cc (switch_to_process): New, moved here from
21 thread-db.cc, and made extern.
22 * inferiors.h (switch_to_process): Declare.
23 * server.cc: Include "gdbsupport/scoped_restore.h".
24 (handle_qxfer_threads_proper): Now returns bool. Prepare to
25 access memory around target calls.
26 (handle_qxfer_threads): Handle errors.
27 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
29 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
31 * linux-low.cc (stopped_pids): Make static.
33 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
35 * tdesc.cc (allocate_target_description): Add header comment.
36 (target_desc_deleter::operator()): New function.
37 * tdesc.h (struct target_desc): Declare as final.
39 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
41 * server.cc (handle_query): Use std::vector of
42 std::string for `qsupported` vector. Use separate
44 * target.h (class process_stratum_target) <process_qsupported>:
45 Change parameters to array_view of const char *.
46 (target_process_qsupported): Remove `count` parameter.
47 * target.cc (process_stratum_target::process_qsupported): Change
48 parameters to array_view of const char *.
49 * linux-x86-low.cc (class x86_target) <process_qsupported>:
52 2020-06-29 Tom de Vries <tdevries@suse.de>
54 * ax.h: Include gdbsupport/debug_agent.h.
56 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
58 * tdesc.cc (struct tdesc_compatible_info): New struct.
59 (tdesc_compatible_info_list): New function.
60 (tdesc_compatible_info_arch_name): New function.
62 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
64 Use std::list to stop pending signal instead of manually-created
66 * linux-low.h: Include <list>.
67 (struct pending_signal): Move here from linux-low.cc.
68 (struct lwp_info) <pending_signals>
69 <pending_signals_to_report>: Update the type.
70 * linux-low.cc (struct pending_signals): Remove.
71 (linux_process_target::delete_lwp)
72 (linux_process_target::add_lwp)
73 (enqueue_one_deferred_signal)
74 (dequeue_one_deferred_signal)
75 (enqueue_pending_signal)
76 (linux_process_target::resume_one_lwp_throw)
77 (linux_process_target::thread_needs_step_over)
78 (linux_process_target::resume_one_thread)
79 (linux_process_target::proceed_one_lwp): Update the use of pending
82 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
84 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
87 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
89 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
90 * configure.srv: Remove mingw32ce cases.
91 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
92 * win32-low.h (to_back_slashes): Remove.
93 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
95 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
97 * Makefile.in (SFILES): linux-tile-low.cc.
98 * configure.srv: Remove tilegx case.
99 * linux-tile-low.cc: Remove.
101 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
103 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
104 * configure.srv: Remove m32r case.
105 * linux-m32r-low.cc: Remove.
107 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
109 * Makefile.in (SFILES): Remove linux-cris-low.c.
110 * configure.srv: Remove cris cases.
111 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
113 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
115 * Makefile.in (SFILES): Remove linux-bfin-low.c.
116 * configure.srv: Remove bfin case.
117 * linux-bfin-low.cc: Remove.
118 * linux-low.cc: Remove BFIN-conditional code.
120 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
122 * configure: Re-generate.
123 * configure.ac: Remove srv_qnx test.
124 * configure.srv: Remove nto case.
125 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
126 * remote-utils.c: Remove __QNX__-guarded code.
128 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
130 * configure: Re-generate.
131 * configure.ac: Remove srv_lynxos test.
132 * configure.srv: Remove lynxos cases.
133 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
136 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
138 * README: Fix a few outdated or incoherent things.
140 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
142 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
143 (win32_clear_inferiors): Use open_process_used.
144 (get_child_debug_event): Likewise.
146 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
149 * linux-low.cc (linux_process_target::create_inferior),
150 lynx-low.cc (lynx_process_target::create_inferior),
151 win32-low.cc (win32_process_target::create_inferior): Use
152 construct_inferior_arguments instead of stringify_argv
153 to get string representation which properly escapes
155 * server.cc (handle_v_run): Just pass empty program arg
156 as such, since any further processing is now handled via
157 construct_inferior_arguments.
159 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
161 * nto-low.cc (nto_process_target::create_inferior): Pass
162 argv to spawnp function as char **.
164 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
166 * server.cc (captured_main), (handle_v_run): No longer
167 insert extra NULL element to args vector.
169 2020-05-23 Pedro Alves <palves@redhat.com>
171 * gdb-safe-ctype.h: New.
173 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
175 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
176 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
177 (ia64_target::low_breakpoint_at): Ditto.
179 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
181 * win32-i386-low.cc (i386_supports_z_point_type): Handle
182 Z_PACKET_HW_BP z_type.
183 (i386_insert_point): Handle raw_bkpt_type type.
184 (i386_remove_point): Likewise.
186 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
188 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
190 * win32-arm-low.cc (arm_num_regs): New function.
191 (struct win32_target_ops): Use arm_num_regs.
192 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
194 (i386_get_thread_context): Likewise.
195 (i386_prepare_to_resume): Likewise.
196 (i386_thread_added): Likewise.
197 (i386_single_step): Likewise.
198 (i386_fetch_inferior_register): Likewise.
199 (i386_store_inferior_register): Likewise.
200 (i386_arch_setup): Likewise.
201 (i386_win32_num_regs): New function.
202 (struct win32_target_ops): Use i386_win32_num_regs.
203 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
205 (win32_require_context): Likewise.
206 (child_add_thread): Likewise.
207 (do_initial_child_stuff): Likewise.
208 (continue_one_thread): Likewise.
209 (win32_process_target::resume): Likewise.
210 (load_psapi): Likewise.
211 (win32_add_all_dlls): Likewise.
212 (maybe_adjust_pc): Likewise.
213 (win32_process_target::qxfer_siginfo): Likewise.
214 (initialize_low): Likewise.
215 * win32-low.h (struct win32_target_ops): Change num_regs to
218 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
220 * configure.ac: Remove check for fs_base/gs_base in
222 * configure: Re-generate.
223 * config.in: Re-generate.
224 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
225 x86_store_gregset): Adjust.
227 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
229 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
232 2020-04-16 Tom Tromey <tromey@adacore.com>
234 * win32-low.cc (windows_nat::handle_access_violation): New
237 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
239 * win32-low.cc (get_child_debug_event): Fix format string warning.
241 2020-04-13 Tom Tromey <tom@tromey.com>
243 * server.h (gdb_fildes_t): Remove typedef.
244 * remote-utils.c (remote_desc, list_desc): Now int.
245 (INVALID_DESCRIPTOR): Remove.
246 (gdb_connected, remote_close)
247 (check_remote_input_interrupt_request): Update.
248 * utils.h (pfildes): Don't declare.
249 * utils.c (pfildes): Remove.
251 2020-04-13 Tom Tromey <tom@tromey.com>
253 * server.h (handle_serial_event, handle_target_event): Update.
254 * server.c: Don't call initialize_event_loop.
255 (keep_processing_events): New global.
256 (handle_serial_event): Return void. Set keep_processing_events.
257 (handle_target_event): Return void.
258 (start_event_loop): Move from event-loop.c. Rewrite.
259 * remote-utils.c (handle_accept_event): Return void.
260 (reset_readchar): Use delete_timer.
261 (process_remaining): Return void.
262 (reschedule): Use create_timer.
263 * event-loop.h: Remove.
264 * event-loop.cc: Remove.
265 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
267 2020-04-13 Tom Tromey <tom@tromey.com>
269 * server.c (invoke_async_signal_handlers)
270 (check_async_event_handlers, flush_streams, gdb_select): New
273 2020-04-13 Tom Tromey <tom@tromey.com>
275 * configure: Rebuild.
276 * config.in: Rebuild.
278 2020-04-08 Tom Tromey <tromey@adacore.com>
281 * win32-low.c (child_continue): Call matching_pending_stop.
282 (get_child_debug_event): Call fetch_pending_stop. Push pending
285 2020-04-08 Tom Tromey <tromey@adacore.com>
287 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
288 (win32_process_target::supports_stopped_by_sw_breakpoint):
290 * win32-low.c (win32_supports_z_point_type): Always handle
292 (win32_insert_point): Call insert_memory_breakpoint when needed.
293 (win32_remove_point): Call remove_memory_breakpoint when needed.
294 (win32_process_target::stopped_by_sw_breakpoint)
295 (win32_process_target::supports_stopped_by_sw_breakpoint): New
297 (win32_target_ops): Update.
298 (maybe_adjust_pc): New function.
299 (win32_wait): Call maybe_adjust_pc.
301 2020-04-08 Tom Tromey <tromey@adacore.com>
303 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
305 * win32-i386-low.c (the_low_target): Update.
306 * win32-arm-low.c (the_low_target): Update.
308 2020-04-08 Tom Tromey <tromey@adacore.com>
310 * win32-low.h (win32_process_target::read_pc)
311 (win32_process_target::write_pc): Declare.
312 * win32-low.c (win32_process_target::read_pc)
313 (win32_process_target::write_pc): New methods.
314 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
316 (the_low_target): Update.
317 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
319 (the_low_target): Update.
321 2020-04-08 Tom Tromey <tromey@adacore.com>
323 * win32-low.c (win32_kill, get_child_debug_event): Use
324 wait_for_debug_event.
326 2020-04-08 Tom Tromey <tromey@adacore.com>
328 * win32-low.c (child_continue): Call continue_last_debug_event.
330 2020-04-08 Tom Tromey <tromey@adacore.com>
332 * win32-low.c (handle_exception): Remove.
333 (windows_nat::handle_ms_vc_exception): New function.
334 (get_child_debug_event): Add "continue_status" parameter.
336 (win32_wait): Update.
338 2020-04-08 Tom Tromey <tromey@adacore.com>
340 * win32-low.c (windows_nat::handle_load_dll): Rename from
341 handle_load_dll. No longer static.
342 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
345 2020-04-08 Tom Tromey <tromey@adacore.com>
347 * win32-low.c (handle_output_debug_string): Add parameter. Change
349 (win32_kill, get_child_debug_event): Update.
351 2020-04-08 Tom Tromey <tromey@adacore.com>
353 * win32-low.c (current_process_handle, current_process_id)
354 (main_thread_id, last_sig, current_event, siginfo_er): Move to
357 2020-04-08 Tom Tromey <tromey@adacore.com>
359 * win32-low.c (get_image_name): Remove.
360 (handle_load_dll): Update.
362 2020-04-08 Tom Tromey <tromey@adacore.com>
364 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
365 No longer static. Change parameters.
366 (child_add_thread, child_fetch_inferior_registers)
367 (child_store_inferior_registers, win32_resume)
368 (win32_get_tib_address): Update.
370 2020-04-08 Tom Tromey <tromey@adacore.com>
372 * win32-low.h (struct win32_target_ops): Use qualified names where
374 * win32-i386-low.c: Add "using namespace".
375 * win32-low.c: Add "using namespace".
376 * win32-arm-low.c: Add "using namespace".
378 2020-04-08 Tom Tromey <tromey@adacore.com>
380 * win32-low.c (delete_thread_info): Don't call CloseHandle.
382 2020-04-08 Tom Tromey <tromey@adacore.com>
384 * win32-low.c (win32_require_context, suspend_one_thread): Use
385 windows_thread_info::suspend.
386 (continue_one_thread): Use windows_thread_info::resume.
387 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
389 2020-04-08 Tom Tromey <tromey@adacore.com>
391 * win32-i386-low.c (update_debug_registers)
392 (i386_prepare_to_resume, i386_thread_added): Update.
394 2020-04-08 Tom Tromey <tromey@adacore.com>
396 * win32-low.c (child_add_thread): Use new.
397 (delete_thread_info): Use delete.
399 2020-04-08 Tom Tromey <tromey@adacore.com>
401 * win32-low.h (struct windows_thread_info): Remove.
403 2020-04-08 Tom Tromey <tromey@adacore.com>
405 * win32-low.h (struct windows_thread_info): Rename from
406 win32_thread_info. Remove typedef.
407 (struct win32_target_ops, win32_require_context): Update.
408 * win32-low.c (win32_get_thread_context)
409 (win32_set_thread_context, win32_prepare_to_resume)
410 (win32_require_context, thread_rec, child_add_thread)
411 (delete_thread_info, continue_one_thread)
412 (child_fetch_inferior_registers, child_store_inferior_registers)
413 (win32_resume, suspend_one_thread, win32_get_tib_address):
415 * win32-i386-low.c (update_debug_registers)
416 (win32_get_current_dr, i386_get_thread_context)
417 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
418 (i386_fetch_inferior_register, i386_store_inferior_register):
420 * win32-arm-low.c (arm_get_thread_context)
421 (arm_fetch_inferior_register, arm_store_inferior_register):
424 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
426 * linux-low.h (struct linux_target_ops): Remove.
427 (the_low_target): Remove.
428 * linux-x86-low.cc (the_low_target): Remove.
429 * linux-aarch64-low.cc (the_low_target): Ditto.
430 * linux-arm-low.cc (the_low_target): Ditto.
431 * linux-bfin-low.cc (the_low_target): Ditto.
432 * linux-cris-low.cc (the_low_target): Ditto.
433 * linux-crisv32-low.cc (the_low_target): Ditto.
434 * linux-ia64-low.cc (the_low_target): Ditto.
435 * linux-m32r-low.cc (the_low_target): Ditto.
436 * linux-m68k-low.cc (the_low_target): Ditto.
437 * linux-mips-low.cc (the_low_target): Ditto.
438 * linux-nios2-low.cc (the_low_target): Ditto.
439 * linux-ppc-low.cc (the_low_target): Ditto.
440 * linux-riscv-low.cc (the_low_target): Ditto.
441 * linux-s390-low.cc (the_low_target): Ditto.
442 * linux-sh-low.cc (the_low_target): Ditto.
443 * linux-sparc-low.cc (the_low_target): Ditto.
444 * linux-tic6x-low.cc (the_low_target): Ditto.
445 * linux-tile-low.cc (the_low_target): Ditto.
446 * linux-xtensa-low.cc (the_low_target): Ditto.
448 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
450 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
451 linux target define the op by overriding the declaration in
452 process_stratum_target.
454 * linux-low.h (struct linux_target_ops): Remove the op.
455 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
456 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
457 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
458 (x86_get_ipa_tdesc_idx): Turn into...
459 (x86_target::get_ipa_tdesc_idx): ...this.
460 (the_low_target): Remove the op field.
461 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
462 (ppc_get_ipa_tdesc_idx): Turn into...
463 (ppc_target::get_ipa_tdesc_idx): ...this.
464 (the_low_target): Remove the op field.
465 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
466 (s390_get_ipa_tdesc_idx): Turn into...
467 (s390_target::get_ipa_tdesc_idx): ...this.
468 (the_low_target): Remove the op field.
470 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
472 Turn the 'get_syscall_trapinfo' linux target op into a method
473 of process_stratum_target.
475 * linux-low.h (struct linux_target_ops): Remove the op.
476 (class linux_process_target) <get_syscall_trapinfo>
477 <gdb_catch_this_syscall>
478 <low_supports_catch_syscall>
479 <low_get_syscall_trapinfo>: Declare.
480 * linux-low.cc (get_syscall_trapinfo): Turn into...
481 (linux_process_target::get_syscall_trapinfo): ...this.
482 (linux_process_target::low_get_syscall_trapinfo): Define.
483 (gdb_catch_this_syscall_p): Turn into...
484 (linux_process_target::gdb_catch_this_syscall): ...this.
485 (linux_process_target::low_supports_catch_syscall): Define.
487 Update the callers below.
489 (linux_process_target::wait_1)
490 (linux_process_target::supports_catch_syscall)
492 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
493 <low_get_syscall_trapinfo>: Declare.
494 (x86_target::low_supports_catch_syscall): Define.
495 (x86_get_syscall_trapinfo): Turn into...
496 (x86_target::low_get_syscall_trapinfo): ...this.
497 (the_low_target): Remove the op field.
498 * linux-aarch64-low.cc (class aarch64_target)
499 <low_supports_catch_syscall>
500 <low_get_syscall_trapinfo>: Declare.
501 (aarch64_target::low_supports_catch_syscall): Define.
502 (aarch64_get_syscall_trapinfo): Turn into...
503 (aarch64_target::low_get_syscall_trapinfo): ...this.
504 (the_low_target): Remove the op field.
505 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
506 <low_get_syscall_trapinfo>: Declare.
507 (arm_target::low_supports_catch_syscall): Define.
508 (arm_get_syscall_trapinfo): Turn into...
509 (arm_target::low_get_syscall_trapinfo): ...this.
510 (the_low_target): Remove the op field.
511 * linux-ppc-low.cc (the_low_target): Remove the op field.
512 * linux-s390-low.cc (the_low_target): Remove the op field.
514 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
516 Remove the 'supports_hardware_single_step' linux target op and
517 override the process_stratum_target's op definition in
518 linux_process_target to return true.
520 * linux-low.h (struct linux_target_ops): Remove the op.
521 (class linux_process_target) <finish_step_over>
522 <maybe_hw_step>: Declare.
523 * linux-low.cc (can_hardware_single_step): Remove.
524 (maybe_hw_step): Turn into...
525 (linux_process_target::maybe_hw_step): ...this.
526 (finish_step_over): Turn into...
527 (linux_process_target::finish_step_over): ...this.
528 (linux_process_target::supports_hardware_single_step): Update
531 Update the callers below.
533 (linux_process_target::single_step)
534 (linux_process_target::resume_one_lwp_throw)
536 * linux-arm-low.cc (class arm_target)
537 <supports_hardware_single_step>: Declare.
538 (arm_supports_hardware_single_step): Turn into...
539 (arm_target::supports_hardware_single_step): ...this.
540 (the_low_target): Remove the op field.
541 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
542 (the_low_target): Remove the op field.
543 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
545 (the_low_target): Remove the op field.
546 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
547 (the_low_target): Remove the op field.
548 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
549 (the_low_target): Remove the op field.
550 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
551 (the_low_target): Remove the op field.
552 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
553 (the_low_target): Remove the op field.
554 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
555 (the_low_target): Remove the op field.
556 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
557 (the_low_target): Remove the op field.
558 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
559 (the_low_target): Remove the op field.
560 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
561 (the_low_target): Remove the op field.
562 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
563 (the_low_target): Remove the op field.
564 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
566 (the_low_target): Remove the op field.
568 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
570 Turn the 'supports_range_stepping' linux target op into a method
571 of linux_process_target.
573 * linux-low.h (struct linux_target_ops): Remove the op.
574 (class linux_process_target) <low_supports_range_stepping>: Declare.
575 * linux-low.cc (linux_process_target::low_supports_range_stepping):
577 (linux_process_target::supports_range_stepping): Update the call
579 * linux-x86-low.cc (class x86_target)
580 <low_supports_range_stepping>: Declare.
581 (x86_supports_range_stepping): Turn into...
582 (x86_target::low_supports_range_stepping): ...this.
583 (the_low_target): Remove the op field.
584 * linux-aarch64-low.cc (class aarch64_target)
585 <low_supports_range_stepping>: Declare.
586 (aarch64_supports_range_stepping): Turn into...
587 (aarch64_target::low_supports_range_stepping): ...this.
588 (the_low_target): Remove the op field.
589 * linux-arm-low.cc (the_low_target): Remove the op field.
590 * linux-bfin-low.cc (the_low_target): Ditto.
591 * linux-crisv32-low.cc (the_low_target): Ditto.
592 * linux-m32r-low.cc (the_low_target): Ditto.
593 * linux-m68k-low.cc (the_low_target): Ditto.
594 * linux-ppc-low.cc (the_low_target): Ditto.
595 * linux-s390-low.cc (the_low_target): Ditto.
596 * linux-sh-low.cc (the_low_target): Ditto.
597 * linux-tic6x-low.cc (the_low_target): Ditto.
598 * linux-tile-low.cc (the_low_target): Ditto.
599 * linux-xtensa-low.cc (the_low_target): Ditto.
601 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
603 Remove the 'emit_ops' linux target ops and let the concrete
604 linux target define the op by overriding the declaration of
605 process_stratum_target.
607 * linux-low.h (struct linux_target_ops): Remove the op.
608 (class linux_process_target) <emit_ops>: Remove.
609 * linux-low.cc (linux_process_target::emit_ops): Remove.
610 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
611 (x86_emit_ops): Turn into...
612 (x86_target::emit_ops): ...this.
613 (the_low_target): Remove the op field.
614 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
615 (aarch64_emit_ops): Turn into...
616 (aarch64_target::emit_ops): ...this.
617 (the_low_target): Remove the op field.
618 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
619 (ppc_emit_ops): Turn into...
620 (ppc_target::emit_ops): ...this.
621 (the_low_target): Remove the op field.
622 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
623 (s390_emit_ops): Turn into...
624 (s390_target::emit_ops): ...this.
625 (the_low_target): Remove the op field.
626 * linux-arm-low.cc (the_low_target): Remove the op field.
627 * linux-bfin-low.cc (the_low_target): Ditto.
628 * linux-crisv32-low.cc (the_low_target): Ditto.
629 * linux-m32r-low.cc (the_low_target): Ditto.
630 * linux-m68k-low.cc (the_low_target): Ditto.
631 * linux-sh-low.cc (the_low_target): Ditto.
632 * linux-tic6x-low.cc (the_low_target): Ditto.
633 * linux-tile-low.cc (the_low_target): Ditto.
634 * linux-xtensa-low.cc (the_low_target): Ditto.
636 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
638 Remove the 'install_fast_tracepoint_jump_pad' and
639 'get_min_fast_tracepoint_insn_len' linux target ops to let the
640 concrete linux target define the ops by overriding the declarations
641 of process_stratum_target.
643 * linux-low.h (struct linux_target_ops): Remove the ops.
644 (class linux_process_target) <supports_fast_tracepoints>
645 <install_fast_tracepoint_jump_pad>
646 <get_min_fast_tracepoint_insn_len>: Remove.
647 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
648 (linux_process_target::install_fast_tracepoint_jump_pad)
649 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
650 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
651 <install_fast_tracepoint_jump_pad>
652 <get_min_fast_tracepoint_insn_len>: Declare.
653 (x86_target::supports_fast_tracepoints): Define.
654 (x86_install_fast_tracepoint_jump_pad): Turn into...
655 (x86_target::install_fast_tracepoint_jump_pad): ...this.
656 (x86_get_min_fast_tracepoint_insn_len): Turn into...
657 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
658 (the_low_target): Remove the op fields.
659 * linux-aarch64-low.cc (class aarch64_target)
660 <supports_fast_tracepoints>
661 <install_fast_tracepoint_jump_pad>
662 <get_min_fast_tracepoint_insn_len>: Declare.
663 (aarch64_target::supports_fast_tracepoints): Define.
664 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
665 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
666 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
667 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
668 (the_low_target): Remove the op fields.
669 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
670 <install_fast_tracepoint_jump_pad>
671 <get_min_fast_tracepoint_insn_len>: Declare.
672 (ppc_target::supports_fast_tracepoints): Define.
673 (ppc_install_fast_tracepoint_jump_pad): Turn into...
674 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
675 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
676 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
677 (the_low_target): Remove the op fields.
678 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
679 <install_fast_tracepoint_jump_pad>
680 <get_min_fast_tracepoint_insn_len>: Declare.
681 (s390_target::supports_fast_tracepoints): Define.
682 (s390_install_fast_tracepoint_jump_pad): Turn into...
683 (s390_target::install_fast_tracepoint_jump_pad): ...this.
684 (s390_get_min_fast_tracepoint_insn_len): Turn into...
685 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
686 (the_low_target): Remove the op fields.
687 * linux-arm-low.cc (the_low_target): Remove the op fields.
688 * linux-bfin-low.cc (the_low_target): Ditto.
689 * linux-crisv32-low.cc (the_low_target): Ditto.
690 * linux-m32r-low.cc (the_low_target): Ditto.
691 * linux-m68k-low.cc (the_low_target): Ditto.
692 * linux-sh-low.cc (the_low_target): Ditto.
693 * linux-tic6x-low.cc (the_low_target): Ditto.
694 * linux-tile-low.cc (the_low_target): Ditto.
695 * linux-xtensa-low.cc (the_low_target): Ditto.
697 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
699 Turn the 'get_thread_area' linux target op into a method of
700 process_stratum_target.
702 * linux-low.h (struct linux_target_ops): Remove the op.
703 (class linux_process_target) <stuck_in_jump_pad>
704 <linux_fast_tracepoint_collecting>
705 <low_get_thread_area>: Declare.
706 * linux-low.cc (supports_fast_tracepoints): Remove.
707 (linux_fast_tracepoint_collecting): Turn into...
708 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
709 (linux_process_target::low_get_thread_area): Define.
710 (stuck_in_jump_pad_callback): Turn into...
711 (linux_process_target::stuck_in_jump_pad): ...this.
713 Update the caller below.
715 (linux_process_target::stabilize_threads)
717 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
719 (x86_get_thread_area): Turn into...
720 (x86_target::low_get_thread_area): ...this.
721 (the_low_target): Remove the op field.
722 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
724 (aarch64_get_thread_area): Turn into...
725 (aarch64_target::low_get_thread_area): ...this.
726 (the_low_target): Remove the op field.
727 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
729 (ppc_get_thread_area): Turn into...
730 (ppc_target::low_get_thread_area): ...this.
731 (the_low_target): Remove the op field.
732 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
734 (s390_get_thread_area): Turn into...
735 (s390_target::low_get_thread_area): ...this.
736 (the_low_target): Remove the op field.
737 * linux-arm-low.cc (the_low_target): Remove the op field.
738 * linux-bfin-low.cc (the_low_target): Ditto.
739 * linux-crisv32-low.cc (the_low_target): Ditto.
740 * linux-m32r-low.cc (the_low_target): Ditto.
741 * linux-m68k-low.cc (the_low_target): Ditto.
742 * linux-sh-low.cc (the_low_target): Ditto.
743 * linux-tic6x-low.cc (the_low_target): Ditto.
744 * linux-tile-low.cc (the_low_target): Ditto.
745 * linux-xtensa-low.cc (the_low_target): Ditto.
747 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
749 Remote the 'supports_tracepoints' linux target op and let the
750 concrete linux target define it by overriding the op declared in
751 process_stratum_target.
753 * linux-low.h (struct linux_target_ops): Remove the op.
754 (class linux_process_target) <supports_tracepoints>: Remove.
755 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
756 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
758 (x86_supports_tracepoints): Turn into...
759 (x86_target::supports_tracepoints): ...this.
760 (the_low_target): Remove the op field.
761 * linux-aarch64-low.cc (class aarch64_target)
762 <supports_tracepoints>: Declare.
763 (aarch64_supports_tracepoints): Turn into...
764 (aarch64_target::supports_tracepoints): ...this.
765 (the_low_target): Remove the op field.
766 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
768 (ppc_supports_tracepoints): Turn into...
769 (ppc_target::supports_tracepoints): ...this.
770 (the_low_target): Remove the op field.
771 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
773 (s390_supports_tracepoints): Turn into...
774 (s390_target::supports_tracepoints): ...this.
775 (the_low_target): Remove the op field.
776 * linux-arm-low.cc (the_low_target): Remove the op field.
777 * linux-bfin-low.cc (the_low_target): Ditto.
778 * linux-crisv32-low.cc (the_low_target): Ditto.
779 * linux-m32r-low.cc (the_low_target): Ditto.
780 * linux-m68k-low.cc (the_low_target): Ditto.
781 * linux-sh-low.cc (the_low_target): Ditto.
782 * linux-tic6x-low.cc (the_low_target): Ditto.
783 * linux-tile-low.cc (the_low_target): Ditto.
784 * linux-xtensa-low.cc (the_low_target): Ditto.
786 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
788 Remove the 'process_qsupported' linux target op and let a concrete
789 linux target define the op by overriding the op declaration in
790 process_stratum_target.
792 * linux-low.h (struct linux_target_ops): Remove the op.
793 (class linux_process_target) <process_qsupported>: Remove.
794 * linux-low.cc (linux_process_target::process_qsupported): Remove.
795 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
796 (x86_linux_process_qsupported): Turn into...
797 (x86_target::process_qsupported): ...this.
798 (the_low_target): Remove the op field.
799 * linux-aarch64-low.cc (the_low_target): Remove the op
801 * linux-arm-low.cc (the_low_target): Ditto.
802 * linux-bfin-low.cc (the_low_target): Ditto.
803 * linux-crisv32-low.cc (the_low_target): Ditto.
804 * linux-m32r-low.cc (the_low_target): Ditto.
805 * linux-m68k-low.cc (the_low_target): Ditto.
806 * linux-ppc-low.cc (the_low_target): Ditto.
807 * linux-s390-low.cc (the_low_target): Ditto.
808 * linux-sh-low.cc (the_low_target): Ditto.
809 * linux-tic6x-low.cc (the_low_target): Ditto.
810 * linux-tile-low.cc (the_low_target): Ditto.
811 * linux-xtensa-low.cc (the_low_target): Ditto.
813 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
815 Turn the 'prepare_to_resume' linux target op into a method of
816 linux_process_target.
818 * linux-low.h (struct linux_target_ops): Remove the op.
819 (class linux_process_target) <low_prepare_to_resume>: Declare.
820 * linux-low.cc (linux_process_target::low_prepare_to_resume):
823 Update the callers below:
825 (linux_process_target::resume_one_lwp_throw)
826 (linux_process_target::low_prepare_to_resume)
828 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
830 (x86_target::low_prepare_to_resume): Define.
831 (the_low_target): Remove the op field.
832 * linux-aarch64-low.cc (class aarch64_target)
833 <low_prepare_to_resume>: Declare.
834 (aarch64_target::low_prepare_to_resume): Define.
835 (the_low_target): Remove the op field.
836 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
838 (arm_prepare_to_resume): Turn into...
839 (arm_target::low_prepare_to_resume): ...this.
840 (the_low_target): Remove the op field.
841 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
843 (mips_linux_prepare_to_resume): Turn into...
844 (mips_target::low_prepare_to_resume): ...this.
845 (the_low_target): Remove the op field.
846 * linux-bfin-low.cc (the_low_target): Remove the op field.
847 * linux-crisv32-low.cc (the_low_target): Ditto.
848 * linux-m32r-low.cc (the_low_target): Ditto.
849 * linux-m68k-low.cc (the_low_target): Ditto.
850 * linux-ppc-low.cc (the_low_target): Ditto.
851 * linux-s390-low.cc (the_low_target): Ditto.
852 * linux-sh-low.cc (the_low_target): Ditto.
853 * linux-tic6x-low.cc (the_low_target): Ditto.
854 * linux-tile-low.cc (the_low_target): Ditto.
855 * linux-xtensa-low.cc (the_low_target): Ditto.
857 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
859 Turn the 'new_process', 'delete_process', 'new_thread',
860 'delete_thread', and 'new_fork' linux target ops into methods
861 of linux_process_target.
863 * linux-low.h (struct linux_target_ops): Remove the ops.
864 (class linux_process_target) <add_linux_process>
869 <check_zombie_leaders>
875 <low_new_fork>: Declare.
876 * linux-low.cc (delete_lwp): Turn into...
877 (linux_process_target::delete_lwp): ...this.
878 (linux_process_target::low_delete_thread): Define.
879 (linux_add_process): Turn into...
880 (linux_process_target::add_linux_process): ...this.
881 (linux_process_target::low_new_process): Define.
882 (linux_process_target::low_delete_process): Define.
883 (linux_process_target::low_new_fork): Define.
884 (add_lwp): Turn into...
885 (linux_process_target::add_lwp): ...this.
886 (linux_process_target::low_new_thread): Define.
887 (linux_attach_lwp): Turn into...
888 (linux_process_target::attach_lwp): ...this.
889 (linux_detach_one_lwp): Turn into...
890 (linux_process_target::detach_one_lwp): ...this.
891 (linux_detach_lwp_callback): Remove and inline...
892 (linux_process_target::detach): ...here.
893 (check_zombie_leaders): Turn into...
894 (linux_process_target::check_zombie_leaders): ...this.
895 (filter_exit_event): Turn into...
896 (linux_process_target::filter_exit_event): ...this.
898 Update the callers below.
900 (linux_process_target::handle_extended_wait)
901 (linux_process_target::create_inferior)
902 (attach_proc_task_lwp_callback)
903 (linux_process_target::attach)
904 (linux_process_target::detach)
905 (linux_process_target::mourn)
906 * thread-db.cc (attach_thread)
908 * linux-x86-low.cc (class x86_target) <low_new_process>
912 <low_new_fork>: Declare.
913 (x86_linux_new_process): Turn into...
914 (x86_target::low_new_process): ...this.
915 (x86_linux_delete_process): Turn into...
916 (x86_target::low_delete_process): ...this.
917 (x86_target::low_new_thread): Define.
918 (x86_target::low_delete_thread): Define.
919 (x86_linux_new_fork): Turn into...
920 (x86_target::low_new_fork): ...this.
921 (the_low_target): Remove the op fields.
922 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
926 <low_new_fork>: Declare.
927 (aarch64_linux_new_process): Turn into...
928 (aarch64_target::low_new_process): ...this.
929 (aarch64_linux_delete_process): Turn into...
930 (aarch64_target::low_delete_process): ...this.
931 (aarch64_target::low_new_thread): Define.
932 (aarch64_target::low_delete_thread): Define.
933 (aarch64_linux_new_fork): Turn into...
934 (aarch64_target::low_new_fork): ...this.
935 (the_low_target): Remove the op fields.
936 * linux-arm-low.cc (class arm_target) <low_new_process>
940 <low_new_fork>: Declare.
941 (arm_new_process): Turn into...
942 (arm_target::low_new_process): ...this.
943 (arm_delete_process): Turn into...
944 (arm_target::low_delete_process): ...this.
945 (arm_new_thread): Turn into...
946 (arm_target::low_new_thread): ...this.
947 (arm_delete_thread): Turn into...
948 (arm_target::low_delete_thread): ...this.
949 (arm_new_fork): Turn into...
950 (arm_target::low_new_fork): ...this.
951 (the_low_target): Remove the op fields.
952 * linux-mips-low.cc (class mips_target) <low_new_process>
956 <low_new_fork>: Declare.
957 (mips_linux_new_process): Turn into...
958 (mips_target::low_new_process): ...this.
959 (mips_linux_delete_process): Turn into...
960 (mips_target::low_delete_process): ...this.
961 (mips_linux_new_thread): Turn into...
962 (mips_target::low_new_thread): ...this.
963 (mips_linux_delete_thread): Turn into...
964 (mips_target::low_delete_thread): ...this.
965 (mips_linux_new_fork): Turn into...
966 (mips_target::low_new_fork): ...this.
967 (the_low_target): Remove the op fields.
968 * linux-bfin-low.cc (the_low_target): Remove the op fields.
969 * linux-crisv32-low.cc (the_low_target): Ditto.
970 * linux-m32r-low.cc (the_low_target): Ditto.
971 * linux-m68k-low.cc (the_low_target): Ditto.
972 * linux-ppc-low.cc (the_low_target): Ditto.
973 * linux-s390-low.cc (the_low_target): Ditto.
974 * linux-sh-low.cc (the_low_target): Ditto.
975 * linux-tic6x-low.cc (the_low_target): Ditto.
976 * linux-tile-low.cc (the_low_target): Ditto.
977 * linux-xtensa-low.cc (the_low_target): Ditto.
979 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
981 Turn the 'siginfo_fixup' linux target op into a method of
982 linux_process_target.
984 * linux-low.h (struct linux_target_ops): Remove the op.
985 (class linux_process_target) <siginfo_fixup>
986 <low_siginfo_fixup>: Declare.
987 * linux-low.cc (siginfo_fixup): Turn into...
988 (linux_process_target::siginfo_fixup): ...this.
989 (linux_process_target::low_siginfo_fixup): Define.
990 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
991 (x86_siginfo_fixup): Turn into...
992 (x86_target::low_siginfo_fixup): ...this.
993 (the_low_target): Remove the op field.
994 * linux-aarch64-low.cc (class aarch64_target):
995 <low_siginfo_fixup>: Declare.
996 (aarch64_linux_siginfo_fixup): Turn into...
997 (aarch64_target::low_siginfo_fixup): ...this.
998 (the_low_target): Remove the op field.
999 * linux-arm-low.cc (the_low_target): Remove the op field.
1000 * linux-bfin-low.cc (the_low_target): Ditto.
1001 * linux-crisv32-low.cc (the_low_target): Ditto.
1002 * linux-m32r-low.cc (the_low_target): Ditto.
1003 * linux-m68k-low.cc (the_low_target): Ditto.
1004 * linux-mips-low.cc (the_low_target): Ditto.
1005 * linux-ppc-low.cc (the_low_target): Ditto.
1006 * linux-s390-low.cc (the_low_target): Ditto.
1007 * linux-sh-low.cc (the_low_target): Ditto.
1008 * linux-tic6x-low.cc (the_low_target): Ditto.
1009 * linux-tile-low.cc (the_low_target): Ditto.
1010 * linux-xtensa-low.cc (the_low_target): Ditto.
1012 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1014 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1015 linux target ops into methods of linux_process_target.
1017 * linux-low.h (struct linux_target_ops): Remove the ops.
1018 (class linux_process_target) <low_collect_ptrace_register>
1019 <low_store_ptrace_register>: Declare.
1020 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1021 (linux_process_target::low_supply_ptrace_register): Define.
1023 Update the callers below.
1025 (linux_process_target::fetch_register)
1026 (linux_process_target::store_register)
1028 * linux-x86-low.cc (the_low_target): Remove the op fields.
1029 * linux-aarch64-low.cc (the_low_target): Ditto.
1030 * linux-arm-low.cc (the_low_target): Ditto.
1031 * linux-bfin-low.cc (the_low_target): Ditto.
1032 * linux-crisv32-low.cc (the_low_target): Ditto.
1033 * linux-m32r-low.cc (the_low_target): Ditto.
1034 * linux-m68k-low.cc (the_low_target): Ditto.
1035 * linux-sh-low.cc (the_low_target): Ditto.
1036 * linux-sparc-low.cc (the_low_target): Ditto.
1037 * linux-tic6x-low.cc (the_low_target): Ditto.
1038 * linux-tile-low.cc (the_low_target): Ditto.
1039 * linux-xtensa-low.cc (the_low_target): Ditto.
1040 * linux-mips-low.cc (class mips_target)
1041 <low_collect_ptrace_register>
1042 <low_supply_ptrace_register>: Declare.
1043 (mips_collect_ptrace_register): Turn into ...
1044 (mips_target::low_collect_ptrace_register): ...this.
1045 (mips_supply_ptrace_register): Turn into...
1046 (mips_target::low_supply_ptrace_register): ...this.
1047 (the_low_target): Remove the op fields.
1048 * linux-ppc-low.cc (class ppc_target)
1049 <low_collect_ptrace_register>
1050 <low_supply_ptrace_register>: Declare.
1051 (ppc_collect_ptrace_register): Turn into ...
1052 (ppc_target::low_collect_ptrace_register): ...this.
1053 (ppc_supply_ptrace_register): Turn into ...
1054 (ppc_target::low_supply_ptrace_register): ...this.
1055 (ppc_fill_gregset): Update for the calls to
1056 low_collect_ptrace_register.
1057 (the_low_target): Remove the op fields.
1058 * linux-s390-low.cc (class s390_target)
1059 <low_collect_ptrace_register>
1060 <low_supply_ptrace_register>: Declare.
1061 (s390_collect_ptrace_register): Turn into ...
1062 (s390_target::low_collect_ptrace_register): ...this.
1063 (s390_supply_ptrace_register): Turn into ...
1064 (s390_target::low_supply_ptrace_register): ...this.
1065 (s390_fill_gregset): Update for the calls to
1066 low_collect_ptrace_register.
1067 (the_low_target): Remove the op fields.
1069 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1071 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1072 target ops into methods of linux_process_target.
1074 * linux-low.h (struct linux_target_ops): Remove the ops.
1075 (class linux_process_target) <check_stopped_by_watchpoint>
1076 <low_stopped_by_watchpoint>
1077 <low_stopped_data_address>: Declare.
1078 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1079 (linux_process_target::check_stopped_by_watchpoint): ...this.
1080 (linux_process_target::low_stopped_by_watchpoint): Define.
1081 (linux_process_target::low_stopped_data_address): Define.
1082 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1083 <low_stopped_data_address>: Declare.
1084 (x86_stopped_by_watchpoint): Turn into...
1085 (x86_target::low_stopped_by_watchpoint): ...this.
1086 (x86_stopped_data_address): Turn into...
1087 (x86_target::low_stopped_data_address): ...this.
1088 (the_low_target): Remove the op fields.
1089 * linux-aarch64-low.cc (class aarch64_target)
1090 <low_stopped_by_watchpoint>
1091 <low_stopped_data_address>: Declare.
1092 (aarch64_stopped_by_watchpoint): Turn into...
1093 (aarch64_target::low_stopped_by_watchpoint): ...this.
1094 (aarch64_stopped_data_address): Turn into...
1095 (aarch64_target::low_stopped_data_address): ...this.
1096 (the_low_target): Remove the op fields.
1097 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1098 <low_stopped_data_address>: Declare.
1099 (arm_stopped_by_watchpoint): Turn into...
1100 (arm_target::low_stopped_by_watchpoint): ...this.
1101 (arm_stopped_data_address): Turn into...
1102 (arm_target::low_stopped_data_address): ...this.
1103 (the_low_target): Remove the op fields.
1104 * linux-crisv32-low.cc (class crisv32_target)
1105 <low_stopped_by_watchpoint>
1106 <low_stopped_data_address>: Declare.
1107 (cris_stopped_by_watchpoint): Turn into...
1108 (crisv32_target::low_stopped_by_watchpoint): ...this.
1109 (cris_stopped_data_address): Turn into...
1110 (crisv32_target::low_stopped_data_address): ...this.
1111 (the_low_target): Remove the op fields.
1112 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1113 <low_stopped_data_address>: Declare.
1114 (mips_stopped_by_watchpoint): Turn into...
1115 (mips_target::low_stopped_by_watchpoint): ...this.
1116 (mips_stopped_data_address): Turn into...
1117 (mips_target::low_stopped_data_address): ...this.
1118 (the_low_target): Remove the op fields.
1119 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1120 * linux-m32r-low.cc (the_low_target): Ditto.
1121 * linux-m68k-low.cc (the_low_target): Ditto.
1122 * linux-ppc-low.cc (the_low_target): Ditto.
1123 * linux-s390-low.cc (the_low_target): Ditto.
1124 * linux-sh-low.cc (the_low_target): Ditto.
1125 * linux-sparc-low.cc (the_low_target): Ditto.
1126 * linux-tic6x-low.cc (the_low_target): Ditto.
1127 * linux-tile-low.cc (the_low_target): Ditto.
1128 * linux-xtensa-low.cc (the_low_target): Ditto.
1130 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1132 Turn the 'insert_point' and 'remove_point' linux target ops into
1133 methods of linux_process_target.
1135 * linux-low.h (struct linux_target_ops): Remove the ops.
1136 (class linux_process_target) <low_insert_point>
1137 <low_remove_point>: Declare.
1138 * linux-low.cc (linux_process_target::low_insert_point)
1139 (linux_process_target::low_remove_point): Define.
1140 (linux_process_target::insert_point)
1141 (linux_process_target::remove_point): Update for calls to
1142 low_insert_point and low_remove_point.
1143 * linux-x86-low.cc (class x86_target) <low_insert_point>
1144 <low_remove_point>: Declare.
1145 (x86_insert_point): Turn into...
1146 (x86_target::low_insert_point): ...this.
1147 (x86_remove_point): Turn into...
1148 (x86_target::low_remove_point): ...this.
1149 (the_low_target): Remove the op fields.
1150 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1151 <low_remove_point>: Declare.
1152 (aarch64_insert_point): Turn into...
1153 (aarch64_target::low_insert_point): ...this.
1154 (aarch64_remove_point): Turn into...
1155 (aarch64_target::low_remove_point): ...this.
1156 (the_low_target): Remove the op fields.
1157 * linux-arm-low.cc (class arm_target) <low_insert_point>
1158 <low_remove_point>: Declare.
1159 (arm_insert_point): Turn into...
1160 (arm_target::low_insert_point): ...this.
1161 (arm_remove_point): Turn into...
1162 (arm_target::low_remove_point): ...this.
1163 (the_low_target): Remove the op fields.
1164 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1165 <low_remove_point>: Declare.
1166 (crisv32_insert_point): Turn into...
1167 (crisv32_target::low_insert_point): ...this.
1168 (crisv32_remove_point): Turn into...
1169 (crisv32_target::low_remove_point): ...this.
1170 (the_low_target): Remove the op fields.
1171 * linux-mips-low.cc (class mips_target) <low_insert_point>
1172 <low_remove_point>: Declare.
1173 (mips_insert_point): Turn into...
1174 (mips_target::low_insert_point): ...this.
1175 (mips_remove_point): Turn into...
1176 (mips_target::low_remove_point): ...this.
1177 (the_low_target): Remove the op fields.
1178 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1179 <low_remove_point>: Declare.
1180 (ppc_insert_point): Turn into...
1181 (ppc_target::low_insert_point): ...this.
1182 (ppc_remove_point): Turn into...
1183 (ppc_target::low_remove_point): ...this.
1184 (the_low_target): Remove the op fields.
1185 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1186 * linux-m32r-low.cc (the_low_target): Ditto.
1187 * linux-m68k-low.cc (the_low_target): Ditto.
1188 * linux-s390-low.cc (the_low_target): Ditto.
1189 * linux-sh-low.cc (the_low_target): Ditto.
1190 * linux-sparc-low.cc (the_low_target): Ditto.
1191 * linux-tic6x-low.cc (the_low_target): Ditto.
1192 * linux-tile-low.cc (the_low_target): Ditto.
1193 * linux-xtensa-low.cc (the_low_target): Ditto.
1195 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1197 Remove the 'supports_z_point_type' linux target op and let the
1198 concrete linux target define it by overriding the op declared in
1199 process_stratum_target.
1201 * linux-low.cc (linux_process_target::supports_z_point_type):
1203 * linux-low.h (struct linux_target_ops): Remove the op.
1204 (class linux_process_target) <supports_z_point_type>: Remove.
1205 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1207 (x86_supports_z_point_type): Turn into...
1208 (x86_target::supports_z_point_type): ...this.
1209 (the_low_target): Remove the op field.
1210 * linux-aarch64-low.cc (class aarch64_target)
1211 <supports_z_point_type>: Declare.
1212 (aarch64_supports_z_point_type): Turn into...
1213 (aarch64_target::supports_z_point_type): ...this.
1214 (the_low_target): Remove the op field.
1215 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1217 (arm_supports_z_point_type): Turn into...
1218 (arm_target::supports_z_point_type): ...this.
1219 (the_low_target): Remove the op field.
1220 * linux-crisv32-low.cc (class crisv32_target)
1221 <supports_z_point_type>: Declare.
1222 (cris_supports_z_point_type): Turn into...
1223 (crisv32_target::supports_z_point_type): ...this.
1224 (the_low_target): Remove the op field.
1225 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1227 (mips_supports_z_point_type): Turn into...
1228 (mips_target::supports_z_point_type): ...this.
1229 (the_low_target): Remove the op field.
1230 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1232 (ppc_supports_z_point_type): Turn into...
1233 (ppc_target::supports_z_point_type): ...this.
1234 (the_low_target): Remove the op field.
1235 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1237 (s390_supports_z_point_type): Turn into...
1238 (s390_target::supports_z_point_type): ...this.
1239 (the_low_target): Remove the op field.
1240 * linux-bfin-low.cc (the_low_target): Remove the op field.
1241 * linux-m32r-low.cc (the_low_target): Ditto.
1242 * linux-m68k-low.cc (the_low_target): Ditto.
1243 * linux-sh-low.cc (the_low_target): Ditto.
1244 * linux-sparc-low.cc (the_low_target): Ditto.
1245 * linux-tic6x-low.cc (the_low_target): Ditto.
1246 * linux-tile-low.cc (the_low_target): Ditto.
1247 * linux-xtensa-low.cc (the_low_target): Ditto.
1249 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1251 Turn the 'breakpoint_at' linux target op into a method of
1252 linux_process_target.
1254 * linux-low.h (struct linux_target_ops): Remove the op.
1255 (class linux_process_target) <low_breakpoint_at>: Declare.
1257 Update the callers below:
1259 * linux-low.cc (linux_process_target::save_stop_reason)
1260 (linux_process_target::thread_still_has_status_pending)
1261 (linux_process_target::wait_1)
1263 * linux-x86-low.cc (class x86_target)
1264 <low_breakpoint_at>: Declare.
1265 (x86_breakpoint_at): Turn into...
1266 (x86_target::low_breakpoint_at): ...this.
1267 (the_low_target): Remove the op field.
1268 * linux-aarch64-low.cc (class aarch64_target)
1269 <low_breakpoint_at>: Declare.
1270 (aarch64_breakpoint_at): Turn into...
1271 (aarch64_target::low_breakpoint_at): ...this.
1272 (the_low_target): Remove the op field.
1273 * linux-arm-low.cc (class arm_target)
1274 <low_breakpoint_at>: Declare.
1275 (arm_target::low_breakpoint_at): Define.
1276 (the_low_target): Remove the op field.
1277 * linux-bfin-low.cc (class bfin_target)
1278 <low_breakpoint_at>: Declare.
1279 (bfin_breakpoint_at): Turn into...
1280 (bfin_target::low_breakpoint_at): ...this.
1281 (the_low_target): Remove the op field.
1282 * linux-cris-low.cc (class cris_target)
1283 <low_breakpoint_at>: Declare.
1284 (cris_breakpoint_at): Turn into...
1285 (cris_target::low_breakpoint_at): ...this.
1286 (the_low_target): Remove the op field.
1287 * linux-crisv32-low.cc (class crisv32_target)
1288 <low_breakpoint_at>: Declare.
1289 (crisv32_breakpoint_at): Turn into...
1290 (crisv32_target::low_breakpoint_at): ...this.
1291 (the_low_target): Remove the op field.
1292 * linux-ia64-low.cc (class ia64_target)
1293 <low_breakpoint_at>: Declare.
1294 (ia64_target::low_breakpoint_at): Define.
1295 * linux-m32r-low.cc (class m32r_target)
1296 <low_breakpoint_at>: Declare.
1297 (m32r_breakpoint_at): Turn into...
1298 (m32r_target::low_breakpoint_at): ...this.
1299 (the_low_target): Remove the op field.
1300 * linux-m68k-low.cc (class m68k_target)
1301 <low_breakpoint_at>: Declare.
1302 (m68k_breakpoint_at): Turn into...
1303 (m68k_target::low_breakpoint_at): ...this.
1304 (the_low_target): Remove the op field.
1305 * linux-mips-low.cc (class mips_target)
1306 <low_breakpoint_at>: Declare.
1307 (mips_breakpoint_at): Turn into...
1308 (mips_target::low_breakpoint_at): ...this.
1309 (the_low_target): Remove the op field.
1310 * linux-nios2-low.cc (class nios2_target)
1311 <low_breakpoint_at>: Declare.
1312 (nios2_breakpoint_at): Turn into...
1313 (nios2_target::low_breakpoint_at): ...this.
1314 (the_low_target): Remove the op field.
1315 * linux-ppc-low.cc (class ppc_target)
1316 <low_breakpoint_at>: Declare.
1317 (ppc_breakpoint_at): Turn into...
1318 (ppc_target::low_breakpoint_at): ...this.
1319 (the_low_target): Remove the op field.
1320 * linux-riscv-low.cc (class riscv_target)
1321 <low_breakpoint_at>: Declare.
1322 (riscv_breakpoint_at): Turn into...
1323 (riscv_target::low_breakpoint_at): ...this.
1324 (the_low_target): Remove the op field.
1325 * linux-s390-low.cc (class s390_target)
1326 <low_breakpoint_at>: Declare.
1327 (s390_breakpoint_at): Turn into...
1328 (s390_target::low_breakpoint_at): ...this.
1329 (the_low_target): Remove the op field.
1330 * linux-sh-low.cc (class sh_target)
1331 <low_breakpoint_at>: Declare.
1332 (sh_breakpoint_at): Turn into...
1333 (sh_target::low_breakpoint_at): ...this.
1334 (the_low_target): Remove the op field.
1335 * linux-sparc-low.cc (class sparc_target)
1336 <low_breakpoint_at>: Declare.
1337 (sparc_breakpoint_at): Turn into...
1338 (sparc_target::low_breakpoint_at): ...this.
1339 (the_low_target): Remove the op field.
1340 * linux-tic6x-low.cc (class tic6x_target)
1341 <low_breakpoint_at>: Declare.
1342 (tic6x_breakpoint_at): Turn into...
1343 (tic6x_target::low_breakpoint_at): ...this.
1344 (the_low_target): Remove the op field.
1345 * linux-tile-low.cc (class tile_target)
1346 <low_breakpoint_at>: Declare.
1347 (tile_breakpoint_at): Turn into...
1348 (tile_target::low_breakpoint_at): ...this.
1349 (the_low_target): Remove the op field.
1350 * linux-xtensa-low.cc (class xtensa_target)
1351 <low_breakpoint_at>: Declare.
1352 (xtensa_breakpoint_at): Turn into...
1353 (xtensa_target::low_breakpoint_at): ...this.
1354 (the_low_target): Remove the op field.
1356 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1358 Turn the 'decr_pc_after_break' linux_target_ops field into
1359 a method of linux_process_target.
1361 * linux-low.h (struct linux_target_ops)
1362 <decr_pc_after_break>: Remove.
1363 (class linux_process_target) <low_decr_pc_after_break>: New method
1365 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1366 New method implementation.
1368 Update the users below.
1370 (linux_process_target::save_stop_reason)
1371 (linux_process_target::wait_1)
1372 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1374 (x86_target::low_decr_pc_after_break): New method implementation.
1375 (the_low_target): Remove the field.
1376 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1378 (bfin_target::low_decr_pc_after_break): New method implementation.
1379 (the_low_target): Remove the field.
1380 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1382 (m68k_target::low_decr_pc_after_break): New method implementation.
1383 (the_low_target): Remove the field.
1384 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1386 (s390_target::low_decr_pc_after_break): New method implementation.
1387 (the_low_target): Remove the field.
1388 * linux-aarch64-low.cc (the_low_target): Remove the field.
1389 * linux-arm-low.cc (the_low_target): Remove the field.
1390 * linux-cris-low.cc (the_low_target): Remove the field.
1391 * linux-crisv32-low.cc (the_low_target): Remove the field.
1392 * linux-m32r-low.cc (the_low_target): Remove the field.
1393 * linux-mips-low.cc (the_low_target): Remove the field.
1394 * linux-nios2-low.cc (the_low_target): Remove the field.
1395 * linux-ppc-low.cc (the_low_target): Remove the field.
1396 * linux-riscv-low.cc (the_low_target): Remove the field.
1397 * linux-sh-low.cc (the_low_target): Remove the field.
1398 * linux-sparc-low.cc (the_low_target): Remove the field.
1399 * linux-tic6x-low.cc (the_low_target): Remove the field.
1400 * linux-tile-low.cc (the_low_target): Remove the field.
1401 * linux-xtensa-low.cc (the_low_target): Remove the field.
1403 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1405 Remove the 'supports_software_single_step' linux target op and let
1406 the concrete linux target define it by overriding the op in
1407 process_stratum_target.
1408 Turn the 'get_next_pcs' linux target op into a method of
1409 linux_process_target.
1411 * linux-low.h (struct linux_target_ops): Remove the ops.
1412 (class linux_process_target) <supports_software_single_step>:
1414 <low_get_next_pcs>: Declare.
1415 * linux-low.cc (can_software_single_step): Remove.
1416 (linux_process_target::low_get_next_pcs): Define.
1417 (linux_process_target::supports_software_single_step): Remove.
1419 Update the callers below.
1421 (linux_process_target::handle_extended_wait)
1422 (linux_process_target::wait_1)
1423 (linux_process_target::install_software_single_step_breakpoints)
1424 (linux_process_target::single_step)
1425 (linux_process_target::thread_needs_step_over)
1426 (linux_process_target::proceed_one_lwp)
1427 (linux_process_target::supports_range_stepping)
1429 * linux-x86-low.cc (the_low_target): Remove the op field.
1430 * linux-aarch64-low.cc (the_low_target): Ditto.
1431 * linux-bfin-low.cc (the_low_target): Ditto.
1432 * linux-cris-low.cc (the_low_target): Ditto.
1433 * linux-crisv32-low.cc (the_low_target): Ditto.
1434 * linux-m32r-low.cc (the_low_target): Ditto.
1435 * linux-m68k-low.cc (the_low_target): Ditto.
1436 * linux-mips-low.cc (the_low_target): Ditto.
1437 * linux-nios2-low.cc (the_low_target): Ditto.
1438 * linux-ppc-low.cc (the_low_target): Ditto.
1439 * linux-riscv-low.cc (the_low_target): Ditto.
1440 * linux-s390-low.cc (the_low_target): Ditto.
1441 * linux-sh-low.cc (the_low_target): Ditto.
1442 * linux-sparc-low.cc (the_low_target): Ditto.
1443 * linux-tic6x-low.cc (the_low_target): Ditto.
1444 * linux-tile-low.cc (the_low_target): Ditto.
1445 * linux-xtensa-low.cc (the_low_target): Ditto.
1446 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1447 <supports_software_single_step>: Declare.
1448 (arm_target::supports_software_single_step): Define.
1449 (arm_gdbserver_get_next_pcs): Turn into...
1450 (arm_target::low_get_next_pcs): ...this.
1451 (the_low_target): Remove the op field.
1453 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1455 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1456 the concrete linux target define it by overriding the op
1457 in process_stratum_target.
1459 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1461 * linux-low.h (struct linux_target_ops): Remove the op.
1462 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1463 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1465 (x86_sw_breakpoint_from_kind): Turn into...
1466 (x86_target::sw_breakpoint_from_kind): ...this.
1467 (the_low_target): Remove the op field.
1468 * linux-aarch64-low.cc (class aarch64_target)
1469 <sw_breakpoint_from_kind>: Declare.
1470 (aarch64_sw_breakpoint_from_kind): Turn into...
1471 (aarch64_target::sw_breakpoint_from_kind): ...this.
1472 (the_low_target): Remove the op field.
1473 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1475 (arm_target::sw_breakpoint_from_kind): Define.
1476 (the_low_target): Remove the op field.
1477 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1479 (bfin_sw_breakpoint_from_kind): Turn into...
1480 (bfin_target::sw_breakpoint_from_kind): ...this.
1481 (the_low_target): Remove the op field.
1482 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1484 (cris_sw_breakpoint_from_kind): Turn into...
1485 (cris_target::sw_breakpoint_from_kind): ...this.
1486 (the_low_target): Remove the op field.
1487 * linux-crisv32-low.cc (class crisv32_target)
1488 <sw_breakpoint_from_kind>: Declare.
1489 (cris_sw_breakpoint_from_kind): Turn into...
1490 (crisv32_target::sw_breakpoint_from_kind): ...this.
1491 (the_low_target): Remove the op field.
1492 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1494 (ia64_target::sw_breakpoint_from_kind): Define.
1495 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1497 (m32r_sw_breakpoint_from_kind): Turn into...
1498 (m32r_target::sw_breakpoint_from_kind): ...this.
1499 (the_low_target): Remove the op field.
1500 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1502 (m68k_sw_breakpoint_from_kind): Turn into...
1503 (m68k_target::sw_breakpoint_from_kind): ...this.
1504 (the_low_target): Remove the op field.
1505 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1507 (mips_sw_breakpoint_from_kind): Turn into...
1508 (mips_target::sw_breakpoint_from_kind): ...this.
1509 (the_low_target): Remove the op field.
1510 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1512 (nios2_sw_breakpoint_from_kind): Turn into...
1513 (nios2_target::sw_breakpoint_from_kind): ...this.
1514 (the_low_target): Remove the op field.
1515 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1517 (ppc_sw_breakpoint_from_kind): Turn into...
1518 (ppc_target::sw_breakpoint_from_kind): ...this.
1519 (the_low_target): Remove the op field.
1520 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1522 (riscv_sw_breakpoint_from_kind): Turn into...
1523 (riscv_target::sw_breakpoint_from_kind): ...this.
1524 (the_low_target): Remove the op field.
1525 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1527 (s390_sw_breakpoint_from_kind): Turn into...
1528 (s390_target::sw_breakpoint_from_kind): ...this.
1529 (the_low_target): Remove the op field.
1530 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1532 (sh_sw_breakpoint_from_kind): Turn into...
1533 (sh_target::sw_breakpoint_from_kind): ...this.
1534 (the_low_target): Remove the op field.
1535 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1537 (sparc_sw_breakpoint_from_kind): Turn into...
1538 (sparc_target::sw_breakpoint_from_kind): ...this.
1539 (the_low_target): Remove the op field.
1540 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1542 (tic6x_sw_breakpoint_from_kind): Turn into...
1543 (tic6x_target::sw_breakpoint_from_kind): ...this.
1544 (the_low_target): Remove the op field.
1545 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1547 (tile_sw_breakpoint_from_kind): Turn into...
1548 (tile_target::sw_breakpoint_from_kind): ...this.
1549 (the_low_target): Remove the op field.
1550 * linux-xtensa-low.cc (class xtensa_target)
1551 <sw_breakpoint_from_kind>: Declare.
1552 (xtensa_sw_breakpoint_from_kind): Turn into...
1553 (xtensa_target::sw_breakpoint_from_kind): ...this.
1554 (the_low_target): Remove the op field.
1556 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1558 Remove the 'breakpoint_kind_from_pc' and
1559 'breakpoint_kind_from_current_state' linux target ops, and let the
1560 concrete linux target define them by overriding the ops of
1561 process_stratum_target.
1563 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1565 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1566 * linux-low.h (struct linux_target_ops): Remove ops.
1567 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1568 <breakpoint_kind_from_current_state>: Remove.
1569 * linux-x86-low.cc (the_low_target): Remove the op fields.
1570 * linux-bfin-low.cc (the_low_target): Ditto.
1571 * linux-cris-low.cc (the_low_target): Ditto.
1572 * linux-crisv32-low.cc (the_low_target): Ditto.
1573 * linux-m32r-low.cc (the_low_target): Ditto.
1574 * linux-m68k-low.cc (the_low_target): Ditto.
1575 * linux-mips-low.cc (the_low_target): Ditto.
1576 * linux-nios2-low.cc (the_low_target): Ditto.
1577 * linux-ppc-low.cc (the_low_target): Ditto.
1578 * linux-s390-low.cc (the_low_target): Ditto.
1579 * linux-sh-low.cc (the_low_target): Ditto.
1580 * linux-sparc-low.cc (the_low_target): Ditto.
1581 * linux-tic6x-low.cc (the_low_target): Ditto.
1582 * linux-tile-low.cc (the_low_target): Ditto.
1583 * linux-xtensa-low.cc (the_low_target): Ditto.
1584 * linux-aarch64-low.cc (class aarch64_target)
1585 <breakpoint_kind_from_pc>
1586 <breakpoint_kind_from_current_state>: Declare.
1587 (aarch64_breakpoint_kind_from_pc): Turn into...
1588 (aarch64_target::breakpoint_kind_from_pc): ...this.
1589 (aarch64_breakpoint_kind_from_current_state): Turn into...
1590 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1591 (the_low_target): Remove the op fields.
1592 * linux-arm-low.cc (class arm_target):
1593 <breakpoint_kind_from_pc>
1594 <breakpoint_kind_from_current_state>: Declare.
1595 (arm_target::breakpoint_kind_from_pc): Define.
1596 (arm_target::breakpoint_kind_from_current_state): Define.
1597 (the_low_target): Remove the op fields.
1598 * linux-riscv-low.cc (class riscv_target):
1599 <breakpoint_kind_from_pc>: Declare.
1600 (riscv_breakpoint_kind_from_pc): Turn into...
1601 (riscv_target::breakpoint_kind_from_pc): ...this.
1602 (the_low_target): Remove the op fields.
1604 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1606 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1607 of linux_process_target.
1609 * linux-low.h (struct linux_target_ops): Remove the ops.
1610 (class linux_process_target) <low_supports_breakpoints>
1612 <low_set_pc>: Declare.
1613 * linux-low.cc (supports_breakpoints): Turn into...
1614 (linux_process_target::low_supports_breakpoints): ...this.
1615 (linux_process_target::low_get_pc): Define.
1616 (linux_process_target::low_set_pc): Define.
1618 Update the callers below.
1620 (linux_process_target::get_pc)
1621 (linux_process_target::save_stop_reason)
1622 (linux_process_target::maybe_move_out_of_jump_pad)
1623 (linux_process_target::wait_1)
1624 (linux_process_target::resume_one_lwp_throw)
1625 (linux_process_target::resume)
1626 (linux_process_target::proceed_all_lwps)
1627 (linux_process_target::read_pc)
1628 (linux_process_target::write_pc)
1630 * linux-x86-low.cc (class linux_process_target)
1631 <low_supports_breakpoints>
1633 <low_set_pc>: Declare.
1634 (x86_target::low_supports_breakpoints): Define.
1635 (x86_get_pc): Turn into...
1636 (x86_target::low_get_pc): ...this.
1637 (x86_set_pc): Turn into...
1638 (x86_target::low_set_pc): ...this.
1639 (the_low_target): Remove the op fields.
1640 * linux-arm-low.cc (class arm_target)
1641 <low_supports_breakpoints>
1643 <low_set_pc>: Declare.
1644 (arm_target::low_supports_breakpoints)
1645 (arm_target::low_get_pc)
1646 (arm_target::low_set_pc): Define.
1647 (the_low_target): Remove the op fields.
1648 * linux-bfin-low.cc (class bfin_target)
1649 <low_supports_breakpoints>
1651 <low_set_pc>: Declare.
1652 (bfin_target::low_supports_breakpoints)
1653 (bfin_target::low_get_pc)
1654 (bfin_target::low_set_pc): Define.
1655 (the_low_target): Remove the op fields.
1656 * linux-cris-low.cc (class cris_target)
1657 <low_supports_breakpoints>
1659 <low_set_pc>: Declare.
1660 (cris_target::low_supports_breakpoints)
1661 (cris_target::low_get_pc)
1662 (cris_target::low_set_pc): Define.
1663 (the_low_target): Remove the op fields.
1664 * linux-crisv32-low.cc (class crisv32_target)
1665 <low_supports_breakpoints>
1667 <low_set_pc>: Declare.
1668 (crisv32_target::low_supports_breakpoints)
1669 (crisv32_target::low_get_pc)
1670 (crisv32_target::low_set_pc): Define.
1671 (the_low_target): Remove the op fields.
1672 * linux-m32r-low.cc (class m32r_target)
1673 <low_supports_breakpoints>
1675 <low_set_pc>: Declare.
1676 (m32r_target::low_supports_breakpoints)
1677 (m32r_target::low_get_pc)
1678 (m32r_target::low_set_pc): Define.
1679 (the_low_target): Remove the op fields.
1680 * linux-m68k-low.cc (class m68k_target)
1681 <low_supports_breakpoints>
1683 <low_set_pc>: Declare.
1684 (m68k_target::low_supports_breakpoints)
1685 (m68k_target::low_get_pc)
1686 (m68k_target::low_set_pc): Define.
1687 (the_low_target): Remove the op fields.
1688 * linux-nios2-low.cc (class nios2_target)
1689 <low_supports_breakpoints>
1691 <low_set_pc>: Declare.
1692 (nios2_target::low_supports_breakpoints)
1693 (nios2_target::low_get_pc)
1694 (nios2_target::low_set_pc): Define.
1695 (the_low_target): Remove the op fields.
1696 * linux-sh-low.cc (class sh_target)
1697 <low_supports_breakpoints>
1699 <low_set_pc>: Declare.
1700 (sh_target::low_supports_breakpoints)
1701 (sh_target::low_get_pc)
1702 (sh_target::low_set_pc): Define.
1703 (the_low_target): Remove the op fields.
1704 * linux-xtensa-low.cc (class xtensa_target)
1705 <low_supports_breakpoints>
1707 <low_set_pc>: Declare.
1708 (xtensa_target::low_supports_breakpoints)
1709 (xtensa_target::low_get_pc)
1710 (xtensa_target::low_set_pc): Define.
1711 (the_low_target): Remove the op fields.
1712 * linux-sparc-low.cc (class sparc_target)
1713 <low_supports_breakpoints>
1714 <low_get_pc>: Declare.
1715 (sparc_target::low_supports_breakpoints)
1716 (sparc_target::low_get_pc): Define.
1717 (the_low_target): Remove the op fields.
1718 * linux-tile-low.cc (class tile_target)
1719 <low_supports_breakpoints>
1721 <low_set_pc>: Declare.
1722 (tile_target::low_supports_breakpoints)
1723 (tile_target::low_get_pc)
1724 (tile_target::low_set_pc): Define.
1725 (the_low_target): Remove the op fields.
1726 * linux-aarch64-low.cc (class aarch64_target)
1727 <low_supports_breakpoints>
1729 <low_set_pc>: Declare.
1730 (aarch64_target::low_supports_breakpoints): Define.
1731 (aarch64_get_pc): Turn into...
1732 (aarch64_target::low_get_pc): ...this.
1733 (aarch64_set_pc): Turn into...
1734 (aarch64_target::low_set_pc): ...this.
1735 (the_low_target): Remove the op fields.
1736 * linux-mips-low.cc (class mips_target)
1737 <low_supports_breakpoints>
1739 <low_set_pc>: Declare.
1740 (mips_target::low_supports_breakpoints): Define.
1741 (mips_get_pc): Turn into...
1742 (mips_target::low_get_pc): ...this.
1743 (mips_set_pc): Turn into...
1744 (mips_target::low_set_pc): ...this.
1745 (the_low_target): Remove the op fields.
1746 * linux-ppc-low.cc (class ppc_target)
1747 <low_supports_breakpoints>
1749 <low_set_pc>: Declare.
1750 (ppc_target::low_supports_breakpoints): Define.
1751 (ppc_get_pc): Turn into...
1752 (ppc_target::low_get_pc): ...this.
1753 (ppc_set_pc): Turn into...
1754 (ppc_target::low_set_pc): ...this.
1755 (the_low_target): Remove the op fields.
1756 * linux-riscv-low.cc (class riscv_target)
1757 <low_supports_breakpoints>
1759 <low_set_pc>: Declare.
1760 (riscv_target::low_supports_breakpoints): Define.
1761 (riscv_get_pc): Turn into...
1762 (riscv_target::low_get_pc): ...this.
1763 (riscv_set_pc): Turn into...
1764 (riscv_target::low_set_pc): ...this.
1765 (the_low_target): Remove the op fields.
1766 * linux-s390-low.cc (class s390_target)
1767 <low_supports_breakpoints>
1769 <low_set_pc>: Declare.
1770 (s390_target::low_supports_breakpoints): Define.
1771 (s390_get_pc): Turn into...
1772 (s390_target::low_get_pc): ...this.
1773 (s390_set_pc): Turn into...
1774 (s390_target::low_set_pc): ...this.
1775 (the_low_target): Remove the op fields.
1776 * linux-tic6x-low.cc (class tic6x_target)
1777 <low_supports_breakpoints>
1779 <low_set_pc>: Declare.
1780 (tic6x_target::low_supports_breakpoints): Define.
1781 (tic6x_get_pc): Turn into...
1782 (tic6x_target::low_get_pc): ...this.
1783 (tic6x_set_pc): Turn into...
1784 (tic6x_target::low_set_pc): ...this.
1785 (the_low_target): Remove the op fields.
1787 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1789 Turn some more static methods in linux-low into private methods
1790 of linux_process_target.
1792 * linux-low.cc (get_pc): Turn into...
1793 (linux_process_target::get_pc): ...this.
1794 (save_stop_reason): Turn into...
1795 (linux_process_target::save_stop_reason): ...this.
1796 (thread_still_has_status_pending_p): Turn into...
1797 (linux_process_target::thread_still_has_status_pending): ...this.
1798 (status_pending_p_callback): Turn into...
1799 (linux_process_target::status_pending_p_callback): ...this.
1800 (resume_stopped_resumed_lwps): Turn into...
1801 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1802 (install_software_single_step_breakpoints): Turn into...
1803 (linux_process_target::install_software_single_step_breakpoints):
1805 (single_step): Turn into...
1806 (linux_process_target::single_step): ...this.
1807 (linux_resume_one_lwp_throw): Turn into...
1808 (linux_process_target::resume_one_lwp_throw): ...this.
1809 (linux_resume_one_lwp): Turn into...
1810 (linux_process_target::resume_one_lwp): ...this.
1811 (resume_status_pending_p): Turn into...
1812 (linux_process_target::resume_status_pending): ...this.
1813 (need_step_over_p): Turn into...
1814 (linux_process_target::thread_needs_step_over): ...this.
1815 (linux_resume_one_thread): Turn into...
1816 (linux_process_target::resume_one_thread): ...this.
1817 (proceed_one_lwp): Turn into...
1818 (linux_process_target::proceed_one_lwp): ...this.
1819 (unsuspend_and_proceed_one_lwp): Turn into...
1820 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1822 Update the calls/references to the above functions below.
1824 (linux_process_target::handle_extended_wait)
1825 (linux_process_target::filter_event)
1826 (linux_process_target::wait_for_event_filtered)
1827 (linux_process_target::wait_1)
1828 (linux_process_target::move_out_of_jump_pad)
1829 (linux_process_target::start_step_over)
1830 (linux_process_target::resume)
1831 (linux_process_target::proceed_all_lwps)
1832 (regsets_store_inferior_registers)
1833 (linux_process_target::store_register)
1835 * linux-low.h (class linux_process_target)
1838 <thread_still_has_status_pending>
1839 <status_pending_p_callback>
1840 <resume_stopped_resumed_lwps>
1841 <install_software_single_step_breakpoints>
1843 <resume_one_lwp_throw>
1845 <resume_status_pending>
1846 <thread_needs_step_over>
1849 <unsuspend_and_proceed_one_lwp>: Declare.
1851 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1853 Turn the 'fetch_register' linux target op into a method of
1854 linux_process_target.
1856 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1857 (class linux_process_target) <low_fetch_register>: Declare.
1858 * linux-x86-low.cc (the_low_target)
1859 * linux-aarch64-low.cc (the_low_target)
1860 * linux-arm-low.cc (the_low_target)
1861 * linux-bfin-low.cc (the_low_target)
1862 * linux-cris-low.cc (the_low_target)
1863 * linux-crisv32-low.cc (the_low_target)
1864 * linux-m32r-low.cc (the_low_target)
1865 * linux-m68k-low.cc (the_low_target)
1866 * linux-nios2-low.cc (the_low_target)
1867 * linux-ppc-low.cc (the_low_target)
1868 * linux-s390-low.cc (the_low_target)
1869 * linux-sh-low.cc (the_low_target)
1870 * linux-sparc-low.cc (the_low_target)
1871 * linux-tic6x-low.cc (the_low_target)
1872 * linux-tile-low.cc (the_low_target)
1873 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1874 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1876 (ia64_fetch_register): Turn into...
1877 (ia64_target::low_fetch_register): ...this.
1878 (the_low_target): Remove the op field.
1879 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1881 (mips_fetch_register): Turn into...
1882 (mips_target::low_fetch_register): ...this.
1883 (the_low_target): Remove the op field.
1884 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1886 (riscv_fetch_register): Turn into...
1887 (riscv_target::low_fetch_register): ...this.
1888 (the_low_target): Remove the op field.
1890 Update the callers below.
1892 * linux-low.cc (linux_process_target::fetch_registers)
1893 (linux_process_target::low_fetch_register)
1895 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1897 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1898 linux target ops into methods of linux_process_target.
1900 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1901 (class linux_process_target) <fetch_register>
1903 <usr_fetch_inferior_registers>
1904 <usr_store_inferior_registers>
1905 <low_cannot_fetch_register>
1906 <low_cannot_fetch_register> Declare.
1907 * linux-low.cc (fetch_register): Turn into...
1908 (linux_process_target::fetch_register): ...this.
1909 (store_register): Turn into ...
1910 (linux_process_target::store_register): ...this.
1911 (usr_fetch_inferior_registers): Turn into...
1912 (linux_process_target::usr_fetch_inferior_registers): ...this.
1913 (usr_store_inferior_registers): Turn into...
1914 (linux_process_target::usr_store_inferior_registers): ...this.
1915 * linux-x86-low.cc (class x86_target)
1916 <low_cannot_fetch_register>
1917 <low_cannot_store_register>: Declare.
1918 (x86_cannot_store_register): Turn into...
1919 (x86_target::low_cannot_store_register): ...this.
1920 (x86_cannot_fetch_register): Turn into...
1921 (x86_target::low_cannot_fetch_register): ...this.
1922 (the_low_target): Remove the target op fields.
1923 * linux-aarch64-low.cc (class aarch64_target)
1924 <low_cannot_fetch_register>
1925 <low_cannot_store_register>: Declare.
1926 (aarch64_target::low_cannot_fetch_register)
1927 (aarch64_target::low_cannot_store_register): Define.
1928 (the_low_target): Remove the op fields.
1929 * linux-arm-low.cc (class arm_target)
1930 <low_cannot_fetch_register>
1931 <low_cannot_store_register>: Declare.
1932 (arm_cannot_fetch_register): Turn into...
1933 (arm_target::low_cannot_fetch_register): ...this.
1934 (arm_cannot_store_register): Turn into...
1935 (arm_target::low_cannot_store_register): ...this.
1936 (the_low_target): Remove the op fields.
1937 * linux-bfin-low.cc (class bfin_target)
1938 <low_cannot_fetch_register>
1939 <low_cannot_store_register>: Declare.
1940 (bfin_cannot_fetch_register): Turn into...
1941 (bfin_target::low_cannot_fetch_register): ...this.
1942 (bfin_cannot_store_register): Turn into...
1943 (bfin_target::low_cannot_store_register): ...this.
1944 (the_low_target): Remove the op fields.
1945 * linux-cris-low.cc (class cris_target)
1946 <low_cannot_fetch_register>
1947 <low_cannot_store_register>: Declare.
1948 (cris_cannot_fetch_register): Turn into...
1949 (cris_target::low_cannot_fetch_register): ...this.
1950 (cris_cannot_store_register): Turn into...
1951 (cris_target::low_cannot_store_register): ...this.
1952 (the_low_target): Remove the op fields.
1953 * linux-crisv32-low.cc (class crisv32_target)
1954 <low_cannot_fetch_register>
1955 <low_cannot_store_register>: Declare.
1956 (crisv32_target::low_cannot_fetch_register)
1957 (crisv32_target::low_cannot_store_register): Define.
1958 (the_low_target): Remove the op fields.
1959 * linux-ia64-low.cc (class ia64_target)
1960 <low_cannot_fetch_register>
1961 <low_cannot_store_register>: Declare.
1962 (ia64_cannot_fetch_register): Turn into...
1963 (ia64_target::low_cannot_fetch_register): ...this.
1964 (ia64_cannot_store_register): Turn into...
1965 (ia64_target::low_cannot_store_register): ...this.
1966 (the_low_target): Remove the op fields.
1967 * linux-m32r-low.cc (class m32r_target)
1968 <low_cannot_fetch_register>
1969 <low_cannot_store_register>: Declare.
1970 (m32r_cannot_fetch_register): Turn into...
1971 (m32r_target::low_cannot_fetch_register): ...this.
1972 (m32r_cannot_store_register): Turn into...
1973 (m32r_target::low_cannot_store_register): ...this.
1974 (the_low_target): Remove the op fields.
1975 * linux-m68k-low.cc (class m68k_target)
1976 <low_cannot_fetch_register>
1977 <low_cannot_store_register>: Declare.
1978 (m68k_cannot_fetch_register): Turn into...
1979 (m68k_target::low_cannot_fetch_register): ...this.
1980 (m68k_cannot_store_register): Turn into...
1981 (m68k_target::low_cannot_store_register): ...this.
1982 (the_low_target): Remove the op fields.
1983 * linux-mips-low.cc (class mips_target)
1984 <low_cannot_fetch_register>
1985 <low_cannot_store_register>: Declare.
1986 (mips_cannot_fetch_register): Turn into...
1987 (mips_target::low_cannot_fetch_register): ...this.
1988 (mips_cannot_store_register): Turn into...
1989 (mips_target::low_cannot_store_register): ...this.
1990 (get_usrregs_info): Inline at the call sites in
1991 low_cannot_fetch_register and low_cannot_store_register,
1993 (the_low_target): Remove the op fields.
1994 * linux-nios2-low.cc (class nios2_target)
1995 <low_cannot_fetch_register>
1996 <low_cannot_store_register>: Declare.
1997 (nios2_cannot_fetch_register): Turn into...
1998 (nios2_target::low_cannot_fetch_register): ...this.
1999 (nios2_cannot_store_register): Turn into...
2000 (nios2_target::low_cannot_store_register): ...this.
2001 (the_low_target): Remove the op fields.
2002 * linux-ppc-low.cc (class ppc_target)
2003 <low_cannot_fetch_register>
2004 <low_cannot_store_register>: Declare.
2005 (ppc_cannot_fetch_register): Turn into...
2006 (ppc_target::low_cannot_fetch_register): ...this.
2007 (ppc_cannot_store_register): Turn into...
2008 (ppc_target::low_cannot_store_register): ...this.
2009 (the_low_target): Remove the op fields.
2010 * linux-riscv-low.cc (class riscv_target)
2011 <low_cannot_fetch_register>
2012 <low_cannot_store_register>: Declare.
2013 (riscv_target::low_cannot_fetch_register)
2014 (riscv_target::low_cannot_store_register): Define.
2015 (the_low_target): Remove the op fields.
2016 * linux-s390-low.cc (class s390_target)
2017 <low_cannot_fetch_register>
2018 <low_cannot_store_register>: Declare.
2019 (s390_cannot_fetch_register): Turn into...
2020 (s390_target::low_cannot_fetch_register): ...this.
2021 (s390_cannot_store_register): Turn into...
2022 (s390_target::low_cannot_store_register): ...this.
2023 (the_low_target): Remove the op fields.
2024 * linux-sh-low.cc (class sh_target)
2025 <low_cannot_fetch_register>
2026 <low_cannot_store_register>: Declare.
2027 (sh_cannot_fetch_register): Turn into...
2028 (sh_target::low_cannot_fetch_register): ...this.
2029 (sh_cannot_store_register): Turn into...
2030 (sh_target::low_cannot_store_register): ...this.
2031 (the_low_target): Remove the op fields.
2032 * linux-sparc-low.cc (class sparc_target)
2033 <low_cannot_fetch_register>
2034 <low_cannot_store_register>: Declare.
2035 (sparc_cannot_fetch_register): Turn into...
2036 (sparc_target::low_cannot_fetch_register): ...this.
2037 (sparc_cannot_store_register): Turn into...
2038 (sparc_target::low_cannot_store_register): ...this.
2039 (the_low_target): Remove the op fields.
2040 * linux-tic6x-low.cc (class tic6x_target)
2041 <low_cannot_fetch_register>
2042 <low_cannot_store_register>: Declare.
2043 (tic6x_cannot_fetch_register): Turn into...
2044 (tic6x_target::low_cannot_fetch_register): ...this.
2045 (tic6x_cannot_store_register): Turn into...
2046 (tic6x_target::low_cannot_store_register): ...this.
2047 (the_low_target): Remove the op fields.
2048 * linux-tile-low.cc (class tile_target)
2049 <low_cannot_fetch_register>
2050 <low_cannot_store_register>: Declare.
2051 (tile_cannot_fetch_register): Turn into...
2052 (tile_target::low_cannot_fetch_register): ...this.
2053 (tile_cannot_store_register): Turn into...
2054 (tile_target::low_cannot_store_register): ...this.
2055 (the_low_target): Remove the op fields.
2056 * linux-xtensa-low.cc (class xtensa_target)
2057 <low_cannot_fetch_register>
2058 <low_cannot_store_register>: Declare.
2059 (xtensa_target::low_cannot_fetch_register)
2060 (xtensa_target::low_cannot_store_register): Define.
2061 (the_low_target): Remove the op fields.
2063 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2065 Turn the 'regs_info' linux target op into a method of
2066 linux_process_target.
2068 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2069 (class linux_process_target) <get_regs_info>: Define.
2071 Update the callers below.
2073 * linux-low.cc (linux_process_target::fetch_registers)
2074 (linux_process_target::store_registers)
2075 * proc-service.cc (gregset_info)
2077 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2078 (x86_linux_regs_info): Turn into ...
2079 (x86_target::get_regs_info): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2083 (aarch64_regs_info): Turn into ...
2084 (aarch64_target::get_regs_info): ...this.
2085 (the_low_target): Remove the op field.
2086 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2087 (arm_regs_info): Turn into ...
2088 (arm_target::get_regs_info): ...this.
2089 (the_low_target): Remove the op field.
2090 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2091 (bfin_regs_info): Turn into ...
2092 (bfin_target::get_regs_info): ...this.
2093 (the_low_target): Remove the op field.
2094 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2095 (cris_regs_info): Turn into ...
2096 (cris_target::get_regs_info): ...this.
2097 (the_low_target): Remove the op field.
2098 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2100 (crisv32_regs_info): Turn into ...
2101 (crisv32_target::get_regs_info): ...this.
2102 (the_low_target): Remove the op field.
2103 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2104 (ia64_regs_info): Turn into ...
2105 (ia64_target::get_regs_info): ...this.
2106 (the_low_target): Remove the op field.
2107 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2108 (m32r_regs_info): Turn into ...
2109 (m32r_target::get_regs_info): ...this.
2110 (the_low_target): Remove the op field.
2111 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2112 (m68k_regs_info): Turn into ...
2113 (m68k_target::get_regs_info): ...this.
2114 (the_low_target): Remove the op field.
2115 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2116 (mips_regs_info): Turn into ...
2117 (mips_target::get_regs_info): ...this.
2118 (the_low_target): Remove the op field.
2119 (get_usrregs_info): Update the call to the op.
2120 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2121 (nios2_regs_info): Turn into ...
2122 (nios2_target::get_regs_info): ...this.
2123 (the_low_target): Remove the op field.
2124 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2125 (ppc_regs_info): Turn into ...
2126 (ppc_target::get_regs_info): ...this.
2127 (the_low_target): Remove the op field.
2128 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2129 (riscv_regs_info): Turn into ...
2130 (riscv_target::get_regs_info): ...this.
2131 (the_low_target): Remove the op field.
2132 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2133 (s390_regs_info): Turn into ...
2134 (s390_target::get_regs_info): ...this.
2135 (the_low_target): Remove the op field.
2136 (s390_collect_ptrace_register)
2137 (s390_supply_ptrace_register)
2138 (s390_fill_gregset): Update the call to the op.
2139 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2140 (sh_regs_info): Turn into ...
2141 (sh_target::get_regs_info): ...this.
2142 (the_low_target): Remove the op field.
2143 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2144 (sparc_regs_info): Turn into ...
2145 (sparc_target::get_regs_info): ...this.
2146 (the_low_target): Remove the op field.
2147 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2148 (tic6x_regs_info): Turn into ...
2149 (tic6x_target::get_regs_info): ...this.
2150 (the_low_target): Remove the op field.
2151 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2152 (tile_regs_info): Turn into ...
2153 (tile_target::get_regs_info): ...this.
2154 (the_low_target): Remove the op field.
2155 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2157 (xtensa_regs_info): Turn into ...
2158 (xtensa_target::get_regs_info): ...this.
2159 (the_low_target): Remove the op field.
2161 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2163 Turn the 'arch_setup' linux target op into a method of
2164 linux_process_target.
2166 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2167 (class linux_process_target) <arch_setup_thread>
2168 <low_arch_setup>: New declarations.
2169 * linux-low.cc (linux_arch_setup): Delete.
2170 (linux_arch_setup_thread): Turn into...
2171 (linux_process_target::arch_setup_thread): ... this.
2173 Update the callers below.
2175 (linux_process_target::handle_extended_wait)
2176 (linux_process_target::post_create_inferior)
2177 (linux_process_target::filter_event)
2179 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2181 (x86_linux_update_xmltarget): Turn into...
2182 (x86_target::update_xmltarget): ...this.
2183 (x86_linux_process_qsupported): Update the call to
2184 x86_linux_update_xmltarget.
2185 (x86_arch_setup): Turn into ...
2186 (x86_target::low_arch_setup): ...this.
2187 (the_low_target): Remove the op field.
2188 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2190 (aarch64_arch_setup): Turn into ...
2191 (aarch64_target::low_arch_setup): ...this.
2192 (the_low_target): Remove the op field.
2193 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2195 (arm_arch_setup): Turn into ...
2196 (arm_target::low_arch_setup): ...this.
2197 (the_low_target): Remove the op field.
2198 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2200 (bfin_arch_setup): Turn into ...
2201 (bfin_target::low_arch_setup): ...this.
2202 (the_low_target): Remove the op field.
2203 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2205 (cris_arch_setup): Turn into ...
2206 (cris_target::low_arch_setup): ...this.
2207 (the_low_target): Remove the op field.
2208 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2210 (crisv32_arch_setup): Turn into ...
2211 (crisv32_target::low_arch_setup): ...this.
2212 (the_low_target): Remove the op field.
2213 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2215 (ia64_arch_setup): Turn into ...
2216 (ia64_target::low_arch_setup): ...this.
2217 (the_low_target): Remove the op field.
2218 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2220 (m32r_arch_setup): Turn into ...
2221 (m32r_target::low_arch_setup): ...this.
2222 (the_low_target): Remove the op field.
2223 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2225 (m68k_arch_setup): Turn into ...
2226 (m68k_target::low_arch_setup): ...this.
2227 (the_low_target): Remove the op field.
2228 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2230 (mips_arch_setup): Turn into ...
2231 (mips_target::low_arch_setup): ...this.
2232 (the_low_target): Remove the op field.
2233 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2235 (nios2_arch_setup): Turn into ...
2236 (nios2_target::low_arch_setup): ...this.
2237 (the_low_target): Remove the op field.
2238 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2240 (ppc_arch_setup): Turn into ...
2241 (ppc_target::low_arch_setup): ...this.
2242 (the_low_target): Remove the op field.
2243 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2245 (riscv_arch_setup): Turn into ...
2246 (riscv_target::low_arch_setup): ...this.
2247 (the_low_target): Remove the op field.
2248 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2250 (s390_arch_setup): Turn into ...
2251 (s390_target::low_arch_setup): ...this.
2252 (the_low_target): Remove the op field.
2253 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2255 (sh_arch_setup): Turn into ...
2256 (sh_target::low_arch_setup): ...this.
2257 (the_low_target): Remove the op field.
2258 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2260 (sparc_arch_setup): Turn into ...
2261 (sparc_target::low_arch_setup): ...this.
2262 (the_low_target): Remove the op field.
2263 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2265 (tic6x_arch_setup): Turn into ...
2266 (tic6x_target::low_arch_setup): ...this.
2267 (the_low_target): Remove the op field.
2268 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2270 (tile_arch_setup): Turn into ...
2271 (tile_target::low_arch_setup): ...this.
2272 (the_low_target): Remove the op field.
2273 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2275 (xtensa_arch_setup): Turn into ...
2276 (xtensa_target::low_arch_setup): ...this.
2277 (the_low_target): Remove the op field.
2279 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2281 * linux-low.h (the_linux_target): New extern declaration.
2282 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2284 (the_linux_target): Remove.
2285 * linux-x86-low.cc (class x86_target): New class.
2286 (the_x86_target): New static object.
2287 (the_linux_target): Define as pointer to the_x86_target.
2288 * linux-aarch64-low.cc (class aarch64_target): New class.
2289 (the_aarch64_target): New static object.
2290 (the_linux_target): Define as pointer to the_aarch64_target.
2291 * linux-arm-low.cc (class arm_target): New class.
2292 (the_arm_target): New static object.
2293 (the_linux_target): Define as pointer to the_arm_target.
2294 * linux-bfin-low.cc (class bfin_target): New class.
2295 (the_bfin_target): New static object.
2296 (the_linux_target): Define as pointer to the_bfin_target.
2297 * linux-cris-low.cc (class cris_target): New class.
2298 (the_cris_target): New static object.
2299 (the_linux_target): Define as pointer to the_cris_target.
2300 * linux-crisv32-low.cc (class crisv32_target): New class.
2301 (the_crisv32_target): New static object.
2302 (the_linux_target): Define as pointer to the_crisv32_target.
2303 * linux-ia64-low.cc (class ia64_target): New class.
2304 (the_ia64_target): New static object.
2305 (the_linux_target): Define as pointer to the_ia64_target.
2306 * linux-m32r-low.cc (class m32r_target): New class.
2307 (the_m32r_target): New static object.
2308 (the_linux_target): Define as pointer to the_m32r_target.
2309 * linux-m68k-low.cc (class m68k_target): New class.
2310 (the_m68k_target): New static object.
2311 (the_linux_target): Define as pointer to the_m68k_target.
2312 * linux-mips-low.cc (class mips_target): New class.
2313 (the_mips_target): New static object.
2314 (the_linux_target): Define as pointer to the_mips_target.
2315 * linux-nios2-low.cc (class nios2_target): New class.
2316 (the_nios2_target): New static object.
2317 (the_linux_target): Define as pointer to the_nios2_target.
2318 * linux-ppc-low.cc (class ppc_target): New class.
2319 (the_ppc_target): New static object.
2320 (the_linux_target): Define as pointer to the_ppc_target.
2321 * linux-riscv-low.cc (class riscv_target): New class.
2322 (the_riscv_target): New static object.
2323 (the_linux_target): Define as pointer to the_riscv_target.
2324 * linux-s390-low.cc (class s390_target): New class.
2325 (the_s390_target): New static object.
2326 (the_linux_target): Define as pointer to the_s390_target.
2327 * linux-sh-low.cc (class sh_target): New class.
2328 (the_sh_target): New static object.
2329 (the_linux_target): Define as pointer to the_sh_target.
2330 * linux-sparc-low.cc (class sparc_target): New class.
2331 (the_sparc_target): New static object.
2332 (the_linux_target): Define as pointer to the_sparc_target.
2333 * linux-tic6x-low.cc (class tic6x_target): New class.
2334 (the_tic6x_target): New static object.
2335 (the_linux_target): Define as pointer to the_tic6x_target.
2336 * linux-tile-low.cc (class tile_target): New class.
2337 (the_tile_target): New static object.
2338 (the_linux_target): Define as pointer to the_tile_target.
2339 * linux-xtensa-low.cc (class xtensa_target): New class.
2340 (the_xtensa_target): New static object.
2341 (the_linux_target): Define as pointer to the_xtensa_target.
2343 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2345 Turn some static functions in linux-low.cc into private methods of
2346 linux_process_target.
2348 * linux-low.cc (handle_extended_wait): Turn into ...
2349 (linux_process_target::handle_extended_wait): ...this. Call
2350 'mourn' on 'this' object instead of 'the_target'.
2351 (maybe_move_out_of_jump_pad): Turn into...
2352 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2353 (linux_low_filter_event): Turn into...
2354 (linux_process_target::filter_event): ...this.
2355 (linux_wait_for_event_filtered): Turn into...
2356 (linux_process_target::wait_for_event_filtered): ...this.
2357 (linux_wait_for_event): Turn into...
2358 (linux_process_target::wait_for_event): ...this.
2359 (linux_wait_1): Turn into...
2360 (linux_process_target::wait_1): ...this.
2361 (wait_for_sigstop): Turn into...
2362 (linux_process_target::wait_for_sigstop): ...this.
2363 (move_out_of_jump_pad_callback): Turn into...
2364 (linux_process_target::move_out_of_jump_pad): ...this.
2365 (stop_all_lwps): Turn into...
2366 (linux_process_target::stop_all_lwps): ...this.
2367 (start_step_over): Turn into...
2368 (linux_process_target::start_step_over): ...this.
2369 (complete_ongoing_step_over): Turn into...
2370 (linux_process_target::complete_ongoing_step_over): ...this.
2371 (proceed_all_lwps): Turn into...
2372 (linux_process_target::proceed_all_lwps): ...this.
2373 (unstop_all_lwps): Turn into...
2374 (linux_process_target::unstop_all_lwps): ...this.
2376 * linux-low.h (class linux_process_target)
2377 <handle_extended_wait>
2378 <maybe_move_out_of_jump_pad>
2380 <wait_for_event_filtered>
2384 <move_out_of_jump_pad>
2387 <complete_ongoing_step_over>
2389 <unstop_all_lwps>: Declare.
2391 Update the callers below.
2393 * linux-low.cc (linux_process_target::attach): Update.
2394 (linux_process_target::stabilize_threads): Ditto.
2395 (linux_process_target::wait): Ditto.
2397 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2399 * linux-low.h (struct linux_target_ops): Update the comment for
2400 'cannot_store_register' to return 0 or 1.
2401 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2404 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2406 * config.in: Re-generate.
2407 * configure: Re-generate.
2409 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2411 * regcache.cc (find_register_by_number): Update.
2412 * tdesc.cc (init_target_desc): Likewise.
2413 * tdesc.h (target_desc::reg_defs): Likewise.
2415 2020-03-12 Tom Tromey <tom@tromey.com>
2417 * configure: Rebuild.
2418 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2419 (WIN32APILIBS): New subst.
2420 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2422 (gdbsupport/%.o): Remove target.
2423 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2424 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2425 (WIN32APILIBS): New variable.
2426 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2427 (gdbreplay$(EXEEXT)): Likewise.
2429 2020-03-12 Tom Tromey <tom@tromey.com>
2431 * config.in, configure: Rebuild.
2432 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2433 * acinclude.m4: Include gettext-sister.m4.
2434 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2436 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2437 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2439 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2441 * acinclude.m4: Update path to selftest.m4.
2443 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2445 * configure.ac: Don't source bfd/development.sh, move
2446 GDB_AC_COMMON higher.
2447 * configure: Re-generate.
2449 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2451 * configure: Re-generate.
2453 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2455 * configure: Re-generate.
2457 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2459 * .dir-locals.el: New file.
2461 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2463 * .gitattributes: New file.
2465 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2467 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2468 reply into an S reply.
2469 * server.cc (disable_packet_T): New global.
2470 (captured_main): Set new global when appropriate.
2471 * server.h (disable_packet_T): Declare.
2473 2020-02-21 Tom Tromey <tom@tromey.com>
2475 * Makefile.in (mostlyclean): New target.
2477 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2479 * target.h (struct process_stratum_target): Remove.
2480 (class process_target): Rename to ...
2481 (class process_stratum_target): ... this.
2482 * linux-low.h (class linux_process_target): Derive from
2483 'process_stratum_target'.
2484 * linux-low.cc (linux_target_ops): Remove.
2485 (initialize_low): Set the_target to the singleton instance of
2486 linux_process_target.
2487 * lynx-low.h (class lynx_process_target): Derive from
2488 'process_stratum_target'.
2489 * lynx-low.cc (lynx_target_ops): Remove.
2490 (initialize_low): Set the_target to the singleton instance of
2491 lynx_process_target.
2492 * nto-low.h (class nto_process_target): Derive from
2493 'process_stratum_target'.
2494 * nto-low.cc (nto_target_ops): Remove.
2495 (initialize_low): Set the_target to the singleton instance of
2497 * win32-low.h (class win32_process_target): Derive from
2498 'process_stratum_target'.
2499 * win32-low.cc (win32_target_ops): Remove.
2500 (initialize_low): Set the_target to the singleton instance of
2501 win32_process_target.
2503 Replace 'the_target->pt' with 'the_target' in the uses below.
2505 * hostio.cc (hostio_error)
2510 * linux-aarch32-low.cc (arm_breakpoint_at)
2511 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2512 * linux-arm-low.cc (arm_sigreturn_next_pc)
2514 (arm_get_syscall_trapinfo)
2515 * linux-cris-low.cc (cris_breakpoint_at)
2516 * linux-crisv32-low.cc (cris_breakpoint_at)
2517 * linux-low.cc (handle_extended_wait)
2520 (linux_process_target::breakpoint_kind_from_pc)
2522 * linux-m32r-low.cc (m32r_breakpoint_at)
2523 * linux-mips-low.cc (mips_breakpoint_at)
2524 * linux-nios2-low.cc (nios2_breakpoint_at)
2525 * linux-ppc-low.cc (ppc_breakpoint_at)
2526 * linux-s390-low.cc (s390_get_hwcap)
2527 * linux-sh-low.cc (sh_breakpoint_at)
2528 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2529 (sparc_store_gregset_from_stack)
2530 (sparc_breakpoint_at)
2531 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2532 * linux-tile-low.cc (tile_breakpoint_at)
2533 * linux-x86-low.cc (x86_breakpoint_at)
2534 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2535 * mem-break.cc (bp_size)
2537 (insert_memory_breakpoint)
2538 (set_raw_breakpoint_at)
2539 (delete_raw_breakpoint)
2541 (uninsert_raw_breakpoint)
2542 (reinsert_raw_breakpoint)
2543 (validate_inserted_breakpoint)
2544 * regcache.cc (regcache_read_pc)
2546 * remote-utils.cc (putpkt_binary_1)
2549 (prepare_resume_reply)
2550 * server.cc (handle_general_set)
2553 (handle_qxfer_exec_file)
2554 (handle_qxfer_libraries_svr4)
2555 (handle_qxfer_osdata)
2556 (handle_qxfer_siginfo)
2557 (handle_qxfer_fdpic)
2561 (queue_stop_reply_callback)
2563 * target.cc (prepare_to_access_memory)
2564 (done_accessing_memory)
2565 (read_inferior_memory)
2566 (target_write_memory)
2567 (target_stop_and_wait)
2569 (target_mourn_inferior)
2570 (target_continue_no_signal)
2572 (target_supports_multi_process)
2575 (target_create_inferior)
2576 (target_post_create_inferior)
2578 (target_supports_fork_events)
2579 (target_supports_vfork_events)
2580 (target_supports_exec_events)
2581 (target_handle_new_gdb_connection)
2584 (fetch_inferior_registers)
2585 (store_inferior_registers)
2587 (target_supports_non_stop)
2589 (target_process_qsupported)
2590 (target_supports_catch_syscall)
2591 (target_get_ipa_tdesc_idx)
2592 (target_supports_tracepoints)
2593 (target_supports_fast_tracepoints)
2594 (target_get_min_fast_tracepoint_insn_len)
2595 (target_thread_stopped)
2597 (target_unpause_all)
2598 (target_stabilize_threads)
2599 (target_install_fast_tracepoint_jump_pad)
2601 (target_supports_disable_randomization)
2602 (target_supports_agent)
2603 (target_enable_btrace)
2604 (target_disable_btrace)
2605 (target_read_btrace)
2606 (target_read_btrace_conf)
2607 (target_supports_range_stepping)
2608 (target_supports_stopped_by_sw_breakpoint)
2609 (target_stopped_by_sw_breakpoint)
2610 (target_supports_stopped_by_hw_breakpoint)
2611 (target_supports_hardware_single_step)
2612 (target_stopped_by_hw_breakpoint)
2613 (target_breakpoint_kind_from_pc)
2614 (target_breakpoint_kind_from_current_state)
2615 (target_supports_software_single_step)
2616 (target_core_of_thread)
2617 (target_thread_name)
2618 (target_thread_handle)
2619 * win32-low.cc (do_initial_child_stuff)
2621 Rename target op default definitions listed below.
2623 * target.cc (process_target::post_create_inferior): Rename as ...
2624 (process_stratum_target::post_create_inferior): ... this.
2625 (process_target::prepare_to_access_memory): Rename as ...
2626 (process_stratum_target::prepare_to_access_memory): ... this.
2627 (process_target::done_accessing_memory): Rename as ...
2628 (process_stratum_target::done_accessing_memory): ... this.
2629 (process_target::look_up_symbols): Rename as ...
2630 (process_stratum_target::look_up_symbols): ... this.
2631 (process_target::supports_read_auxv): Rename as ...
2632 (process_stratum_target::supports_read_auxv): ... this.
2633 (process_target::read_auxv): Rename as ...
2634 (process_stratum_target::read_auxv): ... this.
2635 (process_target::supports_z_point_type): Rename as ...
2636 (process_stratum_target::supports_z_point_type): ... this.
2637 (process_target::insert_point): Rename as ...
2638 (process_stratum_target::insert_point): ... this.
2639 (process_target::remove_point): Rename as ...
2640 (process_stratum_target::remove_point): ... this.
2641 (process_target::stopped_by_sw_breakpoint): Rename as ...
2642 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2643 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2644 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2645 (process_target::stopped_by_hw_breakpoint): Rename as ...
2646 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2647 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2648 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2649 (process_target::supports_hardware_single_step): Rename as ...
2650 (process_stratum_target::supports_hardware_single_step): ... this.
2651 (process_target::stopped_by_watchpoint): Rename as ...
2652 (process_stratum_target::stopped_by_watchpoint): ... this.
2653 (process_target::stopped_data_address): Rename as ...
2654 (process_stratum_target::stopped_data_address): ... this.
2655 (process_target::supports_read_offsets): Rename as ...
2656 (process_stratum_target::supports_read_offsets): ... this.
2657 (process_target::read_offsets): Rename as ...
2658 (process_stratum_target::read_offsets): ... this.
2659 (process_target::supports_get_tls_address): Rename as ...
2660 (process_stratum_target::supports_get_tls_address): ... this.
2661 (process_target::get_tls_address): Rename as ...
2662 (process_stratum_target::get_tls_address): ... this.
2663 (process_target::hostio_last_error): Rename as ...
2664 (process_stratum_target::hostio_last_error): ... this.
2665 (process_target::supports_qxfer_osdata): Rename as ...
2666 (process_stratum_target::supports_qxfer_osdata): ... this.
2667 (process_target::qxfer_osdata): Rename as ...
2668 (process_stratum_target::qxfer_osdata): ... this.
2669 (process_target::supports_qxfer_siginfo): Rename as ...
2670 (process_stratum_target::supports_qxfer_siginfo): ... this.
2671 (process_target::qxfer_siginfo): Rename as ...
2672 (process_stratum_target::qxfer_siginfo): ... this.
2673 (process_target::supports_non_stop): Rename as ...
2674 (process_stratum_target::supports_non_stop): ... this.
2675 (process_target::async): Rename as ...
2676 (process_stratum_target::async): ... this.
2677 (process_target::start_non_stop): Rename as ...
2678 (process_stratum_target::start_non_stop): ... this.
2679 (process_target::supports_multi_process): Rename as ...
2680 (process_stratum_target::supports_multi_process): ... this.
2681 (process_target::supports_fork_events): Rename as ...
2682 (process_stratum_target::supports_fork_events): ... this.
2683 (process_target::supports_vfork_events): Rename as ...
2684 (process_stratum_target::supports_vfork_events): ... this.
2685 (process_target::supports_exec_events): Rename as ...
2686 (process_stratum_target::supports_exec_events): ... this.
2687 (process_target::handle_new_gdb_connection): Rename as ...
2688 (process_stratum_target::handle_new_gdb_connection): ... this.
2689 (process_target::handle_monitor_command): Rename as ...
2690 (process_stratum_target::handle_monitor_command): ... this.
2691 (process_target::core_of_thread): Rename as ...
2692 (process_stratum_target::core_of_thread): ... this.
2693 (process_target::supports_read_loadmap): Rename as ...
2694 (process_stratum_target::supports_read_loadmap): ... this.
2695 (process_target::read_loadmap): Rename as ...
2696 (process_stratum_target::read_loadmap): ... this.
2697 (process_target::process_qsupported): Rename as ...
2698 (process_stratum_target::process_qsupported): ... this.
2699 (process_target::supports_tracepoints): Rename as ...
2700 (process_stratum_target::supports_tracepoints): ... this.
2701 (process_target::read_pc): Rename as ...
2702 (process_stratum_target::read_pc): ... this.
2703 (process_target::write_pc): Rename as ...
2704 (process_stratum_target::write_pc): ... this.
2705 (process_target::supports_thread_stopped): Rename as ...
2706 (process_stratum_target::supports_thread_stopped): ... this.
2707 (process_target::thread_stopped): Rename as ...
2708 (process_stratum_target::thread_stopped): ... this.
2709 (process_target::supports_get_tib_address): Rename as ...
2710 (process_stratum_target::supports_get_tib_address): ... this.
2711 (process_target::get_tib_address): Rename as ...
2712 (process_stratum_target::get_tib_address): ... this.
2713 (process_target::pause_all): Rename as ...
2714 (process_stratum_target::pause_all): ... this.
2715 (process_target::unpause_all): Rename as ...
2716 (process_stratum_target::unpause_all): ... this.
2717 (process_target::stabilize_threads): Rename as ...
2718 (process_stratum_target::stabilize_threads): ... this.
2719 (process_target::supports_fast_tracepoints): Rename as ...
2720 (process_stratum_target::supports_fast_tracepoints): ... this.
2721 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2722 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2723 (process_target::emit_ops): Rename as ...
2724 (process_stratum_target::emit_ops): ... this.
2725 (process_target::supports_disable_randomization): Rename as ...
2726 (process_stratum_target::supports_disable_randomization): ... this.
2727 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2728 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2729 (process_target::qxfer_libraries_svr4): Rename as ...
2730 (process_stratum_target::qxfer_libraries_svr4): ... this.
2731 (process_target::supports_agent): Rename as ...
2732 (process_stratum_target::supports_agent): ... this.
2733 (process_target::enable_btrace): Rename as ...
2734 (process_stratum_target::enable_btrace): ... this.
2735 (process_target::disable_btrace): Rename as ...
2736 (process_stratum_target::disable_btrace): ... this.
2737 (process_target::read_btrace): Rename as ...
2738 (process_stratum_target::read_btrace): ... this.
2739 (process_target::read_btrace_conf): Rename as ...
2740 (process_stratum_target::read_btrace_conf): ... this.
2741 (process_target::supports_range_stepping): Rename as ...
2742 (process_stratum_target::supports_range_stepping): ... this.
2743 (process_target::supports_pid_to_exec_file): Rename as ...
2744 (process_stratum_target::supports_pid_to_exec_file): ... this.
2745 (process_target::pid_to_exec_file): Rename as ...
2746 (process_stratum_target::pid_to_exec_file): ... this.
2747 (process_target::supports_multifs): Rename as ...
2748 (process_stratum_target::supports_multifs): ... this.
2749 (process_target::multifs_open): Rename as ...
2750 (process_stratum_target::multifs_open): ... this.
2751 (process_target::multifs_unlink): Rename as ...
2752 (process_stratum_target::multifs_unlink): ... this.
2753 (process_target::multifs_readlink): Rename as ...
2754 (process_stratum_target::multifs_readlink): ... this.
2755 (process_target::breakpoint_kind_from_pc): Rename as ...
2756 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2757 (process_target::breakpoint_kind_from_current_state): Rename as ...
2758 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2759 (process_target::thread_name): Rename as ...
2760 (process_stratum_target::thread_name): ... this.
2761 (process_target::thread_handle): Rename as ...
2762 (process_stratum_target::thread_handle): ... this.
2763 (process_target::supports_software_single_step): Rename as ...
2764 (process_stratum_target::supports_software_single_step): ... this.
2765 (process_target::supports_catch_syscall): Rename as ...
2766 (process_stratum_target::supports_catch_syscall): ... this.
2767 (process_target::get_ipa_tdesc_idx): Rename as ...
2768 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2770 2020-02-20 Pedro Alves <palves@redhat.com>
2772 * target.cc (set_target_ops): Simply copy the given target pointer
2773 instead of creating a copy of the pointed object.
2775 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2777 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2780 * target.h (struct process_stratum_target): Remove the target op.
2781 (class process_target): Add the target op.
2782 (target_get_ipa_tdesc_idx): Update the macro.
2783 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2785 Update the derived classes and callers below.
2787 * linux-low.cc (linux_target_ops): Update.
2788 (linux_get_ipa_tdesc_idx): Turn into ...
2789 (linux_process_target::get_ipa_tdesc_idx): ... this.
2790 * linux-low.h (class linux_process_target): Update.
2791 * lynx-low.cc (lynx_target_ops): Update.
2792 * nto-low.cc (nto_target_ops): Update.
2793 * win32-low.cc (win32_target_ops): Update.
2795 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2797 Turn process_stratum_target's supports_catch_syscall op into a
2798 method of process_target.
2800 * target.h (struct process_stratum_target): Remove the target op.
2801 (class process_target): Add the target op.
2802 (target_supports_catch_syscall): Update the macro.
2803 * target.cc (process_target::supports_catch_syscall): Define.
2805 Update the derived classes and callers below.
2807 * linux-low.cc (linux_target_ops): Update.
2808 (linux_supports_catch_syscall): Turn into ...
2809 (linux_process_target::supports_catch_syscall): ... this.
2810 * linux-low.h (class linux_process_target): Update.
2811 * lynx-low.cc (lynx_target_ops): Update.
2812 * nto-low.cc (nto_target_ops): Update.
2813 * win32-low.cc (win32_target_ops): Update.
2815 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2817 Turn process_stratum_target's supports_software_single_step op
2818 into a method of process_target.
2820 * target.h (struct process_stratum_target): Remove the target op.
2821 (class process_target): Add the target op.
2822 (target_supports_software_single_step): Update the macro.
2823 * target.cc (process_target::supports_software_single_step): Define.
2825 Update the derived classes and callers below.
2827 * linux-low.cc (linux_target_ops): Update.
2828 (linux_supports_software_single_step): Turn into ...
2829 (linux_process_target::supports_software_single_step): ... this.
2830 * linux-low.h (class linux_process_target): Update.
2831 * lynx-low.cc (lynx_target_ops): Update.
2832 * nto-low.cc (nto_target_ops): Update.
2833 * win32-low.cc (win32_target_ops): Update.
2835 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2837 Turn process_stratum_target's thread_name and thread_handle ops
2838 into methods of process_target.
2840 * target.h (struct process_stratum_target): Remove the target ops.
2841 (class process_target): Add the target ops.
2842 (target_thread_name): Update the macro.
2843 (target_thread_handle): Update the macro.
2844 * target.cc (process_target::thread_name): Define.
2845 (process_target::thread_handle): Define.
2847 Update the derived classes and callers below.
2849 * linux-low.cc (linux_target_ops): Update.
2850 (linux_process_target::thread_name): Define.
2851 (linux_process_target::thread_handle): Define.
2852 * linux-low.h (class linux_process_target): Update.
2853 * lynx-low.cc (lynx_target_ops): Update.
2854 * nto-low.cc (nto_target_ops): Update.
2855 * win32-low.cc (win32_target_ops): Update.
2857 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2859 Turn process_stratum_target's breakpoint_kind_from_pc,
2860 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2861 ops into methods of process_target.
2863 * target.h (struct process_stratum_target): Remove the target op.
2864 (class process_target): Add the target op.
2865 (target_breakpoint_kind_from_pc): Update the macro.
2866 (target_breakpoint_kind_from_current_state): Update the macro.
2867 (default_breakpoint_kind_from_pc): Remove declaration.
2868 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2869 (process_target::breakpoint_kind_from_pc): ... this.
2870 (process_target::breakpoint_kind_from_current_state): Define.
2872 Update the derived classes and callers below.
2874 * mem-break.cc (bp_size): Update.
2875 (bp_opcode): Update.
2876 * linux-low.cc (linux_target_ops): Update.
2877 (linux_wait_1): Update.
2878 (linux_breakpoint_kind_from_pc): Turn into ...
2879 (linux_process_target::breakpoint_kind_from_pc): ... this.
2880 (linux_sw_breakpoint_from_kind): Turn into ...
2881 (linux_process_target::sw_breakpoint_from_kind): ... this.
2882 (linux_breakpoint_kind_from_current_state): Turn into ...
2883 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2884 * linux-low.h (class linux_process_target): Update.
2885 * lynx-low.cc (lynx_target_ops): Update.
2886 (lynx_process_target::sw_breakpoint_from_kind): Define.
2887 * lynx-low.h (class lynx_process_target): Update.
2888 * nto-low.cc (nto_target_ops): Update.
2889 (nto_sw_breakpoint_from_kind): Turn into ...
2890 (nto_process_target::sw_breakpoint_from_kind): ... this.
2891 * nto-low.h (class nto_process_target): Update.
2892 * win32-low.cc (win32_target_ops): Update.
2893 (win32_sw_breakpoint_from_kind): Turn into ...
2894 (win32_process_target::sw_breakpoint_from_kind): ... this.
2895 * win32-low.h (class win32_process_target): Update.
2897 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2899 Turn process_stratum_target's multifs_open, multifs_readlink,
2900 multifs_unlink ops into methods of process_target.
2902 * target.h (struct process_stratum_target): Remove the target ops.
2903 (class process_target): Add the target ops. Also add
2905 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2907 (process_target::supports_multifs): Define.
2908 (process_target::multifs_open): Define.
2909 (process_target::multifs_readlink): Define.
2910 (process_target::multifs_unlink): Define.
2912 Update the derived classes and callers below.
2914 * hostio.cc (handle_setfs): Update.
2915 (handle_open): Update.
2916 (handle_unlink): Update.
2917 (handle_readlink): Update.
2918 * linux-low.cc (linux_target_ops): Update.
2919 (linux_process_target::supports_multifs): Define.
2920 (linux_process_target::multifs_open): Define.
2921 (linux_process_target::multifs_readlink): Define.
2922 (linux_process_target::multifs_unlink): Define.
2923 * linux-low.h (class linux_process_target): Update.
2924 * lynx-low.cc (lynx_target_ops): Update.
2925 * nto-low.cc (nto_target_ops): Update.
2926 * win32-low.cc (win32_target_ops): Update.
2928 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2930 Turn process_stratum_target's pid_to_exec_file op into a method
2933 * target.h (struct process_stratum_target): Remove the target op.
2934 (class process_target): Add the target op. Also add
2935 'supports_pid_to_exec_file'.
2936 * target.cc (process_target::pid_to_exec_file): Define.
2937 (process_target::supports_pid_to_exec_file): Define.
2939 Update the derived classes and callers below.
2941 * server.cc (handle_qxfer_exec_file): Update.
2942 (handle_query): Update.
2943 * linux-low.cc (linux_target_ops): Update.
2944 (linux_process_target::supports_pid_to_exec_file): Define.
2945 (linux_process_target::pid_to_exec_file): Define.
2946 * linux-low.h (class linux_process_target): Update.
2947 * lynx-low.cc (lynx_target_ops): Update.
2948 * nto-low.cc (nto_target_ops): Update.
2949 * win32-low.cc (win32_target_ops): Update.
2951 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2953 Turn process_stratum_target's supports_range_stepping op into a
2954 method of process_target.
2956 * target.h (struct process_stratum_target): Remove the target op.
2957 (class process_target): Add the target op.
2958 (target_supports_range_stepping): Update the macro.
2959 * target.cc (process_target::supports_range_stepping): Define.
2961 Update the derived classes and callers below.
2963 * linux-low.cc (linux_target_ops): Update.
2964 (linux_supports_range_stepping): Turn into ...
2965 (linux_process_target::supports_range_stepping): ... this.
2966 * linux-low.h (class linux_process_target): Update.
2967 * lynx-low.cc (lynx_target_ops): Update.
2968 * nto-low.cc (nto_target_ops): Update.
2969 * win32-low.cc (win32_target_ops): Update.
2971 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2973 Turn process_stratum_target's btrace-related ops (enable_btrace,
2974 disable_btrace, read_btrace, read_btrace_conf) into methods of
2977 * target.h (struct process_stratum_target): Remove the target ops.
2978 (class process_target): Add the target ops.
2979 (target_enable_btrace): Update.
2980 (target_disable_btrace): Update.
2981 (target_read_btrace): Update.
2982 (target_read_btrace_conf): Update.
2983 * target.cc (process_target::enable_btrace): Define.
2984 (process_target::disable_btrace): Define.
2985 (process_target::read_btrace): Define.
2986 (process_target::read_btrace_conf): Define.
2988 Update the derived classes and callers below.
2990 * linux-low.cc (linux_target_ops): Update.
2991 (linux_process_target:enable_btrace): Define as a wrapper around
2992 linux_enable_btrace.
2993 (linux_low_disable_btrace): Turn into ...
2994 (linux_process_target::disable_btrace): ... this.
2995 (linux_low_read_btrace): Turn into ...
2996 (linux_process_target::read_btrace): ... this.
2997 (linux_low_btrace_conf): Turn into ...
2998 (linux_process_target::read_btrace_conf): ... this.
2999 * linux-low.h (class linux_process_target): Update.
3000 * lynx-low.cc (lynx_target_ops): Update.
3001 * nto-low.cc (nto_target_ops): Update.
3002 * win32-low.cc (win32_target_ops): Update.
3004 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3006 Turn process_stratum_target's supports_agent op into a method of
3009 * target.h (struct process_stratum_target): Remove the target op.
3010 (class process_target): Add the target op.
3011 (target_supports_agent): Update the macro.
3012 * target.cc (process_target::supports_agent): Define.
3014 Update the derived classes and callers below.
3016 * linux-low.cc (linux_target_ops): Update.
3017 (linux_supports_agent): Turn into ...
3018 (linux_process_target::supports_agent): ... this.
3019 * linux-low.h (class linux_process_target): Update.
3020 * lynx-low.cc (lynx_target_ops): Update.
3021 * nto-low.cc (nto_target_ops): Update.
3022 * win32-low.cc (win32_target_ops): Update.
3024 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3026 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3027 method of process_target.
3029 * target.h (struct process_stratum_target): Remove the target op.
3030 (class process_target): Add the target op. Also add
3031 'supports_qxfer_libraries_svr4'.
3032 * target.cc (process_target::qxfer_libraries_svr4): Define.
3033 (process_target::supports_qxfer_libraries_svr4): Define.
3035 Update the derived classes and callers below.
3037 * server.cc (handle_qxfer_libraries_svr4): Update.
3038 (handle_query): Update.
3039 * linux-low.cc (linux_target_ops): Update.
3040 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3041 (linux_qxfer_libraries_svr4): Turn into ...
3042 (linux_process_target::qxfer_libraries_svr4): ... this.
3043 * linux-low.h (class linux_process_target): Update.
3044 * lynx-low.cc (lynx_target_ops): Update.
3045 * nto-low.cc (nto_target_ops): Update.
3046 * win32-low.cc (win32_target_ops): Update.
3048 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3050 Turn process_stratum_target's supports_disable_randomization op
3051 into a method of process_target.
3053 * target.h (struct process_stratum_target): Remove the target op.
3054 (class process_target): Add the target op.
3055 (target_supports_disable_randomization): Update the macro.
3056 * target.cc (process_target::supports_disable_randomization): Define.
3058 Update the derived classes and callers below.
3060 * linux-low.cc (linux_target_ops): Update.
3061 (linux_supports_disable_randomization): Turn into ...
3062 (linux_process_target::supports_disable_randomization): ... this.
3063 * linux-low.h (class linux_process_target): Update.
3064 * lynx-low.cc (lynx_target_ops): Update.
3065 * nto-low.cc (nto_target_ops): Update.
3066 * win32-low.cc (win32_target_ops): Update.
3068 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3070 Turn process_stratum_target's emit_ops op into a method of
3073 * target.h (struct process_stratum_target): Remove the target op.
3074 (class process_target): Add the target op.
3075 (target_emit_ops): Update the macro.
3076 * target.cc (process_target::emit_ops): Define.
3078 Update the derived classes and callers below.
3080 * linux-low.cc (linux_target_ops): Update.
3081 (linux_emit_ops): Turn into ...
3082 (linux_process_target::emit_ops): ... this.
3083 * linux-low.h (class linux_process_target): Update.
3084 * lynx-low.cc (lynx_target_ops): Update.
3085 * nto-low.cc (nto_target_ops): Update.
3086 * win32-low.cc (win32_target_ops): Update.
3088 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3090 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3091 and get_min_fast_tracepoint_insn_len ops into methods of
3094 * target.h (struct process_stratum_target): Remove the target ops.
3095 (class process_target): Add the target ops. Also add
3096 'supports_fast_tracepoints'.
3097 (target_supports_fast_tracepoints): Update the macro.
3098 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3099 (install_fast_tracepoint_jump_pad): Update and rename the macro
3101 (target_install_fast_tracepoint_jump_pad): ... this.
3102 * target.cc (process_target::supports_fast_tracepoints): Define.
3103 (process_target::install_fast_tracepoint_jump_pad): Define.
3104 (process_target::get_min_fast_tracepoint_insn_len): Define.
3106 Update the derived classes and callers below.
3108 * tracepoint.cc (install_fast_tracepoint): Update.
3109 * linux-low.cc (linux_target_ops): Update.
3110 (linux_process_target::supports_fast_tracepoints): Define.
3111 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3112 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3113 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3114 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3115 * linux-low.h (class linux_process_target): Update.
3116 * lynx-low.cc (lynx_target_ops): Update.
3117 * nto-low.cc (nto_target_ops): Update.
3118 * win32-low.cc (win32_target_ops): Update.
3120 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3122 Turn process_stratum_target's stabilize_threads op into a
3123 method of process_target.
3125 * target.h (struct process_stratum_target): Remove the target op.
3126 (class process_target): Add the target op.
3127 (target_stabilize_threads): Update the macro.
3128 * target.cc (process_target::stabilize_threads): Define.
3130 Update the derived classes and callers below.
3132 * server.cc (handle_status): Update.
3133 * tracepoint.cc (cmd_qtdp): Update.
3134 (cmd_qtstart): Update.
3135 * linux-low.cc (linux_target_ops): Update.
3136 (linux_stabilize_threads): Turn into ...
3137 (linux_process_target::stabilize_threads): ... this.
3138 (linux_wait_1): Update.
3139 * linux-low.h (class linux_process_target): Update.
3140 * lynx-low.cc (lynx_target_ops): Update.
3141 * nto-low.cc (nto_target_ops): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3144 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3146 Turn process_stratum_target's pause_all and unpause_all ops
3147 into methods of process_target.
3149 * target.h (struct process_stratum_target): Remove the target ops.
3150 (class process_target): Add the target ops.
3151 (pause_all): Update the macro and rename to...
3152 (target_pause_all): ... this.
3153 (unpause_all): Update the macro and rename to...
3154 (target_unpause_all): ... this.
3155 * target.cc (process_target::pause_all): Define.
3156 (process_target::unpause_all): Define.
3158 Update the derived classes and callers below.
3160 * server.cc (handle_status): Update.
3161 * tracepoint.cc (clear_installed_tracepoints): Update.
3163 (cmd_qtstart): Update.
3164 (stop_tracing): Update.
3165 (cmd_qtstatus): Update.
3166 (upload_fast_traceframes): Update.
3167 (run_inferior_command): Update.
3168 * linux-low.cc (linux_target_ops): Update.
3169 (linux_pause_all): Turn into ...
3170 (linux_process_target::pause_all): ... this.
3171 (linux_unpause_all): Turn into ...
3172 (linux_process_target::unpause_all): ... this.
3173 (linux_process_target::prepare_to_access_memory): Update.
3174 (linux_process_target::done_accessing_memory): Update.
3175 * linux-low.h (class linux_process_target): Update.
3176 * lynx-low.cc (lynx_target_ops): Update.
3177 * nto-low.cc (nto_target_ops): Update.
3178 * win32-low.cc (win32_target_ops): Update.
3180 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3182 Turn process_stratum_target's get_tib_address op into a method of
3185 * target.h (struct process_stratum_target): Remove the target op.
3186 (class process_target): Add the target op. Also add
3187 'supports_get_tib_address'.
3188 * target.cc (process_target::get_tib_address): Define.
3189 (process_target::supports_get_tib_address): Define.
3191 Update the derived classes and callers below.
3193 * server.cc (handle_query): Update.
3194 * linux-low.cc (win32_target_ops): Update.
3195 * lynx-low.cc (lynx_target_ops): Update.
3196 * nto-low.cc (nto_target_ops): Update.
3197 * win32-low.cc (win32_target_ops): Update.
3198 (win32_process_target::supports_get_tib_address): Define.
3199 (win32_get_tib_address): Turn into ...
3200 (win32_process_target::get_tib_address): ... this.
3201 * win32-low.h (class win32_process_target): Update.
3203 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3205 Turn process_stratum_target's thread_stopped op into a method of
3208 * target.h (struct process_stratum_target): Remove the target op.
3209 (class process_target): Add the target op. Also add
3210 'supports_thread_stopped'.
3211 (target_thread_stopped): Update the macro.
3212 * target.cc (process_target::thread_stopped): Define.
3213 (process_target::supports_thread_stopped): Define.
3214 (prepare_to_access_memory): Update.
3216 Update the derived classes and callers below.
3218 * server.cc (queue_stop_reply_callback): Update.
3219 * linux-low.cc (linux_target_ops): Update.
3220 (linux_process_target::supports_thread_stopped): Define.
3221 (linux_thread_stopped): Turn into ...
3222 (linux_process_target::thread_stopped): ... this.
3223 * linux-low.h (class linux_process_target): Update.
3224 * lynx-low.cc (lynx_target_ops): Update.
3225 * nto-low.cc (nto_target_ops): Update.
3226 * win32-low.cc (win32_target_ops): Update.
3228 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3230 Turn process_stratum_target's read_pc and write_pc ops into
3231 methods of process_target.
3233 * target.h (struct process_stratum_target): Remove the target ops.
3234 (class process_target): Add the target ops.
3235 * target.cc (process_target::read_pc): Define.
3236 (process_target::write_pc): Define.
3238 Update the derived classes and callers below.
3240 * regcache.cc (regcache_read_pc): Update.
3241 (regcache_write_pc): Update.
3242 * linux-low.cc (linux_target_ops): Update.
3243 (linux_read_pc): Turn into ...
3244 (linux_process_target::read_pc): ... this.
3245 (linux_write_pc): Turn into ...
3246 (linux_process_target::write_pc): ... this.
3247 * linux-low.h (class linux_process_target): Update.
3248 * lynx-low.cc (lynx_target_ops): Update.
3249 * nto-low.cc (nto_target_ops): Update.
3250 * win32-low.cc (win32_target_ops): Update.
3252 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3254 Turn process_stratum_target's supports_tracepoints op into a
3255 method of process_target.
3257 * target.h (struct process_stratum_target): Remove the target op.
3258 (class process_target): Add the target op.
3259 (target_supports_tracepoints): Update the macro.
3260 * target.cc (process_target::supports_tracepoints): Define.
3262 Update the derived classes and callers below.
3264 * linux-low.cc (linux_target_ops): Update.
3265 (linux_supports_tracepoints): Turn into ...
3266 (linux_process_target::supports_tracepoints): ... this.
3267 * linux-low.h (class linux_process_target): Update.
3268 * lynx-low.cc (lynx_target_ops): Update.
3269 * nto-low.cc (nto_target_ops): Update.
3270 * win32-low.cc (win32_target_ops): Update.
3272 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3274 Turn process_stratum_target's process_qsupported op into a method
3277 * target.h (struct process_stratum_target): Remove the target op.
3278 (class process_target): Add the target op.
3279 (target_process_qsupported): Update the macro.
3280 * target.cc (process_target::process_qsupported): Define.
3282 Update the derived classes and callers below.
3284 * linux-low.cc (linux_target_ops): Update.
3285 (linux_process_qsupported): Turn into ...
3286 (linux_process_target::process_qsupported): ... this.
3287 * linux-low.h (class linux_process_target): Update.
3288 * lynx-low.cc (lynx_target_ops): Update.
3289 * nto-low.cc (nto_target_ops): Update.
3290 * win32-low.cc (win32_target_ops): Update.
3292 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3294 Turn process_stratum_target's read_loadmap op into a method of
3297 * target.h (struct process_stratum_target): Remove the target op.
3298 (class process_target): Add the target op. Also add
3299 'supports_read_loadmap'.
3300 * target.cc (process_target::read_loadmap): Define.
3301 (process_target::supports_read_loadmap): Define.
3303 Update the derived classes and callers below.
3305 * server.cc (handle_qxfer_fdpic): Update.
3306 (handle_query): Update.
3307 * linux-low.cc (linux_target_ops): Update.
3308 (linux_process_target::supports_read_loadmap): Define.
3309 (linux_read_loadmap): Turn into ...
3310 (linux_process_target::read_loadmap): ... this.
3311 * linux-low.h (class linux_process_target): Update.
3312 * lynx-low.cc (lynx_target_ops): Update.
3313 * nto-low.cc (nto_target_ops): Update.
3314 * win32-low.cc (win32_target_ops): Update.
3316 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3318 Turn process_stratum_target's core_of_thread op into a method of
3321 * target.h (struct process_stratum_target): Remove the target op.
3322 (class process_target): Add the target op.
3323 (target_core_of_thread): Update the macro.
3324 * target.cc (process_target::core_of_thread): Define.
3326 Update the derived classes and callers below.
3328 * linux-low.cc (linux_target_ops): Update.
3329 (linux_process_target::core_of_thread): Define.
3330 * linux-low.h (class linux_process_target): Update.
3331 * lynx-low.cc (lynx_target_ops): Update.
3332 * nto-low.cc (nto_target_ops): Update.
3333 * win32-low.cc (win32_target_ops): Update.
3335 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3337 Turn process_stratum_target's handle_monitor_command op into a
3338 method of process_target.
3340 * target.h (struct process_stratum_target): Remove the target op.
3341 (class process_target): Add the target op.
3342 (target_handle_monitor_command): Update the macro.
3343 * target.cc (process_target::handle_monitor_command): Define.
3345 Update the derived classes and callers below.
3347 * server.cc (handle_query): Update.
3348 * linux-low.cc (linux_target_ops): Update.
3349 (linux_process_target::handle_monitor_command): Define.
3350 * linux-low.h (class linux_process_target): Update.
3351 * lynx-low.cc (lynx_target_ops): Update.
3352 * nto-low.cc (nto_target_ops): Update.
3353 * win32-low.cc (win32_target_ops): Update.
3355 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3357 Turn process_stratum_target's handle_new_gdb_connection op into a
3358 method of process_target.
3360 * target.h (struct process_stratum_target): Remove the target op.
3361 (class process_target): Add the target op.
3362 (target_handle_new_gdb_connection): Update the macro.
3363 * target.cc (process_target::handle_new_gdb_connection): Define.
3365 Update the derived classes and callers below.
3367 * linux-low.cc (linux_target_ops): Update.
3368 (linux_handle_new_gdb_connection): Turn into ...
3369 (linux_process_target::handle_new_gdb_connection): ... this.
3370 * linux-low.h (class linux_process_target): Update.
3371 * lynx-low.cc (lynx_target_ops): Update.
3372 * nto-low.cc (nto_target_ops): Update.
3373 * win32-low.cc (win32_target_ops): Update.
3375 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3377 Turn process_stratum_target's supports_fork_events,
3378 supports_vfork_events, and supports_exec_events ops into methods
3381 * target.h (struct process_stratum_target): Remove the target ops.
3382 (class process_target): Add the target ops.
3383 (target_supports_fork_events): Update the macro.
3384 (target_supports_vfork_events): Update the macro.
3385 (target_supports_exec_events): Update the macro.
3386 * target.cc (process_target::supports_fork_events): Define.
3387 (process_target::supports_vfork_events): Define.
3388 (process_target::supports_exec_events): Define.
3390 Update the derived classes and callers below.
3392 * linux-low.cc (linux_target_ops): Update.
3393 (linux_supports_fork_events): Turn into ...
3394 (linux_process_target::supports_fork_events): ... this.
3395 (linux_supports_vfork_events): Turn into ...
3396 (linux_process_target::supports_vfork_events): ... this.
3397 (linux_supports_exec_events): Turn into ...
3398 (linux_process_target::supports_exec_events): ... this.
3399 * linux-low.h (class linux_process_target): Update.
3400 * lynx-low.cc (lynx_target_ops): Update.
3401 * nto-low.cc (nto_target_ops): Update.
3402 * win32-low.cc (win32_target_ops): Update.
3404 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3406 Turn process_stratum_target's supports_multi_process op into a
3407 method of process_target.
3409 * target.h (struct process_stratum_target): Remove the target op.
3410 (class process_target): Add the target op.
3411 * target.cc (process_target::supports_multi_process): Define.
3412 (target_supports_multi_process): Update.
3414 Update the derived classes and callers below.
3416 * linux-low.cc (linux_target_ops): Update.
3417 (linux_supports_multi_process): Turn into ...
3418 (linux_process_target::supports_multi_process): ... this.
3419 * linux-low.h (class linux_process_target): Update.
3420 * lynx-low.cc (lynx_target_ops): Update.
3421 * nto-low.cc (nto_target_ops): Update.
3422 * win32-low.cc (win32_target_ops): Update.
3424 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3426 Turn process_stratum_target's supports_non_stop, async, and
3427 start_non_stop ops into methods of process_target.
3429 * target.h (struct process_stratum_target): Remove the target ops.
3430 (class process_target): Add the target ops.
3431 (target_supports_non_stop): Update the macro.
3432 (target_async): Update the macro.
3433 (start_non_stop): Remove declaration.
3434 * target.cc (process_target::supports_non_stop): Define.
3435 (process_target::async): Define.
3436 (process_target::start_non_stop): Define.
3437 (start_non_stop): Remove.
3439 Update the derived classes and callers below.
3441 * server.cc (handle_qxfer_siginfo): Update.
3442 (handle_query): Update.
3443 * linux-low.cc (linux_target_ops): Update.
3444 (linux_supports_non_stop): Turn into ...
3445 (linux_process_target::supports_non_stop): ... this.
3446 (linux_async): Turn into ...
3447 (linux_process_target::async): ... this.
3448 (linux_start_non_stop): Turn into ...
3449 (linux_process_target::start_non_stop): ... this.
3450 * linux-low.h (class linux_process_target): Update.
3451 * lynx-low.cc (lynx_target_ops): Update.
3452 * nto-low.cc (nto_target_ops): Update.
3453 (nto_supports_non_stop): Remove; rely on the default behavior
3455 * win32-low.cc (win32_target_ops): Update.
3457 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3459 Turn process_stratum_target's qxfer_siginfo op into a method of
3462 * target.h (struct process_stratum_target): Remove the target op.
3463 (class process_target): Add the target op. Also add
3464 'supports_qxfer_siginfo'.
3465 * target.cc (process_target::qxfer_siginfo): Define.
3466 (process_target::supports_qxfer_siginfo): Define.
3468 Update the derived classes and callers below.
3470 * server.cc (handle_qxfer_siginfo): Update.
3471 (handle_query): Update.
3472 * linux-low.cc (linux_target_ops): Update.
3473 (linux_process_target::supports_qxfer_siginfo): Define.
3474 (linux_xfer_siginfo): Turn into ...
3475 (linux_process_target::qxfer_siginfo): ... this.
3476 * linux-low.h (class linux_process_target): Update.
3477 * lynx-low.cc (lynx_target_ops): Update.
3478 * nto-low.cc (nto_target_ops): Update.
3479 * win32-low.cc (win32_target_ops): Update.
3481 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3483 Turn process_stratum_target's qxfer_osdata op into a method of
3486 * target.h (struct process_stratum_target): Remove the target op.
3487 (class process_target): Add the target op. Also add
3488 'supports_qxfer_osdata'.
3489 * target.cc (process_target::qxfer_osdata): Define.
3490 (process_target::supports_qxfer_osdata): Define.
3492 Update the derived classes and callers below.
3494 * server.cc (handle_qxfer_osdata): Update.
3495 (handle_query): Update.
3496 * linux-low.cc (linux_target_ops): Update.
3497 (linux_process_target::supports_qxfer_osdata): Define.
3498 (linux_qxfer_osdata): Turn into ...
3499 (linux_process_target::qxfer_osdata): ... this.
3500 * linux-low.h (class linux_process_target): Update.
3501 * lynx-low.cc (lynx_target_ops): Update.
3502 * nto-low.cc (nto_target_ops): Update.
3503 * win32-low.cc (win32_target_ops): Update.
3505 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3507 Turn process_stratum_target's hostio_last_error op into a
3508 method of process_target.
3510 * target.h (struct process_stratum_target): Remove the target op.
3511 (class process_target): Add the target op.
3512 * target.cc: Add "hostio.h" to includes.
3513 (process_target::hostio_last_error): Define.
3515 Update the derived classes and callers below.
3517 * hostio.cc (hostio_error): Update.
3518 * linux-low.cc: Remove "hostio.h" from includes.
3519 (linux_target_ops): Update.
3520 * lynx-low.cc (lynx_target_ops): Update.
3521 * nto-low.cc (nto_target_ops): Update.
3522 * win32-low.h (class win32_process_target): Update.
3523 * win32-low.cc (win32_target_ops): Update.
3524 (wince_hostio_last_error): Turn into ...
3525 (win32_process_target::hostio_last_error): ... this.
3527 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3529 Turn process_stratum_target's get_tls_address op into a method of
3532 * target.h (struct process_stratum_target): Remove the target op.
3533 (class process_target): Add the target op. Also add
3534 'supports_get_tls_address'.
3535 * target.cc (process_target::get_tls_address): Define.
3536 (process_target::supports_get_tls_address): Define.
3538 Update the derived classes and callers below.
3540 * server.cc (handle_query): Update.
3541 * linux-low.cc (linux_target_ops): Update.
3542 (linux_process_target::supports_get_tls_address): Define.
3543 (linux_process_target::get_tls_address): Define.
3544 * linux-low.h (class linux_process_target): Update.
3545 * lynx-low.cc (lynx_target_ops): Update.
3546 * nto-low.cc (nto_target_ops): Update.
3547 * win32-low.cc (win32_target_ops): Update.
3549 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3551 Turn process_stratum_target's read_offsets op into a method of
3554 * target.h (struct process_stratum_target): Remove the target op.
3555 (class process_target): Add the target op. Also add
3556 'supports_read_offsets'.
3557 * target.cc (process_target::read_offsets): Define.
3558 (process_target::supports_read_offsets): Define.
3560 Update the derived classes and callers below.
3562 * server.cc (handle_query): Update.
3563 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3564 (linux_target_ops): Update.
3565 (linux_process_target::supports_read_offsets): Define.
3566 (linux_read_offsets): Turn into ...
3567 (linux_process_target::read_offsets): ... this.
3568 * linux-low.h (class linux_process_target): Update.
3569 * lynx-low.cc (lynx_target_ops): Update.
3570 * nto-low.cc (nto_target_ops): Update.
3571 * win32-low.cc (win32_target_ops): Update.
3573 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3575 Turn process_stratum_target's stopped_by_watchpoint and
3576 stopped_data_address ops into methods of process_target.
3578 * target.h (struct process_stratum_target): Remove the target ops.
3579 (class process_target): Add the target ops.
3580 * target.cc (process_target::stopped_by_watchpoint): Define.
3581 (process_target::stopped_data_address): Define.
3583 Update the derived classes and callers below.
3585 * remote-utils.cc (prepare_resume_reply): Update.
3586 * linux-low.cc (linux_target_ops): Update.
3587 (linux_stopped_by_watchpoint): Turn into ...
3588 (linux_process_target::stopped_by_watchpoint): ... this.
3589 (linux_stopped_data_address): Turn into ...
3590 (linux_process_target::stopped_data_address): ... this.
3591 * linux-low.h (class linux_process_target): Update.
3592 * lynx-low.cc (lynx_target_ops): Update.
3593 * nto-low.cc (nto_target_ops): Update.
3594 (nto_stopped_by_watchpoint): Turn into ...
3595 (nto_process_target::stopped_by_watchpoint): ... this.
3596 (nto_stopped_data_address): Turn into ...
3597 (nto_process_target::stopped_data_address): ... this.
3598 * nto-low.h (class nto_process_target): Update.
3599 * win32-low.cc (win32_target_ops): Update.
3600 (win32_stopped_by_watchpoint): Turn into ...
3601 (win32_process_target::stopped_by_watchpoint): ... this.
3602 (win32_stopped_data_address): Turn into ...
3603 (win32_process_target::stopped_data_address): ... this.
3604 * win32-low.h (class win32_process_target): Update.
3606 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3608 Turn process_stratum_target's supports_hardware_single_step op into
3609 a method of process_target.
3611 * target.h (struct process_stratum_target): Remove the target op.
3612 (class process_target): Add the target op.
3613 (target_supports_hardware_single_step): Update the macro.
3614 (target_can_do_hardware_single_step): Remove declaration.
3615 * target.cc (process_target::supports_hardware_single_step): Define.
3616 (target_can_do_hardware_single_step): Remove.
3618 Update the derived classes and callers below.
3620 * linux-low.h (class linux_process_target): Update.
3621 * linux-low.cc (linux_target_ops): Update.
3622 (linux_supports_hardware_single_step): Turn into ...
3623 (linux_process_target::supports_hardware_single_step): ... this.
3624 * lynx-low.h (class lynx_process_target): Update.
3625 * lynx-low.cc (lynx_target_ops): Update.
3626 (lynx_process_target::supports_hardware_single_step): Define.
3627 * nto-low.h (class nto_process_target): Update.
3628 * nto-low.cc (nto_target_ops): Update.
3629 (nto_process_target::supports_hardware_single_step): Define.
3630 * win32-low.h (class win32_process_target): Update.
3631 * win32-low.cc (win32_target_ops): Update.
3632 (win32_process_target::supports_hardware_single_step): Define.
3634 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3636 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3637 ops into methods of process_target.
3639 * target.h (struct process_stratum_target): Remove the target ops.
3640 (class process_target): Add the target ops.
3641 (target_stopped_by_hw_breakpoint): Update the macro.
3642 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3643 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3644 (process_target::supports_stopped_by_hw_breakpoint): Define.
3646 Update the derived classes and callers below.
3648 * linux-low.cc (linux_target_ops): Update.
3649 (linux_stopped_by_hw_breakpoint): Turn into ...
3650 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3651 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3652 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3653 * linux-low.h (class linux_process_target): Update.
3654 * lynx-low.cc (lynx_target_ops): Update.
3655 * nto-low.cc (nto_target_ops): Update.
3656 * win32-low.cc (win32_target_ops): Update.
3658 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3660 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3661 ops into methods of process_target.
3663 * target.h (struct process_stratum_target): Remove the target ops.
3664 (class process_target): Add the target ops.
3665 (target_stopped_by_sw_breakpoint): Update the macro.
3666 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3667 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3668 (process_target::supports_stopped_by_sw_breakpoint): Define.
3670 Update the derived classes and callers below.
3672 * linux-low.cc (linux_target_ops): Update.
3673 (linux_stopped_by_sw_breakpoint): Turn into ...
3674 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3675 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3676 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3677 * linux-low.h (class linux_process_target): Update.
3678 * lynx-low.cc (lynx_target_ops): Update.
3679 * nto-low.cc (nto_target_ops): Update.
3680 * win32-low.cc (win32_target_ops): Update.
3682 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3684 Turn process_stratum_target's insert_point and remove_point ops
3685 into methods of process_target.
3687 * target.h (struct process_stratum_target): Remove the target ops.
3688 (class process_target): Add the target ops.
3689 * target.cc (process_target::insert_point): Define.
3690 (process_target::remove_point): Define.
3692 Update the derived classes and callers below.
3694 * mem-break.cc (set_raw_breakpoint_at): Update.
3695 (delete_raw_breakpoint): Update.
3696 (uninsert_raw_breakpoint): Update.
3697 (reinsert_raw_breakpoint): Update.
3698 * linux-low.cc (linux_target_ops): Update.
3699 (linux_insert_point): Turn into ...
3700 (linux_process_target::insert_point): ... this.
3701 (linux_remove_point): Turn into ...
3702 (linux_process_target::remove_point): ... this.
3703 * linux-low.h (class linux_process_target): Update.
3704 * lynx-low.cc (lynx_target_ops): Update.
3705 * nto-low.cc (nto_target_ops): Update.
3706 (nto_insert_point): Turn into ...
3707 (nto_process_target::insert_point): ... this.
3708 (nto_remove_point): Turn into ...
3709 (nto_process_target::remove_point): ... this.
3710 * nto-low.h (class nto_process_target): Update.
3711 * win32-low.cc (win32_target_ops): Update.
3712 (win32_insert_point): Turn into ...
3713 (win32_process_target::insert_point): ... this.
3714 (win32_remove_point): Turn into ...
3715 (win32_process_target::remove_point): ... this.
3716 * win32-low.h (class win32_process_target): Update.
3718 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3720 Turn process_stratum_target's supports_z_point_type op into a
3721 method of process_target.
3723 * target.h (struct process_stratum_target): Remove the target op.
3724 (class process_target): Add the target op.
3725 * target.cc (process_target::supports_z_point_type): Define.
3727 Update the derived classes and callers below.
3729 * mem-break.cc (z_type_supported): Update.
3730 * linux-low.cc (linux_target_ops): Update.
3731 (linux_supports_z_point_type): Turn into ...
3732 (linux_process_target::supports_z_point_type): ... this.
3733 * linux-low.h (class linux_process_target): Update.
3734 * lynx-low.cc (lynx_target_ops): Update.
3735 * nto-low.cc (nto_target_ops): Update.
3736 (nto_supports_z_point_type): Turn into ...
3737 (nto_process_target::supports_z_point_type): ... this.
3738 * nto-low.h (class nto_process_target): Update.
3739 * win32-low.cc (win32_target_ops): Update.
3740 (win32_supports_z_point_type): Turn into ...
3741 (win32_process_target::supports_z_point_type): ... this.
3742 * win32-low.h (class win32_process_target): Update.
3744 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3746 Turn process_stratum_target's read_auxv op into a method of
3749 * target.h (class process_stratum_target): Remove the target op.
3750 (struct process_target): Add the target op. Also add
3751 'supports_read_auxv'.
3752 * target.cc (process_target::read_auxv): Define.
3753 (process_target::supports_read_auxv): Define.
3755 Update the derived classes and callers below.
3757 * server.cc (handle_qxfer_auxv): Update.
3758 (handle_query): Update.
3759 * linux-low.cc (linux_target_ops): Update.
3760 (linux_process_target::supports_read_auxv): Define.
3761 (linux_read_auxv): Turn into ...
3762 (linux_process_target::read_auxv): ... this.
3763 * linux-low.h (class linux_process_target): Update.
3764 * lynx-low.cc (lynx_target_ops): Update.
3765 * nto-low.cc (nto_target_ops): Update.
3766 (nto_process_target::supports_read_auxv): Define.
3767 (nto_read_auxv): Turn into ...
3768 (nto_process_target::read_auxv): ... this.
3769 * nto-low.h (class nto_process_target): Update.
3770 * win32-low.cc (win32_target_ops): Update.
3772 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3774 Turn process_stratum_target's request_interrupt op into a method of
3777 * target.h (struct process_stratum_target): Remove the target op.
3778 (class process_target): Add the target op.
3780 Update the derived classes and callers below.
3782 * remote-utils.cc (putpkt_binary_1): Update.
3783 (input_interrupt): Update.
3785 * server.cc (handle_v_requests): Update.
3786 * linux-low.cc (linux_target_ops): Update.
3787 (linux_request_interrupt): Turn into ...
3788 (linux_process_target::request_interrupt): ... this.
3789 * linux-low.h (class linux_process_target): Update.
3790 * lynx-low.cc (lynx_target_ops): Update.
3791 (lynx_request_interrupt): Turn into ...
3792 (lynx_process_target::request_interrupt): ... this.
3793 * lynx-low.h (class lynx_process_target): Update.
3794 * nto-low.cc (nto_target_ops): Update.
3795 (nto_request_interrupt): Turn into ...
3796 (nto_process_target::request_interrupt): ... this.
3797 * nto-low.h (class nto_process_target): Update.
3798 * win32-low.cc (win32_target_ops): Update.
3799 (win32_request_interrupt): Turn into ...
3800 (win32_process_target::request_interrupt): ... this.
3801 * win32-low.h (class win32_process_target): Update.
3803 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3805 Turn process_stratum_target's look_up_symbols op into a method of
3808 * target.h (struct process_stratum_target): Remove the target op.
3809 (class process_target): Add the target op.
3810 * target.cc (process_target::look_up_symbols): Define.
3812 Update the derived classes and callers below.
3814 * server.cc (handle_query): Update.
3815 * linux-low.cc (linux_target_ops): Update.
3816 (linux_look_up_symbols): Turn into ...
3817 (linux_process_target::look_up_symbols): ... this.
3818 * linux-low.h (class linux_process_target): Update.
3819 * lynx-low.cc (lynx_target_ops): Update.
3820 * nto-low.cc (nto_target_ops): Update.
3821 * win32-low.cc (win32_target_ops): Update.
3823 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3825 Turn process_stratum_target's read_memory and write_memory
3826 ops into methods of process_target.
3828 * target.h (struct process_stratum_target): Remove the target ops.
3829 (class process_target): Add the target ops.
3831 Update the derived classes and callers below.
3833 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3834 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3835 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3836 (arm_get_syscall_trapinfo): Update.
3837 * linux-cris-low.cc (cris_breakpoint_at): Update.
3838 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3839 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3840 * linux-mips-low.cc (mips_breakpoint_at): Update.
3841 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3842 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3843 * linux-sh-low.cc (sh_breakpoint_at): Update.
3844 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3845 (sparc_store_gregset_from_stack): Update.
3846 (sparc_breakpoint_at): Update.
3847 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3848 * linux-tile-low.cc (tile_breakpoint_at): Update.
3849 * linux-x86-low.cc (x86_breakpoint_at): Update.
3850 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3851 * mem-brea.cc (insert_memory_breakpoint): Update.
3852 (validate_inserted_breakpoint): Update.
3853 * target.cc (read_inferior_memory): Update.
3854 (target_write_memory): Update.
3855 * linux-low.cc (linux_target_ops): Update.
3856 (linux_read_memory): Make a wrapper around the read_memory target
3858 (linux_process_target::read_memory): Rename from linux_read_memory.
3859 (linux_write_memory): Turn into ...
3860 (linux_process_target::write_memory): ... this.
3861 * linux-low.h (class linux_process_target): Update.
3862 * lynx-low.cc (lynx_target_ops): Update.
3863 (lynx_read_memory): Turn into ...
3864 (lynx_process_target::read_memory): ... this.
3865 (lynx_write_memory): Turn into ...
3866 (lynx_process_target::write_memory): ... this.
3867 * lynx-low.h (class lynx_process_target): Update.
3868 * nto-low.cc (nto_target_ops): Update.
3869 (nto_read_memory): Turn into ...
3870 (nto_process_target::read_memory): ... this.
3871 (nto_write_memory): Turn into ...
3872 (nto_process_target::write_memory): ... this.
3873 * nto-low.h (class nto_process_target): Update.
3874 * win32-low.cc (win32_target_ops): Update.
3875 (win32_read_inferior_memory): Turn into ...
3876 (win32_process_target::read_memory): ... this.
3877 (win32_write_inferior_memory): Turn into ...
3878 (win32_process_target::write_memory): ... this.
3879 * win32-low.h (class win32_process_target): Update.
3881 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3883 Turn process_stratum_target's prepare_to_access_memory and
3884 done_accessing_memory ops into methods of process_target.
3886 * target.h (struct process_stratum_target): Remove the target ops.
3887 (class process_target): Add the target ops.
3888 * target.cc (process_target::prepare_to_access_memory): Define.
3889 (process_target::done_accessing_memory): Define.
3890 (prepare_to_access_memory): Update.
3891 (done_accessing_memory): Update.
3893 Update the derived classes and callers below.
3895 * linux-low.cc (linux_target_ops): Update.
3896 (linux_prepare_to_access_memory): Turn into ...
3897 (linux_process_target::prepare_to_access_memory): ... this.
3898 (linux_done_accessing_memory): Turn into ...
3899 (linux_process_target::done_accessing_memory): ... this.
3900 * linux-low.h (class linux_process_target): Update.
3901 * lynx-low.cc (lynx_target_ops): Update.
3902 * nto-low.cc (nto_target_ops): Update.
3903 * win32-low.cc (win32_target_ops): Update.
3905 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3907 Turn process_stratum_target's fetch_registers and store_registers
3908 ops into methods of process_target.
3910 * target.h (struct process_stratum_target): Remove the target ops.
3911 (class process_target): Add the target ops.
3912 (fetch_inferior_registers): Update the macro.
3913 (store_inferior_registers): Update the macro.
3915 Update the derived classes and callers below.
3917 * linux-low.cc (linux_target_ops): Update.
3918 (linux_fetch_registers): Turn into ...
3919 (linux_process_target::fetch_registers): ... this.
3920 (linux_store_registers): Turn into ...
3921 (linux_process_target::store_registers): ... this.
3922 * linux-low.h (class linux_process_target): Update.
3923 * lynx-low.cc (lynx_target_ops): Update.
3924 (lynx_fetch_registers): Turn into ...
3925 (lynx_process_target::fetch_registers): ... this.
3926 (lynx_store_registers): Turn into ...
3927 (lynx_process_target::store_registers): ... this.
3928 * lynx-low.h (class lynx_process_target): Update.
3929 * nto-low.cc (nto_target_ops): Update.
3930 (nto_fetch_registers): Turn into ...
3931 (nto_process_target::fetch_registers): ... this.
3932 (nto_store_registers): Turn into ...
3933 (nto_process_target::store_registers): ... this.
3934 * nto-low.h (class nto_process_target): Update.
3935 * win32-low.cc (win32_target_ops): Update.
3936 (win32_fetch_inferior_registers): Turn into ...
3937 (win32_process_target::fetch_registers): ... this.
3938 (win32_store_inferior_registers): Turn into ...
3939 (win32_process_target::store_registers): ... this.
3940 * win32-low.h (class win32_process_target): Update.
3942 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3944 Turn process_stratum_target's wait op into a method of
3947 * target.h (struct process_stratum_target): Remove the target op.
3948 (class process_target): Add the target op.
3950 Update the derived classes and callers below.
3952 * target.cc (target_wait): Update.
3953 * linux-low.cc (linux_target_ops): Update.
3954 (linux_wait): Turn into ...
3955 (linux_process_target::wait): ... this.
3956 * linux-low.h (class linux_process_target): Update.
3957 * lynx-low.cc (lynx_target_ops): Update.
3958 (lynx_wait): Turn into ...
3959 (lynx_process_target::wait): ... this.
3960 * lynx-low.h (class lynx_process_target): Update.
3961 * nto-low.cc (nto_target_ops): Update.
3962 (nto_wait): Turn into ...
3963 (nto_process_target::wait): ... this.
3964 * nto-low.h (class nto_process_target): Update.
3965 * win32-low.cc (win32_target_ops): Update.
3966 (win32_wait): Turn into ...
3967 (win32_process_target::wait): ... this.
3968 (do_initial_child_stuff): Update.
3969 * win32-low.h (class win32_process_target): Update.
3971 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3973 Turn process_stratum_target's resume op into a method of
3976 * target.h (struct process_stratum_target): Remove the target op.
3977 (class process_target): Add the target op.
3979 Update the derived classes and callers below.
3981 * server.cc (resume): Update.
3982 * target.cc (target_stop_and_wait): Update.
3983 (target_continue_no_signal): Update.
3984 (target_continue): Update.
3985 * linux-low.cc (linux_target_ops): Update.
3986 (linux_resume): Turn into ...
3987 (linux_process_target::resume): ... this.
3988 * linux-low.h (class linux_process_target): Update.
3989 * lynx-low.cc (lynx_target_ops): Update.
3990 (lynx_resume): Turn into ...
3991 (lynx_process_target::resume): ... this.
3992 * lynx-low.h (class lynx_process_target): Update.
3993 * nto-low.cc (nto_target_ops): Update.
3994 (nto_resume): Turn into ...
3995 (nto_process_target::resume): ... this.
3996 * nto-low.h (class nto_process_target): Update.
3997 * win32-low.cc (win32_target_ops): Update.
3998 (win32_resume): Turn into ...
3999 (win32_process_target::resume): ... this.
4000 (win32_process_target::detach): Update.
4001 (do_initial_child_stuff): Update.
4002 * win32-low.h (class win32_process_target): Update.
4004 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4006 Turn process_stratum_target's thread_alive op into a method of
4009 * target.h (struct process_stratum_target): Remove the target op.
4010 (class process_target): Add the target op.
4011 (mythread_alive): Update the macro.
4013 Update the derived classes and callers below.
4015 * linux-low.cc (linux_target_ops): Update.
4016 (linux_thread_alive): Turn into ...
4017 (linux_process_target::thread_alive): ... this.
4018 (wait_for_sigstop): Update.
4019 * linux-low.h (class linux_process_target): Update.
4020 * lynx-low.cc (lynx_target_ops): Update.
4021 (lynx_thread_alive): Turn into ...
4022 (lynx_process_target::thread_alive): ... this.
4023 * lynx-low.h (class lynx_process_target): Update.
4024 * nto-low.cc (nto_target_ops): Update.
4025 (nto_thread_alive): Turn into ...
4026 (nto_process_target::thread_alive): ... this.
4027 * nto-low.h (class nto_process_target): Update.
4028 * win32-low.cc (win32_target_ops): Update.
4029 (win32_thread_alive): Turn into ...
4030 (win32_process_target::thread_alive): ... this.
4031 * win32-low.h (class win32_process_target): Update.
4033 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4035 Turn process_stratum_target's join op into a method of
4038 * target.h (struct process_stratum_target): Remove the target op.
4039 (class process_target): Add the target op.
4040 (join_inferior): Update the macro.
4042 Update the derived classes and callers below.
4044 * linux-low.cc (linux_target_ops): Update.
4045 (linux_join): Turn into ...
4046 (linux_process_target::join): ... this.
4047 * linux-low.h (class linux_process_target): Update.
4048 * lynx-low.cc (lynx_target_ops): Update.
4049 (lynx_join): Turn into ...
4050 (lynx_process_target::join): ... this.
4051 * lynx-low.h (class lynx_process_target): Update.
4052 * nto-low.cc (nto_target_ops): Update.
4053 (nto_process_target::join): Define.
4054 * nto-low.h (class nto_process_target): Update.
4055 * win32-low.cc (win32_target_ops): Update.
4056 (win32_join): Turn into ...
4057 (win32_process_target::join): ... this.
4058 * win32-low.h (class win32_process_target): Update.
4060 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4062 Turn process_stratum_target's mourn op into a method of
4065 * target.h (struct process_stratum_target): Remove the target op.
4066 (class process_target): Add the target op.
4068 Update the derived classes and callers below.
4070 * target.cc (target_mourn_inferior): Update.
4071 * linux-low.cc (linux_target_ops): Update.
4072 (linux_mourn): Turn into ...
4073 (linux_process_target::mourn): ... this.
4074 (handle_extended_wait): Update.
4075 (linux_process_target::kill): Update.
4076 (linux_process_target::detach): Update.
4077 * linux-low.h (class linux_process_target): Update.
4078 * lynx-low.cc (lynx_target_ops): Update.
4079 (lynx_mourn): Turn into ...
4080 (lynx_process_target::mourn): ... this.
4081 * lynx-low.h (class lynx_process_target): Update.
4082 * nto-low.cc (nto_target_ops): Update.
4083 (nto_mourn): Turn into ...
4084 (nto_process_target::mourn): ... this.
4085 * nto-low.h (class nto_process_target): Update.
4086 * win32-low.cc (win32_target_ops): Update.
4087 (win32_mourn): Turn into ...
4088 (win32_process_target::mourn): ... this.
4089 * win32-low.h (class win32_process_target): Update.
4091 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4093 Turn process_stratum_target's detach op into a method of
4096 * target.h (struct process_stratum_target): Remove the target op.
4097 (class process_target): Add the target op.
4098 (detach_inferior): Update the macro.
4100 Update the derived classes and callers below.
4102 * linux-low.cc (linux_target_ops): Update.
4103 (linux_detach): Turn into ...
4104 (linux_process_target::detach): ... this.
4105 * linux-low.h (class linux_process_target): Update.
4106 * lynx-low.cc (lynx_target_ops): Update.
4107 (lynx_detach): Turn into ...
4108 (lynx_process_target::detach): ... this.
4109 * lynx-low.h (class lynx_process_target): Update.
4110 * nto-low.cc (nto_target_ops): Update.
4111 (nto_detach): Turn into ...
4112 (nto_process_target::detach): ... this.
4113 * nto-low.h (class nto_process_target): Update.
4114 * win32-low.cc (win32_target_ops): Update.
4115 (win32_detach): Turn into ...
4116 (win32_process_target::detach): ... this.
4117 * win32-low.h (class win32_process_target): Update.
4119 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4121 Turn process_stratum_target's kill op into a method of
4124 * target.h (struct process_stratum_target): Remove the target op.
4125 (class process_target): Add the target op.
4127 Update the derived classes and callers below.
4129 * target.cc (kill_inferior): Update.
4130 * linux-low.cc (linux_target_ops): Update.
4131 (linux_kill): Turn into ...
4132 (linux_process_target::kill): ... this.
4133 * linux-low.h (class linux_process_target): Update.
4134 * lynx-low.cc (lynx_target_ops): Update.
4135 (lynx_kill): Turn into ...
4136 (lynx_process_target::kill): ... this.
4137 * lynx-low.h (class lynx_process_target): Update.
4138 * nto-low.cc (nto_target_ops): Update.
4139 (nto_kill): Turn into ...
4140 (nto_process_target::kill): ... this.
4141 * nto-low.h (class nto_process_target): Update.
4142 * win32-low.cc (win32_target_ops): Update.
4143 (win32_kill): Turn into ...
4144 (win32_process_target::kill): ... this.
4145 * win32-low.h (class win32_process_target): Update.
4147 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4149 Turn process_stratum_target's attach op into a method of
4152 * target.h (struct process_stratum_target): Remove the target op.
4153 (class process_target): Add the target op.
4154 (myattach): Update the macro.
4156 Update the derived classes and callers below.
4158 * linux-low.cc (linux_target_ops): Update.
4159 (linux_attach): Turn into ...
4160 (linux_process_target::attach): ... this.
4161 * linux-low.h (class linux_process_target): Update.
4162 * lynx-low.cc (lynx_target_ops): Update.
4163 (lynx_attach): Turn into ...
4164 (lynx_process_target::attach): ... this.
4165 * lynx-low.h (class lynx_process_target): Update.
4166 * nto-low.cc (nto_target_ops): Update.
4167 (nto_attach): Turn into ...
4168 (nto_process_target::attach): ... this.
4169 * nto-low.h (class nto_process_target): Update.
4170 * win32-low.cc (win32_target_ops): Update.
4171 (win32_attach): Turn into ...
4172 (win32_process_target::attach): ... this.
4173 * win32-low.h (class win32_process_target): Update.
4175 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4177 Turn process_stratum_target's post_create_inferior op into a method
4180 * target.h (struct process_stratum_target): Remove the target op.
4181 (class process_target): Add the target op.
4182 (target_post_create_inferior): Update the macro.
4183 * target.cc (process_target::post_create_inferior): Define.
4185 Update the derived classes and callers below.
4187 * linux-low.cc (linux_target_ops): Update.
4188 (linux_post_create_inferior): Turn into ...
4189 (linux_process_target::post_create_inferior): ... this.
4190 * linux-low.h (class linux_process_target): Update.
4191 * lynx-low.cc (lynx_target_ops): Update.
4192 * nto-low.cc (nto_target_ops): Update.
4193 * win32-low.cc (win32_target_ops): Update.
4195 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4197 Turn process_stratum_target's create_inferior op into a method of
4200 * target.h (struct process_stratum_target): Remove the target op.
4201 (class process_target): Add the target op.
4202 (create_inferior): Rename the macro to ...
4203 (target_create_inferior): ... this.
4205 Update the derived classes and callers below.
4207 * server.cc (handle_v_run): Update.
4208 (captured_main): Update.
4209 (process_serial_event): Update.
4210 * linux-low.cc (linux_target_ops): Update.
4211 (linux_create_inferior): Turn into ...
4212 (linux_process_target::create_inferior): ... this.
4213 * linux-low.h (class linux_process_target): Update.
4214 * lynx-low.cc (lynx_target_ops): Update.
4215 (lynx_create_inferior): Turn into ...
4216 (lynx_process_target::create_inferior): ... this.
4217 * lynx-low.h (class lynx_process_target): Update.
4218 * nto-low.cc (nto_target_ops): Update.
4219 (nto_create_inferior): Turn into ...
4220 (nto_process_target::create_inferior): ... this.
4221 * nto-low.h (class nto_process_target): Update.
4222 * win32-low.cc (win32_target_ops): Update.
4223 (win32_create_inferior): Turn into ...
4224 (win32_process_target::create_inferior): ... this.
4225 * win32-low.h (class win32_process_target): Update.
4227 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4229 * target.h (class process_target): New class definition.
4230 (struct process_stratum_target) <pt>: New field with type
4232 * linux-low.h (class linux_process_target): Define as a derived
4233 class of 'process_target'.
4234 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4236 * lynx-low.h (class lynx_process_target): Define as a derived
4237 class of 'process_target'.
4238 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4240 * nto-low.h (class nto_process_target): Define as a derived
4241 class of 'process_target'.
4242 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4244 * win32-low.h (class win32_process_target): Define as a derived
4245 class of 'process_target'.
4246 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4249 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4251 * configure: Regenerate.
4253 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4254 Andrew Burgess <andrew.burgess@embecosm.com>
4256 * linux-riscv-low.cc: New file.
4257 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4258 and nat/riscv-linux-tdesc.c.
4259 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4260 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4263 2020-02-14 Tom Tromey <tom@tromey.com>
4265 * acinclude.m4: Don't include acx_configure_dir.m4.
4266 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4267 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4268 (all, install-only, uninstall, clean-info, clean)
4269 (maintainer-clean): Don't recurse.
4270 (subdir_do, all-lib): Remove.
4271 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4273 (generated_files): Update.
4274 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4275 * configure: Rebuild.
4276 * configure.ac: Don't configure gnulib or libiberty.
4279 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4281 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4282 preparing the command line for CreateProcess.
4283 (win32_create_inferior): Reflect the program name in debugging
4284 output that shows the process and its command line.
4286 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4288 * Makefile.in: Rename source files from .c to .cc.
4289 * %.c: Rename to %.cc.
4290 * configure.ac: Rename server.c to server.cc.
4291 * configure: Re-generate.
4293 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4295 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4297 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4299 * win32-low.c (win32_create_inferior): Set signal_pid.
4301 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4302 Pedro Alves <palves@redhat.com>
4304 Skip building gdbserver in a cross-configuration.
4305 * configure.srv: Set $gdbserver_host depending on whether $target
4306 is $host. Use $gdbserver_host instead of $host.
4308 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4310 * configure: Re-generate.
4312 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4314 * configure: Re-generate.
4316 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4318 * acinclude.m4: Update warning.m4 path.
4320 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4322 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4323 (handle_exception): Set siginfo_er.
4324 (win32_xfer_siginfo): New function.
4326 2020-02-07 Tom Tromey <tom@tromey.com>
4327 Pedro Alves <palves@redhat.com>
4329 * README: Update build documentation.
4330 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4332 * configure.ac: Update paths.
4333 * configure: Rebuild.
4334 * acinclude.m4: Update paths.
4335 * Makefile.in: Update include paths.
4336 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4337 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4338 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4339 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4340 (%-generated.c): Update paths.
4341 * Move entire directory from ../gdb/gdbserver.
4343 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4345 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4347 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4349 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4350 assignment instead of srv_linux_obj.
4352 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4354 * server.c (handle_qxfer_libraries): Write segment-address with
4357 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4359 * Makefile.in (install-strip): New target.
4360 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4361 * aclocal.m4: Regenerate.
4362 * configure: Regenerate.
4363 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4365 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4367 * Makefile.in (SFILES): Adjust paths to point to real files.
4368 (OBS): Move waitstatus.o to target/waitstatus.o.
4369 (TAGS): Transform paths appropriately.
4371 (nat/%.o): ... this pattern rule.
4373 (target/%.o): ... this pattern rule.
4374 * configure.srv: Adjust paths throughout to include nat/ prefix
4375 with the revant files.
4376 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4377 * configure: Regenerate.
4379 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4381 * Makefile.in (TAGS): Remove config files from the recipe.
4383 2020-01-14 Tom Tromey <tom@tromey.com>
4385 * configure: Rebuild.
4386 * configure.ac: Remove any checks that were added to common.m4.
4387 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4390 2020-01-14 Tom Tromey <tom@tromey.com>
4392 * server.h: Include config.h.
4393 * gdbreplay.c: Include config.h.
4394 * configure: Rebuild.
4395 * configure.ac: Don't source common.host.
4396 * acinclude.m4: Update path.
4397 * Makefile.in (INCSUPPORT): New variable.
4398 (INCLUDE_CFLAGS): Add INCSUPPORT.
4399 (SFILES): Update paths.
4400 (version-generated.c): Update path to create-version.sh.
4401 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4403 2020-01-14 Tom Tromey <tom@tromey.com>
4405 * configure.ac (LIBS): Use WIN32APILIBS.
4406 (USE_WIN32API): Don't define.
4407 * configure: Rebuild.
4409 2020-01-14 Tom Tromey <tom@tromey.com>
4411 * configure: Rebuild.
4413 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4415 * Makefile.in (%-generated.c): Remove rule for files from
4418 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4420 * configure: Re-generate.
4422 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4424 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4426 * tracepoint.c (stop_tracing, flush_trace_buffer,
4427 about_to_request_buffer_space, get_trace_state_variable_value,
4428 set_trace_state_variable_value, gdb_collect): Add declaration.
4430 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4432 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4433 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4434 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4435 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4436 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4439 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4441 * inferiors.c: Include gdbsupport/common-inferior.h.
4443 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4445 * hostio-errno.c: Include hostio.h.
4447 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4449 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4452 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4454 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4455 * linux-arm-tdesc.h: Include arch/arm.h.
4457 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4459 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4461 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4463 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4464 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4466 2020-01-10 Pedro Alves <palves@redhat.com>
4468 * fork-child.c (post_fork_inferior): Pass target down to
4470 * inferiors.c (switch_to_thread): Add process_stratum_target
4472 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4473 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4474 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4475 * remote-utils.c (prepare_resume_reply): Pass the target to
4477 * target.c (the_target): Now a process_stratum_target.
4478 (done_accessing_memory): Pass the target to switch_to_thread.
4479 (set_target_ops): Ajust to use process_stratum_target.
4480 * target.h (struct target_ops): Rename to ...
4481 (struct process_stratum_target): ... this.
4482 (the_target, set_target_ops): Adjust.
4483 (prepare_to_access_memory): Adjust comment.
4484 * win32-low.c (child_xfer_memory): Adjust to use
4485 process_stratum_target.
4486 (win32_target_ops): Now a process_stratum_target.
4488 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4489 Pedro Alves <palves@redhat.com>
4491 * win32-low.c (get_child_debug_event): Extract the fatal exception
4492 from the exit status and convert to the equivalent Posix signal
4494 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4495 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4497 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4499 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4501 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4503 * server.c (gdbserver_version): Change copyright year to 2020.
4504 * gdbreplay.c (gdbreplay_version): Likewise.
4506 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4508 * configure: Regenerate.
4509 * configure.ac: Quote variable arguments of test.
4511 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4513 * Makefile.in: Fix build with GNU Make 3.81
4515 2019-12-16 Tom Tromey <tromey@adacore.com>
4517 * server.c (get_exec_file): Constify result.
4519 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4521 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4522 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4523 * config.in: Regenerate.
4524 * configure: Regenerate.
4525 * configure.ac: Don't check for strerror.
4526 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4527 Call safe_strerror instead of strerror.
4528 * server.h (strerror): Remove this now-unnecessary declaration.
4529 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4531 (gdb_agent_helper_thread): Likewise.
4532 * utils.c (perror_with_name): Likewise.
4534 2019-11-26 Tom Tromey <tom@tromey.com>
4536 * configure, config.in: Rebuild.
4538 2019-11-26 Tom Tromey <tom@tromey.com>
4540 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4541 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4543 * configure, config.in: Rebuild.
4545 2019-11-26 Tom Tromey <tom@tromey.com>
4547 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4548 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4549 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4550 * acinclude.m4: Include ax_pthread.m4.
4551 * config.in, configure: Rebuild.
4553 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4555 * debug.c (debug_set_output): Call safe_strerror instead of
4557 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4558 (linux_kill_one_lwp): Likewise.
4559 (linux_detach_one_lwp): Likewise.
4560 (linux_wait_for_event_filtered): Likewise.
4561 (store_register): Likewise.
4562 * lynx-low.c (lynx_attach): Likewise.
4563 * mem-break.c (insert_memory_breakpoint): Likewise.
4564 (remove_memory_breakpoint): Likewise.
4565 (delete_fast_tracepoint_jump): Likewise.
4566 (set_fast_tracepoint_jump): Likewise.
4567 (uninsert_fast_tracepoint_jumps_at): Likewise.
4568 (reinsert_fast_tracepoint_jumps_at): Likewise.
4569 * nto-low.c (nto_xfer_memory): Likewise.
4570 (nto_resume): Likewise.
4572 2019-11-20 Luis Machado <luis.machado@linaro.org>
4574 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4575 instead of register count.
4576 * tdesc.c (tdesc_contains_feature): New function.
4577 * tdesc.h (tdesc_contains_feature): New prototype.
4579 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4581 * Makefile.in: Add safe-strerror.c.
4582 * configure: Regenerate.
4583 * configure.ac: Don't source common.host.
4585 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4587 * config.in: Regenerate.
4588 * configure: Regenerate.
4590 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4592 * ax.c (ax_printf): Handle size_t_arg.
4594 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4596 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4597 * mi/mi-main.c (output_cores): Likewise.
4598 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4599 (linux_xfer_osdata_modules): Likewise.
4600 * remote.c (register_remote_support_xml): Likewise.
4601 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4602 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4604 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4606 * configure: Regenerate.
4607 * configure.ac: Remove check for strerror_r.
4609 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4611 * config.in: Regenerate.
4612 * configure: Regenerate.
4613 * configure.ac: Also check for strerror_r.
4615 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4617 * ax.h (debug_agent): Remove duplicate declaration.
4619 2019-10-26 Tom de Vries <tdevries@suse.de>
4621 * linux-aarch64-low.c: Fix typos in comments.
4622 * linux-arm-low.c: Same.
4623 * linux-low.c: Same.
4624 * linux-ppc-low.c: Same.
4625 * proc-service.c: Same.
4628 * tracepoint.c: Same.
4629 * win32-low.c: Same.
4631 2019-10-25 Tom Tromey <tromey@adacore.com>
4633 * utils.c (xstrdup): Remove.
4635 2019-10-23 Tom Tromey <tom@tromey.com>
4637 * configure, config.in: Rebuild.
4639 2019-10-23 Tom Tromey <tom@tromey.com>
4641 * configure: Rebuild.
4642 * acinclude.m4: Use m4_include, not sinclude.
4644 2019-10-17 Tom Tromey <tromey@adacore.com>
4646 * configure: Rebuild.
4647 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4648 in AC_CONFIG_FILES invocation.
4649 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4652 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4654 * server.c: Include xml-builtin.h.
4655 (get_xml_features): Don't declare xml_builtins here.
4657 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4659 * Makefile.in: Remove references to vec-ipa.o.
4661 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4663 * Makefile.in: Remove references to vec.c.
4665 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4667 * server.c (server_waiting): Change to bool.
4668 (extended_protocol): Likewise.
4669 (response_needed): Likewise.
4670 (exit_requested): Likewise.
4671 (run_once): Likewise.
4672 (report_no_resumed): Likewise.
4673 (non_stop): Likewise.
4674 (disable_packet_vCont): Likewise.
4675 (disable_packet_Tthread): Likewise.
4676 (disable_packet_qC): Likewise.
4677 (disable_packet_qfThreadInfo): Likewise.
4678 (handle_general_set): Update.
4679 (handle_detach): Update.
4680 (handle_monitor_command): Update.
4681 (handle_query): Update.
4682 (captured_main): Update.
4683 (process_serial_event): Update.
4684 * server.h (server_waiting): Change to bool.
4685 (disable_packet_vCont): Likewise.
4686 (disable_packet_Tthread): Likewise.
4687 (disable_packet_qC): Likewise.
4688 (disable_packet_qfThreadInfo): Likewise.
4689 (run_once): Likewise.
4690 (non_stop): Likewise.
4691 * target.c (target_stop_and_wait): Update.
4693 2019-10-02 Tom Tromey <tromey@adacore.com>
4695 * Makefile.in (SFILES): Add common-inferior.c.
4696 (OBS): Add common-inferior.o.
4697 * server.c (startup_with_shell): Don't define.
4699 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4701 * linux-low.c (linux_low_read_btrace): Update for change to
4704 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4706 * debug.c (debug_threads): Remove comment in favor of the header.
4707 * debug.h (using_threads): Add declaration.
4708 (debug_threads): Add comment.
4709 * linux-aarch64-low.c: Include debug.h and remove declaration of
4711 * nto-low.c: Likewise.
4712 * remote-utils.c: Likewise.
4713 * thread-db.c: Likewise.
4715 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4717 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4718 and powerpc-cell64l-ipa.o.
4719 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4720 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4721 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4724 * spu-low.c: Remove file.
4726 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4727 (parse_spufs_run): Remove.
4728 (ppc_get_pc): Remove Cell/B.E. support.
4729 (ppc_set_pc): Likewise.
4730 (ppc_breakpoint_at): Likewise.
4731 (ppc_arch_setup): Likewise.
4732 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4733 tdesc_powerpc_cell32l.
4734 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4735 or init_registers_powerpc_cell32l.
4736 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4737 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4738 or init_registers_powerpc_cell32l.
4739 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4740 (init_registers_powerpc_cell32l): Remove prototype.
4741 (init_registers_powerpc_cell64l): Likewise.
4743 * target.h (struct target_ops): Remove qxfer_spu member.
4744 * server.c (handle_qxfer_spu): Remove.
4745 (qxfer_packets): Remove entry for "spu".
4746 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4747 * linux-low.c (SPUFS_MAGIC): Remove.
4748 (spu_enumerate_spu_ids): Remove.
4749 (linux_qxfer_spu): Remove.
4750 (linux_target_ops): Remove qxfer_spu member.
4751 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4752 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4753 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4755 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4757 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4758 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4759 * config.in: Regenerate.
4760 * configure: Regenerate.
4762 2019-08-15 Tom Tromey <tromey@adacore.com>
4764 * target.c (target_write_memory): Use gdb::byte_vector.
4766 2019-08-15 Tom Tromey <tromey@adacore.com>
4768 * tracepoint.c (write_inferior_data_pointer)
4769 (write_inferior_integer, write_inferior_int8)
4770 (write_inferior_uinteger, m_tracepoint_action_download)
4771 (r_tracepoint_action_download, x_tracepoint_action_download)
4772 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4773 (download_agent_expr, download_tracepoint_1)
4774 (download_trace_state_variables, upload_fast_traceframes): Update.
4775 * server.c (gdb_write_memory): Update.
4776 * remote-utils.c (relocate_instruction): Update.
4777 * proc-service.c (ps_pdwrite): Update.
4778 * mem-break.c (remove_memory_breakpoint)
4779 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4780 (uninsert_fast_tracepoint_jumps_at)
4781 (reinsert_fast_tracepoint_jumps_at): Update.
4782 * linux-x86-low.c (append_insns)
4783 (i386_install_fast_tracepoint_jump_pad)
4784 (amd64_write_goto_address, i386_write_goto_address): Update.
4785 * linux-s390-low.c (append_insns, s390_write_goto_address):
4787 * linux-ppc-low.c (ppc_relocate_instruction)
4788 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4789 (ppc_write_goto_address): Update.
4790 * linux-aarch64-low.c (append_insns): Update.
4791 * target.h (struct target_ops): Update.
4792 (write_inferior_memory): Don't declare.
4793 * target.c (target_write_memory): Rename from
4794 write_inferior_memory. Remove old target_write_memory.
4796 2019-08-15 Tom Tromey <tromey@adacore.com>
4798 * target.c (write_inferior_memory): Use std::vector.
4800 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4803 * configure.ac: Drop enable-libmcheck support.
4804 * configure, config.in: Rebuild.
4805 * acinclude.m4: Don't include it.
4807 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4809 * configure.srv: Remove Arm xml files.
4811 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4813 * configure.srv: Add new files. Remove xml generated files.
4814 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4816 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4817 * linux-aarch32-tdesc.c: New file.
4818 * linux-aarch32-tdesc.h: New file.
4819 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4820 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4821 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4822 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4823 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4824 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4825 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4826 (arm_read_description): Call arm_linux_read_description.
4827 (initialize_low_arch): Don't init registers.
4828 * linux-arm-tdesc.c: New file.
4829 * linux-arm-tdesc.h: New file.
4831 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4833 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4834 Move counter inside for.
4835 (arm_read_description): Check ptrace earlier.
4836 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4838 2019-07-09 Tom Tromey <tom@tromey.com>
4840 * configure: Rebuild.
4841 * configure.ac: Change common to gdbsupport.
4842 * acinclude.m4: Change common to gdbsupport.
4843 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4844 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4845 common to gdbsupport.
4846 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4847 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4848 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4849 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4850 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4851 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4852 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4853 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4854 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4855 common to gdbsupport.
4857 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4859 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4861 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4863 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4865 * configure.srv: Remove legacy xml.
4866 * linux-aarch64-low.c (initialize_low_arch): Remove
4867 initialize_low_tdesc call.
4868 * linux-aarch64-tdesc-selftest.c: Remove file.
4869 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4870 * linux-x86-low.c (initialize_low_arch): Remove
4871 initialize_low_tdesc call.
4872 * linux-x86-tdesc-selftest.c: Remove file.
4873 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4875 2019-06-20 Tom de Vries <tdevries@suse.de>
4877 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4878 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4880 2019-06-19 Tom de Vries <tdevries@suse.de>
4882 * debug.h (debug_write): Change return type to ssize_t.
4883 * debug.c (debug_write): Same.
4885 2019-06-14 Tom Tromey <tom@tromey.com>
4887 * configure.ac: Use new path to gnulib.
4888 * configure: Rebuild.
4889 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4892 2019-06-11 Tom Tromey <tom@tromey.com>
4894 * Makefile.in (SFILES): Add alloc.c.
4896 (IPA_OBJS): Add alloc-ipa.o.
4897 (alloc-ipa.o): New target.
4898 (%.o: ../%.c): New pattern rule.
4900 2019-06-10 Tom Tromey <tromey@adacore.com>
4902 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4903 end warning with a newline.
4904 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4906 * thread-db.c (attach_thread): Don't end warning with a newline.
4907 (thread_db_notice_clone): Likewise.
4908 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4910 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4911 end warning with a newline.
4913 2019-06-04 Pedro Alves <palves@redhat.com>
4915 * server.c (captured_main): Use make_unique_xstrdup.
4917 2019-06-02 Tom Tromey <tom@tromey.com>
4919 * gdbreplay.c (fromhex): Remove.
4920 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4922 2019-05-29 Tom Tromey <tromey@adacore.com>
4924 * configure: Rebuild.
4926 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4928 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4929 sign extension code on 32-bit builds.
4931 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4934 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4936 2019-04-19 Tom Tromey <tom@tromey.com>
4938 * server.c (struct vstop_notif): Derive from notif_event.
4940 (queue_stop_reply): Update.
4941 (remove_all_on_match_ptid): Change type. Rewrite.
4942 (discard_queued_stop_replies): Rewrite.
4943 (in_queued_stop_replies_ptid): Change type.
4944 (in_queued_stop_replies): Rewrite.
4945 (notif_stop): Update.
4946 (queue_stop_reply_callback): Update.
4947 (captured_main): Don't call initialize_notif.
4948 (push_stop_notification): Update.
4949 * notif.c (notif_write_event, handle_notif_ack)
4950 (notif_event_enque, notif_push): Update.
4951 (notif_event_xfree, initialize_notif): Remove.
4952 * notif.h (struct notif_event): Include <list>, not
4954 (struct notif_server) <queue>: Now a std::list.
4955 (notif_event_p): Remove typedef.
4956 (initialize_notif): Don't declare.
4957 (struct notif_event): Add virtual destructor.
4959 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4961 * ax.c (ax_vdebug): Call debug_printf.
4962 * debug.c (debug_write): New function.
4963 * debug.h (debug_write): New declaration.
4964 * linux-low.c (sigchld_handler): Call debug_write.
4966 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4968 * debug.c (debug_set_output): New function.
4969 (debug_vprintf): Send output to debug_file.
4970 (debug_flush): Likewise.
4971 * debug.h (debug_set_output): New declaration.
4972 * server.c (handle_monitor_command): Add debug-file option.
4973 (captured_main): Likewise.
4975 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4977 * debug.c (remote_debug): Add definition.
4978 * debug.h (remote_debug): Add declaration.
4979 * hostio.c (remote_debug): Remove declaration.
4980 * remote-utils.c (struct ui_file): Likewise.
4981 (remote_debug): Likewise.
4982 * remote-utils.h (remote_debug): Likewise,
4983 * server.c (remote_debug): Remove definition.
4985 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4987 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4988 when using a 64-bit gdbserver.
4990 2019-04-09 Tom Tromey <tromey@adacore.com>
4992 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4994 2019-04-08 Tom Tromey <tom@tromey.com>
4996 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4998 (linux_resume_one_lwp): Likewise.
5000 2019-04-08 Tom Tromey <tom@tromey.com>
5002 * gdbreplay.c: Update.
5003 * linux-low.c: Update.
5006 2019-04-08 Tom Tromey <tom@tromey.com>
5008 * server.c: Use C++ exception handling.
5009 * linux-low.c: Use C++ exception handling.
5010 * gdbreplay.c: Use C++ exception handling.
5012 2019-04-08 Tom Tromey <tom@tromey.com>
5014 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5015 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5016 (captured_main, main): Update.
5017 * gdbreplay.c (main): Update.
5019 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5021 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5022 value in argument pointer, return 1 if the entry is found and 0
5023 otherwise. Move comment.
5024 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5025 * linux-low.h (linux_get_auxv): Declare.
5026 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5028 2019-04-05 Tom Tromey <tromey@adacore.com>
5030 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5033 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5035 * linux-low.c (AT_HWCAP2): Add define if not already included.
5037 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5039 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5040 (aarch64_arch_setup): Call linux_get_hwcap.
5041 * linux-arm-low.c (arm_get_hwcap): Remove function.
5042 (arm_read_description): Call linux_get_hwcap.
5043 * linux-low.c (linux_get_auxv): New function.
5044 (linux_get_hwcap): Likewise.
5045 (linux_get_hwcap2): Likewise.
5046 * linux-low.h (linux_get_hwcap): New declaration.
5047 (linux_get_hwcap2): Likewise.
5048 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5049 (ppc_arch_setup): Call linux_get_hwcap.
5050 * linux-s390-low.c (s390_get_hwcap): Remove function.
5051 (s390_arch_setup): Call linux_get_hwcap.
5053 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5054 Jiong Wang <jiong.wang@arm.com>
5056 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5057 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5059 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5061 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5062 Jiong Wang <jiong.wang@arm.com>
5064 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5065 (aarch64_get_hwcap): New function.
5066 (aarch64_arch_setup): Read APIA hwcap.
5068 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5069 Jiong Wang <jiong.wang@arm.com>
5071 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5072 (initialize_low_tracepoint): Likewise.
5073 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5074 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5075 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5076 (aarch64_linux_read_description): Likewise.
5077 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5079 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5081 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5082 i386_create_target_description for 'segments' parameter.
5083 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5084 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5085 * win32-i386-low.c (i386_arch_setup): Likewise.
5087 2019-03-12 Tom Tromey <tromey@adacore.com>
5089 * linux-low.c (iterate_over_lwps): Update.
5091 2019-03-06 Tom Tromey <tom@tromey.com>
5093 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5094 (captured_main): Use SCOPE_EXIT.
5096 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5098 * configure.srv: Use '$enable_unittest' instead of '$development'
5099 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5102 2019-02-27 Tom Tromey <tromey@adacore.com>
5104 * gdbreplay.c (logchar): Handle \r\n.
5106 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5108 * linux-low.c (linux_attach): Add process before lwp.
5109 * server.c (attach_inferior): Check if already attached.
5111 2019-02-07 Tom Tromey <tom@tromey.com>
5113 * x86-tdesc.h: Rename include guard.
5114 * x86-low.h: Add include guard.
5115 * wincecompat.h: Rename include guard.
5116 * win32-low.h: Add include guard.
5117 * utils.h: Rename include guard.
5118 * tracepoint.h: Rename include guard.
5119 * tdesc.h: Rename include guard.
5120 * target.h: Rename include guard.
5121 * server.h: Rename include guard.
5122 * remote-utils.h: Rename include guard.
5123 * regcache.h: Rename include guard.
5124 * nto-low.h: Rename include guard.
5125 * notif.h: Add include guard.
5126 * mem-break.h: Rename include guard.
5127 * lynx-low.h: Add include guard.
5128 * linux-x86-tdesc.h: Add include guard.
5129 * linux-s390-tdesc.h: Add include guard.
5130 * linux-ppc-tdesc-init.h: Add include guard.
5131 * linux-low.h: Add include guard.
5132 * linux-aarch64-tdesc.h: Add include guard.
5133 * linux-aarch32-low.h: Add include guard.
5134 * inferiors.h: Rename include guard.
5135 * i387-fp.h: Rename include guard.
5136 * hostio.h: Rename include guard.
5137 * gdbthread.h: Rename include guard.
5138 * gdb_proc_service.h: Rename include guard.
5139 * event-loop.h: Rename include guard.
5140 * dll.h: Rename include guard.
5141 * debug.h: Rename include guard.
5142 * ax.h: Rename include guard.
5144 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5147 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5148 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5150 2019-01-25 Tom Tromey <tom@tromey.com>
5152 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5154 2019-01-25 Tom Tromey <tom@tromey.com>
5156 * win32-low.c: Fix common/ includes.
5157 * win32-i386-low.c: Fix common/ includes.
5158 * tracepoint.c: Fix common/ includes.
5159 * thread-db.c: Fix common/ includes.
5160 * target.h: Fix common/ includes.
5161 * symbol.c: Fix common/ includes.
5162 * spu-low.c: Fix common/ includes.
5163 * server.h: Fix common/ includes.
5164 * server.c: Fix common/ includes.
5165 * remote-utils.c: Fix common/ includes.
5166 * regcache.h: Fix common/ includes.
5167 * regcache.c: Fix common/ includes.
5168 * nto-x86-low.c: Fix common/ includes.
5169 * notif.h: Fix common/ includes.
5170 * mem-break.h: Fix common/ includes.
5171 * lynx-low.c: Fix common/ includes.
5172 * lynx-i386-low.c: Fix common/ includes.
5173 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5174 * linux-x86-low.c: Fix common/ includes.
5175 * linux-low.c: Fix common/ includes.
5176 * inferiors.h: Fix common/ includes.
5177 * i387-fp.c: Fix common/ includes.
5178 * hostio.c: Fix common/ includes.
5179 * hostio-errno.c: Fix common/ includes.
5180 * gdbthread.h: Fix common/ includes.
5181 * gdbreplay.c: Fix common/ includes.
5182 * fork-child.c: Fix common/ includes.
5183 * event-loop.c: Fix common/ includes.
5185 (enum gdb_agent_op): Fix common/ includes.
5187 2019-01-21 Tom Tromey <tom@tromey.com>
5189 * tracepoint.c: Fix includes.
5190 * remote-utils.c: Fix includes.
5191 * linux-x86-low.c: Fix includes.
5193 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5195 * gdbreplay.c (gdbreplay_version): Update copyright year in
5197 * server.c (gdbserver_version): Likewise.
5199 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5201 * linux-low.c (add_lwp): Switch ordering.
5203 2018-11-29 Tom Tromey <tom@tromey.com>
5205 * win32-low.c (win32_join): Take pid, not process.
5206 * target.h (struct target_ops) <join>: Change argument type.
5207 (join_inferior): Change argument name.
5208 * spu-low.c (spu_join): Take pid, not process.
5209 * server.c (handle_detach): Preserve pid before destroying
5211 * lynx-low.c (lynx_join): Take pid, not process.
5212 * linux-low.c (linux_join): Take pid, not process.
5214 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5216 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5217 (aarch64_cannot_fetch_register): Likewise.
5218 (struct linux_target_ops): Update references.
5220 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5222 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5224 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5226 * configure.srv (ipa_ppc_linux_regobj): Add
5227 powerpc-isa207-htm-vsx32l-ipa.o and
5228 powerpc-isa207-htm-vsx64l-ipa.o.
5229 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5230 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5231 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5232 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5233 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5234 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5235 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5236 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5237 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5238 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5239 (init_registers_powerpc_isa207_htm_vsx32l)
5240 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5241 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5242 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5243 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5244 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5245 (ppc_store_tm_ctarregset): New functions.
5246 (ppc_regsets): Add entries for HTM regsets.
5247 (ppc_arch_setup): Set htm in features struct when needed. Set
5248 sizes for the HTM regsets.
5249 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5250 (initialize_low_arch): Call
5251 init_registers_powerpc_isa207_htm_vsx32l and
5252 init_registers_powerpc_isa207_htm_vsx64l.
5253 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5254 PPC_TDESC_ISA207_HTM_VSX.
5255 (initialize_low_tracepoint): Call
5256 init_registers_powerpc_isa207_htm_vsx32l and
5257 init_registers_powerpc_isa207_htm_vsx64l.
5259 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5261 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5262 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5263 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5264 (ppc_store_pmuregset): New functions.
5265 (ppc_regsets): Add entries for ebb and pmu regsets.
5266 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5267 pmu regsets are available. Set sizes for these regsets.
5269 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5271 * configure.srv (ipa_ppc_linux_regobj): Add
5272 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5273 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5274 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5275 rs6000/powerpc-isa207-vsx32l.xml, and
5276 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5277 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5278 <PPC_TDESC_ISA207_VSX>: New enum value.
5279 (init_registers_powerpc_isa207_vsx32l): Declare.
5280 (init_registers_powerpc_isa207_vsx64l): Declare.
5281 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5282 (ppc_store_tarregset): New function.
5283 (ppc_regsets): Add entry for the TAR regset.
5284 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5285 size for the TAR regsets.
5286 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5287 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5288 and init_registers_powerpc_isa207_vsx64l.
5289 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5290 (initialize_low_tracepoint): Call
5291 init_registers_powerpc_isa207_vsx32l and
5292 init_registers_powerpc_isa207_vsx64l.
5294 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5295 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5297 * configure.srv (ipa_ppc_linux_regobj): Add
5298 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5299 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5300 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5301 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5302 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5303 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5304 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5305 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5306 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5307 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5308 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5309 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5310 (ppc_hwcap): Add comment.
5311 (ppc_hwcap2): New global.
5312 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5313 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5314 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5315 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5316 when needed. Set sizes for the the DSCR and PPR regsets.
5317 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5318 (initialize_low_arch): Call
5319 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5320 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5321 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5322 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5323 (initialize_low_tracepoint): Call
5324 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5325 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5327 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5329 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5331 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5332 Simon Marchi <simark@simark.ca>
5334 * acinclude.m4: Include "../selftest.m4".
5335 * configure: Regenerate.
5336 * configure.ac: Use "GDB_AC_SELFTEST".
5337 * configure.srv: Use "$enable_unittests" instead of
5338 "$development" when checking whether unit tests have been
5340 * server.c (captured_main): Update message informing that
5341 selftests have been disabled.
5343 2018-10-04 Tom Tromey <tom@tromey.com>
5345 * configure: Rebuild.
5347 2018-10-04 Tom Tromey <tom@tromey.com>
5349 * server.c (handle_status): Rename inner "thread".
5350 (process_serial_event): Declare "res" in 'm' case.
5351 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5352 (iterate_over_lwps): Rename inner "thread".
5353 (linux_qxfer_libraries_svr4): Rename inner "len".
5354 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5356 2018-10-01 Gary Benson <gbenson@redhat.com>
5358 * gdb_proc_service.h: Moved common code to
5359 common/gdb_proc_service.h.
5361 2018-10-01 Gary Benson <gbenson@redhat.com>
5363 * gdb_proc_service.h: Synchronize comments and whitespace with
5364 GDB's version of this file.
5366 2018-09-25 Tom Tromey <tom@tromey.com>
5368 * configure: Rebuild.
5369 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5371 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5373 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5374 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5375 ($(IPA_LIB)): Sort IPA_OBJS.
5377 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5379 * Makefile.in: Remove references to $(ADD_DEPS).
5381 2018-09-16 Tom Tromey <tom@tromey.com>
5383 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5385 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5388 2018-09-05 Tom Tromey <tom@tromey.com>
5390 * configure: Rebuild.
5392 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5395 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5397 2018-08-27 Tom Tromey <tom@tromey.com>
5400 * configure: Rebuild.
5402 2018-08-27 Tom Tromey <tom@tromey.com>
5404 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5405 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5406 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5407 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5408 (s390x_emit_stack_adjust): Add casts to unsigned char.
5410 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5414 * server.h (struct client_state) <disable_randomization>:
5417 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5419 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5421 (mips_supply_ptrace_register): Likewise.
5423 2018-07-22 Tom Tromey <tom@tromey.com>
5425 * configure: Rebuild.
5427 2018-07-22 Tom Tromey <tom@tromey.com>
5429 * win32-low.c (win32_create_inferior): Remove unused variables.
5430 * gdbreplay.c (remote_open): Remove unused variable.
5431 * remote-utils.c (remote_prepare): Remove unused variable.
5432 * x86-tdesc.h (X86_TDESC_H): Define.
5433 (amd64_expedite_regs): Define conditionally.
5434 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5435 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5436 * remote-utils.c (readchar): Remove unused variable.
5438 2018-07-13 Pedro Alves <palves@redhat.com>
5440 * linux-low.c (linux_kill): Change parameter to process_info
5441 pointer instead of pid. Adjust.
5442 * lynx-low.c (lynx_kill): Likewise.
5443 * nto-low.c (nto_kill): Likewise.
5444 * spu-low.c (spu_kill): Likewise.
5445 * win32-low.c (win32_kill): Likewise.
5446 * server.c (handle_v_kill, kill_inferior_callback)
5447 (detach_or_kill_for_exit): Adjust.
5448 * target.c (kill_inferior): Change parameter to process_info
5449 pointer instead of pid. Adjust.
5450 * target.h (struct target_ops) <kill>: Change parameter to
5451 process_info pointer instead of pid. Adjust all implementations
5453 (kill_inferior): Likewise.
5455 2018-07-13 Pedro Alves <palves@redhat.com>
5457 * linux-low.c (linux_detach, linux_join): Change parameter to
5458 process_info pointer instead of pid. Adjust.
5459 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5460 * nto-low.c (nto_detach): Likewise.
5461 * spu-low.c (spu_detach, spu_join): Likewise.
5462 * win32-low.c (win32_detach, win32_join): Likewise.
5463 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5464 * target.h (struct target_ops) <detach, join>: Change parameter to
5465 process_info pointer instead of pid. Adjust all implementations
5467 (detach_inferior, join_inferior): Rename 'pid' parameter to
5470 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5471 Jan Kratochvil <jan.kratochvil@redhat.com>
5472 Paul Fertser <fercerpav@gmail.com>
5473 Tsutomu Seki <sekiriki@gmail.com>
5475 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5476 (OBS): Add 'common/netstuff.o'.
5477 (GDBREPLAY_OBS): Likewise.
5478 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5479 (remote_open): Implement support for IPv6
5481 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5483 (handle_accept_event): Accept connections from IPv6 sources.
5484 (remote_prepare): Handle IPv6-style hostnames; implement
5485 support for IPv6 connections.
5486 (remote_open): Implement support for printing connections from
5489 2018-07-11 Pedro Alves <palves@redhat.com>
5492 * mem-break.c (any_persistent_commands): Add process_info
5493 parameter and use it instead of relying on the current process.
5494 Change return type to bool.
5495 * mem-break.h (any_persistent_commands): Add process_info
5496 parameter and change return type to bool.
5497 * server.c (handle_detach): Remove require_running_or_return call.
5498 Look up the process_info for the process we're about to detach.
5499 If not found, return back error to GDB. Adjust
5500 any_persistent_commands call to pass down a process pointer.
5502 2018-07-11 Pedro Alves <palves@redhat.com>
5504 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5505 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5506 instead of collect_register_by_name.
5507 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5508 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5510 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5511 Pedro Alves <palves@redhat.com>
5513 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5515 2018-07-03 Tom Tromey <tom@tromey.com>
5517 * linux-low.c: Update.
5518 * lynx-low.c: Update.
5519 * mem-break.c: Update.
5520 * nto-low.c: Update.
5521 * remote-utils.c: Update.
5523 * spu-low.c: Update.
5525 * win32-low.c: Update.
5527 2018-07-03 Tom Tromey <tom@tromey.com>
5531 2018-07-03 Tom Tromey <tom@tromey.com>
5533 * linux-low.c: Update.
5535 2018-07-03 Tom Tromey <tom@tromey.com>
5539 2018-07-03 Tom Tromey <tom@tromey.com>
5541 * linux-low.c: Update.
5542 * linux-mips-low.c: Update.
5543 * lynx-low.c: Update.
5544 * nto-low.c: Update.
5545 * remote-utils.c: Update.
5547 * spu-low.c: Update.
5549 * thread-db.c: Update.
5551 2018-07-03 Tom Tromey <tom@tromey.com>
5553 * linux-low.c: Update.
5554 * linux-mips-low.c: Update.
5555 * lynx-low.c: Update.
5556 * mem-break.c: Update.
5557 * nto-low.c: Update.
5558 * remote-utils.c: Update.
5560 * spu-low.c: Update.
5562 * tracepoint.c: Update.
5564 2018-07-03 Tom Tromey <tom@tromey.com>
5566 * linux-low.c: Update.
5567 * linux-ppc-low.c: Update.
5568 * linux-x86-low.c: Update.
5569 * proc-service.c: Update.
5571 * spu-low.c: Update.
5572 * thread-db.c: Update.
5573 * win32-low.c: Update.
5575 2018-07-03 Tom Tromey <tom@tromey.com>
5577 * linux-low.c: Update.
5578 * lynx-low.c: Update.
5579 * nto-low.c: Update.
5580 * remote-utils.c: Update.
5581 * spu-low.c: Update.
5582 * thread-db.c: Update.
5583 * win32-low.c: Update.
5585 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5587 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5588 parameter in call to 'amd64_create_target_description'.
5590 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5592 * x86-tdesc.h: Remove executable permission flag.
5594 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5596 * configure.ac: Remove AC_PREREQ, add missing quoting.
5597 * configure: Re-generate.
5598 * config.in: Re-generate.
5599 * aclocal.m4: Re-generate.
5601 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5603 * tracepoint.h (current_traceframe): Remove declaration.
5605 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5607 * linux-aarch64-low.c (is_sve_tdesc): New function.
5608 (aarch64_sve_regs_copy_to_regcache): Likewise.
5609 (aarch64_sve_regs_copy_from_regcache): Likewise.
5610 (aarch64_regs_info): Add SVE checks.
5611 (initialize_low_arch): Initialize SVE.
5613 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5615 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5617 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5619 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5620 (initialize_low_tracepoint): Likewise
5621 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5622 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5624 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5626 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5628 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5630 * server.h (PBUFSIZ): Increase size
5632 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5634 * regcache.c (regcache::raw_compare): New function.
5635 * regcache.h (regcache::raw_compare): New declaration.
5637 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5639 * regcache.c (new_register_cache): Use new.
5640 (free_register_cache): Use delete.
5641 (register_data): Use const.
5642 (supply_register): Move body inside regcache.
5643 (regcache::raw_supply): New override function.
5644 (collect_register): Move body inside regcache.
5645 (regcache::raw_collect): New override function.
5646 (regcache::get_register_status): New override function.
5647 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5649 2018-06-09 Tom Tromey <tom@tromey.com>
5651 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5653 (event_queue): Use std::queue.
5654 (gdb_event_xfree): Remove.
5655 (initialize_event_loop, process_event, wait_for_event): Update.
5657 2018-06-08 Stan Cox <scox@redhat.com>
5659 * win32-low.c (win32_create_inferior): last_ptid and last_status
5660 moved to client_state.
5662 2018-06-08 Pedro Alves <palves@redhat.com>
5664 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5665 common/common-exceptions.o, common/common-utils.o,
5666 common/errors.o, common/print-utils.o and utils.o.
5667 * gdbreplay.c: Include "common-defs.h" instead of the two
5668 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5669 string.h or alloca.h.
5670 (perror_with_name): Delete.
5671 (remote_open): Use xstrdup instead of strdup.
5672 (main): Rename to ...
5673 (captured_main): ... this.
5676 2018-06-08 Tom Tromey <tom@tromey.com>
5678 * linux-low.c (linux_low_read_btrace): Update.
5680 2018-06-04 Stan Cox <scox@redhat.com>
5682 * server.h (struct client_state): New.
5683 * server.c (cont_thread, general_thread, multi_process)
5684 (report_fork_events, report_vfork_events, report_exec_events)
5685 (report_thread_events, swbreak_feature, hwbreak_feature)
5686 (vCont_supported, disable_randomization, pass_signals)
5687 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5688 Moved to client_state.
5689 * remote-utils.c (remote_debug, noack_mode)
5690 (transport_is_reliable): Moved to client_state.
5691 * tracepoint.c (current_traceframe): Moved to client_state.
5694 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5695 linux-low.c, remote-utils.h, target.c: Use client_state.
5697 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5699 * configure.srv: Add new c/h file.
5701 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5703 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5706 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5708 * gdb.arch/mips-fpregset-core.exp: New test.
5709 * gdb.arch/mips-fpregset-core.c: New test source.
5711 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5714 * hostio.c (require_int): Do not report overflow for integers
5715 between 0xfffffff and 0x7fffffff.
5717 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5719 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5720 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5721 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5723 (the_low_target): Wire them.
5725 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5727 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5728 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5729 mode. Call collect_register_by_name with vscr using
5730 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5731 (ppc_store_vrregset): Add and set vscr_offset variable as in
5732 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5735 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5737 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5738 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5739 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5741 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5743 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5744 (ppc_store_vsxregset): Likewise.
5745 (ppc_fill_vrregset): Likewise.
5746 (ppc_store_vrregset): Likewise.
5747 (ppc_fill_evrregset): Likewise.
5748 (ppc_store_evrregset): Likewise.
5749 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5750 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5753 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5755 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5756 wordsize of the inferior. Call ppc_linux_target_wordsize.
5758 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5760 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5761 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5762 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5763 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5764 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5765 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5766 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5767 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5768 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5769 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5770 (tdesc_powerpc_e500l): Remove.
5771 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5772 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5773 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5774 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5776 (ppc_arch_setup): Remove target description matching code. Fill a
5777 ppc_linux_features struct and call ppc_linux_match_description
5780 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5782 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5783 width of the requested register exceeds the width of the
5785 (mips_cannot_store_register): Likewise.
5787 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5789 * linux-mips-low.c (mips_fetch_register): New function. Update
5791 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5792 (the_low_target): Wire `mips_fetch_register'.
5794 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5796 * lynx-i386-low.c (LYNXOS_178): New macro.
5797 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5798 the layout on LynxOS-178.
5799 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5800 handle floating point registers that are not supported by
5803 2018-05-10 Tom Tromey <tom@tromey.com>
5805 * configure: Rebuild.
5807 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5810 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5811 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5812 Use it to set the expedite_regs field in the given tdesc.
5813 * x86-tdesc.h: New file.
5814 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5815 Adjust following the addition of the new expedite_regs parameter
5816 to init_target_desc.
5817 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5818 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5819 (i386_linux_read_description, amd64_linux_read_description):
5820 Adjust following the addition of the new expedite_regs parameter
5821 to init_target_desc.
5822 * lynx-i386-low.c: #include "x86-tdesc.h".
5823 (lynx_i386_arch_setup): Adjust following the addition of the new
5824 expedite_regs parameter to init_target_desc.
5825 * nto-x86-low.c: #include "x86-tdesc.h".
5826 (nto_x86_arch_setup): Adjust following the addition of the new
5827 expedite_regs parameter to init_target_desc.
5828 * win32-i386-low.c: #include "x86-tdesc.h".
5829 (i386_arch_setup): Adjust following the addition of the new
5830 expedite_regs parameter to init_target_desc.
5832 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5835 * win32-low.c (win32_create_inferior): Add call to my_wait
5836 setting last_status global.
5838 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5841 * win32-low.c (create_process): Only call gdb_tilde_expand if
5842 inferior_cwd is not NULL.
5844 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5846 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5847 registers to the cache if their values have changed.
5848 (i387_xsave_to_cache): Provide default values for x87 control
5849 registers when these features are available, but disabled.
5850 * regcache.c (supply_register_by_name_zeroed): New function.
5851 * regcache.h (supply_register_by_name_zeroed): Declare new
5854 2018-05-07 Tom Tromey <tom@tromey.com>
5856 * configure: Rebuild.
5858 2018-05-04 Tom Tromey <tom@tromey.com>
5860 * configure: Rebuild.
5862 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5863 Pedro Alves <palves@redhat.com>
5865 * linux-aarch64-low.c (aarch64_stopped_data_address):
5868 2018-04-27 Tom Tromey <tom@tromey.com>
5870 * configure: Rebuild.
5872 2018-04-23 Tom Tromey <tom@tromey.com>
5874 * configure: Rebuild.
5876 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5878 * Makefile.in (depcomp): Add "..".
5879 (all_deps_files): New and use it.
5881 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5883 * configure.srv (aarch64*-*-linux*): Don't include xml.
5884 (i[34567]86-*-cygwin*): Likewise.
5885 (i[34567]86-*-linux*): Likewise.
5886 (i[34567]86-*-lynxos*): Likewise.
5887 (i[34567]86-*-mingw32ce*): Likewise.
5888 (i[34567]86-*-mingw*): Likewise.
5889 (i[34567]86-*-nto*): Likewise.
5890 (tic6x-*-uclinux): Likewise.
5891 (x86_64-*-linux*): Likewise.
5892 (x86_64-*-mingw*): Likewise.
5893 (x86_64-*-cygwin*): Likewise.
5895 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5897 * tdesc.c: Remove xml parameter.
5899 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5901 * server.c (get_features_xml): Remove cast.
5902 * tdesc.c (void target_desc::accept): Fill in function.
5903 (tdesc_get_features_xml): Remove old xml creation.
5904 (print_xml_feature::visit_pre): Add xml vistor.
5905 * tdesc.h (struct target_desc): Make xmltarget mutable.
5906 (tdesc_get_features_xml): Remove declaration.
5908 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5910 * tdesc.c (tdesc_architecture_name): Add new function.
5911 (tdesc_osabi_name): Likewise.
5912 (tdesc_get_features_xml): Use new functions.
5914 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5916 * tdesc.c (tdesc_create_flags): Remove.
5917 (tdesc_add_flag): Likewise.
5918 (tdesc_named_type): Likewise.
5919 (tdesc_create_union): Likewise.
5920 (tdesc_create_struct): Likewise.
5921 (tdesc_create_vector): Likewise.
5922 (tdesc_add_bitfield): Likewise.
5923 (tdesc_add_field): Likewise.
5924 (tdesc_set_struct_size): Likewise.
5926 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5928 * tdesc.c (~target_desc): Remove implictly deleted items.
5929 (init_target_desc): Iterate all features.
5930 (tdesc_get_features_xml): Use vector.
5931 (tdesc_create_feature): Create feature.
5932 * tdesc.h (tdesc_feature) Remove
5933 (target_desc): Add features.
5935 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5937 * Makefile.in: Add common/tdesc.c
5938 * tdesc.c (init_target_desc): init all reg_defs from register
5940 (tdesc_create_reg): Create tdesc_reg.
5941 * tdesc.h (tdesc_feature): Add register vector.
5943 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5945 * tdesc.h (struct target_desc) <features>: Change type to
5946 std::vector<std::string>.
5947 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5949 (tdesc_get_features_xml): Likewise.
5950 (tdesc_create_feature): Likewise.
5952 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5954 * regcache.c (find_register_by_number): Return a ref.
5955 (find_regno): Use references.
5956 (register_size): Likewise.
5957 (register_data): Likewise.
5958 * tdesc.c (target_desc::~target_desc): Remove free calls.
5959 (target_desc::operator==): Use std::vector compare.
5960 (init_target_desc): Use reference.
5961 (tdesc_create_reg): Use reg constructors.
5962 * tdesc.h (struct target_desc): Replace pointer with object.
5964 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5966 * regcache.c (find_register_by_number): Make static.
5967 (find_regno): Use find_register_by_number
5968 * regcache.h (struct reg): Remove declaration.
5970 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5972 * tdesc.c (target_desc::~target_desc): Move to here.
5973 (target_desc::operator==): Likewise.
5974 * tdesc.h (target_desc::~target_desc): Move from here.
5975 (target_desc::operator==): Likewise.
5977 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5979 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5981 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5983 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5985 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5986 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5987 and init_registers_s390_gs_linux64.
5989 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5991 * linux-s390-low.c (s390_fill_gs): Remove function.
5992 (s390_fill_gsbc): Remove function.
5993 (s390_regsets): Set fill functions for the guarded storage regsets
5996 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5998 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5999 the word size. Add comment.
6000 (s390_get_wordsize): New function.
6001 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6002 pswm with it. Instead, use s390_get_wordsize to determine the
6003 word size first and derive the correct tdesc from that directly.
6005 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6007 * Makefile.in: Include silent-rules.mk.
6008 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6009 (COMPILE): Add ECHO_CXX.
6010 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6011 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6012 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6013 (version-generated.c): Add ECHO_GEN.
6014 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6015 (IPAGENT_COMPILE): Add ECHO_CXX.
6016 (%-generated.c): Add ECHO_REGDAT.
6018 2018-03-14 Tom Tromey <tom@tromey.com>
6021 * ax.c (ax_printf): Special case for NULL.
6023 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6025 * linux-low.c (linux_qxfer_libraries_svr4): Use
6026 xml_escape_text_append.
6028 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6030 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6032 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6034 * server.c (handle_general_set): Remove unnecessary xstrdup.
6036 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6038 * server.c (parse_debug_format_options): Adjust to
6039 delim_string_to_char_ptr_vec changes.
6040 * thread-db.c (thread_db_load_search): Adjust to
6041 dirnames_to_char_ptr_vec changes.
6043 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6045 * target.h (target_enable_btrace, target_disable_btrace)
6046 (target_read_btrace, target_read_btrace_conf): Turn macro into
6047 inline function. Throw error if target method is not defined.
6048 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6049 check for btrace target method. Be prepared to handle exceptions
6050 from btrace target methods.
6052 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6054 * server.c (captured_main): Change order of error message printed
6055 when the current working directory cannot be found.
6057 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6059 * server.c: Include "filenames.h" and "pathstuff.h".
6060 (program_name): Delete variable.
6061 (program_path): New anonymous class.
6062 (get_exec_wrapper): Use "program_path" instead of
6064 (handle_v_run): Likewise.
6065 (captured_main): Likewise.
6066 (process_serial_event): Likewise.
6068 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6070 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6071 (OBJS): Add "pathstuff.o".
6072 * server.c (current_directory): New global variable.
6073 (captured_main): Initialize "current_directory".
6075 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6077 * tdesc.c: Use common/tdesc.h.
6078 * tdesc.h: Likewise.
6080 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6081 Simon Marchi <simon.marchi@ericsson.com>
6083 * Makefile.in: Switch order of make rules.
6085 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6087 * Makefile.in: Add common directory in build.
6088 * configure.ac: Add common reference.
6089 * configure: Regenerate.
6091 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6093 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6094 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6095 * spu-low.c (spu_target_ops): Likewise.
6096 * win32-low.c (win32_target_ops): Likewise.
6097 * server.c (supported_btrace_packets): Report packets unconditionally.
6098 * target.h (target_ops) <supports_btrace>: Remove.
6099 (target_supports_btrace): Remove.
6101 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6103 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6104 (handle_btrace_disable): Change return type to void. Use exceptions
6106 (handle_btrace_general_set): Catch exception and copy message to
6109 2018-02-08 Tom Tromey <tom@tromey.com>
6111 * linux-low.c (install_software_single_step_breakpoints): Use
6112 make_scoped_restore.
6113 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6114 (do_restore_current_thread_cleanup): Remove.
6115 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6118 2018-02-08 Tom Tromey <tom@tromey.com>
6120 * mem-break.c (set_raw_breakpoint_at): Use
6121 gdb::unique_xmalloc_ptr.
6123 2018-01-30 Pedro Alves <palves@redhat.com>
6126 * target.c (target_terminal::terminal_state): Rename to ...
6127 (target_terminal::m_terminal_state): ... this.
6129 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6131 * linux-low.c (handle_extended_wait): Surround call to
6132 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6134 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6136 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6137 linux_ptrace_attach_fail_reason_string now returning an
6139 (linux_attach): Likewise.
6140 * thread-db.c (attach_thread): Likewise.
6142 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6145 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6146 checking for fs_base/gs_base fields in struct user_regs_struct.
6147 * configure: Regenerate.
6149 2018-01-16 Yao Qi <yao.qi@linaro.org>
6152 * linux-low.c (fetch_register): Call supply_register instead of
6155 2018-01-08 Yao Qi <yao.qi@linaro.org>
6156 Simon Marchi <simon.marchi@ericsson.com>
6158 * Makefile.in (OBS): Remove selftest.o.
6159 * configure.ac: Set srv_selftest_objs if $development is true.
6160 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6161 * configure: Re-generated.
6162 * server.c (captured_main): Wrap variable selftest_filter with
6165 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6167 * server.c (parse_debug_format_options): Return std::string.
6168 (handle_monitor_command, captured_main): Adjust.
6170 2018-01-05 Pedro Alves <palves@redhat.com>
6173 * server.c (captured_main): Pass quiet=false to
6174 save_original_signals_state.
6176 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6178 * gdbreplay.c (gdbreplay_version): Update copyright year in
6180 * server.c (gdbserver_version): Likewise.
6182 2017-12-08 Tom Tromey <tom@tromey.com>
6184 * ax.c (ax_printf): Update.
6186 2017-12-07 Yao Qi <yao.qi@linaro.org>
6188 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6189 aarch64_linux_read_description.
6190 * linux-amd64-ipa.c (idx2mask): New array.
6191 (get_ipa_tdesc): Move idx2mask out.
6192 (initialize_low_tracepoint): Initialize target descriptions.
6193 * linux-i386-ipa.c (idx2mask): New array.
6194 (get_ipa_tdesc): Move idx2mask out.
6195 (initialize_low_tracepoint): Initialize target descriptions.
6197 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6199 * tdesc.c (struct tdesc_type): Change return type.
6200 (tdesc_add_flag): Change parameter type.
6201 (tdesc_add_bitfield): Likewise.
6202 (tdesc_add_field): Likewise.
6203 (tdesc_set_struct_size): Likewise.
6205 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6207 * regcache.c (registers_to_string): Remove unused variable.
6209 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6211 * inferiors.c (for_each_inferior_with_data): Remove.
6212 * inferiors.h (for_each_inferior_with_data): Remove.
6213 * server.c (handle_qxfer_threads_worker): Change parameter type.
6214 (handle_qxfer_threads_proper): Use for_each_thread.
6216 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6218 * inferiors.c (for_each_inferior): Remove.
6219 (clear_inferiors): Use for_each_thread.
6220 * inferiors.h (for_each_inferior): Remove.
6221 * linux-low.c (linux_wait_for_event_filtered): Use
6223 (linux_stabilize_threads): Likewise.
6224 * regcache.c (regcache_release): Likewise.
6225 * server.c (gdb_wants_all_threads_stopped): Likewise.
6226 (clear_pending_status_callback): Remove.
6227 (handle_status): Use for_each_thread.
6228 (captured_main): Likewise.
6229 * win32-low.c (child_init_thread_list): Likewise.
6230 (win32_clear_inferiors): Likewise.
6231 (fake_breakpoint_event): Likewise.
6233 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6235 * inferiors.h (find_inferior): Remove.
6236 * inferiors.c (find_inferior): Remove.
6238 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6240 * linux-low.c (resume_status_pending_p): Update comment.
6241 (need_step_over_p): Update comment.
6243 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6245 * linux-low.c (proceed_one_lwp): Return void, change parameter
6247 (unsuspend_and_proceed_one_lwp): Likewise.
6248 (proceed_all_lwps): Use for_each_thread.
6249 (unstop_all_lwps): Likewise.
6251 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6253 * linux-low.c (linux_resume_one_thread): Return void, take
6255 (linux_resume): Use for_each_thread.
6257 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6259 * linux-low.c (send_sigstop_callback): Return void, change
6260 parameter type. Rename to...
6261 (send_sigstop): ... this.
6262 (suspend_and_send_sigstop_callback): Return void, change parameter
6264 (suspend_and_send_sigstop): ... this.
6265 (stop_all_lwps): Use for_each_thread.
6267 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6269 * linux-low.c (lwp_running): Return bool, remove unused
6271 (linux_stabilize_threads): Use find_thread.
6273 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6275 * linux-low.c (select_singlestep_lwp_callback): Remove.
6276 (count_events_callback): Remove.
6277 (select_event_lwp_callback): Remove.
6278 (select_event_lwp): Use find_thread/for_each_thread.
6280 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6282 * linux-low.c (not_stopped_callback): Return bool, take filter
6284 (linux_wait_for_event_filtered): Use find_thread.
6285 (linux_wait_1): Likewise.
6287 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6289 * linux-low.c (same_lwp): Remove.
6290 (find_lwp_pid): Use find_thread.
6292 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6294 * linux-low.c (delete_lwp_callback): Remove.
6295 (linux_mourn): Use for_each_thread.
6297 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6299 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6300 args parameter, don't check for pid.
6301 (linux_detach): Use for_each_thread.
6303 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6305 * linux-low.c (struct counter): Remove.
6306 (second_thread_of_pid_p): Remove.
6307 (last_thread_of_process_p): Use find_thread.
6309 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6311 * inferiors.c (find_inferior_in_random): Remove.
6312 * inferiors.h (find_inferior_in_random): Remove.
6313 * linux-low.c (status_pending_p_callback): Return bool, accept
6314 parameter ptid directly.
6315 (linux_wait_for_event_filtered): Use find_thread_in_random.
6316 (linux_wait_1): Likewise.
6318 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6320 * inferiors.c (find_inferior_id): Remove.
6321 (find_thread_ptid): Move implemention from find_inferior_id to
6323 * inferiors.h (find_inferior_id): Remove.
6324 * server.c (handle_status): Use find_thread_ptid.
6325 (process_serial_event): Likewise.
6326 * thread-db.c (find_one_thread): Likewise.
6327 (thread_db_thread_handle): Likewise.
6328 * win32-low.c (thread_rec): Likewise.
6329 (child_delete_thread): Likewise.
6330 (win32_thread_alive): Likewise.
6331 (get_child_debug_event): Likewise.
6333 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6335 * linux-mips-low.c (update_watch_registers_callback): Return
6336 void, remove pid_p parameter, don't check for pid.
6337 (mips_insert_point, mips_remove_point): Use for_each_thread.
6339 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6341 * lynx.low (lynx_delete_thread_callback): Remove.
6342 (lynx_mourn): Use for_each_thread.
6344 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6346 * regcache.c (regcache_invalidate_one): Remove.
6347 (regcache_invalidate_pid): use for_each_thread.
6349 2017-11-26 Tom Tromey <tom@tromey.com>
6351 * linux-low.c (linux_create_inferior): Update.
6353 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6355 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6357 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6359 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6360 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6361 * linux-aarch64-tdesc-selftest.c: New file.
6362 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6364 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6366 * configure.srv: Add new file.
6367 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6368 * linux-aarch64-tdesc-selftest.c: New file.
6369 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6371 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6373 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6374 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6375 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6377 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6379 * configure.srv: Add new files.
6380 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6381 aarch64_linux_read_description.
6382 * linux-aarch64-low.c (aarch64_linux_read_description):
6383 Merge with aarch64_arch_setup.
6384 (aarch64_arch_setup): Call aarch64_linux_read_description.
6385 * linux-aarch64-tdesc.c: New file.
6386 * linux-aarch64-tdesc.h: New file.
6388 2017-11-24 Yao Qi <yao.qi@linaro.org>
6390 * configure.srv: Set $srv_regobj for tic6x-linux.
6391 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6392 (tic6x_read_description): Move some code to tic6x_arch_setup.
6393 (tic6x_tdesc_test): New function.
6394 (initialize_low_arch): Call selftests::register_test.
6396 2017-11-22 Yao Qi <yao.qi@linaro.org>
6398 * remote-utils.c (prepare_resume_reply): Use memcpy.
6400 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6402 * linux-low.c (kill_one_lwp_callback): Return void, take
6403 argument directly, don't filter on pid.
6404 (linux_kill): Use for_each_thread.
6406 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6408 * linux-low.c (need_step_over_p): Return bool, remove dummy
6410 (linux_resume, proceed_all_lwps): Use find_thread.
6412 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6414 * linux-low.c (resume_status_pending_p): Return bool, remove
6416 (linux_resume): Use find_thread.
6418 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6420 * linux-low.c (struct thread_resume_array): Remove.
6421 (linux_set_resume_request): Return void, take arguments
6423 (linux_resume): Use for_each_thread.
6425 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6427 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6428 return bool, remove data argument.
6429 (linux_stabilize_threads): Use find_thread.
6431 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6433 * linux-low.c (unsuspend_one_lwp): Remove.
6434 (unsuspend_all_lwps): Use for_each_thread, inline code from
6437 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6439 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6440 * linux-low.c (struct iterate_over_lwps_args): Remove.
6441 (iterate_over_lwps_filter): Remove.
6442 (iterate_over_lwps): Use find_thread.
6444 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6446 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6447 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6448 code from reset_lwp_ptrace_options_callback.
6450 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6452 * linux-arm-low.c (struct update_registers_data): Remove.
6453 (update_registers_callback): Return void, take arguments
6454 directly, don't check thread's pid.
6455 (arm_insert_point, arm_remove_point): Use for_each_thread.
6457 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6459 * win32-low.c (continue_one_thread): Return void, take argument
6461 (child_continue): Use for_each_thread.
6463 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6465 * win32-i386-low.c (update_debug_registers_callback): Rename
6467 (update_debug_registers): ... this, return void, remove pid_p arg.
6468 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6470 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6472 * inferiors.h (struct process_info): Add constructor, initialize
6474 <syscalls_to_catch>: Change type to std::vector<int>.
6475 * inferiors.c (add_process): Allocate process_info with new.
6476 (remove_process): Free process_info with delete.
6477 * linux-low.c (handle_extended_wait): Adjust.
6478 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6479 * server.c (handle_general_set): Adjust.
6481 2017-11-16 Pedro Alves <palves@redhat.com>
6483 * remote-utils.c (remote_close): Block SIGIO signals instead of
6484 uninstalling the SIGIO handler.
6486 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6488 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6490 2017-11-16 Yao Qi <yao.qi@linaro.org>
6492 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6493 (tic6x_store_gregset): Likewise.
6494 (tic6x_usrregs_info): Move it up.
6496 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6498 * Makefile.in: Update arch rules.
6499 * configure.srv: Explicitly mark arch/ files.
6501 2017-11-13 Andreas Schwab <schwab@suse.de>
6503 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6505 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6507 2017-11-06 Pedro Alves <palves@redhat.com>
6509 * config.in, configure: Regenerate.
6511 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6513 * target.c (struct thread_search): Remove.
6514 (thread_search_callback): Remove.
6515 (prepare_to_access_memory): Use for_each_thread instead of
6516 find_inferior. Inline code from thread_search_callback.
6518 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6520 * server.c (struct visit_actioned_threads_data): Remove.
6521 (visit_actioned_threads): Change prototype to take arguments
6523 (resume): Use find_thread instead of find_inferior.
6525 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6527 * server.c (queue_stop_reply_callback): Change prototype, return
6529 (find_status_pending_thread_callback): Remove.
6530 (handle_status): Replace find_inferior with find_thread and
6533 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6535 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6537 (aarch64_store_gregset): Likewise.
6538 (aarch64_fill_fpregset): Likewise.
6539 (aarch64_store_fpregset): Likewise.
6541 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6543 * gdbthread.h (find_thread, for_each_thread): New functions.
6544 * inferiors.c (thread_of_pid): Remove.
6545 (find_any_thread_of_pid): Use find_thread.
6546 * linux-low.c (num_lwps): Use for_each_thread.
6548 2017-10-17 Yao Qi <yao.qi@linaro.org>
6550 * Makefile.in: Remove one rule.
6551 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6553 2017-10-17 Yao Qi <yao.qi@linaro.org>
6555 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6556 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6558 2017-10-17 Yao Qi <yao.qi@linaro.org>
6560 * configure.srv: Rename arm.o with arch/arm.o.
6562 2017-10-17 Yao Qi <yao.qi@linaro.org>
6564 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6565 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6566 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6567 (arch-i386.o, arch-amd64.o): Remove rules.
6568 (arch/%.o): New rule.
6569 Update POSTCOMPILE and COMPILE.pre.
6570 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6571 * configure: Re-generated.
6572 * configure.srv: Replace arch-i386.o with arch/i386.o.
6573 Replace arch-amd64.o with arch/amd64.o.
6575 2017-10-16 Yao Qi <yao.qi@linaro.org>
6577 * configure: Regenerated.
6579 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6581 * inferiors.h: (struct inferior_list): Remove.
6582 (struct inferior_list_entry); Remove.
6583 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6584 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6585 get_first_inferior): Remove.
6586 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6587 find_inferior_id, find_inferior_in_random): Change signature.
6588 * inferiors.c (all_threads): Change type to
6589 std::list<thread_info *>.
6590 (get_thread): Remove macro.
6591 (find_inferior, find_inferior_id): Change signature, implement
6593 (find_inferior_in_random): Change signature, implement using
6594 find_thread_in_random.
6595 (for_each_inferior, for_each_inferior_with_data): Change
6596 signature, implement using for_each_thread.
6597 (add_inferior_to_list, remove_inferior): Remove.
6598 (add_thread, get_first_thread, thread_of_pid,
6599 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6600 (get_first_inferior, one_inferior_p, clear_inferior_list):
6602 (clear_inferiors, get_thread_process): Update.
6603 * gdbthread.h: Include <list>.
6604 (struct thread_info) <entry>: Remove field.
6606 (all_threads): Change type to std::list<thread_info *>.
6607 (get_first_inferior): Add doc.
6608 (find_thread, for_each_thread, find_thread_in_random): New
6610 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6611 * linux-arm-low.c (update_registers_callback): Update.
6612 * linux-low.c (second_thread_of_pid_p): Update.
6613 (kill_one_lwp_callback, linux_detach_lwp_callback,
6614 delete_lwp_callback, status_pending_p_callback, same_lwp,
6615 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6616 iterate_over_lwps, not_stopped_callback,
6617 resume_stopped_resumed_lwps, count_events_callback,
6618 select_singlestep_lwp_callback, select_event_lwp_callback,
6619 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6620 suspend_and_send_sigstop_callback, wait_for_sigstop,
6621 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6622 lwp_running, linux_set_resume_request, resume_status_pending_p,
6623 need_step_over_p, start_step_over, linux_resume_one_thread,
6624 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6625 reset_lwp_ptrace_options_callback): Update.
6626 * linux-mips-low.c (update_watch_registers_callback): Update.
6627 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6629 (free_register_cache_thread_one): Remove.
6630 (regcache_release): Update.
6631 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6632 handle_qxfer_threads_worker): Update.
6633 (handle_query): Update, use list iterator.
6634 (visit_actioned_threads, handle_pending_status,
6635 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6636 clear_pending_status_callback, set_pending_status_callback,
6637 find_status_pending_thread_callback, handle_status,
6638 process_serial_event): Update.
6639 * target.c (thread_search_callback): Update.
6640 * thread-db.c (thread_db_get_tls_address): Update.
6641 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6643 * win32-i386-low.c (update_debug_registers_callback): Update.
6644 * win32-low.c (delete_thread_info, child_delete_thread,
6645 continue_one_thread, suspend_one_thread,
6646 get_child_debug_event): Adjust.
6648 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6650 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6651 * inferiors.h: Include <list>.
6652 (struct process_info) <entry>: Remove field.
6654 (pid_of): Change macro to function.
6655 (ptid_of, lwpid_of): Remove macro.
6656 (all_processes): Change type to std::list<process_info *>.
6657 (ALL_PROCESSES): Remove macro.
6658 (for_each_process, find_process): New function.
6659 * inferiors.c (all_processes): Change type to
6660 std::list<process_info *>.
6661 (find_thread_process): Adjust.
6662 (add_process): Likewise.
6663 (remove_process): Likewise.
6664 (find_process_pid): Likewise.
6665 (get_first_process): Likewise.
6666 (started_inferior_callback): Remove.
6667 (have_started_inferiors_p): Adjust.
6668 (attached_inferior_callback): Remove.
6669 (have_attached_inferiors_p): Adjust.
6670 * linux-low.c (check_zombie_leaders): Likewise.
6671 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6672 (x86_linux_update_xmltarget): Adjust.
6673 * server.c (handle_query): Likewise.
6674 (gdb_reattached_process): Remove.
6675 (handle_status): Adjust.
6676 (kill_inferior_callback): Likewise.
6677 (detach_or_kill_inferior): Remove.
6678 (print_started_pid): Likewise.
6679 (print_attached_pid): Likewise.
6680 (detach_or_kill_for_exit): Update.
6681 (process_serial_event): Likewise.
6682 * linux-arm-low.c (arm_new_fork): Likewise.
6684 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6686 * dll.h: Include <list>.
6687 (struct dll_info): Add constructor.
6688 <entry>: Remove field.
6689 (all_dlls): Change type to std::list<dll_info>.
6690 * dll.c: Include <algorithm>.
6691 (get_dll): Remove macro.
6692 (all_dlls): Change type to std::list<dll_info *>.
6693 (free_one_dll): Remove.
6694 (match_dll): Likewise.
6695 (loaded_dll): Adjust.
6696 (unloaded_dll): Adjust to all_dlls type change, use
6697 std::find_if. Inline code from match_dll.
6698 (clear_dlls): Adjust to all_dlls type change.
6699 * server.c (emit_dll_description): Remove.
6700 (handle_qxfer_libraries): Adjust to all_dlls type change,
6701 integrate emit_dll_description's functionality.
6703 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6705 * linux-low.h (struct linux_target_ops) <delete_process>: New
6707 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6708 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6709 (struct linux_target_ops): Add delete_process callback.
6710 * linux-arm-low.c (arm_delete_process): New.
6711 (struct linux_target_ops): Add delete_process callback.
6712 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6713 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6714 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6715 * linux-mips-low.c (mips_linux_delete_process): New.
6716 (struct linux_target_ops): Add delete_process callback.
6717 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6718 * linux-s390-low.c (struct linux_target_ops): Likewise.
6719 * linux-sh-low.c (struct linux_target_ops): Likewise.
6720 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6721 * linux-tile-low.c (struct linux_target_ops): Likewise.
6722 * linux-x86-low.c (x86_linux_delete_process): New.
6723 (struct linux_target_ops): Add delete_process callback.
6724 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6726 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6728 * linux-aarch64-low.c (the_low_target): Add thread delete
6730 * linux-arm-low.c (arm_delete_thread): New function.
6731 (the_low_target): Add thread delete callback.
6732 * linux-bfin-low.c (the_low_target): Likewise.
6733 * linux-crisv32-low.c (the_low_target): Likewise.
6734 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6736 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6738 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6739 * linux-mips-low.c (mips_linux_delete_thread): New function.
6740 (the_low_target): Add thread delete callback.
6741 * linux-ppc-low.c (the_low_target): Likewise.
6742 * linux-s390-low.c (the_low_target): Likewise.
6743 * linux-sh-low.c (the_low_target): Likewise.
6744 * linux-tic6x-low.c (the_low_target): Likewise.
6745 * linux-tile-low.c (the_low_target): Likewise.
6746 * linux-x86-low.c (the_low_target): Likewise.
6747 * linux-xtensa-low.c (the_low_target): Likewise.
6749 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6751 * win32-low.c: Include "common-inferior.h".
6753 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6755 * inferiors.c (set_inferior_cwd): New function.
6756 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6757 (handle_query): Inform that QSetWorkingDir is supported.
6758 * win32-low.c (create_process): Pass the inferior's cwd to
6761 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6763 * inferiors.c (current_inferior_cwd): New global variable.
6764 (get_inferior_cwd): New function.
6765 * inferiors.h (struct process_info) <cwd>: New field.
6767 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6769 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6770 (OBS): Add gdb_tilde_expand.o.
6772 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6774 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6775 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6777 2017-09-29 Pedro Alves <palves@redhat.com>
6779 * ax.c (gdb_parse_agent_expr): Constify.
6780 * ax.h (gdb_parse_agent_expr): Constify.
6781 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6783 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6784 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6785 * remote-utils.h (read_ptid): Constify.
6786 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6787 (process_point_options, process_serial_event): Constify.
6788 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6789 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6790 (cmd_qtbuffer): Constify.
6792 2017-09-29 Pedro Alves <palves@redhat.com>
6794 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6797 2017-09-29 Pedro Alves <palves@redhat.com>
6799 * linux-low.c (handle_extended_wait): Pass parent thread instead
6800 of process to thread_db_notice_clone.
6801 * linux-low.h (thread_db_notice_clone): Replace parent process
6802 parameter with parent thread parameter.
6803 * thread-db.c (find_one_thread): Add comment.
6804 (thread_db_notice_clone): Replace parent process parameter with
6805 parent thread parameter. Temporarily switch to the parent thread.
6807 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6809 * gdbthread.h: Include "common-gdbthread.h".
6810 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6811 "if" when validating the ptid.
6812 * remote-utils.c: Include "gdbthread.h".
6813 (prepare_resume_reply): Use "switch_to_thread".
6814 * target.c (done_accessing_memory): Likewise.
6816 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6818 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6819 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6820 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6821 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6822 s390x-gs-linux64-ipa.o to ipa_obj.
6823 * linux-s390-low.c (HWCAP_S390_GS): New define.
6824 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6826 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6827 (s390_arch_setup): Check for guarded-storage support and choose
6829 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6830 init_registers_s390x_gs_linux64.
6831 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6833 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6834 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6836 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6838 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6840 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6842 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6843 (thread_db_thread_handle): Declare.
6844 * linux-low.c (linux_target_ops): Initialize thread_handle.
6845 * server.c (handle_qxfer_threads_worker): Add support for
6847 * target.h (struct target_ops): Add new function pointer,
6849 (target_thread_handle): Define.
6850 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6852 (thread_db_thread_handle): New function.
6854 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6856 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6857 * linux-low.h (thread_db_notice_clone): Declare.
6858 * thread-db.c (thread_db_notice_clone): New function.
6860 2017-09-21 Pedro Alves <palves@redhat.com>
6862 * server.c (gdb_read_memory, handle_status, process_serial_event)
6863 (handle_serial_event, handle_target_event): Adjust to
6864 set_desired_thread prototype change.
6865 * target.c (set_desired_thread): Remove 'use_general' parameter
6867 * target.h (set_desired_thread): Remove 'use_general' parameter.
6869 2017-09-20 Tom Tromey <tom@tromey.com>
6871 * target.c (target_terminal::terminal_state): Define.
6872 (target_terminal::init): Rename from target_terminal_init.
6873 (target_terminal::inferior): Rename from
6874 target_terminal_inferior.
6875 (target_terminal::ours): Rename from target_terminal_ours.
6876 (target_terminal::ours_for_output, target_terminal::info): New.
6878 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6880 * server.c (accumulate_file_name_length): Remove.
6881 (emit_dll_description): Adjust to std::string change.
6882 (handle_qxfer_libraries): Use std::string to hold document.
6884 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6886 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6887 return type of xml_escape_text.
6888 * server.c (emit_dll_description): Likewise.
6890 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6892 * server.c (captured_main): Accept argument for --selftest.
6893 Update run_tests call.
6894 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6895 when registering selftests.
6897 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6899 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6900 instead of "VEC" for "target_desc.reg_defs".
6901 (regcache_cpy): Likewise.
6902 (registers_to_string): Likewise.
6903 (registers_from_string): Likewise.
6904 (find_regno): Likewise.
6905 (supply_regblock): Likewise.
6906 (regcache_raw_read_unsigned): Likewise.
6907 * tdesc.c (init_target_desc): Likewise.
6908 (tdesc_create_reg): Likewise.
6909 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6910 (struct target_desc) <reg_defs>: Convert to "std::vector".
6911 (target_desc): Do not initialize "reg_defs".
6912 (~target_desc): Update code to use "std::vector" instead of "VEC"
6913 for "target_desc.reg_defs".
6914 (operator==): Likewise.
6916 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6918 * inferiors.h (thread_to_gdb_id): Remove.
6919 * inferiors.c (thread_to_gdb_id): Remove.
6920 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6921 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6922 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6924 * nto-low.c (nto_fetch_registers, nto_store_registers,
6925 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6927 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6929 * inferiors.h (gdb_id_to_thread_id): Remove.
6930 * inferiors.c (gdb_id_to_thread_id): Remove.
6931 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6932 removal. Move pid declaration closer to where it's used.
6934 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6936 * server.c (handle_detach): New function.
6937 (process_serial_event): Move code out, call handle_detach.
6939 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6941 * server.c (require_running): Rename to ...
6942 (require_running_or_return): ... this ...
6943 (require_running_or_break): ... and this.
6944 (handle_query, process_serial_event): Adjust.
6946 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6948 * linux-low.c (linux_set_resume_request): Remove unused
6951 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6953 * server.c (first_thread_of): Remove.
6954 (process_serial_event): Replace usage of first_thread_of with
6955 find_any_thread_of_pid.
6956 * tracepoint.c (same_process_p): Remove.
6957 (gdb_agent_about_to_close): Replace usage of same_process_p with
6958 find_any_thread_of_pid.
6959 * linux-x86-low.c (same_process_callback): Remove.
6960 (x86_arch_setup_process_callback): Replace usage of
6961 same_process_callback with find_any_thread_of_pid.
6962 * thread-db.c (any_thread_of): Remove.
6963 (switch_to_process): Replace usage of any_thread_of with
6964 find_any_thread_of_pid.
6965 * inferiors.c (thread_pid_matches_callback): Remove.
6966 (find_thread_process): Adjust to use find_any_thread_of_pid.
6968 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6970 * regcache.c (get_thread_regcache): Guard calls to "memset"
6973 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6975 * linux-low.c (handle_extended_wait): Use
6976 "allocate_target_description" instead of "XNEW".
6977 * linux-x86-low.c (initialize_low_arch): Likewise.
6979 2017-09-05 Yao Qi <yao.qi@linaro.org>
6981 * configure.srv (srv_i386_regobj): Remove.
6982 (srv_amd64_regobj): Remove.
6983 (srv_regobj): Set it to "" for x86 non-linux targets.
6984 * linux-x86-tdesc.c (i386_linux_read_description):
6985 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6986 (init_registers_i386): Remove the declaration.
6987 (tdesc_i386): Remove the declaration.
6988 (lynx_i386_arch_setup): Call i386_create_target_description.
6989 * nto-x86-low.c: Likewise.
6990 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6991 [!__x86_64__]: include arch/i386.h.
6992 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6994 2017-09-05 Yao Qi <yao.qi@linaro.org>
6996 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6997 i386/amd64-XXX-linux from it.
6999 2017-09-05 Yao Qi <yao.qi@linaro.org>
7001 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7003 (ipa_amd64_linux_regobj): Remove.
7004 (ipa_x32_linux_regobj): Remove.
7006 2017-09-05 Yao Qi <yao.qi@linaro.org>
7008 * Makefile.in (arch-amd64.o): New rule.
7009 * configure.srv: Append arch-amd64.o.
7010 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7011 (get_ipa_tdesc): Call amd64_linux_read_description.
7012 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7013 and init_registers_amd64_XXX.
7014 * linux-x86-low.c (x86_linux_read_description): Call
7015 amd64_linux_read_description.
7016 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7017 (initialize_low_arch): Don't call init_registers_x32_XXX and
7018 init_registers_amd64_XXX.
7019 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7020 and tdesc_amd64_XXX.
7021 [__x86_64__] (amd64_tdesc_test): New function.
7022 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7023 and init_registers_amd64_XXX.
7024 * linux-x86-tdesc.c: Include arch/amd64.h.
7025 (xcr0_to_tdesc_idx): New function.
7026 (i386_linux_read_description): New function.
7027 (amd64_get_ipa_tdesc_idx): New function.
7028 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7029 (amd64_get_ipa_tdesc): Declare.
7031 2017-09-05 Yao Qi <yao.qi@linaro.org>
7033 * configure.srv (srv_i386_linux_xmlfiles): Remove
7034 i386/i386-XXX-linux.xml from it.
7036 2017-09-05 Yao Qi <yao.qi@linaro.org>
7038 * configure.srv: Set srv_i386_linux_regobj empty if $development
7040 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7041 initialize_low_tdesc.
7042 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7043 with #if initialize_low_tdesc.
7044 * linux-x86-tdesc-selftest.c: New file.
7045 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7047 2017-09-05 Yao Qi <yao.qi@linaro.org>
7049 * Makefile.in (arch-i386.o): New rule.
7050 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7051 (x86_64-*-linux*): Likewise.
7052 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7053 include arch/i386.h.
7054 (i386_linux_read_description): Remove code and call
7055 i386_create_target_description.
7056 * tdesc.c (allocate_target_description): New function.
7057 * tdesc.h (set_tdesc_architecture): Remove declaration.
7058 (set_tdesc_osabi): Likewise.
7060 2017-09-05 Yao Qi <yao.qi@linaro.org>
7062 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7063 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7064 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7066 * server.c (get_features_xml): Call tdesc_get_features_xml.
7067 * tdesc.c (set_tdesc_architecture): New function.
7068 (set_tdesc_osabi): New function.
7069 (tdesc_get_features_xml): New function.
7070 (tdesc_create_feature): Add an argument.
7071 * tdesc.h (struct target_desc) <features>: New field.
7072 <arch, osabi>: New field.
7073 (~target_desc): xfree features, arch, and osabi.
7074 (target_desc::oerator==): Don't compare .xmltarget.
7075 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7076 (set_tdesc_osabi): Likewise.
7077 (tdesc_get_features_xml): Likewise.
7079 2017-09-05 Yao Qi <yao.qi@linaro.org>
7081 * linux-x86-tdesc.c: Include selftest.h.
7082 (i386_tdesc_test): New function.
7083 (initialize_low_tdesc): Call selftests::register_test.
7084 * tdesc.h: Include regdef.h.
7085 (target_desc): Override operator == and !=.
7087 2017-09-05 Yao Qi <yao.qi@linaro.org>
7089 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7090 (ipa_obj): Likewise.
7091 * linux-i386-ipa.c: Include common/x86-xstate.h
7092 (get_ipa_tdesc): Call i386_linux_read_description.
7093 (initialize_low_tracepoint): Don't call init_registers_XXX
7094 functions, call initialize_low_tdesc instead.
7095 * linux-x86-low.c (x86_linux_read_description): Call
7096 i386_linux_read_description.
7097 (initialize_low_arch): Don't call init_registers_i386_XXX
7098 functions, call initialize_low_tdesc.
7099 * linux-x86-tdesc.c: New file.
7100 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7101 (i386_get_ipa_tdesc_idx): Declare.
7102 (i386_get_ipa_tdesc): Declare.
7103 (initialize_low_tdesc): Declare.
7105 2017-09-05 Yao Qi <yao.qi@linaro.org>
7107 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7110 2017-09-05 Yao Qi <yao.qi@linaro.org>
7112 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7113 * regcache.c (get_thread_regcache): Use VEC_length.
7114 (init_register_cache): Likewise.
7115 (regcache_cpy): Likewise.
7116 (registers_to_string): Iterate reg_defs via VEC_iterate.
7117 (find_regno): Likewise.
7118 (find_register_by_number): Use VEC_index.
7119 (register_size): Call find_register_by_number.
7120 (register_data): Call find_register_by_number.
7121 (supply_regblock): Use VEC_length.
7122 (regcache_raw_read_unsigned): Likewise.
7123 * tdesc.c (init_target_desc): Iterate reg_defs via
7125 (default_description): Update initializer.
7126 (copy_target_description): Don't update field num_registers.
7127 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7128 <num_registers>: Remove.
7130 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7132 * Makefile.in (.SECONDARY): Define target.
7134 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7136 * linux-low.c (linux_wait_1): Adjust.
7137 * server.c (queue_stop_reply_callback): Adjust.
7139 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7141 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7142 QEnvironmentUnset and QEnvironmentReset packets.
7143 (handle_query): Inform remote that QEnvironmentHexEncoded,
7144 QEnvironmentUnset and QEnvironmentReset are supported.
7146 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7148 * inferiors.h (inferior_target_data): Rename to ...
7149 (thread_target_data): ... this.
7150 (inferior_regcache_data): Rename to ...
7151 (thread_regcache_data): ... this.
7152 (set_inferior_regcache_data): Rename to ...
7153 (set_thread_regcache_data): ... this.
7154 * inferiors.c (inferior_target_data): Rename to ...
7155 (thread_target_data): ... this.
7156 (inferior_regcache_data): Rename to ...
7157 (thread_regcache_data): ... this.
7158 (set_inferior_regcache_data): Rename to ...
7159 (set_thread_regcache_data): ... this.
7160 (free_one_thread): Update.
7161 * linux-low.h (get_thread_lwp): Update.
7162 * regcache.c (get_thread_regcache): Update.
7163 (regcache_invalidate_thread): Update.
7164 (free_register_cache_thread): Update.
7165 * win32-i386-low.c (update_debug_registers_callback): Update.
7166 (win32_get_current_dr): Update.
7167 * win32-low.c (thread_rec): Update.
7168 (delete_thread_info): Update.
7169 (continue_one_thread): Update.
7170 (suspend_one_thread): Update.
7172 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7174 * inferiors.c (set_inferior_target_data): Remove.
7175 * inferiors.h (set_inferior_target_data): Remove.
7177 2017-08-18 Yao Qi <yao.qi@linaro.org>
7179 * Makefile.in (OBS): Add selftest.o.
7180 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7181 * configure, config.in: Re-generated.
7182 * server.c: Include common/sefltest.h.
7183 (captured_main): Handle option --selftest.
7185 2017-08-09 Yao Qi <yao.qi@linaro.org>
7187 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7188 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7189 i386-avx-mpx.o and i386-mmx.o.
7190 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7191 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7192 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7193 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7194 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7195 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7196 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7197 i386/amd64-avx-mpx.xml.
7199 2017-08-09 Yao Qi <yao.qi@linaro.org>
7201 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7202 and x32-avx-avx512.o.
7203 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7204 i386/x32-avx-avx512.xml.
7206 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7208 * tracepoint.h (enum class fast_tpoint_collect_result): New
7210 (fast_tracepoint_collecting): Change return type to
7211 fast_tpoint_collect_result.
7212 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7213 * linux-low.h: Include tracepoint.h.
7214 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7215 fast_tpoint_collect_result.
7216 * linux-low.c (handle_tracepoints): Adjust.
7217 (linux_fast_tracepoint_collecting): Change return type to
7218 fast_tpoint_collect_result.
7219 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7220 linux_wait_1, stuck_in_jump_pad_callback,
7221 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7222 proceed_one_lwp): Adjust to type change.
7224 2017-07-10 Yao Qi <yao.qi@linaro.org>
7226 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7228 2017-06-29 Yao Qi <yao.qi@linaro.org>
7230 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7232 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7234 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7236 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7238 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7240 * linux-low.c (linux_create_inferior): Adjust code to access the
7241 environment information via 'gdb_environ' class.
7242 * lynx-low.c (lynx_create_inferior): Likewise.
7243 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7244 (get_environ): Return a pointer to 'our_environ'.
7245 (captured_main): Initialize 'our_environ'.
7246 * server.h (get_environ): Adjust prototype.
7247 * spu-low.c (spu_create_inferior): Adjust code to access the
7248 environment information via 'gdb_environ' class.
7250 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7252 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7253 usage of "register" keyword.
7255 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7257 * configure: Re-generate.
7259 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7261 * configure: Re-generate.
7263 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7265 * Makefile.in (COMPILE.pre): Add "-x c++".
7267 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7269 * fork-child.c: Conditionally include <signal.h>.
7271 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7273 * server.c (handle_general_set): Handle new packet
7274 "QStartupWithShell".
7275 (handle_query): Add "QStartupWithShell" to the list of supported
7277 (gdbserver_usage): Add help text explaining the
7278 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7280 (captured_main): Recognize and act upon the presence of the new
7283 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7284 Pedro Alves <palves@redhat.com>
7286 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7287 * configure: Regenerate.
7288 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7290 (i[34567]86-*-lynxos*): Likewise.
7291 (spu*-*-*): Likewise.
7292 * fork-child.c: New file.
7293 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7295 (linux_ptrace_fun): New function.
7296 (linux_create_inferior): Adjust function prototype to reflect
7297 change on "target.h". Adjust function code to use
7299 (linux_request_interrupt): Delete "signal_pid".
7300 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7301 (lynx_ptrace_fun): New function.
7302 (lynx_create_inferior): Adjust function prototype to reflect
7303 change on "target.h". Adjust function code to use
7305 * nto-low.c (nto_create_inferior): Adjust function prototype and
7306 code to reflect change on "target.h". Update comments.
7307 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7308 "common-terminal.h" and "environ.h".
7309 (terminal_fd): Moved to fork-child.c.
7310 (old_foreground_pgrp): Likewise.
7311 (restore_old_foreground_pgrp): Likewise.
7312 (last_status): Make it global.
7313 (last_ptid): Likewise.
7314 (our_environ): New variable.
7315 (startup_with_shell): Likewise.
7316 (program_name): Likewise.
7317 (program_argv): Rename to...
7318 (program_args): ...this.
7319 (wrapper_argv): New variable.
7320 (start_inferior): Delete function.
7321 (get_exec_wrapper): New function.
7322 (get_exec_file): Likewise.
7323 (get_environ): Likewise.
7324 (prefork_hook): Likewise.
7325 (post_fork_inferior): Likewise.
7326 (postfork_hook): Likewise.
7327 (postfork_child_hook): Likewise.
7328 (handle_v_run): Update code to deal with arguments coming from the
7329 remote host. Update calls from "start_inferior" to
7331 (captured_main): Likewise. Initialize environment variable. Call
7333 * server.h (post_fork_inferior): New prototype.
7334 (get_environ): Likewise.
7335 (last_status): Declare.
7336 (last_ptid): Likewise.
7337 (signal_pid): Likewise.
7338 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7339 (spu_ptrace_fun): New function.
7340 (spu_create_inferior): Adjust function prototype to reflect change
7341 on "target.h". Adjust function code to use "fork_inferior".
7342 * target.c (target_terminal_init): New function.
7343 (target_terminal_inferior): Likewise.
7344 (target_terminal_ours): Likewise.
7345 * target.h: Include <vector>.
7346 (struct target_ops) <create_inferior>: Update prototype.
7347 (create_inferior): Update macro.
7348 * utils.c (gdb_flush_out_err): New function.
7349 * win32-low.c (win32_create_inferior): Adjust function prototype
7350 and code to reflect change on "target.h".
7352 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7354 * inferiors.c (switch_to_thread): New function.
7356 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7358 * Makefile.in (SFILE): Add "common/job-control.c".
7359 (OBS): Add "job-control.o".
7361 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7363 * Makefile: Remove "@host_makefile_frag@".
7365 2017-05-05 Pedro Alves <palves@redhat.com>
7367 * configure: Regenerate.
7369 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7371 * configure: Regenerate.
7373 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7375 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7376 software_single_step change of return type to
7377 std::vector<CORE_ADDR>.
7378 * linux-low.c (install_software_single_step_breakpoints):
7380 * linux-low.h (install_software_single_step_breakpoints):
7383 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7385 * remote-utils.c: Include "gdb_termios.h" instead of
7387 * terminal.h: Delete file.
7389 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7391 * server.c: Include <vector>.
7392 <program_argv, wrapper_argv>: Convert to std::vector.
7393 (start_inferior): Rewrite function to use C++.
7394 (handle_v_run): Likewise. Update code that calculates the argv
7395 based on the vRun packet; use C++.
7396 (captured_main): Likewise.
7398 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7400 * server.c (handle_v_cont): Initialize thread_resume::thread
7403 2017-04-05 Pedro Alves <palves@redhat.com>
7405 * configure: Regenerate.
7407 2017-04-05 Pedro Alves <palves@redhat.com>
7409 * gdbreplay.c (sync_error): Constify.
7410 * linux-x86-low.c (push_opcode): Constify.
7412 2017-04-05 Pedro Alves <palves@redhat.com>
7414 * win32-low.c (get_child_debug_event)
7415 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7416 Report TARGET_WAITKIND_SPURIOUS instead.
7418 2017-04-05 Pedro Alves <palves@redhat.com>
7420 * remote-utils.c (remote_prepare, remote_open): Constify.
7421 * remote-utils.h (remote_prepare, remote_open): Constify.
7422 * server.c (captured_main): Constify 'port' handling.
7424 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7426 * Makefile.in (clean): Clear .deps.
7428 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7430 * .gitignore: Remove generated files, replace with wildcard.
7431 * (clean): Replace removal of generated files with wildcard.
7432 (version.c): Replace with...
7433 (version-generated.c): ...this.
7434 (xml-builtin.c): Replace with...
7435 (xml-builtin-generated.c): ...this.
7436 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7437 (%.c: *regformats*): Replace with...
7438 (%-generated.c: *regformats*): ...this.
7440 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7442 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7443 (xtensa_fill_gregset): Call collect_register_by_name for
7445 (xtensa_store_gregset): Call supply_register_by_name for
7448 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7450 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7451 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7452 (xtensa_store_gregset): Call supply_register for all registers in
7453 a0_regnum..a0_regnum + C0_NREGS range.
7455 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7457 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7458 (ax-ipa.o: ax.c): Remove.
7459 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7460 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7461 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7462 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7463 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7465 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7467 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7468 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7469 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7470 (errors-ipa.o: ../common/errors.c): Remove.
7471 (format-ipa.o: ../common/format.c): Remove.
7472 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7474 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7476 * Makefile.in (%-ipa.o: %.c): New rule.
7477 (tracepoint-ipa.o: tracepoint.c): Remove.
7478 (utils-ipa.o: utils.c): Remove.
7479 (remote-utils-ipa.o: remote-utils.c): Remove.
7480 (regcache-ipa.o: regcache.c): Remove.
7481 (i386-linux-ipa.o: i386-linux.c): Remove.
7482 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7483 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7484 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7485 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7486 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7487 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7488 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7489 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7490 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7491 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7492 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7493 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7494 (aarch64-ipa.o: aarch64.c): Remove.
7495 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7496 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7497 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7498 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7499 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7500 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7501 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7502 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7503 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7504 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7505 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7506 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7507 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7508 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7509 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7510 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7511 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7512 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7513 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7514 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7515 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7516 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7517 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7518 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7519 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7520 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7521 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7522 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7523 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7524 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7525 (tdesc-ipa.o: tdesc.c): Remove.
7526 (x32-linux-ipa.o: x32-linux.c): Remove.
7527 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7528 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7530 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7532 * Makefile.in (%.o: ../arch/%.c): New rule.
7533 (arm.o: ../arch/arm.c): Remove.
7534 (arm-linux.o: ../arch/arm-linux.c): Remove.
7535 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7536 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7538 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7540 * Makefile.in (%.o: ../nat/%.c): New rule.
7541 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7542 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7543 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7544 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7545 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7546 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7547 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7548 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7549 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7550 (linux-personality.o: ../nat/linux-personality.c): Remove.
7551 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7552 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7553 (x86-linux.o: ../nat/x86-linux.c): Remove.
7554 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7555 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7557 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7559 * Makefile.in (%.o: ../common/%.c): New rule.
7560 (signals.o: ../common/signals.c): Remove.
7561 (print-utils.o: ../common/print-utils.c): Remove.
7562 (rsp-low.o: ../common/rsp-low.c): Remove.
7563 (common-utils.o: ../common/common-utils.c): Remove.
7564 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7565 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7566 (vec.o: ../common/vec.c): Remove.
7567 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7568 (xml-utils.o: ../common/xml-utils.c): Remove.
7569 (ptid.o: ../common/ptid.c): Remove.
7570 (buffer.o: ../common/buffer.c): Remove.
7571 (format.o: ../common/format.c): Remove.
7572 (filestuff.o: ../common/filestuff.c): Remove.
7573 (agent.o: ../common/agent.c): Remove.
7574 (errors.o: ../common/errors.c): Remove.
7575 (environ.o: ../common/environ.c): Remove.
7576 (common-debug.o: ../common/common-debug.c): Remove.
7577 (cleanups.o: ../common/cleanups.c): Remove.
7578 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7579 (fileio.o: ../common/fileio.c): Remove.
7580 (common-regcache.o: ../common/common-regcache.c): Remove.
7581 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7582 (new-op.o: ../common/new-op.c): Remove.
7583 (btrace-common.o: ../common/btrace-common.c): Remove.
7585 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7587 * Makefile.in (%.o: ../target/%.c): New rule.
7588 (waitstatus.o: ../target/waitstatus.c): Remove.
7590 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7593 (%.c: ../regformats/%.dat,
7594 (%.c: ../regformats/arm/%.dat,
7595 (%.c: ../regformats/i386/%.dat,
7596 (%.c: ../regformats/rs6000/%.dat): New rules.
7597 (aarch64.c): Remove.
7598 (reg-arm.c): Remove.
7599 (arm-with-iwmmxt.c): Remove.
7600 (arm-with-vfpv2.c): Remove.
7601 (arm-with-vfpv3.c): Remove.
7602 (arm-with-neon.c): Remove.
7603 (reg-bfin.c): Remove.
7604 (reg-cris.c): Remove.
7605 (reg-crisv32.c): Remove.
7607 (i386-linux.c): Remove.
7608 (i386-avx.c): Remove.
7609 (i386-avx-linux.c): Remove.
7610 (i386-avx-avx512.c): Remove.
7611 (i386-avx-avx512-linux.c): Remove.
7612 (i386-mpx.c): Remove.
7613 (i386-mpx-linux.c): Remove.
7614 (i386-avx-mpx-avx512-pku.c): Remove.
7615 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7616 (i386-avx-mpx.c): Remove.
7617 (i386-avx-mpx-linux.c): Remove.
7618 (i386-mmx.c): Remove.
7619 (i386-mmx-linux.c): Remove.
7620 (reg-ia64.c): Remove.
7621 (reg-m32r.c): Remove.
7622 (reg-m68k.c): Remove.
7624 (mips-linux.c): Remove.
7625 (mips-dsp-linux.c): Remove.
7626 (mips64-linux.c): Remove.
7627 (mips64-dsp-linux.c): Remove.
7628 (nios2-linux.c): Remove.
7629 (powerpc-32.c): Remove.
7630 (powerpc-32l.c): Remove.
7631 (powerpc-altivec32l.c): Remove.
7632 (powerpc-cell32l.c): Remove.
7633 (powerpc-vsx32l.c): Remove.
7634 (powerpc-isa205-32l.c): Remove.
7635 (powerpc-isa205-altivec32l.c): Remove.
7636 (powerpc-isa205-vsx32l.c): Remove.
7637 (powerpc-e500l.c): Remove.
7638 (powerpc-64l.c): Remove.
7639 (powerpc-altivec64l.c): Remove.
7640 (powerpc-cell64l.c): Remove.
7641 (powerpc-vsx64l.c): Remove.
7642 (powerpc-isa205-64l.c): Remove.
7643 (powerpc-isa205-altivec64l.c): Remove.
7644 (powerpc-isa205-vsx64l.c): Remove.
7645 (s390-linux32.c): Remove.
7646 (s390-linux32v1.c): Remove.
7647 (s390-linux32v2.c): Remove.
7648 (s390-linux64.c): Remove.
7649 (s390-linux64v1.c): Remove.
7650 (s390-linux64v2.c): Remove.
7651 (s390-te-linux64.c): Remove.
7652 (s390-vx-linux64.c): Remove.
7653 (s390-tevx-linux64.c): Remove.
7654 (s390x-linux64.c): Remove.
7655 (s390x-linux64v1.c): Remove.
7656 (s390x-linux64v2.c): Remove.
7657 (s390x-te-linux64.c): Remove.
7658 (s390x-vx-linux64.c): Remove.
7659 (s390x-tevx-linux64.c): Remove.
7660 (tic6x-c64xp-linux.c): Remove.
7661 (tic6x-c64x-linux.c): Remove.
7662 (tic6x-c62x-linux.c): Remove.
7664 (reg-sparc64.c): Remove.
7665 (reg-spu.c): Remove.
7667 (amd64-linux.c): Remove.
7668 (amd64-avx.c): Remove.
7669 (amd64-avx-linux.c): Remove.
7670 (amd64-avx-avx512.c): Remove.
7671 (amd64-avx-avx512-linux.c): Remove.
7672 (amd64-mpx.c): Remove.
7673 (amd64-mpx-linux.c): Remove.
7674 (amd64-avx-mpx-avx512-pku.c): Remove.
7675 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7676 (amd64-avx-mpx.c): Remove.
7677 (amd64-avx-mpx-linux.c): Remove.
7679 (x32-linux.c): Remove.
7680 (x32-avx.c): Remove.
7681 (x32-avx-linux.c): Remove.
7682 (x32-avx-avx512.c): Remove.
7683 (x32-avx-avx512-linux.c): Remove.
7684 (reg-xtensa.c): Remove.
7685 (reg-tilegx.c): Remove.
7686 (reg-tilegx32.c): Remove.
7688 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7690 * Makefile.in (SFILES): Add "common/environ.c".
7691 (OBJS): Add "common/environ.h".
7693 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7695 * configure.ac: Check if the fs_base and gs_base members of
7696 `struct user_regs_struct' exist.
7697 * config.in: Regenerated.
7698 * configure: Likewise.
7700 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7702 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7704 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7705 (get_next_pcs_syscall_next_pc): Likewise.
7707 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7709 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7710 * nto-x86-low.c: Likewise.
7712 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7714 * Makefile.in: Include disable-implicit-rules.mk.
7716 2016-11-23 Pedro Alves <palves@redhat.com>
7718 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7719 (debug_vprintf): Use std::chrono::steady_clock instead of
7720 gettimeofday. Use '.' instead of ':'.
7721 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7722 (get_timestamp): Use std::chrono::steady_clock instead of
7725 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7727 * Makefile.in: Fix whitespace formatting.
7729 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7731 * Makefile.in (SFILES, OBS): Flatten list and order
7734 2016-11-23 Pedro Alves <palves@redhat.com>
7736 * event-loop.c (handle_file_event): Use warning.
7737 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7738 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7741 2016-11-23 Pedro Alves <palves@redhat.com>
7743 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7745 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7746 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7747 debug_printf and debug_flush for debug output.
7748 * server.c (handle_general_set): Likewise.
7749 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7752 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7754 * Makefile.in (.c.o): Replace rule with ...
7755 (%.o: %.c): ... this one.
7757 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7759 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7760 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7762 * configure.ac: Remove checks for the make program.
7763 * configure: Re-generate.
7765 2016-10-28 Pedro Alves <palves@redhat.com>
7767 * Makefile.in (CXX_DIALECT): Get from configure.
7768 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7769 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7770 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7771 * config.in: Regenerate.
7772 * configure: Regenerate.
7774 2016-10-27 Yao Qi <yao.qi@linaro.org>
7776 * linux-low.c (linux_supports_range_stepping): Return true if
7777 can_software_single_step return true.
7779 2016-10-27 Yao Qi <yao.qi@linaro.org>
7781 * inferiors.c (find_inferior_in_random): New function.
7782 * inferiors.h (find_inferior_in_random): Declare.
7783 * linux-low.c (linux_wait_for_event_filtered): Call
7784 find_inferior_in_random instead of find_inferior.
7786 2016-10-27 Yao Qi <yao.qi@linaro.org>
7788 * linux-low.c (linux_wait_1): If single-step breakpoints are
7789 inserted, remove them.
7791 2016-10-26 Pedro Alves <palves@redhat.com>
7793 * linux-low.c (handle_extended_wait): Link parent/child fork
7795 (linux_wait_1): Unlink them.
7796 (linux_set_resume_request): Ignore resume requests for
7797 already-resumed and unhandled fork child threads.
7798 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7799 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7801 (handle_v_requests) <vCont>: Don't call require_running.
7802 * server.h (in_queued_stop_replies): New declaration.
7804 2016-10-24 Yao Qi <yao.qi@linaro.org>
7807 * linux-aarch64-low.c (append_insns): Cast the return value to
7810 2016-10-10 Yao Qi <yao.qi@linaro.org>
7812 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7814 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7816 * target.c (target_supports_multi_process): New function, moved
7818 * target.h (target_supports_multi_process): ... here. Remove
7821 2016-10-05 Tom Tromey <tom@tromey.com>
7824 * tracepoint.c (handle_tracepoint_bkpts): Check
7825 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7827 2016-10-05 Yao Qi <yao.qi@linaro.org>
7829 * configure.srv: Update the path of arm-*.xml files.
7831 2016-10-05 Terry Guo <terry.guo@arm.com>
7832 Yao Qi <yao.qi@linaro.org>
7834 * Makefile.in: Adjust the path of rules.
7835 * configure.srv: Update the path of xml files.
7836 * regformats/arm-with-iwmmxt.dat: Regenerated.
7837 * regformats/arm-with-neon.dat: Likewise.
7838 * regformats/arm-with-vfpv2.dat: Likewise.
7839 * regformats/arm-with-vfpv3.dat Likewise.
7841 2016-09-30 Yao Qi <yao.qi@linaro.org>
7844 * target.c (target_stop_and_wait): Don't call
7845 target_continue_no_signal, use resume_stop instead.
7847 2016-09-26 Yao Qi <yao.qi@linaro.org>
7849 * linux-low.c (linux_wait_1): Call debug_exit.
7851 2016-09-23 Pedro Alves <palves@redhat.com>
7853 * Makefile.in (SFILES): Add common/new-op.c.
7854 (OBS): Add common/new-op.o.
7855 (new-op.o): New rule.
7857 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7859 * .gitinore: Ignore more files.
7861 2016-09-21 Yao Qi <yao.qi@linaro.org>
7863 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7866 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7868 * server.c (start_inferior): Call target_mourn_inferior instead of
7869 mourn_inferior; pass ptid_t argument to it.
7871 (handle_target_event): Likewise.
7872 * target.c (target_mourn_inferior): New function.
7873 * target.h (mourn_inferior): Delete macro.
7875 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7877 * linux-low.c (lwp_is_stepping): New function.
7879 2016-09-06 Carl Love <cel@us.ibm.com>
7881 * server.c (start_inferior): Fixed comment, requested comment change
7882 didn't get updated correctly. Removed reference to ptrace () call as
7883 it is only true on Linux systems.
7885 2016-09-06 Carl Love <cel@us.ibm.com>
7887 * server.c (start_inferior): Do not call
7888 function target_post_create_inferior () if the
7889 inferior process has already exited.
7891 2016-09-05 Pedro Alves <palves@redhat.com>
7893 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7894 (COMPILE.pre, CC_LD): Use CXX directly.
7895 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7896 * acinclude.m4: Don't include build-with-cxx.m4.
7897 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7898 * configure: Regenerate.
7900 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7903 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7904 call writing data to own_buf.
7906 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7908 * target.c (mywait): Call target_wait instead of
7910 (target_wait): New function.
7912 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7914 * server.c (start_inferior): New variable 'ptid'. Replace calls
7915 to the_target->resume by target_continue{,_no_signal}, depending
7917 * target.c (target_stop_and_wait): Call target_continue_no_signal
7918 instead of the_target->resume.
7919 (target_continue): New function.
7921 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7923 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7925 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7928 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7930 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7931 * linux-arm-low.c (ps_get_thread_area): Likewise.
7932 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7933 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7934 * linux-mips-low.c (ps_get_thread_area): Likewise.
7935 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7936 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7937 * linux-x86-low.c (ps_get_thread_area): Likewise.
7938 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7940 2016-08-19 Pedro Alves <palves@redhat.com>
7942 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7944 2016-08-19 Pedro Alves <palves@redhat.com>
7946 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7947 comment. Use memcpy instead of casting through unsigned long.
7949 2016-08-19 Pedro Alves <palves@redhat.com>
7951 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7952 allocating around 0x80000000.
7954 2016-08-19 Pedro Alves <palves@redhat.com>
7957 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7958 (x32-avx512-linux-ipa.o): New rules.
7959 * configure.ac (x86_64-*-linux*): New x32 check.
7960 * configure.srv (ipa_x32_linux_regobj): New.
7961 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7962 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7964 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7966 * configure: Regenerate.
7968 2016-08-09 Pedro Alves <palves@redhat.com>
7971 * Makefile.in (OBS): Add signals-state-save-restore.o.
7972 (signals-state-save-restore.o): New rule.
7973 * config.in: Regenerate.
7974 * configure: Regenerate.
7975 * linux-low.c: Include "signals-state-save-restore.h".
7976 (linux_create_inferior): Call
7977 restore_original_signals_state.
7978 * server.c: Include "dispositions-save-restore.h".
7979 (captured_main): Call save_original_signals_state.
7981 2016-08-05 Pedro Alves <palves@redhat.com>
7983 * configure: Regenerate.
7985 2016-08-04 Yao Qi <yao.qi@linaro.org>
7987 * linux-low.c (regsets_fetch_inferior_registers): Check
7988 errno is ESRCH or not.
7990 2016-08-02 Yao Qi <yao.qi@linaro.org>
7992 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7993 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7994 (thread_db_load_search): Update.
7995 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7996 td_ta_set_event and td_ta_event_getmsg.
7998 2016-07-26 Pedro Alves <palves@redhat.com>
8001 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8002 of unsigned long for 64-bit registers and use uint32_t instead of
8003 unsigned int for 32-bit registers.
8005 2016-07-26 Pedro Alves <palves@redhat.com>
8007 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8010 2016-07-21 Tom Tromey <tom@tromey.com>
8012 * configure: Rebuild.
8014 2016-07-21 Yao Qi <yao.qi@linaro.org>
8016 * mem-break.c (find_gdb_breakpoint): Cast bp to
8017 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8019 2016-07-21 Yao Qi <yao.qi@linaro.org>
8021 * server.c (handle_v_requests): Support s and S actions
8022 if target_supports_software_single_step return true.
8024 2016-07-21 Yao Qi <yao.qi@linaro.org>
8026 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8027 is resume_step, call maybe_hw_step.
8028 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8030 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8032 (proceed_one_lwp): If resume request is resume_step, install
8033 reinsert breakpoints and call maybe_hw_step.
8035 2016-07-21 Yao Qi <yao.qi@linaro.org>
8037 * linux-low.c (proceed_one_lwp): Declare.
8038 (linux_resume_one_thread): Remove local variable 'step'.
8039 Lift code enqueue signal. Call proceed_one_lwp instead of
8040 linux_resume_one_lwp.
8042 2016-07-21 Yao Qi <yao.qi@linaro.org>
8044 * linux-low.c (linux_resume_one_thread): Call
8045 enqueue_pending_signal.
8047 2016-07-21 Yao Qi <yao.qi@linaro.org>
8049 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8050 * inferiors.c (do_restore_current_thread_cleanup): New function.
8051 (make_cleanup_restore_current_thread): Likewise.
8052 * linux-low.c (install_software_single_step_breakpoints): Call
8053 make_cleanup_restore_current_thread. Switch current_thread to
8056 2016-07-21 Yao Qi <yao.qi@linaro.org>
8058 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8059 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8060 (clone_one_breakpoint): Likewise.
8061 (delete_reinsert_breakpoints): Change parameter to thread.
8063 (has_reinsert_breakpoints): Likewise.
8064 (uninsert_reinsert_breakpoints): Likewise.
8065 (reinsert_reinsert_breakpoints): Likewise.
8066 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8067 (delete_reinsert_breakpoints): Likewise.
8068 (reinsert_reinsert_breakpoints): Likewise.
8069 (uninsert_reinsert_breakpoints): Likewise.
8070 (has_reinsert_breakpoints): Likewise.
8072 2016-07-21 Yao Qi <yao.qi@linaro.org>
8074 * inferiors.c (get_thread_process): Make parameter const.
8075 * inferiors.h (get_thread_process): Update declaration.
8076 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8077 Add new parameters child_thread and parent_thread. Callers
8079 * mem-break.h (clone_all_breakpoints): Update declaration.
8081 2016-07-21 Yao Qi <yao.qi@linaro.org>
8083 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8084 <command_list, handler>: Remove.
8085 (struct gdb_breakpoint): New.
8086 (struct other_breakpoint): New.
8087 (struct reinsert_breakpoint): New.
8088 (is_gdb_breakpoint): New function.
8089 (any_persistent_commands): Update command_list if
8090 is_gdb_breakpoint returns true.
8091 (set_breakpoint): Create breakpoints according to their types.
8092 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8093 (set_gdb_breakpoint_1): Likewise.
8094 (set_gdb_breakpoint): Likewise.
8095 (clear_breakpoint_conditions): Change parameter type to
8096 'struct gdb_breakpoint *'.
8097 (clear_breakpoint_commands): Likewise.
8098 (clear_breakpoint_conditions_and_commands): Likewise.
8099 (add_condition_to_breakpoint): Likewise.
8100 (add_breakpoint_condition): Likewise.
8101 (add_commands_to_breakpoint): Likewise.
8102 (check_breakpoints): Check other_breakpoint.
8103 (clone_one_breakpoint): Clone breakpopint according to its type.
8104 * mem-break.h (struct gdb_breakpoint): Declare.
8105 (set_gdb_breakpoint): Update declaration.
8106 (clear_breakpoint_conditions_and_commands): Likewise.
8107 (add_breakpoint_condition): Likewise.
8108 (add_breakpoint_commands): Likewise.
8109 * server.c (process_point_options): Change parameter type to
8110 'struct gdb_breakpoint *'.
8112 2016-07-21 Yao Qi <yao.qi@linaro.org>
8114 * mem-break.c (set_breakpoint_at): Rename it to ...
8115 (set_breakpoint_type_at): ... it.
8116 (set_breakpoint_at): Call set_breakpoint_type_at.
8117 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8118 * mem-break.h (set_breakpoint_at): Update comments.
8120 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8122 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8124 (nios2_store_gregset): Likewise.
8126 2016-07-01 Pedro Alves <palves@redhat.com>
8127 Antoine Tremblay <antoine.tremblay@ericsson.com>
8129 * linux-low.c: Change interface to take the target lwp_info
8130 pointer directly and return void. Handle detaching from a zombie
8132 (linux_detach_lwp_callback): New function.
8133 (linux_detach): Detach from the leader thread after detaching from
8136 2016-06-28 Yao Qi <yao.qi@linaro.org>
8138 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8139 for variable new_offset.
8140 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8141 (aarch64_ftrace_insn_reloc_cb): Likewise.
8142 (aarch64_ftrace_insn_reloc_tb): Likewise.
8143 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8144 PRIx64 instead of PRIx32.
8146 2016-06-28 Yao Qi <yao.qi@linaro.org>
8148 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8149 (the_low_target): Install arm_get_syscall_trapinfo.
8151 2016-06-28 Yao Qi <yao.qi@linaro.org>
8153 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8155 (the_low_target): Install aarch64_get_syscall_trapinfo.
8157 2016-06-28 Yao Qi <yao.qi@linaro.org>
8159 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8161 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8162 Remove parameter sysno.
8163 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8166 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8168 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8169 (s390_emit_ne_goto): Likewise.
8170 (s390_emit_lt_goto): Likewise.
8171 (s390_emit_le_goto): Likewise.
8172 (s390_emit_gt_goto): Likewise.
8173 (s390_emit_ge_goto): Likewise.
8174 (s390x_emit_eq_goto): Likewise.
8175 (s390x_emit_ne_goto): Likewise.
8176 (s390x_emit_lt_goto): Likewise.
8177 (s390x_emit_le_goto): Likewise.
8178 (s390x_emit_gt_goto): Likewise.
8179 (s390x_emit_ge_goto): Likewise.
8180 (s390_emit_ops_impl): Mark variable static.
8181 (s390x_emit_ops): Likewise.
8183 2016-06-17 Yao Qi <yao.qi@linaro.org>
8185 * linux-low.c (handle_extended_wait): Call
8186 uninsert_reinsert_breakpoints for the parent process. Remove
8187 reinsert breakpoints from the child process. Reinsert them to
8188 the parent process when vfork is done.
8189 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8190 (reinsert_reinsert_breakpoints): New function.
8191 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8192 (reinsert_reinsert_breakpoints): Declare.
8194 2016-06-17 Yao Qi <yao.qi@linaro.org>
8196 * linux-low.c (handle_extended_wait): If the parent is doing
8197 step-over, remove the reinsert breakpoints from the forked child.
8199 2016-06-17 Yao Qi <yao.qi@linaro.org>
8201 * linux-low.c (unsuspend_all_lwps): Declare.
8202 (linux_low_filter_event): If thread exited, call finish_step_over.
8203 If step-over is finished, unsuspend other threads.
8205 2016-06-17 Yao Qi <yao.qi@linaro.org>
8207 * linux-low.c (linux_resume_one_lwp_throw): Assert
8208 has_reinsert_breakpoints returns false.
8209 * mem-break.c (delete_disabled_breakpoints): Assert
8210 bp type isn't reinsert_breakpoint.
8212 2016-06-17 Yao Qi <yao.qi@linaro.org>
8214 * linux-low.c (maybe_hw_step): New function.
8215 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8216 (finish_step_over): Switch current_thread to lwp temporarily,
8217 and assert has_reinsert_breakpoints returns true.
8218 (proceed_one_lwp): Call maybe_hw_step.
8219 * mem-break.c (has_reinsert_breakpoints): New function.
8220 * mem-break.h (has_reinsert_breakpoints): Declare.
8222 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8224 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8226 2016-05-17 Yao Qi <yao.qi@linaro.org>
8228 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8229 instead of find_inferior.
8231 2016-05-05 Yao Qi <yao.qi@linaro.org>
8233 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8234 Initialize res to zero.
8236 2016-05-05 Yao Qi <yao.qi@linaro.org>
8238 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8241 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8243 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8244 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8245 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8247 2016-04-28 Par Olsson <par.olsson@windriver.com>
8248 Simon Marchi <simon.marchi@ericsson.com>
8250 * tracepoint.c (write_inferior_int8): New function.
8251 (cmd_qtenable_disable): Write enable flag using
8252 write_inferior_int8.
8254 2016-04-25 Yao Qi <yao.qi@linaro.org>
8256 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8257 (need_step_over_p): Return zero if the LWP has pending signals
8258 can be delivered on software single step target.
8260 2016-04-25 Yao Qi <yao.qi@linaro.org>
8262 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8263 return instead of error.
8265 2016-04-22 Yao Qi <yao.qi@linaro.org>
8267 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8270 2016-04-22 Yao Qi <yao.qi@linaro.org>
8272 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8273 signal when stepping over breakpoint with software single
8276 2016-04-21 Pedro Alves <palves@redhat.com>
8278 * linux-s390-low.c (s390_collect_ptrace_register)
8279 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8281 (s390_check_regset): Use void * instead of gdb_byte *.
8283 2016-04-20 Pedro Alves <palves@redhat.com>
8285 * configure: Renegerate.
8287 2016-04-20 Yao Qi <yao.qi@linaro.org>
8289 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8290 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8292 (arm_store_gregset): Likewise.
8294 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8296 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8297 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8298 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8299 (amd64-avx-mpx-linux.c): New rules.
8300 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8301 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8302 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8303 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8304 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8305 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8306 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8307 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8308 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8309 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8310 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8311 * linux-x86-low.c (x86_linux_read_description): Add case for
8312 X86_XSTATE_AVX_MPX_MASK.
8313 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8314 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8315 init_registers_i386_avx_mpx_linux.
8316 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8317 (initialize_low_tracepoint): Call
8318 init_registers_i386_avx_mpx_linux.
8319 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8320 (initialize_low_tracepoint): Call
8321 init_registers_amd64_avx_mpx_linux.
8322 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8323 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8324 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8327 2016-04-18 Pedro Alves <palves@redhat.com>
8329 * configure: Regenerate.
8331 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8333 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8334 (aarch64_emit_sub): Likewise.
8336 2016-04-12 Pedro Alves <palves@redhat.com>
8338 * utils.c (prepare_to_throw_exception): Delete.
8340 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8342 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8344 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8346 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8348 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8350 * linux-aarch64-ipa.c: Add <elf.h> include.
8351 * linux-ppc-ipa.c: Add <elf.h> include.
8352 * linux-s390-ipa.c: Add <elf.h> include.
8354 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8356 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8357 (get_raw_reg_ptr): Likewise.
8358 (get_trace_state_variable_value_ptr): Likewise.
8359 (set_trace_state_variable_value_ptr): Likewise.
8360 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8363 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8364 Marcin Kościelnicki <koriakin@0x04.net>
8367 * linux-ppc-low.c (emit_insns): New function.
8368 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8369 (ppc_emit_prologue): New function.
8370 (ppc_emit_epilogue): New function.
8371 (ppc_emit_add): New function.
8372 (ppc_emit_sub): New function.
8373 (ppc_emit_mul): New function.
8374 (ppc_emit_lsh): New function.
8375 (ppc_emit_rsh_signed): New function.
8376 (ppc_emit_rsh_unsigned): New function.
8377 (ppc_emit_ext): New function.
8378 (ppc_emit_zero_ext): New function.
8379 (ppc_emit_log_not): New function.
8380 (ppc_emit_bit_and): New function.
8381 (ppc_emit_bit_or): New function.
8382 (ppc_emit_bit_xor): New function.
8383 (ppc_emit_bit_not): New function.
8384 (ppc_emit_equal): New function.
8385 (ppc_emit_less_signed): New function.
8386 (ppc_emit_less_unsigned): New function.
8387 (ppc_emit_ref): New function.
8388 (ppc_emit_const): New function.
8389 (ppc_emit_reg): New function.
8390 (ppc_emit_pop): New function.
8391 (ppc_emit_stack_flush): New function.
8392 (ppc_emit_swap): New function.
8393 (ppc_emit_stack_adjust): New function.
8394 (ppc_emit_call): New function.
8395 (ppc_emit_int_call_1): New function.
8396 (ppc_emit_void_call_2): New function.
8397 (ppc_emit_if_goto): New function.
8398 (ppc_emit_goto): New function.
8399 (ppc_emit_eq_goto): New function.
8400 (ppc_emit_ne_goto): New function.
8401 (ppc_emit_lt_goto): New function.
8402 (ppc_emit_le_goto): New function.
8403 (ppc_emit_gt_goto): New function.
8404 (ppc_emit_ge_goto): New function.
8405 (ppc_write_goto_address): New function.
8406 (ppc_emit_ops_impl): New static variable.
8407 (ppc64v1_emit_prologue): New function.
8408 (ppc64v2_emit_prologue): New function.
8409 (ppc64_emit_epilogue): New function.
8410 (ppc64_emit_add): New function.
8411 (ppc64_emit_sub): New function.
8412 (ppc64_emit_mul): New function.
8413 (ppc64_emit_lsh): New function.
8414 (ppc64_emit_rsh_signed): New function.
8415 (ppc64_emit_rsh_unsigned): New function.
8416 (ppc64_emit_ext): New function.
8417 (ppc64_emit_zero_ext): New function.
8418 (ppc64_emit_log_not): New function.
8419 (ppc64_emit_bit_and): New function.
8420 (ppc64_emit_bit_or): New function.
8421 (ppc64_emit_bit_xor): New function.
8422 (ppc64_emit_bit_not): New function.
8423 (ppc64_emit_equal): New function.
8424 (ppc64_emit_less_signed): New function.
8425 (ppc64_emit_less_unsigned): New function.
8426 (ppc64_emit_ref): New function.
8427 (ppc64_emit_const): New function.
8428 (ppc64v1_emit_reg): New function.
8429 (ppc64v2_emit_reg): New function.
8430 (ppc64_emit_pop): New function.
8431 (ppc64_emit_stack_flush): New function.
8432 (ppc64_emit_swap): New function.
8433 (ppc64v1_emit_call): New function.
8434 (ppc64v2_emit_call): New function.
8435 (ppc64v1_emit_int_call_1): New function.
8436 (ppc64v2_emit_int_call_1): New function.
8437 (ppc64v1_emit_void_call_2): New function.
8438 (ppc64v2_emit_void_call_2): New function.
8439 (ppc64_emit_if_goto): New function.
8440 (ppc64_emit_eq_goto): New function.
8441 (ppc64_emit_ne_goto): New function.
8442 (ppc64_emit_lt_goto): New function.
8443 (ppc64_emit_le_goto): New function.
8444 (ppc64_emit_gt_goto): New function.
8445 (ppc64_emit_ge_goto): New function.
8446 (ppc64v1_emit_ops_impl): New static variable.
8447 (ppc64v2_emit_ops_impl): New static variable.
8448 (ppc_emit_ops): New function.
8449 (linux_low_target): Wire in ppc_emit_ops.
8451 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8452 Marcin Kościelnicki <koriakin@0x04.net>
8455 * Makefile.in: Add powerpc-*-ipa.o
8456 * configure.srv: Add ipa_obj for powerpc*-linux.
8457 * linux-ppc-ipa.c: New file.
8458 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8460 (PPC_FIELD): New macro.
8461 (PPC_SEXT): New macro.
8462 (PPC_OP6): New macro.
8463 (PPC_BO): New macro.
8464 (PPC_LI): New macro.
8465 (PPC_BD): New macro.
8466 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8467 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8468 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8469 (ppc_get_thread_area): New function.
8470 (is_elfv2_inferior): New function.
8471 (gen_ds_form): New function.
8472 (GEN_STD): New macro.
8473 (GEN_STDU): New macro.
8474 (GEN_LD): New macro.
8475 (GEN_LDU): New macro.
8476 (gen_d_form): New function.
8477 (GEN_ADDI): New macro.
8478 (GEN_ADDIS): New macro.
8479 (GEN_LI): New macro.
8480 (GEN_LIS): New macro.
8481 (GEN_ORI): New macro.
8482 (GEN_ORIS): New macro.
8483 (GEN_LWZ): New macro.
8484 (GEN_STW): New macro.
8485 (GEN_STWU): New macro.
8486 (gen_xfx_form): New function.
8487 (GEN_MFSPR): New macro.
8488 (GEN_MTSPR): New macro.
8489 (GEN_MFCR): New macro.
8490 (GEN_MTCR): New macro.
8491 (GEN_SYNC): New macro.
8492 (GEN_LWSYNC): New macro.
8493 (gen_x_form): New function.
8494 (GEN_OR): New macro.
8495 (GEN_MR): New macro.
8496 (GEN_LWARX): New macro.
8497 (GEN_STWCX): New macro.
8498 (GEN_CMPW): New macro.
8499 (gen_md_form): New function.
8500 (GEN_RLDICL): New macro.
8501 (GEN_RLDICR): New macro.
8502 (gen_i_form): New function.
8504 (GEN_BL): New macro.
8505 (gen_b_form): New function.
8506 (GEN_BNE): New macro.
8507 (GEN_LOAD): New macro.
8508 (GEN_STORE): New macro.
8509 (gen_limm): New function.
8510 (gen_atomic_xchg): New function.
8511 (gen_call): New function.
8512 (ppc_relocate_instruction): New function.
8513 (ppc_install_fast_tracepoint_jump_pad): New function.
8514 (ppc_get_min_fast_tracepoint_insn_len): New function.
8515 (ppc_get_ipa_tdesc_idx): New function.
8516 (the_low_target): Wire in the new functions.
8517 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8519 * linux-ppc-tdesc.h: New file.
8521 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8523 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8524 (alloc_jump_pad_buffer): New function.
8525 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8526 (alloc_jump_pad_buffer): New function.
8527 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8528 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8529 (alloc_jump_pad_buffer): New function.
8530 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8531 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8532 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8533 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8535 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8537 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8538 * linux-amd64-ipa.c: Likewise.
8539 * linux-i386-ipa.c: Likewise.
8540 * linux-s390-ipa.c: Likewise.
8541 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8542 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8543 set_trace_state_variable_value_ptr.
8544 (struct ipa_sym_addresses): Likewise.
8545 (symbol_list): Likewise.
8546 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8547 accessing gdb_collect directly.
8548 (gdb_collect_ptr_type): New typedef.
8549 (get_raw_reg_ptr_type): New typedef.
8550 (get_trace_state_variable_value_ptr_type): New typedef.
8551 (set_trace_state_variable_value_ptr_type): New typedef.
8552 (gdb_collect_ptr): New global.
8553 (get_raw_reg_ptr): New global.
8554 (get_trace_state_variable_value_ptr): New global.
8555 (set_trace_state_variable_value_ptr): New global.
8556 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8557 accessing get_raw_reg directly.
8558 (get_get_tsv_func_addr): Likewise for
8559 get_trace_state_variable_value_ptr.
8560 (get_set_tsv_func_addr): Likewise for
8561 set_trace_state_variable_value_ptr.
8562 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8564 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8566 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8568 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8570 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8572 (relocate_instruction): Remove own_buf.
8573 * server.c (own_buf): Make global.
8574 (handle_v_requests): Make global.
8575 * server.h (own_buf): New declaration.
8576 (handle_v_requests): New prototype.
8578 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8581 * linux-s390-low.c (add_insns): New function.
8582 (s390_emit_prologue): New function.
8583 (s390_emit_epilogue): New function.
8584 (s390_emit_add): New function.
8585 (s390_emit_sub): New function.
8586 (s390_emit_mul): New function.
8587 (s390_emit_lsh): New function.
8588 (s390_emit_rsh_signed): New function.
8589 (s390_emit_rsh_unsigned): New function.
8590 (s390_emit_ext): New function.
8591 (s390_emit_log_not): New function.
8592 (s390_emit_bit_and): New function.
8593 (s390_emit_bit_or): New function.
8594 (s390_emit_bit_xor): New function.
8595 (s390_emit_bit_not): New function.
8596 (s390_emit_equal): New function.
8597 (s390_emit_less_signed): New function.
8598 (s390_emit_less_unsigned): New function.
8599 (s390_emit_ref): New function.
8600 (s390_emit_if_goto): New function.
8601 (s390_emit_goto): New function.
8602 (s390_write_goto_address): New function.
8603 (s390_emit_litpool): New function.
8604 (s390_emit_const): New function.
8605 (s390_emit_call): New function.
8606 (s390_emit_reg): New function.
8607 (s390_emit_pop): New function.
8608 (s390_emit_stack_flush): New function.
8609 (s390_emit_zero_ext): New function.
8610 (s390_emit_swap): New function.
8611 (s390_emit_stack_adjust): New function.
8612 (s390_emit_set_r2): New function.
8613 (s390_emit_int_call_1): New function.
8614 (s390_emit_void_call_2): New function.
8615 (s390_emit_eq_goto): New function.
8616 (s390_emit_ne_goto): New function.
8617 (s390_emit_lt_goto): New function.
8618 (s390_emit_le_goto): New function.
8619 (s390_emit_gt_goto): New function.
8620 (s390_emit_ge_goto): New function.
8621 (s390x_emit_prologue): New function.
8622 (s390x_emit_epilogue): New function.
8623 (s390x_emit_add): New function.
8624 (s390x_emit_sub): New function.
8625 (s390x_emit_mul): New function.
8626 (s390x_emit_lsh): New function.
8627 (s390x_emit_rsh_signed): New function.
8628 (s390x_emit_rsh_unsigned): New function.
8629 (s390x_emit_ext): New function.
8630 (s390x_emit_log_not): New function.
8631 (s390x_emit_bit_and): New function.
8632 (s390x_emit_bit_or): New function.
8633 (s390x_emit_bit_xor): New function.
8634 (s390x_emit_bit_not): New function.
8635 (s390x_emit_equal): New function.
8636 (s390x_emit_less_signed): New function.
8637 (s390x_emit_less_unsigned): New function.
8638 (s390x_emit_ref): New function.
8639 (s390x_emit_if_goto): New function.
8640 (s390x_emit_const): New function.
8641 (s390x_emit_call): New function.
8642 (s390x_emit_reg): New function.
8643 (s390x_emit_pop): New function.
8644 (s390x_emit_stack_flush): New function.
8645 (s390x_emit_zero_ext): New function.
8646 (s390x_emit_swap): New function.
8647 (s390x_emit_stack_adjust): New function.
8648 (s390x_emit_int_call_1): New function.
8649 (s390x_emit_void_call_2): New function.
8650 (s390x_emit_eq_goto): New function.
8651 (s390x_emit_ne_goto): New function.
8652 (s390x_emit_lt_goto): New function.
8653 (s390x_emit_le_goto): New function.
8654 (s390x_emit_gt_goto): New function.
8655 (s390x_emit_ge_goto): New function.
8656 (s390_emit_ops): New function.
8657 (struct linux_target_ops): Fill in emit_ops hook.
8659 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8662 * Makefile.in: Add s390 IPA files.
8663 * configure.srv: Build IPA for s390.
8664 * linux-s390-ipa.c: New file.
8665 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8666 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8667 (tdesc_s390_linux32): Likewise.
8668 (init_registers_s390_linux32v1): Likewise.
8669 (tdesc_s390_linux32v1): Likewise.
8670 (init_registers_s390_linux32v2): Likewise.
8671 (tdesc_s390_linux32v2): Likewise.
8672 (init_registers_s390_linux64): Likewise.
8673 (tdesc_s390_linux64): Likewise.
8674 (init_registers_s390_linux64v1): Likewise.
8675 (tdesc_s390_linux64v1): Likewise.
8676 (init_registers_s390_linux64v2): Likewise.
8677 (tdesc_s390_linux64v2): Likewise.
8678 (init_registers_s390_te_linux64): Likewise.
8679 (tdesc_s390_te_linux64): Likewise.
8680 (init_registers_s390_vx_linux64): Likewise.
8681 (tdesc_s390_vx_linux64): Likewise.
8682 (init_registers_s390_tevx_linux64): Likewise.
8683 (tdesc_s390_tevx_linux64): Likewise.
8684 (init_registers_s390x_linux64): Likewise.
8685 (tdesc_s390x_linux64): Likewise.
8686 (init_registers_s390x_linux64v1): Likewise.
8687 (tdesc_s390x_linux64v1): Likewise.
8688 (init_registers_s390x_linux64v2): Likewise.
8689 (tdesc_s390x_linux64v2): Likewise.
8690 (init_registers_s390x_te_linux64): Likewise.
8691 (tdesc_s390x_te_linux64): Likewise.
8692 (init_registers_s390x_vx_linux64): Likewise.
8693 (tdesc_s390x_vx_linux64): Likewise.
8694 (init_registers_s390x_tevx_linux64): Likewise.
8695 (tdesc_s390x_tevx_linux64): Likewise.
8696 (have_hwcap_s390_vx): New static variable.
8697 (s390_arch_setup): Fill have_hwcap_s390_vx.
8698 (s390_get_thread_area): New function.
8699 (s390_ft_entry_gpr_esa): New const.
8700 (s390_ft_entry_gpr_zarch): New const.
8701 (s390_ft_entry_misc): New const.
8702 (s390_ft_entry_fr): New const.
8703 (s390_ft_entry_vr): New const.
8704 (s390_ft_main_31): New const.
8705 (s390_ft_main_64): New const.
8706 (s390_ft_exit_fr): New const.
8707 (s390_ft_exit_vr): New const.
8708 (s390_ft_exit_misc): New const.
8709 (s390_ft_exit_gpr_esa): New const.
8710 (s390_ft_exit_gpr_zarch): New const.
8711 (append_insns): New function.
8712 (s390_relocate_instruction): New function.
8713 (s390_install_fast_tracepoint_jump_pad): New function.
8714 (s390_get_min_fast_tracepoint_insn_len): New function.
8715 (s390_get_ipa_tdesc_idx): New function.
8716 (struct linux_target_ops): Wire in the above functions.
8717 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8718 * linux-s390-tdesc.h: New file.
8720 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8722 * linux-s390-low.c (s390_supports_tracepoints): New function.
8723 (struct linux_target_ops): Fill supports_tracepoints hook.
8725 2016-03-18 Yao Qi <yao.qi@linaro.org>
8727 * linux-low.c (lwp_signal_can_be_delivered): New function.
8728 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8730 2016-03-18 Yao Qi <yao.qi@linaro.org>
8732 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8733 0 if signal is enqueued. Remove 'signal' from one debugging
8734 message. Move one debugging message to some lines below.
8735 Remove code setting 'signal' to 0.
8737 2016-03-18 Yao Qi <yao.qi@linaro.org>
8739 * linux-low.c (linux_low_filter_event): Remove redundant
8740 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8742 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8744 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8745 (struct linux_target_ops): Wire in the above.
8747 2016-03-03 Yao Qi <yao.qi@linaro.org>
8749 * linux-low.c: Update comments to start_step_over.
8751 2016-03-03 Yao Qi <yao.qi@linaro.org>
8754 * linux-low.c (handle_extended_wait): Set child suspended
8755 if event_lwp->bp_reinsert isn't zero.
8757 2016-03-02 Yao Qi <yao.qi@linaro.org>
8759 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8760 enqueue_pending_signal.
8762 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8764 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8767 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8769 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8770 (s390_regmap_3264) [!__s390x__]: New global.
8771 (s390_collect_ptrace_register): Skip map entries containing -1.
8772 (s390_supply_ptrace_register): Ditto.
8773 (s390_fill_gprs_high): New function.
8774 (s390_store_gprs_high): New function.
8775 (s390_regsets): Add NT_S390_HIGH_GPRS.
8776 (s390_get_hwcap): Enable on 31-bit.
8777 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8778 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8779 Detect NT_S390_HIGH_GPRS.
8780 (s390_usrregs_info_3264): Enable on 31-bit.
8781 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8782 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8784 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8787 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8788 * configure.srv: Ditto.
8789 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8790 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8791 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8792 (init_registers_amd64_linux): Remove prototype.
8793 (tdesc_amd64_linux): Remove declaration.
8794 (get_ipa_tdesc): New function.
8795 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8796 initialize remaining tdescs.
8797 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8798 (init_registers_i386_linux): Remove prototype.
8799 (tdesc_i386_linux): Remove declaration.
8800 (get_ipa_tdesc): New function.
8801 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8802 initialize remaining tdescs.
8803 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8804 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8805 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8806 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8807 (x86_get_ipa_tdesc_idx): New function.
8808 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8809 * linux-x86-tdesc.h: New file.
8810 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8811 (target_get_ipa_tdesc_idx): New macro.
8812 * tracepoint.c (ipa_tdesc_idx): New macro.
8813 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8814 (symbol_list): Add ipa_tdesc_idx.
8815 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8816 (ipa_tdesc): Remove.
8817 (ipa_tdesc_idx): New variable.
8818 (get_context_regcache): Use get_ipa_tdesc.
8819 (gdb_collect): Ditto.
8821 * tracepoint.h (get_ipa_tdesc): New prototype.
8822 (ipa_tdesc): Remove.
8824 2016-02-24 Pedro Alves <palves@redhat.com>
8826 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8827 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8828 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8829 Factor out common code between the USE_SIGTRAP_SIGINFO and
8830 !USE_SIGTRAP_SIGINFO blocks.
8831 (linux_low_filter_event): Call save_stop_reason instead of
8832 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8834 (linux_wait_1): Update comments.
8836 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8838 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8839 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8840 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8841 ppc_insert_point, ppc_remove_point.
8843 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8845 * linux-s390-low.c (s390_supports_z_point_type): New function.
8846 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8848 2016-02-16 Yao Qi <yao.qi@linaro.org>
8850 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8851 PC. Get pc from regcache_read_pc.
8853 2016-02-12 Yao Qi <yao.qi@linaro.org>
8855 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8856 or linux_get_pc_32bit.
8857 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8859 2016-02-12 Yao Qi <yao.qi@linaro.org>
8861 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8862 arm_linux_get_next_pcs_fixup.
8864 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8866 * tracepoint.c (x_tracepoint_action_download): Change
8867 write_inferior_data_ptr to write_inferior_data_pointer.
8868 (cmd_qtstart): Likewise.
8869 (write_inferior_data_ptr): Remove.
8870 (download_agent_expr): Change write_inferior_data_ptr to
8871 write_inferior_data_pointer.
8872 (download_tracepoint_1): Likewise.
8873 (download_tracepoint): Likewise.
8874 (download_trace_state_variables): Likewise.
8876 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8877 Marcin Kościelnicki <koriakin@0x04.net>
8879 * tracepoint.c (struct tracepoint_action_ops): Remove.
8880 (struct tracepoint_action): Remove ops.
8881 (m_tracepoint_action_download, r_tracepoint_action_download)
8882 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8883 size and offset accordingly.
8884 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8885 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8886 (tracepoint_action_send, tracepoint_action_download): New functions.
8887 Helpers for trace action handlers.
8888 (add_tracepoint_action): Remove setup actions ops.
8889 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8891 2016-02-10 Yao Qi <yao.qi@linaro.org>
8893 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8895 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8897 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8899 * configure: Regenerate.
8901 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8903 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8904 void * to gdb_byte *.
8905 * linux-low.c (siginfo_fixup): Likewise.
8906 (linux_xfer_siginfo): Likewise.
8907 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8909 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8911 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8913 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8915 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8917 * linux-x86-low.c [__x86_64__]: Include
8918 "nat/amd64-linux-siginfo.h".
8919 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8920 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8921 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8922 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8923 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8924 (cpt_si_fd, si_timerid, si_overrun): Move from
8925 nat/amd64-linux-siginfo.c.
8926 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8928 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8930 * server.c (skip_to_semicolon): Remove.
8931 (process_point_options): Use strchrnul instead of
8934 2016-01-26 Yao Qi <yao.qi@linaro.org>
8936 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8937 * linux-low.c (install_software_single_step_breakpoints): Don't
8938 call regcache_read_pc.
8939 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8942 2016-01-26 Yao Qi <yao.qi@linaro.org>
8944 * linux-low.c (install_software_single_step_breakpoints): Call
8945 regcache_read_pc instead of get_pc.
8947 2016-01-26 Yao Qi <yao.qi@linaro.org>
8949 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8950 (unblock_async_io): Rename to ...
8951 (block_unblock_async_io): ... it. New function.
8952 (enable_async_io): Don't install SIGIO handler. Unblock it
8954 (disable_async_io): Don't ignore SIGIO. Block it instead.
8955 (initialize_async_io): Install SIGIO handler. Don't call
8958 2016-01-26 Yao Qi <yao.qi@linaro.org>
8960 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8961 first character is '\003', call *the_target->request_interrupt.
8963 2016-01-25 Yao Qi <yao.qi@linaro.org>
8965 * remote-utils.c (new_thread_notify): Remove.
8966 (dead_thread_notify): Likewise.
8967 * remote-utils.h (new_thread_notify): Remove declaration.
8968 (dead_thread_notify): Likewise.
8970 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8972 * gdb.trace/pending.exp: Fix expected message on continue.
8974 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8976 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8977 it works properly on big-endian machines where sizeof (CORE_ADDR)
8980 2016-01-21 Pedro Alves <palves@redhat.com>
8982 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8983 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8984 * configure: Regenerate.
8986 2016-01-21 Yao Qi <yao.qi@linaro.org>
8988 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8989 is_thumb and set it according to CPSR saved on the stack.
8990 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8991 arm_sigreturn_next_pc.
8993 2016-01-18 Yao Qi <yao.qi@linaro.org>
8995 * linux-low.c (linux_set_pc_64bit): New function.
8996 (linux_get_pc_64bit): New function.
8997 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8999 * linux-sparc-low.c (debug_threads): Remove declaration.
9000 (sparc_get_pc): Remove.
9001 (the_low_target): Use linux_get_pc_64bit instead of
9003 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9004 (the_low_target): Use linux_get_pc_64bit and
9007 2016-01-18 Yao Qi <yao.qi@linaro.org>
9009 * linux-arm-low.c (debug_threads): Remove declaration.
9010 (arm_get_pc, arm_set_pc): Remove.
9011 (the_low_target): Use linux_get_pc_32bit and
9013 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9014 (the_low_target): Use linux_get_pc_32bit and
9016 * linux-cris-low.c (debug_threads): Remove declaration.
9017 (cris_get_pc, cris_set_pc,): Remove.
9018 (the_low_target): Use linux_get_pc_32bit and
9020 * linux-crisv32-low.c (debug_threads): Remove declaration.
9021 (cris_get_pc, cris_set_pc): Remove.
9022 (the_low_target): Use linux_get_pc_32bit and
9024 * linux-low.c: Include inttypes.h.
9025 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9026 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9027 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9028 (the_low_target): Use linux_get_pc_32bit and
9030 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9031 (the_low_target): Use linux_get_pc_32bit and
9033 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9034 (the_low_target): Use linux_get_pc_32bit and
9036 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9037 (the_low_target): Use linux_get_pc_32bit and
9039 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9040 (the_low_target): Use linux_get_pc_32bit and
9043 2016-01-18 Gary Benson <gbenson@redhat.com>
9045 * configure.ac (AC_FUNC_FORK): New check.
9046 * config.in: Regenerate.
9047 * configure: Likewise.
9049 2016-01-14 Yao Qi <yao.qi@linaro.org>
9051 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9052 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9053 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9054 arm_get_next_pcs_ctor.
9056 2016-01-12 Josh Stone <jistone@redhat.com>
9057 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9059 * inferiors.h: Include "gdb_vecs.h".
9060 (struct process_info): Add syscalls_to_catch.
9061 * inferiors.c (remove_process): Free syscalls_to_catch.
9062 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9063 syscall_return stops.
9064 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9065 * server.c (handle_general_set): Handle QCatchSyscalls.
9066 (handle_query): Report support for QCatchSyscalls.
9067 * target.h (struct target_ops): Add supports_catch_syscall.
9068 (target_supports_catch_syscall): New macro.
9069 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9070 (struct lwp_info): Add syscall_state.
9071 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9072 Maintain syscall_state and syscalls_to_catch across exec.
9073 (get_syscall_trapinfo): New function, proxy to the_low_target.
9074 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9075 (linux_low_filter_event): Toggle syscall_state entry/return for
9076 syscall traps, and set it ignored for all others.
9077 (gdb_catching_syscalls_p): New function.
9078 (gdb_catch_this_syscall_p): New function.
9079 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9080 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9081 (linux_supports_catch_syscall): New function.
9082 (linux_target_ops): Install it.
9083 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9084 (the_low_target): Install it.
9086 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9088 * acinclude.m4: Include new ../warning.m4 file.
9089 * configure: Regenerated.
9090 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9092 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9094 * ax.c (is_goto_target): Mark static.
9095 * linux-low.c (register_addr): Likewise.
9096 (linux_fetch_registers, linux_store_registers): Likewise.
9097 * mem-break.c (any_persistent_commands): Fix old prototype.
9098 (add_commands_to_breakpoint): Mark static.
9099 * regcache.c (find_register_by_name): Delete unused func.
9100 * remote-utils.c (hex_or_minus_one): Mark static.
9101 * server.c (monitor_show_help): Mark static.
9102 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9103 handle_v_requests): Likewise.
9105 2016-01-12 Pedro Alves <palves@redhat.com>
9107 Remove use of the registered trademark symbol throughout.
9109 2016-01-08 Yao Qi <yao.qi@linaro.org>
9111 * remote-utils.c (getpkt): If c is '\003', call target hook
9114 2016-01-06 Yao Qi <yao.qi@linaro.org>
9116 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9117 linux-aarch32-low.c.
9118 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9119 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9120 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9121 (thumb2_breakpoint): Declare.
9122 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9123 linux-aarch32-low.h.
9124 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9125 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9126 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9128 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9130 * gdbreplay.c (gdbreplay_version): Change copyright year in
9132 * server.c (gdbserver_version): Likewise.
9134 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9136 * server.c (crc32_table): Delete.
9137 (crc32): Use libiberty's xcrc32 function.
9139 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9141 * lynx-low.c (lynx_delete_thread_callback): New function.
9142 (lynx_mourn): Properly delete our process and all of its
9143 threads. Remove call to clear_inferiors.
9145 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9147 * target.c (thread_search_callback): Add check that
9148 the thread_stopped target callback is not NULL before
9151 2015-12-21 Yao Qi <yao.qi@linaro.org>
9153 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9156 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9158 * server.c (handle_query): Call target_supports_software_single_step.
9160 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9162 * linux-low.c (single_step): New function.
9163 (linux_resume_one_lwp_throw): Call single_step.
9164 (start_step_over): Likewise.
9166 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9168 * Makefile.in (SFILES): Append arch/arm-linux.c,
9169 arch/arm-get-next-pcs.c.
9170 (arm-linux.o): New rule.
9171 (arm-get-next-pcs.o): New rule.
9172 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9174 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9175 to linux-aarch32-low.c.
9176 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9177 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9178 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9179 (thumb2_breakpoint_len): Likewise.
9180 (arm_is_thumb_mode): Make non-static.
9181 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9182 from linux-aarch32-low.c.
9183 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9184 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9185 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9186 (thumb2_breakpoint_len): Likewise.
9187 (arm_is_thumb_mode): New declaration.
9188 * linux-arm-low.c: Include arch/arm-linux.h
9189 aarch/arm-get-next-pcs.h, sys/syscall.h.
9190 (get_next_pcs_ops): New struct.
9191 (get_next_pcs_addr_bits_remove): New function.
9192 (get_next_pcs_is_thumb): New function.
9193 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9194 (arm_sigreturn_next_pc): Likewise.
9195 (get_next_pcs_syscall_next_pc): Likewise.
9196 (arm_gdbserver_get_next_pcs): Likewise.
9197 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9199 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9200 * server.h: Include gdb_vecs.h.
9202 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9204 * Makefile.in (SFILES): Append common/common-regcache.c.
9205 (OBS): Append common-regcache.o.
9206 (common-regcache.o): New rule.
9207 * regcache.c (init_register_cache): Initialize cache to
9209 (regcache_raw_read_unsigned): New function.
9210 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9211 register_status enum.
9213 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9215 * linux-aarch64-low.c (the_low_targets): Rename
9216 breakpoint_reinsert_addr to get_next_pcs.
9217 * linux-arm-low.c (the_low_targets): Likewise.
9218 * linux-bfin-low.c (the_low_targets): Likewise.
9219 * linux-cris-low.c (the_low_targets): Likewise.
9220 * linux-crisv32-low.c (the_low_targets): Likewise.
9221 * linux-low.c (can_software_single_step): Likewise.
9222 (install_software_single_step_breakpoints): New function.
9223 (start_step_over): Use install_software_single_step_breakpoints.
9224 * linux-low.h: New CORE_ADDR vector.
9225 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9227 * linux-mips-low.c (the_low_targets): Likewise.
9228 * linux-nios2-low.c (the_low_targets): Likewise.
9229 * linux-sparc-low.c (the_low_targets): Likewise.
9231 2015-12-17 Pedro Alves <palves@redhat.com>
9233 * linux-low.c (linux_kill_one_lwp): Remove references to
9235 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9237 (linux_init_signals): Delete.
9238 (initialize_low): Adjust.
9239 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9241 2015-12-16 Pedro Alves <palves@redhat.com>
9243 * configure.ac (compiler warning flags): When testing a
9244 -Wno-foo option, check whether -Wfoo works instead.
9245 * configure: Regenerate.
9247 2015-12-11 Don Breazeal <donb@codesourcery.com>
9249 * server.c (process_serial_event): Don't exit from gdbserver
9250 in remote mode if there are still active inferiors.
9252 2015-12-11 Yao Qi <yao.qi@linaro.org>
9254 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9255 arm_breakpoint_at if the process is 32-bit.
9257 2015-12-11 Yao Qi <yao.qi@linaro.org>
9259 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9262 2015-12-07 Yao Qi <yao.qi@linaro.org>
9264 * configure.srv: Append arm.o to srv_tgtobj for
9265 aarch64*-*-linux* target.
9266 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9267 from linux-arm-low.c.
9268 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9269 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9270 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9271 (thumb2_breakpoint_len): Likewise.
9272 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9273 (arm_breakpoint_kinds): Likewise.
9274 (arm_breakpoint_kind_from_pc): Likewise.
9275 (arm_sw_breakpoint_from_kind): Likewise.
9276 (arm_breakpoint_kind_from_current_state): Likewise.
9277 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9278 (arm_sw_breakpoint_from_kind): Declare.
9279 (arm_breakpoint_kind_from_current_state): Declare.
9280 (arm_breakpoint_at): Declare.
9281 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9282 arm_sw_breakpoint_from_kind if process is 32-bit.
9283 (aarch64_breakpoint_kind_from_pc): New function.
9284 (aarch64_breakpoint_kind_from_current_state): New function.
9285 (the_low_target): Initialize fields breakpoint_kind_from_pc
9286 and breakpoint_kind_from_current_state.
9287 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9288 linux-aarch32-low.c.
9289 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9290 (arm_breakpoint, arm_breakpoint_len): Likewise.
9291 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9292 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9293 (arm_is_thumb_mode): Likewise.
9294 (arm_breakpoint_at): Likewise.
9295 (arm_breakpoint_kind_from_pc): Likewise.
9296 (arm_sw_breakpoint_from_kind): Likewise.
9297 (arm_breakpoint_kind_from_current_state): Likewise.
9300 2015-08-04 Yao Qi <yao.qi@linaro.org>
9302 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9303 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9304 * server.c (extended_protocol): Remove "static".
9305 * server.h (extended_protocol): Declare it.
9307 2015-12-04 Josh Stone <jistone@redhat.com>
9309 * target.h (struct target_ops) <arch_setup>: Rename to ...
9310 (struct target_ops) <post_create_inferior>: ... this.
9311 (target_arch_setup): Rename to ...
9312 (target_post_create_inferior): ... this, calling post_create_inferior.
9313 * server.c (start_inferior): Update target_arch_setup calls to
9314 target_post_create_inferior.
9315 * linux-low.c (linux_low_ptrace_options): Forward declare.
9316 (linux_arch_setup): Update its comment for general use.
9317 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9318 (struct linux_target_ops): Use linux_post_create_inferior.
9319 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9320 to post_create_inferior.
9321 * nto-low.c (struct nto_target_ops): Likewise.
9322 * spu-low.c (struct spu_target_ops): Likewise.
9323 * win32-low.c (struct win32_target_ops): Likewise.
9325 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9327 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9329 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9331 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9332 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9333 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9334 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9335 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9336 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9337 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9338 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9339 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9340 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9341 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9342 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9344 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9346 * linux-low.c (linux_look_up_symbols): Don't call
9347 linux_supports_traceclone.
9348 * linux-low.h (thread_db_init): Remove use_events argument.
9349 * thread-db.c (thread_db_use_event): Remove global variable.
9350 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9351 (struct thread_db) <td_create_bp>: Remove field.
9352 (thread_db_create_event): Remove function.
9353 (thread_db_enable_reporting): Likewise.
9354 (find_one_thread): Don't check for thread_db_use_events.
9355 (attach_thread): Likewise.
9356 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9357 (try_thread_db_load_1): Don't check for thread_db_use_events.
9358 (thread_db_init): Remove use_events argument and thread events
9360 (remove_thread_event_breakpoints): Remove function.
9361 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9363 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9365 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9367 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9368 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9369 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9370 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9371 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9373 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9375 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9376 * linux-low.c (can_hardware_single_step): Use
9377 supports_hardware_single_step.
9378 (can_software_single_step): New function.
9379 (start_step_over): Call can_software_single_step.
9380 (linux_supports_hardware_single_step): New function.
9381 (struct target_ops) <supports_software_single_step>: Initialize.
9382 * linux-low.h (struct linux_target_ops)
9383 <supports_hardware_single_step>: Initialize.
9384 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9385 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9386 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9387 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9388 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9389 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9390 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9391 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9392 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9393 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9395 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9396 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9398 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9399 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9400 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9402 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9403 * target.h (struct target_ops): <supports_software_single_step>:
9405 (target_supports_software_single_step): New macro.
9407 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9409 * linux-low.c (linux_wait_1): Fix pc advance condition.
9410 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9411 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9413 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9415 * linux-arm-low.c (arm_is_thumb_mode): New function.
9416 (arm_breakpoint_at): Use arm_is_thumb_mode.
9417 (arm_breakpoint_kind_from_current_state): New function.
9418 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9420 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9421 (linux_breakpoint_kind_from_current_state): New function.
9422 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9423 * linux-low.h (struct linux_target_ops)
9424 <breakpoint_kind_from_current_state>: New field.
9425 * target.h (struct target_ops): Likewise.
9426 (target_breakpoint_kind_from_current_state): New macro.
9428 2015-11-30 Pedro Alves <palves@redhat.com>
9430 * linux-low.c (linux_resume): Wake up the event loop before
9433 2015-11-30 Pedro Alves <palves@redhat.com>
9435 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9437 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9439 * target.c (struct thread_search): New structure.
9440 (thread_search_callback): New function.
9441 (prev_general_thread): New global.
9442 (prepare_to_access_memory, done_accessing_memory): New functions.
9443 * target.h (prepare_to_access_memory, done_accessing_memory):
9444 Replace macros with function declarations.
9446 2015-11-30 Pedro Alves <palves@redhat.com>
9449 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9450 report TARGET_WAITKIND_NO_RESUMED.
9451 * remote-utils.c (prepare_resume_reply): Handle
9452 TARGET_WAITKIND_NO_RESUMED.
9453 * server.c (report_no_resumed): New global.
9454 (handle_query) <qSupported>: Handle "no-resumed+". Report
9455 "no-resumed+" support.
9456 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9457 return error if the client doesn't support no-resumed events.
9458 (push_stop_notification): New function.
9459 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9460 events if the client supports them.
9462 2015-11-30 Pedro Alves <palves@redhat.com>
9464 * linux-low.c (thread_still_has_status_pending_p): Don't check
9466 (lwp_resumed): New function.
9467 (status_pending_p_callback): Return early if the LWP is not
9468 supposed to be resumed.
9470 2015-11-30 Pedro Alves <palves@redhat.com>
9472 * linux-low.c (handle_extended_wait): Assert that the LWP's
9473 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9474 thread create events, leave the new child's status pending.
9475 (linux_low_filter_event): If GDB wants to hear about thread exit
9476 events, leave the LWP marked dead and don't delete it.
9477 (linux_wait_for_event_filtered): Don't check for thread exit.
9478 (filter_exit_event): New function.
9479 (linux_wait_1): Use it, when returning an exit event.
9480 (linux_resume_one_lwp_throw): Assert that the LWP's
9481 waitstatus is TARGET_WAITKIND_IGNORE.
9482 * remote-utils.c (prepare_resume_reply): Handle
9483 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9484 * server.c (report_thread_events): New global.
9485 (handle_general_set): Handle QThreadEvents.
9486 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9487 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9488 TARGET_WAITKIND_THREAD_EXITED.
9489 * server.h (report_thread_events): Declare.
9491 2015-11-30 Pedro Alves <palves@redhat.com>
9493 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9494 the thread's last_resume_kind was resume_stop.
9496 2015-11-30 Pedro Alves <palves@redhat.com>
9498 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9501 2015-11-30 Pedro Alves <palves@redhat.com>
9503 * server.c (handle_v_requests): Handle vCtrlC.
9505 2015-11-30 Pedro Alves <palves@redhat.com>
9507 * gdbthread.h (find_any_thread_of_pid): Declare.
9508 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9510 * server.c (handle_query): If current_thread is NULL, look for
9511 another thread of the selected process.
9513 2015-11-26 Daniel Colascione <dancol@dancol.org>
9514 Simon Marchi <simon.marchi@ericsson.com>
9516 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9517 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9519 * target.h (struct target_ops) <thread_name>: New field.
9520 (target_thread_name): New macro.
9522 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9524 * regcache.h (regcache_invalidate_pid): Add declaration.
9525 * regcache.c (regcache_invalidate_pid): New function, extracted
9526 from regcache_invalidate.
9527 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9528 Add trivial documentation comment.
9529 * lynx-low.c: Use regcache_invalidate_pid instead of
9530 regcache_invalidate.
9532 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9534 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9535 and Elf64_auxv_t if the target is Android.
9537 2015-11-22 Doug Evans <xdje42@gmail.com>
9539 * target.h: #include <sys/types.h>.
9541 2015-11-19 Pedro Alves <palves@redhat.com>
9543 * linux-low.c (linux_process_qsupported): Change prototype.
9545 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9547 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9548 and adjust to loop over all features.
9549 * server.c (handle_query) <qSupported>: Adjust to call
9550 target_process_qsupported once, passing it a vector of unprocessed
9552 * target.h (struct target_ops) <process_qsupported>: Change
9554 (target_process_qsupported): Adjust.
9556 2015-11-19 Pedro Alves <palves@redhat.com>
9558 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9560 * configure: Regenerate.
9562 2015-11-19 Pedro Alves <palves@redhat.com>
9564 * configure: Regenerate.
9566 2015-11-19 Yao Qi <yao.qi@linaro.org>
9568 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9571 2015-11-19 Yao Qi <yao.qi@linaro.org>
9573 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9574 (struct aarch64_operand): Move enum out.
9576 2015-11-19 Yao Qi <yao.qi@linaro.org>
9578 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9579 struct user_fpsimd_state *.
9580 (aarch64_store_fpregset): Likewise.
9582 2015-11-19 Yao Qi <yao.qi@linaro.org>
9584 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9585 struct user_pt_regs *.
9586 (aarch64_store_gregset): Likewise.
9588 2015-11-18 Pedro Alves <palves@redhat.com>
9590 * Makefile.in (all_object_files): Add $IPA_OBJS.
9592 2015-11-17 Pedro Alves <palves@redhat.com>
9594 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9595 GDB_SIGNAL_0 and gdb_signal_to_string.
9597 2015-11-17 Pedro Alves <palves@redhat.com>
9599 * win32-low.c (handle_output_debug_string): Remove parameter.
9600 (win32_kill): Remove our_status local and adjust call to
9601 handle_output_debug_string.
9602 (get_child_debug_event): Adjust call to
9603 handle_output_debug_string.
9605 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9607 * linux-mips-low.c (mips_fill_gregset): Add cast.
9608 (mips_store_gregset): Likewise.
9609 (mips_fill_fpregset): Likewise.
9610 (mips_store_fpregset): Likewise.
9612 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9614 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9617 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9619 * linux-mips-low.c (mips_linux_new_thread): Change type of
9620 watch_type to enum target_hw_bp_type.
9622 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9624 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9625 Change return type to arm_hwbp_type.
9627 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9629 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9630 (arm_store_gregset): Likewise.
9631 * linux-arm-low.c (arm_get_hwcap): Likewise.
9632 (arm_read_description): Likewise.
9634 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9636 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9638 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9640 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9641 (ppc_fill_vsxregset): Likewise.
9642 (ppc_store_vsxregset): Likewise.
9643 (ppc_fill_vrregset): Likewise.
9644 (ppc_store_vrregset): Likewise.
9645 (ppc_fill_evrregset): Likewise.
9646 (ppc_store_evrregset): Likewise.
9648 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9650 * linux-ppc-low.c (ppc_usrregs_info): Remove
9651 forward-declaration.
9652 (ppc_arch_setup): Move lower in file.
9654 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9656 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9657 (ps_pdwrite): Likewise.
9659 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9661 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9662 to after assert checks.
9664 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9666 * proc-service.c (ps_pdread): Add/adjust casts.
9667 (ps_pdwrite): Add/adjust casts.
9669 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9671 * server.c (handle_search_memory_1): Cast return value of
9674 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9676 * server.c (write_qxfer_response): Change type of data to
9679 2015-10-29 Pedro Alves <palves@redhat.com>
9681 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9683 2015-10-29 Pedro Alves <palves@redhat.com>
9685 * tracepoint.c (clear_installed_tracepoints): Add casts.
9687 2015-10-29 Pedro Alves <palves@redhat.com>
9689 * server.c (handle_v_cont, process_serial_event): Add enum
9690 gdb_signal casts to signal parsing code.
9692 2015-10-29 Pedro Alves <palves@redhat.com>
9694 * linux-low.h (NULL_REGSET): Define.
9695 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9696 * linux-arm-low.c (arm_regsets): Likewise.
9697 * linux-crisv32-low.c (cris_regsets): Likewise.
9698 * linux-m68k-low.c (m68k_regsets): Likewise.
9699 * linux-mips-low.c (mips_regsets): Likewise.
9700 * linux-nios2-low.c (nios2_regsets): Likewise.
9701 * linux-ppc-low.c (ppc_regsets): Likewise.
9702 * linux-s390-low.c (s390_regsets): Likewise.
9703 * linux-sh-low.c (sh_regsets): Likewise.
9704 * linux-sparc-low.c (sparc_regsets): Likewise.
9705 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9706 * linux-tile-low.c (tile_regsets): Likewise.
9707 * linux-x86-low.c (x86_regsets): Likewise.
9708 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9710 2015-10-29 Pedro Alves <palves@redhat.com>
9712 * linux-low.h (NULL_REGSET): Define.
9713 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9714 * linux-arm-low.c (arm_regsets): Likewise.
9715 * linux-crisv32-low.c (cris_regsets): Likewise.
9716 * linux-m68k-low.c (m68k_regsets): Likewise.
9717 * linux-mips-low.c (mips_regsets): Likewise.
9718 * linux-nios2-low.c (nios2_regsets): Likewise.
9719 * linux-ppc-low.c (ppc_regsets): Likewise.
9720 * linux-s390-low.c (s390_regsets): Likewise.
9721 * linux-sh-low.c (sh_regsets): Likewise.
9722 * linux-sparc-low.c (sparc_regsets): Likewise.
9723 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9724 * linux-tile-low.c (tile_regsets): Likewise.
9725 * linux-x86-low.c (x86_regsets): Likewise.
9726 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9728 2015-10-26 Doug Evans <dje@google.com>
9730 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9732 2015-10-26 Doug Evans <dje@google.com>
9734 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9736 2015-10-26 Doug Evans <dje@google.com>
9738 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9740 (attach_thread, find_new_threads_callback): Ditto.
9742 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9744 * mem-break.h (set_breakpoint_data): Remove.
9746 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9748 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9749 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9750 (initialize_low): Remove set_breakpoint_data call.
9751 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9752 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9753 (initialize_low): Remove set_breakpoint_data call.
9754 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9755 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9756 (initialize_low): Remove set_breakpoint_data call.
9758 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9760 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9761 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9762 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9763 * target.h (target_breakpoint_kind_from_pc): New macro.
9765 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9767 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9768 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9769 the default breakpoint kind.
9771 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9773 * linux-arm-low.c (arm_supports_z_point_type): Add software
9776 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9778 * linux-arm-low.c: Refactor breakpoint definitions.
9779 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9780 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9782 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9784 * Makefile.in: Add arm.c/o.
9785 * configure.srv: Likewise.
9786 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9787 (arm_breakpoint_kind_from_pc): New function.
9788 (arm_sw_breakpoint_from_kind): Return proper kind.
9789 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9791 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9793 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9795 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9796 (struct raw_breakpoint) <size>: Remove.
9797 (struct raw_breakpoint) <kind>: Add.
9798 (bp_size): New function.
9799 (bp_opcode): Likewise.
9800 (find_raw_breakpoint_at): Adjust for kind.
9801 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9802 (remove_memory_breakpoint): Adjust for kind call bp_size.
9803 (set_raw_breakpoint_at): Adjust for kind.
9804 (set_breakpoint): Likewise.
9805 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9806 (delete_raw_breakpoint): Adjust for kind.
9807 (delete_breakpoint): Likewise.
9808 (find_gdb_breakpoint): Likewise.
9809 (set_gdb_breakpoint_1): Likewise.
9810 (set_gdb_breakpoint): Likewise.
9811 (delete_gdb_breakpoint_1): Likewise.
9812 (delete_gdb_breakpoint): Likewise.
9813 (uninsert_raw_breakpoint): Likewise.
9814 (reinsert_raw_breakpoint): Likewise.
9815 (set_breakpoint_data): Remove.
9816 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9817 (check_mem_read): Adjust for kind call bp_size.
9818 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9819 (clone_one_breakpoint): Adjust for kind.
9820 * mem-break.h (set_gdb_breakpoint): Likewise.
9821 (delete_gdb_breakpoint): Likewise.
9822 * server.c (process_serial_event): Likewise.
9824 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9826 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9827 (struct linux_target_ops) <breakpoint>: Remove.
9828 (struct linux_target_ops) <breakpoint_len>: Remove.
9829 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9830 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9831 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9832 (arm_sw_breakpoint_from_kind): New function.
9833 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9834 (struct linux_target_ops) <breakpoint>: Remove.
9835 (struct linux_target_ops) <breakpoint_len>: Remove.
9836 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9837 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9838 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9839 (struct linux_target_ops) <breakpoint>: Remove.
9840 (struct linux_target_ops) <breakpoint_len>: Remove.
9841 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9842 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9843 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9844 (struct linux_target_ops) <breakpoint>: Remove.
9845 (struct linux_target_ops) <breakpoint_len>: Remove.
9846 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9847 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9848 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9849 and sw_breakpoint_from_kind to increment the pc.
9850 (linux_breakpoint_kind_from_pc): New function.
9851 (linux_sw_breakpoint_from_kind): New function.
9852 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9853 (initialize_low): Call breakpoint_kind_from_pc and
9854 sw_breakpoint_from_kind to replace breakpoint_data/len.
9855 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9857 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9858 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9859 (struct linux_target_ops) <breakpoint>: Remove.
9860 (struct linux_target_ops) <breakpoint_len>: Remove.
9861 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9862 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9863 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9864 (struct linux_target_ops) <breakpoint>: Remove.
9865 (struct linux_target_ops) <breakpoint_len>: Remove.
9866 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9867 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9868 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9869 (struct linux_target_ops) <breakpoint>: Remove.
9870 (struct linux_target_ops) <breakpoint_len>: Remove.
9871 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9872 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9873 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9874 (struct linux_target_ops) <breakpoint>: Remove.
9875 (struct linux_target_ops) <breakpoint_len>: Remove.
9876 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9877 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9878 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9879 (struct linux_target_ops) <breakpoint>: Remove.
9880 (struct linux_target_ops) <breakpoint_len>: Remove.
9881 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9882 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9883 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9884 (struct linux_target_ops) <breakpoint>: Remove.
9885 (struct linux_target_ops) <breakpoint_len>: Remove.
9886 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9887 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9888 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9889 (struct linux_target_ops) <breakpoint>: Remove.
9890 (struct linux_target_ops) <breakpoint_len>: Remove.
9891 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9892 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9893 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9894 (struct linux_target_ops) <breakpoint>: Remove.
9895 (struct linux_target_ops) <breakpoint_len>: Remove.
9896 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9897 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9898 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9899 (struct linux_target_ops) <breakpoint>: Remove.
9900 (struct linux_target_ops) <breakpoint_len>: Remove.
9901 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9902 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9903 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9904 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9905 (struct linux_target_ops) <breakpoint>: Remove.
9906 (struct linux_target_ops) <breakpoint_len>: Remove.
9907 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9908 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9909 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9910 (struct linux_target_ops) <breakpoint>: Remove.
9911 (struct linux_target_ops) <breakpoint_len>: Remove.
9912 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9913 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9915 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9917 * linux-cris-low.c (cris_get_pc): Remove void arg.
9919 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9921 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9924 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9926 * inferiors.c (thread_pid_matches_callback): New function.
9927 (find_thread_process): New function.
9928 (remove_thread): Reset current_thread.
9929 (remove_process): Assert threads have been removed first.
9931 2015-10-15 Yao Qi <yao.qi@linaro.org>
9933 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9935 (aarch64_remove_point): Likewise.
9936 * regcache.c (regcache_register_size): New function.
9938 2015-10-12 Yao Qi <yao.qi@linaro.org>
9940 * linux-aarch64-low.c: Update all callers as emit_load_store
9941 is renamed to aarch64_emit_load_store.
9943 2015-10-12 Yao Qi <yao.qi@linaro.org>
9945 * linux-aarch64-low.c: Update all callers of function renaming
9946 from emit_insn to aarch64_emit_insn.
9948 2015-10-12 Yao Qi <yao.qi@linaro.org>
9950 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9951 arch/aarch64-insn.h.
9952 (struct aarch64_memory_operand): Likewise.
9954 (emit_insn): Move to arch/aarch64-insn.c.
9955 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9956 (emit_load_store): Move to arch/aarch64-insn.c.
9957 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9958 (can_encode_int32): Remove.
9960 2015-10-12 Yao Qi <yao.qi@linaro.org>
9962 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9963 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9964 (aarch64_relocate_instruction): Likewise.
9965 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9966 (struct aarch64_insn_visitor): Likewise.
9968 2015-10-12 Yao Qi <yao.qi@linaro.org>
9970 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9971 (struct aarch64_insn_visitor): New.
9972 (struct aarch64_insn_relocation_data): New.
9973 (aarch64_ftrace_insn_reloc_b): New function.
9974 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9975 (aarch64_ftrace_insn_reloc_cb): Likewise.
9976 (aarch64_ftrace_insn_reloc_tb): Likewise.
9977 (aarch64_ftrace_insn_reloc_adr): Likewise.
9978 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9979 (aarch64_ftrace_insn_reloc_others): Likewise.
9981 (aarch64_relocate_instruction): Use visitor.
9983 2015-10-12 Yao Qi <yao.qi@linaro.org>
9985 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9986 int. Add argument buf.
9987 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9988 aarch64_relocate_instruction.
9990 2015-10-12 Yao Qi <yao.qi@linaro.org>
9992 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9993 argument insn. Remove local variable insn. Don't call
9995 (aarch64_install_fast_tracepoint_jump_pad): Call
9998 2015-09-30 Yao Qi <yao.qi@linaro.org>
10000 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10001 (emit_load_store_pair): Likewise.
10003 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10005 * dll.c (match_dll): Add cast(s).
10006 (unloaded_dll): Likewise.
10007 * linux-low.c (second_thread_of_pid_p): Likewise.
10008 (delete_lwp_callback): Likewise.
10009 (count_events_callback): Likewise.
10010 (select_event_lwp_callback): Likewise.
10011 (linux_set_resume_request): Likewise.
10012 * server.c (accumulate_file_name_length): Likewise.
10013 (emit_dll_description): Likewise.
10014 (handle_qxfer_threads_worker): Likewise.
10015 (visit_actioned_threads): Likewise.
10016 * thread-db.c (any_thread_of): Likewise.
10017 * tracepoint.c (same_process_p): Likewise.
10018 (match_blocktype): Likewise.
10019 (build_traceframe_info_xml): Likewise.
10021 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10023 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10025 (gdb_unparse_agent_expr): Likewise.
10026 * hostio.c (require_data): Likewise.
10027 (handle_pread): Likewise.
10028 * linux-low.c (disable_regset): Likewise.
10029 (fetch_register): Likewise.
10030 (store_register): Likewise.
10031 (get_dynamic): Likewise.
10032 (linux_qxfer_libraries_svr4): Likewise.
10033 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10034 (set_fast_tracepoint_jump): Likewise.
10035 (uninsert_fast_tracepoint_jumps_at): Likewise.
10036 (reinsert_fast_tracepoint_jumps_at): Likewise.
10037 (validate_inserted_breakpoint): Likewise.
10038 (clone_agent_expr): Likewise.
10039 * regcache.c (init_register_cache): Likewise.
10040 * remote-utils.c (putpkt_binary_1): Likewise.
10041 (decode_M_packet): Likewise.
10042 (decode_X_packet): Likewise.
10043 (look_up_one_symbol): Likewise.
10044 (relocate_instruction): Likewise.
10045 (monitor_output): Likewise.
10046 * server.c (handle_search_memory): Likewise.
10047 (handle_qxfer_exec_file): Likewise.
10048 (handle_qxfer_libraries): Likewise.
10049 (handle_qxfer): Likewise.
10050 (handle_query): Likewise.
10051 (handle_v_cont): Likewise.
10052 (handle_v_run): Likewise.
10053 (captured_main): Likewise.
10054 * target.c (write_inferior_memory): Likewise.
10055 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10056 * tracepoint.c (init_trace_buffer): Likewise.
10057 (add_tracepoint_action): Likewise.
10058 (add_traceframe): Likewise.
10059 (add_traceframe_block): Likewise.
10060 (cmd_qtdpsrc): Likewise.
10061 (cmd_qtdv): Likewise.
10062 (cmd_qtstatus): Likewise.
10063 (response_source): Likewise.
10064 (response_tsv): Likewise.
10065 (cmd_qtnotes): Likewise.
10066 (gdb_collect): Likewise.
10067 (initialize_tracepoint): Likewise.
10069 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10071 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10072 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10073 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10075 (enum aarch64_condition_codes): New enum.
10076 (w0): New static global.
10079 (struct aarch64_memory_operand) <type>: New
10080 MEMORY_OPERAND_POSTINDEX type.
10081 (postindex_memory_operand): New helper function.
10082 (emit_ret): New function.
10083 (emit_load_store_pair): New function, factored out of emit_stp
10084 with support for MEMORY_OPERAND_POSTINDEX.
10085 (emit_stp): Rewrite using emit_load_store_pair.
10086 (emit_ldp): New function.
10087 (emit_load_store): Likewise.
10088 (emit_ldr): Mention post-index instruction in comment.
10089 (emit_ldrh): New function.
10090 (emit_ldrb): New function.
10091 (emit_ldrsw): Mention post-index instruction in comment.
10092 (emit_str): Likewise.
10093 (emit_subs): New function.
10094 (emit_cmp): Likewise.
10095 (emit_and): Likewise.
10096 (emit_orr): Likewise.
10097 (emit_orn): Likewise.
10098 (emit_eor): Likewise.
10099 (emit_mvn): Likewise.
10100 (emit_lslv): Likewise.
10101 (emit_lsrv): Likewise.
10102 (emit_asrv): Likewise.
10103 (emit_mul): Likewise.
10104 (emit_sbfm): Likewise.
10105 (emit_sbfx): Likewise.
10106 (emit_ubfm): Likewise.
10107 (emit_ubfx): Likewise.
10108 (emit_csinc): Likewise.
10109 (emit_cset): Likewise.
10110 (emit_nop): Likewise.
10111 (emit_ops_insns): New helper function.
10112 (emit_pop): Likewise.
10113 (emit_push): Likewise.
10114 (aarch64_emit_prologue): New function.
10115 (aarch64_emit_epilogue): Likewise.
10116 (aarch64_emit_add): Likewise.
10117 (aarch64_emit_sub): Likewise.
10118 (aarch64_emit_mul): Likewise.
10119 (aarch64_emit_lsh): Likewise.
10120 (aarch64_emit_rsh_signed): Likewise.
10121 (aarch64_emit_rsh_unsigned): Likewise.
10122 (aarch64_emit_ext): Likewise.
10123 (aarch64_emit_log_not): Likewise.
10124 (aarch64_emit_bit_and): Likewise.
10125 (aarch64_emit_bit_or): Likewise.
10126 (aarch64_emit_bit_xor): Likewise.
10127 (aarch64_emit_bit_not): Likewise.
10128 (aarch64_emit_equal): Likewise.
10129 (aarch64_emit_less_signed): Likewise.
10130 (aarch64_emit_less_unsigned): Likewise.
10131 (aarch64_emit_ref): Likewise.
10132 (aarch64_emit_if_goto): Likewise.
10133 (aarch64_emit_goto): Likewise.
10134 (aarch64_write_goto_address): Likewise.
10135 (aarch64_emit_const): Likewise.
10136 (aarch64_emit_call): Likewise.
10137 (aarch64_emit_reg): Likewise.
10138 (aarch64_emit_pop): Likewise.
10139 (aarch64_emit_stack_flush): Likewise.
10140 (aarch64_emit_zero_ext): Likewise.
10141 (aarch64_emit_swap): Likewise.
10142 (aarch64_emit_stack_adjust): Likewise.
10143 (aarch64_emit_int_call_1): Likewise.
10144 (aarch64_emit_void_call_2): Likewise.
10145 (aarch64_emit_eq_goto): Likewise.
10146 (aarch64_emit_ne_goto): Likewise.
10147 (aarch64_emit_lt_goto): Likewise.
10148 (aarch64_emit_le_goto): Likewise.
10149 (aarch64_emit_gt_goto): Likewise.
10150 (aarch64_emit_ge_got): Likewise.
10151 (aarch64_emit_ops_impl): New static global variable.
10152 (aarch64_emit_ops): New target function, return
10153 &aarch64_emit_ops_impl.
10154 (struct linux_target_ops): Install it.
10156 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10158 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10159 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10161 * linux-aarch64-ipa.c: New file.
10162 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10164 (aarch64_get_thread_area): New target method.
10165 (extract_signed_bitfield): New helper function.
10166 (aarch64_decode_ldr_literal): New function.
10167 (enum aarch64_opcodes): New enum.
10168 (struct aarch64_register): New struct.
10169 (struct aarch64_operand): New struct.
10170 (x0): New static global.
10179 (aarch64_register): New helper function.
10180 (register_operand): Likewise.
10181 (immediate_operand): Likewise.
10182 (struct aarch64_memory_operand): New struct.
10183 (offset_memory_operand): New helper function.
10184 (preindex_memory_operand): Likewise.
10185 (enum aarch64_system_control_registers): New enum.
10186 (ENCODE): New macro.
10187 (emit_insn): New helper function.
10188 (emit_b): New function.
10189 (emit_bcond): Likewise.
10190 (emit_cb): Likewise.
10191 (emit_tb): Likewise.
10192 (emit_blr): Likewise.
10193 (emit_stp): Likewise.
10194 (emit_ldp_q_offset): Likewise.
10195 (emit_stp_q_offset): Likewise.
10196 (emit_load_store): Likewise.
10197 (emit_ldr): Likewise.
10198 (emit_ldrsw): Likewise.
10199 (emit_str): Likewise.
10200 (emit_ldaxr): Likewise.
10201 (emit_stxr): Likewise.
10202 (emit_stlr): Likewise.
10203 (emit_data_processing_reg): Likewise.
10204 (emit_data_processing): Likewise.
10205 (emit_add): Likewise.
10206 (emit_sub): Likewise.
10207 (emit_mov): Likewise.
10208 (emit_movk): Likewise.
10209 (emit_mov_addr): Likewise.
10210 (emit_mrs): Likewise.
10211 (emit_msr): Likewise.
10212 (emit_sevl): Likewise.
10213 (emit_wfe): Likewise.
10214 (append_insns): Likewise.
10215 (can_encode_int32_in): New helper function.
10216 (aarch64_relocate_instruction): New function.
10217 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10218 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10219 (struct linux_target_ops): Install aarch64_get_thread_area,
10220 aarch64_install_fast_tracepoint_jump_pad and
10221 aarch64_get_min_fast_tracepoint_insn_len.
10223 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10225 * Makefile.in (aarch64-insn.o): New rule.
10226 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10228 2015-09-21 Yao Qi <yao.qi@linaro.org>
10230 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10232 2015-09-21 Yao Qi <yao.qi@linaro.org>
10234 * tracepoint.c (max_jump_pad_size): Remove.
10236 2015-09-18 Yao Qi <yao.qi@linaro.org>
10238 * linux-aarch64-low.c: Don't include sys/uio.h.
10239 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10241 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10243 * tracepoint.c (eval_result_type): Change prototype.
10244 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10246 2015-09-15 Pedro Alves <palves@redhat.com>
10248 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10249 Check whether to report exec events instead of checking whether
10250 multiprocess is enabled.
10252 2015-09-15 Pedro Alves <palves@redhat.com>
10255 * remote-utils.c (prepare_resume_reply): Merge
10256 TARGET_WAITKIND_VFORK_DONE switch case with the
10257 TARGET_WAITKIND_FORKED case.
10259 2015-09-15 Yao Qi <yao.qi@linaro.org>
10261 * server.c (handle_query): Check string comparison using
10262 "else if" instead of "if".
10264 2015-09-15 Yao Qi <yao.qi@linaro.org>
10266 * server.c (vCont_supported): New global variable.
10267 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10268 matches. Append ";vContSupported+" to own_buf.
10269 (handle_v_requests): Append ";s;S" to own_buf if target supports
10270 hardware single step or vCont_supported is false.
10271 (capture_main): Set vCont_supported to zero.
10273 2015-09-15 Yao Qi <yao.qi@linaro.org>
10275 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10277 (linux_supports_hardware_single_step): ... New function.
10278 (linux_target_ops): Update.
10279 * lynx-low.c (lynx_target_ops): Set field
10280 supports_hardware_single_step to target_can_do_hardware_single_step.
10281 * nto-low.c (nto_target_ops): Likewise.
10282 * spu-low.c (spu_target_ops): Likewise.
10283 * win32-low.c (win32_target_ops): Likewise.
10284 * target.c (target_can_do_hardware_single_step): New function.
10285 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10286 Remove. <supports_hardware_single_step>: New field.
10287 (target_supports_conditional_breakpoints): Remove.
10288 (target_supports_hardware_single_step): New macro.
10289 (target_can_do_hardware_single_step): Declare.
10290 * server.c (handle_query): Use target_supports_hardware_single_step
10291 instead of target_supports_conditional_breakpoints.
10293 2015-09-15 Yao Qi <yao.qi@linaro.org>
10295 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10297 (struct linux_target_ops the_low_target): Install
10298 aarch64_linux_siginfo_fixup.
10300 2015-09-11 Don Breazeal <donb@codesourcery.com>
10301 Luis Machado <lgustavo@codesourcery.com>
10303 * linux-low.c (linux_mourn): Static declaration.
10304 (linux_arch_setup): Move in front of
10305 handle_extended_wait.
10306 (linux_arch_setup_thread): New function.
10307 (handle_extended_wait): Handle exec events. Call
10308 linux_arch_setup_thread. Make event_lwp argument a
10309 pointer-to-a-pointer.
10310 (check_zombie_leaders): Do not check stopped threads.
10311 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10312 (linux_low_filter_event): Add lwp and thread for exec'ing
10313 non-leader thread if leader thread has been deleted.
10314 Refactor code into linux_arch_setup_thread and call it.
10315 Pass child lwp pointer by reference to handle_extended_wait.
10316 (linux_wait_for_event_filtered): Update comment.
10317 (linux_wait_1): Prevent clobbering exec event status.
10318 (linux_supports_exec_events): New function.
10319 (linux_target_ops) <supports_exec_events>: Initialize new member.
10320 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10322 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10323 * server.c (report_exec_events): New global variable.
10324 (handle_query): Handle qSupported query for exec-events feature.
10325 (captured_main): Initialize report_exec_events.
10326 * server.h (report_exec_events): Declare new global variable.
10327 * target.h (struct target_ops) <supports_exec_events>: New
10329 (target_supports_exec_events): New macro.
10330 * win32-low.c (win32_target_ops) <supports_exec_events>:
10331 Initialize new member.
10333 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10335 * linux-low.c (linux_low_enable_btrace): Remove.
10336 (linux_target_ops): Replace linux_low_enable_btrace with
10337 linux_enable_btrace.
10339 2015-09-03 Yao Qi <yao.qi@linaro.org>
10341 * linux-aarch64-low.c (aarch64_insert_point): Call
10342 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10345 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10347 * linux-low.c (check_stopped_by_breakpoint): Use
10348 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10350 2015-08-27 Pedro Alves <palves@redhat.com>
10352 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10354 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10356 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10357 the XNEW-family equivalent.
10358 (compile_bytecodes): Likewise.
10359 * dll.c (loaded_dll): Likewise.
10360 * event-loop.c (append_callback_event): Likewise.
10361 (create_file_handler): Likewise.
10362 (create_file_event): Likewise.
10363 * hostio.c (handle_open): Likewise.
10364 * inferiors.c (add_thread): Likewise.
10365 (add_process): Likewise.
10366 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10367 * linux-arm-low.c (arm_new_process): Likewise.
10368 (arm_new_thread): Likewise.
10369 * linux-low.c (add_to_pid_list): Likewise.
10370 (linux_add_process): Likewise.
10371 (handle_extended_wait): Likewise.
10372 (add_lwp): Likewise.
10373 (enqueue_one_deferred_signal): Likewise.
10374 (enqueue_pending_signal): Likewise.
10375 (linux_resume_one_lwp_throw): Likewise.
10376 (linux_resume_one_thread): Likewise.
10377 (linux_read_memory): Likewise.
10378 (linux_write_memory): Likewise.
10379 * linux-mips-low.c (mips_linux_new_process): Likewise.
10380 (mips_linux_new_thread): Likewise.
10381 (mips_add_watchpoint): Likewise.
10382 * linux-x86-low.c (initialize_low_arch): Likewise.
10383 * lynx-low.c (lynx_add_process): Likewise.
10384 * mem-break.c (set_raw_breakpoint_at): Likewise.
10385 (set_breakpoint): Likewise.
10386 (add_condition_to_breakpoint): Likewise.
10387 (add_commands_to_breakpoint): Likewise.
10388 (clone_agent_expr): Likewise.
10389 (clone_one_breakpoint): Likewise.
10390 * regcache.c (new_register_cache): Likewise.
10391 * remote-utils.c (look_up_one_symbol): Likewise.
10392 * server.c (queue_stop_reply): Likewise.
10393 (start_inferior): Likewise.
10394 (queue_stop_reply_callback): Likewise.
10395 (handle_target_event): Likewise.
10396 * spu-low.c (fetch_ppc_memory): Likewise.
10397 (store_ppc_memory): Likewise.
10398 * target.c (set_target_ops): Likewise.
10399 * thread-db.c (thread_db_load_search): Likewise.
10400 (try_thread_db_load_1): Likewise.
10401 * tracepoint.c (add_tracepoint): Likewise.
10402 (add_tracepoint_action): Likewise.
10403 (create_trace_state_variable): Likewise.
10404 (cmd_qtdpsrc): Likewise.
10405 (cmd_qtro): Likewise.
10406 (add_while_stepping_state): Likewise.
10407 * win32-low.c (child_add_thread): Likewise.
10408 (get_image_name): Likewise.
10410 2015-08-25 Yao Qi <yao.qi@linaro.org>
10412 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10414 2015-08-25 Yao Qi <yao.qi@linaro.org>
10416 * Makefile.in (aarch64-linux.o): New rule.
10417 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10419 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10420 (aarch64_init_debug_reg_state): Make it extern.
10421 (aarch64_linux_prepare_to_resume): Remove.
10423 2015-08-25 Yao Qi <yao.qi@linaro.org>
10425 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10426 lwp_arch_private_info and ptid_of_lwp.
10428 2015-08-25 Yao Qi <yao.qi@linaro.org>
10430 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10431 Find proc_info by find_process_pid. All callers updated.
10433 2015-08-25 Yao Qi <yao.qi@linaro.org>
10435 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10437 (debug_reg_change_callback): Remove.
10438 (aarch64_notify_debug_reg_change): Remove.
10440 2015-08-25 Yao Qi <yao.qi@linaro.org>
10442 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10443 Call current_lwp_ptid.
10445 2015-08-25 Yao Qi <yao.qi@linaro.org>
10447 * linux-aarch64-low.c (debug_reg_change_callback): Use
10450 2015-08-25 Yao Qi <yao.qi@linaro.org>
10452 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10454 2015-08-25 Yao Qi <yao.qi@linaro.org>
10456 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10458 2015-08-25 Yao Qi <yao.qi@linaro.org>
10460 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10463 2015-08-25 Yao Qi <yao.qi@linaro.org>
10465 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10467 (debug_reg_change_callback): Remove argument entry and add argument
10468 lwp. Remove local variable thread. Don't print thread id in the
10469 debugging output. Don't check whether pid of thread equals to pid.
10470 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10471 iterate_over_lwps instead find_inferior.
10473 2015-08-24 Pedro Alves <palves@redhat.com>
10475 * inferiors.c (get_first_process): New function.
10476 * inferiors.h (get_first_process): New declaration.
10477 * remote-utils.c (read_ptid): Default to the first process in the
10478 list, instead of to the current thread's process.
10480 2015-08-24 Pedro Alves <palves@redhat.com>
10482 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10483 * event-loop.c: Likewise.
10484 * remote-utils.c: Likewise.
10485 * tracepoint.c: Likewise.
10487 2015-08-24 Pedro Alves <palves@redhat.com>
10489 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10492 2015-08-21 Pedro Alves <palves@redhat.com>
10494 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10495 instead of literal 1.
10497 2015-08-21 Pedro Alves <palves@redhat.com>
10499 * tdesc.c (default_description): Explicitly zero-initialize.
10501 2015-08-21 Pedro Alves <palves@redhat.com>
10504 * inferiors.c (remove_thread): Discard any pending stop reply for
10506 * server.c (remove_all_on_match_pid): Rename to ...
10507 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10509 (discard_queued_stop_replies): Change parameter to a ptid. Now
10511 (handle_v_kill, kill_inferior_callback, captured_main)
10512 (process_serial_event): Adjust.
10513 * server.h (discard_queued_stop_replies): Declare.
10515 2015-08-21 Pedro Alves <palves@redhat.com>
10517 * linux-low.c (wait_for_sigstop): Always switch to no thread
10518 selected if the previously current thread dies.
10519 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10520 process instead of the current thread's.
10521 * remote-utils.c (input_interrupt): Don't check if there's no
10523 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10524 current thread to the general thread fails, error out.
10525 (handle_qxfer_auxv, handle_qxfer_libraries)
10526 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10527 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10528 (handle_query): Check if there's a thread selected instead of
10529 checking whether there's any thread in the thread list.
10530 (handle_qxfer_threads, handle_qxfer_btrace)
10531 (handle_qxfer_btrace_conf): Don't error out early if there's no
10532 thread in the thread list.
10533 (handle_v_cont, myresume): Don't set the current thread to the
10535 (process_serial_event) <Hg handling>: Also set thread_id if the
10536 previous general thread is still alive.
10537 (process_serial_event) <g/G handling>: If setting the current
10538 thread to the general thread fails, error out.
10539 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10540 thread's lwp instead of the current thread's.
10541 * target.c (set_desired_thread): If the desired thread was not
10542 found, leave the current thread pointing to NULL. Return an int
10543 (boolean) indicating success.
10544 * target.h (set_desired_thread): Change return type to int.
10546 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10548 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10549 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10551 (ps_get_thread_area): New function.
10553 2015-08-19 Gary Benson <gbenson@redhat.com>
10555 * hostio.c (handle_pread): Do not attempt to read more data
10556 than hostio_reply_with_data can fit in a packet.
10558 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10560 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10562 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10564 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10566 2015-08-06 Pedro Alves <palves@redhat.com>
10568 * tracepoint.c (expr_eval_result): Now an int.
10570 2015-08-06 Pedro Alves <palves@redhat.com>
10572 * gdbthread.h (struct regcache): Forward declare.
10573 (struct thread_info) <regcache_data>: Now a struct regcache
10575 * inferiors.c (inferior_regcache_data)
10576 (set_inferior_regcache_data): Now work with struct regcache
10578 * inferiors.h (struct regcache): Forward declare.
10579 (inferior_regcache_data, set_inferior_regcache_data): Now work
10580 with struct regcache pointers.
10581 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10582 (free_register_cache_thread): Remove struct regcache pointer
10585 2015-08-06 Pedro Alves <palves@redhat.com>
10587 * server.c (captured_main): On error, print the exception message
10588 to stderr, and if run_once is set, throw a quit.
10590 2015-08-06 Pedro Alves <palves@redhat.com>
10592 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10593 the current thread.
10595 2015-08-06 Pedro Alves <palves@redhat.com>
10597 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10598 reading beyond the passed in buffer length.
10600 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10602 * tracepoint.c (symbol_list) <required>: Remove.
10604 2015-08-06 Pedro Alves <palves@redhat.com>
10606 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10607 count if stopping and suspending threads.
10608 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10609 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10610 (linux_detach): Complete an ongoing step-over.
10611 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10613 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10614 (linux_wait_1): If passing a signal to the inferior after
10615 finishing a step-over, unsuspend and re-resume all lwps. If we
10616 see a single-step event but the thread should be continuing, don't
10617 pass the trap to gdb.
10618 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10619 internal_error instead of gdb_assert.
10620 (enqueue_pending_signal): New function.
10621 (check_ptrace_stopped_lwp_gone): Add debug output.
10622 (start_step_over): Use internal_error instead of gdb_assert.
10623 (complete_ongoing_step_over): New function.
10624 (linux_resume_one_thread): Don't resume a suspended thread.
10625 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10628 2015-08-06 Pedro Alves <palves@redhat.com>
10630 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10631 (linux_thread_alive): Use lwp_is_marked_dead.
10632 (extended_event_reported): Delete.
10633 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10634 instead of extended_event_reported.
10635 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10637 (lwp_is_marked_dead): New function.
10638 (lwp_running): Use lwp_is_marked_dead.
10639 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10642 2015-08-06 Pedro Alves <palves@redhat.com>
10644 * linux-low.c (linux_wait_1): Move fork event output out of the
10645 !report_to_gdb check. Pass event_child->waitstatus to
10646 target_waitstatus_to_string instead of ourstatus.
10648 2015-08-04 Yao Qi <yao.qi@linaro.org>
10650 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10651 if current_thread is 32 bit.
10653 2015-08-04 Yao Qi <yao.qi@linaro.org>
10655 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10656 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10657 * server.c (extended_protocol): Remove "static".
10658 * server.h (extended_protocol): Declare it.
10660 2015-08-04 Yao Qi <yao.qi@linaro.org>
10662 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10663 both aarch64 and aarch32.
10664 (aarch64_set_pc): Likewise.
10666 2015-08-04 Yao Qi <yao.qi@linaro.org>
10668 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10669 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10670 arm-with-neon.xml to srv_xmlfiles.
10671 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10672 (is_64bit_tdesc): New function.
10673 (aarch64_linux_read_description): New function.
10674 (aarch64_arch_setup): Call aarch64_linux_read_description.
10675 (regs_info): Rename to regs_info_aarch64.
10676 (aarch64_regs_info): Return right regs_info.
10677 (initialize_low_arch): Call initialize_low_arch_aarch32.
10679 2015-08-04 Yao Qi <yao.qi@linaro.org>
10681 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10682 * linux-aarch32-low.c: New file.
10683 * linux-aarch32-low.h: New file.
10684 * linux-arm-low.c (arm_fill_gregset): Move it to
10685 linux-aarch32-low.c.
10686 (arm_store_gregset): Likewise.
10687 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10688 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10689 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10690 (regs_info): Rename to regs_info_arm.
10691 (arm_regs_info): Return regs_info_aarch32 if
10692 have_ptrace_getregset is 1 and target description is
10693 arm_with_neon or arm_with_vfpv3.
10694 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10695 Call initialize_low_arch_aarch32 instead.
10697 2015-08-04 Yao Qi <yao.qi@linaro.org>
10699 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10700 * linux-low.c: ... here.
10701 * linux-low.h (have_ptrace_getregset): Declare it.
10703 2015-08-04 Pedro Alves <palves@redhat.com>
10705 * thread-db.c (struct thread_db): Use new typedefs.
10706 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10708 (disable_thread_event_reporting): Cast result of dlsym to
10709 destination function pointer type.
10710 (thread_db_mourn): Use td_ta_delete_ftype.
10712 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10714 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10716 (CDX_BREAKPOINT): Define for R2.
10717 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10718 (the_low_target): Add comments.
10720 2015-07-30 Yao Qi <yao.qi@linaro.org>
10722 * linux-arm-low.c (arm_hwcap): Remove it.
10723 (arm_read_description): New local variable arm_hwcap. Don't
10724 set arm_hwcap to zero.
10726 2015-07-30 Yao Qi <yao.qi@linaro.org>
10728 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10729 Use regcache->tdesc instead.
10730 (arm_store_wmmxregset): Likewise.
10731 (arm_fill_vfpregset): Likewise.
10732 (arm_store_vfpregset): Likewise.
10734 2015-07-30 Yao Qi <yao.qi@linaro.org>
10736 * linux-arm-low.c: Include arch/arm.h.
10737 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10738 (arm_store_gregset): Likewise.
10740 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10742 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10743 ptrace's 4th parameter.
10745 2015-07-27 Yao Qi <yao.qi@linaro.org>
10747 * configure.srv (case aarch64*-*-linux*): Don't set
10750 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10752 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10754 * linux-arm-low.c: Likewise.
10755 * linux-cris-low.c: Likewise.
10756 * linux-crisv32-low.c: Likewise.
10757 * linux-low.c: Likewise.
10758 * linux-m68k-low.c: Likewise.
10759 * linux-mips-low.c: Likewise.
10760 * linux-nios2-low.c: Likewise.
10761 * linux-s390-low.c: Likewise.
10762 * linux-sparc-low.c: Likewise.
10763 * linux-tic6x-low.c: Likewise.
10764 * linux-tile-low.c: Likewise.
10765 * linux-x86-low.c: Likewise.
10767 2015-07-24 Pedro Alves <palves@redhat.com>
10769 * config.in: Regenerate.
10770 * configure: Regenerate.
10772 2015-07-24 Pedro Alves <palves@redhat.com>
10774 * acinclude.m4: Include ../ptrace.m4.
10775 * configure.ac: Call GDB_AC_PTRACE.
10776 * config.in, configure: Regenerate.
10778 2015-07-24 Yao Qi <yao.qi@linaro.org>
10780 * linux-low.c (linux_create_inferior): Remove setting to
10781 proc->priv->new_inferior.
10782 (linux_attach): Likewise.
10783 (linux_low_filter_event): Likewise.
10784 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10786 2015-07-24 Yao Qi <yao.qi@linaro.org>
10788 * linux-low.c (linux_arch_setup): New function.
10789 (linux_low_filter_event): If proc->tdesc is NULL and
10790 proc->attached is true, call the_low_target.arch_setup.
10791 Otherwise, keep status pending, and return.
10792 (linux_resume_one_lwp_throw): Don't call get_pc if
10793 thread->while_stepping isn't NULL. Don't call
10794 get_thread_regcache if proc->tdesc is NULL.
10795 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10796 (linux_target_ops): Install arch_setup.
10797 * server.c (start_inferior): Call the_target->arch_setup.
10798 * target.h (struct target_ops) <arch_setup>: New field.
10799 (target_arch_setup): New marco.
10800 * lynx-low.c (lynx_target_ops): Update.
10801 * nto-low.c (nto_target_ops): Update.
10802 * spu-low.c (spu_target_ops): Update.
10803 * win32-low.c (win32_target_ops): Update.
10805 2015-07-24 Yao Qi <yao.qi@linaro.org>
10807 * linux-low.c (linux_add_process): Don't set
10808 proc->priv->new_inferior.
10809 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10810 (linux_attach): Likewise.
10812 2015-07-24 Yao Qi <yao.qi@linaro.org>
10814 * server.c (start_inferior): Code refactor.
10816 2015-07-24 Yao Qi <yao.qi@linaro.org>
10818 * server.c (process_serial_event): Set general_thread.
10820 2015-07-21 Yao Qi <yao.qi@linaro.org>
10822 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10823 aarch64_linux_get_debug_reg_capacity.
10825 2015-07-17 Yao Qi <yao.qi@linaro.org>
10827 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10828 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10829 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10830 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10831 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10832 (AARCH64_HWP_ALIGNMENT): Likewise.
10833 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10834 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10835 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10836 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10837 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10838 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10839 (struct aarch64_debug_reg_state): Likewise.
10840 (struct arch_lwp_info): Likewise.
10841 (aarch64_align_watchpoint): Likewise.
10842 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10843 (aarch64_watchpoint_length): Likewise.
10844 (aarch64_point_encode_ctrl_reg): Likewise
10845 (aarch64_point_is_aligned): Likewise.
10846 (aarch64_align_watchpoint): Likewise.
10847 (aarch64_linux_set_debug_regs):
10848 (aarch64_dr_state_insert_one_point): Likewise.
10849 (aarch64_dr_state_remove_one_point): Likewise.
10850 (aarch64_handle_breakpoint): Likewise.
10851 (aarch64_handle_aligned_watchpoint): Likewise.
10852 (aarch64_handle_unaligned_watchpoint): Likewise.
10853 (aarch64_handle_watchpoint): Likewise.
10855 2015-07-17 Yao Qi <yao.qi@linaro.org>
10857 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10858 and don't aarch64_get_debug_reg_state. All callers update.
10859 (aarch64_handle_aligned_watchpoint): Likewise.
10860 (aarch64_handle_unaligned_watchpoint): Likewise.
10861 (aarch64_handle_watchpoint): Likewise.
10862 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10863 (aarch64_remove_point): Likewise.
10865 2015-07-17 Yao Qi <yao.qi@linaro.org>
10867 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10869 (aarch64_handle_unaligned_watchpoint): Likewise.
10871 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10873 Revert the previous 3 commits:
10874 Move gdb_regex* to common/
10875 Move linux_find_memory_regions_full & co.
10876 gdbserver build-id attribute generator
10878 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10879 Jan Kratochvil <jan.kratochvil@redhat.com>
10881 gdbserver build-id attribute generator.
10882 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10883 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10884 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10886 (get_dynamic): Use find_pdhr to traverse program headers.
10887 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10888 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10889 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10890 (get_hex_build_id): New.
10891 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10892 to reply XML document.
10894 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10895 Jan Kratochvil <jan.kratochvil@redhat.com>
10897 * target.c: Include target/target-utils.h and fcntl.h.
10898 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10899 (target_fileio_read_stralloc): New functions.
10901 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10903 * Makefile.in (OBS): Add gdb_regex.o.
10904 (gdb_regex.o): New.
10905 * config.in: Rebuilt.
10906 * configure: Rebuilt.
10908 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10909 Jan Kratochvil <jan.kratochvil@redhat.com>
10911 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10912 * Makefile.in (OBS): Add target-utils.o.
10913 (linux-maps.o, target-utils.o): New.
10914 * configure.srv (srv_linux_obj): Add linux-maps.o.
10916 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10918 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10919 function, return 1.
10920 (the_low_target): Install it.
10922 2015-07-14 Pedro Alves <palves@redhat.com>
10924 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10925 Instead, ignore ECHILD, and throw an error for other errnos.
10927 2015-07-10 Pedro Alves <palves@redhat.com>
10929 * event-loop.c (struct callback_event) <data>: Change type to
10930 gdb_client_data instance instead of gdb_client_data pointer.
10931 (append_callback_event): Adjust.
10933 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10935 * linux-aarch64-low.c: Add comments for each linux_target_ops
10936 method. Remove comments already covered in target_ops and
10937 linux_target_ops definitions.
10938 (the_low_target): Add comments for each unimplemented method.
10940 2015-07-09 Yao Qi <yao.qi@linaro.org>
10942 * linux-aarch64-low.c (aarch64_regmap): Remove.
10943 (aarch64_usrregs_info): Remove.
10944 (regs_info): Set field usrregs to NULL.
10946 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10948 * linux-low.c: Include "rsp-low.h"
10949 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10950 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10951 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10952 (handle_btrace_enable_pt): New.
10953 (handle_btrace_general_set): Support "pt".
10954 (handle_btrace_conf_general_set): Support "pt:size".
10956 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10958 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10961 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10963 * linux-aarch64-low.c: Remove comment about endianness.
10964 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10965 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10968 2015-06-24 Gary Benson <gbenson@redhat.com>
10970 * linux-i386-ipa.c (stdint.h): Do not include.
10971 * lynx-i386-low.c (stdint.h): Likewise.
10972 * lynx-ppc-low.c (stdint.h): Likewise.
10973 * mem-break.c (stdint.h): Likewise.
10974 * thread-db.c (stdint.h): Likewise.
10975 * tracepoint.c (stdint.h): Likewise.
10976 * win32-low.c (stdint.h): Likewise.
10978 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10980 * server.c (write_qxfer_response): Update call to
10981 remote_escape_output.
10983 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10984 Jan Kratochvil <jan.kratochvil@redhat.com>
10986 Merge multiple hex conversions.
10987 * gdbreplay.c (tohex): Rename to 'fromhex'.
10988 (logchar): Use fromhex.
10990 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10992 * server.c (handle_qxfer_libraries): Set `version' attribute for
10995 2015-06-10 Gary Benson <gbenson@redhat.com>
10997 * target.h (struct target_ops) <multifs_open>: New field.
10998 <multifs_unlink>: Likewise.
10999 <multifs_readlink>: Likewise.
11000 * linux-low.c (nat/linux-namespaces.h): New include.
11001 (linux_target_ops): Initialize the_target->multifs_open,
11002 the_target->multifs_unlink and the_target->multifs_readlink.
11003 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11004 * hostio.c (hostio_fs_pid): New static variable.
11005 (hostio_handle_new_gdb_connection): New function.
11006 (handle_setfs): Likewise.
11007 (handle_open): Use the_target->multifs_open as appropriate.
11008 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11009 (handle_readlink): Use the_target->multifs_readlink as
11011 (handle_vFile): Handle vFile:setfs packets.
11012 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11013 after target_handle_new_gdb_connection.
11015 2015-06-10 Gary Benson <gbenson@redhat.com>
11017 * configure.ac (AC_CHECK_FUNCS): Add setns.
11018 * config.in: Regenerate.
11019 * configure: Likewise.
11020 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11021 (linux-namespaces.o): New rule.
11022 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11024 2015-06-09 Gary Benson <gbenson@redhat.com>
11026 * hostio.c (handle_open): Process mode argument with
11027 fileio_to_host_mode.
11029 2015-06-01 Yao Qi <yao.qi@linaro.org>
11031 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11032 * linux-x86-low.c: Likewise.
11034 2015-05-28 Don Breazeal <donb@codesourcery.com>
11036 * linux-low.c (handle_extended_wait): Initialize
11037 thread_info.last_resume_kind for new fork children.
11039 2015-05-15 Pedro Alves <palves@redhat.com>
11041 * target.h (target_handle_new_gdb_connection): Rewrite using if
11042 wrapped in do/while.
11044 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11046 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11047 * configure, config.in: Regenerate.
11048 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11051 2015-05-12 Don Breazeal <donb@codesourcery.com>
11053 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11054 PTRACE_EVENT_VFORK_DONE.
11055 (linux_low_ptrace_options, extended_event_reported): Add vfork
11057 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11058 and "vforkdone" for RSP 'T' Stop Reply Packet.
11059 * server.h (report_vfork_events): Declare
11062 2015-05-12 Don Breazeal <donb@codesourcery.com>
11064 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11065 (the_low_target) <new_fork>: Initialize new member.
11066 * linux-arm-low.c (arm_new_fork): New function.
11067 (the_low_target) <new_fork>: Initialize new member.
11068 * linux-low.c (handle_extended_wait): Call new target function
11070 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11071 * linux-mips-low.c (mips_add_watchpoint): New function
11072 extracted from mips_insert_point.
11073 (the_low_target) <new_fork>: Initialize new member.
11074 (mips_linux_new_fork): New function.
11075 (mips_insert_point): Call mips_add_watchpoint.
11076 * linux-x86-low.c (x86_linux_new_fork): New function.
11077 (the_low_target) <new_fork>: Initialize new member.
11079 2015-05-12 Don Breazeal <donb@codesourcery.com>
11081 * linux-low.c (handle_extended_wait): Implement return value,
11082 rename argument 'event_child' to 'event_lwp', handle
11083 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11084 (linux_low_ptrace_options): New function.
11085 (linux_low_filter_event): Call linux_low_ptrace_options,
11086 use different argument fo linux_enable_event_reporting,
11087 use return value from handle_extended_wait.
11088 (extended_event_reported): New function.
11089 (linux_wait_1): Call extended_event_reported and set
11090 status to report fork events.
11091 (linux_write_memory): Add pid to debug message.
11092 (reset_lwp_ptrace_options_callback): New function.
11093 (linux_handle_new_gdb_connection): New function.
11094 (linux_target_ops): Initialize new structure member.
11095 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11096 * lynx-low.c: Initialize new structure member.
11097 * remote-utils.c (prepare_resume_reply): Implement stop reason
11098 "fork" for "T" stop message.
11099 * server.c (handle_query): Call handle_new_gdb_connection.
11100 * server.h (report_fork_events): Declare global flag.
11101 * target.h (struct target_ops) <handle_new_gdb_connection>:
11103 (target_handle_new_gdb_connection): New macro.
11104 * win32-low.c: Initialize new structure member.
11106 2015-05-12 Don Breazeal <donb@codesourcery.com>
11108 * mem-break.c (APPEND_TO_LIST): Define macro.
11109 (clone_agent_expr): New function.
11110 (clone_one_breakpoint): New function.
11111 (clone_all_breakpoints): New function.
11112 * mem-break.h: Declare new functions.
11114 2015-05-12 Don Breazeal <donb@codesourcery.com>
11116 * linux-low.c (linux_supports_fork_events): New function.
11117 (linux_supports_vfork_events): New function.
11118 (linux_target_ops): Initialize new structure members.
11119 (initialize_low): Call linux_check_ptrace_features.
11120 * lynx-low.c (lynx_target_ops): Initialize new structure
11122 * server.c (report_fork_events, report_vfork_events):
11124 (handle_query): Add new features to qSupported packet and
11126 (captured_main): Initialize new global variables.
11127 * target.h (struct target_ops) <supports_fork_events>:
11129 <supports_vfork_events>: New member.
11130 (target_supports_fork_events): New macro.
11131 (target_supports_vfork_events): New macro.
11132 * win32-low.c (win32_target_ops): Initialize new structure
11135 2015-05-12 Gary Benson <gbenson@redhat.com>
11137 * server.c (handle_qxfer_exec_file): Use current process
11140 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11142 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11143 Remove HAVE_PTRACE_GETREGS conditionals.
11144 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11145 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11147 2015-05-08 Yao Qi <yao.qi@linaro.org>
11149 * linux-low.c (linux_supports_conditional_breakpoints): New
11151 (linux_target_ops): Install new target method.
11152 * lynx-low.c (lynx_target_ops): Install NULL hook for
11153 supports_conditional_breakpoints.
11154 * nto-low.c (nto_target_ops): Likewise.
11155 * spu-low.c (spu_target_ops): Likewise.
11156 * win32-low.c (win32_target_ops): Likewise.
11157 * server.c (handle_query): Check
11158 target_supports_conditional_breakpoints.
11159 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11161 (target_supports_conditional_breakpoints): New macro.
11163 2015-05-06 Pedro Alves <palves@redhat.com>
11166 * server.c (start_inferior): If the process exits, mourn it.
11168 2015-04-21 Gary Benson <gbenson@redhat.com>
11170 * hostio.c (fileio_open_flags_to_host): Factored out to
11171 fileio_to_host_openflags in common/fileio.c. Single use
11174 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11176 * linux-xtensa-low.c (xtensa_fill_gregset)
11177 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11180 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11182 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11183 (regs_info): Replace usrregs pointer with NULL.
11185 2015-04-17 Gary Benson <gbenson@redhat.com>
11187 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11188 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11189 * server.c (handle_qxfer_exec_file): New function.
11190 (qxfer_packets): Add exec-file entry.
11191 (handle_query): Report qXfer:exec-file:read as supported packet.
11193 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11195 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11197 2015-04-09 Gary Benson <gbenson@redhat.com>
11199 * hostio-errno.c (errno_to_fileio_error): Remove function.
11200 Update caller to use remote_fileio_to_fio_error.
11202 2015-04-09 Yao Qi <yao.qi@linaro.org>
11204 * linux-low.c (linux_insert_point): Call
11205 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11206 (linux_remove_point): Call remove_memory_breakpoint if type is
11208 * linux-x86-low.c (x86_insert_point): Don't call
11209 insert_memory_breakpoint.
11210 (x86_remove_point): Don't call remove_memory_breakpoint.
11212 2015-04-01 Pedro Alves <palves@redhat.com>
11213 Cleber Rosa <crosa@redhat.com>
11215 * server.c (gdbserver_usage): Reorganize and extend the usage
11218 2015-03-24 Pedro Alves <palves@redhat.com>
11220 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11221 output. Also dump TRAP_TRACE.
11222 (linux_low_filter_event): In debug output, distinguish a
11223 resume_stop SIGSTOP from a delayed SIGSTOP.
11225 2015-03-24 Gary Benson <gbenson@redhat.com>
11227 * linux-x86-low.c (x86_linux_new_thread): Moved to
11229 (x86_linux_prepare_to_resume): Likewise.
11231 2015-03-24 Gary Benson <gbenson@redhat.com>
11233 * Makefile.in (x86-linux-dregs.o): New rule.
11234 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11235 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11236 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11237 (x86_linux_dr_get): Likewise.
11238 (x86_linux_dr_set): Likewise.
11239 (update_debug_registers_callback): Likewise.
11240 (x86_linux_dr_set_addr): Likewise.
11241 (x86_linux_dr_get_addr): Likewise.
11242 (x86_linux_dr_set_control): Likewise.
11243 (x86_linux_dr_get_control): Likewise.
11244 (x86_linux_dr_get_status): Likewise.
11245 (x86_linux_update_debug_registers): Likewise.
11247 2015-03-24 Gary Benson <gbenson@redhat.com>
11249 * linux-x86-low.c (x86_linux_update_debug_registers):
11250 New function, factored out from...
11251 (x86_linux_prepare_to_resume): ...this.
11253 2015-03-24 Gary Benson <gbenson@redhat.com>
11255 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11256 (x86_linux_dr_set): Likewise.
11257 (update_debug_registers_callback): Likewise.
11258 (x86_linux_dr_set_addr): Likewise.
11259 (x86_linux_dr_get_addr): Likewise.
11260 (x86_linux_dr_set_control): Likewise.
11261 (x86_linux_dr_get_control): Likewise.
11262 (x86_linux_dr_get_status): Likewise.
11263 (x86_linux_prepare_to_resume): Likewise.
11265 2015-03-24 Gary Benson <gbenson@redhat.com>
11267 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11268 Use perror_with_name. Pass string through gettext.
11269 (x86_linux_dr_set): Likewise.
11271 2015-03-24 Gary Benson <gbenson@redhat.com>
11273 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11274 (x86_linux_dr_set_addr): ...this.
11275 (x86_dr_low_get_addr): Rename to...
11276 (x86_linux_dr_get_addr): ...this.
11277 (x86_dr_low_set_control): Rename to...
11278 (x86_linux_dr_set_control): ...this.
11279 (x86_dr_low_get_control): Rename to...
11280 (x86_linux_dr_get_control): ...this.
11281 (x86_dr_low_get_status): Rename to...
11282 (x86_linux_dr_get_status): ...this.
11283 (x86_dr_low): Update with new function names.
11285 2015-03-24 Gary Benson <gbenson@redhat.com>
11287 * Makefile.in (x86-linux.o): New rule.
11288 * configure.srv: Add x86-linux.o to relevant targets.
11289 * linux-low.c (lwp_set_arch_private_info): New function.
11290 (lwp_arch_private_info): Likewise.
11291 * linux-x86-low.c: Include nat/x86-linux.h.
11292 (arch_lwp_info): Removed structure.
11293 (update_debug_registers_callback):
11294 Use lwp_set_debug_registers_changed.
11295 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11296 and lwp_set_debug_registers_changed.
11297 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11299 2015-03-24 Gary Benson <gbenson@redhat.com>
11301 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11302 * linux-arm-low.c (arm_new_thread): Likewise.
11303 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11304 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11305 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11306 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11308 2015-03-24 Gary Benson <gbenson@redhat.com>
11310 * linux-low.c (ptid_of_lwp): New function.
11311 (lwp_is_stopped): Likewise.
11312 (lwp_stop_reason): Likewise.
11313 * linux-x86-low.c (update_debug_registers_callback):
11314 Use lwp_is_stopped.
11315 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11318 2015-03-24 Gary Benson <gbenson@redhat.com>
11320 * linux-low.h (linux_stop_lwp): Remove declaration.
11322 2015-03-24 Gary Benson <gbenson@redhat.com>
11324 * linux-low.h: Include nat/linux-nat.h.
11325 * linux-low.c (iterate_over_lwps_args): New structure.
11326 (iterate_over_lwps_filter): New function.
11327 (iterate_over_lwps): Likewise.
11328 * linux-x86-low.c (update_debug_registers_callback):
11329 Update signature to what iterate_over_lwps expects.
11330 Remove PID check that iterate_over_lwps now performs.
11331 (x86_dr_low_set_addr): Use iterate_over_lwps.
11332 (x86_dr_low_set_control): Likewise.
11334 2015-03-24 Gary Benson <gbenson@redhat.com>
11336 * linux-x86-low.c (x86_debug_reg_state): New function.
11337 (x86_linux_prepare_to_resume): Use the above.
11339 2015-03-24 Gary Benson <gbenson@redhat.com>
11341 * linux-low.c (current_lwp_ptid): New function.
11342 * linux-x86-low.c: Include nat/linux-nat.h.
11343 (x86_dr_low_get_addr): Use current_lwp_ptid.
11344 (x86_dr_low_get_control): Likewise.
11345 (x86_dr_low_get_status): Likewise.
11347 2015-03-20 Pedro Alves <palves@redhat.com>
11349 * tracepoint.c (cmd_qtstatus): Make "str" const.
11351 2015-03-20 Pedro Alves <palves@redhat.com>
11353 * server.c (handle_general_set): Make "req_str" const.
11355 2015-03-19 Pedro Alves <palves@redhat.com>
11357 * linux-low.c (linux_resume_one_lwp): Rename to ...
11358 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11359 instead call perror_with_name.
11360 (check_ptrace_stopped_lwp_gone): New function.
11361 (linux_resume_one_lwp): Reimplement as wrapper around
11362 linux_resume_one_lwp_throw that swallows errors if the LWP is
11365 2015-03-19 Pedro Alves <palves@redhat.com>
11367 * linux-low.c (count_events_callback, select_event_lwp_callback):
11368 No longer check whether the thread has resume_stop as last resume
11371 2015-03-19 Pedro Alves <palves@redhat.com>
11373 * linux-low.c (count_events_callback, select_event_lwp_callback):
11374 Use the lwp's status_pending_p field, not the thread's.
11376 2015-03-19 Pedro Alves <palves@redhat.com>
11378 * linux-low.c (select_event_lwp_callback): Update comments to
11379 no longer mention SIGTRAP.
11381 2015-03-18 Gary Benson <gbenson@redhat.com>
11383 * server.c (handle_query): Do not report vFile:fstat as supported.
11385 2015-03-11 Gary Benson <gbenson@redhat.com>
11387 * hostio.c (sys/types.h): New include.
11388 (sys/stat.h): Likewise.
11389 (common-remote-fileio.h): Likewise.
11390 (handle_fstat): New function.
11391 (handle_vFile): Handle vFile:fstat packets.
11393 2015-03-11 Gary Benson <gbenson@redhat.com>
11395 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11396 struct stat.st_blocks and struct stat.st_blksize.
11397 * configure: Regenerate.
11398 * config.in: Likewise.
11399 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11400 (OBS): Add common-remote-fileio.o.
11401 (common-remote-fileio.o): New rule.
11403 2015-03-09 Pedro Alves <palves@redhat.com>
11405 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11406 'struct sockaddr' pointer in 'accept' call.
11408 2015-03-09 Pedro Alves <palves@redhat.com>
11411 2015-03-07 Pedro Alves <palves@redhat.com>
11412 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11413 or <winsock2.h> here. Instead include "gdb_socket.h".
11414 (remote_open): Use union gdb_sockaddr_u.
11415 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11416 or <winsock2.h> here. Instead include "gdb_socket.h".
11417 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11418 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11420 (init_named_socket, gdb_agent_helper_thread): Use union
11423 2015-03-07 Pedro Alves <palves@redhat.com>
11425 * configure.ac (build_warnings): Move
11426 -Wdeclaration-after-statement to the C-specific set.
11427 * configure: Regenerate.
11429 2015-03-07 Pedro Alves <palves@redhat.com>
11431 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11432 or <winsock2.h> here. Instead include "gdb_socket.h".
11433 (remote_open): Use union gdb_sockaddr_u.
11434 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11435 or <winsock2.h> here. Instead include "gdb_socket.h".
11436 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11437 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11439 (init_named_socket, gdb_agent_helper_thread): Use union
11442 2015-03-07 Pedro Alves <palves@redhat.com>
11444 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11447 2015-03-06 Yao Qi <yao.qi@linaro.org>
11449 * linux-aarch64-low.c (aarch64_insert_point): Use
11450 show_debug_regs as a boolean.
11451 (aarch64_remove_point): Likewise.
11453 2015-03-05 Pedro Alves <palves@redhat.com>
11455 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11456 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11457 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11458 * nto-low.c (nto_target_ops): Likewise.
11459 * spu-low.c (spu_target_ops): Likewise.
11460 * win32-low.c (win32_target_ops): Likewise.
11462 2015-03-04 Pedro Alves <palves@redhat.com>
11464 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11465 Decide whether a breakpoint triggered based on the SIGTRAP's
11467 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11468 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11469 (linux_low_filter_event): Check for breakpoints before checking
11471 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11473 (linux_stopped_by_sw_breakpoint)
11474 (linux_supports_stopped_by_sw_breakpoint)
11475 (linux_stopped_by_hw_breakpoint)
11476 (linux_supports_stopped_by_hw_breakpoint): New functions.
11477 (linux_target_ops): Install new target methods.
11479 2015-03-04 Pedro Alves <palves@redhat.com>
11481 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11482 * server.c (swbreak_feature, hwbreak_feature): New globals.
11483 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11484 (captured_main): Clear swbreak_feature and hwbreak_feature.
11485 * server.h (swbreak_feature, hwbreak_feature): Declare.
11486 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11487 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11488 supports_stopped_by_hw_breakpoint>: New fields.
11489 (target_supports_stopped_by_sw_breakpoint)
11490 (target_stopped_by_sw_breakpoint)
11491 (target_supports_stopped_by_hw_breakpoint)
11492 (target_stopped_by_hw_breakpoint): Declare.
11494 2015-03-04 Pedro Alves <palves@redhat.com>
11496 enum lwp_stop_reason -> enum target_stop_reason
11497 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11498 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11499 (linux_wait_1, stuck_in_jump_pad_callback)
11500 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11501 (linux_stopped_by_watchpoint):
11502 * linux-low.h (enum lwp_stop_reason): Delete.
11503 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11504 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11506 2015-03-04 Yao Qi <yao.qi@linaro.org>
11508 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11510 2015-03-03 Gary Benson <gbenson@redhat.com>
11512 * hostio.c (handle_vFile): Fix prefix lengths.
11514 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11516 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11519 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11521 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11522 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11523 (clean): Add "rm -f" for above C files.
11524 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11525 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11526 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11527 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11528 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11529 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11530 (init_registers_s390x_vx_linux64)
11531 (init_registers_s390x_tevx_linux64)
11532 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11533 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11535 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11536 (s390_store_vxrs_high): New functions.
11537 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11539 (s390_arch_setup): Add logic for selecting one of the new target
11540 descriptions. Activate the new vector regsets if applicable.
11541 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11542 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11543 and init_registers_s390x_tevx_linux64.
11545 2015-03-01 Pedro Alves <palves@redhat.com>
11547 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11550 2015-02-27 Pedro Alves <palves@redhat.com>
11552 * linux-x86-low.c (u_debugreg_offset): New function.
11553 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11555 2015-02-27 Pedro Alves <palves@redhat.com>
11557 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11558 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11559 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11560 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11561 (ps_lsetfpregs, ps_getpid)
11562 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11563 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11564 (ps_lsetxregs, ps_plog): Declare.
11566 2015-02-27 Pedro Alves <palves@redhat.com>
11568 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11569 IP_AGENT_EXPORT_FUNC.
11570 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11571 IP_AGENT_EXPORT_FUNC.
11572 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11573 (IP_AGENT_EXPORT): Delete.
11574 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11575 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11576 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11577 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11578 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11579 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11580 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11581 (traceframe_read_count, traceframe_write_count)
11582 (traceframes_created, trace_state_variables, get_raw_reg)
11583 (get_trace_state_variable_value, set_trace_state_variable_value)
11584 (ust_loaded, helper_thread_id, cmd_buf): Use
11585 IPA_SYM_EXPORTED_NAME.
11586 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11587 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11588 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11589 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11590 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11591 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11592 EXTERN_C_PUSH/EXTERN_C_POP.
11593 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11594 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11595 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11596 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11597 (traceframe_write_count, traceframe_read_count)
11598 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11599 (about_to_request_buffer_space, get_trace_state_variable_value)
11600 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11601 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11602 EXTERN_C_PUSH/EXTERN_C_POP.
11603 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11604 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11605 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11606 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11607 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11608 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11609 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11610 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11612 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11613 (IP_AGENT_EXPORT_VAR_DECL): Define.
11614 (tracing): Declare.
11615 (gdb_agent_get_raw_reg): Declare.
11617 2015-02-27 Tom Tromey <tromey@redhat.com>
11618 Pedro Alves <palves@redhat.com>
11620 Rename symbols whose names are reserved C++ keywords throughout.
11622 2015-02-27 Pedro Alves <palves@redhat.com>
11624 * Makefile.in (COMPILER): New, get it from autoconf.
11625 (CXX): Get from autoconf instead.
11626 (COMPILE.pre): Use COMPILER.
11627 (CC-LD): Rename to ...
11628 (CC_LD): ... this. Use COMPILER.
11629 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11630 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11631 * acinclude.m4: Include build-with-cxx.m4.
11632 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11633 Disable -Werror by default if building in C++ mode.
11634 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11635 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11636 the C++ compiler. Save/restore CXXFLAGS too.
11637 * configure: Regenerate.
11639 2015-02-27 Pedro Alves <palves@redhat.com>
11641 * acinclude.m4: Include libiberty.m4.
11642 * configure.ac: Call libiberty_INIT.
11643 * config.in, configure: Regenerate.
11645 2015-02-26 Pedro Alves <palves@redhat.com>
11647 * linux-low.c (linux_wait_1): When incrementing the PC past a
11648 program breakpoint always use the_low_target.breakpoint_len as
11649 increment, rather than the maximum between that and
11650 the_low_target.decr_pc_after_break.
11652 2015-02-23 Pedro Alves <palves@redhat.com>
11654 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11655 thread was doing a step-over; always adjust the PC if
11656 we stepped over a permanent breakpoint.
11657 (linux_wait_1): If we stepped over breakpoint that was on top of a
11658 permanent breakpoint, manually advance the PC past it.
11660 2015-02-23 Pedro Alves <palves@redhat.com>
11662 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11664 (x86_fill_gregset, x86_store_gregset): Use it when handling
11667 2015-02-20 Pedro Alves <palves@redhat.com>
11669 * thread-db.c: Include "nat/linux-procfs.h".
11670 (thread_db_init): Skip listing new threads if the kernel supports
11671 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11673 2015-02-20 Pedro Alves <palves@redhat.com>
11675 * linux-low.c (status_pending_p_callback): Use ptid_match.
11677 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11679 PR breakpoints/16812
11680 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11681 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11682 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11684 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11686 PR breakpoints/15956
11687 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11689 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11691 * linux-low.c (linux_low_btrace_conf): Print size.
11692 * server.c (handle_btrace_conf_general_set): New.
11693 (hanle_general_set): Call handle_btrace_conf_general_set.
11694 (handle_query): Report Qbtrace-conf:bts:size as supported.
11696 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11698 * linux-low.c (linux_low_enable_btrace): Update parameters.
11699 (linux_low_btrace_conf): New.
11700 (linux_target_ops)<to_btrace_conf>: Initialize.
11701 * server.c (current_btrace_conf): New.
11702 (handle_btrace_enable): Rename to ...
11703 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11704 to target_enable_btrace. Update comment. Update users.
11705 (handle_qxfer_btrace_conf): New.
11706 (qxfer_packets): Add btrace-conf entry.
11707 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11708 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11709 (target_ops)<read_btrace_conf>: New.
11710 (target_enable_btrace): Update parameters.
11711 (target_read_btrace_conf): New.
11713 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11715 * server.c (handle_btrace_general_set): Remove call to
11716 target_supports_btrace.
11717 (supported_btrace_packets): New.
11718 (handle_query): Call supported_btrace_packets.
11719 * target.h: include btrace-common.h.
11720 (btrace_target_info): Removed.
11721 (supports_btrace, target_supports_btrace): Update parameters.
11723 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11725 * Makefile.in (SFILES): Add common/btrace-common.c.
11726 (OBS): Add common/btrace-common.o.
11727 (btrace-common.o): Add build rules.
11728 * linux-low: Include btrace-common.h.
11729 (linux_low_read_btrace): Use struct btrace_data. Call
11730 btrace_data_init and btrace_data_fini.
11732 2015-02-06 Pedro Alves <palves@redhat.com>
11734 * thread-db.c (find_new_threads_callback): Add debug output.
11736 2015-02-04 Pedro Alves <palves@redhat.com>
11738 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11739 (resume_stopped_resumed_lwps): New function.
11740 (linux_wait_for_event_filtered): Use it.
11742 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11744 * Makefile.in (SFILES): Add linux-personality.c.
11745 (linux-personality.o): New rule.
11746 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11747 list of objects to be built.
11748 * linux-low.c: Include nat/linux-personality.h.
11749 (linux_create_inferior): Remove code to disable address space
11750 randomization (moved to ../nat/linux-personality.c). Create
11751 cleanup to disable address space randomization.
11753 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11755 * Makefile.in (posix-strerror.o): New rule.
11756 (mingw-strerror.o): Likewise.
11757 * configure: Regenerated.
11758 * configure.ac: Source file ../common/common.host. Initialize new
11759 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11761 2015-01-14 Yao Qi <yao@codesourcery.com>
11763 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11764 (ppc-linux.o): New rule.
11765 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11766 * configure.ac: AC_CHECK_FUNCS(getauxval).
11767 * config.in: Re-generated.
11768 * configure: Re-generated.
11769 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11770 ppc64_64bit_inferior_p
11772 2015-01-14 Yao Qi <yao@codesourcery.com>
11774 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11775 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11776 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11777 (PT_ORIG_R3, PT_TRAP): Likewise.
11778 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11779 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11780 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11782 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11784 * i387-fp.c (i387_cache_to_xsave): In look over
11785 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11786 zmmh_low_space field by use of zmmh_high_space.
11788 2015-01-09 Pedro Alves <palves@redhat.com>
11790 * linux-low.c (step_over_bkpt): Move higher up in the file.
11791 (handle_extended_wait): Don't store the stop_pc here.
11792 (get_stop_pc): Adjust comments and rename to ...
11793 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11794 stopped for a software breakpoint or hardware breakpoint.
11795 (thread_still_has_status_pending_p): New function.
11796 (status_pending_p_callback): Use
11797 thread_still_has_status_pending_p. If the event is no longer
11798 interesting, resume the LWP.
11799 (handle_tracepoints): Add assert.
11800 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11801 (wstatus_maybe_breakpoint): New function.
11802 (cancel_breakpoint): Delete function.
11803 (check_stopped_by_watchpoint): New function, factored out from
11804 linux_low_filter_event.
11805 (lp_status_maybe_breakpoint): Delete function.
11806 (linux_low_filter_event): Remove filter_ptid argument.
11807 Leave thread group exits pending here. Store the LWP's stop PC.
11808 Always leave events pending.
11809 (linux_wait_for_event_filtered): Pull all events out of the
11810 kernel, and leave them all pending.
11811 (count_events_callback, select_event_lwp_callback): Consider all
11813 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11814 (select_event_lwp): Only give preference to the stepping LWP in
11815 all-stop mode. Adjust comments.
11816 (ignore_event): New function.
11817 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11818 references to cancel_breakpoints. Adjust to renames. Also give
11819 equal priority to all LWPs that have had events in non-stop mode.
11820 If reporting a software breakpoint event, unadjust the LWP's PC.
11821 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11822 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11824 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11825 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11826 (linux_stopped_by_watchpoint): Adjust.
11827 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11828 * linux-low.h (enum lwp_stop_reason): New.
11829 (struct lwp_info) <stop_pc>: Adjust comment.
11830 <stopped_by_watchpoint>: Delete field.
11831 <stop_reason>: New field.
11832 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11833 * mem-break.c (software_breakpoint_inserted_here)
11834 (hardware_breakpoint_inserted_here): New function.
11835 * mem-break.h (software_breakpoint_inserted_here)
11836 (hardware_breakpoint_inserted_here): Declare.
11837 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11838 (cancel_breakpoints): Delete.
11839 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11840 (upload_fast_traceframes): Remove references to
11841 cancel_breakpoints.
11843 2015-01-09 Pedro Alves <palves@redhat.com>
11845 * thread-db.c (find_new_threads_callback): Ignore thread if the
11846 kernel thread ID is -1.
11848 2015-01-09 Pedro Alves <palves@redhat.com>
11850 * linux-low.c (linux_attach_fail_reason_string): Move to
11851 nat/linux-ptrace.c, and rename.
11852 (linux_attach_lwp): Update comment.
11853 (attach_proc_task_lwp_callback): New function.
11854 (linux_attach): Adjust to rename and use
11855 linux_proc_attach_tgid_threads.
11856 (linux_attach_fail_reason_string): Delete declaration.
11858 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11860 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11861 * server.c (gdbserver_version): Likewise.
11863 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11865 * remote-utils.c: Include ctype.h.
11866 (input_interrupt): Explicitly handle the case when the char
11867 received is the NUL byte. Improve the printing of non-ASCII
11870 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11872 * linux-low.c (linux_low_filter_event): Update call to
11873 linux_enable_event_reporting following the addition of
11874 a new parameter to that function.
11876 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11879 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11880 (AARCH64_FPCR_REGNO): Likewise.
11881 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11882 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11883 (aarch64_store_fpregset): Likewise.
11885 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11887 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11888 Remove FIXME comment about assumption about N.
11890 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11892 * configure.ac: If large-file support is disabled in GDBserver,
11893 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11894 * configure: Regenerate.
11896 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11898 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11899 warning upon ENODATA from ptrace.
11900 * linux-s390-low.c (s390_store_tdb): New.
11901 (s390_regsets): Add regset for NT_S390_TDB.
11903 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11905 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11906 without a fill_function.
11907 * linux-s390-low.c (s390_fill_last_break): Remove.
11908 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11909 (s390_arch_setup): Use regset's size instead of fill_function for
11910 loop end condition.
11912 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11914 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11915 the regset's store function when ptrace returned an error.
11916 * regcache.c (get_thread_regcache): Invalidate register cache
11917 before fetching inferior's registers.
11919 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11921 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11922 while-loop as for-loop.
11923 (regsets_store_inferior_registers): Likewise.
11925 2014-11-28 Yao Qi <yao@codesourcery.com>
11927 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11928 * config.in, configure: Re-generate.
11929 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11932 2014-11-21 Yao Qi <yao@codesourcery.com>
11934 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11935 (AC_CHECK_HEADERS): Remove malloc.h.
11936 * configure: Re-generated.
11937 * config.in: Re-generated.
11938 * server.h: Don't include alloca.h and malloc.h.
11939 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11940 Don't include malloc.h.
11942 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11944 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11945 corresponding ERRNO check in same block.
11947 2014-11-12 Pedro Alves <palves@redhat.com>
11949 * server.c (cont_thread): Update comment.
11950 (start_inferior, attach_inferior): No longer clear cont_thread.
11951 (handle_v_cont): No longer set cont_thread.
11952 (captured_main): Clear cont_thread each time a GDB connects.
11954 2014-11-12 Pedro Alves <palves@redhat.com>
11956 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11957 thread, and don't resume all threads if the Hc thread has exited.
11959 2014-11-12 Pedro Alves <palves@redhat.com>
11961 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11962 the process group instead of to a specific LWP.
11964 2014-10-15 Pedro Alves <palves@redhat.com>
11967 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11969 (arm_set_thread_context): Delete.
11970 (the_low_target): Adjust.
11971 * win32-i386-low.c (debug_registers_changed)
11972 (debug_registers_used): Delete.
11973 (update_debug_registers_callback): New function.
11974 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11975 needing to update their debug registers.
11976 (win32_get_current_dr): New function.
11977 (x86_dr_low_get_addr, x86_dr_low_get_control)
11978 (x86_dr_low_get_status): Fetch the debug register from the thread
11980 (i386_initial_stuff): Adjust.
11981 (i386_get_thread_context): Remove current_event parameter. Don't
11982 clear debug_registers_changed nor copy DR values to
11984 (i386_set_thread_context): Delete.
11985 (i386_prepare_to_resume): New function.
11986 (i386_thread_added): Mark the thread as needing to update irs
11988 (the_low_target): Remove i386_set_thread_context and install
11989 i386_prepare_to_resume.
11990 * win32-low.c (win32_get_thread_context): Adjust.
11991 (win32_set_thread_context): Use SetThreadContext
11993 (win32_prepare_to_resume): New function.
11994 (win32_require_context): New function, factored out from ...
11995 (thread_rec): ... this.
11996 (continue_one_thread): Call win32_prepare_to_resume on each thread
11997 we're about to continue.
11998 (win32_resume): Call win32_prepare_to_resume on the event thread.
11999 * win32-low.h (struct win32_thread_info)
12000 <debug_registers_changed>: New field.
12001 (struct win32_target_ops): Change prototype of set_thread_context,
12002 delete set_thread_context and add prepare_to_resume.
12003 (win32_require_context): New declaration.
12005 2014-10-08 Gary Benson <gbenson@redhat.com>
12007 * server.h: Do not include common-exceptions.h.
12009 2014-10-08 Gary Benson <gbenson@redhat.com>
12011 * server.h: Do not include cleanups.h.
12013 2014-09-30 James Hogan <james.hogan@imgtec.com>
12015 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12016 mips64-dsp-linux.c.
12018 2014-09-23 Yao Qi <yao@codesourcery.com>
12020 * linux-low.c (lp_status_maybe_breakpoint): New function.
12021 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12022 (count_events_callback): Likewise.
12023 (select_event_lwp_callback): Likewise.
12024 (cancel_breakpoints_callback): Likewise.
12026 2014-09-19 Don Breazeal <donb@codesourcery.com>
12028 * linux-low.c (handle_extended_wait): Call
12029 linux_ptrace_get_extended_event.
12030 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12031 linux_is_extended_waitstatus.
12033 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12035 * Makefile.in (CPPFLAGS): Define.
12036 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12037 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12039 2014-09-16 Gary Benson <gbenson@redhat.com>
12041 * inferiors.h (current_inferior): Renamed as...
12042 (current_thread): New variable. All uses updated.
12043 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12044 (maybe_move_out_of_jump_pad): Likewise.
12045 (cancel_breakpoint): Likewise.
12046 (linux_low_filter_event): Likewise.
12047 (wait_for_sigstop): Likewise.
12048 (linux_resume_one_lwp): Likewise.
12049 (need_step_over_p): Likewise.
12050 (start_step_over): Likewise.
12051 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12052 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12053 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12054 and save_inferior as saved_thread.
12055 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12057 (regcache_invalidate_thread): Likewise.
12058 * remote-utils.c (prepare_resume_reply): Likewise.
12059 * thread-db.c (thread_db_get_tls_address): Likewise.
12060 (disable_thread_event_reporting): Likewise.
12061 (remove_thread_event_breakpoints): Likewise.
12062 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12064 * target.h (set_desired_inferior): Renamed as...
12065 (set_desired_thread): New declaration. All uses updated.
12066 * server.c (myresume): Updated comment to reference thread instead
12068 (handle_serial_event): Likewise.
12069 (handle_target_event): Likewise.
12071 2014-09-12 Tom Tromey <tromey@redhat.com>
12072 Gary Benson <gbenson@redhat.com>
12074 * regcache.h: Include common-regcache.h.
12075 (regcache_read_pc): Don't declare.
12076 * regcache.c (get_thread_regcache_for_ptid): New function.
12078 2014-09-11 Tom Tromey <tromey@redhat.com>
12079 Gary Benson <gbenson@redhat.com>
12081 * symbol.c: New file.
12082 * Makefile.in (SFILES): Add symbol.c.
12083 (OBS): Add symbol.o.
12085 2014-09-11 Gary Benson <gbenson@redhat.com>
12087 * target.c (target_stop_ptid, target_continue_ptid): New
12090 2014-09-11 Tom Tromey <tromey@redhat.com>
12091 Gary Benson <gbenson@redhat.com>
12093 * target.h: Include target/target.h.
12094 * target.c (target_read_memory, target_read_uint32)
12095 (target_write_memory): New functions.
12097 2014-09-11 Gary Benson <gbenson@redhat.com>
12099 * server.h (debug_hw_points): Don't declare.
12100 * server.c (debug_hw_points): Don't define. Replace all uses
12101 with show_debug_regs.
12102 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12103 all uses with show_debug_regs.
12105 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12107 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12108 endianness into account.
12109 (ppc_supply_ptrace_register): Likewise.
12111 2014-09-03 James Hogan <james.hogan@imgtec.com>
12113 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12114 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12116 2014-09-03 Gary Benson <gbenson@redhat.com>
12118 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12119 ALL_DEBUG_ADDRESS_REGISTERS.
12121 2014-09-02 Gary Benson <gbenson@redhat.com>
12123 * i386-low.h: Renamed as...
12124 * x86-low.h: New file. All type, function and variable name
12125 prefixes changed from "i386_" to "x86_". All references updated.
12126 * i386-low.c: Renamed as...
12127 * x86-low.c: New file. All type, function and variable name
12128 prefixes changed from "i386_" to "x86_". All references updated.
12130 2014-09-02 Gary Benson <gbenson@redhat.com>
12132 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12133 (x86_linux_new_thread): Likewise.
12135 2014-08-29 Gary Benson <gbenson@redhat.com>
12137 * server.h (setjmp.h): Do not include.
12138 (toplevel): Do not declare.
12139 (common-exceptions.h): Include.
12140 (cleanups.h): Likewise.
12141 * server.c (toplevel): Do not define.
12142 (exit_code): New static global.
12143 (detach_or_kill_for_exit_cleanup): New function.
12144 (main): New function. Original main renamed to...
12145 (captured_main): New function.
12146 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12148 2014-08-29 Gary Benson <gbenson@redhat.com>
12150 * Makefile.in (SFILES): Add common/common-exceptions.c.
12151 (OBS): Add common-exceptions.o.
12152 (common-exceptions.o): New rule.
12153 * utils.c (prepare_to_throw_exception): New function.
12155 2014-08-29 Gary Benson <gbenson@redhat.com>
12157 * config.in: Regenerate.
12158 * configure: Likewise.
12160 2014-08-29 Gary Benson <gbenson@redhat.com>
12162 * Makefile.in (SFILES): Add common/cleanups.c.
12164 (cleanups.o): New rule.
12166 2014-08-29 Gary Benson <gbenson@redhat.com>
12168 * utils.c (internal_vwarning): New function.
12170 2014-08-28 Gary Benson <gbenson@redhat.com>
12172 * utils.h (fatal): Remove declaration.
12173 * utils.c (fatal): Remove function.
12175 2014-08-28 Gary Benson <gbenson@redhat.com>
12177 * tracepoint.c (gdb_agent_init): Replace fatal with
12179 (initialize_tracepoint): Likewise.
12181 2014-08-28 Gary Benson <gbenson@redhat.com>
12183 * remote-utils.c (remote_prepare): Replace fatal with error.
12185 2014-08-28 Gary Benson <gbenson@redhat.com>
12187 * linux-low.c (linux_async): Replace fatal with warning.
12188 Tidy up and return.
12189 (linux_start_non_stop): Return -1 if linux_async failed.
12191 2014-08-28 Gary Benson <gbenson@redhat.com>
12193 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12195 (i386_dr_low_get_addr): Remove vague comment.
12196 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12199 2014-08-28 Gary Benson <gbenson@redhat.com>
12201 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12202 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12204 (linux_resume_one_lwp): Likewise.
12205 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12207 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12208 with internal_error.
12209 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12210 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12211 (find_register_by_name): Replace fatal with internal_error.
12212 (find_regno): Likewise.
12213 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12214 * thread-db.c (thread_db_create_event): Likewise.
12215 (thread_db_load_search): Likewise.
12216 (try_thread_db_load_1): Likewise.
12217 * tracepoint.c (get_jump_space_head): Replace fatal with
12219 (claim_trampoline_space): Likewise.
12220 (have_fast_tracepoint_trampoline_buffer): Likewise.
12221 (cmd_qtstart): Likewise.
12222 (stop_tracing): Likewise.
12223 (fast_tracepoint_collecting): Likewise.
12224 (target_malloc): Likewise.
12225 (download_tracepoint): Likewise.
12226 (download_trace_state_variables): Replace check with gdb_assert.
12227 (upload_fast_traceframes): Replace fatal with internal_error.
12229 2014-08-19 Tom Tromey <tromey@redhat.com>
12230 Gary Benson <gbenson@redhat.com>
12232 * Makefile.in (SFILES): Add common/common-debug.c.
12233 (OBS): Add common-debug.o.
12234 (common-debug.o): New rule.
12235 * debug.h (debug_printf): Don't declare.
12236 * debug.c (debug_printf): Renamed and rewritten as...
12237 (debug_vprintf): New function.
12239 2014-08-19 Gary Benson <gbenson@redhat.com>
12241 * utils.h: Do not include print-utils.h.
12243 2014-08-19 Tom Tromey <tromey@redhat.com>
12244 Gary Benson <gbenson@redhat.com>
12246 * server.h: Add static assertion.
12247 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12249 2014-08-19 Tom Tromey <tromey@redhat.com>
12250 Gary Benson <gbenson@redhat.com>
12252 * Makefile.in (SFILES): Add common/errors.c.
12253 (OBS): Add errors.o.
12254 (IPA_OBS): Add errors-ipa.o.
12255 (errors.o): New rule.
12256 (errors-ipa.o): Likewise.
12257 * utils.h (perror_with_name, error, warning): Don't declare.
12258 * utils.c (warning): Renamed and rewritten as...
12259 (vwarning): New function.
12260 (error): Renamed and rewritten as...
12261 (verror): New function.
12262 (internal_error): Renamed and rewritten as...
12263 (internal_verror): New function.
12265 2014-08-07 Gary Benson <gbenson@redhat.com>
12267 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12268 * configure: Regenerate.
12269 * config.in: Likewise.
12270 * server.h: Do not include errno.h.
12271 * event-loop.c: Likewise.
12272 * hostio-errno.c: Likewise.
12273 * linux-low.c: Likewise.
12274 * remote-utils.c: Likewise.
12275 * spu-low.c: Likewise.
12276 * utils.c: Likewise.
12277 * gdbreplay.c: Unconditionally include errno.h.
12279 2014-08-07 Gary Benson <gbenson@redhat.com>
12281 * server.h: Do not include string.h.
12282 * event-loop.c: Likewise.
12283 * linux-low.c: Likewise.
12284 * regcache.c: Likewise.
12285 * remote-utils.c: Likewise.
12286 * spu-low.c: Likewise.
12287 * utils.c: Likewise.
12289 2014-08-07 Gary Benson <gbenson@redhat.com>
12291 * server.h: Do not include gdb_assert.h.
12293 2014-08-07 Gary Benson <gbenson@redhat.com>
12295 * server.h: Do not include common-utils.h.
12297 2014-08-07 Gary Benson <gbenson@redhat.com>
12299 * server.h: Do not include ptid.h.
12300 * notif.h: Likewise.
12302 2014-08-07 Gary Benson <gbenson@redhat.com>
12304 * server.h: Do not include gdb_locale.h.
12306 2014-08-07 Gary Benson <gbenson@redhat.com>
12308 * server.h: Do not include gdb/signals.h.
12309 * win32-low.c: Likewise.
12311 2014-08-07 Gary Benson <gbenson@redhat.com>
12313 * server.h: Do not include pathmax.h.
12315 2014-08-07 Gary Benson <gbenson@redhat.com>
12317 * server.h: Do not include libiberty.h.
12318 * linux-bfin-low.c: Likewise.
12320 2014-08-07 Gary Benson <gbenson@redhat.com>
12322 * server.h: Do not include ansidecl.h.
12324 2014-08-07 Gary Benson <gbenson@redhat.com>
12326 * linux-x86-low.c: Do not include stddef.h.
12327 * lynx-ppc-low.c: Likewise.
12328 * tracepoint.c: Likewise.
12330 2014-08-07 Gary Benson <gbenson@redhat.com>
12332 * server.h: Do not include stdarg.h.
12333 * nto-low.c: Likewise.
12335 2014-08-07 Gary Benson <gbenson@redhat.com>
12337 * server.h: Do not include stdlib.h.
12338 * inferiors.c: Likewise.
12339 * linux-low.c: Likewise.
12340 * regcache.c: Likewise.
12341 * spu-low.c: Likewise.
12342 * tracepoint.c: Likewise.
12343 * utils.c: Likewise.
12345 2014-08-07 Gary Benson <gbenson@redhat.com>
12347 * server.h: Do not include stdio.h.
12348 * linux-low.c: Likewise.
12349 * remote-utils.c: Likewise.
12350 * spu-low.c: Likewise.
12351 * utils.c: Likewise.
12352 * wincecompat.c: Likewise.
12354 2014-08-06 Gary Benson <gbenson@redhat.com>
12356 * regcache.c (init_register_cache): Move conditionals inside if.
12358 2014-08-06 Gary Benson <gbenson@redhat.com>
12360 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12362 2014-07-31 Gary Benson <gbenson@redhat.com>
12364 * ax.h: Do not include server.h.
12365 * gdbthread.h: Likewise.
12366 * lynx-low.h: Likewise.
12367 * notif.h: Likewise.
12369 2014-07-30 Gary Benson <gbenson@redhat.com>
12371 * server.h: Include common-defs.h.
12372 Do not include config.h or build-gnulib-gdbserver/config.h.
12374 2014-07-30 Gary Benson <gbenson@redhat.com>
12376 * hostio-errno.c: Move server.h to top of includes list.
12377 * inferiors.c: Likewise.
12378 * linux-x86-low.c: Likewise.
12379 * notif.c: Include server.h.
12381 2014-07-24 Tom Tromey <tromey@redhat.com>
12382 Gary Benson <gbenson@redhat.com>
12384 * server.h (CORE_ADDR): Now unsigned.
12386 2014-07-16 Pedro Alves <palves@redhat.com>
12388 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12390 2014-07-15 Pedro Alves <palves@redhat.com>
12392 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12395 2014-07-11 Pedro Alves <palves@redhat.com>
12397 * linux-low.c (kill_wait_lwp): New function, based on
12398 kill_one_lwp_callback, but use my_waitpid directly.
12399 (kill_one_lwp_callback, linux_kill): Use it.
12401 2014-06-23 Pedro Alves <palves@redhat.com>
12403 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12404 before setting DR0..DR3.
12406 2014-06-20 Gary Benson <gbenson@redhat.com>
12408 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12409 * configure: Regenerated.
12410 * config.in: Likewise.
12412 2014-06-20 Gary Benson <gbenson@redhat.com>
12414 * Makefile.in (SFILES): Update locations for files moved
12415 from common to nat.
12416 (object file files): Reordered.
12418 2014-06-20 Gary Benson <gbenson@redhat.com>
12420 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12421 (i386_dr_low_set_addr): Likewise.
12422 (i386_dr_low_get_addr): Likewise.
12423 (i386_dr_low_can_set_control): Likewise.
12424 (i386_dr_low_set_control): Likewise.
12425 (i386_dr_low_get_control): Likewise.
12426 (i386_dr_low_get_status): Likewise.
12427 (i386_get_debug_register_length): Likewise.
12428 * linux-x86-low.c (i386_dr_low_set_addr):
12429 Changed signature. Made static.
12430 (i386_dr_low_get_addr): Likewise.
12431 (i386_dr_low_set_control): Likewise.
12432 (i386_dr_low_get_control): Likewise.
12433 (i386_dr_low_get_status): Likewise.
12434 (i386_dr_low): New global variable.
12435 * win32-i386-low.c (i386_dr_low_set_addr):
12436 Changed signature. Made static.
12437 (i386_dr_low_get_addr): Likewise.
12438 (i386_dr_low_set_control): Likewise.
12439 (i386_dr_low_get_control): Likewise.
12440 (i386_dr_low_get_status): Likewise.
12441 (i386_dr_low): New global variable.
12443 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12445 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12446 * Makefile.in (AR, AR_FLAGS): Define.
12447 * configure: Regenerate.
12449 2014-06-19 Gary Benson <gbenson@redhat.com>
12451 * Makefile.in (i386-dregs.o): New rule.
12452 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12453 * i386-low.c (target.h): Remove include.
12454 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12455 (DR_CONTROL_SHIFT): Likewise.
12456 (DR_CONTROL_SIZE): Likewise.
12457 (DR_RW_EXECUTE): Likewise.
12458 (DR_RW_WRITE): Likewise.
12459 (DR_RW_READ): Likewise.
12460 (DR_RW_IORW): Likewise.
12461 (DR_LEN_1): Likewise.
12462 (DR_LEN_2): Likewise.
12463 (DR_LEN_4): Likewise.
12464 (DR_LEN_8): Likewise.
12465 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12466 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12467 (DR_ENABLE_SIZE): Likewise.
12468 (DR_LOCAL_SLOWDOWN): Likewise.
12469 (DR_GLOBAL_SLOWDOWN): Likewise.
12470 (DR_CONTROL_RESERVED): Likewise.
12471 (I386_DR_CONTROL_MASK): Likewise.
12472 (I386_DR_VACANT): Likewise.
12473 (I386_DR_LOCAL_ENABLE): Likewise.
12474 (I386_DR_GLOBAL_ENABLE): Likewise.
12475 (I386_DR_DISABLE): Likewise.
12476 (I386_DR_SET_RW_LEN): Likewise.
12477 (I386_DR_GET_RW_LEN): Likewise.
12478 (I386_DR_WATCH_HIT): Likewise.
12479 (i386_wp_op_t): Likewise.
12480 (i386_show_dr): Likewise.
12481 (i386_length_and_rw_bits): Likewise.
12482 (i386_insert_aligned_watchpoint): Likewise.
12483 (i386_remove_aligned_watchpoint): Likewise.
12484 (i386_handle_nonaligned_watchpoint): Likewise.
12485 i386_update_inferior_debug_regs(): Likewise.
12486 (i386_dr_insert_watchpoint): Likewise.
12487 (i386_dr_remove_watchpoint): Likewise.
12488 (i386_dr_region_ok_for_watchpoint): Likewise.
12489 (i386_dr_stopped_data_address): Likewise.
12490 (i386_dr_stopped_by_watchpoint): Likewise.
12492 2014-06-19 Gary Benson <gbenson@redhat.com>
12494 * i386-low.c (i386_dr_show): Renamed to
12495 i386_show_dr and made static. All uses updated.
12496 (i386_dr_length_and_rw_bits): Renamed to
12497 i386_length_and_rw_bits and made static.
12499 (i386_dr_insert_aligned_watchpoint): Renamed to
12500 i386_insert_aligned_watchpoint and made static.
12502 (i386_dr_remove_aligned_watchpoint): Renamed to
12503 i386_remove_aligned_watchpoint and made static.
12505 (i386_dr_update_inferior_debug_regs): Renamed to
12506 i386_update_inferior_debug_regs and made static.
12509 2014-06-18 Gary Benson <gbenson@redhat.com>
12511 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12512 (i386_dr_low_can_set_control): Likewise.
12513 (i386_get_debug_register_length): Likewise.
12514 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12515 (i386_dr_low_can_set_control): Likewise.
12516 (i386_get_debug_register_length): Likewise.
12518 2014-06-17 Gary Benson <gbenson@redhat.com>
12520 * i386-low.h (i386-dregs.h): New include.
12521 (DR_FIRSTADDR): Now in i386-dregs.h.
12522 (DR_LASTADDR): Likewise.
12523 (DR_NADDR): Likewise.
12524 (DR_STATUS): Likewise.
12525 (DR_CONTROL): Likewise.
12526 (i386_debug_reg_state): Likewise.
12527 (i386_dr_insert_watchpoint): Likewise.
12528 (i386_dr_remove_watchpoint): Likewise.
12529 (i386_dr_region_ok_for_watchpoint): Likewise.
12530 (i386_dr_stopped_data_address): Likewise.
12531 (i386_dr_stopped_by_watchpoint): Likewise.
12532 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12534 2014-06-18 Gary Benson <gbenson@redhat.com>
12536 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12537 i386_dr_insert_watchpoint.
12538 (i386_low_remove_watchpoint): Renamed to
12539 i386_dr_remove_watchpoint.
12540 (i386_low_region_ok_for_watchpoint): Renamed to
12541 i386_dr_region_ok_for_watchpoint.
12542 (i386_low_stopped_data_address): Renamed to
12543 i386_dr_stopped_data_address.
12544 (i386_low_stopped_by_watchpoint): Renamed to
12545 i386_dr_stopped_by_watchpoint.
12546 * i386-low.c (i386_show_dr): Renamed to
12547 i386_dr_show and made nonstatic. All uses updated.
12548 (i386_length_and_rw_bits): Renamed to
12549 i386_dr_length_and_rw_bits and made nonstatic.
12551 (i386_insert_aligned_watchpoint): Renamed to
12552 i386_dr_insert_aligned_watchpoint and made nonstatic.
12554 (i386_remove_aligned_watchpoint): Renamed to
12555 i386_dr_remove_aligned_watchpoint and made nonstatic.
12557 (i386_update_inferior_debug_regs): Renamed to
12558 i386_dr_update_inferior_debug_regs and made nonstatic.
12560 (i386_low_insert_watchpoint): Renamed to
12561 i386_dr_insert_watchpoint. All uses updated.
12562 (i386_low_remove_watchpoint): Renamed to
12563 i386_dr_remove_watchpoint. All uses updated.
12564 (i386_low_region_ok_for_watchpoint): Renamed to
12565 i386_dr_region_ok_for_watchpoint. All uses updated.
12566 (i386_low_stopped_data_address): Renamed to
12567 i386_dr_stopped_data_address. All uses updated.
12568 (i386_low_stopped_by_watchpoint): Renamed to
12569 i386_dr_stopped_by_watchpoint. All uses updated.
12571 2014-06-18 Gary Benson <gbenson@redhat.com>
12573 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12574 (i386_dr_low_can_set_control): Likewise.
12575 (i386_insert_aligned_watchpoint): New check.
12577 2014-06-18 Gary Benson <gbenson@redhat.com>
12579 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12582 2014-06-18 Gary Benson <gbenson@redhat.com>
12584 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12585 instead of fatal and error.
12586 (i386_handle_nonaligned_watchpoint): Likewise.
12588 2014-06-18 Gary Benson <gbenson@redhat.com>
12590 * i386-low.c (i386_get_debug_register_length): New macro.
12591 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12592 (i386_show_dr): Use debug_printf instead of fprintf. Use
12593 phex to format values.
12595 2014-06-18 Gary Benson <gbenson@redhat.com>
12597 * i386-low.h: Comment changes.
12598 * i386-low.c: Likewise.
12600 2014-06-18 Gary Benson <gbenson@redhat.com>
12602 * i386-low.c: Whitespace changes.
12604 2014-06-12 Tom Tromey <tromey@redhat.com>
12606 * utils.c (freeargv): Remove.
12608 2014-06-12 Tom Tromey <tromey@redhat.com>
12610 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12611 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12612 (parse_debug_format_options): Likewise.
12613 (gdbserver_usage): Likewise.
12614 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12615 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12616 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12618 ($(LIBGNU)): Depend on libiberty.
12619 (all-lib): Recurse into all subdirs.
12620 (install-only): Invoke "install" target in subdirs.
12621 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12623 * configure: Rebuild.
12624 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12625 for vasprintf, vsnprintf, or gettimeofday.
12626 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12629 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12631 * development.sh: Delete.
12632 * Makefile.in (config.status): Adjust dependency on development.sh.
12633 * configure.ac: Adjust development.sh source call.
12634 * configure: Regenerate.
12636 2014-06-02 Pedro Alves <palves@redhat.com>
12638 * ax.c (gdb_free_agent_expr): New function.
12639 * ax.h (gdb_free_agent_expr): New declaration.
12640 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12642 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12644 (clear_breakpoint_conditions_and_commands): New function.
12645 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12646 (clear_breakpoint_conditions_and_commands): New declaration.
12648 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12650 * linux-aarch64-low.c (asm/ptrace.h): Include.
12652 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12654 Fix TLS access for -static -pthread.
12655 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12656 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12657 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12659 2014-05-20 Pedro Alves <palves@redhat.com>
12661 * linux-aarch64-low.c (aarch64_insert_point)
12662 (aarch64_remove_point): No longer check whether the type is
12663 supported here. Adjust to new interface.
12664 (the_low_target): Install aarch64_supports_z_point_type as
12665 supports_z_point_type method.
12666 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12667 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12668 instead of a Z packet char. Adjust.
12669 (arm_supports_z_point_type): New function.
12670 (arm_insert_point, arm_remove_point): Adjust to new interface.
12671 (the_low_target): Install arm_supports_z_point_type.
12672 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12673 (cris_insert_point, cris_remove_point): Adjust to new interface.
12674 Don't check whether the type is supported here.
12675 (the_low_target): Install cris_supports_z_point_type.
12676 * linux-low.c (linux_supports_z_point_type): New function.
12677 (linux_insert_point, linux_remove_point): Adjust to new interface.
12678 * linux-low.h (struct linux_target_ops) <insert_point,
12679 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12680 raw_breakpoint pointer parameter.
12681 <supports_z_point_type>: New method.
12682 * linux-mips-low.c (mips_supports_z_point_type): New function.
12683 (mips_insert_point, mips_remove_point): Adjust to new interface.
12684 Use mips_supports_z_point_type.
12685 (the_low_target): Install mips_supports_z_point_type.
12686 * linux-ppc-low.c (the_low_target): Install NULL as
12687 supports_z_point_type method.
12688 * linux-s390-low.c (the_low_target): Install NULL as
12689 supports_z_point_type method.
12690 * linux-sparc-low.c (the_low_target): Install NULL as
12691 supports_z_point_type method.
12692 * linux-x86-low.c (x86_supports_z_point_type): New function.
12693 (x86_insert_point): Adjust to new insert_point interface. Use
12694 insert_memory_breakpoint. Adjust to new
12695 i386_low_insert_watchpoint interface.
12696 (x86_remove_point): Adjust to remove_point interface. Use
12697 remove_memory_breakpoint. Adjust to new
12698 i386_low_remove_watchpoint interface.
12699 (the_low_target): Install x86_supports_z_point_type.
12700 * lynx-low.c (lynx_target_ops): Install NULL as
12701 supports_z_point_type callback.
12702 * nto-low.c (nto_supports_z_point_type): New.
12703 (nto_insert_point, nto_remove_point): Adjust to new interface.
12704 (nto_target_ops): Install nto_supports_z_point_type.
12705 * mem-break.c: Adjust intro comment.
12706 (struct raw_breakpoint) <raw_type, size>: New fields.
12707 <inserted>: Update comment.
12708 <shlib_disabled>: Delete field.
12709 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12710 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12711 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12712 (raw_bkpt_type_to_target_hw_bp_type): New function.
12713 (find_enabled_raw_code_breakpoint_at): New function.
12714 (find_raw_breakpoint_at): New type and size parameters. Use them.
12715 (insert_memory_breakpoint): New function, based off
12716 set_raw_breakpoint_at.
12717 (remove_memory_breakpoint): New function.
12718 (set_raw_breakpoint_at): Reimplement.
12719 (set_breakpoint): New, based on set_breakpoint_at.
12720 (set_breakpoint_at): Reimplement.
12721 (delete_raw_breakpoint): Go through the_target->remove_point
12722 instead of assuming memory breakpoints.
12723 (find_gdb_breakpoint_at): Delete.
12724 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12725 (find_gdb_breakpoint): New function.
12726 (set_gdb_breakpoint_at): Delete.
12727 (z_type_supported): New function.
12728 (set_gdb_breakpoint_1): New function, loosely based off
12729 set_gdb_breakpoint_at.
12730 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12731 (delete_gdb_breakpoint_at): Delete.
12732 (delete_gdb_breakpoint_1): New function, loosely based off
12733 delete_gdb_breakpoint_at.
12734 (delete_gdb_breakpoint): New function.
12735 (clear_gdb_breakpoint_conditions): Rename to ...
12736 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12738 (add_condition_to_breakpoint): Make static.
12739 (add_breakpoint_condition): Take a struct breakpoint pointer
12740 instead of an address. Adjust.
12741 (gdb_condition_true_at_breakpoint): Rename to ...
12742 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12744 (gdb_condition_true_at_breakpoint): Reimplement.
12745 (add_breakpoint_commands): Take a struct breakpoint pointer
12746 instead of an address. Adjust.
12747 (gdb_no_commands_at_breakpoint): Rename to ...
12748 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12749 parameter. Return true if no breakpoint was found. Change debug
12751 (gdb_no_commands_at_breakpoint): Reimplement.
12752 (run_breakpoint_commands): Rename to ...
12753 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12754 and change return type to boolean.
12755 (run_breakpoint_commands): New function.
12756 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12757 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12758 breakpoint. Go through the_target->remove_point instead of
12759 assuming memory breakpoint.
12760 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12761 software and hardware breakpoints.
12762 (reinsert_raw_breakpoint): Go through the_target->insert_point
12763 instead of assuming memory breakpoint.
12764 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12765 software and hardware breakpoints.
12766 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12767 Check both software and hardware breakpoints.
12768 (validate_inserted_breakpoint): Assert the breakpoint is a
12769 software breakpoint. Set the inserted flag to -1 instead of
12770 setting shlib_disabled.
12771 (delete_disabled_breakpoints): Adjust.
12772 (validate_breakpoints): Only validate software breakpoints.
12773 Adjust to inserted flag change.
12774 (check_mem_read, check_mem_write): Skip breakpoint types other
12775 than software breakpoints. Adjust to inserted flag change.
12776 * mem-break.h (enum raw_bkpt_type): New enum.
12777 (raw_breakpoint, struct process_info): Forward declare.
12778 (Z_packet_to_target_hw_bp_type): Delete declaration.
12779 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12780 (set_gdb_breakpoint, delete_gdb_breakpoint)
12781 (clear_breakpoint_conditions): New declarations.
12782 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12783 (breakpoint_inserted_here): Update comment.
12784 (add_breakpoint_condition, add_breakpoint_commands): Replace
12785 address parameter with a breakpoint pointer parameter.
12786 (gdb_breakpoint_here): Update comment.
12787 (delete_gdb_breakpoint_at): Delete.
12788 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12789 * server.c (process_point_options): Take a struct breakpoint
12790 pointer instead of an address. Adjust.
12791 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12792 delete_gdb_breakpoint.
12793 * spu-low.c (spu_target_ops): Install NULL as
12794 supports_z_point_type method.
12795 * target.h: Include mem-break.h.
12796 (struct target_ops) <prepare_to_access_memory>: Update comment.
12797 <supports_z_point_type>: New field.
12798 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12799 instead of a char. Also take a raw breakpoint pointer.
12800 * win32-arm-low.c (the_low_target): Install NULL as
12801 supports_z_point_type.
12802 * win32-i386-low.c (i386_supports_z_point_type): New function.
12803 (i386_insert_point, i386_remove_point): Adjust to new interface.
12804 (the_low_target): Install i386_supports_z_point_type.
12805 * win32-low.c (win32_supports_z_point_type): New function.
12806 (win32_insert_point, win32_remove_point): Adjust to new interface.
12807 (win32_target_ops): Install win32_supports_z_point_type.
12808 * win32-low.h (struct win32_target_ops):
12809 <supports_z_point_type>: New method.
12810 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12811 instead of a char. Also take a raw breakpoint pointer.
12813 2014-05-20 Pedro Alves <palves@redhat.com>
12815 * mem-break.h: Include break-common.h.
12816 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12817 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12818 (Z_packet_to_target_hw_bp_type): New declaration.
12819 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12820 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12821 (Z_PACKET_ACCESS_WP): Delete macros.
12822 (Z_packet_to_hw_type): Delete function.
12823 * i386-low.h: Don't include break-common.h here.
12824 (Z_packet_to_hw_type): Delete declaration.
12825 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12826 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12827 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12828 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12829 * linux-aarch64-low.c: Don't include break-common.h here.
12830 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12831 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12832 (Z_packet_to_target_hw_bp_type): Delete function.
12833 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12835 (mips_insert_point, mips_remove_point): Use
12836 Z_packet_to_target_hw_bp_type.
12838 2014-05-20 Pedro Alves <palves@redhat.com>
12840 * linux-aarch64-low.c: Include break-common.h.
12841 (enum target_point_type): Delete.
12842 (Z_packet_to_point_type): Rename to ...
12843 (Z_packet_to_target_hw_bp_type): ... this, and return a
12844 target_hw_bp_type instead.
12845 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12846 instead of an enum target_point_type.
12847 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12849 (aarch64_dr_state_insert_one_point)
12850 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12851 (aarch64_handle_aligned_watchpoint)
12852 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12853 Take an enum target_hw_bp_type instead of an enum
12855 (aarch64_supports_z_point_type): New function.
12856 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12857 use Z_packet_to_target_hw_bp_type.
12859 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12861 * configure.ac: Only use -Werror by default when DEVELOPMENT
12863 * configure: Regenerate.
12865 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12867 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12868 * linux-x86-low.c (X86_64_USER_REGS): New.
12869 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12871 2014-04-28 Yao Qi <yao@codesourcery.com>
12873 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12876 2014-04-25 Pedro Alves <palves@redhat.com>
12879 * linux-low.c (linux_attach_fail_reason_string): New function.
12880 (linux_attach_lwp): Delete.
12881 (linux_attach_lwp_1): Rename to ...
12882 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12883 argument. Remove "initial" parameter. Return int instead of
12884 void. Don't error or warn here.
12885 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12886 failure to attach to the tgid. Call warning when failing to
12888 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12889 argument. Remove "initial" parameter. Return int instead of
12890 void. Don't error or warn here.
12891 (linux_attach_fail_reason_string): New declaration.
12892 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12893 interface change. Use linux_attach_fail_reason_string.
12895 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12896 Walfred Tedeschi <walfred.tedeschi@intel.com>
12898 * Makefile.in: Added rules to handle new files
12899 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12900 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12901 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12902 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12903 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12904 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12905 x32-avx512-linux.o.
12906 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12907 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12908 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12909 i386/x32-avx512.xml.
12910 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12911 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12912 i386/x32-avx512-linux.xml.
12913 * i387-fp.c (num_avx512_k_registers): New constant for number
12915 (num_avx512_zmmh_low_registers): New constant for number of
12916 lower ZMM registers (0-15).
12917 (num_avx512_zmmh_high_registers): New constant for number of
12918 higher ZMM registers (16-31).
12919 (num_avx512_ymmh_registers): New contant for number of higher
12920 YMM registers (ymm16-31 added by avx521 on x86_64).
12921 (num_avx512_xmm_registers): New constant for number of higher
12922 XMM registers (xmm16-31 added by AVX512 on x86_64).
12923 (struct i387_xsave): Add space for AVX512 registers.
12924 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12925 Add code to handle AVX512 registers.
12926 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12927 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12928 prototypei from generated file.
12929 (tdesc_amd64_avx512_linux): Likewise.
12930 (init_registers_x32_avx512_linux): Likewise.
12931 (tdesc_x32_avx512_linux): Likewise.
12932 (init_registers_i386_avx512_linux): Likewise.
12933 (tdesc_i386_avx512_linux): Likewise.
12934 (x86_64_regmap): Add AVX512 registers.
12935 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12937 (initialize_low_arch): Add code to initialize AVX512 registers.
12939 2014-04-23 Pedro Alves <palves@redhat.com>
12941 * mem-break.c (find_gdb_breakpoint_at): Make static.
12942 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12944 2014-04-23 Pedro Alves <palves@redhat.com>
12946 * i386-low.c: Don't include break-common.h here.
12947 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12948 prototype to take target_hw_bp_type as argument instead of a Z
12950 * i386-low.h: Include break-common.h here.
12951 (Z_packet_to_hw_type): Declare.
12952 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12954 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12955 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12956 (x86_remove_point): Convert the packet number to a
12957 target_hw_bp_type before calling i386_low_remove_watchpoint.
12958 * win32-i386-low.c (i386_insert_point): Convert the packet number
12959 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12960 (i386_remove_point): Convert the packet number to a
12961 target_hw_bp_type before calling i386_low_remove_watchpoint.
12963 2014-04-23 Pedro Alves <palves@redhat.com>
12965 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12967 2014-04-10 Pedro Alves <palves@redhat.com>
12969 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12970 Check if the condition or command is NULL before checking if the
12971 breakpoint is known. On success, return true.
12972 * mem-break.h (add_breakpoint_condition): Document return.
12973 (add_breakpoint_commands): Add describing comment.
12974 * server.c (skip_to_semicolon): New function.
12975 (process_point_options): Use it.
12977 2014-04-09 Pedro Alves <palves@redhat.com>
12979 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12982 2014-02-27 Pedro Alves <palves@redhat.com>
12985 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12987 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12989 (last_thread_of_process_p): Take a PID argument instead of a
12991 (linux_wait_for_lwp): Delete.
12992 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12994 (linux_low_filter_event): New function, party factored out from
12995 linux_wait_for_event.
12996 (linux_wait_for_event): Rename to ...
12997 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12998 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12999 sigsuspend. Check for zombie leaders.
13000 (linux_wait_for_event): Reimplement as wrapper around
13001 linux_wait_for_event_filtered.
13002 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13003 a normal or signal exit is seen, it's the whole process exiting.
13004 (wait_for_sigstop): No longer a for_each_inferior callback.
13005 Rewrite on top of linux_wait_for_event_filtered.
13006 (stop_all_lwps): Call wait_for_sigstop directly.
13007 * server.c (resume, handle_target_event): Handle
13008 TARGET_WAITKIND_NO_RESUMED.
13010 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13012 * win32-low.c (psapi_get_dll_name,
13013 * win32_CreateToolhelp32Snapshot): Delete.
13014 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13015 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13017 (handle_load_dll): Add function description.
13018 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13020 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13022 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13024 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13025 base address when calling win32_add_one_solib.
13026 (handle_load_dll): Delete local variable load_addr.
13027 Remove 0x1000 offset applied to DLL base address when calling
13028 win32_add_one_solib.
13029 (handle_unload_dll): Add comment.
13031 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13033 * win32-low.c (win32_add_all_dlls): Renames
13034 win32_ensure_ntdll_loaded. Rewrite function documentation.
13035 Adjust implementation to always load all DLLs.
13036 Add 0x1000 offset to DLL base address when calling
13037 win32_add_one_solib.
13038 (child_initialization_done): New static global.
13039 (do_initial_child_stuff): Set child_initialization_done to
13040 zero during child initialization, and 1 after. Replace call
13041 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13043 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13044 (handle_unload_dll): Add function documentation.
13045 (get_child_debug_event): Ignore load and unload DLL events
13046 during child initialization.
13048 2014-02-20 Doug Evans <dje@google.com>
13050 Remove global all_lwps.
13051 * inferiors.h (ptid_of): Move here from linux-low.h.
13052 (pid_of, lwpid_of): Ditto.
13053 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13054 parameter is a struct thread_info * now.
13055 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13056 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13057 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13059 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13060 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13061 * linux-arm-low.c (update_registers_callback): Update, "entry"
13062 parameter is a struct thread_info * now.
13063 Fetch lwpid from current_inferior directly.
13064 (arm_insert_point): Pass &all_threads to find_inferior instead of
13066 (arm_remove_point): Ditto.
13067 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13068 (arm_prepare_to_resume): Fetch pid from thread.
13069 (arm_read_description): Fetch lwpid from current_inferior directly.
13070 * linux-low.c (all_lwps): Delete.
13071 (delete_lwp): Delete call to remove_inferior.
13072 (handle_extended_wait): Fetch lwpid from thread.
13073 (add_lwp): Don't set lwp->entry.id. Remove call to
13074 add_inferior_to_list.
13075 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13076 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13077 (kill_one_lwp_callback): Ditto.
13078 (linux_kill): Don't dereference NULL pointer.
13079 Fetch ptid,lwpid from thread.
13080 (get_detach_signal): Fetch ptid from thread.
13081 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13082 Simplify call to regcache_invalidate_thread.
13083 (delete_lwp_callback): Update, "entry" parameter is a
13084 struct thread_info * now. Fetch pid from thread.
13085 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13086 (status_pending_p_callback): Update, "entry" parameter is a
13087 struct thread_info * now. Fetch ptid from thread.
13088 (find_lwp_pid): Update, "entry" parameter is a
13089 struct thread_info * now.
13090 (linux_wait_for_lwp): Fetch pid from thread.
13091 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13092 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13093 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13094 (dequeue_one_deferred_signal): Ditto.
13095 (cancel_breakpoint): Fetch ptid from current_inferior.
13096 (linux_wait_for_event): Pass &all_threads to find_inferior,
13097 not &all_lwps. Fetch ptid, lwpid from thread.
13098 (count_events_callback): Update, "entry" parameter is a
13099 struct thread_info * now.
13100 (select_singlestep_lwp_callback): Ditto.
13101 (select_event_lwp_callback): Ditto.
13102 (cancel_breakpoints_callback): Ditto.
13103 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13105 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13106 (unsuspend_one_lwp): Update, "entry" parameter is a
13107 struct thread_info * now.
13108 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13110 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13111 Fetch lwpid from thread, not lwp.
13112 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13113 Pass &all_threads to find_inferior, not &all_lwps.
13114 (send_sigstop): Fetch lwpid from thread, not lwp.
13115 (send_sigstop_callback): Update, "entry" parameter is a
13116 struct thread_info * now.
13117 (suspend_and_send_sigstop_callback): Ditto.
13118 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13119 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13120 struct thread_info * now.
13121 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13123 (lwp_running): Update, "entry" parameter is a
13124 struct thread_info * now.
13125 (stop_all_lwps): Fetch ptid from thread.
13126 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13127 (linux_resume_one_lwp): Fetch lwpid from thread.
13128 (linux_set_resume_request): Update, "entry" parameter is a
13129 struct thread_info * now. Fetch pid, lwpid from thread.
13130 (resume_status_pending_p): Update, "entry" parameter is a
13131 struct thread_info * now.
13132 (need_step_over_p): Ditto. Fetch lwpid from thread.
13133 (start_step_over): Fetch lwpid from thread.
13134 (linux_resume_one_thread): Update, "entry" parameter is a
13135 struct thread_info * now. Fetch lwpid from thread.
13136 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13137 (proceed_one_lwp): Update, "entry" parameter is a
13138 struct thread_info * now. Fetch lwpid from thread.
13139 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13140 struct thread_info * now.
13141 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13142 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13143 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13145 (regsets_store_inferior_registers): Ditto.
13146 (fetch_register, store_register): Ditto.
13147 (linux_read_memory, linux_write_memory): Ditto.
13148 (linux_request_interrupt): Ditto.
13149 (linux_read_auxv): Ditto.
13150 (linux_xfer_siginfo): Ditto.
13151 (linux_qxfer_spu): Ditto.
13152 (linux_qxfer_libraries_svr4): Ditto.
13153 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13154 moved to inferiors.h.
13156 (get_thread_lwp): Update.
13157 (struct lwp_info): Delete member "entry". Simplify comment for
13159 (all_lwps): Delete.
13160 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13161 current_inferior directly.
13162 (update_watch_registers_callback): Update, "entry" parameter is a
13163 struct thread_info * now. Fetch pid from thread.
13164 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13165 (mips_insert_point): Fetch lwpid from current_inferior.
13166 Pass &all_threads to find_inferior, not &all_lwps.
13167 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13168 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13170 (mips_stopped_data_address): Ditto.
13171 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13173 * linux-tile-low.c (tile_arch_setup): Ditto.
13174 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13175 (update_debug_registers_callback): Update, "entry" parameter is a
13176 struct thread_info * now. Fetch pid from thread.
13177 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13178 Pass &all_threads to find_inferior, not &all_lwps.
13179 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13180 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13181 Pass &all_threads to find_inferior, not &all_lwps.
13182 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13183 (i386_dr_low_get_status): Ditto.
13184 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13185 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13186 (x86_linux_read_description): Ditto.
13187 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13189 2014-02-20 Doug Evans <dje@google.com>
13191 * inferiors.c (get_first_inferior): Fix buglet.
13193 2014-02-19 Doug Evans <dje@google.com>
13195 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13196 * inferiors.c (add_thread): Change result type to struct thread_info *.
13197 All callers updated.
13198 (add_lwp): Call add_thread here instead of in callers.
13199 All callers updated.
13200 * linux-low.h (get_lwp_thread): Rewrite.
13201 (struct lwp_info): New member "thread".
13203 2014-02-19 Doug Evans <dje@google.com>
13205 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13206 All callers updated.
13208 2014-02-19 Doug Evans <dje@google.com>
13210 * inferiors.c (add_thread): Fix whitespace.
13212 2014-02-19 Doug Evans <dje@google.com>
13214 * dll.c (clear_dlls): Replace accessing list implemention details
13216 * gdbthread.h (get_first_thread): Declare.
13217 * inferiors.c (for_each_inferior_with_data): New function.
13218 (get_first_thread): New function.
13219 (find_thread_ptid): Simplify.
13220 (get_first_inferior): New function.
13221 (clear_list): Delete.
13222 (one_inferior_p): New function.
13223 (clear_inferior_list): New function.
13224 (clear_inferiors): Update.
13225 * inferiors.h (for_each_inferior_with_data): Declare.
13226 (clear_inferior_list): Declare.
13227 (one_inferior_p): Declare.
13228 (get_first_inferior): Declare.
13229 * linux-low.c (linux_wait_for_event): Replace accessing list
13230 implemention details with API function.
13231 * server.c (target_running): Ditto.
13232 (accumulate_file_name_length): New function.
13233 (emit_dll_description): New function.
13234 (handle_qxfer_libraries): Replace accessing list implemention
13235 details with API function.
13236 (handle_qxfer_threads_worker): New function.
13237 (handle_qxfer_threads_proper): Replace accessing list implemention
13238 details with API function.
13239 (handle_query): Ditto.
13240 (visit_actioned_threads_callback_ftype): New typedef.
13241 (visit_actioned_threads_data): New struct.
13242 (visit_actioned_threads): Rewrite to be find_inferior callback.
13243 (resume): Call find_inferior.
13244 (handle_status): Replace accessing list implemention
13245 details with API function.
13246 (process_serial_event): Replace accessing list implemention details
13248 * target.c (set_desired_inferior): Replace accessing list implemention
13249 details with API function.
13250 * tracepoint.c (same_process_p): New function.
13251 (gdb_agent_about_to_close): Replace accessing list implemention
13252 details with API function.
13253 * win32-low.c (child_delete_thread): Replace accessing list
13254 implemention details with API function.
13255 (match_dll_by_basename): New function.
13256 (dll_is_loaded_by_basename): New function.
13257 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13258 details call to dll_is_loaded_by_basename.
13260 2014-02-19 Doug Evans <dje@google.com>
13262 * dll.h (struct dll_info): Add comment.
13263 * gdbthread.h (struct thread_info): Add comment.
13264 (current_ptid): Simplify.
13265 * inferiors.c (add_process): Update.
13266 (remove_process): Update.
13267 * inferiors.h (struct process_info): Rename member "head" to "entry".
13268 * linux-low.c (delete_lwp): Update.
13270 (last_thread_of_process_p): Update.
13271 (kill_one_lwp_callback, linux_kill): Update.
13272 (status_pending_p_callback): Update.
13273 (wait_for_sigstop): Update. Simplify read of ptid.
13274 (start_step_over): Update.
13275 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13276 (get_lwp_thread): Update.
13277 (struct lwp_info): Rename member "head" to "entry".
13278 * regcache.h (inferior_list_entry): Delete.
13279 * server.c (kill_inferior_callback): Update.
13280 (detach_or_kill_inferior_callback): Update.
13281 (print_started_pid): Update.
13282 (print_attached_pid): Update.
13283 (process_serial_event): Simplify read of ptid.
13284 * thread-db.c (thread_db_create_event): Update.
13285 (thread_db_get_tls_address): Update.
13286 * win32-low.c (current_inferior_ptid): Simplify.
13288 2014-02-19 Tom Tromey <tromey@redhat.com>
13290 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13292 (target_supports_btrace): Update.
13294 2014-02-14 Yao Qi <yao@codesourcery.com>
13296 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13297 (rsp-low-ipa.o): New target.
13299 2014-02-12 Tom Tromey <tromey@redhat.com>
13301 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13302 convert_ascii_to_int.
13303 * regcache.c (registers_to_string): Likewise.
13304 * remote-utils.c (decode_M_packet): Likewise.
13305 * server.c (process_serial_event): Likewise.
13307 2014-02-12 Tom Tromey <tromey@redhat.com>
13309 * server.c (handle_query, handle_v_run): Use hex2bin, not
13311 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13313 2014-02-12 Tom Tromey <tromey@redhat.com>
13315 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13316 convert_int_to_ascii.
13317 * regcache.c (registers_to_string, collect_register_as_string):
13319 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13321 * server.c (process_serial_event): Likewise.
13322 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13323 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13325 2014-02-12 Tom Tromey <tromey@redhat.com>
13327 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13328 bin2hex, not hexify.
13329 * tracepoint.c (cmd_qtstatus): Likewise.
13331 2014-02-12 Tom Tromey <tromey@redhat.com>
13333 * remote-utils.c (monitor_output): Pass explicit length to
13336 2014-02-12 Tom Tromey <tromey@redhat.com>
13338 * tracepoint.c: Include rsp-low.h.
13339 * server.c: Include rsp-low.h.
13340 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13341 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13343 * remote-utils.c: Include rsp-low.h.
13344 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13345 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13346 (convert_int_to_ascii, convert_ascii_to_int): Move to
13348 * regcache.c: Include rsp-low.h.
13349 * ax.c: Include rsp-low.h.
13350 * Makefile.in (SFILES): Add common/rsp-low.c.
13351 (OBS): Add rsp-low.o.
13352 (rsp-low.o): New target.
13354 2014-02-12 Tom Tromey <tromey@redhat.com>
13356 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13357 Include print-utils.h.
13358 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13359 (plongest, thirty_two, phex_nz): Remove.
13360 * Makefile.in (SFILES): Add common/print-utils.c.
13361 (OBS): Add print-utils.o.
13362 (print-utils-ipa.o): New target.
13363 (print-utils.o): New target.
13364 (IPA_OBJS): Add print-utils-ipa.o.
13366 2014-02-06 Tom Tromey <tromey@redhat.com>
13368 * Makefile.in (SFILES): Fix indentation.
13370 2014-02-05 Doug Evans <dje@google.com>
13372 * linux-low.c (linux_wait_for_event): Improve comment.
13373 (linux_wait_1): Keep current_inferior in sync with event_child.
13375 2014-01-22 Doug Evans <dje@google.com>
13377 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13379 2014-01-22 Doug Evans <dje@google.com>
13381 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13382 * configure: Regenerate.
13383 * config.in: Regenerate.
13384 * Makefile.in (SFILES): Add debug.c.
13385 (OBS): Add debug.o.
13386 * debug.c: New file.
13387 * debug.h: New file.
13388 * linux-aarch64-low.c (*): Update all debugging printfs to use
13389 debug_printf instead of fprintf.
13390 * linux-arm-low.c (*): Ditto.
13391 * linux-cris-low.c (*): Ditto.
13392 * linux-crisv32-low.c (*): Ditto.
13393 * linux-m32r-low.c (*): Ditto.
13394 * linux-sparc-low.c (*): Ditto.
13395 * linux-x86.c (*): Ditto.
13396 * linux-low.c (*): Ditto.
13397 (linux_wait_1): Add calls to debug_enter, debug_exit.
13398 (linux_wait): Remove redundant debugging printf.
13399 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13400 (linux_resume, unstop_all_lwps): Ditto.
13401 * mem-break.c (*): Update all debugging printfs to use
13402 debug_printf instead of fprintf.
13403 * remote-utils.c (*): Ditto.
13404 * thread-db.c (*): Ditto.
13405 * server.c #include <ctype.h>, "gdb_vecs.h".
13406 (debug_threads): Moved to debug.c.
13407 (*): Update all debugging printfs to use debug_printf instead of
13409 (start_inferior): Replace call to fflush with call to debug_flush.
13410 (monitor_show_help): Mention set debug-format.
13411 (parse_debug_format_options): New function.
13412 (handle_monitor_command): Handle "monitor set debug-format".
13413 (gdbserver_usage): Mention --debug-format.
13414 (main): Parse --debug-format.
13415 * server.h (debug_threads): Declaration moved to debug.h.
13416 #include "debug.h".
13417 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13418 trace_debug_1 that uses debug_printf.
13419 (tracepoint_look_up_symbols): Update all debugging printfs to use
13420 debug_printf instead of fprintf.
13422 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13424 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13427 2014-01-17 Pedro Alves <palves@redhat.com>
13430 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13431 defined after including gdb_proc_service.h.
13433 2014-01-16 Doug Evans <dje@google.com>
13435 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13436 (match_dll): Use it.
13438 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13440 * target.h (target_ops) <read_btrace>: Change parameters and
13441 return type to allow error reporting.
13442 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13443 trace reading errors on.
13444 * linux-low.c (linux_low_read_btrace): Pass trace reading
13446 (linux_low_disable_btrace): New.
13448 2014-01-15 Doug Evans <dje@google.com>
13450 * inferiors.c (thread_id_to_gdb_id): Delete.
13451 * inferiors.h (thread_id_to_gdb_id): Delete.
13453 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13455 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13456 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13459 2014-01-08 Pedro Alves <palves@redhat.com>
13461 * server.c (handle_status): Don't discard previous queued stop
13462 replies or thread's pending status here.
13463 (main) <disconnection>: Do it here instead.
13465 2014-01-08 Pedro Alves <palves@redhat.com>
13467 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13468 * server.c (visit_actioned_threads, handle_pending_status): New
13470 (handle_v_cont): Factor out parts to ...
13471 (resume): ... this new function. If in all-stop, and a thread
13472 being resumed has a pending status, report it without actually
13474 (myresume): Adjust to use the new 'resume' function.
13475 (clear_pending_status_callback, set_pending_status_callback)
13476 (find_status_pending_thread_callback): New functions.
13477 (handle_status): Handle the case of multiple threads having
13478 interesting statuses to report. Report threads' real last signal
13479 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13480 with an interesting thread to report the status for, instead of
13481 always reporting the status of the first thread.
13483 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13485 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13486 * gdbreplay.c (gdbreplay_version): Likewise.
13488 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13490 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13491 iov.iov_len with the real length in use.
13493 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13495 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13496 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13497 for all targets that use win32-low.c.
13498 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13499 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13501 2013-12-13 Pedro Alves <palves@redhat.com>
13503 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13504 if equal to TARGET_WAITKIND_LOADED.
13505 * win32-low.c (cached_status): New static global.
13506 (win32_wait): Add declaration.
13507 (do_initial_child_stuff): Flush all initial pending debug events
13508 up to the initial breakpoint.
13509 (win32_wait): If CACHED_STATUS was set, return that instead
13510 of doing a real wait. Remove the code resuming the execution
13511 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13512 during the initial phase. Also remove the code changing
13513 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13514 TARGET_WAITKIND_STOPPED.
13516 2013-12-11 Yao Qi <yao@codesourcery.com>
13518 * notif.c (handle_notif_ack): Return 0 if no notification
13521 2013-11-20 Doug Evans <dje@google.com>
13523 * linux-low.c (linux_set_resume_request): Fix comment.
13525 2013-11-20 Doug Evans <dje@google.com>
13527 * linux-low.c (resume_status_pending_p): Tweak comment.
13529 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13531 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13532 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13533 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13534 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13535 (srv_amd64_regobj): Add amd64-mpx.o.
13536 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13537 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13538 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13539 * i387-fp.c (num_pl_bnd_register) Added constant.
13540 (num_pl_bnd_cfg_registers) Added constant.
13541 (struct i387_xsave) Added reserved area and MPX fields.
13542 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13543 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13545 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13546 (init_registers_amd64_mpx_linux): Declare new function.
13547 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13548 (x86_64_regmap): Add MPX registers.
13549 (x86_linux_read_description): Add MPX case.
13550 (initialize_low_arch): Initialize MPX targets.
13552 2013-11-18 Tom Tromey <tromey@redhat.com>
13554 * configure: Rebuild.
13555 * configure.ac: Don't check for stdlib.h.
13556 * gdbreplay.c: Unconditionally include stdlib.h.
13558 2013-11-18 Tom Tromey <tromey@redhat.com>
13560 * config.in: Rebuild.
13561 * configure: Rebuild.
13562 * configure.ac: Don't use AC_HEADER_DIRENT.
13564 2013-11-18 Tom Tromey <tromey@redhat.com>
13566 * server.h: Don't check HAVE_STRING_H.
13567 * gdbreplay.c: Don't check HAVE_STRING_H.
13568 * configure: Rebuild.
13570 2013-11-18 Tom Tromey <tromey@redhat.com>
13572 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13575 2013-11-08 Tom Tromey <tromey@redhat.com>
13577 * configure, config.in: Rebuild.
13578 * configure.ac: Remove unused configury.
13580 2013-11-08 Tom Tromey <tromey@redhat.com>
13582 * acinclude.m4: Include common.m4, codeset.m4.
13583 * configure, config.in: Rebuild.
13584 * configure.ac: Use GDB_AC_COMMON.
13586 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13588 * linux-s390-low.c (HWCAP_S390_TE): New define.
13589 (s390_arch_setup): Consider the TE field in the HWCAP for
13590 determining 'have_regset_tdb'.
13592 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13595 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13598 2013-10-02 Pedro Alves <palves@redhat.com>
13600 * server.c (process_serial_event): Don't output "GDBserver
13601 exiting" if GDB is connected through stdio.
13602 * target.c (mywait): Likewise, be silent if GDB is connected
13605 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13607 * lynx-low.c (lynx_add_threads_after_attach): New function.
13608 (lynx_attach): Remove call to add_thread. Add call to
13609 lynx_add_threads_after_attach instead.
13611 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13613 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13614 * config.in, configure: Regenerated.
13616 2013-09-18 Yao Qi <yao@codesourcery.com>
13619 * server.c (start_inferior): Clear 'resume_info'.
13621 2013-09-16 Jiong Wang <jiwang@tilera.com>
13623 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13626 2013-09-16 Jiong Wang <jiwang@tilera.com>
13628 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13629 linux-tile-low.o to srv_tgtobj.
13631 2013-09-16 Will Newton <will.newton@linaro.org>
13633 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13636 2013-09-06 Pedro Alves <palves@redhat.com>
13638 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13639 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13640 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13641 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13642 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13643 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13645 2013-09-06 Pedro Alves <palves@redhat.com>
13647 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13648 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13650 2013-09-06 Pedro Alves <palves@redhat.com>
13652 * linux-amd64-ipa.c: Include tracepoint.h.
13653 * linux-i386-ipa.c: Include tracepoint.h.
13655 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13657 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13658 (ps_get_thread_area): New function.
13660 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13662 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13663 (initialize_low_arch): Call init_registers_crisv32 rather than
13664 init_register_crisv32.
13666 2013-09-05 Pedro Alves <palves@redhat.com>
13668 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13670 * hostio.h: ... this new file.
13671 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13672 win32-low.c: Include hostio.h.
13674 2013-09-05 Pedro Alves <palves@redhat.com>
13676 * server.h (gdb_client_data, handler_func, callback_handler_func)
13677 (delete_file_handler, add_file_handler, append_callback_event)
13678 (delete_callback_event, start_event_loop, initialize_event_loop):
13679 Move to event-loop.h and include it.
13680 * event-loop.h: New file.
13682 2013-09-05 Pedro Alves <palves@redhat.com>
13684 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13685 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13686 (loaded_dll, unloaded_dll): Move to ...
13687 * dll.h: ... this new file.
13688 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13690 2013-09-05 Pedro Alves <palves@redhat.com>
13692 * server.h (current_process, get_thread_process, all_processes)
13693 (add_inferior_to_list, for_each_inferior, current_inferior)
13694 (remove_inferior, add_process, remove_process, find_process_pid)
13695 (have_started_inferiors_p, have_attached_inferiors_p)
13696 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13697 (clear_inferiors, find_inferior, find_inferior_id)
13698 (inferior_target_data, set_inferior_target_data)
13699 (inferior_regcache_data, set_inferior_regcache_data): Move to
13700 inferiors.h, and include it.
13701 * inferiors.h: New file.
13703 2013-09-05 Pedro Alves <palves@redhat.com>
13705 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13709 2013-09-05 Pedro Alves <palves@redhat.com>
13711 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13713 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13714 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13715 (handle_tracepoint_general_set, handle_tracepoint_query)
13716 (tracepoint_finished_step, tracepoint_was_hit)
13717 (release_while_stepping_state_list, current_traceframe)
13718 (in_readonly_region, traceframe_read_mem)
13719 (fetch_traceframe_registers, traceframe_read_sdata)
13720 (traceframe_read_info, struct fast_tpoint_collect_status)
13721 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13722 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13723 (supply_fast_tracepoint_registers)
13724 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13725 (ipa_tdesc, claim_trampoline_space)
13726 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13727 (agent_mem_read, agent_get_trace_state_variable_value)
13728 (agent_set_trace_state_variable_value, agent_tsv_read)
13729 (agent_mem_read_string, get_raw_reg_func_addr)
13730 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13731 * tracepoint.h: ... this new file.
13733 2013-09-05 Pedro Alves <palves@redhat.com>
13735 * server.h (perror_with_name, error, fatal, warning, paddress)
13736 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13738 * utils.h: New file.
13740 2013-09-05 Pedro Alves <palves@redhat.com>
13742 * server.h (remote_debug, noack_mode, transport_is_reliable)
13743 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13744 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13745 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13746 (write_enn, initialize_async_io, enable_async_io)
13747 (disable_async_io, check_remote_input_interrupt_request)
13748 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13749 (dead_thread_notify, prepare_resume_reply)
13750 (decode_address_to_semicolon, decode_address, decode_m_packet)
13751 (decode_M_packet, decode_X_packet, decode_xfer_write)
13752 (decode_search_memory_packet, unhexify, hexify)
13753 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13754 (look_up_one_symbol, relocate_instruction)
13755 (monitor_output): Move to remote-utils.h, and include it.
13756 * remote-utils.h: New file.
13758 2013-09-05 Pedro Alves <palves@redhat.com>
13760 * server.h (_): Delete.
13762 2013-09-02 Pedro Alves <palves@redhat.com>
13764 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13765 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13767 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13769 2013-09-02 Pierre Muller <muller@sourceware.org>
13771 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13772 or WriteProcessMemory complete successfully and handle
13773 ERROR_PARTIAL_COPY error.
13775 2013-09-02 Pedro Alves <palves@redhat.com>
13777 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13778 error instead of EIO.
13780 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13783 * linux-low.c: Include filestuff.h.
13784 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13785 * lynx-low.c: Include filestuff.h.
13786 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13787 * server.c: Include filestuff.h.
13788 (main): Call notice_open_fds.
13789 * spu-low.c: Include filestuff.h.
13790 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13792 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13794 * Makefile.in: Explain why ../target and ../nat are not
13795 listed as include file search paths.
13796 (linux-waitpid.o): New object file rule.
13797 * configure.srv (srv_native_linux_obj): New variable.
13798 Replace all occurrences of linux native object files with
13799 $srv_native_linux_obj.
13800 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13801 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13802 (linux_enable_event_reporting): Remove declaration.
13803 (my_waitpid): Moved to common/linux-waitpid.c.
13804 (linux_wait_for_event): Pass ptid when calling
13805 linux_enable_event_reporting.
13806 (linux_supports_tracefork_flag): Remove.
13807 (linux_enable_event_reporting): Likewise.
13808 (linux_tracefork_grandchild): Remove.
13809 (STACK_SIZE): Moved to common/linux-ptrace.c.
13810 (linux_tracefork_child): Remove.
13811 (linux_test_for_tracefork): Remove.
13812 (linux_look_up_symbols): Call linux_supports_traceclone.
13813 (initialize_low): Remove call to linux_test_for_tracefork.
13814 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13815 common/linux-ptrace.h.
13816 (PTRACE_TYPE_ARG4): Likewise.
13817 Include linux-ptrace.h.
13819 2013-08-21 Pedro Alves <palves@redhat.com>
13821 * config.in: Renegerate.
13823 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13825 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13826 (SFILES): Remove $(srcdir)/common/target-common.c and
13827 add $(srcdir)/target/waitstatus.c.
13828 (OBS): Remove target-common.o and add waitstatus.o.
13829 (server_h): Remove $(srcdir)/../common/target-common.h and
13830 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13831 and $(srcdir)/../target/waitstatus.h.
13832 (target-common.o): Remove.
13833 (waitstatus.o): New target object file.
13834 * target.h: Do not include target-common.h and
13835 include target/resume.h, target/wait.h and
13836 target/waitstatus.h.
13838 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13840 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13841 to PTRACE_TYPE_ARG3.
13842 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13843 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13845 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13846 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13848 2013-07-27 Jie Zhang <jie@codesourcery.com>
13849 Daniel Jacobowitz <dan@codesourcery.com>
13850 Yao Qi <yao@codesourcery.com>
13852 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13853 (mips-linux-watch.o): New rule.
13854 (mips_linux_watch_h): New variable.
13855 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13857 * linux-mips-low.c: Include mips-linux-watch.h.
13858 (struct arch_process_info, struct arch_lwp_info): New.
13859 (update_watch_registers_callback): New function.
13860 (mips_linux_new_process, mips_linux_new_thread) New functions.
13861 (mips_linux_prepare_to_resume, mips_insert_point): New
13863 (mips_remove_point, mips_stopped_by_watchpoint): New
13865 (rsp_bp_type_to_target_hw_bp_type): New function.
13866 (mips_stopped_data_address): New function.
13867 (the_low_target): Add watchpoint support functions.
13869 2013-07-27 Yao Qi <yao@codesourcery.com>
13871 * i386-low.c: Include break-common.h.
13872 (enum target_hw_bp_type): Remove.
13874 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13876 * Makefile.in (SFILES): /common/target-common.c.
13877 (OBS): Add target-common.o.
13878 (server_h): Add $(srcdir)/../common/target-common.h.
13879 (target-common.o): New target.
13880 * server.c (queue_stop_reply_callback): Free
13881 status string after use.
13882 * target.c (target_waitstatus_to_string): Remove.
13883 * target.h: Include target-common.h.
13884 (resume_kind): Likewise.
13885 (target_waitkind): Likewise.
13886 (target_waitstatus): Likewise.
13887 (TARGET_WNOHANG): Likewise.
13889 2013-07-04 Yao Qi <yao@codesourcery.com>
13891 * Makefile.in (host_alias): Use @host_noncanonical@.
13892 (target_alias): Use @target_noncanonical@.
13893 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13894 ACX_NONCANONICAL_HOST.
13895 * configure: Regenerated.
13898 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13900 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13901 * configure: Rebuild.
13902 * Makefile.in (version_host, version_target): Get from configure.
13903 (version.c): Use $(version_host) and $(version_target).
13905 2013-07-03 Pedro Alves <palves@redhat.com>
13907 * Makefile.in (config.status): Depend on development.sh.
13908 * acinclude.m4: Include libmcheck.m4.
13909 * configure: Regenerate.
13911 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13913 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13914 attribute inside the parentheses.
13915 (winapi_DebugSetProcessKillOnExit): Ditto.
13916 (winapi_DebugBreakProcess): Ditto.
13917 (winapi_GenerateConsoleCtrlEvent): Ditto.
13919 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13921 * notif.h (notif_event): Add a dummy member to avoid compiler
13924 2013-07-01 Pedro Alves <palves@redhat.com>
13926 * hostio.c (HOSTIO_PATH_MAX): Define.
13927 (require_filename, handle_open, handle_unlink, handle_readlink):
13930 2013-07-01 Pedro Alves <palves@redhat.com>
13932 * server.h: Include "pathmax.h".
13933 * linux-low.c: Don't include sys/param.h.
13934 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13936 * win32-low.c: Don't include sys/param.h.
13937 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13939 2013-07-01 Pedro Alves <palves@redhat.com>
13941 * event-loop.c: Don't check HAVE_UNISTD_H before including
13943 * gdbreplay.c: Likewise.
13944 * remote-utils.c: Likewise.
13945 * server.c: Likewise.
13946 * configure.ac: Don't check for unistd.h.
13947 * configure: Regenerate.
13949 2013-06-28 Tom Tromey <tromey@redhat.com>
13951 * Makefile.in (version.c): Use version.in, not
13954 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13956 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13957 * configure: Rebuild.
13958 * Makefile.in (version_host, version_target): Get from configure.
13959 (version.c): Use $(version_host) and $(version_target).
13961 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13963 Fix trace-status to output user name without trailing colon.
13964 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13966 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13968 Fix trace-status to output proper start-time and stop-time.
13969 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13970 output start time and stop time in hex as gdb expects.
13972 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13974 * tracepoint.c (build_traceframe_info_xml): Output trace state
13975 variables present in the trace buffer.
13977 2013-06-24 Tom Tromey <tromey@redhat.com>
13979 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13981 (version.o): Remove.
13982 * gdbreplay.c: Include version.h.
13983 (version, host_name): Don't declare.
13984 * server.h: Include version.h.
13985 (version, host_name): Don't declare.
13987 2013-06-12 Pedro Alves <palves@redhat.com>
13989 * linux-x86-low.c (linux_is_elf64): Delete global.
13990 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13991 with local linux_pid_exe_is_elf_64_file use.
13993 2013-06-11 Pedro Alves <palves@redhat.com>
13995 * linux-low.c (regset_disabled, disable_regset): New functions.
13996 (regsets_fetch_inferior_registers)
13997 (regsets_store_inferior_registers): Use them.
13998 (initialize_regsets_info); Don't allocate the disabled_regsets
14000 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14003 2013-06-11 Pedro Alves <palves@redhat.com>
14005 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14008 2013-06-11 Pedro Alves <palves@redhat.com>
14010 * linux-x86-low.c (initialize_low_arch): Call
14011 init_registers_x32_avx_linux.
14013 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14015 Fix compatibility with Android Bionic.
14016 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14019 2013-06-07 Pedro Alves <palves@redhat.com>
14022 * Makefile.in (OBS): Add tdesc.o.
14023 (IPA_OBJS): Add tdesc-ipa.o.
14024 (tdesc-ipa.o): New rule.
14025 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14027 * linux-low.c (new_inferior): Delete.
14028 (disabled_regsets, num_regsets): Delete.
14029 (linux_add_process): Adjust to set the new per-process
14031 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14032 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14033 was a stop. When calling arch_setup, switch the current inferior
14034 to the thread that got an event.
14035 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14036 (regsets_fetch_inferior_registers)
14037 (regsets_store_inferior_registers): New regsets_info parameter.
14039 (linux_register_in_regsets): New regs_info parameter. Adjust to
14041 (register_addr, fetch_register, store_register): New usrregs_info
14042 parameter. Adjust to use it.
14043 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14044 parameter regs_info. Adjust to use it.
14045 (linux_fetch_registers): Get the current inferior's regs_info, and
14047 (linux_store_registers): Ditto.
14048 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14049 (initialize_low): Don't initialize the target_regsets here. Call
14050 initialize_low_arch.
14051 * linux-low.h (target_regsets): Delete declaration.
14052 (struct regsets_info): New.
14053 (struct usrregs_info): New.
14054 (struct regs_info): New.
14055 (struct process_info_private) <new_inferior>: New field.
14056 (struct linux_target_ops): Delete the num_regs, regmap, and
14057 regset_bitmap fields. New field regs_info.
14058 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14059 * i387-fp.c (num_xmm_registers): Delete.
14060 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14061 calls to new interface.
14062 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14063 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14064 Infer the number of xmm registers from the regcache's target
14066 * i387-fp.h (num_xmm_registers): Delete.
14067 * inferiors.c (add_thread): Don't install the thread's regcache
14069 * proc-service.c (gregset_info): Fetch the current inferior's
14070 regs_info. Adjust to use it.
14071 * regcache.c: Include tdesc.h.
14072 (register_bytes, reg_defs, num_registers)
14073 (gdbserver_expedite_regs): Delete.
14074 (get_thread_regcache): If the thread doesn't have a regcache yet,
14075 create one, instead of aborting gdbserver.
14076 (regcache_invalidate_one): Rename to ...
14077 (regcache_invalidate_thread): ... this.
14078 (regcache_invalidate_one): New.
14079 (regcache_invalidate): Only invalidate registers of the current
14081 (init_register_cache): Add target_desc parameter, and use it.
14082 (new_register_cache): Ditto. Assert the target description has a
14083 non zero registers_size.
14084 (regcache_cpy): Add assertions. Adjust.
14085 (realloc_register_cache, set_register_cache): Delete.
14086 (registers_to_string, registers_from_string): Adjust.
14087 (find_register_by_name, find_regno, find_register_by_number)
14088 (register_cache_size): Add target_desc parameter, and use it.
14089 (free_register_cache_thread, free_register_cache_thread_one)
14090 (regcache_release, register_cache_size): New.
14091 (register_size): Add target_desc parameter, and use it.
14092 (register_data, supply_register, supply_register_zeroed)
14093 (supply_regblock, supply_register_by_name, collect_register)
14094 (collect_register_as_string, collect_register_by_name): Adjust.
14095 * regcache.h (struct target_desc): Forward declare.
14096 (struct regcache) <tdesc>: New field.
14097 (init_register_cache, new_register_cache): Add target_desc
14099 (regcache_invalidate_thread): Declare.
14100 (regcache_invalidate_one): Delete declaration.
14101 (regcache_release): Declare.
14102 (find_register_by_number, register_cache_size, register_size)
14103 (find_regno): Add target_desc parameter.
14104 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14106 * remote-utils.c: Include tdesc.h.
14107 (outreg, prepare_resume_reply): Adjust.
14108 * server.c: Include tdesc.h.
14109 (gdbserver_xmltarget): Delete declaration.
14110 (get_features_xml, process_serial_event): Adjust.
14111 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14113 (struct process_info) <tdesc>: New field.
14114 (ipa_tdesc): Declare.
14115 * tdesc.c: New file.
14116 * tdesc.h: New file.
14117 * tracepoint.c: Include tdesc.h.
14118 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14119 (get_context_regcache): Adjust to pass ipa_tdesc down.
14120 (do_action_at_tracepoint): Adjust to get the register cache size
14121 from the context regcache's description.
14122 (traceframe_walk_blocks): Adjust to get the register cache size
14123 from the current trace frame's description.
14124 (traceframe_get_pc): Adjust to get current trace frame's
14125 description and pass it down.
14126 (gdb_collect): Adjust to get the register cache size from the
14128 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14129 (gdbserver_xmltarget): Delete.
14130 (initialize_low_tracepoint): Set the ipa's target description.
14131 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14132 (initialize_low_tracepoint): Set the ipa's target description.
14133 * linux-x86-low.c: Include tdesc.h.
14134 [__x86_64__] (is_64bit_tdesc): New.
14135 (ps_get_thread_area, x86_get_thread_area): Use it.
14136 (i386_cannot_store_register): Rename to ...
14137 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14138 (i386_cannot_fetch_register): Rename to ...
14139 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14140 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14142 (target_regsets): Rename to ...
14143 (x86_regsets): ... this.
14144 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14146 (x86_siginfo_fixup): Use is_64bit_tdesc.
14147 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14148 (tdesc_x32_avx_linux, tdesc_x32_linux)
14149 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14151 (x86_linux_update_xmltarget): Delete.
14152 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14153 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14154 (AMD64_LINUX_USER64_CS): New.
14155 (x86_linux_read_description): New, based on
14156 x86_linux_update_xmltarget.
14157 (same_process_callback): New.
14158 (x86_arch_setup_process_callback): New.
14159 (x86_linux_update_xmltarget): New.
14160 (x86_regsets_info): New.
14161 (amd64_linux_regs_info): New.
14162 (i386_linux_usrregs_info): New.
14163 (i386_linux_regs_info): New.
14164 (x86_linux_regs_info): New.
14165 (x86_arch_setup): Reimplement.
14166 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14167 (x86_emit_ops): Ditto.
14168 (the_low_target): Adjust. Install x86_linux_regs_info,
14169 x86_cannot_fetch_register, and x86_cannot_store_register.
14170 (initialize_low_arch): New.
14171 * linux-ia64-low.c (tdesc_ia64): Declare.
14172 (ia64_fetch_register): Adjust.
14173 (ia64_usrregs_info, regs_info): New globals.
14174 (ia64_regs_info): New function.
14175 (the_low_target): Adjust.
14176 (initialize_low_arch): New function.
14177 * linux-sparc-low.c (tdesc_sparc64): Declare.
14178 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14180 (sparc_arch_setup): New function.
14181 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14182 (the_low_target): Adjust.
14183 (initialize_low_arch): New function.
14184 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14185 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14186 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14187 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14188 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14189 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14190 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14191 (tdesc_powerpc_isa205_vsx64l): Declare.
14192 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14193 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14194 (ppc_set_pc, ppc_get_hwcap): Adjust.
14195 (ppc_usrregs_info): Forward declare.
14196 (!__powerpc64__) ppc_regmap_adjusted: New global.
14197 (ppc_arch_setup): Adjust to the current process'es target
14199 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14200 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14201 (ppc_store_evrregset): Adjust.
14202 (target_regsets): Rename to ...
14203 (ppc_regsets): ... this, and make static.
14204 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14205 (ppc_regs_info): New function.
14206 (the_low_target): Adjust.
14207 (initialize_low_arch): New function.
14208 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14209 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14210 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14211 (tdesc_s390x_linux64v2): Declare.
14212 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14213 (s390_fill_gregset, s390_store_last_break): Adjust.
14214 (target_regsets): Rename to ...
14215 (s390_regsets): ... this, and make static.
14216 (s390_get_pc, s390_set_pc): Adjust.
14217 (s390_get_hwcap): New target_desc parameter, and use it.
14218 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14219 (s390_arch_setup): Adjust to set the current process'es target
14220 description. Don't adjust the regmap.
14221 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14222 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14223 (regs_info_3264): New globals.
14224 (s390_regs_info): New function.
14225 (the_low_target): Adjust.
14226 (initialize_low_arch): New function.
14227 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14228 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14229 [__mips64] (init_registers_mips_linux)
14230 (init_registers_mips_dsp_linux): Delete defines.
14231 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14232 (have_dsp): New global.
14233 (mips_read_description): New, based on mips_arch_setup.
14234 (mips_arch_setup): Reimplement.
14235 (get_usrregs_info): New function.
14236 (mips_cannot_fetch_register, mips_cannot_store_register)
14237 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14238 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14239 (target_regsets): Rename to ...
14240 (mips_regsets): ... this, and make static.
14241 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14242 (dsp_regs_info, regs_info): New globals.
14243 (mips_regs_info): New function.
14244 (the_low_target): Adjust.
14245 (initialize_low_arch): New function.
14246 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14247 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14249 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14250 (arm_read_description): New, with bits factored from
14252 (arm_arch_setup): Reimplement.
14253 (target_regsets): Rename to ...
14254 (arm_regsets): ... this, and make static.
14255 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14256 (arm_regs_info): New function.
14257 (the_low_target): Adjust.
14258 (initialize_low_arch): New function.
14259 * linux-m68k-low.c (tdesc_m68k): Declare.
14260 (target_regsets): Rename to ...
14261 (m68k_regsets): ... this, and make static.
14262 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14263 (m68k_regs_info): New function.
14264 (m68k_arch_setup): New function.
14265 (the_low_target): Adjust.
14266 (initialize_low_arch): New function.
14267 * linux-sh-low.c (tdesc_sharch): Declare.
14268 (target_regsets): Rename to ...
14269 (sh_regsets): ... this, and make static.
14270 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14271 (sh_regs_info, sh_arch_setup): New functions.
14272 (the_low_target): Adjust.
14273 (initialize_low_arch): New function.
14274 * linux-bfin-low.c (tdesc_bfin): Declare.
14275 (bfin_arch_setup): New function.
14276 (bfin_usrregs_info, regs_info): New globals.
14277 (bfin_regs_info): New function.
14278 (the_low_target): Adjust.
14279 (initialize_low_arch): New function.
14280 * linux-cris-low.c (tdesc_cris): Declare.
14281 (cris_arch_setup): New function.
14282 (cris_usrregs_info, regs_info): New globals.
14283 (cris_regs_info): New function.
14284 (the_low_target): Adjust.
14285 (initialize_low_arch): New function.
14286 * linux-cris-low.c (tdesc_crisv32): Declare.
14287 (cris_arch_setup): New function.
14288 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14289 (cris_regs_info): New function.
14290 (the_low_target): Adjust.
14291 (initialize_low_arch): New function.
14292 * linux-m32r-low.c (tdesc_m32r): Declare.
14293 (m32r_arch_setup): New function.
14294 (m32r_usrregs_info, regs_info): New globals.
14295 (m32r_regs_info): Adjust.
14296 (initialize_low_arch): New function.
14297 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14298 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14299 (tic6x_usrregs_info): Forward declare.
14300 (tic6x_read_description): New function, based on ...
14301 (tic6x_arch_setup): ... this. Reimplement.
14302 (target_regsets): Rename to ...
14303 (tic6x_regsets): ... this, and make static.
14304 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14305 (tic6x_regs_info): New function.
14306 (the_low_target): Adjust.
14307 (initialize_low_arch): New function.
14308 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14309 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14310 (target_regsets): Rename to ...
14311 (xtensa_regsets): ... this, and make static.
14312 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14314 (xtensa_arch_setup, xtensa_regs_info): New functions.
14315 (the_low_target): Adjust.
14316 (initialize_low_arch): New function.
14317 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14318 (nios2_arch_setup): Set the current process'es tdesc.
14319 (target_regsets): Rename to ...
14320 (nios2_regsets): ... this.
14321 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14322 (nios2_regs_info): New function.
14323 (the_low_target): Adjust.
14324 (initialize_low_arch): New function.
14325 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14326 (aarch64_arch_setup): Set the current process'es tdesc.
14327 (target_regsets): Rename to ...
14328 (aarch64_regsets): ... this.
14329 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14330 (aarch64_regs_info): New function.
14331 (the_low_target): Adjust.
14332 (initialize_low_arch): New function.
14333 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14335 (target_regsets): Rename to ...
14336 (tile_regsets): ... this.
14337 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14338 (tile_regs_info): New function.
14339 (tile_arch_setup): Set the current process'es tdesc.
14340 (the_low_target): Adjust.
14341 (initialize_low_arch): New function.
14342 * spu-low.c (tdesc_spu): Declare.
14343 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14344 * win32-arm-low.c (tdesc_arm): Declare.
14345 (arm_arch_setup): New function.
14346 (the_low_target): Install arm_arch_setup instead of
14347 init_registers_arm.
14348 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14349 (init_windows_x86): Rename to ...
14350 (i386_arch_setup): ... this. Set `win32_tdesc'.
14351 (the_low_target): Adjust.
14352 * win32-low.c (win32_tdesc): New global.
14353 (child_add_thread): Don't create the thread cache here.
14354 (do_initial_child_stuff): Set the new process'es tdesc.
14355 * win32-low.h (struct target_desc): Forward declare.
14356 (win32_tdesc): Declare.
14357 * lynx-i386-low.c (tdesc_i386): Declare global.
14358 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14359 * lynx-low.c (lynx_tdesc): New global.
14360 (lynx_add_process): Set the new process'es tdesc.
14361 * lynx-low.h (struct target_desc): Forward declare.
14362 (lynx_tdesc): Declare global.
14363 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14364 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14365 * nto-low.c (nto_tdesc): New global.
14366 (do_attach): Set the new process'es tdesc.
14367 * nto-low.h (struct target_desc): Forward declare.
14368 (nto_tdesc): Declare.
14369 * nto-x86-low.c (tdesc_i386): Declare.
14370 (nto_x86_arch_setup): Set `nto_tdesc'.
14372 2013-06-04 Gary Benson <gbenson@redhat.com>
14374 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14375 to qSupported response when appropriate.
14376 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14377 with nonzero-length annex.
14378 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14379 arguments supplied in annex.
14381 2013-05-31 Doug Evans <dje@google.com>
14384 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14385 64 bits in 64-cross-32 environment.
14387 2013-05-28 Pedro Alves <palves@redhat.com>
14389 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14390 (aarch64-without-fpu.c): Delete rule.
14391 * configure.srv (aarch64*-*-linux*): Remove references to
14392 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14393 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14396 2013-05-24 Pedro Alves <palves@redhat.com>
14398 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14399 instead of strchr/decode_address. Error if the range isn't split
14400 with a ','. Don't assume there's be a ':' in the action.
14402 2013-05-23 Yao Qi <yao@codesourcery.com>
14403 Pedro Alves <palves@redhat.com>
14405 * linux-low.c (lwp_in_step_range): New function.
14406 (linux_wait_1): If the thread was range stepping and stopped
14407 outside the stepping range, report the stop to GDB. Otherwise,
14408 continue stepping. Add range stepping debug output.
14409 (linux_set_resume_request): Copy the step range from the resume
14410 request to the lwp.
14411 (linux_supports_range_stepping): New.
14412 (linux_target_ops) <supports_range_stepping>: Set to
14413 linux_supports_range_stepping.
14414 * linux-low.h (struct linux_target_ops)
14415 <supports_range_stepping>: New field.
14416 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14417 * linux-x86-low.c (x86_supports_range_stepping): New.
14418 (the_low_target) <supports_range_stepping>: Set to
14419 x86_supports_range_stepping.
14420 * server.c (handle_v_cont): Handle 'r' action.
14421 (handle_v_requests): Append ";r" if the target supports range
14423 * target.h (struct thread_resume) <step_range_start,
14424 step_range_end>: New fields.
14425 (struct target_ops) <supports_range_stepping>:
14427 (target_supports_range_stepping): New macro.
14429 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14431 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14432 confusion in comment.
14434 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14436 * lynx-low.c (struct process_info_private): New type.
14437 (lynx_add_process): New function.
14438 (lynx_create_inferior, lynx_attach): Replace calls to
14439 add_process by calls to lynx_add_process.
14440 (lynx_resume): If PTID is null, then try using
14441 current_process()->private->last_wait_event_ptid.
14443 (lynx_clear_inferiors): Delete. The contents of that function
14444 has been inlined in lynx_mourn;
14445 (lynx_wait_1): Save the ptid in the process's private data.
14446 (lynx_mourn): Free the process' private data. Replace call
14447 to lynx_clear_inferiors by call to clear_inferiors.
14449 2013-05-17 Yao Qi <yao@codesourcery.com>
14451 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14454 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14456 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14457 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14458 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14459 PT_TEXT_END_ADDR guards. Update comments.
14460 (linux_target_op) <read_offsets>: Conditionally define to
14461 linux_read_offsets if the target is UCLIBC and if it defines
14462 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14464 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14465 Andrew Jenner <andrew@codesourcery.com>
14467 * Makefile.in (SFILES): Add linux-nios2-low.c.
14468 (clean): Add action to delete nios2-linux.c.
14469 (nios2-linux.c): New rule.
14470 * configure.srv: Add nios2*-*-linux*.
14471 * linux-nios2-low.c: New.
14473 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14475 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14477 2013-04-25 Hui Zhu <hui@codesourcery.com>
14480 * ax.c (ax_printf): Add fflush.
14482 2013-04-22 Tom Tromey <tromey@redhat.com>
14484 * Makefile.in (SFILES): Add filestuff.c.
14485 (OBS): Add filestuff.o.
14486 (filestuff.o): New target.
14487 * config.in, configure: Rebuild.
14488 * configure.ac: Check for fdwalk, pipe2.
14490 2013-04-17 Pedro Alves <palves@redhat.com>
14492 * configure.ac (USE_THREAD_DB): Delete variable.
14493 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14494 Don't AC_SUBST USE_THREAD_DB.
14495 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14496 * config.in, configure: Regenerate.
14498 2013-04-16 Pedro Alves <palves@redhat.com>
14500 * linux-low.h (struct lwp_info) <thread_known>: Move under
14501 the USE_THREAD_DB #ifdef.
14503 2013-04-16 Pedro Alves <palves@redhat.com>
14505 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14506 (linux-low.o): Delete rule.
14507 * linux-low.h: Always include "gdb_thread_db.h" instead of
14508 conditionally including thread_db.h.
14509 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14512 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14514 * Makefile.in (install-only): Fix make install regression.
14516 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14518 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14519 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14521 * gdbserver.1: Remove.
14523 2013-03-22 Pedro Alves <palves@redhat.com>
14525 * linux-low.c (handle_extended_wait): Don't call
14526 linux_enable_event_reporting.
14528 2013-03-15 Tony Theodore <tonyt@logyst.com>
14531 * Makefile.in (SHELL): Use @SHELL@.
14533 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14535 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14538 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14540 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14541 Remove extraneous NULL element.
14543 2013-03-13 Yao Qi <yao@codesourcery.com>
14545 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14546 'V' block in trace frame.
14548 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14550 * target.h (struct target_ops): Add btrace ops.
14551 (target_supports_btrace): New macro.
14552 (target_enable_btrace): New macro.
14553 (target_disable_btrace): New macro.
14554 (target_read_btrace): New macro.
14555 * gdbthread.h (struct thread_info): Add btrace field.
14556 * server.c: Include btrace-common.h.
14557 (handle_btrace_general_set): New function.
14558 (handle_btrace_enable): New function.
14559 (handle_btrace_disable): New function.
14560 (handle_general_set): Call handle_btrace_general_set.
14561 (handle_qxfer_btrace): New function.
14562 (struct qxfer qxfer_packets[]): Add btrace entry.
14563 * inferiors.c (remove_thread): Disable btrace.
14564 * linux-low: Include linux-btrace.h.
14565 (linux_low_enable_btrace): New function.
14566 (linux_low_read_btrace): New function.
14567 (linux_target_ops): Add btrace ops.
14568 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14569 Add srv_linux_btrace=yes.
14570 (x86_64-*-linux*): Add linux-btrace.o.
14571 Add srv_linux_btrace=yes.
14572 * configure.ac: Define HAVE_LINUX_BTRACE.
14573 * config.in: Regenerated.
14574 * configure: Regenerated.
14576 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14578 * server.c (handle_qxfer): Preserve error message if -3 is
14580 (qxfer): Document the -3 return value.
14582 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14584 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14585 (linux_btrace_h): New variable.
14586 (linux-btrace.o): New rule.
14588 2013-03-08 Stan Shebs <stan@codesourcery.com>
14589 Hafiz Abid Qadeer <abidh@codesourcery.com>
14591 * tracepoint.c (trace_buffer_size): New global.
14592 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14593 (init_trace_buffer): Change to one-argument function. Allocate
14594 trace buffer memory.
14595 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14596 handle QTBuffer:size packet.
14597 (cmd_bigqtbuffer_size): New function.
14598 (initialize_tracepoint): Call init_trace_buffer with
14599 DEFAULT_TRACE_BUFFER_SIZE.
14600 * server.c (handle_query): Add QTBuffer:size in the
14603 2013-03-07 Yao Qi <yao@codesourcery.com>
14605 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14606 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14608 (cmd_qtsp): Adjust condition. Do post increment.
14609 Set cur_action and cur_step_action back to 0.
14611 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14614 * linux-low.c (linux_write_memory): Return early success if LEN is
14617 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14619 * configure.srv: Add x86_64-*-cygwin* as target.
14621 2013-02-28 Tom Tromey <tromey@redhat.com>
14623 * configure.ac: Invoke AC_SYS_LARGEFILE.
14624 * configure, config.in: Rebuild.
14626 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14628 * win32-low.c: Throughout, fix format strings and casts of
14629 printf-like functions to avoid type related warnings on all
14631 (get_child_debug_event): Print dwDebugEventCode as hex since
14632 that's how it's usually documented.
14634 2013-02-28 Yao Qi <yao@codesourcery.com>
14636 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14639 2013-02-27 Jiong Wang <jiwang@tilera.com>
14641 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14642 (reg-tilegx32.c): New rule.
14643 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14644 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14645 different register info initializer according to elf class.
14646 (init_registers_tilgx32): New function. The tilegx32 register info
14648 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14649 (tile_store_gregset): Likewise.
14651 2013-02-27 Yao Qi <yao@codesourcery.com>
14653 * server.c (process_point_options): Print debug message when
14654 debug_threads is true.
14656 2013-02-26 Yao Qi <yao@codesourcery.com>
14658 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14660 2013-02-19 Pedro Alves <palves@redhat.com>
14661 Kai Tietz <ktietz@redhat.com>
14665 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14666 instead of strtoul to extract address from packet.
14667 (process_serial_event) <'z'>: Likewise.
14669 2013-02-18 Yao Qi <yao@codesourcery.com>
14671 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14673 2013-02-14 Pedro Alves <palves@redhat.com>
14677 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14678 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14680 2013-02-14 Pedro Alves <palves@redhat.com>
14682 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14684 2013-02-14 Pedro Alves <palves@redhat.com>
14686 * tracepoint.c (save_string): Delete.
14687 (add_tracepoint_action): Use savestring instead of save_string.
14689 2013-02-12 Pedro Alves <palves@redhat.com>
14691 * linux-xtensa-low.c: Ditto.
14692 * xtensa-xtregs.c: Ditto.
14694 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14696 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14699 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14701 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14702 aarch64_num_wp_regs and aarch64_num_bp_regs to
14703 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14705 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14707 * linux-aarch64-low.c (ps_get_thread_area): Replace
14708 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14710 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14711 Marcus Shawcroft <marcus.shawcroft@arm.com>
14712 Nigel Stephens <nigel.stephens@arm.com>
14713 Yufeng Zhang <yufeng.zhang@arm.com>
14715 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14716 (aarch64.c, aarch64-without-fpu.c): New targets.
14717 * configure.srv (aarch64*-*-linux*): New.
14718 * linux-aarch64-low.c: New file.
14720 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14722 * linux-low.c (handle_extended_wait, linux_create_inferior)
14723 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14724 (dequeue_one_deferred_signal, linux_resume_one_thread)
14725 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14726 (linux_tracefork_grandchild, linux_test_for_tracefork)
14727 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14728 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14729 where the argument is 0.
14731 2013-01-25 Yao Qi <yao@codesourcery.com>
14733 * event-loop.c: Include "queue.h".
14734 (gdb_event_p): New typedef.
14735 (struct gdb_event) <next_event>: Remove.
14736 (event_queue): Change to QUEUE(gdb_event_p).
14737 (async_queue_event): Remove.
14738 (gdb_event_xfree): New.
14739 (initialize_event_loop): New.
14740 (process_event): Use API from QUEUE.
14741 (wait_for_event): Likewise.
14742 * server.c (main): Call initialize_event_loop.
14743 * server.h (initialize_event_loop): Declare.
14745 2013-01-18 Yao Qi <yao@codesourcery.com>
14747 * ax.h (struct eval_agent_expr_context): New.
14748 (gdb_eval_agent_expr): Update declaration.
14749 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14750 TFRAME. Add new argument CTX.
14751 * server.h (struct eval_agent_expr_context): Declare.
14752 (agent_mem_read, agent_tsv_read): Update declaration.
14753 (agent_mem_read_string): Likewise.
14754 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14755 (add_traceframe_block): Add new argument TPOINT.
14756 Increase TPOINT->traceframe_usage.
14757 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14758 eval_tracepoint_agent_expr.
14759 (condition_true_at_tracepoint): Likewise.
14760 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14761 (agent_mem_read_string, agent_tsv_read): Likewise.
14763 2013-01-16 Yao Qi <yao@codesourcery.com>
14765 * linux-low.c (linux_resume_one_lwp): Don't check
14766 'lwp->bp_reinsert != 0'.
14768 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14769 Pedro Alves <palves@redhat.com>
14771 * lynx-low.c (ptrace_request_to_str): Define a temporary
14772 macro and use it to simplify this function's implementation.
14774 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14776 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14779 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14781 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14783 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14785 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14787 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14789 * lynx-low.c (lynx_resume): Use the resume_info parameter
14790 to determine the ptid for the lynx_ptrace call, unless
14791 it is equal to minus_one_ptid, in which case we use the
14792 ptid of the current_inferior.
14793 (lynx_wait_1): After having received a thread create/exit
14794 event, resume the inferior's execution using the signaling
14795 thread's ptid, rather than the old ptid.
14797 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14799 * lynx-low.c (lynx_resume): Delete variable ret.
14801 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14803 * gdbreplay.c (gdbreplay_version): Update copyright year.
14804 * server.c (gdbserver_version): Likewise.
14806 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14808 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14811 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14813 * lynx-low.c (ptrace_request_to_str): Add handling for
14814 PTRACE_GETTRACESIG.
14816 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14818 * lynx-low.c (lynx_attach): Delete variable new_process.
14820 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14822 * lynx-low.c (lynx_create_inferior): Delete variable
14825 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14827 * lynx-low.c (ptrace_request_to_str): Do not handle
14828 PTRACE_GETTHREADLIST if this macro does not exist.
14830 2012-12-15 Yao Qi <yao@codesourcery.com>
14832 * Makefile.in (OBS): Add notif.o.
14833 * notif.c, notif.h: New.
14834 * server.c: Include "notif.h".
14835 (struct vstop_notif) <next>: Remove.
14837 (queue_stop_reply): Update.
14838 (push_event, send_next_stop_reply): Remove.
14839 (discard_queued_stop_replies): Update.
14840 (notif_stop): New variable.
14841 (handle_v_stopped): Remove.
14842 (handle_v_requests): Don't call handle_v_stopped. Call
14843 handle_ack_notif instead.
14844 (queue_stop_reply_callback): Call notif_event_enque instead
14845 of queue_stop_reply.
14846 (handle_status): Don't call send_next_stop_reply, call
14847 notif_write_event instead.
14848 (kill_inferior_callback): Likewise.
14849 (detach_or_kill_inferior_callback): Likewise.
14850 (main): Call initialize_notif.
14851 (process_serial_event): Call QUEUE_is_empty.
14852 (handle_target_event): Call notif_push instead of push event.
14853 * server.h (push_event): Remove declaration.
14855 2012-12-10 Tom Tromey <tromey@redhat.com>
14857 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14858 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14861 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14862 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14863 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14864 (amd64-linux-ipa.o, ax.o): Rewrite.
14865 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14866 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14867 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14868 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14869 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14870 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14871 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14872 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14873 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14874 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14875 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14876 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14877 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14878 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14879 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14880 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14881 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14882 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14883 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14884 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14885 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14886 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14887 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14888 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14889 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14890 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14891 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14892 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14893 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14894 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14895 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14896 (reg-tilegx.o): Remove.
14897 (all_object_files): New macro.
14898 Include .deps files.
14899 * aclocal.m4, configure: Rebuild.
14900 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14901 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14902 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14904 2012-12-05 Tom Tromey <tromey@redhat.com>
14907 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14909 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14911 * configure.ac: Check for linux/perf_event.h.
14912 * config.in: Regenerated.
14913 * configure: Regenerated.
14915 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14917 * hostio.c (handle_readlink): Decrease buffer size
14918 parameter passed to readlink by one byte.
14920 2012-11-26 Yao Qi <yao@codesourcery.com>
14922 * configure.ac (build_warnings): Append '-Wempty-body'.
14923 * configure: Regenerated.
14924 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14927 2012-11-15 Pierre Muller <muller@sourceware.org>
14929 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14930 * config.in: Regenerate.
14931 * configure: Regenerate.
14932 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14933 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14934 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14935 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14937 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14938 instead of <sys/wait.h> header.
14939 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14941 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14943 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14944 (various make rules): Remove -DGDBSERVER
14946 2012-11-09 Yao Qi <yao@codesourcery.com>
14948 * spu-low.c (current_ptid): Move it to ..
14949 * gdbthread.h: ... here. New.
14950 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14951 * server.c (myresume, process_serial_event): Likewise.
14952 * thread-db.c (thread_db_find_new_threads): Likewise.
14953 * tracepoint.c (run_inferior_command): Likewise.
14955 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14957 * server.c (handle_search_memory_1): Include access length in
14960 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14962 * linux-crisv32-low.c: Fix compile errors.
14964 2012-09-04 Yao Qi <yao@codesourcery.com>
14966 * tracepoint.c (cmd_qtsv): Adjust debug message.
14967 Don't check CUR_TPOINT.
14969 2012-08-28 Yao Qi <yao@codesourcery.com>
14971 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14972 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14973 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14974 Remove declarations of xmalloc, xreallloc, xstrdup and
14976 * Makefile.in (libiberty_h): New.
14977 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14978 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14980 2012-08-23 Yao Qi <yao@codesourcery.com>
14982 * server.h: Remove declaration of 'xsnprintf'.
14984 2012-08-22 Keith Seitz <keiths@redhat.com>
14986 * server.h: Include build-gnulib-gbserver/config.h.
14987 * gdbreplay.c: Likewise.
14989 2012-08-08 Doug Evans <dje@google.com>
14991 * Makefile.in (SFILES): Add gdb_vecs.c.
14992 (OBS): Add gdb_vecs.o.
14993 (gdb_vecs_h, host_defs_h): New variables.
14994 (thread-db.o): Add $(gdb_vecs_h) dependency.
14995 (gdb_vecs.o): New rule.
14996 * thread-db.c: #include "gdb_vecs.h".
14997 (thread_db_load_search): Use a vector to iterate over path elements.
14998 Handle text appearing after "$pdir".
15000 * configure.ac: Add check for strstr.
15001 * config.in: Regenerate.
15002 * configure: Regenerate.
15004 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15006 * hostio.c (handle_pread): If pread fails, fall back to attempting
15008 (handle_pwrite): Likewise for pwrite.
15010 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15012 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15013 between unsupported TYPE and unimplementable ADDR/LEN combination.
15014 (arm_insert_point): Act on new return value.
15016 2012-07-31 Pedro Alves <palves@redhat.com>
15018 * server.c (process_point_options): Only skip tokens if we find
15019 one that is unrecognized. Don't treat 'X' specially while
15020 skipping unrecognized tokens.
15022 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15024 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15025 to 4-byte-align HW breakpoint addresses for Thumb.
15027 2012-07-27 Yao Qi <yao@codesourcery.com>
15031 * server.h: Declare gdb_agent_about_to_close.
15032 * target.c (kill_inferior): Include "agent.h".
15033 New. Send command 'kill'.
15034 * target.h (kill_inferior): Removed macro.
15035 * tracepoint.c (gdb_agent_about_to_close): New.
15036 (gdb_agent_helper_thread): Handle command 'close'.
15037 Wait endlessly until the inferior stops.
15038 Install gdb_agent_remove_socket to atexit hook.
15039 (agent_socket_name): New static variable.
15040 (gdb_agent_socket_init): Replace local variable 'name' with
15041 'agent_socket_name'.
15042 (gdb_agent_remove_socket): New.
15044 2012-07-27 Yao Qi <yao@codesourcery.com>
15046 * server.c (process_point_options): Stop at 'X' when parsing.
15048 2012-07-19 Michael Eager <eager@eagercon.com>
15050 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15052 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15053 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15054 hardware breakpoint.
15056 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15058 * gdbserver/linux-low.c (initialize_low): Call
15059 linux_ptrace_init_warnings.
15061 2012-07-02 Doug Evans <dje@google.com>
15063 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15066 2012-07-02 Stan Shebs <stan@codesourcery.com>
15068 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15069 (ax.o): Add it to build rule.
15071 (OBS): Add format.o.
15072 (IPA_OBS): Add format.o.
15073 * server.c (handle_query): Claim support for breakpoint commands.
15074 (process_point_options): Add command case.
15075 (process_serial_event): Leave running if there are printfs in
15077 * mem-break.h (any_persistent_commands): Declare.
15078 (add_breakpoint_commands): Declare.
15079 (gdb_no_commands_at_breakpoint): Declare.
15080 (run_breakpoint_commands): Declare.
15081 * mem-break.c (struct point_command_list): New struct.
15082 (struct breakpoint): New field command_list.
15083 (any_persistent_commands): New function.
15084 (add_commands_to_breakpoint): New function.
15085 (add_breakpoint_commands): New function.
15086 (gdb_no_commands_at_breakpoint): New function.
15087 (run_breakpoint_commands): New function.
15088 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15090 * ax.c: Include format.h.
15091 (ax_printf): New function.
15092 (gdb_eval_agent_expr): Add printf opcode.
15094 2012-06-13 Yao Qi <yao@codesourcery.com>
15096 * server.c (start_inferior): Remove duplicated writes to fields
15097 'last_resume_kind' and 'last_status' of 'current_inferior'.
15099 2012-06-12 Yao Qi <yao@codesourcery.com>
15100 Pedro Alves <palves@redhat.com>
15102 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15104 * server.c (handle_v_cont): Extend comment.
15106 2012-06-11 Yao Qi <yao@codesourcery.com>
15108 * linux-low.c (linux_attach): Add 'static'.
15110 2012-06-06 Yao Qi <yao@codesourcery.com>
15112 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15114 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15116 Fix gcc -flto compilation warning.
15117 * server.c (main): Make variable multi_mode and attach volatile.
15119 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15121 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15122 if the platform doesn't know about it.
15124 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15126 * Makefile.in (SFILES): Add linux-tile-low.c.
15127 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15128 * configure.srv: Handle tilegx-*-linux*.
15129 * linux-tile-low.c: New file.
15131 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15133 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15135 2012-05-24 Pedro Alves <palves@redhat.com>
15139 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15141 2012-05-24 Pedro Alves <palves@redhat.com>
15145 Replace target_signal with gdb_signal throughout.
15147 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15149 * linux-low.c (linux_store_registers): Avoid the copying sequence
15150 when no data has been retrieved by ptrace.
15152 2012-05-22 Will Deacon <will.deacon@arm.com>
15154 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15155 Include asm/ptrace.h.
15156 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15159 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15161 * linux-low.c (linux_store_registers): Don't re-retrieve data
15162 with ptrace that has already been obtained from /proc. Always
15163 copy any data retrieved with ptrace to the buffer supplied.
15165 2012-05-11 Yao Qi <yao@codesourcery.com>
15166 Pedro Alves <palves@redhat.com>
15168 * linux-low.c (enum stopping_threads_kind): New.
15169 (stopping_threads): Change type to `enum stopping_threads_kind'.
15170 (handle_extended_wait): If stopping and suspending threads, leave
15171 the new_lwp suspended too.
15172 (linux_wait_for_event): Adjust.
15173 (stop_all_lwps): Set `stopping_threads' to
15174 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15175 whether we're suspending threads or just stopping them. Assert no
15178 2012-04-29 Yao Qi <yao@codesourcery.com>
15180 * server.h: Move some code to ...
15181 * gdbthread.h: ... here. New.
15182 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15183 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15184 (nto-low.o, win32-low.o): Likewise.
15185 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15186 * regcache.c, remote-utils.c, server.c: Likewise.
15187 * target.c, tracepoint.c, win32-low.c: Likewise.
15189 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15191 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15192 (PTRACE_ARG4_TYPE): Likewise.
15193 (PTRACE_XFER_TYPE): Likewise.
15194 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15195 ptrace to PTRACE_ARG3_TYPE.
15196 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15197 (PTRACE_ARG4_TYPE): Likewise.
15198 (PTRACE_XFER_TYPE): Likewise.
15199 (linux_detach_one_lwp): Cast fourth argument of
15200 ptrace to long then PTRACE_ARG4_TYPE.
15201 (regsets_fetch_inferior_registers): Cast third argument of
15202 ptrace to long then PTRACE_ARG3_TYPE.
15203 (regsets_store_inferior_registers): Likewise.
15205 2012-04-20 Pedro Alves <palves@redhat.com>
15207 * configure: Regenerate.
15209 2012-04-19 Pedro Alves <palves@redhat.com>
15211 * Makefile.in (GNULIB_BUILDDIR): New.
15212 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15213 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15214 (all, install-only, uninstall, clean-info, all-lib, clean): No
15215 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15216 (maintainer-clean realclean distclean): Use subdir_do.
15218 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15219 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15220 * acinclude.m4: Include acx_configure_dir.m4.
15221 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15222 calls. Call AC_PROG_RANLIB. Configure gnulib using
15225 (GNULIB_STDINT_H): Adjust.
15226 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15227 * gdbreplay.c: Include build-gnulib/config.h.
15228 * server.h: Likewise.
15229 * aclocal.m4: Regenerate.
15230 * config.in: Regenerate.
15231 * configure: Regenerate.
15233 2012-04-19 Pedro Alves <palves@redhat.com>
15235 * Makefile.in (LIBGNU, INCGNU): Adjust.
15236 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15237 (all, install-only, uninstall, clean-info, all-lib, clean)
15238 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15239 * configure.ac: Adjust AC_OUTPUT output.
15240 * aclocal.m4: Regenerate.
15241 * configure: Regenerate.
15243 2012-04-19 Pedro Alves <palves@redhat.com>
15245 * Makefile.in (generated_files): New.
15246 (server_h): Remove the explicit dependency on config.h, and depend
15247 on $generated_files.
15249 2012-04-19 Pedro Alves <palves@redhat.com>
15251 * Makefile.in (INCGNU): Add -Ignulib.
15253 2012-04-19 Pedro Alves <palves@redhat.com>
15255 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15256 (INCGNU): ... this, and spell out -I here.
15257 (GNULIB_LIB): Rename to ...
15258 (LIBGNU): ... this.
15259 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15261 2012-04-19 Pedro Alves <palves@redhat.com>
15263 * config.in: Regenerate.
15265 2012-04-19 Pedro Alves <palves@redhat.com>
15267 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15268 * server.h (memmem): Remove declaration.
15269 * config.in: Regenerate.
15270 * configure: Regenerate.
15272 2012-04-19 Yao Qi <yao@codesourcery.com>
15274 * Makefile.in (SFILES): Add common/vec.c.
15278 2012-04-19 Yao Qi <yao@codesourcery.com>
15280 * remote-utils.c (prepare_resume_reply): Replace with macro
15281 target_core_of_thread.
15282 * server.c (handle_qxfer_threads_proper): Likewise.
15283 * target.h (traget_core_of_thread): New macro.
15285 2012-04-18 Pedro Alves <palves@redhat.com>
15287 * aclocal.m4: Regenerate.
15288 * configure: Regenerate.
15290 2012-04-16 Yao Qi <yao@codesourcery.com>
15292 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15293 duplicated on address.
15295 2012-04-16 Yao Qi <yao@codesourcery.com>
15297 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15298 (struct tracepoint_action_ops) <send>: New field.
15299 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15300 (agent_expr_send, x_tracepoint_action_send): New.
15301 (l_tracepoint_action_send): New.
15302 (cmd_qtdp): Download and install tracepoint
15303 according to `use_agent'.
15304 (run_inferior_command): Add one more parameter `len'.
15306 (tracepoint_send_agent): New.
15307 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15309 2012-04-16 Yao Qi <yao@codesourcery.com>
15311 * tracepoint.c (download_tracepoints): Moved to ...
15312 (cmd_qtstart): ... here.
15314 2012-04-14 Yao Qi <yao@codesourcery.com>
15316 * tracepoint.c: Include inttypes.h.
15317 (struct collect_memory_action): Use sized types.
15318 (struct tracepoint): Likewise.
15319 (cmd_qtdp, stop_tracing): Update print specifiers.
15320 (cmd_qtp, response_tracepoint): Likewise.
15321 (collect_data_at_tracepoint): Likewise.
15322 (collect_data_at_step): Likewise.
15324 2012-04-14 Yao Qi <yao@codesourcery.com>
15326 Import gnulib module inttypes.
15327 * aclocal.m4, config.in, configure: Regenerated.
15329 2012-04-14 Yao Qi <yao@codesourcery.com>
15331 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15332 Makefile and config.status at last.
15334 2012-04-13 Yao Qi <yao@codesourcery.com>
15336 * tracepoint.c: Include stdint.h unconditionally.
15338 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15340 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15341 on BFD_HAVE_SYS_PROCFS_TYPE.
15342 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15343 * configure: Regenerate.
15344 * config.in: Likewise.
15346 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15348 * Makefile.in (clean): Also remove x32.c x32-linux.c
15349 x32-avx.c x32-avx-linux.c.
15350 (x32.o): New target.
15352 (x32-linux.o): Likewise.
15353 (x32-linux.c): Likewise.
15354 (x32-avx.o): Likewise.
15355 (x32-avx.c): Likewise.
15356 (x32-avx-linux.o): Likewise.
15357 (x32-avx-linux.c): Likewise.
15359 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15360 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15361 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15362 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15363 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15364 i386/x32-avx-linux.xml.
15366 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15367 (init_registers_x32_avx_linux): Likwise.
15368 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15369 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15371 2012-04-13 Pedro Alves <palves@redhat.com>
15373 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15374 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15375 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15376 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15379 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15381 * linux-x86-low.c (compat_x32_clock_t): New.
15382 (compat_x32_siginfo_t): Likewise.
15383 (compat_x32_siginfo_from_siginfo): Likewise.
15384 (siginfo_from_compat_x32_siginfo): Likewise.
15385 (linux_is_elf64): Likewise.
15386 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15387 and siginfo_from_compat_x32_siginfo for x32.
15388 (x86_arch_setup): Set linux_is_elf64.
15390 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15393 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15395 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15396 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15397 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15398 compatible with process.
15400 2012-04-12 Yao Qi <yao@codesourcery.com>
15402 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15403 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15404 (install-only, install-info, clean): Handle sub dir gnulib.
15405 (all-lib, am--refresh): New targets.
15406 (memmem.o): Remove target.
15407 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15408 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15409 (AC_REPLACE_FUNCS): Remove memmem.
15410 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15411 (AC_OUTPUT): Generate Makefile in gnulib/.
15412 * aclocal.m4, config.in, configure: Regenerated.
15414 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15416 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15418 2012-04-05 Pedro Alves <palves@redhat.com>
15420 -Werror=strict-aliasing
15422 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15425 2012-04-04 Pedro Alves <palves@redhat.com>
15427 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15428 (sparc_store_gregset_from_stack, sparc_store_gregset)
15429 (sparc_breakpoint_at): Fix formatting.
15431 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15433 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15435 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15436 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15437 * config.in: Regenerate.
15438 * configure: Likewise.
15440 2012-03-29 Pedro Alves <palves@redhat.com>
15442 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15443 Correct ptrace arguments.
15445 2012-03-28 Pedro Alves <palves@redhat.com>
15447 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15448 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15449 (IA64_FR1_REGNUM): New defines.
15450 (ia64_fetch_register): New.
15451 (the_low_target): Install it.
15452 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15454 * linux-low.c (linux_fetch_registers): Try the
15455 the_low_target.fetch_register hook first.
15457 * linux-arm-low.c (the_low_target): Adjust.
15458 * linux-bfin-low.c (the_low_target): Adjust.
15459 * linux-cris-low.c (the_low_target): Adjust.
15460 * linux-crisv32-low.c (the_low_target): Adjust.
15461 * linux-m32r-low.c (the_low_target): Adjust.
15462 * linux-m68k-low.c (the_low_target): Adjust.
15463 * linux-mips-low.c (the_low_target): Adjust.
15464 * linux-ppc-low.c (the_low_target): Adjust.
15465 * linux-s390-low.c (the_low_target): Adjust.
15466 * linux-sh-low.c (the_low_target): Adjust.
15467 * linux-sparc-low.c (the_low_target): Adjust.
15468 * linux-tic6x-low.c (the_low_target): Adjust.
15469 * linux-x86-low.c (the_low_target): Adjust.
15470 * linux-xtensa-low.c (the_low_target): Adjust.
15472 2012-03-26 Pedro Alves <palves@redhat.com>
15474 * server.c (handle_qxfer_libraries): Don't bail early if
15475 the_target->qxfer_libraries_svr4 is not NULL.
15477 2012-03-26 Pedro Alves <palves@redhat.com>
15479 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15481 2012-03-23 Pedro Alves <palves@redhat.com>
15483 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15484 "library-list-svr4" element's start tag when the the DSO list is
15487 2012-03-23 Pedro Alves <palves@redhat.com>
15489 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15490 a variable whose type size is the same as the inferior's pointer
15493 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15495 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15497 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15498 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15499 * linux-low.h: Include <signal.h>.
15500 (struct siginfo): Remove forward declaration.
15501 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15504 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15506 * .gitignore: Ignore more files.
15508 2012-03-19 Pedro Alves <palves@redhat.com>
15509 Jan Kratochvil <jan.kratochvil@redhat.com>
15511 * server.c (cont_thread, general_thread): Add describing comments.
15512 (start_inferior): Clear `cont_thread'.
15513 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15516 2012-03-15 Yao Qi <yao@codesourcery.com>
15518 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15520 (cmd_qtdp): ... here.
15522 2012-03-15 Yao Qi <yao@codesourcery.com>
15524 * tracepoint.c (struct tracepoint_action_ops): New.
15525 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15526 (m_tracepoint_action_download): New.
15527 (r_tracepoint_action_download): New.
15528 (x_tracepoint_action_download): New.
15529 (l_tracepoint_action_download): New.
15530 (add_tracepoint_action): Install `action->ops' according type.
15531 (download_tracepoint_1): Move code `download' function pointer
15532 of various tracepoint_action_ops.
15534 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15536 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15537 linux_ptrace_attach_warnings.
15539 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15541 * Makefile.in (linux-ptrace.o): New.
15542 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15543 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15544 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15545 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15546 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15548 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15550 2012-03-08 Yao Qi <yao@codesourcery.com>
15551 Pedro Alves <palves@redhat.com>
15553 Fix PR server/13392.
15554 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15555 offset of JMP insn.
15556 * tracepoint.c (remove_tracepoint): New.
15557 (cmd_qtdp): Call remove_tracepoint when failed to install.
15559 2012-03-07 Pedro Alves <palves@redhat.com>
15561 * linux-low.c (get_detach_signal): New.
15562 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15563 Pass on pending signals to PTRACE_DETACH. Check the result of the
15565 * server.c (program_signals, program_signals_p): New.
15566 (handle_general_set): Handle QProgramSignals.
15567 * server.h (program_signals, program_signals_p): Declare.
15569 2012-03-05 Pedro Alves <palves@redhat.com>
15570 Jan Kratochvil <jan.kratochvil@redhat.com>
15572 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15575 2012-03-03 Yao Qi <yao@codesourcery.com>
15577 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15578 agent_look_up_symbols.
15580 2012-03-03 Yao Qi <yao@codesourcery.com>
15582 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15583 (linux-x86-low.o): Likewise.
15584 * server.h: Remove in_process_agent_loaded.
15585 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15589 2012-03-03 Yao Qi <yao@codesourcery.com>
15591 * tracepoint.c (gdb_agent_capability): New global.
15592 (in_process_agent_loaded_ust): Renamed to
15593 `in_process_agent_supports_ust'.
15595 (in_process_agent_supports_ust): Call agent_capability_check.
15596 (clear_installed_tracepoints): Assert that agent supports
15599 2012-03-03 Yao Qi <yao@codesourcery.com>
15601 * linux-low.c (linux_supports_agent): New.
15602 (linux_target_ops): Initialize field `supports_agent' with
15603 linux_supports_agent.
15604 * target.h (struct target_ops) <supports_agent>: New.
15605 (target_supports_agent): New macro.
15606 * server.c (handle_general_set): Handle packet 'QAgent'.
15607 (handle_query): Send `QAgent+'.
15608 * Makefile.in (server.o): Depends on agent.h.
15610 2012-03-03 Yao Qi <yao@codesourcery.com>
15612 * Makefile.in (OBS): Add agent.o.
15613 Add new rule for agent.o.
15614 Track dependence of tracepoint.c on agent.h.
15615 * tracepoint.c (run_inferior_command_1):
15616 (run_inferior_command): Call agent_run_command.
15617 (gdb_ust_connect_sync_socket): Deleted. Move it to
15619 (resume_thread, stop_thread): Likewise.
15620 (gdb_ust_socket_init): Renamed to ...
15621 (gdb_agent_socket_init): ... New.
15622 (gdb_ust_thread): Renamed to ...
15623 (gdb_agent_helper_thread): ... New.
15624 (gdb_ust_init): Move some code to ...
15625 (gdb_agent_init): ... here. New.
15626 [HAVE_UST]: Call gdb_ust_init.
15627 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15628 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15629 * config.in, configure: Regenerated.
15631 2012-03-02 Pedro Alves <palves@redhat.com>
15633 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15634 * linux-low.c (struct simple_pid_list): New.
15635 (stopped_pids): New a struct simple_pid_list pointer.
15636 (add_to_pid_list, pull_pid_from_list): New.
15637 (handle_extended_wait): Don't assume the first signal new children
15638 report is SIGSTOP. Adjust call to pull_pid_from_list.
15639 (linux_wait_for_lwp): Adjust.
15641 2012-03-02 Yao Qi <yao@codesourcery.com>
15643 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15646 2012-03-02 Yao Qi <yao@codesourcery.com>
15648 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15649 `stop_pc' and `tpoint'. Update caller.
15651 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15653 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15654 * linux-low.c (use_linux_regsets): New macro.
15655 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15656 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15657 (linux_register_in_regsets): New function.
15658 (usr_fetch_inferior_registers): Skip registers covered by
15660 (usr_store_inferior_registers): Likewise.
15661 (usr_fetch_inferior_registers): New macro.
15662 (usr_store_inferior_registers): Likewise.
15663 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15664 (linux_store_registers): Likewise.
15665 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15667 (init_registers_mips64_dsp_linux): Likewise.
15668 (init_registers_mips_linux): New macro.
15669 (init_registers_mips_dsp_linux): Likewise.
15670 (mips_dsp_num_regs): Likewise.
15671 (DSP_BASE, DSP_CONTROL): New fallback macros.
15672 (mips_base_regs): New macro.
15673 (mips_regmap): Use it. Fix the size.
15674 (mips_dsp_regmap): New variable.
15675 (mips_dsp_regset_bitmap): Likewise.
15676 (mips_arch_setup): New function.
15677 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15679 (mips_cannot_store_register): Likewise.
15680 (the_low_target): Update .arch_setup, .num_regs and .regmap
15681 initializers. Add .regset_bitmap initializer.
15682 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15684 * linux-bfin-low.c (the_low_target): Likewise.
15685 * linux-cris-low.c (the_low_target): Likewise.
15686 * linux-crisv32-low.c (the_low_target): Likewise.
15687 * linux-ia64-low.c (the_low_target): Likewise.
15688 * linux-m32r-low.c (the_low_target): Likewise.
15689 * linux-m68k-low.c (the_low_target): Likewise.
15690 * linux-ppc-low.c (the_low_target): Likewise.
15691 * linux-s390-low.c (the_low_target): Likewise.
15692 * linux-sh-low.c (the_low_target): Likewise.
15693 * linux-sparc-low.c (the_low_target): Likewise.
15694 * linux-tic6x-low.c (the_low_target): Likewise.
15695 * linux-x86-low.c (the_low_target): Likewise.
15696 * linux-xtensa-low.c (the_low_target): Likewise.
15697 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15698 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15699 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15701 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15702 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15704 2012-02-29 Yao Qi <yao@codesourcery.com>
15705 Pedro Alves <palves@redhat.com>
15707 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15708 `step_over_finished' is true.
15710 2012-02-27 Pedro Alves <palves@redhat.com>
15712 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15713 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15715 2012-02-27 Pedro Alves <palves@redhat.com>
15718 * linux-low.c (pid_is_stopped): New.
15719 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15721 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15723 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15726 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15728 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15730 2012-02-24 Luis Machado <lgustavo@codesourcery>
15732 * server.c (handle_query): Advertise support for target-side
15733 breakpoint condition evaluation.
15734 (process_point_options): New function.
15735 (process_serial_event): When inserting a breakpoint, check for
15736 a target-side condition that should be evaluated.
15738 * mem-break.c: Include regcache.h and ax.h.
15739 (point_cond_list_t): New data structure.
15740 (breakpoint) <cond_list>: New field.
15741 (find_gdb_breakpoint_at): Make non-static.
15742 (delete_gdb_breakpoint_at): Clear any target-side
15744 (clear_gdb_breakpoint_conditions): New function.
15745 (add_condition_to_breakpoint): Likewise.
15746 (add_breakpoint_condition): Likewise.
15747 (gdb_condition_true_at_breakpoint): Likewise.
15748 (gdb_breakpoint_here): Return result directly instead
15749 of going through a local variable.
15751 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15752 (clear_gdb_breakpoint_conditions): Likewise.
15753 (add_breakpoint_condition): Likewise.
15754 (gdb_condition_true_at_breakpoint): Likewise.
15756 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15757 (need_step_over_p): Take target-side breakpoint condition into
15760 2012-02-24 Luis Machado <lgustavo@codesourcery>
15762 * server.h: Include tracepoint.h.
15763 (agent_mem_read, agent_get_trace_state_variable_value,
15764 agent_set_trace_state_variable_value,
15765 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15766 get_set_tsv_func_addr): New prototypes.
15768 * ax.h: New include file.
15769 * ax.c: New source file.
15771 * tracepoint.c: Include ax.h.
15772 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15773 agent_expr, eval_result_type): Move to ax.h.
15774 (parse_agent_expr): Rename to ...
15775 (gdb_parse_agent_expr): ... this, make it non-static and move
15777 (unparse_agent_expr) Rename to ...
15778 (gdb_unparse_agent_expr): ... this, make it non-static and move
15780 (eval_agent_expr): Rename to ...
15781 (eval_tracepoint_agent_expr): ... this.
15782 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15783 forward declarations.
15784 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15785 (agent_get_trace_state_variable_value): New function.
15786 (agent_set_trace_state_variable_value): New function.
15787 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15788 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15789 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15790 (condition_true_at_tracepoint): Likewise.
15791 (parse_agent_expr): Rename to ...
15792 (gdb_parse_agent_expr): ... this and move to ax.c.
15793 (unparse_agent_expr): Rename to ...
15794 (gdb_unparse_agent_expr): ... this and move to ax.c.
15795 (gdb_agent_op_name): Move to ax.c.
15796 (eval_agent_expr): Rename to ...
15797 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15799 (eval_tracepoint_agent_expr): New function.
15800 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15802 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15804 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15805 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15806 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15807 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15808 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15809 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15810 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15811 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15812 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15813 (compile_bytecodes): Remove forward declaration.
15814 (is_goto_target): Move to ax.c.
15815 (compile_bytecodes): Move to ax.c and call
15816 agent_get_trace_state_variable_value (...) and
15817 agent_set_trace_state_variable_value (...).
15819 * Makefile.in: Update ax.c and IPA dependencies.
15821 2012-02-24 Pedro Alves <palves@redhat.com>
15823 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15824 (cmd_bigqtbuffer_circular): ... this. Only handle
15825 'QTBuffer:circular:'.
15826 (handle_tracepoint_general_set): Adjust.
15828 2012-02-16 Yao Qi <yao@codesourcery.com>
15830 * inferiors.c: Move code to ...
15831 * dll.c: .... here. New.
15832 * server.h: Declare clear_dlls.
15833 * Makefile.in (SFILES): Add dll.c.
15837 2012-02-11 Yao Qi <yao@codesourcery.com>
15839 * server.c: (handle_monitor_command): Add a new parameter
15841 (handle_query): Update caller.
15843 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15845 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15846 * configure, config.in: Regenerate.
15847 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15850 2012-02-02 Pedro Alves <palves@redhat.com>
15852 Try SIGKILL first, then PTRACE_KILL.
15853 * linux-low.c (linux_kill_one_lwp): New.
15854 (linux_kill_one_lwp): Rename to ...
15855 (kill_one_lwp_callback): ... this. Use the new
15856 linux_kill_one_lwp.
15858 2012-02-02 Pedro Alves <palves@redhat.com>
15860 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15863 2012-01-27 Pedro Alves <palves@redhat.com>
15865 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15866 (elf_64_file_p): Make static.
15867 (linux_pid_exe_is_elf_64_file): New.
15868 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15869 Delete declarations.
15870 (linux_pid_exe_is_elf_64_file): Declare.
15871 * linux-x86-low.c (x86_arch_setup): Use
15872 linux_pid_exe_is_elf_64_file.
15874 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15876 * linux-low.c (linux_wait_for_event_1): Rename to ...
15877 (linux_wait_for_event): ... here and merge it with former
15878 linux_wait_for_event - new variable wait_ptid, use it.
15879 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15881 2012-01-23 Pedro Alves <palves@redhat.com>
15883 * server.c (main): Avoid yet another case of infinite loop while
15884 detaching/killing after a longjmp.
15886 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15889 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15891 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15893 * hostio.c (handle_readlink): New function.
15894 (handle_vFile): Call it to handle "vFile:readlink" packets.
15896 2012-01-20 Pedro Alves <palves@redhat.com>
15897 Ulrich Weigand <ulrich.weigand@linaro.org>
15899 * server.c (handle_v_requests): Only support vAttach and vRun to
15900 start multiple processes when in extended protocol mode.
15902 2012-01-17 Pedro Alves <palves@redhat.com>
15904 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15905 memalign plus mprotect to allocate the scratch buffer.
15907 2012-01-13 Pedro Alves <palves@redhat.com>
15909 * server.c (attach_inferior): Clear `cont_thread'.
15911 2012-01-13 Pedro Alves <palves@redhat.com>
15913 * server.c (main): Avoid infinite loop while detaching/killing
15916 2012-01-09 Doug Evans <dje@google.com>
15918 * server.c (start_inferior): Set last_ptid in --wrapper case.
15920 2012-01-06 Yao Qi <yao@codesourcery.com>
15922 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15924 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15926 2012-01-04 Yao Qi <yao@codesourcery.com>
15928 * tracepoint.c (cmd_qtdp): Print debug message
15929 for static tracepoint.
15931 2012-01-04 Yao Qi <yao@codesourcery.com>
15933 * tracepoint.c (trace_vdebug): Differentiate debug message
15934 between gdbserver and IPA.
15936 2012-01-03 Yao Qi <yao@codesourcery.com>
15938 * tracepoint.c (tracepoint_was_hit): Don't collect for
15941 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15943 * terminal.h: Reformat copyright header.
15945 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15947 * server.c (gdbserver_version): Update copyright year.
15948 * gdbreplay.c (gdbreplay_version): Likewise.
15950 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15952 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15955 2011-12-18 Hui Zhu <teawater@gmail.com>
15956 * linux-low.c (linux_create_inferior): Save return value to ret.
15958 2011-12-18 Hui Zhu <teawater@gmail.com>
15960 * linux-low.c (linux_create_inferior): Save return value to ret.
15962 2011-12-16 Doug Evans <dje@google.com>
15964 * linux-low.c (linux_create_inferior): If stdio connection,
15965 redirect stdin from /dev/null, stdout to stderr.
15966 * remote-utils.c (remote_is_stdio): New static global.
15967 (remote_connection_is_stdio): New function.
15968 (remote_prepare): Handle stdio connection.
15969 (remote_open): Ditto.
15970 (remote_close): Don't close stdin for stdio connections.
15971 (read_prim,write_prim): New functions. Replace all calls to
15972 read/write to these.
15973 * server.c (main): Watch for "-" argument. Move call to
15974 remote_prepare before start_inferior.
15975 * server.h (STDIO_CONNECTION_NAME): New macro.
15976 (remote_connection_is_stdio): Declare.
15978 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15979 in debugging output.
15981 2011-12-15 Yao Qi <yao@codesourcery.com>
15983 * tracepoint.c: Include sys/syscall.h.
15984 (gdb_ust_thread): Remove preprocessor conditional.
15986 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15988 * linux-low.c (linux_detach_one_lwp): Call
15989 the_low_target.prepare_to_resume before detaching.
15991 2011-12-14 Yao Qi <yao@codesourcery.com>
15993 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15996 2011-12-14 Yao Qi <yao@codesourcery.com>
15998 * i386-low.c (i386_low_stopped_data_address): Initialize local
15999 variable `control'.
16001 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16005 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16006 DR_CONTROL unless necessary. Extend comments.
16007 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16008 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16010 2011-12-13 Yao Qi <yao@codesourcery.com>
16012 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16014 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16016 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16018 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16019 Print new debug message for such case.
16021 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16023 Fix overlapping memcpy.
16024 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16025 the read_inferior_memory transfer.
16026 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16027 write_inferior_memory transfer.
16028 (set_fast_tracepoint_jump): New variable buf. Use it for the
16029 read_inferior_memory and write_inferior_memory transfers.
16030 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16031 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16032 Use it for the write_inferior_memory transfer.
16033 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16036 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16038 * linux-low.c (fetch_register, store_register): Make code
16039 consistent, fix formatting.
16041 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16043 * linux-low.c (usr_store_inferior_registers): Factor out code
16044 to handle individual registers into...
16045 (store_register): ... this new function.
16047 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16049 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16050 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16051 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16052 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16053 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16054 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16055 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16056 (srv_xmlfiles): Add new XML files.
16058 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16060 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16061 (init_registers_s390_linux32v1): Add prototype.
16062 (init_registers_s390_linux32v2): Likewise.
16063 (init_registers_s390_linux64v1): Likewise.
16064 (init_registers_s390_linux64v2): Likewise.
16065 (init_registers_s390x_linux64v1): Likewise.
16066 (init_registers_s390x_linux64v2): Likewise.
16067 (s390_num_regs): Increment to 52.
16068 (s390_regmap): Add orig_r2 register.
16069 (s390_num_regs_3264): Increment to 68.
16070 (s390_regmap_3264): Add orig_r2 register.
16071 (s390_collect_ptrace_register): Handle orig_r2 register.
16072 (s390_supply_ptrace_register): Likewise.
16073 (s390_fill_last_break): New function.
16074 (s390_store_last_break): Likewise.
16075 (s390_fill_system_call): New function.
16076 (s390_store_system_call): Likewise.
16077 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16079 (s390_check_regset): New function.
16080 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16081 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16082 Update target_regsets for available register sets.
16084 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16085 Jan Kratochvil <jan.kratochvil@redhat.com>
16087 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16088 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16090 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16091 * linux-low.h (struct process_info_private): New member r_debug.
16092 * server.c (handle_qxfer_libraries): Call
16093 the_target->qxfer_libraries_svr4.
16094 (handle_qxfer_libraries_svr4): New function.
16095 (qxfer_packets): New entry "libraries-svr4".
16096 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16097 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16098 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16099 PACKET_qXfer_libraries_svr4.
16101 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16103 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16104 PSW address/mask between 8-byte and 16-byte formats.
16105 (s390_supply_ptrace_register): Likewise.
16106 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16107 basic addressing mode bit.
16109 2011-11-24 Stan Shebs <stan@codesourcery.com>
16111 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16113 2011-11-17 Stan Shebs <stan@codesourcery.com>
16115 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16116 (tracing_start_time): New global.
16117 (tracing_stop_time): New global.
16118 (tracing_user_name): New global.
16119 (tracing_notes): New global.
16120 (tracing_stop_note): New global.
16121 (cmd_qtstart): Set traceframe_usage, start_time.
16122 (stop_tracing): Set stop_time.
16123 (cmd_qtstatus): Report additional status.
16124 (cmd_qtp): New function.
16125 (handle_tracepoint_query): Call it.
16126 (cmd_qtnotes): New function.
16127 (handle_tracepoint_general_set): Call it.
16128 (get_timestamp): Rename from tsv_get_timestamp.
16130 2011-11-14 Stan Shebs <stan@codesourcery.com>
16131 Kwok Cheung Yeung <kcy@codesourcery.com>
16133 * linux-x86-low.c (small_jump_insn): New.
16134 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16135 trampoline and error message, build a trampoline and issue a small
16136 jump instruction to it.
16137 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16138 trampoline and error message.
16139 (x86_get_min_fast_tracepoint_insn_len): New.
16140 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16141 * linux-low.h (struct linux_target_ops): Add arguments to
16142 install_fast_tracepoint_jump_pad operation, add new operation.
16143 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16145 (linux_get_min_fast_tracepoint_insn_len): New function.
16146 (linux_target_op): Add new operation.
16147 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16148 (gdb_trampoline_buffer_end): Ditto.
16149 (gdb_trampoline_buffer_error): Ditto.
16150 (struct ipa_sym_addresses): Add fields for new IPA variables.
16151 (symbol_list): Add entries for new IPA variables.
16152 (struct tracepoint): Add fields to hold the address range of the
16153 trampoline used by the tracepoint.
16154 (trampoline_buffer_head): New static variable.
16155 (trampoline_buffer_tail): Ditto.
16156 (claim_trampoline_space): New function.
16157 (have_fast_tracepoint_trampoline_buffer): New function.
16158 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16160 (install_fast_tracepoint): Ditto, also add error buffer argument.
16161 (cmd_qtminftpilen): New function.
16162 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16163 (fast_tracepoint_from_trampoline_address): New function.
16164 (fast_tracepoint_collecting): Handle trampoline as part of jump
16166 (set_trampoline_buffer_space): New function.
16167 (initialize_tracepoint): Initialize new IPA variables.
16168 * target.h (struct target_ops): Add arguments to
16169 install_fast_tracepoint_jump_pad operation, add new
16170 get_min_fast_tracepoint_insn_len operation.
16171 (target_get_min_fast_tracepoint_insn_len): New.
16172 (install_fast_tracepoint_jump_pad): Add arguments.
16173 * server.h (IPA_BUFSIZ): Define.
16174 * linux-i386-ipa.c: Include extra header files.
16175 (initialize_fast_tracepoint_trampoline_buffer): New function.
16176 (initialize_low_tracepoint): Call it.
16177 * server.h (set_trampoline_buffer_space): Declare.
16178 (claim_trampoline_space): Ditto.
16179 (have_fast_tracepoint_trampoline_buffer): Ditto.
16181 2011-11-14 Yao Qi <yao@codesourcery.com>
16183 * server.c (handle_query): Handle InstallInTrace for qSupported.
16184 * tracepoint.c (add_tracepoint): Sort list.
16185 (install_tracepoint, download_tracepoint): New.
16186 (cmd_qtdp): Call them to install and download tracepoints.
16187 (sort_tracepoints): Removed.
16188 (cmd_qtstart): Update.
16190 2011-11-14 Yao Qi <yao@codesourcery.com>
16192 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16193 * mem-break.h: Declare.
16194 * tracepoint.c (cmd_qtstart): Move some code to ...
16195 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16197 (download_tracepoints): Move some code to ...
16198 (download_tracepoint_1): ... here. New.
16200 2011-11-08 Yao Qi <yao@codesourcery.com>
16202 * remote-utils.c (relocate_instruction): A comment fix.
16204 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16206 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16207 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16208 dr_status_mirror and dr_control_mirror from debug_reg_state.
16209 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16210 (i386_initial_stuff): Remove use of deleted globals.
16211 (i386_get_thread_context, i386_set_thread_context,
16212 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16213 from debug_reg_state.
16215 2011-11-05 Yao Qi <yao@codesourcery.com>
16217 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16218 address as TPOINT's.
16220 2011-11-02 Stan Shebs <stan@codesourcery.com>
16222 * tracepoint.c (agent_mem_read_string): New function.
16223 (eval_agent_expr): Call it for tracenz.
16224 * server.c (handle_query): Report support for tracenz.
16226 2011-11-02 Yao Qi <yao@codesourcery.com>
16228 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16230 2011-11-02 Yao Qi <yao@codesourcery.com>
16232 * target.h: Fix a typo in comment.
16234 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16236 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16237 clobber the breakpoints' shadows with fast tracepoint jumps.
16238 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16239 * target.c (write_inferior_memory): Also pass MYADDR down to
16242 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16244 * configure.ac: Check support for personality routine.
16245 * configure: Regenerate.
16246 * config.in: Likewise.
16247 * linux-low.c: Include <sys/personality.h>.
16248 Define ADDR_NO_RANDOMIZE if necessary.
16249 (linux_create_inferior): Disable address space randomization when
16250 forking inferior, if requested.
16251 (linux_supports_disable_randomization): New function.
16252 (linux_target_ops): Install it.
16253 * server.h (disable_randomization): Declare.
16254 * server.c (disable_randomization): New global variable.
16255 (handle_general_set): Handle QDisableRandomization.
16256 (handle_query): Likewise for qSupported.
16257 (main): Support --disable-randomization and --no-disable-randomization
16258 command line arguments.
16259 * target.h (struct target_ops): Add supports_disable_randomization.
16260 (target_supports_disable_randomization): New macro.
16262 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16264 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16266 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16267 [!PT_GETDSBT] (target_loadmap): New definition.
16268 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16269 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16270 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16271 and PT_GETDSBT to LINUX_LOADMAP.
16272 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16273 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16275 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16277 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16278 (arm_linux_hwbp_cap): New static variable.
16279 (arm_linux_get_hwbp_cap): Replace by ...
16280 (arm_linux_init_hwbp_cap): ... this new function.
16281 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16282 (arm_linux_get_hw_watchpoint_count): Likewise.
16283 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16284 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16285 (arm_prepare_to_resume): Use perror_with_name instead of error.
16287 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16289 * linux-arm-low.c: Include <signal.h>.
16290 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16291 (struct arm_linux_hwbp_cap): New data type.
16292 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16293 (struct arm_linux_hw_breakpoint): New data type.
16294 (MAX_BPTS, MAX_WPTS): Define.
16295 (struct arch_process_info, struct arch_lwp_info): New data types.
16296 (arm_linux_get_hwbp_cap): New function.
16297 (arm_linux_get_hw_breakpoint_count): Likewise.
16298 (arm_linux_get_hw_watchpoint_count): Likewise.
16299 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16300 (arm_hwbp_control_initialize): Likewise.
16301 (arm_hwbp_control_is_enabled): Likewise.
16302 (arm_hwbp_control_is_initialized): Likewise.
16303 (arm_hwbp_control_disable): Likewise.
16304 (arm_linux_hw_breakpoint_equal): Likewise.
16305 (arm_linux_hw_point_initialize): Likewise.
16306 (struct update_registers_data): New data structure.
16307 (update_registers_callback: New function.
16308 (arm_insert_point): Likewise.
16309 (arm_remove_point): Likewise.
16310 (arm_stopped_by_watchpoint): Likewise.
16311 (arm_stopped_data_address): Likewise.
16312 (arm_new_process): Likewise.
16313 (arm_new_thread): Likewise.
16314 (arm_prepare_to_resume): Likewise.
16315 (the_low_target): Register arm_insert_point, arm_remove_point,
16316 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16317 arm_new_thread, and arm_prepare_to_resume.
16319 2011-09-15 Stan Shebs <stan@codesourcery.com>
16321 * server.h (struct emit_ops): Add compare-goto fields.
16322 * tracepoint.c (gdb_agent_op_sizes): New table.
16323 (emit_eq_goto): New function.
16324 (emit_ne_goto): New function.
16325 (emit_lt_goto): New function.
16326 (emit_le_goto): New function.
16327 (emit_gt_goto): New function.
16328 (emit_ge_goto): New function.
16329 (is_goto_target): New function.
16330 (compile_bytecodes): Recognize special cases of compare-goto
16331 combinations and call specialized emitters for them.
16332 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16333 (amd64_emit_ne_goto): New function.
16334 (amd64_emit_lt_goto): New function.
16335 (amd64_emit_le_goto): New function.
16336 (amd64_emit_gt_goto): New function.
16337 (amd64_emit_ge_goto): New function.
16338 (amd64_emit_ops): Add the new functions.
16339 (i386_emit_eq_goto): New function.
16340 (i386_emit_ne_goto): New function.
16341 (i386_emit_lt_goto): New function.
16342 (i386_emit_le_goto): New function.
16343 (i386_emit_gt_goto): New function.
16344 (i386_emit_ge_goto): New function.
16345 (i386_emit_ops): Add the new functions.
16347 2011-09-08 Stan Shebs <stan@codesourcery.com>
16349 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16350 (i386_emit_epilogue): Restore %ebx.
16352 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16354 * server.c (step_thread): Remove definition.
16355 (process_serial_event): Don't handle Hs.
16356 * server.h (step_thread): Remove declaration.
16357 * target.c (set_desired_inferior): Remove use of step_thread.
16359 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16361 * linux-low.c: Include linux-procfs.h.
16362 (linux_attach_lwp_1): Update comments.
16363 (linux_attach): Scan for existing threads when attaching to a
16364 process that is the tgid.
16365 * Makefile.in: Update dependencies.
16367 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16369 * configure.srv: Add linux-procfs.o dependencies.
16371 2011-08-14 Yao Qi <yao@codesourcery.com>
16373 * target.h (struct target_ops): Fix indent.
16374 * win32-low.c (win32_target_ops): Fix comment.
16376 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16377 Yao Qi <yao@codesourcery.com>
16379 * Makefile.in (clean): Remove tic6x-*.c files.
16380 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16381 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16382 (tic6x-c64xp-linux.c): Likewise.
16383 * configure.srv: Add support for tic6x-*-uclinux.
16384 * linux-tic6x-low.c: New.
16385 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16387 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16388 Yao Qi <yao@codesourcery.com>
16390 * target.h (struct target_ops): Add read_loadmap.
16391 * linux-low.c (struct target_loadseg): New type.
16392 (struct target_loadmap): New type.
16393 (linux_read_loadmap): New function.
16394 (linux_target_ops): Add linux_read_loadmap.
16395 * server.c (handle_query): Support qXfer:fdpic:read packet.
16396 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16399 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16401 * win32-low.c: Include <stdint.h>.
16403 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16405 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16406 to the inferior here.
16407 (i386_remove_aligned_watchpoint): Ditto.
16408 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16409 fit part of the watchpoint in the debug registers.
16410 (i386_update_inferior_debug_regs): New.
16411 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16412 registers, and only update the inferior on success.
16413 (i386_low_remove_watchpoint): Ditto.
16415 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16417 * linux-low.c (compare_ints, unique, list_threads, show_process,
16418 linux_core_of_thread): Delete.
16419 (linux_target_ops): Change linux_core_of_thread to
16420 linux_common_core_of_thread.
16421 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16422 * utils.c (malloc_failure): Change type of argument.
16423 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16424 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16425 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16426 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16427 (IPA_OBJS): Add common-utils-ipa.o.
16428 (ptid_h, linux_osdata_h): New macros.
16429 (server_h): Add common/common-utils.h, common/xml-utils.h,
16430 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16432 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16433 ptid.o, buffer.o): New rules.
16434 (linux-low.o): Add common/linux-osdata.h as a dependency.
16435 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16436 * configure.ac: Add AC_HEADER_DIRENT check.
16437 * config.in: Regenerate.
16438 * configure: Regenerate.
16439 * remote-utils.c (xml_escape_text): Delete.
16440 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16441 buffer_xml_printf): Move to common/buffer.c.
16442 * server.c (main): Remove call to initialize_inferiors.
16443 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16444 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16445 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16446 internal_error, gdb_assert, gdb_assert_fail): Delete.
16447 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16448 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16450 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16451 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16452 initialize_inferiors): Delete.
16454 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16456 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16459 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16461 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16463 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16465 2011-05-26 Yao Qi <yao@codesourcery.com>
16467 * Makefile.in (thread-db.o): Track dependence to
16468 common/gdb_thread_db.h.
16469 * thread-db.c: include gdb_thread_db.h from right place.
16471 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16473 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16474 __FILE__ and __LINE__ to internal_error.
16476 2011-05-13 Doug Evans <dje@google.com>
16478 * thread-db.c (try_thread_db_load_from_sdir): New function.
16479 (try_thread_db_load_from_dir): New function.
16480 (thread_db_load_search): Handle $sdir, ignore $pdir.
16481 Remove trying of system directories if search of
16482 libthread-db-search-path fails, that is now done via $sdir.
16484 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16486 * server.c (handle_query): Add EnableDisableTracepoints to the list
16487 of supported features.
16488 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16490 (cmd_qtenable_disable): New.
16491 (cmd_qtstart): Install tracepoints even if disabled.
16492 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16493 receiving a QTEnable or QTDisable packet.
16494 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16495 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16497 (gdb_probe): Skip data collection if static tracepoint is disabled.
16499 2011-05-10 Doug Evans <dje@google.com>
16501 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16503 2011-05-04 Doug Evans <dje@google.com>
16505 * linux-low.c (linux_join): Skip process lookup.
16506 * spu-low.c (spu_join): Ditto.
16507 * server.c (join_inferiors_callback): Delete.
16508 (process_serial_event): For 'D' packet (detach) call join_inferior
16511 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16513 * README: Don't mention xscale*-*-linux*.
16514 * configure.srv (xscale*-*-linux*): Don't handle target.
16516 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16518 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16520 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16521 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16522 (i386_emit_void_call_2): Likewise.
16524 2011-04-26 Yao Qi <yao@codesourcery.com>
16526 * linux-low.c: Move common macros to linux-ptrace.h.
16527 Include linux-ptrace.h.
16528 * Makefile.in (linux_ptrace_h): New.
16529 (linux-low.o): Depends on linux-ptrace.h.
16531 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16533 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16534 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16535 (remote_prepare): New function with most of the TCP code from ...
16536 (remote_open): ... here. Detect PORT here unconditionally. Move also
16537 setting transport_is_reliable.
16538 * server.c (run_once): New variable.
16539 (gdbserver_usage): Document it.
16540 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16541 the first run if RUN_ONCE.
16542 * server.h (run_once, remote_prepare): New declarations.
16544 2011-04-19 Tom Tromey <tromey@redhat.com>
16546 * win32-low.c (handle_load_dll): Remove duplicate "the".
16548 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16550 Remove support for old Cygwin 1.5 versions.
16551 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16552 function to avoid warning.
16553 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16556 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16558 * gdbserver/server.h (Macro _): Define it if not available.
16560 2011-03-14 Michael Snyder <msnyder@vmware.com>
16562 * hostio.c (handle_close): Remove unnecessary null test.
16564 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16566 * Makefile.in (maintainer-clean realclean distclean): Remove
16567 "make ... subdir_do" command.
16569 2011-03-10 Michael Snyder <msnyder@vmware.com>
16571 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16573 * server.c (handle_v_run): Free alloced buffer on early return.
16575 2011-03-09 Yao Qi <yao@codesourcery.com>
16578 2011-03-04 Yao Qi <yao@codesourcery.com>
16580 * Makefile.in: Remove GNU make feature --directory.
16582 2011-03-05 Yao Qi <yao@codesourcery.com>
16584 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16585 (subdir_do): New make target. Copied from gdb/Makefile.
16586 (maintainer-clean, realclean, distclean, clean): Call corresponding
16587 make targets in common/Makefile.
16589 2011-02-11 Yao Qi <yao@codesourcery.com>
16591 * configure.ac: Call AC_PROG_RANLIB.
16592 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16593 * configure: Regenerate.
16595 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16597 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16599 2011-03-06 Yao Qi <yao@codesourcery.com>
16601 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16603 2011-03-05 Yao Qi <yao@codesourcery.com>
16605 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16606 (subdir_do): New make target. Copied from gdb/Makefile.
16607 (maintainer-clean, realclean, distclean, clean): Call corresponding
16608 make targets in common/Makefile.
16610 2011-03-04 Yao Qi <yao@codesourcery.com>
16612 * Makefile.in: Remove GNU make feature --directory.
16614 2011-03-04 Michael Snyder <msnyder@vmware.com>
16616 * server.c (queue_stop_reply): Call xmalloc not malloc.
16618 2011-03-02 Michael Snyder <msnyder@vmware.com>
16620 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16622 2011-02-28 Michael Snyder <msnyder@vmware.com>
16624 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16625 (cmd_qtframe): Ditto.
16626 (cmd_qtbuffer): Ditto.
16627 (cmd_bigqtbuffer): Ditto.
16629 * utils.c (decimal2str): Initialize 'width' to nine, then
16630 don't mess with it.
16632 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16634 * hostio.c (require_data): Free *data, not data.
16636 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16638 * hostio.c (require_data): Use free, not xfree.
16640 2011-02-27 Michael Snyder <msnyder@vmware.com>
16642 * server.c (handle_query): Discard unused value.
16644 * hostio.c (require_data): Free malloc memory before returning
16647 2011-02-26 Michael Snyder <msnyder@vmware.com>
16649 * linux-low.c (list_threads): Call closedir for dirent.
16651 2011-02-27 Michael Snyder <msnyder@vmware.com>
16653 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16654 a case statement falls through.
16656 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16658 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16661 2011-02-26 Michael Snyder <msnyder@vmware.com>
16663 * utils.c (decimal2str): Eliminate dead code and dead param.
16664 (pulongest): Drop dead param from call to decimal2str.
16667 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16669 Revert the following patch (not approved yet):
16670 2011-02-21 Hui Zhu <teawater@gmail.com>
16671 * tracepoint.c (tp_printf): New function.
16672 (eval_agent_expr): Handle gdb_agent_op_printf.
16674 2011-02-21 Hui Zhu <teawater@gmail.com>
16676 * tracepoint.c (tp_printf): New function.
16677 (eval_agent_expr): Handle gdb_agent_op_printf.
16679 2011-02-18 Tom Tromey <tromey@redhat.com>
16681 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16682 (tracepoint.o): Likewise.
16683 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16684 (gdb_agent_op_names): Likewise.
16686 2011-02-18 Tom Tromey <tromey@redhat.com>
16688 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16689 gdb_agent_op_rot>: New constants.
16690 (gdb_agent_op_names): Add pick and roll.
16691 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16694 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16696 * aclocal.m4: Regenerated with aclocal-1.11.1.
16698 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16700 * server.c (handle_qxfer_traceframe_info): New.
16701 (qxfer_packets): Register "traceframe-info".
16702 (handle_query): Report support for qXfer:traceframe-info:read+.
16703 * tracepoint.c (match_blocktype): New.
16704 (traceframe_find_block_type): Rename to ...
16705 (traceframe_walk_blocks): ... this. Add callback filter argument,
16707 (traceframe_find_block_type): New, reimplemented on top of
16708 traceframe_walk_blocks.
16709 (build_traceframe_info_xml): New.
16710 (traceframe_read_info): New.
16711 * server.h (traceframe_read_info): Declare.
16713 2011-02-11 Yao Qi <yao@codesourcery.com>
16715 * configure.ac: Call AC_PROG_RANLIB.
16716 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16717 * configure: Regenerate.
16719 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16721 * server.c (gdb_read_memory): Change return semantics to allow
16723 (handle_search_memory_1): Adjust.
16724 (process_serial_event) <'m' packet>: Handle partial transfers.
16725 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16727 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16729 * regcache.c (init_register_cache): Initialize
16730 regcache->register_status.
16731 (free_register_cache): Release regcache->register_status.
16732 (regcache_cpy): Copy register_status.
16733 (registers_to_string): Print 'x's for unavailable registers.
16734 (supply_register): Mark the register's status valid or
16735 unavailable, depending on whether a buffer was passed in or not.
16736 (supply_register_zeroed): New.
16737 (supply_regblock): Mark the registers' status valid or
16738 unavailable, depending on whether a buffer was passed in or not.
16739 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16740 (struct regcache): New `register_status' field.
16741 (supply_register_zeroed): Declare.
16742 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16743 supply_register_zeroed, rather than passing a NULL buffer to
16745 * tracepoint.c (fetch_traceframe_registers): Update comment.
16747 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16749 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16752 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16754 * server.h (decode_xfer_write): Change prototype.
16755 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16756 and don't extract the annex here.
16757 * server.c (decode_xfer_read): Remove `annex' parameter,
16758 and don't extract the annex here.
16759 (decode_xfer): New.
16760 (struct qxfer): New.
16761 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16762 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16763 (handle_qxfer_statictrace): New functions, abstracted out from
16764 handle_query, and made to use the struct qxfer interface.
16765 (handle_threads_qxfer_proper): Rename to ...
16766 (handle_qxfer_threads_proper): ... this.
16767 (handle_threads_qxfer): Rename to ...
16768 (handle_qxfer_threads): ... this. Adjust.
16769 (qxfer_packets): New array.
16770 (handle_qxfer): New function.
16771 (handle_query): Use handle_qxfer.
16773 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16775 * gdbreplay.c: Shorten lines of >= 80 columns.
16776 * linux-low.c: Ditto.
16777 * linux-ppc-low.c: Ditto.
16778 * linux-s390-low.c: Ditto.
16779 * linux-sparc-low.c: Ditto.
16780 * linux-x86-low.c: Ditto.
16781 * linux-xtensa-low.c: Ditto.
16782 * mem-break.c: Ditto.
16783 * nto-low.c: Ditto.
16784 * regcache.h: Ditto.
16785 * remote-utils.c: Ditto.
16788 * thread-db.c: Ditto.
16789 * tracepoint.c: Ditto.
16791 * win32-low.h: Ditto.
16793 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16795 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16798 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16800 * server.c (gdbserver_version): Update copyright year in version
16802 * gdbreplay.c (gdbreplay_version): Ditto.
16804 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16806 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16807 * linux-bfin-low.c: New file.
16808 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16809 PT_DATA_ADDR for BFIN targets.
16810 * Makefile.in (SFILES): Add linux-bfin-low.c.
16811 (clean): Remove reg-bfin.c.
16812 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16813 * README: Mention supported Blackfin targets.
16815 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16817 * .gitignore: New file.
16819 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16821 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16823 2010-10-22 Jie Zhang <jie@codesourcery.com>
16825 * Makefile.in: Add FLAGS_TO_PASS variable.
16826 (install): Remove dependency of install-only and recursively
16827 invoke make for install-only.
16829 2010-10-04 Doug Evans <dje@google.com>
16831 * Makefile.in (uninstall): Use $(DESTDIR).
16833 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16837 * linux-x86-low.c (compat_siginfo_from_siginfo)
16838 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16839 si_code is < 0. Check for si_code == SI_TIMER before checking for
16842 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16844 * lynx-i386-low.c: New file.
16845 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16847 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16849 * lynx-low.c (ptrace_request_to_str): Remove handling for
16850 request values that have been removed in LynxOS 5.x.
16852 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16854 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16857 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16859 * configure.ac: Add --enable-inprocess-agent option.
16860 * configure: Rebuilt.
16862 2010-09-06 Yao Qi <yao@codesourcery.com>
16864 * linux-low.c (linux_kill): Remove unused variable.
16865 (linux_stabilize_threads): Likewise.
16866 * server.c (start_inferior): Likewise.
16867 (queue_stop_reply_callback): Likewise.
16868 * tracepoint.c (do_action_at_tracepoint): Likewise.
16870 2010-09-06 Yao Qi <yao@codesourcery.com>
16872 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16875 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16877 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16879 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16881 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16884 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16886 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16887 gdbserver/lynx-ppc-low.c: New files.
16888 * Makefile.in (lynx_low_h): New variable.
16889 (lynx-low.o, lynx-ppc-low.o): New rules.
16890 * configure.ac: On LynxOS, link with -lnetinet.
16891 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16892 * configure: regenerate.
16894 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16896 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16897 * configure.ac: Add check for vasprintf and vsnprintf.
16898 * configure, config.in: Regenerate.
16899 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16901 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16903 * gdbreplay.c: Move include of alloca.h up, next to include of
16905 * server.h: Add include of malloc.h.
16906 * mem-break.c: Remove include of malloc.h.
16907 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16909 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16911 * Makefile.in (memmem.o): Build with -Wno-error.
16913 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16915 * utils.c (xsnprintf): Make non-static.
16916 * server.h: Add xsnprintf declaration.
16917 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16918 replace calls to snprintf by calls to xsnprintf throughout.
16920 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16922 * configure.ac: Add configure check for alloca.
16923 * configure, config.in: Regenerate.
16924 * server.h: Include alloca.h if it exists.
16925 * gdbreplay.c: Include alloca.h if it exists.
16927 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16929 * linux-low.c (__SIGRTMIN): Define if not already defined.
16930 (linux_create_inferior): Check for __ANDROID__ rather than
16932 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16933 are already deferred.
16934 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16935 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16936 stopped and already has a pending signal to report.
16937 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16938 a pending signal to report or is moving out of a jump pad.
16939 (linux_init_signals): Check for __ANDROID__ rather than
16942 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16944 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16945 debug_threads check. Avoid a linear search when not doing debug
16948 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16950 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16951 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16952 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16953 (process_event): Change local fd's type to gdb_fildes_t.
16954 (create_file_handler): Adjust prototype.
16955 (delete_file_handler): Adjust prototype.
16956 (handle_file_event): Adjust prototype. Use pfildes.
16957 (create_file_event): Adjsut prototype.
16958 * remote-utils.c (remote_desc, listen_desc): Change type to
16960 * server.h: New gdb_fildes_t typedef.
16961 [USE_WIN32API]: Include winsock2.h.
16962 (delete_file_handler, add_file_handler): Adjust prototypes.
16963 (pfildes): Declare.
16964 * utils.c (pfildes): New.
16966 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16968 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16969 * configure: Regenerate.
16971 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16973 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16974 (linux_done_accessing_memory): ... this.
16975 (linux_target_ops): Adjust.
16976 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16977 * nto-low.c (nto_target_ops): Adjust comment.
16978 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16979 * spu-low.c (spu_target_ops): Adjust comment.
16980 * target.h (target_ops): Rename unprepare_to_access_memory field
16981 to done_accessing_memory.
16982 (unprepare_to_access_memory): Rename to ...
16983 (done_accessing_memory): ... this.
16985 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16987 * linux-low.c (linux_prepare_to_access_memory): New.
16988 (linux_unprepare_to_access_memory): New.
16989 (linux_target_ops): Install them.
16990 * server.c (read_memory): Rename to ...
16991 (gdb_read_memory): ... this. Use
16992 prepare_to_access_memory/prepare_to_access_memory.
16993 (write_memory): Rename to ...
16994 (gdb_write_memory): ... this. Use
16995 prepare_to_access_memory/prepare_to_access_memory.
16996 (handle_search_memory_1): Adjust.
16997 (process_serial_event): Adjust.
16998 * target.h (struct target_ops): New fields
16999 prepare_to_access_memory and unprepare_to_access_memory.
17000 (prepare_to_access_memory, unprepare_to_access_memory): New.
17001 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17002 prepare_to_access_memory/prepare_to_access_memory.
17003 * nto-low.c (nto_target_ops): Adjust.
17004 * spu-low.c (spu_target_ops): Adjust.
17005 * win32-low.c (win32_target_ops): Adjust.
17007 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17009 * Makefile.in (WARN_CFLAGS): Get it from configure.
17010 (WERROR_CFLAGS): New.
17011 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17012 * configure.ac: Introduce --enable-werror, which adds -Werror to
17013 the compiler command line. Enabled by default. Disable with
17014 --disable-werror. Add -Wdeclaration-after-statement
17015 Wpointer-arith and -Wformat-nonliteral to warning flags.
17016 * configure: Regenerate.
17018 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17020 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17022 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17024 * gdbreplay.c (remote_error): New.
17026 (expect): Use gdbchar. Check for error reading from GDB.
17027 Clarify sync error output.
17028 (play): Check for errors writing to GDB.
17029 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17030 * remote-utils.c (getpkt): Check for errors writing to the remote
17033 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17035 * linux-low.c (linux_wait_1): Move non-debugging code out of
17036 `debug_threads' control.
17038 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17040 * linux-low.c (linux_wait_1): Don't set last_status here.
17041 * server.c (push_event, queue_stop_reply_callback): Assert we're
17042 not pushing a TARGET_WAITKIND_IGNORE event.
17043 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17044 (myresume, handle_target_event): Set the thread's last_resume_kind
17045 and last_status from the target returned status.
17047 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17051 * linux-x86-low.c (update_debug_registers_callback): New.
17052 (i386_dr_low_set_addr): Use it.
17053 (i386_dr_low_get_addr): New.
17054 (i386_dr_low_set_control): Use update_debug_registers_callback.
17055 (i386_dr_low_get_control): New.
17056 (i386_dr_low_get_status): Adjust.
17057 * linux-low.c (linux_stop_lwp): New.
17058 * linux-low.h (linux_stop_lwp): Declare.
17060 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17061 argument instead of a i386_debug_reg_state.
17062 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17063 a i386_debug_reg_state.
17064 (i386_insert_aligned_watchpoint): Adjust.
17065 (i386_remove_aligned_watchpoint): Adjust.
17066 (i386_low_stopped_data_address): Read the debug registers from the
17067 inferior instead of from the mirrors.
17068 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17069 (i386_dr_low_get_addr): Declare.
17070 (i386_dr_low_get_control): Declare.
17071 (i386_dr_low_get_status): Change prototype.
17073 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17074 (i386_dr_low_get_addr): New.
17075 (i386_dr_low_get_control): New.
17076 (i386_dr_low_get_status): Adjust prototype. Return
17078 (i386_initial_stuff): Clear dr_status_mirror and
17080 (i386_get_thread_context): Adjust.
17081 (i386_set_thread_context): Adjust.
17082 (i386_thread_added): Adjust.
17084 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17086 * linux-low.h (linux_thread_area): Delete declaration.
17088 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17090 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17091 after its termination.
17093 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17095 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17096 (gdb_wants_all_stopped): Delete.
17097 (linux_wait_1): Don't call them.
17098 * server.c (handle_v_cont): Tag all threads as want-stopped.
17099 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17100 stopped as "client-wants-stopped".
17102 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17104 * Makefile.in (signals_h): New.
17105 (server_h): Depend on it.
17106 (server.o): Don't depend on $(signals_def).
17107 (signals.o): Depend on $(signals_def).
17109 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17111 * Makefile.in (signals_def): New.
17112 (server_h): Append include/gdb/signals.h and signals_def.
17113 (server.o): Append signals_def.
17115 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17117 * server.c (handle_target_event): Use target_signal_to_host for
17118 resume_info.sig initialization.
17119 * target.h (struct thread_resume) <sig>: New comment.
17121 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17123 * server.c (handle_query): strcpy() the returned string from paddress()
17124 instead of sprintf().
17125 * utils.c (paddress): Return phex_nz().
17127 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17129 * server.c (handle_v_cont): Call mourn_inferior if process
17131 (myresume): Likewise.
17133 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17135 Static tracepoints, and integration with UST.
17137 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17138 * mem-break.c (uninsert_all_breakpoints)
17139 (reinsert_all_breakpoints): New.
17140 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17141 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17142 (gdb_agent_ust_loaded, helper_thread_id)
17143 (gdb_agent_helper_thread_id): New macros.
17144 (struct ipa_sym_addresses): Add addr_ust_loaded,
17145 addr_helper_thread_id, addr_cmd_buf.
17146 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17147 (in_process_agent_loaded_ust): New.
17148 (write_e_ust_not_loaded): New.
17149 (maybe_write_ipa_ust_not_loaded): New.
17150 (struct collect_static_trace_data_action): New.
17151 (enum tracepoint_type) <static_tracepoint>: New.
17152 (struct tracepoint) <handle>: Mention static tracepoints.
17153 (struct static_tracepoint_ctx): New.
17154 (CMD_BUF_SIZE): New.
17155 (add_tracepoint_action): Handle static tracepoint actions.
17156 (unprobe_marker_at): New.
17157 (clear_installed_tracepoints): Handle static tracepoints.
17158 (cmd_qtdp): Handle static tracepoints.
17159 (probe_marker_at): New.
17160 (cmd_qtstart): Handle static tracepoints.
17161 (response_tracepoint): Handle static tracepoints.
17162 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17163 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17164 (get_context_regcache): Handle static tracepoints.
17165 (do_action_at_tracepoint): Handle static tracepoint actions.
17166 (traceframe_find_block_type): Handle static trace data blocks.
17167 (traceframe_read_sdata): New.
17168 (download_tracepoints): Download static tracepoint actions.
17169 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17170 (GDB_PROBE_NAME): New.
17172 (GET_UST_SYM): New.
17175 (ust_marker_to_static_tracepoint): New.
17177 (collect_ust_data_at_tracepoint): New.
17178 (gdb_ust_probe): New.
17179 (UNIX_PATH_MAX, SOCK_DIR): New.
17180 (gdb_ust_connect_sync_socket): New.
17181 (resume_thread, stop_thread): New.
17182 (run_inferior_command): New.
17183 (init_named_socket): New.
17184 (gdb_ust_socket_init): New.
17185 (cstr_to_hexstr): New.
17187 (first_marker, next_marker): New.
17188 (response_ust_marker): New.
17189 (cmd_qtfstm, cmd_qtsstm): New.
17190 (unprobe_marker_at, probe_marker_at): New.
17191 (cmd_qtstmat, gdb_ust_thread): New.
17192 (gdb_ust_init): New.
17193 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17194 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17195 (ST_REGENTRY): New.
17196 (x86_64_st_collect_regmap): New.
17197 (X86_64_NUM_ST_COLLECT_GREGS): New.
17198 (AMD64_RIP_REGNUM): New.
17199 (supply_static_tracepoint_registers): New.
17200 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17201 (ST_REGENTRY): New.
17202 (i386_st_collect_regmap): New.
17203 (i386_NUM_ST_COLLECT_GREGS): New.
17204 (supply_static_tracepoint_registers): New.
17205 * server.c (handle_query): Handle qXfer:statictrace:read.
17206 <qSupported>: Report support for StaticTracepoints, and
17207 qXfer:statictrace:read features.
17208 * server.h (traceframe_read_sdata)
17209 (supply_static_tracepoint_registers): Declare.
17210 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17211 (unpack_varlen_hex): Include in IPA build.
17212 * Makefile.in (ustlibs, ustinc): New.
17213 (IPA_OBJS): Add remote-utils-ipa.o.
17214 ($(IPA_LIB)): Link -ldl and -lpthread.
17216 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17217 * config.in, configure: Regenerate.
17219 2010-06-20 Ian Lance Taylor <iant@google.com>
17220 Pedro Alves <pedro@codesourcery.com>
17222 * linux-x86-low.c (always_true): Delete.
17223 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17224 trying to fool the compiler with always_true.
17226 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17228 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17229 conditions in gdbserver.
17231 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17233 * spu-low.c (spu_read_memory): Wrap around local store limit.
17234 (spu_write_memory): Likewise.
17236 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17238 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17239 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17241 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17243 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17244 uses with LONGEST uses.
17246 2010-06-14 Stan Shebs <stan@codesourcery.com>
17247 Pedro Alves <pedro@codesourcery.com>
17251 * linux-x86-low.c: Include limits.h.
17253 (always_true): New.
17256 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17257 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17258 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17259 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17260 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17261 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17262 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17263 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17264 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17265 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17266 (amd64_emit_void_call_2): New.
17267 (amd64_emit_ops): New.
17268 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17269 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17270 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17271 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17272 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17273 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17274 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17275 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17276 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17277 (i386_emit_stack_adjust, i386_emit_int_call_1)
17278 (i386_emit_void_call_2): New.
17279 (i386_emit_ops): New.
17280 (x86_emit_ops): New.
17281 (the_low_target): Install x86_emit_ops.
17282 * server.h (struct emit_ops): New.
17283 (get_raw_reg_func_addr): Declare.
17284 (current_insn_ptr, emit_error): Declare.
17285 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17286 (set_trace_state_variable_value): New defines.
17287 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17288 addr_get_trace_state_variable_value and
17289 addr_set_trace_state_variable_value.
17290 (symbol_list): New fields for get_raw_reg,
17291 get_trace_state_variable_value and set_trace_state_variable_value.
17292 (condfn): New typedef.
17293 (struct tracepoint): New field `compiled_cond'.
17294 (do_action_at_tracepoint): Clear compiled_cond.
17295 (get_trace_state_variable_value, set_trace_state_variable_value):
17297 (condition_true_at_tracepoint): If there's a compiled condition,
17299 (current_insn_ptr, emit_error): New globals.
17300 (struct bytecode_address): New.
17301 (get_raw_reg_func_addr): New.
17302 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17303 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17304 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17305 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17306 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17307 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17308 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17309 (compile_tracepoint_condition, compile_bytecodes): New.
17310 * target.h (emit_ops): Forward declare.
17311 (struct target_ops): New field emit_ops.
17312 (target_emit_ops): New.
17313 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17314 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17315 * linux-low.c (linux_emit_ops): New.
17316 (linux_target_ops): Install it.
17317 * linux-low.h (struct linux_target_ops): New field emit_ops.
17319 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17321 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17322 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17324 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17325 Stan Shebs <stan@codesourcery.com>
17327 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17328 (all): Depend on $(extra_libraries).
17329 (install-only): Install the IPA.
17330 (IPA_OBJS, IPA_LIB): New.
17331 (clean): Remove the IPA lib.
17332 (IPAGENT_CFLAGS): New.
17333 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17334 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17335 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17336 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17337 * configure.ac: Check for atomic builtins support in the compiler.
17338 (IPA_DEPFILES, extra_libraries): Define.
17339 * configure.srv (ipa_obj): Add description.
17340 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17341 (i[34567]86-*-linux*): Set ipa_obj.
17342 (x86_64-*-linux*): Set ipa_obj.
17343 * linux-low.c (stabilizing_threads): New.
17344 (supports_fast_tracepoints): New.
17345 (linux_detach): Stabilize threads before detaching.
17346 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17347 the lwp is either not stabilizing, or is moving out of a jump pad.
17348 (linux_fast_tracepoint_collecting): New.
17349 (maybe_move_out_of_jump_pad): New.
17350 (enqueue_one_deferred_signal): New.
17351 (dequeue_one_deferred_signal): New.
17352 (linux_wait_for_event_1): If moving out of a jump pad, defer
17353 pending signals to later.
17354 (linux_stabilize_threads): New.
17355 (linux_wait_1): Check if threads need moving out of jump pads, and
17357 (stuck_in_jump_pad_callback): New.
17358 (move_out_of_jump_pad_callback): New.
17359 (lwp_running): New.
17360 (linux_resume_one_lwp): Handle moving out of jump pads.
17361 (linux_set_resume_request): Dequeue deferred signals.
17362 (need_step_over_p): Also step over fast tracepoint jumps.
17363 (start_step_over): Also uninsert fast tracepoint jumps.
17364 (finish_step_over): Also reinsert fast tracepoint jumps.
17365 (linux_install_fast_tracepoint_jump): New.
17366 (linux_target_ops): Install linux_stabilize_threads and
17367 linux_install_fast_tracepoint_jump_pad.
17368 * linux-low.h (linux_target_ops) <get_thread_area,
17369 install_fast_tracepoint_jump_pad>: New fields.
17370 (struct lwp_info) <collecting_fast_tracepoint,
17371 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17372 (linux_get_thread_area): Declare.
17373 * linux-x86-low.c (jump_insn): New.
17374 (x86_get_thread_area): New.
17375 (append_insns): New.
17376 (push_opcode): New.
17377 (amd64_install_fast_tracepoint_jump_pad): New.
17378 (i386_install_fast_tracepoint_jump_pad): New.
17379 (x86_install_fast_tracepoint_jump_pad): New.
17380 (the_low_target): Install x86_get_thread_area and
17381 x86_install_fast_tracepoint_jump_pad.
17382 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17383 (struct fast_tracepoint_jump): New.
17384 (fast_tracepoint_jump_insn): New.
17385 (fast_tracepoint_jump_shadow): New.
17386 (find_fast_tracepoint_jump_at): New.
17387 (fast_tracepoint_jump_here): New.
17388 (delete_fast_tracepoint_jump): New.
17389 (set_fast_tracepoint_jump): New.
17390 (uninsert_fast_tracepoint_jumps_at): New.
17391 (reinsert_fast_tracepoint_jumps_at): New.
17392 (set_breakpoint_at): Use write_inferior_memory.
17393 (uninsert_raw_breakpoint): Use write_inferior_memory.
17394 (check_mem_read): Mask out fast tracepoint jumps.
17395 (check_mem_write): Mask out fast tracepoint jumps.
17396 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17397 (set_fast_tracepoint_jump): Declare.
17398 (delete_fast_tracepoint_jump)
17399 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17400 (reinsert_fast_tracepoint_jumps_at): Declare.
17401 * regcache.c: Don't compile many functions when building the
17402 in-process agent library.
17403 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17404 the register buffer in the heap.
17405 (free_register_cache): If the register buffer isn't owned by the
17406 regcache, don't free it.
17407 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17408 pre-existing register caches.
17409 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17411 (convert_ascii_to_int): : Constify `from' parameter type.
17412 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17413 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17414 the needed buffer in-place.
17415 (relocate_instruction): New.
17416 * server.c (handle_query) <qSymbols>: If the target supports
17417 tracepoints, give it a chance of looking up symbols. Report
17418 support for fast tracepoints.
17419 (handle_status): Stabilize threads.
17420 (process_serial_event): Adjust.
17421 * server.h (struct fast_tracepoint_jump): Forward declare.
17422 (struct process_info) <fast_tracepoint_jumps>: New field.
17423 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17424 (decode_X_packet, decode_M_packet): Adjust.
17425 (relocate_instruction): Declare.
17426 (in_process_agent_loaded): Declare.
17427 (tracepoint_look_up_symbols): Declare.
17428 (struct fast_tpoint_collect_status): Declare.
17429 (fast_tracepoint_collecting): Declare.
17430 (force_unlock_trace_buffer): Declare.
17431 (handle_tracepoint_bkpts): Declare.
17432 (initialize_low_tracepoint)
17433 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17434 * target.h (struct target_ops) <stabilize_threads,
17435 install_fast_tracepoint_jump_pad>: New fields.
17436 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17437 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17438 [HAVE_STDINT_H]: Include stdint.h.
17439 (trace_debug_1): Rename to ...
17440 (trace_vdebug): ... this.
17441 (trace_debug): Rename to ...
17442 (trace_debug_1): ... this. Add `level' parameter.
17443 (trace_debug): New.
17444 (ATTR_USED, ATTR_NOINLINE): New.
17445 (IP_AGENT_EXPORT): New.
17446 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17447 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17448 (about_to_request_buffer_space, trace_buffer_is_full)
17449 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17450 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17451 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17452 (traceframe_write_count, traceframes_created)
17453 (trace_state_variables)
17454 New renaming defines.
17455 (struct ipa_sym_addresses): New.
17456 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17457 (symbol_list): New.
17458 (ipa_sym_addrs): New.
17459 (all_tracepoint_symbols_looked_up): New.
17460 (in_process_agent_loaded): New.
17461 (write_e_ipa_not_loaded): New.
17462 (maybe_write_ipa_not_loaded): New.
17463 (tracepoint_look_up_symbols): New.
17464 (debug_threads) [IN_PROCESS_AGENT]: New.
17465 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17466 (UNKNOWN_SIDE_EFFECTS): New.
17467 (stop_tracing): New.
17468 (flush_trace_buffer): New.
17469 (stop_tracing_bkpt): New.
17470 (flush_trace_buffer_bkpt): New.
17471 (read_inferior_integer): New.
17472 (read_inferior_uinteger): New.
17473 (read_inferior_data_pointer): New.
17474 (write_inferior_data_pointer): New.
17475 (write_inferior_integer): New.
17476 (write_inferior_uinteger): New.
17477 (struct collect_static_trace_data_action): Delete.
17478 (enum tracepoint_type): New.
17479 (struct tracepoint) <type>: New field `type'.
17480 <actions_str, step_actions, step_actions_str>: Only include in
17482 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17483 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17484 (tracepoints): Use IP_AGENT_EXPORT.
17485 (last_tracepoint): Don't include in the IPA.
17486 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17487 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17488 (alloced_trace_state_variables): New.
17489 (trace_state_variables): Use IP_AGENT_EXPORT.
17490 (traceframe_t): Delete unused variable.
17491 (circular_trace_buffer): Don't include in the IPA.
17492 (trace_buffer_start): Delete.
17493 (struct trace_buffer_control): New.
17494 (trace_buffer_free): Delete.
17495 (struct ipa_trace_buffer_control): New.
17496 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17497 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17499 (trace_buffer_ctrl): New.
17500 (TRACE_BUFFER_CTRL_CURR): New.
17501 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17502 Reimplement as macros.
17503 (trace_buffer_wrap): Delete.
17504 (traceframe_write_count, traceframe_read_count)
17505 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17506 (struct tracepoint_hit_ctx) <type>: New field.
17507 (struct fast_tracepoint_ctx): New.
17508 (memory_barrier): New.
17510 (record_tracepoint_error): Update atomically in the IPA.
17511 (clear_inferior_trace_buffer): New.
17512 (about_to_request_buffer_space): New.
17513 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17514 updating the same buffer.
17515 (add_tracepoint): Default the tracepoint's type to trap
17516 tracepoint, and orig_size to -1.
17517 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17518 internal variables.
17519 (create_trace_state_variable): New parameter `gdb'. Handle it.
17520 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17521 (cmd_qtdp): Handle fast tracepoints.
17522 (cmd_qtdv): Adjust.
17523 (max_jump_pad_size): New.
17524 (gdb_jump_pad_head): New.
17525 (get_jump_space_head): New.
17526 (claim_jump_space): New.
17527 (sort_tracepoints): New.
17528 (MAX_JUMP_SIZE): New.
17529 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17531 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17532 support. Upload fast traceframes, and delete internal IPA
17534 (stop_tracing_handler): New.
17535 (flush_trace_buffer_handler): New.
17536 (cmd_qtstop): Upload fast tracepoints.
17537 (response_tracepoint): Handle fast tracepoints.
17538 (tracepoint_finished_step): Upload fast traceframes. Set the
17539 tracepoint hit context's tracepoint type.
17540 (handle_tracepoint_bkpts): New.
17541 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17542 type. Add comment about fast tracepoints.
17543 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17544 non-existing action_str field.
17545 (get_context_regcache): Handle fast tracepoints.
17546 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17548 (fast_tracepoint_from_jump_pad_address): New.
17549 (fast_tracepoint_from_ipa_tpoint_address): New.
17550 (collecting_t): New.
17551 (force_unlock_trace_buffer): New.
17552 (fast_tracepoint_collecting): New.
17554 (gdb_collect): New.
17555 (write_inferior_data_ptr): New.
17556 (target_tp_heap): New.
17557 (target_malloc): New.
17558 (download_agent_expr): New.
17560 (download_tracepoints): New.
17561 (download_trace_state_variables): New.
17562 (upload_fast_traceframes): New.
17563 (IPA_FIRST_TRACEFRAME): New.
17564 (IPA_NEXT_TRACEFRAME_1): New.
17565 (IPA_NEXT_TRACEFRAME): New.
17566 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17567 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17568 (gdb_jump_pad_buffer_end): New.
17569 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17570 (initialize_tracepoint): Adjust.
17571 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17572 buffer. Initialize the low module.
17573 * utils.c (PREFIX, TOOLNAME): New.
17574 (malloc_failure): Use PREFIX.
17575 (error): In the IPA, an error causes an exit.
17576 (fatal, warning): Use PREFIX.
17577 (internal_error): Use TOOLNAME.
17578 (NUMCELLS): Increase to 10.
17579 * configure, config.in: Regenerate.
17581 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17583 * server.c (handle_query) <qSupported>: Do two passes over the
17584 qSupported string to avoid nesting strtok.
17586 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17588 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17590 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17591 -Wl,--dynamic-list.
17592 * configure: Regenerate.
17593 * proc-service.list: New.
17595 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17597 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17600 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17602 * gdbreplay.c (remote_open): Check error return from socket() call by
17603 its equality to -1 not by it being negative.
17604 * remote-utils.c (remote_open): Likewise.
17606 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17608 * config.h: Regenerate.
17610 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17612 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17613 doesn't provide PTRACE_GET_THREAD_AREA.
17615 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17617 * linux-m68k-low.c: Include <asm/ptrace.h>
17618 (ps_get_thread_area): Implement.
17620 2010-05-03 Doug Evans <dje@google.com>
17622 * event-loop.c (struct callback_event): New struct.
17623 (callback_list): New global.
17624 (append_callback_event, delete_callback_event): New functions.
17625 (process_callback): New function.
17626 (start_event_loop): Call it.
17627 * remote-utils.c (NOT_SCHEDULED): Define.
17628 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17629 moved out of readchar.
17630 (readchar): Rewrite. Call reschedule before returning.
17631 (reset_readchar): New function.
17632 (remote_close): Call it.
17633 (process_remaining, reschedule): New functions.
17634 * server.h (callback_handler_func): New typedef.
17635 (append_callback_event, delete_callback_event): Declare.
17637 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17639 * proc-service.c (ps_pglobal_lookup): Use
17640 thread_db_look_up_one_symbol.
17641 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17642 parameter. Use it instead of all_symbols_looked_up.
17643 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17645 (all_symbols_looked_up): Don't declare.
17646 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17647 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17649 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17650 Set all_symbols_looked_up here.
17651 (thread_db_look_up_one_symbol): New.
17652 (thread_db_get_tls_address): Adjust.
17653 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17654 thread_db object on the heap, and tentatively set it in the
17656 (thread_db_init): Don't set all_symbols_looked_up here.
17657 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17659 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17661 * linux-low.c (linux_kill, linux_detach): Adjust.
17662 (status_pending_p_callback): Remove redundant statement. Check
17663 for !TARGET_WAITIKIND_IGNORE, instead of
17664 TARGET_WAITKIND_STOPPED.
17665 (handle_tracepoints): Make sure LWP is locked. Adjust.
17666 (linux_wait_for_event_1): Adjust.
17667 (linux_cancel_breakpoints): New.
17668 (unsuspend_one_lwp): New.
17669 (unsuspend_all_lwps): New.
17670 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17671 (send_sigstop_callback): Change return type to int, add new
17672 `except' parameter and handle it.
17673 (suspend_and_send_sigstop_callback): New.
17674 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17675 pass them down. If SUSPEND, also increment the lwp's suspend
17677 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17678 (need_step_over_p): Don't consider suspended LWPs.
17679 (start_step_over): Adjust.
17680 (proceed_one_lwp): Change return type to int, add new `except'
17681 parameter and handle it.
17682 (unsuspend_and_proceed_one_lwp): New.
17683 (proceed_all_lwps): Use find_inferior instead of
17685 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17686 also decrement the suspend count of LWPs. Pass `except' down,
17687 instead of hacking its suspend count.
17688 (linux_pause_all): Add `freeze' parameter. Adjust.
17689 (linux_unpause_all): New.
17690 (linux_target_ops): Install linux_unpause_all.
17691 * server.c (handle_status): Adjust.
17692 * target.h (struct target_ops): New fields `unpause_all' and
17693 `cancel_breakpoints'. Add new parameter to `pause_all'.
17694 (pause_all): Add new `freeze' parameter.
17695 (unpause_all): New.
17696 (cancel_breakpoints): New.
17697 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17698 cancel breakpoints.
17699 (cmd_qtstart): Pause threads.
17700 (stop_tracing): Pause threads, and cancel breakpoints.
17701 * win32-low.c (win32_target_ops): Adjust.
17703 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17705 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17706 the inferior right away from here...
17707 (linux_wait_1): ... to here, and adjust to check the thread's
17708 last_resume_kind instead of the lwp's step or stop_expected flags.
17710 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17712 * README: Use consistent `GDB' and `GDBserver' spellings.
17714 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17716 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17717 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17718 (linux_detach_one_lwp): Assume the lwp is stopped.
17719 (any_thread_of): Delete.
17720 (linux_detach): Stop all lwps here. Don't blindly delete all
17722 (delete_lwp_callback): New.
17723 (linux_mourn): Delete all lwps of the process that is gone.
17724 (linux_wait_1): Don't delete the last lwp of the process here.
17725 * mem-break.h (mark_breakpoints_out): Declare.
17726 * mem-break.c (mark_breakpoints_out): New.
17727 (free_all_breakpoints): Use it.
17728 * server.c (handle_target_event): If the process is gone, mark
17730 * thread-db.c (struct thread_db) <create_bp>: New field.
17731 (thread_db_enable_reporting): Fix prototype. Store a thread event
17732 breakpoint reference in the thread_db struct.
17733 (thread_db_load_search): Clear the thread_db object.
17734 (try_thread_db_load_1): Ditto.
17735 (switch_to_process): New.
17736 (disable_thread_event_reporting): Use it.
17737 (remove_thread_event_breakpoints): New.
17738 (thread_db_detach, thread_db_mourn): Use it.
17740 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17742 * linux-low.c (linux_enable_event_reporting): New.
17743 (linux_wait_for_event_1, handle_extended_wait): Use it.
17745 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17747 * linux-low.c (linux_kill_one_lwp, linux_kill)
17748 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17749 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17750 SIGSTOP even if the LWP is stopped.
17751 (send_sigstop_callback): New.
17752 (stop_all_lwps): Use send_sigstop_callback instead.
17753 (linux_resume_one_thread): Adjust.
17754 (proceed_one_lwp): Still proceed an LWP that the client has
17755 requested to stop, if we haven't reported it as stopped yet. Make
17756 sure that LWPs the client want stopped, have a pending SIGSTOP.
17758 2010-04-26 Doug Evans <dje@google.com>
17760 * server.c (handle_general_set): Make static.
17762 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17763 Print received char after testing for error/eof instead of before.
17764 (input_interrupt): Tweak comment.
17766 2010-04-23 Doug Evans <dje@google.com>
17768 * server.c (start_inferior): Print inferior argv if --debug.
17770 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17772 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17773 * nto-x86-low.c: Include server.h
17775 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17777 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17778 be consistent with other sources of this directory.
17779 (init_registers_amd64): Correct name of source file of this function
17782 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17784 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17785 64-bit executables.
17787 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17789 * win32-i386-low.c: Add 64-bit support.
17790 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17791 (init_registers_amd64): Declare.
17792 (mappings): Add 64-bit version of array.
17793 (init_windows_x86): New function.
17794 (the_low_target): Change init_arch field to init_windows_x86.
17796 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17798 * win32-low.c: Adapt to support also 64-bit architecture.
17799 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17800 (get_image_name): Use SIZE_T type for local variable `done'.
17801 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17802 (toolhelp_get_dll_name): Idem.
17803 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17804 Use uintptr_t typecast to avoid warning.
17805 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17806 (handle_exception): Use phex_nz to avoid warning.
17807 (win32_wait): Remove unused local variable `process'.
17809 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17811 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17814 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17816 * configure.ac: Use `ws2_32' library for srv_mingw.
17817 * configure: Regenerate.
17818 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17819 * remote-utils.c: Likewise.
17821 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17823 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17824 if __x86_64__ is defined.
17826 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17828 * configure: Regenerate.
17830 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17832 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17833 * target.h (target_ops): New get_tib_address field.
17834 * win32-low.h (win32_thread_info): Add thread_local_base field.
17835 * win32-low.c (child_add_thread): Add tlb argument.
17836 Set thread_local_base field to TLB.
17837 (get_child_debug_event): Adapt to child_add_thread change.
17838 (win32_get_tib_address): New function.
17839 (win32_target_ops): Set get_tib_address field to
17840 win32_get_tib_address.
17841 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17843 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17845 * linux-low.c (linux_mourn): Also remove the process.
17846 * server.c (handle_target_event): Don't remove the process here.
17847 * nto-low.c (nto_mourn): New.
17848 (nto_target_ops): Install it.
17849 * spu-low.c (spu_mourn): New.
17850 (spu_target_ops): Install it.
17851 * win32-low.c (win32_mourn): New.
17852 (win32_target_ops): Install it.
17854 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17856 * server.h (buffer_xml_printf): Remove redundant `;'.
17858 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17860 * regcache.c (set_register_cache): Invalidate regcaches before
17861 changing the register cache layout.
17862 (regcache_invalidate_one): Allow a NULL regcache.
17863 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17864 regcaches before changing the register cache layout or the target
17867 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17869 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17870 variable warning on Linux/x86-64.
17872 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17874 GDBserver disconnected tracing support.
17876 * linux-low.c (linux_remove_process): Delete.
17877 (add_lwp): Don't set last_resume_kind here.
17878 (linux_kill): Use `mourn'.
17879 (linux_detach): Use `thread_db_detach', and `mourn'.
17880 (linux_mourn): New.
17881 (linux_attach_lwp_1): Adjust comment.
17882 (linux_attach): last_resume_kind moved the thread_info; adjust.
17883 (status_pending_p_callback): Adjust.
17884 (linux_wait_for_event_1): Adjust.
17885 (count_events_callback, select_singlestep_lwp_callback)
17886 (select_event_lwp_callback, cancel_breakpoints_callback)
17887 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17888 (proceed_one_lwp): Adjust.
17889 (linux_async): Add debug output.
17890 (linux_thread_stopped): New.
17891 (linux_pause_all): New.
17892 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17894 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17895 (thread_db_free): Delete declaration.
17896 (thread_db_detach, thread_db_mourn): Declare.
17897 * thread-db.c (thread_db_init): Use thread_db_mourn.
17898 (thread_db_free): Delete, split in two.
17899 (disable_thread_event_reporting): New.
17900 (thread_db_detach): New.
17901 (thread_db_mourn): New.
17903 * server.h (struct thread_info) <last_resume_kind>: New field.
17904 <attached>: Add comment.
17905 <gdb_detached>: New field.
17906 (handler_func): Change return type to int.
17907 (handle_serial_event, handle_target_event): Ditto.
17908 (gdb_connected): Declare.
17910 (disconnected_tracing): Declare.
17911 (stop_tracing): Declare.
17913 * server.c (handle_query) <qSupported>: Report support for
17914 disconnected tracing.
17915 (queue_stop_reply_callback): Account for running threads.
17916 (gdb_wants_thread_stopped): New.
17917 (gdb_wants_all_threads_stopped): New.
17918 (gdb_reattached_process): New.
17919 (handle_status): Clear the `gdb_detached' flag of all processes.
17920 In all-stop, stop all threads.
17921 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17922 (process_serial_event): If the remote connection breaks, or if an
17923 exit was forced with "monitor exit", force an event loop exit.
17924 Handle disconnected tracing on detach.
17925 (handle_serial_event): Adjust.
17926 (handle_target_event): If GDB isn't connected, forward events back
17927 to the inferior, unless the last process exited, in which case,
17928 exit gdbserver. Adjust interface.
17930 * remote-utils.c (remote_open): Don't block in accept. Instead
17931 register an event loop source on the listen socket file
17932 descriptor. Refactor bits into ...
17933 (listen_desc): ... this new global.
17934 (gdb_connected): ... this new function.
17935 (enable_async_notification): ... this new function.
17936 (handle_accept_event): ... this new function.
17937 (remote_close): Clear remote_desc.
17939 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17941 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17943 (mourn_inferior): Define.
17944 (target_process_qsupported): Avoid the dangling else problem.
17945 (thread_stopped): Define.
17946 (pause_all): Define.
17947 (target_waitstatus_to_string): Declare.
17948 * target.c (target_waitstatus_to_string): New.
17950 * tracepoint.c (tracing): Make extern.
17951 (disconnected_tracing): New.
17952 (stop_tracing): Make extern. Handle tracing stops due to GDB
17954 (cmd_qtdisconnected): New.
17955 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17956 (handle_tracepoint_general_set): Handle QTDisconnected.
17958 * event-loop.c (event_handler_func): Change return type to int.
17959 (process_event): Bail out if the event handler wants the event
17961 (handle_file_event): Ditto.
17962 (start_event_loop): Bail out if the event handler wants the event
17965 * nto-low.c (nto_target_ops): Adjust.
17966 * spu-low.c (spu_wait): Don't remove the process here.
17967 (spu_target_ops): Adjust.
17968 * win32-low.c (win32_wait): Don't remove the process here.
17969 (win32_target_ops): Adjust.
17971 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17973 * regcache.c (realloc_register_cache): Invalidate inferior's
17974 regcache before recreating it.
17976 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17978 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17980 2010-04-09 Stan Shebs <stan@codesourcery.com>
17981 Pedro Alves <pedro@codesourcery.com>
17983 * server.h (LONGEST): New.
17984 (struct thread_info) <while_stepping>: New field.
17985 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17987 (initialize_tracepoint, handle_tracepoint_general_set)
17988 (handle_tracepoint_query, tracepoint_finished_step)
17989 (tracepoint_was_hit, release_while_stepping_state_list):
17990 (current_traceframe): Declare.
17991 * server.c (handle_general_set): Handle tracepoint packets.
17992 (read_memory): New.
17993 (write_memory): New.
17994 (handle_search_memory_1): Use read_memory.
17995 (handle_query): Report support for conditional tracepoints, trace
17996 state variables, and tracepoint sources. Handle tracepoint
17998 (main): Initialize the tracepoints module.
17999 (process_serial_event): Handle traceframe reads/writes.
18001 * linux-low.c (handle_tracepoints): New.
18002 (linux_wait_1): Call it.
18003 (linux_resume_one_lwp): Handle while-stepping.
18004 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18005 (linux_target_ops): Install them.
18006 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18008 * linux-x86-low.c (x86_supports_tracepoints): New.
18009 (the_low_target). Install it.
18011 * mem-break.h (delete_breakpoint): Declare.
18012 * mem-break.c (delete_breakpoint): Make external.
18014 * target.h (struct target_ops): Add `supports_tracepoints',
18015 `read_pc', and `write_pc' fields.
18016 (target_supports_tracepoints): Define.
18017 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18020 * regcache.h (struct regcache) <registers_owned>: New field.
18021 (init_register_cache, regcache_cpy): Declare.
18022 (regcache_read_pc, regcache_write_pc): Declare.
18023 (register_cache_size): Declare.
18024 (supply_regblock): Declare.
18025 * regcache.c (init_register_cache): New.
18026 (new_register_cache): Use it.
18027 (regcache_cpy): New.
18028 (register_cache_size): New.
18029 (supply_regblock): New.
18030 (regcache_read_pc, regcache_write_pc): New.
18032 * tracepoint.c: New.
18034 * Makefile.in (OBS): Add tracepoint.o.
18035 (tracepoint.o): New rule.
18037 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18039 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18041 (i386-mmx.c): Likewise.
18042 (i386-mmx-linux.o): Likewise.
18043 (i386-mmx-linux.c): Likewise.
18045 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18046 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18047 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18048 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18050 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18051 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18052 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18054 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18056 * Makefile.in (clean): Updated.
18058 (i386-avx.c): Likewise.
18059 (i386-avx-linux.o): Likewise.
18060 (i386-avx-linux.c): Likewise.
18061 (amd64-avx.o): Likewise.
18062 (amd64-avx.c): Likewise.
18063 (amd64-avx-linux.o): Likewise.
18064 (amd64-avx-linux.c): Likewise.
18066 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18067 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18068 (srv_amd64_regobj): Add amd64-avx.o.
18069 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18070 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18071 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18072 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18073 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18074 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18075 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18077 * i387-fp.c: Include "i386-xstate.h".
18079 (i387_cache_to_xsave): Likewise.
18080 (i387_xsave_to_cache): Likewise.
18081 (x86_xcr0): Likewise.
18083 * i387-fp.h (i387_cache_to_xsave): Likewise.
18084 (i387_xsave_to_cache): Likewise.
18085 (x86_xcr0): Likewise.
18087 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18088 * linux-crisv32-low.c (target_regsets): Likewise.
18089 * linux-m68k-low.c (target_regsets): Likewise.
18090 * linux-mips-low.c (target_regsets): Likewise.
18091 * linux-ppc-low.c (target_regsets): Likewise.
18092 * linux-s390-low.c (target_regsets): Likewise.
18093 * linux-sh-low.c (target_regsets): Likewise.
18094 * linux-sparc-low.c (target_regsets): Likewise.
18095 * linux-xtensa-low.c (target_regsets): Likewise.
18097 * linux-low.c: Include <sys/uio.h>.
18098 (regsets_fetch_inferior_registers): Support nt_type.
18099 (regsets_store_inferior_registers): Likewise.
18100 (linux_process_qsupported): New.
18101 (linux_target_ops): Add linux_process_qsupported.
18103 * linux-low.h (regset_info): Add nt_type.
18104 (linux_target_ops): Add process_qsupported.
18106 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18108 (init_registers_i386_avx_linux): New.
18109 (init_registers_amd64_avx_linux): Likewise.
18110 (xmltarget_i386_linux_no_xml): Likewise.
18111 (xmltarget_amd64_linux_no_xml): Likewise.
18112 (PTRACE_GETREGSET): Likewise.
18113 (PTRACE_SETREGSET): Likewise.
18114 (x86_fill_xstateregset): Likewise.
18115 (x86_store_xstateregset): Likewise.
18116 (use_xml): Likewise.
18117 (x86_linux_update_xmltarget): Likewise.
18118 (x86_linux_process_qsupported): Likewise.
18119 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18120 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18121 init_registers_i386_linux here. Call
18122 x86_linux_update_xmltarget.
18123 (the_low_target): Add x86_linux_process_qsupported.
18125 * server.c (handle_query): Call target_process_qsupported.
18127 * target.h (target_ops): Add process_qsupported.
18128 (target_process_qsupported): New.
18130 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18132 * inferiors.c (add_thread): Set last_status kind to
18133 TARGET_WAITKIND_IGNORE.
18134 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18135 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18136 (linux_wait_1): Move `thread' local definition to block that uses
18137 it. Don't NULL initialize `event_child'.
18138 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18139 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18140 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18142 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18144 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18145 an extended waitstatus, or by a watchpoint.
18146 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18147 thread was stepping or has been stopped by a watchpoint.
18149 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18151 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18152 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18153 of another, then delete the previous, and validate all
18155 (validate_inserted_breakpoint): New.
18156 (delete_disabled_breakpoints): New.
18157 (validate_breakpoints): New.
18158 (check_mem_read): Validate breakpoints before trusting their
18159 shadow. Delete disabled breakpoints.
18160 (check_mem_write): Validate breakpoints before trusting they
18161 should be inserted. Delete disabled breakpoints.
18162 * mem-break.h (validate_breakpoints):
18163 * server.c (handle_query): Validate breakpoints when we see a
18166 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18168 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18169 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18170 if we could tell there's a GDB breakpoint at stop_pc.
18171 (need_step_over_p): Don't do a step over if we find a GDB
18172 breakpoint at the resume PC.
18174 * mem-break.c (struct raw_breakpoint): New.
18175 (enum bkpt_type): New type `gdb_breakpoint'.
18176 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18177 fields. New field `raw'.
18178 (find_raw_breakpoint_at): New.
18179 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18180 breakpoint instead.
18181 (set_breakpoint_at): Adjust.
18182 (delete_raw_breakpoint): New.
18183 (release_breakpoint): New.
18184 (delete_breakpoint): Rename to...
18185 (delete_breakpoint_1): ... this. Add proc parameter. Use
18186 release_breakpoint. Return ENOENT.
18187 (delete_breakpoint): Reimplement.
18188 (find_breakpoint_at): Delete.
18189 (find_gdb_breakpoint_at): New.
18190 (delete_breakpoint_at): Delete.
18191 (set_gdb_breakpoint_at): New.
18192 (delete_gdb_breakpoint_at): New.
18193 (gdb_breakpoint_here): New.
18194 (set_reinsert_breakpoint): Use release_breakpoint.
18195 (uninsert_breakpoint): Rename to ...
18196 (uninsert_raw_breakpoint): ... this.
18197 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18198 (reinsert_raw_breakpoint): Change parameter type to
18200 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18202 (check_breakpoints): Adjust. Use release_breakpoint.
18203 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18204 (breakpoint_inserted_here): Ditto.
18205 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18206 Don't trust the breakpoint's shadow if it is not inserted.
18207 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18208 (delete_all_breakpoints): Adjust.
18209 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18210 use delete_breakpoint_1.
18212 * mem-break.h (breakpoints_supported): Delete declaration.
18213 (set_gdb_breakpoint_at): Declare.
18214 (gdb_breakpoint_here): Declare.
18215 (delete_breakpoint_at): Delete.
18216 (delete_gdb_breakpoint_at): Declare.
18218 * server.h (struct raw_breakpoint): Forward declare.
18219 (struct process_info): New field `raw_breakpoints'.
18221 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18224 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18226 * linux-low.c (status_pending_p_callback): Fix comment.
18227 (linux_wait_for_event_1): Move most of the internal breakpoint
18228 handling from here...
18229 (linux_wait_1): ... to here.
18230 (count_events_callback): New.
18231 (select_singlestep_lwp_callback): New.
18232 (select_event_lwp_callback): New.
18233 (cancel_breakpoints_callback): New.
18234 (select_event_lwp): New.
18235 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18236 priority to all LWPs that have had events that should be reported
18237 to the client. Cancel breakpoints when about to reporting the
18238 event to the client, not while stopping lwps. No longer cancel
18239 finished single-steps here.
18240 (cancel_finished_single_step): Delete.
18241 (cancel_finished_single_steps): Delete.
18243 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18245 * mem-break.c (enum bkpt_type): New.
18246 (struct breakpoint): New field `type'.
18247 (set_breakpoint_at): Change return type to struct breakpoint
18248 pointer. Set type to `other_breakpoint' by default.
18249 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18250 in the breakpoint list.
18251 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18252 (reinsert_breakpoint): Rename to ...
18253 (reinsert_raw_breakpoint): ... this.
18254 (reinsert_breakpoints_at): Adjust.
18255 * mem-break.h (struct breakpoint): Declare.
18256 (set_breakpoint_at): Change return type to struct breakpoint
18259 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18261 * server.c (handle_query): Assign, not compare.
18263 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18265 Teach linux gdbserver to step-over-breakpoints.
18267 * linux-low.c (can_hardware_single_step): New.
18268 (supports_breakpoints): New.
18269 (handle_extended_wait): If stopping threads, read the stop pc of
18270 the new cloned LWP.
18272 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18273 low target doesn't support retrieving the PC.
18274 (add_lwp): Set last_resume_kind to resume_continue.
18275 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18276 (linux_attach): Don't clear stop_expected. Set the lwp's
18277 last_resume_kind to resume_stop.
18278 (linux_detach_one_lwp): Don't check for removed breakpoints.
18279 (check_removed_breakpoint): Delete.
18280 (status_pending_p): Rename to ...
18281 (status_pending_p_callback): ... this. Don't check for removed
18282 breakpoints. Don't consider threads that are stopped from GDB's
18284 (linux_wait_for_lwp): Always read the stop_pc here.
18285 (cancel_breakpoint): New.
18286 (step_over_bkpt): New global.
18287 (linux_wait_for_event_1): Implement stepping over breakpoints.
18288 (gdb_wants_lwp_stopped): New.
18289 (gdb_wants_all_stopped): New.
18290 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18291 single-step traps here. Store the thread's last reported target
18293 (send_sigstop): Don't clear stop_expected. Always set it,
18295 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18296 (cancel_finished_single_step): New.
18297 (cancel_finished_single_steps): New.
18298 (wait_for_sigstop): Don't cancel finished single-step traps here.
18299 (linux_resume_one_lwp): Don't check for removed breakpoints.
18300 Don't set `step' on non-hardware step archs.
18301 (linux_set_resume_request): Ignore resume_stop requests if already
18302 stopping or stopped. Set the lwp's last_resume_kind.
18303 (resume_status_pending_p): Don't check for removed breakpoints.
18304 (need_step_over_p): New.
18305 (start_step_over): New.
18306 (finish_step_over): New.
18307 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18308 requests. Clear the thread's last reported target waitstatus.
18309 Don't use the `suspended' flag. Don't consider pending breakpoints.
18310 (linux_resume): Start a step-over if necessary.
18311 (proceed_one_lwp): New.
18312 (proceed_all_lwps): New.
18313 (unstop_all_lwps): New.
18314 * linux-low.h (struct lwp_info): Rewrite comment for the
18315 `suspended' flag. Add the `stop_pc' field. Delete the
18316 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18317 Add `'last_resume_kind' and `need_step_over' fields.
18318 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18319 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18320 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18321 (set_raw_breakpoint_at): New.
18322 (set_breakpoint_at): Rewrite to use it.
18323 (reinsert_breakpoint_handler): Delete.
18324 (set_reinsert_breakpoint): New.
18325 (reinsert_breakpoint_by_bp): Delete.
18326 (delete_reinsert_breakpoints): New.
18327 (uninsert_breakpoint): Rewrite.
18328 (uninsert_breakpoints_at): New.
18329 (reinsert_breakpoint): Rewrite.
18330 (reinsert_breakpoints_at): New.
18331 (check_breakpoints): Rewrite.
18332 (breakpoint_here): New.
18333 (breakpoint_inserted_here): New.
18334 (check_mem_read): Adjust.
18335 * mem-break.h (breakpoints_supported, breakpoint_here)
18336 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18337 (reinsert_breakpoint_by_bp): Delete declaration.
18338 (delete_reinsert_breakpoints): Declare.
18339 (reinsert_breakpoint): Delete declaration.
18340 (reinsert_breakpoints_at): Declare.
18341 (uninsert_breakpoint): Delete declaration.
18342 (uninsert_breakpoints_at): Declare.
18343 (check_breakpoints): Adjust prototype.
18344 * server.h: Adjust include order.
18345 (struct thread_info): Declare here. Add a `last_status' field.
18347 2010-03-23 Michael Snyder <msnyder@vmware.com>
18349 * server.c (crc32): New function.
18350 (handle_query): Add handling for 'qCRC:' request.
18352 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18354 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18355 lwp had been stopped by a watchpoint.
18357 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18359 * server.h (internal_error): Declare.
18360 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18361 * utils.c (internal_error): New function.
18363 2010-03-15 Andreas Schwab <schwab@redhat.com>
18365 * configure.srv: Fix typo setting srv_regobj.
18367 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18369 * linux-low.c (fetch_register): Avoid passing a non string literal
18371 (usr_store_inferior_registers): Ditto.
18373 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18375 * linux-low.c (linux_write_memory): Bail out early if peeking
18378 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18380 * linux-low.h (struct lwp_info): New fields
18381 `stopped_by_watchpoint' and `stopped_data_address'.
18382 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18383 here, and cache them in the lwp object.
18384 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18386 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18388 (linux_stopped_by_watchpoint): Rewrite.
18389 (linux_stopped_data_address): Rewrite.
18391 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18393 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18394 switching the current inferior, not before.
18396 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18398 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18399 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18400 i386-linux.c and amd64-linux.c.
18401 (reg-i386.o): Removed.
18402 (reg-i386.c): Likewise.
18403 (reg-i386-linux.o): Likewise.
18404 (reg-i386-linux.c): Likewise.
18405 (reg-x86-64.o): Likewise.
18406 (reg-x86-64.c): Likewise.
18407 (reg-x86-64-linux.o): Likewise.
18408 (reg-x86-64-linux.c): Likewise.
18410 (i386.c): Likewise.
18411 (i386-linux.o): Likewise.
18412 (i386-linux.c): Likewise.
18413 (amd64.o): Likewise.
18414 (amd64.c): Likewise.
18415 (amd64-linux.o): Likewise.
18416 (amd64-linux.c): Likewise.
18418 * configure.srv (srv_i386_regobj): New.
18419 (srv_i386_linux_regobj): Likewise.
18420 (srv_amd64_regobj): Likewise.
18421 (srv_amd64_linux_regobj): Likewise.
18422 (srv_i386_32bit_xmlfiles): Likewise.
18423 (srv_i386_64bit_xmlfiles): Likewise.
18424 (srv_i386_xmlfiles): Likewise.
18425 (srv_amd64_xmlfiles): Likewise.
18426 (srv_i386_linux_xmlfiles): Likewise.
18427 (srv_amd64_linux_xmlfiles): Likewise.
18428 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18429 srv_xmlfiles to $srv_i386_xmlfiles.
18430 (i[34567]86-*-mingw32ce*): Likewise.
18431 (i[34567]86-*-mingw*): Likewise.
18432 (i[34567]86-*-nto*): Likewise.
18433 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18434 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18435 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18436 (x86_64-*-linux*): Likewise.
18438 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18439 (init_registers_amd64_linux): New.
18440 (x86_arch_setup): Replace init_registers_x86_64_linux with
18441 init_registers_amd64_linux.
18443 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18445 * configure.ac: Check for libdl. If it is not available link against
18446 static libthread_db.
18447 * configure: Regenerate.
18449 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18453 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18454 handing a read watchpoint.
18455 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18457 2010-02-12 Doug Evans <dje@google.com>
18459 * linux-low.c (linux_supports_tracefork_flag): Document.
18460 (linux_look_up_symbols): Add comment.
18462 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18464 * regcache.c (supply_register): Clear regcache if buf is NULL.
18466 2010-02-02 Nicolas Roche <roche@sourceware.org>
18467 Joel Brobecker <brobecker@adacore.com>
18469 * inferiors.c (find_inferior): Add function documentation.
18470 (unloaded_dll): Handle the case where the unloaded dll has not
18471 been previously registered in the dll list.
18473 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18475 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18476 (thumb2_breakpoint): New.
18477 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18479 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18481 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18482 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18485 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18487 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18489 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18491 * linux-s390-low.c (s390_collect_ptrace_register)
18492 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18494 2010-01-21 Doug Evans <dje@google.com>
18496 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18497 (PTRACE_ARG4_TYPE): New macro.
18498 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18499 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18500 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18501 (usr_store_inferior_registers): Ditto.
18502 (linux_read_memory, linux_write_memory): Ditto.
18503 (linux_test_for_tracefork): Ditto.
18505 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18506 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18508 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18510 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18513 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18515 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18516 prototype to take a regcache. Adjust.
18518 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18520 * regcache.h (struct thread_info): Forward declare.
18521 (struct regcache): New.
18522 (new_register_cache): Adjust prototype.
18523 (get_thread_regcache): Declare.
18524 (free_register_cache): Adjust prototype.
18525 (registers_to_string, registers_from_string): Ditto.
18526 (supply_register, supply_register_by_name, collect_register)
18527 (collect_register_as_string, collect_register_by_name): Ditto.
18528 * regcache.c (struct inferior_regcache_data): Delete.
18529 (get_regcache): Rename to ...
18530 (get_thread_regcache): ... this. Adjust. Switch inferior before
18531 fetching registers.
18532 (regcache_invalidate_one): Adjust.
18533 (regcache_invalidate): Fix prototype.
18534 (new_register_cache): Return the new register cache.
18535 (free_register_cache): Change prototype.
18536 (realloc_register_cache): Adjust.
18537 (registers_to_string): Change prototype to take a regcache. Adjust.
18538 (registers_from_string): Ditto.
18539 (register_data): Ditto.
18540 (supply_register): Ditto.
18541 (supply_register_by_name): Ditto.
18542 (collect_register): Ditto.
18543 (collect_register_as_string): Ditto.
18544 (collect_register_by_name): Ditto.
18545 * server.c (process_serial_event): Adjust.
18546 * linux-low.h (regset_fill_func, regset_store_func): Change
18548 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18550 * linux-low.c (get_stop_pc): Adjust.
18551 (check_removed_breakpoint): Adjust.
18552 (linux_wait_for_event): Adjust.
18553 (linux_resume_one_lwp): Adjust.
18554 (fetch_register): Add regcache parameter. Adjust.
18555 (usr_store_inferior_registers): Ditto.
18556 (regsets_fetch_inferior_registers): Ditto.
18557 (regsets_store_inferior_registers): Ditto.
18558 (linux_fetch_registers, linux_store_registers): Ditto.
18559 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18561 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18563 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18564 prototype to take a regcache.
18565 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18566 * remote-utils.c (convert_ascii_to_int, outreg)
18567 (prepare_resume_reply): Change prototype to take a regcache.
18569 * target.h (struct target_ops) <fetch_registers, store_registers>:
18570 Change prototype to take a regcache.
18571 (fetch_inferior_registers, store_inferior_registers): Change
18572 prototype to take a regcache. Adjust.
18573 * proc-service.c (ps_lgetregs): Adjust.
18574 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18575 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18576 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18577 take a regcache. Adjust.
18578 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18579 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18580 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18581 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18582 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18583 (cris_cannot_fetch_register):
18584 (cris_breakpoint_at): Change prototype to take a regcache.
18586 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18587 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18588 to take a regcache. Adjust.
18589 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18591 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18592 take a regcache. Adjust.
18593 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18594 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18595 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18596 * linux-mips-low.c (mips_get_pc):
18597 (mips_set_pc): Change prototype to take a regcache. Adjust.
18598 (mips_reinsert_addr): Adjust.
18599 (mips_collect_register): Change prototype to take a regcache.
18601 (mips_supply_register):
18602 (mips_collect_register_32bit, mips_supply_register_32bit)
18603 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18604 (mips_store_fpregset): Ditto.
18605 * linux-ppc-low.c (ppc_supply_ptrace_register)
18606 (ppc_supply_ptrace_register): Ditto.
18607 (parse_spufs_run): Adjust.
18608 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18609 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18610 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18611 take a regcache. Adjust.
18612 * linux-s390-low.c (s390_collect_ptrace_register)
18613 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18614 (s390_set_pc): Change prototype to take a regcache. Adjust.
18615 (s390_arch_setup): Adjust.
18616 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18617 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18618 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18619 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18620 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18622 (sparc_breakpoint_at): Adjust.
18623 * linux-xtensa-low.c (xtensa_fill_gregset):
18624 (xtensa_store_gregset):
18625 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18626 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18627 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18628 prototype to take a regcache. Adjust.
18629 * win32-arm-low.c (arm_fetch_inferior_register)
18630 (arm_store_inferior_register): Change prototype to take a
18632 * win32-i386-low.c (i386_fetch_inferior_register)
18633 (i386_store_inferior_register): Change prototype to take a
18635 * win32-low.c (child_fetch_inferior_registers)
18636 (child_store_inferior_registers): Change prototype to take a
18638 (win32_wait): Adjust.
18639 (win32_fetch_inferior_registers): Change prototype to take a
18641 (win32_store_inferior_registers): Adjust.
18642 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18643 store_inferior_register>: Change prototype to take a regcache.
18645 2010-01-20 Doug Evans <dje@google.com>
18647 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18649 (linux_wait_for_event1, linux_init_signals): Ditto.
18650 (W_STOPCODE): Provide definition if missing.
18652 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18654 * linux-low.c (linux_core_of_thread): New.
18655 (compare_ints, show_process, list_threads): New.
18656 (linux_qxfer_osdata): Report threads and cores.
18657 (linux_target_op): Register linux_core_of_thread.
18658 * remote-utils.c (prepare_resume_reply): Report the core.
18659 (buffer_xml_printf): Support %d specifier.
18660 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18662 (handle_query): Handle qXfer:threads. Announce availability
18664 * target.h (struct target_ops): New field core_of_thread.
18666 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18668 * Makefile.in (clean): Remove new generated files.
18669 (reg-s390.o, reg-s390.c): Remove rules.
18670 (reg-s390x.o, reg-s390x.c): Likewise.
18671 (s390-linux32.o, s390-linux32.c): Add rules.
18672 (s390-linux64.o, s390-linux64.c): Likewise.
18673 (s390x-linux64.o, s390x-linux64.c): Likewise.
18674 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18675 * linux-s390-low.c: Include <elf.h>.
18676 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18677 (init_registers_s390): Remove prototype.
18678 (init_registers_s390x): Likewise.
18679 (init_registers_s390_linux32): Add prototype.
18680 (init_registers_s390_linux64): Likewise.
18681 (init_registers_s390x_linux64): Likewise.
18682 (s390_num_regs_3264): New define.
18683 (s390_regmap_3264): New global variable.
18684 (s390_cannot_fetch_register): Remove obsolete check.
18685 (s390_cannot_store_register): Likewise.
18686 (s390_collect_ptrace_register): Handle upper/lower register halves.
18687 (s390_supply_ptrace_register): Likewise.
18688 (s390_fill_gregset): Update to register number changes.
18689 (s390_get_hwcap): New routine.
18690 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18691 Install appropriate regmap and register set.
18693 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18695 * server.c (gdbserver_version): Update copyright year to 2010.
18696 * gdbreplay.c (gdbreplay_version): Likewise.
18698 2009-12-28 Doug Evans <dje@google.com>
18700 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18701 elf/external.h. Include <elf.h> instead but only if necessary.
18703 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18705 * linux-low.c (linux_remove_process): Remove `detaching'
18706 parameter. Don't release/detach from thread_db here.
18707 (linux_kill): Release/detach from thread_db here, ...
18708 (linux_detach): ... and here, before actually detaching.
18709 (linux_wait_1): ... and here, when a process exits.
18710 * thread-db.c (any_thread_of): New.
18711 (thread_db_free): Switch the current inferior to a thread of the
18714 2009-12-21 Doug Evans <dje@google.com>
18716 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18718 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18719 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18720 warning ifndef __NR_tkill. Move setting of errno there too.
18721 Delete unnecessary resetting of errno after syscall.
18722 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18724 * configure.ac: Check for dladdr.
18725 * config.in: Regenerate.
18726 * configure: Regenerate.
18727 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18728 (try_thread_db_load): Update.
18730 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18732 2009-12-18 Doug Evans <dje@google.com>
18734 * event-loop.c: Include unistd.h if it exists.
18736 * linux-low.c (my_waitpid): Move definition away from being in
18737 between linux_tracefork_child/linux_test_for_tracefork.
18739 * gdb_proc_service.h (psaddr_t): Fix type.
18740 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18741 signature to match glibc.
18743 2009-12-16 Doug Evans <dje@google.com>
18745 * linux-low.c (linux_read_memory): Fix argument to read.
18747 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18749 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18750 events, don't leave current_inferior pointing at null.
18752 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18754 * win32-low.c (LOG): Delete.
18755 (OUTMSG): Output to stderr.
18756 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18757 on compile time LOG macro.
18758 (win32_wait): Fix debug output.
18760 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18762 * win32-low.c (win32_add_one_solib): If the dll name is
18763 "ntdll.dll", prepend the system directory to the dll path.
18765 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18767 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18769 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18770 Vladimir Prus <vladimir@codesourcery.com>
18772 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18773 * configure.ac: Check for __mcoldfire__ and set
18774 gdb_cv_m68k_is_coldfire.
18775 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18776 reg-cf.o and reg-m68k.o.
18777 * configure: Regenerated.
18779 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18781 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18782 Pass it to thread_db_free.
18783 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18784 proper `detaching' argument to linux_remove_process.
18785 * linux-low.h (thread_db_free): Add `detaching' parameter.
18786 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18788 (thread_db_free): Add `detaching' parameter. Only
18789 call td_ta_clear_event if detaching from process.
18791 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18793 * thread-db.c (thread_db_free): Fix typo.
18795 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18798 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18800 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18802 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18803 with an i686 compiler.
18804 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18806 * configure: Rebuilt.
18808 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18812 * server.c (handle_search_memory_1): Correct read_addr initialization
18813 in loop for searching subsequent chunks.
18815 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18817 * configure.ac: New --with-libthread-db option.
18818 * thread-db.c: Allow direct dependence on libthread_db.
18819 (thread_db_free): Adjust.
18820 * config.in: Regenerate.
18821 * configure: Likewise.
18823 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18826 * thread-db.c (attach_thread): New function.
18827 (maybe_attach_thread): Return success/failure.
18828 (find_new_threads_callback): Adjust.
18829 (thread_db_find_new_threads): Loop until no new threads.
18831 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18833 * proc-service.c (ps_lgetregs): Formatting.
18835 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18837 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18838 * configure.ac: Adjust.
18839 * linux-low.h (struct process_info_private): Move members to struct
18841 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18842 * linux-low.c (linux_remove_process): Adjust.
18843 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18844 * server.c (handle_query): Move code ...
18845 (handle_monitor_command): ... here. New function.
18846 * target.h (struct target_ops): New member.
18847 * thread-db.c (struct thread_db): New.
18848 (libthread_db_search_path): New variable.
18849 (thread_db_create_event, thread_db_enable_reporting)
18850 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18851 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18852 (try_thread_db_load_1, dladdr_to_soname): New functions.
18853 (try_thread_db_load, thread_db_load_search): New functions.
18854 (thread_db_init): Search for libthread_db.
18855 (thread_db_free): New function.
18856 (thread_db_handle_monitor_command): Likewise.
18857 * config.in: Regenerate.
18858 * configure: Regenerate.
18860 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18862 * spu-low.c (spu_kill): Wait for inferior to terminate.
18863 Call clear_inferiors.
18864 (spu_detach): Call clear_inferiors.
18866 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18868 * aclocal.m4: Regenerate.
18869 * config.in: Likewise.
18870 * configure: Likewise.
18872 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18874 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18875 (parse_spufs_run): New function.
18876 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18877 (ppc_breakpoint_at): Handle SPU breakpoints.
18879 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18881 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18882 (SPUFS_MAGIC): Define.
18883 (spu_enumerate_spu_ids): New function.
18884 (linux_qxfer_spu): New function.
18885 (linux_target_ops): Install linux_qxfer_spu.
18887 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18889 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18890 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18891 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18892 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18893 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18894 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18895 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18896 (init_registers_powerpc_cell32l): Add prototype.
18897 (init_registers_powerpc_cell64l): Likewise.
18898 (ppc_arch_setup): Detect Cell/B.E. architecture.
18900 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18902 * Makefile.in (datarootdir): New variable.
18904 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18906 * linux-low.c (linux_write_memory): Update debugging output.
18907 * Makefile.in (clean): Add new descriptions.
18908 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18909 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18910 * configure.srv: Add new files for arm*-*-linux*.
18911 * linux-arm-low.c: Add new declarations.
18912 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18913 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18914 (HWCAP_VFPv3D16): New.
18915 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18916 instead of __IWMMXT__.
18917 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18918 (arm_arch_setup): New.
18919 (target_regsets): Remove #ifdef. Add VFP regset.
18920 (the_low_target): Use arm_arch_setup.
18922 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18924 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18925 the main thread again.
18927 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18929 Adding Neutrino gdbserver.
18930 * configure: Regenerated.
18931 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18932 * configure.srv (i[34567]86-*-nto*): New target.
18933 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18934 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18935 (nto_comctrl) [__QNX__]: New function.
18936 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18938 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18940 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18943 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18944 Pedro Alves <pedro@codesourcery.com>
18946 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18947 don't support CONTEXT_EXTENDED_REGISTERS.
18948 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18949 (the_low_target): Install them.
18950 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18951 failing with ERROR_PIPE_NOT_CONNECTED.
18953 2009-06-30 Doug Evans <dje@google.com>
18954 Pierre Muller <muller@ics.u-strasbg.fr>
18956 Add h/w watchpoint support to x86-linux, win32-i386.
18957 * Makefile.in (SFILES): Add i386-low.c
18958 (i386_low_h): Define.
18959 (i386-low.o): Add dependencies.
18960 (linux-x86-low.o): Add i386-low.h dependency.
18961 (win32-i386-low.o): Ditto.
18962 * i386-low.c: New file.
18963 * i386-low.h: New file.
18964 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18965 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18966 * linux-low.c (linux_add_process): Initialize arch_private.
18967 (linux_remove_process): Free arch_private.
18968 (add_lwp): Initialize arch_private.
18969 (delete_lwp): Free arch_private.
18970 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18972 * linux-low.h (process_info_private): New member arch_private.
18973 (lwp_info): New member arch_private.
18974 (linux_target_ops): New members new_process, new_thread,
18976 (ptid_of): New macro.
18977 * linux-x86-low.c: Include stddef.h, i386-low.h.
18978 (arch_process_info): New struct.
18979 (arch_lwp_info): New struct.
18980 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18981 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18982 (i386_dr_low_get_status): New function.
18983 (x86_insert_point, x86_remove_point): New functions.
18984 (x86_stopped_by_watchpoint): New function.
18985 (x86_stopped_data_address): New function.
18986 (x86_linux_new_process, x86_linux_new_thread): New functions.
18987 (x86_linux_prepare_to_resume): New function.
18988 (the_low_target): Add entries for insert_point, remove_point,
18989 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18991 * server.c (debug_hw_points): New global.
18992 (monitor_show_help): Document set debug-hw-points.
18993 (handle_query): Process "set debug-hw-points".
18994 * server.h (debug_hw_points): Declare.
18995 (paddress): Declare.
18996 * utils.c (NUMCELLS, CELLSIZE): New macros.
18997 (get_sell, xsnprintf, paddress): New functions.
18998 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18999 remove_point, stopped_by_watchpoint, stopped_data_address.
19000 * win32-i386-low.c: Include i386-low.h.
19001 (debug_reg_state): Replaces dr.
19002 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19003 (i386_dr_low_get_status): New function.
19004 (i386_insert_point, i386_remove_point): New functions.
19005 (i386_stopped_by_watchpoint): New function.
19006 (i386_stopped_data_address): New function.
19007 (i386_initial_stuff): Update.
19008 (get_thread_context,set_thread_context,i386_thread_added): Update.
19009 (the_low_target): Add entries for insert_point,
19010 remove_point, stopped_by_watchpoint, stopped_data_address.
19011 * win32-low.c (win32_insert_watchpoint): New function.
19012 (win32_remove_watchpoint): New function.
19013 (win32_stopped_by_watchpoint): New function.
19014 (win32_stopped_data_address): New function.
19015 (win32_target_ops): Add entries for insert_watchpoint,
19016 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19017 * win32-low.h (win32_target_ops): New members insert_point,
19018 remove_point, stopped_by_watchpoint, stopped_data_address.
19020 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19022 * server.c (process_serial_event): Re-return unsupported, not
19023 error, if the type isn't recognized. Re-allow supporting only
19024 insert or remove packets. Also call require_running for
19025 breakpoints. Add missing break statement to default case. Tidy.
19026 * target.h (struct target_ops): Rename insert_watchpoint to
19027 insert_point, and remove_watchpoint to remove_point.
19029 * linux-low.h (struct linux_target_ops): Likewise.
19030 * linux-low.c (linux_insert_watchpoint): Rename to ...
19031 (linux_insert_point): ... this. Adjust.
19032 (linux_remove_watchpoint): Rename to ...
19033 (linux_remove_point): ... this. Adjust.
19034 (linux_target_ops): Adjust.
19035 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19036 (cris_insert_point): ... this.
19037 (cris_remove_watchpoint): Rename to ...
19038 (cris_remove_point): ... this.
19039 (the_low_target): Adjust.
19041 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19043 * server.c (handle_v_kill): Pass signal_pid to
19044 kill_inferior if multi_process is zero.
19046 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19048 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19049 * target.h (target_ops): Comment for *_watchpoint to make it clear
19050 the functions can get types '0' and '1'.
19052 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19054 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19055 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19056 * regcache.c (get_regcache): Likewise.
19057 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19058 * win32-low.c (child_fetch_inferior_registers): Remove check for
19061 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19062 Pedro Alves <pedro@codesourcery.com>
19064 * target.h (struct target_ops) <supports_multi_process>: New
19066 (target_supports_multi_process): New.
19067 * server.c (handle_query): Even if GDB reports support, only
19068 enable multi-process if the target also supports it. Report
19069 multi-process support only if the target backend supports it.
19070 * linux-low.c (linux_supports_multi_process): New function.
19071 (linux_target_ops): Install it as target_supports_multi_process
19074 2009-05-24 Doug Evans <dje@google.com>
19076 Global renaming of find_thread_pid to find_thread_ptid.
19077 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19078 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19079 All callers updated.
19081 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19082 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19085 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19086 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19087 (linux_resume_one_lwp): Ditto.
19089 2009-05-23 Doug Evans <dje@google.com>
19091 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19092 from struct inferior_list_entry * to struct lwp_info *.
19093 All callers updated.
19095 2009-05-13 Doug Evans <dje@google.com>
19097 * linux-x86-low.c: Don't include assert.h.
19098 (x86_siginfo_fixup): Use fatal, not assert.
19099 (x86_arch_setup): Fix comment.
19101 2009-05-12 Doug Evans <dje@google.com>
19103 Biarch support for i386/amd64 gdbserver.
19104 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19105 Add linux-x86-low.c.
19106 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19107 (linux-x86-low.o): Add.
19108 * linux-x86-64-low.c: Delete.
19109 * linux-i386-low.c: Delete.
19110 * linux-x86-low.c: New file.
19111 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19113 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19115 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19116 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19117 (linux_child_pid_to_exec_file): New function.
19118 (elf_64_header_p, elf_64_file_p): New functions.
19119 (siginfo_fixup): New function.
19120 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19121 give target a chance to convert layout.
19122 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19123 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19125 2009-05-07 Doug Evans <dje@google.com>
19127 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19128 (regsets_store_inferior_registers): Ditto.
19130 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19134 * linux-low.c (must_set_ptrace_flags): Delete.
19135 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19137 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19138 `lwp->must_set_ptrace_flags' instead.
19139 (linux_wait_for_event_1): Set ptrace options here.
19140 (linux_wait_1): ... not here.
19142 2009-04-30 Doug Evans <dje@google.com>
19144 * inferiors.c (started_inferior_callback): New function.
19145 (attached_inferior_callback): New function.
19146 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19147 * server.c (print_started_pid, print_attached_pid): New functions.
19148 (detach_or_kill_for_exit): New function.
19149 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19150 * server.h (have_started_inferiors_p): Declare.
19151 (have_attached_inferiors_p): Declare.
19153 * inferiors.c (remove_process): Fix memory leak, free process.
19154 * linux-low.c (linux_remove_process): New function.
19155 (linux_kill): Call it instead of remove_process.
19156 (linux_detach, linux_wait_1): Ditto.
19158 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19160 * configure.srv: Add x86 Windows CE target.
19162 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19164 * inferiors.c (get_thread_process): Make global.
19165 * server.h (get_thread_process): Add prototype.
19166 * thread-db.c (find_one_thread): Use get_thread_process
19167 instead of current_process.
19168 (thread_db_get_tls_address): Do not crash if called when
19169 thread layer is not yet initialized.
19171 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19173 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19174 * spu-low.c (current_tid): Rename to ...
19175 (current_ptid): ... this.
19176 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19177 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19178 ptid_get_lwp (current_ptid) instead of current_tid.
19179 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19180 instead of current_tid. Use find_process_pid to verify pid
19181 argument is valid. Pass proper argument to remove_process.
19182 (spu_thread_alive): Compare current_ptid instead of current_tid.
19183 (spu_resume): Likewise.
19185 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19187 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19190 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19192 Implement the multiprocess extensions, and add linux multiprocess
19195 * server.h (ULONGEST): Declare.
19196 (struct ptid, ptid_t): New.
19197 (minus_one_ptid, null_ptid): Declare.
19198 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19199 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19200 (struct inferior_list_entry): Change `id' type from unsigned from
19202 (struct sym_cache, struct breakpoint, struct
19203 process_info_private): Forward declare.
19204 (struct process_info): Declare.
19205 (current_process): Declare.
19206 (all_processes): Declare.
19207 (initialize_inferiors): Declare.
19208 (add_thread): Adjust to use ptid_t.
19209 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19210 (add_process, remove_process, find_thread_pid): Declare.
19211 (find_inferior_id): Adjust to use ptid_t.
19212 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19213 (multi_process): Declare.
19214 (push_event): Adjust to use ptid_t.
19215 (read_ptid, write_ptid): Declare.
19216 (prepare_resume_reply): Adjust to use ptid_t.
19217 (clear_symbol_cache): Declare.
19218 * inferiors.c (all_processes): New.
19219 (null_ptid, minus_one_ptid): New.
19220 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19221 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19222 (add_thread): Change unsigned long to ptid. Remove gdb_id
19224 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19225 (gdb_id_to_thread): Rename to ...
19226 (find_thread_pid): ... this. Change unsigned long to ptid.
19227 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19228 (loaded_dll, pull_pid_from_list): Adjust.
19229 (add_process, remove_process, find_process_pid)
19230 (get_thread_process, current_process, initialize_inferiors): New.
19231 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19232 (struct target_waitstatus) <related_pid>: Ditto.
19233 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19234 return type to int.
19235 (struct target_ops) <join>: Add `pid' argument.
19236 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19237 (struct target_ops) <wait>: Add `ptid' field. Change return type
19239 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19240 (mywait): Add `ptid' argument. Change return type to ptid_t.
19241 (target_pid_to_str): Declare.
19242 * target.c (set_desired_inferior): Adjust to use ptids.
19243 (mywait): Add new `ptid' argument. Adjust.
19244 (target_pid_to_str): New.
19245 * mem-break.h (free_all_breakpoints): Declare.
19246 * mem-break.c (breakpoints): Delelete.
19247 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19248 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19249 to use per-process breakpoint list.
19250 (free_all_breakpoints): New.
19251 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19252 (symbol_cache, all_symbols_looked_up): Delete.
19254 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19256 (prepare_resume_reply): Change ptid argument's type from unsigned
19257 long to ptid_t. Adjust. Implement W;process and X;process.
19258 (free_sym_cache, clear_symbol_cache): New.
19259 (look_up_one_symbol): Adjust to per-process symbol cache. *
19260 * server.c (cont_thread, general_thread, step_thread): Change type
19262 (attached): Delete.
19263 (multi_process): New.
19264 (last_ptid): Change type to ptid_t.
19265 (struct vstop_notif) <ptid>: Change type to ptid_t.
19266 (queue_stop_reply, push_event): Change `ptid' argument's type to
19268 (discard_queued_stop_replies): Add `pid' argument.
19269 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19270 changes. Don't reference the `attached' global.
19271 (attach_inferior): Adjust to mywait interface changes.
19272 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19273 features. Handle and report "multiprocess+". Handle
19275 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19277 (handle_v_kill): New.
19278 (handle_v_stopped): Adjust to use target_pid_to_str.
19279 (handle_v_requests): Allow multiple attaches and runs when
19280 multiprocess extensions are in effect. Handle "vKill".
19281 (myresume): Adjust to use ptids.
19282 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19283 (handle_status): Adjust to discard_queued_stop_replies interface
19285 (first_thread_of, kill_inferior_callback)
19286 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19287 (main): Call initialize_inferiors. Adjust to use ptids, killing
19288 and detaching from all inferiors. Handle multiprocess packet
19290 * linux-low.h: Include gdb_proc_service.h.
19291 (struct process_info_private): New.
19292 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19293 <lwpid_of>: Use ptid_get_lwp.
19294 (get_lwp_thread): Adjust.
19295 (struct lwp_info): Add `dead' member.
19296 (find_lwp_pid): Declare.
19297 * linux-low.c (thread_db_active): Delete.
19298 (new_inferior): Adjust comment.
19299 (inferior_pid): Delete.
19300 (linux_add_process): New.
19301 (handle_extended_wait): Adjust.
19302 (add_lwp): Change unsigned long to ptid.
19303 (linux_create_inferior): Add process to processes table. Adjust
19304 to use ptids. Don't set new_inferior here.
19305 (linux_attach_lwp): Rename to ...
19306 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19307 it. Adjust to use ptids.
19308 (linux_attach_lwp): New.
19309 (linux_attach): Add process to processes table. Don't set
19311 (struct counter): New.
19312 (second_thread_of_pid_p, last_thread_of_process_p): New.
19313 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19314 multiple processes.
19315 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19316 processes. Remove process from process table.
19317 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19318 to multiple processes.
19319 (any_thread_of): New.
19320 (linux_detach): Add `pid' argument, and handle it. Remove process
19321 from processes table.
19322 (linux_join): Add `pid' argument. Handle it.
19323 (linux_thread_alive): Change unsighed long argument to ptid_t.
19324 Consider dead lwps as not being alive.
19325 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19326 threads we're not interested in.
19327 (same_lwp, find_lwp_pid): New.
19328 (linux_wait_for_lwp): Change `pid' argument's type from int to
19330 (linux_wait_for_event): Rename to ...
19331 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19332 from int to ptid_t. Adjust.
19333 (linux_wait_for_event): New.
19334 (linux_wait_1): Add `ptid' argument. Change return type to
19335 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19336 that exit from the process table.
19337 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19339 (mark_lwp_dead): New.
19340 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19341 stopping all threads, mark its main lwp as dead.
19342 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19344 (fetch_register, usr_store_inferior_registers)
19345 (regsets_fetch_inferior_registers)
19346 (regsets_store_inferior_registers, linux_read_memory)
19347 (linux_write_memory): Inline `inferior_pid'.
19348 (linux_look_up_symbols): Adjust to use per-process
19349 `thread_db_active'.
19350 (linux_request_interrupt): Adjust to use ptids.
19351 (linux_read_auxv): Inline `inferior_pid'.
19352 (initialize_low): Don't reference thread_db_active.
19353 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19354 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19355 (ps_getpid): Return the pid of the current inferior.
19356 * thread-db.c (proc_handle, thread_agent): Delete.
19357 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19359 (find_one_thread): Change argument type to ptid_t. Adjust to
19361 (maybe_attach_thread): Adjust to per-process data and ptids.
19362 (thread_db_find_new_threads): Ditto.
19363 (thread_db_init): Ditto.
19364 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19365 processes table. Adjust to use ptids.
19366 (spu_kill, spu_detach): Adjust interface. Remove process from
19368 (spu_join, spu_thread_alive): Adjust interface.
19369 (spu_wait): Adjust interface. Remove process from processes
19370 table. Adjust to use ptids.
19371 * win32-low.c (current_inferior_tid): Delete.
19372 (current_inferior_ptid): New.
19373 (debug_event_ptid): New.
19374 (thread_rec): Take a ptid. Adjust.
19375 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19376 (child_delete_thread): Ditto.
19377 (do_initial_child_stuff): Add `attached' argument. Add process to
19379 (child_fetch_inferior_registers, child_store_inferior_registers):
19381 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19382 (win32_attach): Pass 1 to do_initial_child_stuff.
19383 (win32_kill): Adjust interface. Remove process from processes
19385 (win32_detach): Ditto.
19386 (win32_join): Adjust interface.
19387 (win32_thread_alive): Take a ptid.
19388 (win32_resume): Adjust to use ptids.
19389 (get_child_debug_event): Ditto.
19390 (win32_wait): Adjust interface. Remove exiting process from
19393 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19395 Non-stop mode support.
19397 * server.h (non_stop): Declare.
19398 (gdb_client_data, handler_func): Declare.
19399 (delete_file_handler, add_file_handler, start_event_loop):
19401 (handle_serial_event, handle_target_event, push_event)
19402 (putpkt_notif): Declare.
19403 * target.h (enum resume_kind): New.
19404 (struct thread_resume): Replace `step' field by `kind' field.
19405 (TARGET_WNOHANG): Define.
19406 (struct target_ops) <wait>: Add `options' argument.
19407 <supports_non_stop, async, start_non_stop>: New fields.
19408 (target_supports_non_stop, target_async): New.
19409 (start_non_stop): Declare.
19410 (mywait): Add `options' argument.
19411 * target.c (mywait): Add `options' argument. Print child exit
19412 notifications here.
19413 (start_non_stop): New.
19414 * server.c (non_stop, own_buf, mem_buf): New globals.
19415 (struct vstop_notif): New.
19416 (notif_queue): New global.
19417 (queue_stop_reply, push_event, discard_queued_stop_replies)
19418 (send_next_stop_reply): New.
19419 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19421 (attach_inferior): In non-stop mode, don't wait for the target
19423 (handle_general_set): Handle QNonStop.
19424 (handle_query): When handling qC, return the current general
19425 thread, instead of the first thread of the list.
19426 (handle_query): If the backend supports non-stop mode, include
19427 QNonStop+ in the qSupported query response.
19428 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19430 (handle_v_attach, handle_v_run): Handle non-stop mode.
19431 (handle_v_stopped): New.
19432 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19433 (myresume): Adjust to use resume_kind. Handle non-stop.
19434 (queue_stop_reply_callback): New.
19435 (handle_status): Handle non-stop mode.
19436 (main): Clear non_stop flag on reconnection. Use the event-loop.
19437 Refactor serial protocol handling from here ...
19438 (process_serial_event): ... to this new function. When GDB
19439 selects any thread, select one here. In non-stop mode, wait until
19440 GDB acks all pending events before exiting.
19441 (handle_serial_event, handle_target_event): New.
19442 * remote-utils.c (remote_open): Install remote_desc in the event
19444 (remote_close): Remove remote_desc from the event loop.
19445 (putpkt_binary): Rename to...
19446 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19447 (putpkt_binary): New as wrapper around putpkt_binary_1.
19448 (putpkt_notif): New.
19449 (prepare_resume_reply): In non-stop mode, don't change the
19451 * event-loop.c: New.
19452 * Makefile.in (OBJ): Add event-loop.o.
19453 (event-loop.o): New rule.
19455 * linux-low.h (pid_of): Moved here.
19457 (get_lwp_thread): Use lwpid_of.
19458 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19459 * linux-low.c (pid_of): Delete.
19460 (inferior_pid): Use lwpid_of.
19461 (linux_event_pipe): New.
19462 (target_is_async_p): New.
19464 (handle_extended_wait): Use lwpid_of.
19465 (add_lwp): Don't set lwpid field.
19466 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19467 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19468 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19469 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19470 first. Adjust to linux_wait_for_event interface changes. Use
19472 (linux_detach): Don't delete the main lwp here.
19473 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19474 (status_pending_p): Don't consider explicitly suspended lwps.
19475 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19476 pointer. Add OPTIONS argument. Change return type to int. Use
19477 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19478 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19479 pointer. Add status pointer argument. Return a pid instead of a
19480 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19481 changes. In non-stop mode, don't switch to a random thread.
19482 (linux_wait): Rename to...
19483 (linux_wait_1): ... this. Add target_options argument, and handle
19484 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19485 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19486 clean exit and signal exit code. Don't stop all threads in
19487 non-stop mode. In all-stop mode, only stop all threads when
19488 reporting a stop to GDB. Handle explicit thread stop requests.
19489 (async_file_flush, async_file_mark): New.
19491 (send_sigstop): Use lwpid_of.
19492 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19493 interface changes. In non-stop mode, don't switch to a random
19495 (linux_resume_one_lwp): Use lwpid_of.
19496 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19497 (linux_resume_one_thread): ... this. Handle resume_stop. In
19498 non-stop mode, don't look for pending flag in all threads.
19499 (resume_status_pending_p): Don't consider explicitly suspended
19501 (my_waitpid): Reimplement. Emulate __WALL.
19502 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19504 (sigchld_handler, linux_supports_non_stop, linux_async)
19505 (linux_start_non_stop): New.
19506 (linux_target_ops): Register linux_supports_non_stop, linux_async
19507 and linux_start_non_stop.
19508 (initialize_low): Install SIGCHLD handler.
19509 * thread-db.c (thread_db_create_event, find_one_thread)
19510 (thread_db_get_tls_address): Use lwpid_of.
19511 * win32-low.c (win32_detach): Adjust to use resume_kind.
19512 (win32_wait): Add `options' argument.
19513 * spu-low.c (spu_resume): Adjust to use resume_kind.
19514 (spu_wait): Add `options' argument.
19516 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19518 Decouple target code from remote protocol.
19520 * target.h (enum target_waitkind): New.
19521 (struct target_waitstatus): New.
19522 (struct target_ops) <wait>: Return an unsigned long. Take a
19523 target_waitstatus pointer instead of a char pointer.
19524 (mywait): Likewise.
19525 * target.c (mywait): Change prototype to return an unsigned long.
19526 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19527 * server.h (thread_from_wait, old_thread_from_wait): Delete
19529 (prepare_resume_reply): Change prototype to take a
19531 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19532 (last_status, last_ptid): New.
19533 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19534 pid instead of a signal.
19535 (attach_inferior): Remove "status" and "signal" parameters.
19537 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19539 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19540 (handle_v_requests, myresume): Remove "status" and "signal"
19541 parameters. Adjust.
19542 (handle_status): New.
19543 (main): Delete local `status'. Adjust.
19544 * remote-utils.c: Include target.h.
19545 (prepare_resume_reply): Change prototype to take a
19546 target_waitstatus. Adjust.
19548 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19550 * spu-low.c (spu_wait): Adjust.
19551 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19553 (win32_wait): Adjust.
19555 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19557 * target.h (struct thread_resume): Delete leave_stopped member.
19558 (struct target_ops): Add a `n' argument to the `resume' callback.
19559 * server.c (start_inferior): Adjust.
19560 (handle_v_cont, myresume): Adjust.
19561 * linux-low.c (check_removed_breakpoint): Adjust to resume
19562 interface change, and to removed leave_stopped field.
19563 (resume_ptr): Delete.
19564 (struct thread_resume_array): New.
19565 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19566 resume interface change.
19567 (linux_continue_one_thread, linux_queue_one_thread)
19568 (resume_status_pending_p): Check if the resume field is NULL
19569 instead of checking the leave_stopped member.
19570 (linux_resume): Adjust to the target resume interface change.
19571 * spu-low.c (spu_resume): Adjust to the target resume interface
19573 * win32-low.c (win32_detach, win32_resume): Ditto.
19575 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19577 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19579 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19581 (linux_continue_one_thread): Only preserve the stepping flag if
19582 there's a pending breakpoint.
19584 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19586 * server.c (main): After the inferior having exited, call
19587 remote_close before exiting gdbserver.
19589 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19591 Fix size of FPSCR in Power 7 processors.
19592 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19593 (PPC_FEATURE_HAS_DFP): New #define.
19594 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19597 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19599 * server.c (handle_query) Whitespace and formatting.
19601 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19603 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19604 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19605 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19606 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19607 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19608 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19609 Makefile.in, configure.ac: Fix whitespace throughout.
19610 * configure: Regenerate.
19612 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19614 * inferiors.c (find_inferior): Make it safe for the callback
19615 function to delete the currently iterated inferior.
19617 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19619 * Makefile.in (linuw_low_h): Move higher.
19620 (thread-db.o): Depend on $(linux_low_h).
19622 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19624 Rename "process" to "lwp" throughout.
19626 * linux-low.c (all_processes): Rename to...
19627 (all_lwps): ... this.
19628 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19629 (add_process): Rename to ...
19630 (add_lwp): ... this. Adjust.
19631 (linux_create_inferior): Adjust.
19632 (linux_attach_lwp): Adjust.
19633 (linux_attach): Adjust.
19634 (linux_kill_one_process): Rename to ...
19635 (linux_kill_one_lwp): ... this. Adjust.
19636 (linux_kill): Adjust.
19637 (linux_detach_one_process): Rename to ...
19638 (linux_detach_one_lwp): ... this. Adjust.
19639 (linux_detach): Adjust.
19640 (check_removed_breakpoint): Adjust.
19641 (status_pending_p): Adjust.
19642 (linux_wait_for_process): Rename to ...
19643 (linux_wait_for_lwp): ... this. Adjust.
19644 (linux_wait_for_event): Adjust.
19645 (send_sigstop): Adjust.
19646 (wait_for_sigstop): Adjust.
19647 (stop_all_processes): Rename to ...
19648 (stop_all_lwps): ... this.
19649 (linux_resume_one_process): Rename to ...
19650 (linux_resume_one_lwp): ... this. Adjust.
19651 (linux_set_resume_request, linux_continue_one_thread)
19652 (linux_queue_one_thread, resume_status_pending_p)
19653 (usr_store_inferior_registers, regsets_store_inferior_registers)
19654 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19656 * linux-low.h (get_process): Rename to ...
19657 (get_lwp): ... this. Adjust.
19658 (get_thread_process): Rename to ...
19659 (get_thread_lwp): ... this. Adjust.
19660 (get_process_thread): Rename to ...
19661 (get_lwp_thread): ... this. Adjust.
19662 (struct process_info): Rename to ...
19663 (struct lwp_info): ... this.
19664 (all_processes): Rename to ...
19665 (all_lwps): ... this.
19666 * proc-service.c (ps_lgetregs): Adjust.
19667 * thread-db.c (thread_db_create_event, find_one_thread)
19668 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19670 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19672 * server.c (handle_query): Handle "qAttached".
19674 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19676 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19677 GPLv3, update license URL.
19679 2009-03-01 Doug Evans <dje@google.com>
19681 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19682 (server_h): Add gdb_signals.h.
19683 (signals.o): Update.
19684 * server.h (target_signal_from_host,target_signal_to_host_p)
19685 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19687 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19689 * remote-utils.c (getpkt): Also generate remote-debug
19690 information if noack_mode is set.
19692 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19694 * server.c (handle_query): Report qXfer:siginfo:read and
19695 qXfer:siginfo:write as supported and handle them.
19696 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19697 * linux-low.c (linux_xfer_siginfo): New.
19698 (linux_target_ops): Set it.
19700 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19702 * server.c (gdbserver_usage): Mention --remote-debug.
19703 (main): Accept '--remote-debug' switch.
19705 2009-01-18 Doug Evans <dje@google.com>
19707 * regcache.c (new_register_cache): No need to check result of xcalloc.
19708 * server.c (handle_search_memory): Back out calls to xmalloc,
19709 result is checked and error is returned to user upon failure.
19710 (handle_query): Ditto. Add more checks for result of malloc.
19711 (handle_v_cont): Check result of malloc, report error back to
19713 (handle_v_run): Ditto. Call freeargv.
19714 * server.h (freeargv): Declare.
19715 * utils.c (freeargv): New fn.
19717 2009-01-15 Doug Evans <dje@google.com>
19719 * gdbreplay.c (perror_with_name): Make arg const char *.
19720 * server.h (target_signal_to_name): Make return type const char *.
19721 * thread-db.c (thread_db_err_str): Make return type const char *.
19722 * utils.c (perror_with_name): Make arg const char *.
19724 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19726 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19727 when handling a EXIT_PROCESS_DEBUG_EVENT.
19729 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19731 * gdbreplay.c (gdbreplay_version): Update copyright year.
19732 * server.c (gdbserver_version): Likewise.
19734 2009-01-05 Doug Evans <dje@google.com>
19736 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19737 (handle_extended_wait): Improve comment.
19739 2008-12-13 Doug Evans <dje@google.com>
19741 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19742 * server.h (ATTR_MALLOC): New macro.
19743 (xmalloc,xcalloc,xstrdup): Declare.
19744 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19745 * inferiors.c: Ditto.
19746 * linux-low.c: Ditto.
19747 * mem-break.c: Ditto.
19748 * regcache.c: Ditto.
19749 * remote-utils.c: Ditto.
19752 * win32-low.c: Ditto.
19754 2008-12-12 Doug Evans <dje@google.com>
19756 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19757 in debugging printf.
19759 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19761 2008-12-09 Doug Evans <dje@google.com>
19763 * linux-low.h (struct process_info): Delete member tid, unused.
19764 * thread-db.c (find_one_thread): Update.
19765 (maybe_attach_thread): Update.
19767 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19769 * target.h (struct target_ops): Add qxfer_osdata member.
19770 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19772 (linux_qxfer_osdata): New functions.
19773 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19775 * server.c (handle_query): Handle "qXfer:osdata:read:".
19776 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19777 (buffer_xml_printf): New functions.
19778 * server.h (struct buffer): New.
19779 (buffer_grow_str, buffer_grow_str0): New macros.
19780 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19781 (buffer_xml_printf): Declare.
19783 2008-11-24 Doug Evans <dje@google.com>
19785 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19787 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19789 * server.c (handle_v_run): Always use the supplied argument list.
19791 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19793 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19794 (xtensa_regmap_table): Add entry for scompare1.
19796 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19798 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19799 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19800 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19801 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19802 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19803 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19804 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19805 XML target descriptions.
19806 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19807 when inferior is running on an ISA 2.05 or later processor. Add
19808 special case to return offset for full 64-bit slot of FPSCR when
19811 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19813 * Makefile.in (SFILES, clean): Added sparc64 files.
19814 (reg-sparc64.o, reg-sparc64.c): New.
19815 * configure.srv (sparc*-*-linux*): New configuration.
19816 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19817 syscall arguments for SPARC.
19818 (regsets_store_inferior_registers): Likewise.
19819 * linux-sparc-low.c: New file.
19821 2008-10-21 Doug Evans <dje@google.com>
19823 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19824 (READLINE_DIR,READLINE_DEP): Delete.
19825 (INTERNAL_CFLAGS): Update.
19826 (LINTFLAGS): Update.
19828 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19830 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19831 whole argv from the last run, not just argv[0].
19833 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19835 * regcache.c (new_register_cache): Return NULL if the register
19836 cache size isn't known yet.
19837 (free_register_cache): Avoid dereferencing a NULL regcache.
19839 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19841 * configure.srv: Merge MIPS and MIPS64.
19843 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19845 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19847 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19849 * Makefile.in: Add required vsx dependencies.
19851 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19852 Declare init_registers_powerpc_vsx32l.
19853 Declare init_registers_powerpc_vsx64l.
19854 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19855 (ppc_arch_setup): Check for VSX in hwcap.
19856 (ppc_fill_vsxregset): New function.
19857 (ppc_store_vsxregset): New function.
19858 Add new VSX entry in regset_info target_regsets.
19860 * configure.srv: Add new VSX dependencies.
19862 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19864 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19865 (remote_open): Set or clear transport_is_reliable.
19866 (putpkt_binary): Don't expect acks in noack mode.
19867 (getpkt): Don't send ack/nac in noack mode.
19868 * server.c (handle_general_set): Handle QStartNoAckMode.
19869 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19871 (main): Reset noack_mode on every connection.
19872 * server.h (noack_mode): Declare.
19874 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19876 * Makefile.in (GDBREPLAY_OBS): New variable.
19877 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19879 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19880 Daniel Jacobowitz <dan@codesourcery.com>
19882 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19883 (usr_store_inferior_registers): Likewise.
19884 (regsets_store_inferior_registers): Likewise.
19886 2008-07-31 Rolf Jansen <rj@surtec.com>
19887 Pedro Alves <pedro@codesourcery.com>
19889 * configure.ac: Check for memmem declaration.
19890 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19891 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19892 (disable_packet_qfThreadInfo): Unconditionally compile.
19893 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19894 * configure, config.in: Regenerate.
19896 2008-07-28 Doug Kwan <dougkwan@google.com>
19898 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19899 (linux_write_memory): Remove declaration of errno.
19901 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19903 * linux-low.c (handle_extended_wait): Do not use "status"
19904 variable uninitialized.
19906 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19908 * server.c (handle_v_attach): Inhibit reporting dll changes.
19910 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19912 * remote-utils.c (prepare_resume_reply): If requested, don't
19913 output "thread:TID" in the T stop reply.
19915 * server.c (disable_packet_vCont, disable_packet_Tthread)
19916 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19917 (handle_query): If requested, disable support for qC, qfThreadInfo
19919 (handle_v_requests): If requested, disable support for vCont.
19920 (gdbserver_show_disableable): New.
19921 (main): Handle --disable-packet and --disable-packet=LIST.
19923 * server.h (disable_packet_vCont, disable_packet_Tthread)
19924 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19926 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19928 * server.c (gdbserver_usage): Mention --version.
19930 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19932 * Makefile.in (gdbreplay.o): New rule.
19934 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19936 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19937 message, not gdbserver.
19939 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19940 Nathan Sidwell <nathan@codesourcery.com>
19941 Joseph Myers <joseph@codesourcery.com>
19943 * acinclude.m4: Include ../../config/acx.m4.
19944 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19945 * configure, config.in: Regenerate.
19946 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19947 * server.c (gdbserver_version): Print PKGVERSION.
19948 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19949 (main): Adjust gdbserver_usage calls.
19950 * gdbreplay.c (version, host_name): Add declarations.
19951 (gdbreplay_version, gdbreplay_usage): New.
19952 (main): Accept --version and --help options.
19954 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19956 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19957 (arm_breakpoint_at): Handle Thumb.
19958 (the_low_target): Add comment.
19960 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19962 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19964 2008-05-09 Doug Evans <dje@google.com>
19966 * server.h (decode_search_memory_packet): Declare.
19967 * remote-utils.c (decode_search_memory_packet): New fn.
19968 * server.c (handle_search_memory_1): New fn.
19969 (handle_search_memory): New fn.
19970 (handle_query): Process qSearch:memory packets.
19972 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19974 * regcache.c (registers_length): Remove.
19975 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19976 full register packet.
19977 * regcache.h (registers_length): Remove prototype.
19978 * server.h (PBUFSIZ): Define to 16384.
19980 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19982 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19983 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19984 powerpc-64l.o, and powerpc-altivec64l.o.
19985 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19986 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19987 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19988 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19989 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19992 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19993 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19994 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19995 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19996 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19997 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19998 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19999 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20000 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20001 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20004 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20005 (init_registers_powerpc_32l): ... this new prototype.
20006 (init_registers_powerpc_32): Remove, replace by ...
20007 (init_registers_powerpc_altivec32l): ... this new prototype.
20008 (init_registers_powerpc_e500): Remove, replace by ...
20009 (init_registers_powerpc_e500l): ... this new prototype.
20010 (init_registers_ppc64): Remove, replace by ...
20011 (init_registers_powerpc_64l): ... this new prototype.
20012 (init_registers_powerpc_64): Remove, replace by ...
20013 (init_registers_powerpc_altivec64l): ... this new prototype.
20014 (ppc_num_regs): Set to 73.
20015 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20016 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20017 (ppc_cannot_store_register): Handle orig_r3 and trap.
20018 (ppc_arch_setup): Update init_registers_... calls.
20019 (ppc_fill_gregset): Handle orig_r3 and trap.
20021 * inferiors.c (clear_inferiors): Reset current_inferior.
20023 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20025 * acinclude.m4: Add override.m4.
20026 * configure: Regenerate.
20028 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20030 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20031 initial call to init_register_ppc64.
20033 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20035 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20036 single powerpc*-*-linux* case.
20037 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20039 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20041 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20042 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20044 * linux-ppc-low.c: Include <elf.h>.
20045 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20046 (ppc_hwcap): New global variable.
20047 (ppc_regmap): Remove __SPE__ #ifdef sections.
20048 (ppc_regmap_e500): New global variable.
20049 (ppc_cannot_store_register): Update __SPE__ special case.
20050 (ppc_get_hwcap): New function.
20051 (ppc_arch_setup): Use it to determine whether inferior supports
20052 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20053 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20054 Do not access registers if target does not support AltiVec.
20055 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20056 Do not access registers if target does not support SPE.
20057 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20059 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20061 * linux-low.c (disabled_regsets, num_regsets): New.
20062 (use_regsets_p): Delete.
20063 (linux_wait_for_process): Clear disabled_regsets.
20064 (regsets_fetch_inferior_registers): Check and set it.
20065 (regsets_store_inferior_registers): Likewise.
20066 (linux_fetch_registers, linux_store_registers): Do not use
20068 (initialize_low): Allocate disabled_regsets.
20070 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20072 * Makefile.in (LIBOBJS): New.
20073 (OBS): Use LIBOBJS.
20074 (memmem.o): New rule.
20075 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20076 * configure: Regenerated.
20078 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20080 * server.c (handle_query): Never return "unsupported" for
20081 qXfer:features:read queries.
20083 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20085 * server.c (get_features_xml): Fix inverted condition.
20086 (handle_query): Always support qXfer:feature:read.
20088 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20090 * server.c (wrapper_argv): New.
20091 (start_inferior): Handle wrapper_argv. If set, expect an extra
20093 (gdbserver_usage): Document --wrapper.
20094 (main): Parse --wrapper.
20096 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20098 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20099 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20100 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20101 (ppc_set_pc): Likewise.
20102 (ppc_arch_setup): New function.
20103 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20104 of collect_register.
20105 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20107 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20109 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20110 instead of linux-ppc64-low.o.
20111 * linux-ppc64-low.c: Remove file.
20112 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20113 (linux-ppc64-low.o): Remove rule.
20115 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20116 (init_registers_powerpc_64): Likewise.
20117 (ppc_regmap): Conditionally define depending on __powerpc64__.
20118 (ppc_cannot_store_register): Do not special-case "fpscr" when
20119 compiled on __powerpc64__.
20120 (ppc_collect_ptrace_register): New function.
20121 (ppc_supply_ptrace_register): New function.
20122 (ppc_breakpoint): Change type to "unsigned int".
20123 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20124 (the_low_target): Conditionally provide initializers for the
20125 arch_setup member depending on __powerpc64__. Install
20126 collect_ptrace_register and supply_ptrace_register members.
20128 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20130 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20131 * server.c (gdbserver_xmltarget): Define.
20132 (get_features_xml): Use it to replace "target.xml" and arch_string.
20134 * configure.srv: Remove srv_xmltarget. Add XML files that were
20135 mentioned there to srv_xmlfiles instead. Remove conditional tests
20136 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20137 srv_xmlfiles and srv_regobj to include all possible choices.
20138 * configure.ac (srv_xmltarget): Remove.
20139 (srv_xmlfiles): Do not add "target.xml".
20140 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20141 checks for supplementary target information.
20142 * configure: Regenerate.
20143 * Makefile.in (XML_TARGET): Remove.
20144 (target.xml): Remove rule.
20145 (clean): Do not clean up target.xml.
20146 (.PRECIOUS): Do not mention target.xml.
20148 * target.h (struct target_ops): Remove arch_string member.
20149 * linux-low.c (linux_arch_string): Remove.
20150 (linux_target_ops): Remove arch_string initializer.
20151 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20152 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20153 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20154 * spu-low.c (spu_arch_string): Remove.
20155 (spu_target_ops): Remove arch_string initializer.
20156 * win32-low.c (win32_arch_string): Remove.
20157 (win32_target_ops): Remove arch_string initializer.
20158 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20159 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20160 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20162 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20164 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20165 by collect_ptrace_register and supply_ptrace_register hooks.
20166 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20167 instead of checking for the_low_target.left_pad_xfer.
20168 (usr_store_inferior_registers): Use collect_ptrace_register callback
20169 instead of checking for the_low_target.left_pad_xfer.
20171 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20172 (s390_supply_ptrace_register): Likewise.
20173 (s390_fill_gregset): Call s390_collect_ptrace_register.
20174 (the_low_target): Update.
20176 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20177 (ppc_supply_ptrace_register): Likewise.
20178 (the_low_target): Update.
20180 * linux-i386-low.c (the_low_target): Update.
20181 * linux-x86-64-low.c (the_low_target): Update.
20183 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20185 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20186 reg-s390.o and reg-s390x.o.
20188 * linux-low.c (new_inferior): New global variable.
20189 (linux_create_inferior, linux_attach): Set it.
20190 (linux_wait_for_process): Call the_low_target.arch_setup after the
20191 target has stopped for the first time.
20192 (initialize_low): Do not call the_low_target.arch_setup.
20194 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20195 (s390_set_pc): Likewise.
20196 (s390_arch_setup): New function.
20197 (the_low_target): Use s390_arch_setup as arch_setup routine.
20199 * regcache.c (realloc_register_cache): New function.
20200 (set_register_cache): Call it for each existing regcache.
20202 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20204 * server.h (init_registers): Remove prototype.
20206 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20207 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20208 instead of init_registers ().
20209 * linux-arm-low.c (init_registers_arm): Add prototype.
20210 (init_registers_arm_with_iwmmxt): Likewise.
20211 (the_low_target): Add initializer for arch_setup field.
20212 * linux-cris-low.c (init_registers_cris): Add prototype.
20213 (the_low_target): Add initializer for arch_setup field.
20214 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20215 (the_low_target): Add initializer for arch_setup field.
20216 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20217 (the_low_target): Add initializer for arch_setup field.
20218 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20219 (the_low_target): Add initializer for arch_setup field.
20220 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20221 (the_low_target): Add initializer for arch_setup field.
20222 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20223 (the_low_target): Add initializer for arch_setup field.
20224 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20225 (init_registers_mips64_linux): Likewise.
20226 (the_low_target): Add initializer for arch_setup field.
20227 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20228 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20229 (the_low_target): Add initializer for arch_setup field.
20230 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20231 (init_registers_powerpc_64): Likewise.
20232 (the_low_target): Add initializer for arch_setup field.
20233 * linux-s390-low.c (init_registers_s390): Add prototype.
20234 (init_registers_s390x): Likewise.
20235 (the_low_target): Add initializer for arch_setup field.
20236 * linux-sh-low.c (init_registers_sh): Add prototype.
20237 (the_low_target): Add initializer for arch_setup field.
20238 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20239 (the_low_target): Add initializer for arch_setup field.
20240 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20241 (the_low_target): Add initializer for arch_setup field.
20243 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20244 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20245 instead of init_registers ().
20246 * win32-arm-low.c (init_registers_arm): Add prototype.
20247 (the_low_target): Add initializer for arch_setup field.
20248 * win32-i386-low.c (init_registers_i386): Add prototype.
20249 (the_low_target): Add initializer for arch_setup field.
20251 * spu-low.c (init_registers_spu): Add prototype.
20252 (initialize_low): Call initialie_registers_spu () instead of
20253 initialize_registers ().
20255 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20257 * server.c (handle_v_requests): When handling the vRun and vAttach
20258 packets, if already debugging a process, don't kill it. Return an
20261 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20263 * server.c (handle_query): Correct length check.
20265 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20267 * win32-low.c (do_initial_child_stuff): Add process handle
20268 parameter. Set current_process_handle and current_process_id from the
20269 parameters. Clear globals.
20270 (win32_create_inferior): Don't set current_process_handle and
20271 current_process_id here. Instead pass them on the call to
20272 do_initial_child_stuff.
20273 (win32_attach): Likewise.
20274 (win32_clear_inferiors): New.
20275 (win32_kill): Don't close the current process handle or the
20276 current thread handle here. Instead call win32_clear_inferiors.
20277 (win32_detach): Don't open a new handle to the process. Call
20278 win32_clear_inferiors.
20279 (win32_join): Don't rely on current_process_handle; open a new
20280 handle using the process id.
20281 (win32_wait): Call win32_clear_inferiors when the inferior process
20284 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20286 * server.c (monitor_show_help): Add "exit".
20288 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20290 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20291 (clean): Add reg-xtensa.c.
20292 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20293 * configure.srv (xtensa*-*-linux*) New target.
20294 * linux-xtensa-low.c: New.
20295 * xtensa-xtregs.c: New.
20297 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20299 * hostio.c: Don't include errno.h.
20300 (errno_to_fileio_errno): Move to hostio-errno.
20301 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20302 error number outputting to the target->hostio_last_error callback.
20303 (hostio_packet_error): Use FILEIO_EINVAL directly.
20304 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20305 calls to hostio_error.
20306 * hostio-errno.c: New.
20307 * server.h (hostio_last_error_from_errno): Declare.
20308 * target.h (target_ops): Add hostio_last_error member.
20309 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20310 as hostio_last_error handler.
20311 * spu-low.c (spu_target_ops): Likewise.
20312 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20313 (wince_hostio_last_error): New functions.
20314 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20315 as hostio_last_error handler.
20316 (win32_target_ops) [!_WIN32_WCE]: Register
20317 hostio_last_error_from_errno as hostio_last_error handler.
20318 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20319 (hostio-errno.o): New rule.
20320 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20321 * configure.srv (srv_hostio_err_objs): New variable. Default to
20323 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20324 * configure: Regenerate.
20326 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20328 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20329 (linux_kill, linux_detach): Clean up the process list.
20330 * remote-utils.c (remote_open): Improve port number parsing.
20331 (putpkt_binary, input_interrupt): Only send interrupts if the target
20333 * server.c (extended_protocol): Make static.
20334 (attached): Define earlier.
20335 (exit_requested, response_needed, program_argv): New variables.
20336 (target_running): New.
20337 (start_inferior): Clear attached here.
20338 (attach_inferior): Set attached here.
20339 (require_running): Define.
20340 (handle_query): Use require_running and target_running. Implement
20342 (handle_v_attach, handle_v_run): New.
20343 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20344 (gdbserver_usage): Update.
20345 (main): Redo argument parsing. Handle --debug and --multi. Handle
20346 --attach along with other options or after the port. Save
20347 program_argv. Support no initial program. Resynchronize
20348 communication with GDB after an error. Handle "monitor exit".
20349 Use require_running and target_running. Always allow the extended
20350 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20351 restart in extended mode.
20352 * README: Refer to the GDB manual. Update --attach usage.
20354 2007-12-20 Andreas Schwab <schwab@suse.de>
20356 * linux-low.c (STACK_SIZE): Define.
20357 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20358 (linux_test_for_tracefork): Likewise.
20360 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20362 * linux-low.c (linux_wait_for_event): Update messages. Do not
20363 reinsert auto-delete breakpoints.
20364 * mem-break.c (struct breakpoint): Change return type of handler to
20366 (set_breakpoint_at): Update handler type.
20367 (reinsert_breakpoint_handler): Return 1 instead of calling
20369 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20371 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20372 * mem-break.h (set_breakpoint_at): Update handler type.
20373 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20374 * win32-low.c (auto_delete_breakpoint): New.
20375 (get_child_debug_event): Use it.
20377 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20379 * configure.ac: Check for pread and pwrite.
20380 * hostio.c (handle_pread): Fall back to lseek and read.
20381 (handle_pwrite): Fall back to lseek and write.
20382 * config.in, configure: Regenerated.
20384 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20386 * server.c (myresume): Add own_buf argument.
20387 (main): Update calls.
20389 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20391 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20392 * remote-utils.c (remote_open): Do not call disable_async_io.
20393 (block_async_io): Delete.
20394 (unblock_async_io): Make static.
20395 (initialize_async_io): New.
20396 * server.c (handle_v_cont): Handle async I/O here.
20397 (myresume): Likewise. Move other common resume tasks here...
20398 (main): ... from here. Call initialize_async_io. Disable async
20399 I/O before the main loop.
20400 * server.h (initialize_async_io): Declare.
20401 (block_async_io, unblock_async_io): Delete prototypes.
20402 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20404 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20406 * remote-utils.c (readchar): Allow binary data in received messages.
20408 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20410 * win32-low.c (attaching): New global.
20411 (win32_create_inferior): Clear the `attaching' global.
20412 (win32_attach): Set the `attaching' global.
20413 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20414 attaching. Only set a breakpoint at the entry point if not
20417 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20419 * server.c (main): Don't report dll events on the initial
20420 connection on attaches.
20422 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20424 * server.c (main): Relax numerical bases supported for the pid of
20425 the --attach command line argument.
20427 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20429 * win32-low.c (win32_attach): Call OpenProcess before
20430 DebugActiveProcess, not after. Add last error output to error
20433 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20435 * win32-low.c (win32_get_thread_context)
20436 (win32_set_thread_context): New functions.
20437 (thread_rec): Use win32_get_thread_context.
20438 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20439 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20442 2007-12-03 Leo Zayas
20443 Pedro Alves <pedro_alves@portugalmail.pt>
20445 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20447 (child_add_thread): Minor cleanup.
20448 (child_continue): Resume artificially suspended threads before
20449 calling ContinueDebugEvent.
20450 (suspend_one_thread): New.
20451 (fake_breakpoint_event): New.
20452 (get_child_debug_event): Change return type to int. Check here if
20453 gdb sent an interrupt request. If a soft interrupt was requested,
20454 fake a breakpoint event. Return 0 if there is no event to handle,
20456 (win32_wait): Don't check here if gdb sent an interrupt request.
20457 Ensure there is a valid event to handle.
20458 (win32_request_interrupt): Add soft interruption method as last
20461 2007-12-03 Leo Zayas
20462 Pedro Alves <pedro_alves@portugalmail.pt>
20464 * win32-low.h (win32_thread_info): Add descriptions to the
20465 structure members. Replace `suspend_count' counter by a
20467 * win32-low.c (thread_rec): Update condition of when to get the
20468 context from the inferior. Rely on ContextFlags being set if it
20469 has already been retrieved. Only suspend the inferior thread if
20470 we haven't already. Warn if that fails.
20471 (continue_one_thread): s/suspend_count/suspended/. Only call
20472 ResumeThread once. Warn if that fails.
20474 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20476 * win32-low.c (win32_wait): Don't read from the inferior when it
20477 has already exited.
20479 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20481 * Makefile.in (win32_low_h): New variable.
20482 (win32-low.o): Add dependency on $(win32_low_h).
20483 (win32-arm-low.o, win32-i386-low.o): New rules.
20485 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20487 * hostio.c: Correct copyright year.
20489 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20491 * Makefile.in (OBS): Add hostio.o.
20492 (hostio.o): New rule.
20493 * server.h (handle_vFile): Declare.
20494 * hostio.c: New file.
20495 * server.c (handle_v_requests): Take packet_len and new_packet_len
20496 for binary packets. Call handle_vFile.
20497 (main): Update call to handle_v_requests.
20499 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20501 * linux-low.c: Include <sched.h>.
20503 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20505 * linux-low.c (linux_tracefork_grandchild): New.
20506 (linux_tracefork_child): Use clone.
20507 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20509 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20511 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20513 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20515 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20517 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20519 * inferiors.c (change_inferior_id): Delete.
20520 (add_pid_to_list, pull_pid_from_list): New.
20521 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20522 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20523 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20524 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20525 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20526 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20527 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20528 (using_threads): Always set to 1.
20529 (handle_extended_wait): New.
20530 (add_process): Do not set TID.
20531 (linux_create_inferior): Set must_set_ptrace_flags.
20532 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20533 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20534 (linux_thread_alive): Rename TID argument to LWPID.
20535 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20536 (linux_wait_for_event): Do not use TID or check using_threads. Update
20537 call to dead_thread_notify. Call handle_extended_wait.
20538 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20539 (send_sigstop): Delete sigstop_sent.
20540 (wait_for_sigstop): Avoid TID.
20541 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20542 (linux_test_for_tracefork): New.
20543 (linux_lookup_signals): Use thread_db_active and
20544 linux_supports_tracefork_flag.
20545 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20546 * linux-low.h (get_process_thread): Avoid TID.
20547 (struct process_ifo): Move thread_known and tid to the end. Remove
20549 (linux_attach_lwp, thread_db_init): Update prototypes.
20550 * server.h (change_inferior_id): Delete prototype.
20551 (add_pid_to_list, pull_pid_from_list): New prototypes.
20552 * thread-db.c (thread_db_use_events): New.
20553 (find_first_thread): Rename to...
20554 (find_one_thread): ...this. Update callers and messages. Do not
20555 call fatal. Check thread_db_use_events. Do not call
20556 change_inferior_id or new_thread_notify.
20557 (maybe_attach_thread): Update. Do not call new_thread_notify.
20558 (thread_db_init): Set thread_db_use_events. Check use_events.
20559 * utils.c (fatal, warning): Correct message prefix.
20561 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20563 * Makefile.in (clean): Remove new files.
20564 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20565 (powerpc-64.o, powerpc-64.c): New rules.
20566 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20567 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20569 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20571 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20572 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20573 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20574 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20575 (target_regsets): Add AltiVec and SPE register sets.
20576 * configure.ac: Check for AltiVec and SPE.
20577 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20578 (ppc_fill_vrregset, ppc_store_vrregset): New.
20579 (target_regsets): Add AltiVec register set.
20580 * configure: Regenerated.
20582 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20584 * linux-low.c (O_LARGEFILE): Define.
20585 (linux_read_memory): Use /proc/PID/mem.
20586 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20587 * configure, config.in: Regenerated.
20589 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20591 * linux-low.c (linux_wait_for_event): Do not pass signals while
20594 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20596 * win32-low.c (create_process): New.
20597 (win32_create_inferior): Use create_process instead of
20598 CreateProcess. If create_process failed retry appending an ".exe"
20599 suffix. Store the GetLastError result immediatelly after
20600 create_process calls and use it on the call to error.
20602 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20604 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20606 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20608 * configure.ac: Switch license to GPLv3.
20610 2007-08-01 Michael Snyder <msnyder@access-company.com>
20612 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20614 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20616 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20618 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20619 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20620 CloseToolhelp32Snapshot.
20621 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20622 CloseToolhelp32Snapshot.
20624 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20626 * server.c (main): Check for inferior exit before main loop.
20628 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20630 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20631 instead of on tmp_desc.
20633 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20634 Daniel Jacobowitz <dan@codesourcery.com>
20636 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20637 (add_thread): Minor cleanups.
20638 (clear_inferiors): Move lower in the file. Clear the DLL
20640 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20641 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20642 (xml_escape_text): New.
20643 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20645 (handle_v_cont): Report errors.
20646 (gdbserver_version): Update.
20647 (main): Correct size of own_buf. Do not report initial DLL events.
20648 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20649 (unloaded_dll, xml_escape_text): New.
20650 * win32-low.c (enum target_waitkind): Update comments.
20651 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20652 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20653 (win32_EnumProcessModules, win32_GetModuleInformation)
20654 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20655 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20656 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20657 (win32_Module32First, win32_Module32Next, load_toolhelp)
20658 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20659 (get_child_debug_event): Handle DLL events.
20660 (win32_wait): Likewise.
20662 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20664 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20665 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20667 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20669 * win32-low.c (handle_output_debug_string): Ignore event if not
20672 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20674 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20676 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20678 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20680 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20682 * inferiors.c (change_inferior_id): Add comment.
20683 * linux-low.c (check_removed_breakpoint): Add an early
20684 prototype. Improve debug output.
20685 (linux_attach): Doc update.
20686 (linux_detach_one_process, linux_detach): Clean up before releasing
20688 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20689 * linux-low.h (struct process_info): Doc improvement.
20690 * mem-break.c (delete_all_breakpoints): New.
20691 * mem-break.h (delete_all_breakpoints): New prototype.
20692 * thread-db.c (find_first_thread): New.
20693 (thread_db_create_event): Call it instead of
20694 thread_db_find_new_threads. Clean up unused variables.
20695 (maybe_attach_thread): Remove first thread handling.
20696 (thread_db_find_new_threads): Use find_first_thread.
20697 (thread_db_get_tls_address): Likewise.
20699 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20701 * thread-db.c (thread_db_find_new_threads): Add prototype.
20702 (thread_db_create_event): Check for the main thread before adding
20704 (maybe_attach_thread): Only enable event reporting if TID == 0.
20705 (thread_db_get_tls_address): Check for new threads.
20707 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20709 * linux-low.c (linux_create_inferior): Try execv before execvp.
20710 * spu-low.c (spu_create_inferior): Likewise.
20712 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20714 * linux-low.c (linux_create_inferior): Change execv to execvp.
20715 * spu-low.c (spu_create_inferior): Likewies.
20717 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20719 * Makefile.in (clean): Clean new files instead of deleted ones.
20720 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20721 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20723 * configure.srv: Specify XML files and new regformats for MIPS and
20725 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20726 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20727 an entry for the restart register.
20728 (mips_cannot_fetch_register, mips_cannot_store_register)
20729 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20730 register names to match the XML descriptions.
20731 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20732 restart register instead of $0.
20734 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20735 Markus Deuling <deuling@de.ibm.com>
20737 * remote-utils.c (decode_xfer_write): New function.
20738 * server.h (decode_xfer_write): Add prototype.
20739 * server.c (handle_query): Add PACKET_LEN argument. Support
20740 qXfer:spu:read and qXfer:spu:write packets.
20741 (main): Pass packet_len to handle_query.
20742 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20743 * target.h (target_ops): Add qxfer_spu.
20745 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20747 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20748 accessing non-seekable spufs files.
20750 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20752 * server.c (handle_query): Add reply for qC packet.
20754 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20755 Leo Zayas <lerele@champenstudios@com>
20757 * server.h (check_remote_input_interrupt_request): New function.
20758 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20759 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20760 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20761 (check_remote_input_interrupt_request): New function.
20762 * server.h (check_remote_input_interrupt_request): Declare.
20763 * win32-low.c (winapi_DebugBreakProcess,
20764 winapi_GenerateConsoleCtrlEvent): New typedefs.
20765 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20767 (win32_wait): Check for remote interrupt request
20768 with check_remote_input_interrupt_request.
20769 (win32_request_interrupt): New function.
20770 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20772 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20774 * win32-low.c (debug_registers_changed,
20775 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20776 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20777 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20778 (thread_rec): Get context using the low target.
20779 (child_add_thread): Call thread_added on the low target,
20780 which does the same thing.
20782 (do_initial_child_stuff): Remove debug registers references.
20783 Set context using the low target. Resume threads after
20784 setting the contexts.
20785 (child_continue): Remove dead variable. Remove debug
20786 registers references.
20787 (child_fetch_inferior_registers): Go through the low target.
20788 (do_child_store_inferior_registers): Remove.
20789 (child_store_inferior_registers): Go through the low target.
20790 (win32_resume): Remove debug registers references.
20791 Set context using the low target.
20792 (handle_exception): Change return type to void. Don't record
20793 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20794 first chance exception.
20795 (get_child_debug_event): Change return type to void. Remove
20796 goto loop. Always return after waiting for debug event.
20797 (win32_wait): Convert to switch statement. Handle spurious
20800 * win32-i386-low.c (debug_registers_changed,
20801 debug_registers_used): New.
20802 (initial_stuff): Rename to ...
20803 (i386_initial_stuff): ... this. Clear debug registers
20805 (store_debug_registers): Delete.
20806 (i386_get_thread_context): New.
20807 (load_debug_registers): Delete.
20808 (i386_set_thread_context): New.
20809 (i386_thread_added): New.
20810 (single_step): Rename to ...
20811 (i386_single_step): ... this.
20812 (do_fetch_inferior_registers): Rename to ...
20813 (i386_fetch_inferior_register): ... this.
20814 (i386_store_inferior_register): New.
20815 (the_low_target): Adapt to new interface.
20817 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20818 (arm_get_thread_context): New.
20819 (arm_set_thread_context): New.
20821 (do_fetch_inferior_registers): Rename to ...
20822 (arm_fetch_inferior_register): ... this.
20823 (arm_store_inferior_register): New.
20824 (arm_wince_breakpoint): Reimplement as unsigned long.
20825 (arm_wince_breakpoint_len): Define.
20826 (the_low_target): Adapt to new interface.
20828 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20829 load_debug_registers. Add get_thread_context, set_thread_context,
20830 thread_added and store_inferior_register. Rename
20831 fetch_inferior_registers to fetch_inferior_register.
20832 (regptr): Remove declaration.
20834 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20836 * linux-low.c (linux_detach): Change return type to int. Return 0.
20837 * spu-low.c (spu_detach): Likewise.
20839 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20841 * target.h (target_ops): Change return type of detach to int.
20843 (join_inferior): New.
20844 * server.c (main): Don't skip detach support on mingw32.
20845 If the inferior doesn't support detaching return error.
20846 Call join_inferior instead of using waitpid.
20847 * linux-low.c (linux_join): New.
20848 (linux_target_op): Add linux_join.
20849 * spu-low.c (spu_join): New.
20850 (spu_target_ops): Add spu_join.
20851 * win32-low.c (win32_detach): Adapt to new interface.
20852 Reopen current_process_handle before detaching. Issue a child
20853 resume before detaching.
20855 (win32_target_op): Add win32_join.
20857 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20859 * win32-low.c (win32-attach): Fix return value.
20860 * target.h (target_ops): Describe ATTACH return values.
20862 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20864 * win32-low.c (GETPROCADDRESS): Define.
20865 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20866 (winapi_DebugSetProcessKillOnExit): Likewise.
20867 (win32_create_inferior): Force usage of ansi CreateProcessA.
20868 (win32_attach): Use GETPROCADDRESS.
20869 (win32_detach): Likewise.
20871 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20873 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20875 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20877 * win32-low.c: Commit leftover changes from 2007-03-29.
20879 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20881 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20882 fields short instead of int. Add explicit padding.
20883 (i387_cache_to_fsave): Remove unnecessary casts.
20884 (i387_fsave_to_cache): Doc fix.
20885 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20887 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20889 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20890 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20892 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20894 * configure.srv (arm*-*-mingw32ce*): Move near the other
20897 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20899 * configure.ac: Add errno checking.
20900 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20901 sys/file.h and malloc.h.
20902 (AC_CHECK_DECLS): Add perror.
20903 (srv_mingwce): Handle.
20904 * configure.srv (i[34567]86-*-cygwin*): Add
20905 win32-i386-low.o to srv_tgtobj.
20906 (i[34567]86-*-mingw*): Likewise.
20907 (arm*-*-mingw32ce*): Add case.
20908 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20909 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20910 [__MINGW32CE__] (strerror): New function.
20911 [__MINGW32CE__] (errno): Define to GetLastError.
20912 [__MINGW32CE__] (COUNTOF): New macro.
20913 (remote_open): Remove extra close call.
20914 * mem-break.c (delete_breakpoint_at): New function.
20915 * mem-break.h (delete_breakpoint_at): Declare.
20916 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20917 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20918 [USE_WIN32API] (read, write): Add char* casts.
20919 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20920 * server.h: Include wincecompat.h on Windows CE.
20921 [HAVE_ERRNO_H]: Check.
20922 (perror): Declare if not declared.
20923 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20924 (perror_with_name): Remove errno declaration.
20925 * wincecompat.h: New.
20926 * wincecompat.c: New.
20927 * win32-low.h: New.
20928 * win32-arm-low.c: New.
20929 * win32-i386-low.c: New.
20930 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20931 (OUTMSG2): Make it safe.
20933 (COUNTOF): New macro.
20934 (NUM_REGS): Get it from the low target.
20935 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20936 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20937 (thread_rec): Let low target handle debug registers.
20938 (child_add_thread): Likewise.
20939 (child_init_thread_list): Likewise.
20940 (continue_one_thread): Likewise.
20942 (do_child_fetch_inferior_registers): Move to ...
20943 * win32-i386-low.c: ... here, and rename to ...
20944 (do_fetch_inferior_registers): ... this.
20945 * win32-low.c (child_fetch_inferior_registers):
20946 Go through the low target.
20947 (do_child_store_inferior_registers): Use regptr.
20948 (strwinerror): New function.
20949 (win32_create_inferior): Handle Windows CE.
20950 Use strwinerror instead of strerror on Windows error
20951 codes. Add program to the error output.
20952 Don't close the main thread handle on Windows CE.
20953 (win32_attach): Use coredll.dll on Windows CE.
20954 (win32_kill): Close current process and current
20956 (win32_detach): Use coredll.dll on Windows CE.
20957 (win32_resume): Let low target handle debug registers, and
20959 (handle_exception): Add/Remove initial breakpoint. Avoid
20960 non-existant WSTOPSIG on Windows CE.
20961 (win32_read_inferior_memory): Cast to remove warning.
20962 (win32_arch_string): Go through the low target.
20963 (initialize_low): Call set_breakpoint_data with the low
20964 target's breakpoint.
20965 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20966 FOP_REGNUM, mappings): Move to ...
20967 * win32-i386-low.c: ... here.
20968 * win32-low.c (win32_thread_info): Move to ...
20969 * win32-low.h: ... here.
20970 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20971 win32-arm-low.c and wincecompat.c.
20972 (all:): Add $EXEEXT.
20973 (install-only:): Likewise.
20974 (gdbserver:): Likewise.
20975 (gdbreplay:): Likewise.
20976 * config.in: Regenerate.
20977 * configure: Regenerate.
20979 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20981 * win32-low.c: Rename typedef thread_info to
20982 win32_thread_info throughout.
20984 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20986 * win32-i386-low.c: Rename to ...
20987 * win32-low.c: ... this.
20988 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20989 * Makefile.in: Likewise.
20991 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20993 * remote-utils.c (monitor_output): Constify msg parameter.
20994 * server.h (monitor_output): Likewise.
20995 * win32-i386-low.c (handle_output_debug_string): New.
20996 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20997 handle_output_debug_string.
20998 (get_child_debug_event): Likewise.
21000 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21002 * server.c (main): Correct strtoul check.
21004 2007-03-27 Jon Ringle <jon@ringle.org>
21006 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21008 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21010 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21012 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21014 * terminal.h: Check HAVE_SGTTY_H.
21016 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21018 * remote-utils.c (remote_open): Print out the assigned port number.
21020 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21022 * remote-utils.c (monitor_output): New function.
21023 * server.c (debug_threads): Define here.
21024 (monitor_show_help): New function.
21025 (handle_query): Handle qRcmd.
21026 (main): Do not handle 'd' packet.
21027 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21028 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21031 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21033 * Makefile.in (EXEEXT): New.
21034 (clean): Use $(EXEEXT).
21036 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21038 * target.h (target_ops): Rename send_signal to request_interrupt,
21039 and remove enum target_signal parameter.
21040 * linux-low.c (linux_request_interrupt): Rename from
21041 linux_send_signal, and always send SIGINT.
21042 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21043 and always send SIGINT.
21044 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21046 (input_interrupt): Likewise.
21048 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21050 * server.c (get_features_xml): Check if target implemented
21052 * win32-i386-low.c (win32_arch_string): New.
21053 (win32_target_ops): Add win32_arch_string as arch_string member.
21055 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21057 * spu-low.c (spu_arch_string): New.
21058 (spu_target_ops): Add spu_arch_string.
21060 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21062 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21063 * configure.ac: Do not check for terminal.h.
21064 * configure, config.in: Regenerated.
21066 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21068 * Makefile.in (OBS): Add $(XML_BUILTIN).
21069 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21071 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21072 (arm-with-iwmmxt.c): New.
21073 * config.in, configure: Regenerate.
21074 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21075 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21076 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21077 (arm*-*-linux*): Add iWMMXt and regset support.
21078 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21079 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21080 (arm_store_wmmxregset, target_regsets): New.
21081 * server.c (get_features_xml): Take annex argument. Check builtin
21083 (handle_query): Handle multiple annexes.
21085 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21087 * remote-utils.c [USE_WIN32API] (read, write): Define.
21088 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21091 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21093 * linux-i386-low.c (the_low_target): Set arch_string.
21094 * linux-x86-64-low.c (the_low_target): Likewise.
21095 * linux-low.c (linux_arch_string): New.
21096 (linux_target_ops): Add it.
21097 * linux-low.h (struct linux_target_ops): Add arch_string.
21098 * server.c (write_qxfer_response): Use const void * for DATA.
21099 (get_features_xml): New.
21100 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21101 * target.h (struct target_ops): Add arch_string method.
21103 2007-01-03 Denis Pilat <denis.pilat@st.com>
21104 Daniel Jacobowitz <dan@codesourcery.com>
21106 * linux-low.c (linux_kill): Handle being called with no threads.
21107 * win32-i386-low.c (win32_kill): Likewise.
21108 (get_child_debug_event): Clear current_process_handle.
21110 2006-12-30 Denis PILAT <denis.pilat@st.com>
21111 Daniel Jacobowitz <dan@codesourcery.com>
21113 * remote-utils.c (remote_open): Check the type of specified
21114 serial port devices before opening them.
21115 * server.c (main): Kill the inferior if an error occurs during
21116 the first remote_open.
21118 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21120 * README: Update supported targets.
21122 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21124 * Makefile.in (clean): Remove reg-mips64.c.
21125 (reg-mips64.c, reg-mips64.o): New rules.
21126 * configure.srv: Handle mips64. Include regset support for mips.
21127 * linux-mips-low.c (union mips_register): New.
21128 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21129 (mips_breakpoint, mips_breakpoint_at): Use int.
21130 (mips_collect_register, mips_supply_register)
21131 (mips_collect_register_32bit, mips_supply_register_32bit)
21132 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21133 (mips_store_fpregset, target_regsets): New.
21134 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21136 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21138 * configure.srv: Add target "spu*-*-*".
21139 * Makefile.in (clean): Remove reg-spu.c.
21140 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21141 * spu-low.c: New file.
21143 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21145 * configure.ac: Correct td_thr_tls_get_addr test.
21146 * configure: Regenerated.
21148 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21150 * linux-low.c (linux_wait_for_event): Reformat. Use the
21151 pass_signals array.
21152 * remote-utils.c (decode_address_to_semicolon): New.
21153 * server.c (pass_signals, handle_general_set): New.
21154 (handle_query): Mention QPassSignals for qSupported.
21155 (main): Call handle_general_set.
21156 * server.h (pass_signals, decode_address_to_semicolon): New.
21158 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21160 * server.c (handle_query): Correct error handling for read_auxv.
21162 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21164 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21165 and srv_linux_thread_db to yes.
21166 * linux-s390-low.c (s390_fill_gregset): New function.
21167 (target_regsets): Define data structure.
21169 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21171 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21172 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21173 * config.in, configure: Regenerated.
21174 * inferiors.c (gdb_id_to_thread): New function.
21175 (gdb_id_to_thread_id): Use it.
21176 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21177 * linux-low.h (struct process_info): Add th member.
21178 (thread_db_get_tls_address): New prototype.
21179 * remote-utils.c (decode_address): Make non-static.
21180 * server.c (handle_query): Handle qGetTLSAddr.
21181 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21182 * target.h (struct target_ops): Add get_tls_address.
21183 * thread-db.c (maybe_attach_thread): Save the thread handle.
21184 (thread_db_get_tls_address): New.
21186 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21188 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21189 (linux_resume_one_process): Take a siginfo_t *. Update all
21190 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21191 (struct pending_signals): Add a siginfo_t.
21192 (linux_wait_for_process): Always set last_status.
21193 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21194 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21195 * linux-low.h (struct process_info): Add last_status.
21197 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21199 * remote-utils.c (try_rle): New function.
21200 (putpkt_binary): Use it.
21202 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21204 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21205 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21206 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21207 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21208 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21211 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21213 * server.c (terminal_fd): New variable.
21214 (old_foreground_pgrp): Likewise.
21215 (restore_old_foreground_pgrp): New function.
21216 (start_inferior): Record the terminal file descriptor in terminal_fd
21217 and its original foreground group in old_foreground_pgrp. Register
21218 restore_old_foreground_pgrp with atexit().
21220 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21222 * server.c (handle_query): Correct qPart to qXfer.
21224 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21226 * configure.ac: Check for more headers which are missing on
21227 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21228 * configure.srv: Add Cygwin and mingw32.
21229 * remote-utils.c: Don't include headers unconditionally which
21230 are missing on mingw32. Include <winsock.h> for mingw32.
21231 (remote_open): Adjust for mingw32 support. Flush
21232 standard error after writing to it.
21233 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21234 (unblock_async_io, enable_async_io, disable_async_io)
21235 (readchar, getpkt): Update for Winsock support.
21236 (prepare_resume_reply): Expect a protocol signal number.
21237 * server.c: Disable <sys/wait.h> on mingw32.
21238 (start_inferior): Adjust for mingw32 support. Flush
21239 standard error after writing to it.
21240 (attach_inferior): Likewise. Use protocol signal
21242 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21244 * win32-i386-low.c: New file.
21245 * Makefile.in (XM_CLIBS): Set.
21246 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21247 (win32-i386-low.o): New dependency rule.
21248 * linux-low.c (linux_wait): Use target signal numbers.
21249 * target.h (struct target_ops): Doc fix.
21250 * server.h (target_signal_to_name): New prototype.
21251 * gdbreplay.c: Don't include headers unconditionally which
21252 are missing on mingw32. Include <winsock.h> for mingw32.
21253 (remote_close, remote_open): Adjust for Winsock support.
21254 * configure, config.in: Regenerated.
21256 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21258 * server.c (decode_xfer_read, write_qxfer_response): New.
21259 (handle_query): Take a packet length argument. Handle
21260 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21261 the qSupported response.
21262 (main): Update call to handle_query.
21264 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21266 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21267 (putpkt_binary): Renamed from putpkt and adjusted for binary
21269 (putpkt): New wrapper for putpkt_binary.
21270 (readchar): Don't mask off the high bit.
21271 (decode_X_packet): New function.
21272 * server.c (main): Call putpkt_binary if a handler sets the packet
21273 length. Save the length of the incoming packet. Handle 'X'.
21274 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21276 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21278 * server.c (handle_query): Handle qSupported.
21280 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21282 * remote-utils.c (all_symbols_looked_up): New variable.
21283 (look_up_one_symbol): Check it.
21284 * server.h (look_up_one_symbol): New declaration.
21285 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21287 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21289 * Makefile.in (linux-arm-low.o): Update dependencies.
21290 * linux-arm-low.c: Include "gdb_proc_service.h".
21291 (PTRACE_GET_THREAD_AREA): Define.
21292 (ps_get_thread_area): New function.
21294 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21296 * configure.srv (m68k*-*-uclinux*): New target.
21297 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21298 (linux_resume_one_process): Remove extraneous cast.
21299 (linux_read_offsets): New.
21300 (linux_target_op): Add linux_read_offsets on mmuless systems.
21301 * server.c (handle_query): Add qOffsets logic.
21302 * target.h (struct target_ops): Add read_offsets.
21304 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21306 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21307 (PTRACE_GET_THREAD_AREA): Define.
21308 (ps_get_thread_area): New function.
21309 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21310 (linux-x86-64-low.o): Update.
21312 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21314 * configure.ac: Remove checks for prfpregset_t.
21315 * gdb_proc_service.h: New file.
21316 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21317 new "gdb_proc_service.h".
21318 * proc-service.c: Likewise.
21319 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21320 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21321 * Makefile.in (gdb_proc_service_h): Updated.
21322 * configure, config.in: Regenerated.
21324 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21326 * remote-utils.c (prepare_resume_reply): Move declaration
21327 of gdb_id_from_wait to the top of the block.
21329 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21331 * linux-low.c (regsets_store_inferior_registers): Read the regset
21332 from the target before filling it.
21334 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21336 * server.c (attach_inferior): Return SIGTRAP for a successful
21339 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21341 * Makefile.in (OBS): Add version.o.
21342 (STAGESTUFF): Delete.
21343 (version.o): Add dependencies.
21344 (version.c): Replace rule.
21345 (clean): Remove version.c.
21346 * server.c (gdbserver_version): New.
21347 (gdbserver_usage): Use printf.
21348 (main): Handle --version and --help.
21349 * server.h (version, host_name): Add declarations.
21351 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21363 * linux-x86-64-low.c:
21365 * linux-s390-low.c:
21366 * linux-ppc64-low.c:
21368 * linux-mips-low.c:
21369 * linux-m68k-low.c:
21370 * linux-m32r-low.c:
21373 * linux-ia64-low.c:
21374 * linux-i386-low.c:
21375 * linux-crisv32-low.c:
21387 * gdbserver.1: Add (C) after Copyright. Update the FSF
21390 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21392 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21393 (arm_breakpoint_at): Recognize both breakpoints.
21394 (the_low_target): Use the correct breakpoint instruction.
21396 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21398 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21399 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21400 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21401 (the_low_target): Update.
21403 2005-10-25 Andreas Schwab <schwab@suse.de>
21405 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21407 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21408 (ia64_num_regs): Reduce to 462.
21410 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21412 * acinclude.m4: Correct quoting.
21413 * aclocal.m4: Regenerated.
21415 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21416 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21417 (thread_db_init): Call thread_db_err_str.
21418 * configure.ac: Check for TD_VERSION.
21419 * config.in, configure: Regenerated.
21421 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21423 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21425 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21427 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21428 is not available. Define HAVE_PTRACE_GETREGS if it is.
21429 * config.in, configure: Regenerated.
21430 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21431 * linux-i386-low.c, linux-m68k-low.c: Update to use
21432 HAVE_PTRACE_GETREGS.
21433 * linux-low.c (regsets_fetch_inferior_registers)
21434 (regsets_store_inferior_registers): Only return 0 if we processed
21436 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21437 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21439 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21441 * inferiors.c (struct thread_info): Add gdb_id.
21442 (add_thread): Add gdb_id argument.
21443 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21444 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21445 calls to add_thread.
21446 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21447 * server.c (handle_query): Use thread_to_gdb_id.
21448 (handle_v_cont, main): Use gdb_id_to_thread_id.
21449 * server.h (add_thread): Update prototype.
21450 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21453 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21455 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21456 left-padded registers.
21457 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21458 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21460 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21462 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21463 * configure: Regenerate.
21464 * config.in: Regenerate.
21465 * server.h (NEED_DECLARATION_STRERROR):
21466 Replace with !HAVE_DECL_STRERROR.
21468 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21470 * linux-low.c (linux_wait, linux_send_signal): Don't test
21471 an unsigned long variable for > 0 if it could be MAX_ULONG.
21472 * server.c (myresume): Likewise.
21473 * target.c (set_desired_inferior): Likewise.
21475 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21477 * configure.ac: Simplify and improve check for socklen_t.
21478 * configure, config.in: Regenerate.
21480 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21482 * acconfig.h: Remove.
21483 * configure.ac: Add a test for socklen_t. Use three-argument
21484 AC_DEFINE throughout.
21485 * config.in: Regenerated using autoheader 2.59.
21486 * configure: Regenerated.
21488 * gdbreplay.c (socklen_t): Provide a default.
21489 (remote_open): Use socklen_t.
21490 * remote-utils.c (socklen_t): Provide a default.
21491 (remote_open): Use socklen_t.
21492 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21495 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21497 * linux-low.c (linux_read_memory, linux_write_memory)
21498 (linux_read_auxv): Likewise.
21499 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21500 (check_mem_write): Likewise.
21501 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21503 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21504 (registers_from_string, register_data): Likewise.
21505 * server.c (handle_query, main): Likewise.
21506 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21507 (decode_M_packet): Likewise.
21508 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21509 * target.h (struct target_ops): Update read_memory, write_memory,
21511 (read_inferior_memory, write_inferior_memory): Update.
21512 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21513 to unsigned char *.
21514 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21515 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21516 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21517 linux-s390-low.c, linux-sh-low.c: Update for changes in
21518 read_inferior_memory and the_low_target->breakpoint.
21520 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21522 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21523 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21524 * configure.srv: Add powerpc64-*-linux*.
21525 * linux-ppc64-low.c: New file.
21527 2005-05-23 Orjan Friberg <orjanf@axis.com>
21529 * linux-cris-low.c: New file with support for CRIS.
21530 * linux-crisv32-low.c: Ditto for CRISv32.
21531 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21532 (clean): Add reg-cris.c and reg-crisv32.c.
21533 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21534 reg-crisv32.o, and reg-crisv32.c to make rules.
21535 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21536 recognized targets.
21538 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21540 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21541 of sizeof (PTRACE_XFER_TYPE).
21542 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21544 2005-05-12 Orjan Friberg <orjanf@axis.com>
21546 * target.h (struct target_ops): Add insert_watchpoint,
21547 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21548 pointers for hardware watchpoint support.
21549 * linux-low.h (struct linux_target_ops): Ditto.
21550 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21551 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21552 to linux_target_ops.
21553 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21555 * server.c (main): Recognize 'Z' and 'z' packets.
21557 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21559 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21560 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21561 (the_low_target): Add new members.
21563 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21565 * proc-service.c (ps_lgetregs): Search all_processes instead of
21568 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21570 * server.c (start_inferior): Change return type to int.
21571 (attach_inferior): Change sigptr to int *.
21572 (handle_v_cont, handle_v_requests): Change signal to int *.
21573 (main): Change signal to int.
21575 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21577 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21578 * configure.srv: Add m32r*-*-linux*.
21579 * linux-m32r-low.c: New file.
21581 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21583 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21585 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21587 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21588 Take unsigned long arguments for PIDs.
21589 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21590 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21591 (wait_for_sigstop, linux_resume_one_process)
21592 (regsets_fetch_inferior_registers, linux_send_signal)
21593 (linux_read_auxv): Likewise. Update the types of variables holding
21594 PIDs. Update format string specifiers.
21595 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21596 * remote-utils.c (prepare_resume_reply): Likewise.
21597 * server.c (cont_thread, general_thread, step_thread)
21598 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21600 (handle_query): Update format specifiers.
21601 (handle_v_cont, main): Use strtoul for thread IDs.
21602 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21603 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21604 (general_thread, step_thread, thread_from_wait)
21605 (old_thread_from_wait): Update.
21606 * target.h (struct thread_resume): Use unsigned long for THREAD.
21607 (struct target_ops): Use unsigned long for arguments to attach and
21610 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21612 * acinclude.m4: Include bfd/bfd.m4 directly.
21613 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21614 <agriffis@toolchain.org>.
21615 * aclocal.m4, configure: Regenerated.
21617 2005-01-07 Andrew Cagney <cagney@gnu.org>
21619 * configure.ac: Rename configure.in, require autoconf 2.59.
21620 * configure: Re-generate.
21622 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21624 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21625 LIBS when finished.
21626 * aclocal.m4: Regenerated.
21627 * configure: Regenerated.
21629 2004-11-21 Andreas Schwab <schwab@suse.de>
21631 * linux-m68k-low.c (m68k_num_gregs): Define.
21632 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21633 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21634 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21635 (m68k_breakpoint_at): New. Add to the_low_target.
21637 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21638 srv_linux_thread_db to yes.
21640 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21642 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21643 (ARCH_SET_FS): Likewise.
21644 (ARCH_GET_FS): Likewise.
21645 (ARCH_GET_GS): Likewise.
21647 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21649 * linux-i386-low.c (ps_get_thread_area): New.
21650 * linux-x86-64-low.c (ps_get_thread_area): New.
21651 * linux-low.c: Include <sys/syscall.h>.
21652 (linux_kill_one_process): Don't kill the first thread here.
21653 (linux_kill): Kill the first thread here.
21654 (kill_lwp): New function.
21655 (send_sigstop, linux_send_signal): Use it.
21656 * proc-service.c: Clean up #ifdefs.
21657 (fpregset_info): Delete.
21658 (ps_lgetregs): Update and enable implementation.
21659 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21661 * remote-utils.c (struct sym_cache, symbol_cache): New.
21662 (input_interrupt): Print a clearer message.
21663 (async_io_enabled): New variable.
21664 (enable_async_io, disable_async_io): Use it. Update comments.
21665 (look_up_one_symbol): Use the symbol cache.
21666 * thread-db.c (thread_db_look_up_symbols): New function.
21667 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21669 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21671 * configure.in: Test for -rdynamic.
21672 * configure: Regenerated.
21673 * Makefile (INTERNAL_LDFLAGS): New.
21674 (gdbserver, gdbreplay): Use it.
21676 2004-09-02 Andrew Cagney <cagney@gnu.org>
21678 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21680 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21682 * linux-low.c (linux_wait): Clear all_processes list also.
21684 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21686 * linux-low.c: Include <errno.h>. Remove extern declaration of
21689 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21691 * gdbreplay.c, server.h, utils.c: Update copyright years.
21693 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21695 * server.c (main): Print child status or termination signal from
21696 variable 'signal', not 'sig'.
21698 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21700 * linux-low.c (linux_read_memory): Change return type to
21701 int. Check for and return error from ptrace().
21702 * target.c (read_inferior_memory): Change return type to int. Pass
21703 back return status from the_target->read_memory().
21704 * target.h (struct target_ops): Adapt *read_memory() prototype.
21706 (read_inferior_memory): Adapt prototype.
21707 * server.c (main): Return an error packet if
21708 read_inferior_memory() returns an error.
21710 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21712 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21713 Unify with other clean targets.
21715 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21717 * server.c (handle_v_cont): Call set_desired_inferior.
21719 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21721 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21723 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21725 * linux-low.c (linux_wait): Unblock async I/O.
21726 (linux_resume): Block and enable async I/O.
21727 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21728 * server.h (block_async_io, unblock_async_io): Add prototypes.
21730 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21732 * remote-utils.c (remote_open): Print a status notice after
21733 opening a TCP port.
21734 * server.c (attach_inferior): Print a status notice after
21737 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21739 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21741 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21743 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21745 * server.c, target.h: Update copyright years.
21747 2004-02-25 Roland McGrath <roland@redhat.com>
21749 * target.h (struct target_ops): New member `read_auxv'.
21750 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21751 * linux-low.c (linux_read_auxv): New function.
21752 (linux_target_ops): Initialize `read_auxv' member to that.
21754 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21756 Committed by Jim Blandy <jimb@redhat.com>.
21758 * linux-s390-low.c (s390_num_regs): Update.
21759 (s390_regmap): Remove control registers. Use __s390x__ predefine
21760 instead of GPR_SIZE to distiguish s390 and s390x targets.
21762 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21764 * linux-low.c: Update copyright year.
21765 (check_removed_breakpoint): Clear pending_is_breakpoint.
21766 (linux_set_resume_request, linux_queue_one_thread)
21767 (resume_status_pending_p): New functions.
21768 (linux_continue_one_thread): Use process->resume.
21769 (linux_resume): Only resume threads if there are no pending events.
21770 * linux-low.h (struct process_info): Add resume request
21773 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21775 * regcache.c (new_register_cache): Clear the allocated register
21776 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21778 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21780 * linux-low.c (linux_resume): Take a struct thread_resume *
21782 (linux_wait): Update call.
21783 (resume_ptr): New static variable.
21784 (linux_continue_one_thread): Renamed from
21785 linux_continue_one_process. Use resume_ptr.
21786 (linux_resume): Use linux_continue_one_thread.
21787 * server.c (handle_v_cont, handle_v_requests): New functions.
21788 (myresume): New function.
21789 (main): Handle 'v' case.
21790 * target.h (struct thread_resume): New type.
21791 (struct target_ops): Change argument of "resume" to struct
21793 (myresume): Delete macro.
21795 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21797 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21798 (uninstall): Support DESTDIR.
21800 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21802 * configure.srv: Add xscale*linux copy of arm*linux entry.
21804 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21806 * linux-arm-low.c (arm_reinsert_addr): New function.
21807 (the_low_target): Add arm_reinsert_addr.
21809 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21811 * mem-break.c: Remove whitespace at end of file.
21813 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21815 * configure.in: Check whether we need to prototype strerror.
21816 * server.h: Optionally prototype strerror.
21817 * gdbreplay.c (perror_with_name): Use strerror.
21818 * linux-low.c (linux_attach_lwp): Use strerror.
21819 * utils.c (perror_with_name): Use strerror.
21820 * config.in, configure: Regenerated.
21822 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21824 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21825 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21827 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21829 * Makefile.in (SFILES): Update.
21830 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21831 low-sun3.c: Remove files.
21833 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21835 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21836 (linux_detach_one_process, linux_detach): New functions.
21837 (linux_target_ops): Add linux_detach.
21838 * server.c (main): Handle 'D' packet.
21839 * target.h (struct target_ops): Add "detach" member.
21840 (detach_inferior): Define.
21842 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21844 From Kelley Cook <kelleycook@wideopenwest.com>:
21845 * configure.srv: Accept i[34567]86 variants.
21847 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21849 * linux-low.c (linux_wait_for_event): Correct comment typos.
21850 (linux_resume_one_process): Call check_removed_breakpoint.
21851 (linux_send_signal): New function.
21852 (linux_target_ops): Add linux_send_signal.
21853 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21855 * target.h (struct target_ops): Add send_signal.
21857 2003-05-29 Jim Blandy <jimb@redhat.com>
21859 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21860 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21861 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21862 away part of the register's value.
21864 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21866 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21867 (linux_wait_for_event, linux_init_signals): Likewise.
21869 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21871 * configure.in: Check for stdlib.h.
21872 * configure: Regenerated.
21873 * config.in: Regenerated.
21875 2003-01-04 Andreas Schwab <schwab@suse.de>
21877 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21879 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21881 * Makefile.in: Remove obsolete code.
21883 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21885 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21886 defined(PT_FPR0_HI).
21888 2002-11-17 Stuart Hughes <seh@zee2.com>
21890 * linux-arm-low.c (arm_num_regs): Increase.
21891 (arm_regmap): Include status register.
21893 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21895 * linux-low.c (register_addr): Remove incorrect -1 check.
21897 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21899 * linux-low.c (linux_create_inferior): Call setpgid. Return
21901 (unstopped_p, linux_signal_pid): Remove.
21902 (linux_target_ops): Remove linux_signal_pid.
21903 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21904 global instead of target method.
21905 * target.h (struct target_ops): Remove signal_pid. Update comment
21906 for create_inferior.
21907 * server.c (signal_pid): New variable.
21908 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21909 gdbserver. Set the child to be the foreground process group.
21910 (attach_inferior): Set signal_pid.
21912 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21914 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21916 2002-08-20 Jim Blandy <jimb@redhat.com>
21918 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21921 2002-08-01 Andrew Cagney <cagney@redhat.com>
21923 * Makefile.in: Make chill references obsolete.
21925 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21927 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21928 * configure: Regenerate.
21929 * config.in: Regenerate.
21931 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21933 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21934 (perror_with_name, remote_close, remote_open, expect, play): Static.
21936 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21938 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21939 byte offsets instead of an array of indexes.
21940 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21942 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21944 * regcache.c: Add comment.
21946 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21948 * thread-db.c: New file.
21949 * proc-service.c: New file.
21950 * acinclude.m4: New file.
21951 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21952 proc-service.o, and thread-db.o.
21953 (linux-low.o): Add USE_THREAD_DB.
21954 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21955 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21956 * aclocal.m4: Regenerated.
21957 * config.in: Regenerated.
21958 * configure: Regenerated.
21959 * configure.in: Check for proc_service.h, sys/procfs.h,
21960 thread_db.h, and linux/elf.h headrs.
21961 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21962 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21963 Check for -lthread_db and thread support.
21964 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21965 PowerPC, and SuperH.
21966 * i387-fp.c: Constify arguments.
21967 * i387-fp.h: Likewise.
21968 * inferiors.c: (struct thread_info): Renamed from
21969 `struct inferior_info'. Remove PID member. Use generic inferior
21970 list header. All uses updated.
21971 (inferiors, signal_pid): Removed.
21972 (all_threads): New variable.
21973 (get_thread): Define.
21974 (add_inferior_to_list): New function.
21975 (for_each_inferior): New function.
21976 (change_inferior_id): New function.
21977 (add_inferior): Removed.
21978 (remove_inferior): New function.
21979 (add_thread): New function.
21980 (free_one_thread): New function.
21981 (remove_thread): New function.
21982 (clear_inferiors): Use for_each_inferior and free_one_thread.
21983 (find_inferior): New function.
21984 (find_inferior_id): New function.
21985 (inferior_target_data): Update argument type.
21986 (set_inferior_target_data): Likewise.
21987 (inferior_regcache_data): Likewise.
21988 (set_inferior_regcache_data): Likewise.
21989 * linux-low.c (linux_bp_reinsert): Remove.
21990 (all_processes, stopping_threads, using_thrads)
21991 (struct pending_signals, debug_threads, pid_of): New.
21992 (inferior_pid): Replace with macro.
21993 (struct inferior_linux_data): Remove.
21994 (get_stop_pc, add_process): New functions.
21995 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21996 Use add_process and add_thread.
21997 (linux_attach_lwp): New function, based on old linux_attach. Use
21998 add_process and add_thread. Set stop_expected for new threads.
21999 (linux_attach): New function.
22000 (linux_kill_one_process): New function.
22001 (linux_kill): Kill all LWPs.
22002 (linux_thread_alive): Use find_inferior_id.
22003 (check_removed_breakpoints, status_pending_p): New functions.
22004 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22005 Update. Use WNOHANG. Wait for cloned processes also. Update process
22006 struct for the found process.
22007 (linux_wait_for_event): New function.
22008 (linux_wait): Use it. Support LWPs.
22009 (send_sigstop, wait_for_sigstop, stop_all_processes)
22010 (linux_resume_one_process, linux_continue_one_process): New functions.
22011 (linux_resume): Support LWPs.
22012 (REGISTER_RAW_SIZE): Remove.
22013 (fetch_register): Use register_size instead. Call supply_register.
22014 (usr_store_inferior_registers): Likewise. Call collect_register.
22015 Fix recursive case.
22016 (regsets_fetch_inferior_registers): Improve error message.
22017 (regsets_store_inferior_registers): Add debugging.
22018 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22019 (unstopped_p, linux_signal_pid): New functions.
22020 (linux_target_ops): Add linux_signal_pid.
22021 (linux_init_signals): New function.
22022 (initialize_low): Call it. Initialize using_threads.
22023 * regcache.c (inferior_regcache_data): Add valid
22025 (get_regcache): Fetch registers lazily. Add fetch argument
22026 and update all callers.
22027 (regcache_invalidate_one, regcache_invalidate): New
22029 (new_register_cache): Renamed from create_register_cache.
22030 Return the new regcache.
22031 (free_register_cache): Change argument to a void *.
22032 (registers_to_string, registers_from_string): Call get_regcache
22033 with fetch flag set.
22034 (register_data): Make static. Pass fetch flag to get_regcache.
22035 (supply_register): Call get_regcache with fetch flag clear.
22036 (collect_register): Call get_regcache with fetch flag set.
22037 (collect_register_as_string): New function.
22038 * regcache.h: Update.
22039 * remote-utils.c (putpkt): Flush after debug output and use
22041 Handle input interrupts while waiting for an ACK.
22042 (input_interrupt): Use signal_pid method.
22043 (getpkt): Flush after debug output and use stderr.
22044 (outreg): Use collect_register_as_string.
22045 (new_thread_notify, dead_thread_notify): New functions.
22046 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22047 and general_thread.
22048 (look_up_one_symbol): Flush after debug output.
22049 * server.c (step_thread, server_waiting): New variables.
22050 (start_inferior): Don't use signal_pid. Update call to mywait.
22051 (attach_inferior): Update call to mywait.
22052 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22053 (main): Don't fetch/store registers explicitly. Use
22054 set_desired_inferior. Support proposed ``Hs'' packet. Update
22056 * server.h: Update.
22057 (struct inferior_list, struct_inferior_list_entry): New.
22058 * target.c (set_desired_inferior): New.
22059 (write_inferior_memory): Constify.
22060 (mywait): New function.
22061 * target.h: Update.
22062 (struct target_ops): New signal_pid method.
22063 (mywait): Removed macro, added prototype.
22065 * linux-low.h (regset_func): Removed.
22066 (regset_fill_func, regset_store_func): New.
22067 (enum regset_type): New.
22068 (struct regset_info): Add type field. Use new operation types.
22069 (struct linux_target_ops): stop_pc renamed to get_pc.
22070 Add decr_pc_after_break and breakpoint_at.
22071 (get_process, get_thread_proess, get_process_thread)
22072 (strut process_info, all_processes, linux_attach_lwp)
22073 (thread_db_init): New.
22075 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22076 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22077 (the_low_target): Add new members.
22078 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22079 (i386_store_fpxregset): Constify.
22080 (target_regsets): Add new kind identifier.
22081 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22082 (i386_set_pc): Add debugging.
22083 (i386_breakpoint_at): New function.
22084 (the_low_target): Add new members.
22085 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22086 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22087 (mips_breakpoint_at): New.
22088 (the_low_target): Add new members.
22089 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22090 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22091 (the_low_target): Add new members.
22092 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22093 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22094 (the_low_target): Add new members.
22095 * linux-x86-64-low.c (target_regsets): Add new kind
22098 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22100 From Martin Pool <mbp@samba.org>:
22101 * server.c (gdbserver_usage): New function.
22104 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22106 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22107 stop_at -> stop_pc.
22109 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22111 * Makefile.in: Remove obsolete code.
22113 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22115 * linux-low.c (regsets_fetch_inferior_registers),
22116 (regsets_store_inferior_registers): Removed cast to int from
22118 * regcache.h: Added declaration of struct inferior_info.
22120 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22122 * inferiors.c (struct inferior_info): Add regcache_data.
22123 (add_inferior): Call create_register_cache.
22124 (clear_inferiors): Call free_register_cache.
22125 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22126 * regcache.c (struct inferior_regcache_data): New.
22127 (registers): Remove.
22128 (get_regcache): New function.
22129 (create_register_cache, free_register_cache): New functions.
22130 (set_register_cache): Don't initialize the register cache here.
22131 (registers_to_string, registers_from_string, register_data): Call
22133 * regcache.h: Add prototypes.
22134 * server.h: Likewise.
22136 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22138 * mem-break.c: New file.
22139 * mem-break.h: New file.
22140 * Makefile.in: Add mem-break.o rule; update server.h
22142 * inferiors.c (struct inferior_info): Add target_data
22144 (clear_inferiors): Free target_data member if set.
22145 (inferior_target_data, set_inferior_target_data): New functions.
22146 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22147 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22148 * linux-low.c (linux_bp_reinsert): New variable.
22149 (struct inferior_linux_data): New.
22150 (linux_create_inferior): Use set_inferior_target_data.
22151 (linux_attach): Likewise. Call add_inferior.
22152 (linux_wait_for_one_inferior): New function.
22153 (linux_wait): Call it.
22154 (linux_write_memory): Add const.
22155 (initialize_low): Call set_breakpoint_data.
22156 * linux-low.h (struct linux_target_ops): Add breakpoint
22158 * server.c (attach_inferior): Remove extra add_inferior
22160 * server.h: Include mem-break.h. Update inferior.c
22162 * target.c (read_inferior_memory)
22163 (write_inferior_memory): New functions.
22164 * target.h (read_inferior_memory)
22165 (write_inferior_memory): Change macros to prototypes.
22166 (struct target_ops): Update comments. Add const to write_memory
22169 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22171 * linux-low.c (usr_store_inferior_registers): Support
22172 registers which are allowed to fail to store.
22173 * linux-low.h (linux_target_ops): Likewise.
22174 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22175 (ppc_cannot_store_register): FPSCR may not be storable.
22177 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22179 * server.h: Include <string.h> if HAVE_STRING_H.
22180 * ChangeLog: Correct paths in last ChangeLog entry.
22182 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22184 * linux-low.h: Remove obsolete prototypes.
22185 (struct linux_target_ops): New.
22186 (extern the_low_target): New.
22187 * linux-low.c (num_regs, regmap): Remove declarations.
22188 (register_addr): Use the_low_target explicitly.
22189 (fetch_register): Likewise.
22190 (usr_fetch_inferior_registers): Likewise.
22191 (usr_store_inferior_registers): Likewise.
22192 * linux-arm-low.c (num_regs): Remove.
22193 (arm_num_regs): Define.
22194 (arm_regmap): Renamed from regmap, made static.
22195 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22197 (arm_cannot_store_register): Renamed from cannot_store_register,
22199 (the_low_target): New.
22200 * linux-i386-low.c (num_regs): Remove.
22201 (i386_num_regs): Define.
22202 (i386_regmap): Renamed from regmap, made static.
22203 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22205 (i386_cannot_store_register): Renamed from cannot_store_register,
22207 (the_low_target): New.
22208 * linux-ia64-low.c (num_regs): Remove.
22209 (ia64_num_regs): Define.
22210 (ia64_regmap): Renamed from regmap, made static.
22211 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22213 (ia64_cannot_store_register): Renamed from cannot_store_register,
22215 (the_low_target): New.
22216 * linux-m68k-low.c (num_regs): Remove.
22217 (m68k_num_regs): Define.
22218 (m68k_regmap): Renamed from regmap, made static.
22219 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22221 (m68k_cannot_store_register): Renamed from cannot_store_register,
22223 (the_low_target): New.
22224 * linux-mips-low.c (num_regs): Remove.
22225 (mips_num_regs): Define.
22226 (mips_regmap): Renamed from regmap, made static.
22227 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22229 (mips_cannot_store_register): Renamed from cannot_store_register,
22231 (the_low_target): New.
22232 * linux-ppc-low.c (num_regs): Remove.
22233 (ppc_num_regs): Define.
22234 (ppc_regmap): Renamed from regmap, made static.
22235 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22237 (ppc_cannot_store_register): Renamed from cannot_store_register,
22239 (the_low_target): New.
22240 * linux-s390-low.c (num_regs): Remove.
22241 (s390_num_regs): Define.
22242 (s390_regmap): Renamed from regmap, made static.
22243 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22245 (s390_cannot_store_register): Renamed from cannot_store_register,
22247 (the_low_target): New.
22248 * linux-sh-low.c (num_regs): Remove.
22249 (sh_num_regs): Define.
22250 (sh_regmap): Renamed from regmap, made static.
22251 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22253 (sh_cannot_store_register): Renamed from cannot_store_register,
22255 (the_low_target): New.
22256 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22257 (the_low_target): New.
22259 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22261 * Makefile.in: Add stamp-h target.
22262 * configure.in: Create stamp-h.
22263 * configure: Regenerated.
22265 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22267 * inferiors.c: New file.
22268 * target.c: New file.
22269 * target.h: New file.
22270 * Makefile.in: Add target.o and inferiors.o. Update
22272 * linux-low.c (inferior_pid): New static variable,
22273 moved from server.c.
22274 (linux_create_inferior): Renamed from create_inferior.
22275 Call add_inferior. Return 0 on success instead of a PID.
22276 (linux_attach): Renamed from myattach.
22277 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22278 (linux_thread_alive): Renamed from mythread_alive.
22279 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22281 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22282 (regsets_store_inferior_registers): Correct error message.
22283 Add missing ``return 0''.
22284 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22285 (linux_store_registers): Renamed from store_inferior_registers.
22286 (linux_read_memory): Renamed from read_inferior_memory.
22287 (linux_write_memory): Renamed from write_inferior_memory.
22288 (linux_target_ops): New structure.
22289 (initialize_low): Call set_target_ops ().
22290 * remote-utils.c (unhexify): New function.
22291 (hexify): New function.
22292 (input_interrupt): Send signals to ``signal_pid''.
22293 * server.c (inferior_pid): Remove.
22294 (start_inferior): Update create_inferior call.
22295 (attach_inferior): Call add_inferior.
22296 (handle_query): New function.
22297 (main): Call handle_query for `q' packets.
22298 * server.h: Include "target.h". Remove obsolete prototypes.
22299 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22301 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22303 * Makefile.in: Add WARN_CFLAGS. Update configury
22305 * configure.in: Check for <string.h>
22306 * configure: Regenerate.
22307 * config.in: Regenerate.
22308 * gdbreplay.c: Include needed system headers.
22309 (remote_open): Remove strchr prototype.
22310 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22311 * regcache.c (supply_register): Change buf argument to const void *.
22312 (supply_register_by_name): Likewise.
22313 (collect_register): Change buf argument to void *.
22314 (collect_register_by_name): Likewise.
22315 * regcache.h: Add missing prototypes.
22316 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22317 * server.c (handle_query): New function.
22318 (attached): New static variable, moved out of main.
22319 (main): Quiet longjmp clobber warnings.
22320 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22321 * utils.c (error): Remove NORETURN.