1 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
3 * win32-low.cc: Remove local wow64_process variable.
4 * win32-low.h: Remove local wow64_process variable.
6 2020-09-18 Tom Tromey <tromey@adacore.com>
8 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
9 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
10 (netbsd_process_target::wait): Change type of target_options.
11 * win32-low.h (class win32_process_target) <wait>: Update.
12 * win32-low.cc (win32_process_target::wait): Update.
13 * target.h (class process_stratum_target) <wait>: Update.
15 * target.cc (mywait, target_wait): Change type of "options".
16 * linux-low.h (class linux_process_target) <wait, wait_1>:
18 * linux-low.cc (linux_process_target::wait)
19 (linux_process_target::wait_1): Update.
21 2020-09-15 Tom Tromey <tromey@adacore.com>
23 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
24 (xmltarget_amd64_linux_no_xml): Now arrays.
26 2020-09-14 Tom Tromey <tromey@adacore.com>
28 * tracepoint.cc (eval_result_names): Now const.
29 * ax.cc (gdb_agent_op_names): Now const.
31 2020-09-10 Kamil Rytarowski <n54@gmx.com>
34 * netbsd-low.h: Likewise.
35 * netbsd-amd64-low.cc: Likewise.
36 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
37 "netbsd-amd64-low.cc".
38 * configure.srv: Add x86_64-*-netbsd*.
40 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
42 * server.cc (captured_main): Accept multiple `--selftest=`
43 options. Pass all `--selftest=` arguments to run_tests.
45 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
47 * configure, config.in: Regenerate.
49 2020-07-26 Eli Zaretskii <eliz@gnu.org>
51 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
52 When checking whether socklen_t type is defined, use ws2tcpip.h if
53 it is available and sys/socket.h isn't.
54 * configure: Regenerate.
55 * config.in: Regenerate.
57 2020-07-22 Pedro Alves <pedro@palves.net>
59 * inferiors.cc (switch_to_process): New, moved here from
60 thread-db.cc, and made extern.
61 * inferiors.h (switch_to_process): Declare.
62 * server.cc: Include "gdbsupport/scoped_restore.h".
63 (handle_qxfer_threads_proper): Now returns bool. Prepare to
64 access memory around target calls.
65 (handle_qxfer_threads): Handle errors.
66 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
68 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
70 * linux-low.cc (stopped_pids): Make static.
72 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
74 * tdesc.cc (allocate_target_description): Add header comment.
75 (target_desc_deleter::operator()): New function.
76 * tdesc.h (struct target_desc): Declare as final.
78 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
80 * server.cc (handle_query): Use std::vector of
81 std::string for `qsupported` vector. Use separate
83 * target.h (class process_stratum_target) <process_qsupported>:
84 Change parameters to array_view of const char *.
85 (target_process_qsupported): Remove `count` parameter.
86 * target.cc (process_stratum_target::process_qsupported): Change
87 parameters to array_view of const char *.
88 * linux-x86-low.cc (class x86_target) <process_qsupported>:
91 2020-06-29 Tom de Vries <tdevries@suse.de>
93 * ax.h: Include gdbsupport/debug_agent.h.
95 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
97 * tdesc.cc (struct tdesc_compatible_info): New struct.
98 (tdesc_compatible_info_list): New function.
99 (tdesc_compatible_info_arch_name): New function.
101 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
103 Use std::list to stop pending signal instead of manually-created
105 * linux-low.h: Include <list>.
106 (struct pending_signal): Move here from linux-low.cc.
107 (struct lwp_info) <pending_signals>
108 <pending_signals_to_report>: Update the type.
109 * linux-low.cc (struct pending_signals): Remove.
110 (linux_process_target::delete_lwp)
111 (linux_process_target::add_lwp)
112 (enqueue_one_deferred_signal)
113 (dequeue_one_deferred_signal)
114 (enqueue_pending_signal)
115 (linux_process_target::resume_one_lwp_throw)
116 (linux_process_target::thread_needs_step_over)
117 (linux_process_target::resume_one_thread)
118 (linux_process_target::proceed_one_lwp): Update the use of pending
121 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
123 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
126 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
128 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
129 * configure.srv: Remove mingw32ce cases.
130 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
131 * win32-low.h (to_back_slashes): Remove.
132 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
134 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
136 * Makefile.in (SFILES): linux-tile-low.cc.
137 * configure.srv: Remove tilegx case.
138 * linux-tile-low.cc: Remove.
140 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
142 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
143 * configure.srv: Remove m32r case.
144 * linux-m32r-low.cc: Remove.
146 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
148 * Makefile.in (SFILES): Remove linux-cris-low.c.
149 * configure.srv: Remove cris cases.
150 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
152 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
154 * Makefile.in (SFILES): Remove linux-bfin-low.c.
155 * configure.srv: Remove bfin case.
156 * linux-bfin-low.cc: Remove.
157 * linux-low.cc: Remove BFIN-conditional code.
159 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
161 * configure: Re-generate.
162 * configure.ac: Remove srv_qnx test.
163 * configure.srv: Remove nto case.
164 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
165 * remote-utils.c: Remove __QNX__-guarded code.
167 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
169 * configure: Re-generate.
170 * configure.ac: Remove srv_lynxos test.
171 * configure.srv: Remove lynxos cases.
172 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
175 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
177 * README: Fix a few outdated or incoherent things.
179 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
181 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
182 (win32_clear_inferiors): Use open_process_used.
183 (get_child_debug_event): Likewise.
185 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
188 * linux-low.cc (linux_process_target::create_inferior),
189 lynx-low.cc (lynx_process_target::create_inferior),
190 win32-low.cc (win32_process_target::create_inferior): Use
191 construct_inferior_arguments instead of stringify_argv
192 to get string representation which properly escapes
194 * server.cc (handle_v_run): Just pass empty program arg
195 as such, since any further processing is now handled via
196 construct_inferior_arguments.
198 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
200 * nto-low.cc (nto_process_target::create_inferior): Pass
201 argv to spawnp function as char **.
203 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
205 * server.cc (captured_main), (handle_v_run): No longer
206 insert extra NULL element to args vector.
208 2020-05-23 Pedro Alves <palves@redhat.com>
210 * gdb-safe-ctype.h: New.
212 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
214 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
215 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
216 (ia64_target::low_breakpoint_at): Ditto.
218 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
220 * win32-i386-low.cc (i386_supports_z_point_type): Handle
221 Z_PACKET_HW_BP z_type.
222 (i386_insert_point): Handle raw_bkpt_type type.
223 (i386_remove_point): Likewise.
225 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
227 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
229 * win32-arm-low.cc (arm_num_regs): New function.
230 (struct win32_target_ops): Use arm_num_regs.
231 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
233 (i386_get_thread_context): Likewise.
234 (i386_prepare_to_resume): Likewise.
235 (i386_thread_added): Likewise.
236 (i386_single_step): Likewise.
237 (i386_fetch_inferior_register): Likewise.
238 (i386_store_inferior_register): Likewise.
239 (i386_arch_setup): Likewise.
240 (i386_win32_num_regs): New function.
241 (struct win32_target_ops): Use i386_win32_num_regs.
242 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
244 (win32_require_context): Likewise.
245 (child_add_thread): Likewise.
246 (do_initial_child_stuff): Likewise.
247 (continue_one_thread): Likewise.
248 (win32_process_target::resume): Likewise.
249 (load_psapi): Likewise.
250 (win32_add_all_dlls): Likewise.
251 (maybe_adjust_pc): Likewise.
252 (win32_process_target::qxfer_siginfo): Likewise.
253 (initialize_low): Likewise.
254 * win32-low.h (struct win32_target_ops): Change num_regs to
257 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
259 * configure.ac: Remove check for fs_base/gs_base in
261 * configure: Re-generate.
262 * config.in: Re-generate.
263 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
264 x86_store_gregset): Adjust.
266 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
268 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
271 2020-04-16 Tom Tromey <tromey@adacore.com>
273 * win32-low.cc (windows_nat::handle_access_violation): New
276 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
278 * win32-low.cc (get_child_debug_event): Fix format string warning.
280 2020-04-13 Tom Tromey <tom@tromey.com>
282 * server.h (gdb_fildes_t): Remove typedef.
283 * remote-utils.c (remote_desc, list_desc): Now int.
284 (INVALID_DESCRIPTOR): Remove.
285 (gdb_connected, remote_close)
286 (check_remote_input_interrupt_request): Update.
287 * utils.h (pfildes): Don't declare.
288 * utils.c (pfildes): Remove.
290 2020-04-13 Tom Tromey <tom@tromey.com>
292 * server.h (handle_serial_event, handle_target_event): Update.
293 * server.c: Don't call initialize_event_loop.
294 (keep_processing_events): New global.
295 (handle_serial_event): Return void. Set keep_processing_events.
296 (handle_target_event): Return void.
297 (start_event_loop): Move from event-loop.c. Rewrite.
298 * remote-utils.c (handle_accept_event): Return void.
299 (reset_readchar): Use delete_timer.
300 (process_remaining): Return void.
301 (reschedule): Use create_timer.
302 * event-loop.h: Remove.
303 * event-loop.cc: Remove.
304 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
306 2020-04-13 Tom Tromey <tom@tromey.com>
308 * server.c (invoke_async_signal_handlers)
309 (check_async_event_handlers, flush_streams, gdb_select): New
312 2020-04-13 Tom Tromey <tom@tromey.com>
314 * configure: Rebuild.
315 * config.in: Rebuild.
317 2020-04-08 Tom Tromey <tromey@adacore.com>
320 * win32-low.c (child_continue): Call matching_pending_stop.
321 (get_child_debug_event): Call fetch_pending_stop. Push pending
324 2020-04-08 Tom Tromey <tromey@adacore.com>
326 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
327 (win32_process_target::supports_stopped_by_sw_breakpoint):
329 * win32-low.c (win32_supports_z_point_type): Always handle
331 (win32_insert_point): Call insert_memory_breakpoint when needed.
332 (win32_remove_point): Call remove_memory_breakpoint when needed.
333 (win32_process_target::stopped_by_sw_breakpoint)
334 (win32_process_target::supports_stopped_by_sw_breakpoint): New
336 (win32_target_ops): Update.
337 (maybe_adjust_pc): New function.
338 (win32_wait): Call maybe_adjust_pc.
340 2020-04-08 Tom Tromey <tromey@adacore.com>
342 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
344 * win32-i386-low.c (the_low_target): Update.
345 * win32-arm-low.c (the_low_target): Update.
347 2020-04-08 Tom Tromey <tromey@adacore.com>
349 * win32-low.h (win32_process_target::read_pc)
350 (win32_process_target::write_pc): Declare.
351 * win32-low.c (win32_process_target::read_pc)
352 (win32_process_target::write_pc): New methods.
353 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
355 (the_low_target): Update.
356 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
358 (the_low_target): Update.
360 2020-04-08 Tom Tromey <tromey@adacore.com>
362 * win32-low.c (win32_kill, get_child_debug_event): Use
363 wait_for_debug_event.
365 2020-04-08 Tom Tromey <tromey@adacore.com>
367 * win32-low.c (child_continue): Call continue_last_debug_event.
369 2020-04-08 Tom Tromey <tromey@adacore.com>
371 * win32-low.c (handle_exception): Remove.
372 (windows_nat::handle_ms_vc_exception): New function.
373 (get_child_debug_event): Add "continue_status" parameter.
375 (win32_wait): Update.
377 2020-04-08 Tom Tromey <tromey@adacore.com>
379 * win32-low.c (windows_nat::handle_load_dll): Rename from
380 handle_load_dll. No longer static.
381 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
384 2020-04-08 Tom Tromey <tromey@adacore.com>
386 * win32-low.c (handle_output_debug_string): Add parameter. Change
388 (win32_kill, get_child_debug_event): Update.
390 2020-04-08 Tom Tromey <tromey@adacore.com>
392 * win32-low.c (current_process_handle, current_process_id)
393 (main_thread_id, last_sig, current_event, siginfo_er): Move to
396 2020-04-08 Tom Tromey <tromey@adacore.com>
398 * win32-low.c (get_image_name): Remove.
399 (handle_load_dll): Update.
401 2020-04-08 Tom Tromey <tromey@adacore.com>
403 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
404 No longer static. Change parameters.
405 (child_add_thread, child_fetch_inferior_registers)
406 (child_store_inferior_registers, win32_resume)
407 (win32_get_tib_address): Update.
409 2020-04-08 Tom Tromey <tromey@adacore.com>
411 * win32-low.h (struct win32_target_ops): Use qualified names where
413 * win32-i386-low.c: Add "using namespace".
414 * win32-low.c: Add "using namespace".
415 * win32-arm-low.c: Add "using namespace".
417 2020-04-08 Tom Tromey <tromey@adacore.com>
419 * win32-low.c (delete_thread_info): Don't call CloseHandle.
421 2020-04-08 Tom Tromey <tromey@adacore.com>
423 * win32-low.c (win32_require_context, suspend_one_thread): Use
424 windows_thread_info::suspend.
425 (continue_one_thread): Use windows_thread_info::resume.
426 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
428 2020-04-08 Tom Tromey <tromey@adacore.com>
430 * win32-i386-low.c (update_debug_registers)
431 (i386_prepare_to_resume, i386_thread_added): Update.
433 2020-04-08 Tom Tromey <tromey@adacore.com>
435 * win32-low.c (child_add_thread): Use new.
436 (delete_thread_info): Use delete.
438 2020-04-08 Tom Tromey <tromey@adacore.com>
440 * win32-low.h (struct windows_thread_info): Remove.
442 2020-04-08 Tom Tromey <tromey@adacore.com>
444 * win32-low.h (struct windows_thread_info): Rename from
445 win32_thread_info. Remove typedef.
446 (struct win32_target_ops, win32_require_context): Update.
447 * win32-low.c (win32_get_thread_context)
448 (win32_set_thread_context, win32_prepare_to_resume)
449 (win32_require_context, thread_rec, child_add_thread)
450 (delete_thread_info, continue_one_thread)
451 (child_fetch_inferior_registers, child_store_inferior_registers)
452 (win32_resume, suspend_one_thread, win32_get_tib_address):
454 * win32-i386-low.c (update_debug_registers)
455 (win32_get_current_dr, i386_get_thread_context)
456 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
457 (i386_fetch_inferior_register, i386_store_inferior_register):
459 * win32-arm-low.c (arm_get_thread_context)
460 (arm_fetch_inferior_register, arm_store_inferior_register):
463 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
465 * linux-low.h (struct linux_target_ops): Remove.
466 (the_low_target): Remove.
467 * linux-x86-low.cc (the_low_target): Remove.
468 * linux-aarch64-low.cc (the_low_target): Ditto.
469 * linux-arm-low.cc (the_low_target): Ditto.
470 * linux-bfin-low.cc (the_low_target): Ditto.
471 * linux-cris-low.cc (the_low_target): Ditto.
472 * linux-crisv32-low.cc (the_low_target): Ditto.
473 * linux-ia64-low.cc (the_low_target): Ditto.
474 * linux-m32r-low.cc (the_low_target): Ditto.
475 * linux-m68k-low.cc (the_low_target): Ditto.
476 * linux-mips-low.cc (the_low_target): Ditto.
477 * linux-nios2-low.cc (the_low_target): Ditto.
478 * linux-ppc-low.cc (the_low_target): Ditto.
479 * linux-riscv-low.cc (the_low_target): Ditto.
480 * linux-s390-low.cc (the_low_target): Ditto.
481 * linux-sh-low.cc (the_low_target): Ditto.
482 * linux-sparc-low.cc (the_low_target): Ditto.
483 * linux-tic6x-low.cc (the_low_target): Ditto.
484 * linux-tile-low.cc (the_low_target): Ditto.
485 * linux-xtensa-low.cc (the_low_target): Ditto.
487 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
489 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
490 linux target define the op by overriding the declaration in
491 process_stratum_target.
493 * linux-low.h (struct linux_target_ops): Remove the op.
494 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
495 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
496 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
497 (x86_get_ipa_tdesc_idx): Turn into...
498 (x86_target::get_ipa_tdesc_idx): ...this.
499 (the_low_target): Remove the op field.
500 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
501 (ppc_get_ipa_tdesc_idx): Turn into...
502 (ppc_target::get_ipa_tdesc_idx): ...this.
503 (the_low_target): Remove the op field.
504 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
505 (s390_get_ipa_tdesc_idx): Turn into...
506 (s390_target::get_ipa_tdesc_idx): ...this.
507 (the_low_target): Remove the op field.
509 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
511 Turn the 'get_syscall_trapinfo' linux target op into a method
512 of process_stratum_target.
514 * linux-low.h (struct linux_target_ops): Remove the op.
515 (class linux_process_target) <get_syscall_trapinfo>
516 <gdb_catch_this_syscall>
517 <low_supports_catch_syscall>
518 <low_get_syscall_trapinfo>: Declare.
519 * linux-low.cc (get_syscall_trapinfo): Turn into...
520 (linux_process_target::get_syscall_trapinfo): ...this.
521 (linux_process_target::low_get_syscall_trapinfo): Define.
522 (gdb_catch_this_syscall_p): Turn into...
523 (linux_process_target::gdb_catch_this_syscall): ...this.
524 (linux_process_target::low_supports_catch_syscall): Define.
526 Update the callers below.
528 (linux_process_target::wait_1)
529 (linux_process_target::supports_catch_syscall)
531 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
532 <low_get_syscall_trapinfo>: Declare.
533 (x86_target::low_supports_catch_syscall): Define.
534 (x86_get_syscall_trapinfo): Turn into...
535 (x86_target::low_get_syscall_trapinfo): ...this.
536 (the_low_target): Remove the op field.
537 * linux-aarch64-low.cc (class aarch64_target)
538 <low_supports_catch_syscall>
539 <low_get_syscall_trapinfo>: Declare.
540 (aarch64_target::low_supports_catch_syscall): Define.
541 (aarch64_get_syscall_trapinfo): Turn into...
542 (aarch64_target::low_get_syscall_trapinfo): ...this.
543 (the_low_target): Remove the op field.
544 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
545 <low_get_syscall_trapinfo>: Declare.
546 (arm_target::low_supports_catch_syscall): Define.
547 (arm_get_syscall_trapinfo): Turn into...
548 (arm_target::low_get_syscall_trapinfo): ...this.
549 (the_low_target): Remove the op field.
550 * linux-ppc-low.cc (the_low_target): Remove the op field.
551 * linux-s390-low.cc (the_low_target): Remove the op field.
553 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
555 Remove the 'supports_hardware_single_step' linux target op and
556 override the process_stratum_target's op definition in
557 linux_process_target to return true.
559 * linux-low.h (struct linux_target_ops): Remove the op.
560 (class linux_process_target) <finish_step_over>
561 <maybe_hw_step>: Declare.
562 * linux-low.cc (can_hardware_single_step): Remove.
563 (maybe_hw_step): Turn into...
564 (linux_process_target::maybe_hw_step): ...this.
565 (finish_step_over): Turn into...
566 (linux_process_target::finish_step_over): ...this.
567 (linux_process_target::supports_hardware_single_step): Update
570 Update the callers below.
572 (linux_process_target::single_step)
573 (linux_process_target::resume_one_lwp_throw)
575 * linux-arm-low.cc (class arm_target)
576 <supports_hardware_single_step>: Declare.
577 (arm_supports_hardware_single_step): Turn into...
578 (arm_target::supports_hardware_single_step): ...this.
579 (the_low_target): Remove the op field.
580 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
581 (the_low_target): Remove the op field.
582 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
584 (the_low_target): Remove the op field.
585 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
586 (the_low_target): Remove the op field.
587 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
588 (the_low_target): Remove the op field.
589 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
590 (the_low_target): Remove the op field.
591 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
592 (the_low_target): Remove the op field.
593 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
594 (the_low_target): Remove the op field.
595 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
596 (the_low_target): Remove the op field.
597 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
598 (the_low_target): Remove the op field.
599 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
600 (the_low_target): Remove the op field.
601 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
602 (the_low_target): Remove the op field.
603 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
605 (the_low_target): Remove the op field.
607 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
609 Turn the 'supports_range_stepping' linux target op into a method
610 of linux_process_target.
612 * linux-low.h (struct linux_target_ops): Remove the op.
613 (class linux_process_target) <low_supports_range_stepping>: Declare.
614 * linux-low.cc (linux_process_target::low_supports_range_stepping):
616 (linux_process_target::supports_range_stepping): Update the call
618 * linux-x86-low.cc (class x86_target)
619 <low_supports_range_stepping>: Declare.
620 (x86_supports_range_stepping): Turn into...
621 (x86_target::low_supports_range_stepping): ...this.
622 (the_low_target): Remove the op field.
623 * linux-aarch64-low.cc (class aarch64_target)
624 <low_supports_range_stepping>: Declare.
625 (aarch64_supports_range_stepping): Turn into...
626 (aarch64_target::low_supports_range_stepping): ...this.
627 (the_low_target): Remove the op field.
628 * linux-arm-low.cc (the_low_target): Remove the op field.
629 * linux-bfin-low.cc (the_low_target): Ditto.
630 * linux-crisv32-low.cc (the_low_target): Ditto.
631 * linux-m32r-low.cc (the_low_target): Ditto.
632 * linux-m68k-low.cc (the_low_target): Ditto.
633 * linux-ppc-low.cc (the_low_target): Ditto.
634 * linux-s390-low.cc (the_low_target): Ditto.
635 * linux-sh-low.cc (the_low_target): Ditto.
636 * linux-tic6x-low.cc (the_low_target): Ditto.
637 * linux-tile-low.cc (the_low_target): Ditto.
638 * linux-xtensa-low.cc (the_low_target): Ditto.
640 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
642 Remove the 'emit_ops' linux target ops and let the concrete
643 linux target define the op by overriding the declaration of
644 process_stratum_target.
646 * linux-low.h (struct linux_target_ops): Remove the op.
647 (class linux_process_target) <emit_ops>: Remove.
648 * linux-low.cc (linux_process_target::emit_ops): Remove.
649 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
650 (x86_emit_ops): Turn into...
651 (x86_target::emit_ops): ...this.
652 (the_low_target): Remove the op field.
653 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
654 (aarch64_emit_ops): Turn into...
655 (aarch64_target::emit_ops): ...this.
656 (the_low_target): Remove the op field.
657 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
658 (ppc_emit_ops): Turn into...
659 (ppc_target::emit_ops): ...this.
660 (the_low_target): Remove the op field.
661 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
662 (s390_emit_ops): Turn into...
663 (s390_target::emit_ops): ...this.
664 (the_low_target): Remove the op field.
665 * linux-arm-low.cc (the_low_target): Remove the op field.
666 * linux-bfin-low.cc (the_low_target): Ditto.
667 * linux-crisv32-low.cc (the_low_target): Ditto.
668 * linux-m32r-low.cc (the_low_target): Ditto.
669 * linux-m68k-low.cc (the_low_target): Ditto.
670 * linux-sh-low.cc (the_low_target): Ditto.
671 * linux-tic6x-low.cc (the_low_target): Ditto.
672 * linux-tile-low.cc (the_low_target): Ditto.
673 * linux-xtensa-low.cc (the_low_target): Ditto.
675 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
677 Remove the 'install_fast_tracepoint_jump_pad' and
678 'get_min_fast_tracepoint_insn_len' linux target ops to let the
679 concrete linux target define the ops by overriding the declarations
680 of process_stratum_target.
682 * linux-low.h (struct linux_target_ops): Remove the ops.
683 (class linux_process_target) <supports_fast_tracepoints>
684 <install_fast_tracepoint_jump_pad>
685 <get_min_fast_tracepoint_insn_len>: Remove.
686 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
687 (linux_process_target::install_fast_tracepoint_jump_pad)
688 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
689 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
690 <install_fast_tracepoint_jump_pad>
691 <get_min_fast_tracepoint_insn_len>: Declare.
692 (x86_target::supports_fast_tracepoints): Define.
693 (x86_install_fast_tracepoint_jump_pad): Turn into...
694 (x86_target::install_fast_tracepoint_jump_pad): ...this.
695 (x86_get_min_fast_tracepoint_insn_len): Turn into...
696 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
697 (the_low_target): Remove the op fields.
698 * linux-aarch64-low.cc (class aarch64_target)
699 <supports_fast_tracepoints>
700 <install_fast_tracepoint_jump_pad>
701 <get_min_fast_tracepoint_insn_len>: Declare.
702 (aarch64_target::supports_fast_tracepoints): Define.
703 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
704 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
705 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
706 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
707 (the_low_target): Remove the op fields.
708 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
709 <install_fast_tracepoint_jump_pad>
710 <get_min_fast_tracepoint_insn_len>: Declare.
711 (ppc_target::supports_fast_tracepoints): Define.
712 (ppc_install_fast_tracepoint_jump_pad): Turn into...
713 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
714 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
715 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
716 (the_low_target): Remove the op fields.
717 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
718 <install_fast_tracepoint_jump_pad>
719 <get_min_fast_tracepoint_insn_len>: Declare.
720 (s390_target::supports_fast_tracepoints): Define.
721 (s390_install_fast_tracepoint_jump_pad): Turn into...
722 (s390_target::install_fast_tracepoint_jump_pad): ...this.
723 (s390_get_min_fast_tracepoint_insn_len): Turn into...
724 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
725 (the_low_target): Remove the op fields.
726 * linux-arm-low.cc (the_low_target): Remove the op fields.
727 * linux-bfin-low.cc (the_low_target): Ditto.
728 * linux-crisv32-low.cc (the_low_target): Ditto.
729 * linux-m32r-low.cc (the_low_target): Ditto.
730 * linux-m68k-low.cc (the_low_target): Ditto.
731 * linux-sh-low.cc (the_low_target): Ditto.
732 * linux-tic6x-low.cc (the_low_target): Ditto.
733 * linux-tile-low.cc (the_low_target): Ditto.
734 * linux-xtensa-low.cc (the_low_target): Ditto.
736 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
738 Turn the 'get_thread_area' linux target op into a method of
739 process_stratum_target.
741 * linux-low.h (struct linux_target_ops): Remove the op.
742 (class linux_process_target) <stuck_in_jump_pad>
743 <linux_fast_tracepoint_collecting>
744 <low_get_thread_area>: Declare.
745 * linux-low.cc (supports_fast_tracepoints): Remove.
746 (linux_fast_tracepoint_collecting): Turn into...
747 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
748 (linux_process_target::low_get_thread_area): Define.
749 (stuck_in_jump_pad_callback): Turn into...
750 (linux_process_target::stuck_in_jump_pad): ...this.
752 Update the caller below.
754 (linux_process_target::stabilize_threads)
756 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
758 (x86_get_thread_area): Turn into...
759 (x86_target::low_get_thread_area): ...this.
760 (the_low_target): Remove the op field.
761 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
763 (aarch64_get_thread_area): Turn into...
764 (aarch64_target::low_get_thread_area): ...this.
765 (the_low_target): Remove the op field.
766 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
768 (ppc_get_thread_area): Turn into...
769 (ppc_target::low_get_thread_area): ...this.
770 (the_low_target): Remove the op field.
771 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
773 (s390_get_thread_area): Turn into...
774 (s390_target::low_get_thread_area): ...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 Remote the 'supports_tracepoints' linux target op and let the
789 concrete linux target define it by overriding the op declared in
790 process_stratum_target.
792 * linux-low.h (struct linux_target_ops): Remove the op.
793 (class linux_process_target) <supports_tracepoints>: Remove.
794 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
795 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
797 (x86_supports_tracepoints): Turn into...
798 (x86_target::supports_tracepoints): ...this.
799 (the_low_target): Remove the op field.
800 * linux-aarch64-low.cc (class aarch64_target)
801 <supports_tracepoints>: Declare.
802 (aarch64_supports_tracepoints): Turn into...
803 (aarch64_target::supports_tracepoints): ...this.
804 (the_low_target): Remove the op field.
805 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
807 (ppc_supports_tracepoints): Turn into...
808 (ppc_target::supports_tracepoints): ...this.
809 (the_low_target): Remove the op field.
810 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
812 (s390_supports_tracepoints): Turn into...
813 (s390_target::supports_tracepoints): ...this.
814 (the_low_target): Remove the op field.
815 * linux-arm-low.cc (the_low_target): Remove the op field.
816 * linux-bfin-low.cc (the_low_target): Ditto.
817 * linux-crisv32-low.cc (the_low_target): Ditto.
818 * linux-m32r-low.cc (the_low_target): Ditto.
819 * linux-m68k-low.cc (the_low_target): Ditto.
820 * linux-sh-low.cc (the_low_target): Ditto.
821 * linux-tic6x-low.cc (the_low_target): Ditto.
822 * linux-tile-low.cc (the_low_target): Ditto.
823 * linux-xtensa-low.cc (the_low_target): Ditto.
825 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
827 Remove the 'process_qsupported' linux target op and let a concrete
828 linux target define the op by overriding the op declaration in
829 process_stratum_target.
831 * linux-low.h (struct linux_target_ops): Remove the op.
832 (class linux_process_target) <process_qsupported>: Remove.
833 * linux-low.cc (linux_process_target::process_qsupported): Remove.
834 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
835 (x86_linux_process_qsupported): Turn into...
836 (x86_target::process_qsupported): ...this.
837 (the_low_target): Remove the op field.
838 * linux-aarch64-low.cc (the_low_target): Remove the op
840 * linux-arm-low.cc (the_low_target): Ditto.
841 * linux-bfin-low.cc (the_low_target): Ditto.
842 * linux-crisv32-low.cc (the_low_target): Ditto.
843 * linux-m32r-low.cc (the_low_target): Ditto.
844 * linux-m68k-low.cc (the_low_target): Ditto.
845 * linux-ppc-low.cc (the_low_target): Ditto.
846 * linux-s390-low.cc (the_low_target): Ditto.
847 * linux-sh-low.cc (the_low_target): Ditto.
848 * linux-tic6x-low.cc (the_low_target): Ditto.
849 * linux-tile-low.cc (the_low_target): Ditto.
850 * linux-xtensa-low.cc (the_low_target): Ditto.
852 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
854 Turn the 'prepare_to_resume' linux target op into a method of
855 linux_process_target.
857 * linux-low.h (struct linux_target_ops): Remove the op.
858 (class linux_process_target) <low_prepare_to_resume>: Declare.
859 * linux-low.cc (linux_process_target::low_prepare_to_resume):
862 Update the callers below:
864 (linux_process_target::resume_one_lwp_throw)
865 (linux_process_target::low_prepare_to_resume)
867 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
869 (x86_target::low_prepare_to_resume): Define.
870 (the_low_target): Remove the op field.
871 * linux-aarch64-low.cc (class aarch64_target)
872 <low_prepare_to_resume>: Declare.
873 (aarch64_target::low_prepare_to_resume): Define.
874 (the_low_target): Remove the op field.
875 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
877 (arm_prepare_to_resume): Turn into...
878 (arm_target::low_prepare_to_resume): ...this.
879 (the_low_target): Remove the op field.
880 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
882 (mips_linux_prepare_to_resume): Turn into...
883 (mips_target::low_prepare_to_resume): ...this.
884 (the_low_target): Remove the op field.
885 * linux-bfin-low.cc (the_low_target): Remove the op field.
886 * linux-crisv32-low.cc (the_low_target): Ditto.
887 * linux-m32r-low.cc (the_low_target): Ditto.
888 * linux-m68k-low.cc (the_low_target): Ditto.
889 * linux-ppc-low.cc (the_low_target): Ditto.
890 * linux-s390-low.cc (the_low_target): Ditto.
891 * linux-sh-low.cc (the_low_target): Ditto.
892 * linux-tic6x-low.cc (the_low_target): Ditto.
893 * linux-tile-low.cc (the_low_target): Ditto.
894 * linux-xtensa-low.cc (the_low_target): Ditto.
896 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
898 Turn the 'new_process', 'delete_process', 'new_thread',
899 'delete_thread', and 'new_fork' linux target ops into methods
900 of linux_process_target.
902 * linux-low.h (struct linux_target_ops): Remove the ops.
903 (class linux_process_target) <add_linux_process>
908 <check_zombie_leaders>
914 <low_new_fork>: Declare.
915 * linux-low.cc (delete_lwp): Turn into...
916 (linux_process_target::delete_lwp): ...this.
917 (linux_process_target::low_delete_thread): Define.
918 (linux_add_process): Turn into...
919 (linux_process_target::add_linux_process): ...this.
920 (linux_process_target::low_new_process): Define.
921 (linux_process_target::low_delete_process): Define.
922 (linux_process_target::low_new_fork): Define.
923 (add_lwp): Turn into...
924 (linux_process_target::add_lwp): ...this.
925 (linux_process_target::low_new_thread): Define.
926 (linux_attach_lwp): Turn into...
927 (linux_process_target::attach_lwp): ...this.
928 (linux_detach_one_lwp): Turn into...
929 (linux_process_target::detach_one_lwp): ...this.
930 (linux_detach_lwp_callback): Remove and inline...
931 (linux_process_target::detach): ...here.
932 (check_zombie_leaders): Turn into...
933 (linux_process_target::check_zombie_leaders): ...this.
934 (filter_exit_event): Turn into...
935 (linux_process_target::filter_exit_event): ...this.
937 Update the callers below.
939 (linux_process_target::handle_extended_wait)
940 (linux_process_target::create_inferior)
941 (attach_proc_task_lwp_callback)
942 (linux_process_target::attach)
943 (linux_process_target::detach)
944 (linux_process_target::mourn)
945 * thread-db.cc (attach_thread)
947 * linux-x86-low.cc (class x86_target) <low_new_process>
951 <low_new_fork>: Declare.
952 (x86_linux_new_process): Turn into...
953 (x86_target::low_new_process): ...this.
954 (x86_linux_delete_process): Turn into...
955 (x86_target::low_delete_process): ...this.
956 (x86_target::low_new_thread): Define.
957 (x86_target::low_delete_thread): Define.
958 (x86_linux_new_fork): Turn into...
959 (x86_target::low_new_fork): ...this.
960 (the_low_target): Remove the op fields.
961 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
965 <low_new_fork>: Declare.
966 (aarch64_linux_new_process): Turn into...
967 (aarch64_target::low_new_process): ...this.
968 (aarch64_linux_delete_process): Turn into...
969 (aarch64_target::low_delete_process): ...this.
970 (aarch64_target::low_new_thread): Define.
971 (aarch64_target::low_delete_thread): Define.
972 (aarch64_linux_new_fork): Turn into...
973 (aarch64_target::low_new_fork): ...this.
974 (the_low_target): Remove the op fields.
975 * linux-arm-low.cc (class arm_target) <low_new_process>
979 <low_new_fork>: Declare.
980 (arm_new_process): Turn into...
981 (arm_target::low_new_process): ...this.
982 (arm_delete_process): Turn into...
983 (arm_target::low_delete_process): ...this.
984 (arm_new_thread): Turn into...
985 (arm_target::low_new_thread): ...this.
986 (arm_delete_thread): Turn into...
987 (arm_target::low_delete_thread): ...this.
988 (arm_new_fork): Turn into...
989 (arm_target::low_new_fork): ...this.
990 (the_low_target): Remove the op fields.
991 * linux-mips-low.cc (class mips_target) <low_new_process>
995 <low_new_fork>: Declare.
996 (mips_linux_new_process): Turn into...
997 (mips_target::low_new_process): ...this.
998 (mips_linux_delete_process): Turn into...
999 (mips_target::low_delete_process): ...this.
1000 (mips_linux_new_thread): Turn into...
1001 (mips_target::low_new_thread): ...this.
1002 (mips_linux_delete_thread): Turn into...
1003 (mips_target::low_delete_thread): ...this.
1004 (mips_linux_new_fork): Turn into...
1005 (mips_target::low_new_fork): ...this.
1006 (the_low_target): Remove the op fields.
1007 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1008 * linux-crisv32-low.cc (the_low_target): Ditto.
1009 * linux-m32r-low.cc (the_low_target): Ditto.
1010 * linux-m68k-low.cc (the_low_target): Ditto.
1011 * linux-ppc-low.cc (the_low_target): Ditto.
1012 * linux-s390-low.cc (the_low_target): Ditto.
1013 * linux-sh-low.cc (the_low_target): Ditto.
1014 * linux-tic6x-low.cc (the_low_target): Ditto.
1015 * linux-tile-low.cc (the_low_target): Ditto.
1016 * linux-xtensa-low.cc (the_low_target): Ditto.
1018 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1020 Turn the 'siginfo_fixup' linux target op into a method of
1021 linux_process_target.
1023 * linux-low.h (struct linux_target_ops): Remove the op.
1024 (class linux_process_target) <siginfo_fixup>
1025 <low_siginfo_fixup>: Declare.
1026 * linux-low.cc (siginfo_fixup): Turn into...
1027 (linux_process_target::siginfo_fixup): ...this.
1028 (linux_process_target::low_siginfo_fixup): Define.
1029 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1030 (x86_siginfo_fixup): Turn into...
1031 (x86_target::low_siginfo_fixup): ...this.
1032 (the_low_target): Remove the op field.
1033 * linux-aarch64-low.cc (class aarch64_target):
1034 <low_siginfo_fixup>: Declare.
1035 (aarch64_linux_siginfo_fixup): Turn into...
1036 (aarch64_target::low_siginfo_fixup): ...this.
1037 (the_low_target): Remove the op field.
1038 * linux-arm-low.cc (the_low_target): Remove the op field.
1039 * linux-bfin-low.cc (the_low_target): Ditto.
1040 * linux-crisv32-low.cc (the_low_target): Ditto.
1041 * linux-m32r-low.cc (the_low_target): Ditto.
1042 * linux-m68k-low.cc (the_low_target): Ditto.
1043 * linux-mips-low.cc (the_low_target): Ditto.
1044 * linux-ppc-low.cc (the_low_target): Ditto.
1045 * linux-s390-low.cc (the_low_target): Ditto.
1046 * linux-sh-low.cc (the_low_target): Ditto.
1047 * linux-tic6x-low.cc (the_low_target): Ditto.
1048 * linux-tile-low.cc (the_low_target): Ditto.
1049 * linux-xtensa-low.cc (the_low_target): Ditto.
1051 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1053 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1054 linux target ops into methods of linux_process_target.
1056 * linux-low.h (struct linux_target_ops): Remove the ops.
1057 (class linux_process_target) <low_collect_ptrace_register>
1058 <low_store_ptrace_register>: Declare.
1059 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1060 (linux_process_target::low_supply_ptrace_register): Define.
1062 Update the callers below.
1064 (linux_process_target::fetch_register)
1065 (linux_process_target::store_register)
1067 * linux-x86-low.cc (the_low_target): Remove the op fields.
1068 * linux-aarch64-low.cc (the_low_target): Ditto.
1069 * linux-arm-low.cc (the_low_target): Ditto.
1070 * linux-bfin-low.cc (the_low_target): Ditto.
1071 * linux-crisv32-low.cc (the_low_target): Ditto.
1072 * linux-m32r-low.cc (the_low_target): Ditto.
1073 * linux-m68k-low.cc (the_low_target): Ditto.
1074 * linux-sh-low.cc (the_low_target): Ditto.
1075 * linux-sparc-low.cc (the_low_target): Ditto.
1076 * linux-tic6x-low.cc (the_low_target): Ditto.
1077 * linux-tile-low.cc (the_low_target): Ditto.
1078 * linux-xtensa-low.cc (the_low_target): Ditto.
1079 * linux-mips-low.cc (class mips_target)
1080 <low_collect_ptrace_register>
1081 <low_supply_ptrace_register>: Declare.
1082 (mips_collect_ptrace_register): Turn into ...
1083 (mips_target::low_collect_ptrace_register): ...this.
1084 (mips_supply_ptrace_register): Turn into...
1085 (mips_target::low_supply_ptrace_register): ...this.
1086 (the_low_target): Remove the op fields.
1087 * linux-ppc-low.cc (class ppc_target)
1088 <low_collect_ptrace_register>
1089 <low_supply_ptrace_register>: Declare.
1090 (ppc_collect_ptrace_register): Turn into ...
1091 (ppc_target::low_collect_ptrace_register): ...this.
1092 (ppc_supply_ptrace_register): Turn into ...
1093 (ppc_target::low_supply_ptrace_register): ...this.
1094 (ppc_fill_gregset): Update for the calls to
1095 low_collect_ptrace_register.
1096 (the_low_target): Remove the op fields.
1097 * linux-s390-low.cc (class s390_target)
1098 <low_collect_ptrace_register>
1099 <low_supply_ptrace_register>: Declare.
1100 (s390_collect_ptrace_register): Turn into ...
1101 (s390_target::low_collect_ptrace_register): ...this.
1102 (s390_supply_ptrace_register): Turn into ...
1103 (s390_target::low_supply_ptrace_register): ...this.
1104 (s390_fill_gregset): Update for the calls to
1105 low_collect_ptrace_register.
1106 (the_low_target): Remove the op fields.
1108 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1110 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1111 target ops into methods of linux_process_target.
1113 * linux-low.h (struct linux_target_ops): Remove the ops.
1114 (class linux_process_target) <check_stopped_by_watchpoint>
1115 <low_stopped_by_watchpoint>
1116 <low_stopped_data_address>: Declare.
1117 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1118 (linux_process_target::check_stopped_by_watchpoint): ...this.
1119 (linux_process_target::low_stopped_by_watchpoint): Define.
1120 (linux_process_target::low_stopped_data_address): Define.
1121 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1122 <low_stopped_data_address>: Declare.
1123 (x86_stopped_by_watchpoint): Turn into...
1124 (x86_target::low_stopped_by_watchpoint): ...this.
1125 (x86_stopped_data_address): Turn into...
1126 (x86_target::low_stopped_data_address): ...this.
1127 (the_low_target): Remove the op fields.
1128 * linux-aarch64-low.cc (class aarch64_target)
1129 <low_stopped_by_watchpoint>
1130 <low_stopped_data_address>: Declare.
1131 (aarch64_stopped_by_watchpoint): Turn into...
1132 (aarch64_target::low_stopped_by_watchpoint): ...this.
1133 (aarch64_stopped_data_address): Turn into...
1134 (aarch64_target::low_stopped_data_address): ...this.
1135 (the_low_target): Remove the op fields.
1136 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1137 <low_stopped_data_address>: Declare.
1138 (arm_stopped_by_watchpoint): Turn into...
1139 (arm_target::low_stopped_by_watchpoint): ...this.
1140 (arm_stopped_data_address): Turn into...
1141 (arm_target::low_stopped_data_address): ...this.
1142 (the_low_target): Remove the op fields.
1143 * linux-crisv32-low.cc (class crisv32_target)
1144 <low_stopped_by_watchpoint>
1145 <low_stopped_data_address>: Declare.
1146 (cris_stopped_by_watchpoint): Turn into...
1147 (crisv32_target::low_stopped_by_watchpoint): ...this.
1148 (cris_stopped_data_address): Turn into...
1149 (crisv32_target::low_stopped_data_address): ...this.
1150 (the_low_target): Remove the op fields.
1151 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1152 <low_stopped_data_address>: Declare.
1153 (mips_stopped_by_watchpoint): Turn into...
1154 (mips_target::low_stopped_by_watchpoint): ...this.
1155 (mips_stopped_data_address): Turn into...
1156 (mips_target::low_stopped_data_address): ...this.
1157 (the_low_target): Remove the op fields.
1158 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1159 * linux-m32r-low.cc (the_low_target): Ditto.
1160 * linux-m68k-low.cc (the_low_target): Ditto.
1161 * linux-ppc-low.cc (the_low_target): Ditto.
1162 * linux-s390-low.cc (the_low_target): Ditto.
1163 * linux-sh-low.cc (the_low_target): Ditto.
1164 * linux-sparc-low.cc (the_low_target): Ditto.
1165 * linux-tic6x-low.cc (the_low_target): Ditto.
1166 * linux-tile-low.cc (the_low_target): Ditto.
1167 * linux-xtensa-low.cc (the_low_target): Ditto.
1169 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1171 Turn the 'insert_point' and 'remove_point' linux target ops into
1172 methods of linux_process_target.
1174 * linux-low.h (struct linux_target_ops): Remove the ops.
1175 (class linux_process_target) <low_insert_point>
1176 <low_remove_point>: Declare.
1177 * linux-low.cc (linux_process_target::low_insert_point)
1178 (linux_process_target::low_remove_point): Define.
1179 (linux_process_target::insert_point)
1180 (linux_process_target::remove_point): Update for calls to
1181 low_insert_point and low_remove_point.
1182 * linux-x86-low.cc (class x86_target) <low_insert_point>
1183 <low_remove_point>: Declare.
1184 (x86_insert_point): Turn into...
1185 (x86_target::low_insert_point): ...this.
1186 (x86_remove_point): Turn into...
1187 (x86_target::low_remove_point): ...this.
1188 (the_low_target): Remove the op fields.
1189 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1190 <low_remove_point>: Declare.
1191 (aarch64_insert_point): Turn into...
1192 (aarch64_target::low_insert_point): ...this.
1193 (aarch64_remove_point): Turn into...
1194 (aarch64_target::low_remove_point): ...this.
1195 (the_low_target): Remove the op fields.
1196 * linux-arm-low.cc (class arm_target) <low_insert_point>
1197 <low_remove_point>: Declare.
1198 (arm_insert_point): Turn into...
1199 (arm_target::low_insert_point): ...this.
1200 (arm_remove_point): Turn into...
1201 (arm_target::low_remove_point): ...this.
1202 (the_low_target): Remove the op fields.
1203 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1204 <low_remove_point>: Declare.
1205 (crisv32_insert_point): Turn into...
1206 (crisv32_target::low_insert_point): ...this.
1207 (crisv32_remove_point): Turn into...
1208 (crisv32_target::low_remove_point): ...this.
1209 (the_low_target): Remove the op fields.
1210 * linux-mips-low.cc (class mips_target) <low_insert_point>
1211 <low_remove_point>: Declare.
1212 (mips_insert_point): Turn into...
1213 (mips_target::low_insert_point): ...this.
1214 (mips_remove_point): Turn into...
1215 (mips_target::low_remove_point): ...this.
1216 (the_low_target): Remove the op fields.
1217 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1218 <low_remove_point>: Declare.
1219 (ppc_insert_point): Turn into...
1220 (ppc_target::low_insert_point): ...this.
1221 (ppc_remove_point): Turn into...
1222 (ppc_target::low_remove_point): ...this.
1223 (the_low_target): Remove the op fields.
1224 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1225 * linux-m32r-low.cc (the_low_target): Ditto.
1226 * linux-m68k-low.cc (the_low_target): Ditto.
1227 * linux-s390-low.cc (the_low_target): Ditto.
1228 * linux-sh-low.cc (the_low_target): Ditto.
1229 * linux-sparc-low.cc (the_low_target): Ditto.
1230 * linux-tic6x-low.cc (the_low_target): Ditto.
1231 * linux-tile-low.cc (the_low_target): Ditto.
1232 * linux-xtensa-low.cc (the_low_target): Ditto.
1234 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1236 Remove the 'supports_z_point_type' linux target op and let the
1237 concrete linux target define it by overriding the op declared in
1238 process_stratum_target.
1240 * linux-low.cc (linux_process_target::supports_z_point_type):
1242 * linux-low.h (struct linux_target_ops): Remove the op.
1243 (class linux_process_target) <supports_z_point_type>: Remove.
1244 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1246 (x86_supports_z_point_type): Turn into...
1247 (x86_target::supports_z_point_type): ...this.
1248 (the_low_target): Remove the op field.
1249 * linux-aarch64-low.cc (class aarch64_target)
1250 <supports_z_point_type>: Declare.
1251 (aarch64_supports_z_point_type): Turn into...
1252 (aarch64_target::supports_z_point_type): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1256 (arm_supports_z_point_type): Turn into...
1257 (arm_target::supports_z_point_type): ...this.
1258 (the_low_target): Remove the op field.
1259 * linux-crisv32-low.cc (class crisv32_target)
1260 <supports_z_point_type>: Declare.
1261 (cris_supports_z_point_type): Turn into...
1262 (crisv32_target::supports_z_point_type): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1266 (mips_supports_z_point_type): Turn into...
1267 (mips_target::supports_z_point_type): ...this.
1268 (the_low_target): Remove the op field.
1269 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1271 (ppc_supports_z_point_type): Turn into...
1272 (ppc_target::supports_z_point_type): ...this.
1273 (the_low_target): Remove the op field.
1274 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1276 (s390_supports_z_point_type): Turn into...
1277 (s390_target::supports_z_point_type): ...this.
1278 (the_low_target): Remove the op field.
1279 * linux-bfin-low.cc (the_low_target): Remove the op field.
1280 * linux-m32r-low.cc (the_low_target): Ditto.
1281 * linux-m68k-low.cc (the_low_target): Ditto.
1282 * linux-sh-low.cc (the_low_target): Ditto.
1283 * linux-sparc-low.cc (the_low_target): Ditto.
1284 * linux-tic6x-low.cc (the_low_target): Ditto.
1285 * linux-tile-low.cc (the_low_target): Ditto.
1286 * linux-xtensa-low.cc (the_low_target): Ditto.
1288 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1290 Turn the 'breakpoint_at' linux target op into a method of
1291 linux_process_target.
1293 * linux-low.h (struct linux_target_ops): Remove the op.
1294 (class linux_process_target) <low_breakpoint_at>: Declare.
1296 Update the callers below:
1298 * linux-low.cc (linux_process_target::save_stop_reason)
1299 (linux_process_target::thread_still_has_status_pending)
1300 (linux_process_target::wait_1)
1302 * linux-x86-low.cc (class x86_target)
1303 <low_breakpoint_at>: Declare.
1304 (x86_breakpoint_at): Turn into...
1305 (x86_target::low_breakpoint_at): ...this.
1306 (the_low_target): Remove the op field.
1307 * linux-aarch64-low.cc (class aarch64_target)
1308 <low_breakpoint_at>: Declare.
1309 (aarch64_breakpoint_at): Turn into...
1310 (aarch64_target::low_breakpoint_at): ...this.
1311 (the_low_target): Remove the op field.
1312 * linux-arm-low.cc (class arm_target)
1313 <low_breakpoint_at>: Declare.
1314 (arm_target::low_breakpoint_at): Define.
1315 (the_low_target): Remove the op field.
1316 * linux-bfin-low.cc (class bfin_target)
1317 <low_breakpoint_at>: Declare.
1318 (bfin_breakpoint_at): Turn into...
1319 (bfin_target::low_breakpoint_at): ...this.
1320 (the_low_target): Remove the op field.
1321 * linux-cris-low.cc (class cris_target)
1322 <low_breakpoint_at>: Declare.
1323 (cris_breakpoint_at): Turn into...
1324 (cris_target::low_breakpoint_at): ...this.
1325 (the_low_target): Remove the op field.
1326 * linux-crisv32-low.cc (class crisv32_target)
1327 <low_breakpoint_at>: Declare.
1328 (crisv32_breakpoint_at): Turn into...
1329 (crisv32_target::low_breakpoint_at): ...this.
1330 (the_low_target): Remove the op field.
1331 * linux-ia64-low.cc (class ia64_target)
1332 <low_breakpoint_at>: Declare.
1333 (ia64_target::low_breakpoint_at): Define.
1334 * linux-m32r-low.cc (class m32r_target)
1335 <low_breakpoint_at>: Declare.
1336 (m32r_breakpoint_at): Turn into...
1337 (m32r_target::low_breakpoint_at): ...this.
1338 (the_low_target): Remove the op field.
1339 * linux-m68k-low.cc (class m68k_target)
1340 <low_breakpoint_at>: Declare.
1341 (m68k_breakpoint_at): Turn into...
1342 (m68k_target::low_breakpoint_at): ...this.
1343 (the_low_target): Remove the op field.
1344 * linux-mips-low.cc (class mips_target)
1345 <low_breakpoint_at>: Declare.
1346 (mips_breakpoint_at): Turn into...
1347 (mips_target::low_breakpoint_at): ...this.
1348 (the_low_target): Remove the op field.
1349 * linux-nios2-low.cc (class nios2_target)
1350 <low_breakpoint_at>: Declare.
1351 (nios2_breakpoint_at): Turn into...
1352 (nios2_target::low_breakpoint_at): ...this.
1353 (the_low_target): Remove the op field.
1354 * linux-ppc-low.cc (class ppc_target)
1355 <low_breakpoint_at>: Declare.
1356 (ppc_breakpoint_at): Turn into...
1357 (ppc_target::low_breakpoint_at): ...this.
1358 (the_low_target): Remove the op field.
1359 * linux-riscv-low.cc (class riscv_target)
1360 <low_breakpoint_at>: Declare.
1361 (riscv_breakpoint_at): Turn into...
1362 (riscv_target::low_breakpoint_at): ...this.
1363 (the_low_target): Remove the op field.
1364 * linux-s390-low.cc (class s390_target)
1365 <low_breakpoint_at>: Declare.
1366 (s390_breakpoint_at): Turn into...
1367 (s390_target::low_breakpoint_at): ...this.
1368 (the_low_target): Remove the op field.
1369 * linux-sh-low.cc (class sh_target)
1370 <low_breakpoint_at>: Declare.
1371 (sh_breakpoint_at): Turn into...
1372 (sh_target::low_breakpoint_at): ...this.
1373 (the_low_target): Remove the op field.
1374 * linux-sparc-low.cc (class sparc_target)
1375 <low_breakpoint_at>: Declare.
1376 (sparc_breakpoint_at): Turn into...
1377 (sparc_target::low_breakpoint_at): ...this.
1378 (the_low_target): Remove the op field.
1379 * linux-tic6x-low.cc (class tic6x_target)
1380 <low_breakpoint_at>: Declare.
1381 (tic6x_breakpoint_at): Turn into...
1382 (tic6x_target::low_breakpoint_at): ...this.
1383 (the_low_target): Remove the op field.
1384 * linux-tile-low.cc (class tile_target)
1385 <low_breakpoint_at>: Declare.
1386 (tile_breakpoint_at): Turn into...
1387 (tile_target::low_breakpoint_at): ...this.
1388 (the_low_target): Remove the op field.
1389 * linux-xtensa-low.cc (class xtensa_target)
1390 <low_breakpoint_at>: Declare.
1391 (xtensa_breakpoint_at): Turn into...
1392 (xtensa_target::low_breakpoint_at): ...this.
1393 (the_low_target): Remove the op field.
1395 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1397 Turn the 'decr_pc_after_break' linux_target_ops field into
1398 a method of linux_process_target.
1400 * linux-low.h (struct linux_target_ops)
1401 <decr_pc_after_break>: Remove.
1402 (class linux_process_target) <low_decr_pc_after_break>: New method
1404 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1405 New method implementation.
1407 Update the users below.
1409 (linux_process_target::save_stop_reason)
1410 (linux_process_target::wait_1)
1411 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1413 (x86_target::low_decr_pc_after_break): New method implementation.
1414 (the_low_target): Remove the field.
1415 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1417 (bfin_target::low_decr_pc_after_break): New method implementation.
1418 (the_low_target): Remove the field.
1419 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1421 (m68k_target::low_decr_pc_after_break): New method implementation.
1422 (the_low_target): Remove the field.
1423 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1425 (s390_target::low_decr_pc_after_break): New method implementation.
1426 (the_low_target): Remove the field.
1427 * linux-aarch64-low.cc (the_low_target): Remove the field.
1428 * linux-arm-low.cc (the_low_target): Remove the field.
1429 * linux-cris-low.cc (the_low_target): Remove the field.
1430 * linux-crisv32-low.cc (the_low_target): Remove the field.
1431 * linux-m32r-low.cc (the_low_target): Remove the field.
1432 * linux-mips-low.cc (the_low_target): Remove the field.
1433 * linux-nios2-low.cc (the_low_target): Remove the field.
1434 * linux-ppc-low.cc (the_low_target): Remove the field.
1435 * linux-riscv-low.cc (the_low_target): Remove the field.
1436 * linux-sh-low.cc (the_low_target): Remove the field.
1437 * linux-sparc-low.cc (the_low_target): Remove the field.
1438 * linux-tic6x-low.cc (the_low_target): Remove the field.
1439 * linux-tile-low.cc (the_low_target): Remove the field.
1440 * linux-xtensa-low.cc (the_low_target): Remove the field.
1442 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1444 Remove the 'supports_software_single_step' linux target op and let
1445 the concrete linux target define it by overriding the op in
1446 process_stratum_target.
1447 Turn the 'get_next_pcs' linux target op into a method of
1448 linux_process_target.
1450 * linux-low.h (struct linux_target_ops): Remove the ops.
1451 (class linux_process_target) <supports_software_single_step>:
1453 <low_get_next_pcs>: Declare.
1454 * linux-low.cc (can_software_single_step): Remove.
1455 (linux_process_target::low_get_next_pcs): Define.
1456 (linux_process_target::supports_software_single_step): Remove.
1458 Update the callers below.
1460 (linux_process_target::handle_extended_wait)
1461 (linux_process_target::wait_1)
1462 (linux_process_target::install_software_single_step_breakpoints)
1463 (linux_process_target::single_step)
1464 (linux_process_target::thread_needs_step_over)
1465 (linux_process_target::proceed_one_lwp)
1466 (linux_process_target::supports_range_stepping)
1468 * linux-x86-low.cc (the_low_target): Remove the op field.
1469 * linux-aarch64-low.cc (the_low_target): Ditto.
1470 * linux-bfin-low.cc (the_low_target): Ditto.
1471 * linux-cris-low.cc (the_low_target): Ditto.
1472 * linux-crisv32-low.cc (the_low_target): Ditto.
1473 * linux-m32r-low.cc (the_low_target): Ditto.
1474 * linux-m68k-low.cc (the_low_target): Ditto.
1475 * linux-mips-low.cc (the_low_target): Ditto.
1476 * linux-nios2-low.cc (the_low_target): Ditto.
1477 * linux-ppc-low.cc (the_low_target): Ditto.
1478 * linux-riscv-low.cc (the_low_target): Ditto.
1479 * linux-s390-low.cc (the_low_target): Ditto.
1480 * linux-sh-low.cc (the_low_target): Ditto.
1481 * linux-sparc-low.cc (the_low_target): Ditto.
1482 * linux-tic6x-low.cc (the_low_target): Ditto.
1483 * linux-tile-low.cc (the_low_target): Ditto.
1484 * linux-xtensa-low.cc (the_low_target): Ditto.
1485 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1486 <supports_software_single_step>: Declare.
1487 (arm_target::supports_software_single_step): Define.
1488 (arm_gdbserver_get_next_pcs): Turn into...
1489 (arm_target::low_get_next_pcs): ...this.
1490 (the_low_target): Remove the op field.
1492 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1494 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1495 the concrete linux target define it by overriding the op
1496 in process_stratum_target.
1498 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1500 * linux-low.h (struct linux_target_ops): Remove the op.
1501 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1502 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1504 (x86_sw_breakpoint_from_kind): Turn into...
1505 (x86_target::sw_breakpoint_from_kind): ...this.
1506 (the_low_target): Remove the op field.
1507 * linux-aarch64-low.cc (class aarch64_target)
1508 <sw_breakpoint_from_kind>: Declare.
1509 (aarch64_sw_breakpoint_from_kind): Turn into...
1510 (aarch64_target::sw_breakpoint_from_kind): ...this.
1511 (the_low_target): Remove the op field.
1512 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1514 (arm_target::sw_breakpoint_from_kind): Define.
1515 (the_low_target): Remove the op field.
1516 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1518 (bfin_sw_breakpoint_from_kind): Turn into...
1519 (bfin_target::sw_breakpoint_from_kind): ...this.
1520 (the_low_target): Remove the op field.
1521 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1523 (cris_sw_breakpoint_from_kind): Turn into...
1524 (cris_target::sw_breakpoint_from_kind): ...this.
1525 (the_low_target): Remove the op field.
1526 * linux-crisv32-low.cc (class crisv32_target)
1527 <sw_breakpoint_from_kind>: Declare.
1528 (cris_sw_breakpoint_from_kind): Turn into...
1529 (crisv32_target::sw_breakpoint_from_kind): ...this.
1530 (the_low_target): Remove the op field.
1531 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1533 (ia64_target::sw_breakpoint_from_kind): Define.
1534 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1536 (m32r_sw_breakpoint_from_kind): Turn into...
1537 (m32r_target::sw_breakpoint_from_kind): ...this.
1538 (the_low_target): Remove the op field.
1539 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1541 (m68k_sw_breakpoint_from_kind): Turn into...
1542 (m68k_target::sw_breakpoint_from_kind): ...this.
1543 (the_low_target): Remove the op field.
1544 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1546 (mips_sw_breakpoint_from_kind): Turn into...
1547 (mips_target::sw_breakpoint_from_kind): ...this.
1548 (the_low_target): Remove the op field.
1549 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1551 (nios2_sw_breakpoint_from_kind): Turn into...
1552 (nios2_target::sw_breakpoint_from_kind): ...this.
1553 (the_low_target): Remove the op field.
1554 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1556 (ppc_sw_breakpoint_from_kind): Turn into...
1557 (ppc_target::sw_breakpoint_from_kind): ...this.
1558 (the_low_target): Remove the op field.
1559 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1561 (riscv_sw_breakpoint_from_kind): Turn into...
1562 (riscv_target::sw_breakpoint_from_kind): ...this.
1563 (the_low_target): Remove the op field.
1564 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1566 (s390_sw_breakpoint_from_kind): Turn into...
1567 (s390_target::sw_breakpoint_from_kind): ...this.
1568 (the_low_target): Remove the op field.
1569 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1571 (sh_sw_breakpoint_from_kind): Turn into...
1572 (sh_target::sw_breakpoint_from_kind): ...this.
1573 (the_low_target): Remove the op field.
1574 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1576 (sparc_sw_breakpoint_from_kind): Turn into...
1577 (sparc_target::sw_breakpoint_from_kind): ...this.
1578 (the_low_target): Remove the op field.
1579 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1581 (tic6x_sw_breakpoint_from_kind): Turn into...
1582 (tic6x_target::sw_breakpoint_from_kind): ...this.
1583 (the_low_target): Remove the op field.
1584 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1586 (tile_sw_breakpoint_from_kind): Turn into...
1587 (tile_target::sw_breakpoint_from_kind): ...this.
1588 (the_low_target): Remove the op field.
1589 * linux-xtensa-low.cc (class xtensa_target)
1590 <sw_breakpoint_from_kind>: Declare.
1591 (xtensa_sw_breakpoint_from_kind): Turn into...
1592 (xtensa_target::sw_breakpoint_from_kind): ...this.
1593 (the_low_target): Remove the op field.
1595 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1597 Remove the 'breakpoint_kind_from_pc' and
1598 'breakpoint_kind_from_current_state' linux target ops, and let the
1599 concrete linux target define them by overriding the ops of
1600 process_stratum_target.
1602 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1604 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1605 * linux-low.h (struct linux_target_ops): Remove ops.
1606 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1607 <breakpoint_kind_from_current_state>: Remove.
1608 * linux-x86-low.cc (the_low_target): Remove the op fields.
1609 * linux-bfin-low.cc (the_low_target): Ditto.
1610 * linux-cris-low.cc (the_low_target): Ditto.
1611 * linux-crisv32-low.cc (the_low_target): Ditto.
1612 * linux-m32r-low.cc (the_low_target): Ditto.
1613 * linux-m68k-low.cc (the_low_target): Ditto.
1614 * linux-mips-low.cc (the_low_target): Ditto.
1615 * linux-nios2-low.cc (the_low_target): Ditto.
1616 * linux-ppc-low.cc (the_low_target): Ditto.
1617 * linux-s390-low.cc (the_low_target): Ditto.
1618 * linux-sh-low.cc (the_low_target): Ditto.
1619 * linux-sparc-low.cc (the_low_target): Ditto.
1620 * linux-tic6x-low.cc (the_low_target): Ditto.
1621 * linux-tile-low.cc (the_low_target): Ditto.
1622 * linux-xtensa-low.cc (the_low_target): Ditto.
1623 * linux-aarch64-low.cc (class aarch64_target)
1624 <breakpoint_kind_from_pc>
1625 <breakpoint_kind_from_current_state>: Declare.
1626 (aarch64_breakpoint_kind_from_pc): Turn into...
1627 (aarch64_target::breakpoint_kind_from_pc): ...this.
1628 (aarch64_breakpoint_kind_from_current_state): Turn into...
1629 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1630 (the_low_target): Remove the op fields.
1631 * linux-arm-low.cc (class arm_target):
1632 <breakpoint_kind_from_pc>
1633 <breakpoint_kind_from_current_state>: Declare.
1634 (arm_target::breakpoint_kind_from_pc): Define.
1635 (arm_target::breakpoint_kind_from_current_state): Define.
1636 (the_low_target): Remove the op fields.
1637 * linux-riscv-low.cc (class riscv_target):
1638 <breakpoint_kind_from_pc>: Declare.
1639 (riscv_breakpoint_kind_from_pc): Turn into...
1640 (riscv_target::breakpoint_kind_from_pc): ...this.
1641 (the_low_target): Remove the op fields.
1643 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1645 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1646 of linux_process_target.
1648 * linux-low.h (struct linux_target_ops): Remove the ops.
1649 (class linux_process_target) <low_supports_breakpoints>
1651 <low_set_pc>: Declare.
1652 * linux-low.cc (supports_breakpoints): Turn into...
1653 (linux_process_target::low_supports_breakpoints): ...this.
1654 (linux_process_target::low_get_pc): Define.
1655 (linux_process_target::low_set_pc): Define.
1657 Update the callers below.
1659 (linux_process_target::get_pc)
1660 (linux_process_target::save_stop_reason)
1661 (linux_process_target::maybe_move_out_of_jump_pad)
1662 (linux_process_target::wait_1)
1663 (linux_process_target::resume_one_lwp_throw)
1664 (linux_process_target::resume)
1665 (linux_process_target::proceed_all_lwps)
1666 (linux_process_target::read_pc)
1667 (linux_process_target::write_pc)
1669 * linux-x86-low.cc (class linux_process_target)
1670 <low_supports_breakpoints>
1672 <low_set_pc>: Declare.
1673 (x86_target::low_supports_breakpoints): Define.
1674 (x86_get_pc): Turn into...
1675 (x86_target::low_get_pc): ...this.
1676 (x86_set_pc): Turn into...
1677 (x86_target::low_set_pc): ...this.
1678 (the_low_target): Remove the op fields.
1679 * linux-arm-low.cc (class arm_target)
1680 <low_supports_breakpoints>
1682 <low_set_pc>: Declare.
1683 (arm_target::low_supports_breakpoints)
1684 (arm_target::low_get_pc)
1685 (arm_target::low_set_pc): Define.
1686 (the_low_target): Remove the op fields.
1687 * linux-bfin-low.cc (class bfin_target)
1688 <low_supports_breakpoints>
1690 <low_set_pc>: Declare.
1691 (bfin_target::low_supports_breakpoints)
1692 (bfin_target::low_get_pc)
1693 (bfin_target::low_set_pc): Define.
1694 (the_low_target): Remove the op fields.
1695 * linux-cris-low.cc (class cris_target)
1696 <low_supports_breakpoints>
1698 <low_set_pc>: Declare.
1699 (cris_target::low_supports_breakpoints)
1700 (cris_target::low_get_pc)
1701 (cris_target::low_set_pc): Define.
1702 (the_low_target): Remove the op fields.
1703 * linux-crisv32-low.cc (class crisv32_target)
1704 <low_supports_breakpoints>
1706 <low_set_pc>: Declare.
1707 (crisv32_target::low_supports_breakpoints)
1708 (crisv32_target::low_get_pc)
1709 (crisv32_target::low_set_pc): Define.
1710 (the_low_target): Remove the op fields.
1711 * linux-m32r-low.cc (class m32r_target)
1712 <low_supports_breakpoints>
1714 <low_set_pc>: Declare.
1715 (m32r_target::low_supports_breakpoints)
1716 (m32r_target::low_get_pc)
1717 (m32r_target::low_set_pc): Define.
1718 (the_low_target): Remove the op fields.
1719 * linux-m68k-low.cc (class m68k_target)
1720 <low_supports_breakpoints>
1722 <low_set_pc>: Declare.
1723 (m68k_target::low_supports_breakpoints)
1724 (m68k_target::low_get_pc)
1725 (m68k_target::low_set_pc): Define.
1726 (the_low_target): Remove the op fields.
1727 * linux-nios2-low.cc (class nios2_target)
1728 <low_supports_breakpoints>
1730 <low_set_pc>: Declare.
1731 (nios2_target::low_supports_breakpoints)
1732 (nios2_target::low_get_pc)
1733 (nios2_target::low_set_pc): Define.
1734 (the_low_target): Remove the op fields.
1735 * linux-sh-low.cc (class sh_target)
1736 <low_supports_breakpoints>
1738 <low_set_pc>: Declare.
1739 (sh_target::low_supports_breakpoints)
1740 (sh_target::low_get_pc)
1741 (sh_target::low_set_pc): Define.
1742 (the_low_target): Remove the op fields.
1743 * linux-xtensa-low.cc (class xtensa_target)
1744 <low_supports_breakpoints>
1746 <low_set_pc>: Declare.
1747 (xtensa_target::low_supports_breakpoints)
1748 (xtensa_target::low_get_pc)
1749 (xtensa_target::low_set_pc): Define.
1750 (the_low_target): Remove the op fields.
1751 * linux-sparc-low.cc (class sparc_target)
1752 <low_supports_breakpoints>
1753 <low_get_pc>: Declare.
1754 (sparc_target::low_supports_breakpoints)
1755 (sparc_target::low_get_pc): Define.
1756 (the_low_target): Remove the op fields.
1757 * linux-tile-low.cc (class tile_target)
1758 <low_supports_breakpoints>
1760 <low_set_pc>: Declare.
1761 (tile_target::low_supports_breakpoints)
1762 (tile_target::low_get_pc)
1763 (tile_target::low_set_pc): Define.
1764 (the_low_target): Remove the op fields.
1765 * linux-aarch64-low.cc (class aarch64_target)
1766 <low_supports_breakpoints>
1768 <low_set_pc>: Declare.
1769 (aarch64_target::low_supports_breakpoints): Define.
1770 (aarch64_get_pc): Turn into...
1771 (aarch64_target::low_get_pc): ...this.
1772 (aarch64_set_pc): Turn into...
1773 (aarch64_target::low_set_pc): ...this.
1774 (the_low_target): Remove the op fields.
1775 * linux-mips-low.cc (class mips_target)
1776 <low_supports_breakpoints>
1778 <low_set_pc>: Declare.
1779 (mips_target::low_supports_breakpoints): Define.
1780 (mips_get_pc): Turn into...
1781 (mips_target::low_get_pc): ...this.
1782 (mips_set_pc): Turn into...
1783 (mips_target::low_set_pc): ...this.
1784 (the_low_target): Remove the op fields.
1785 * linux-ppc-low.cc (class ppc_target)
1786 <low_supports_breakpoints>
1788 <low_set_pc>: Declare.
1789 (ppc_target::low_supports_breakpoints): Define.
1790 (ppc_get_pc): Turn into...
1791 (ppc_target::low_get_pc): ...this.
1792 (ppc_set_pc): Turn into...
1793 (ppc_target::low_set_pc): ...this.
1794 (the_low_target): Remove the op fields.
1795 * linux-riscv-low.cc (class riscv_target)
1796 <low_supports_breakpoints>
1798 <low_set_pc>: Declare.
1799 (riscv_target::low_supports_breakpoints): Define.
1800 (riscv_get_pc): Turn into...
1801 (riscv_target::low_get_pc): ...this.
1802 (riscv_set_pc): Turn into...
1803 (riscv_target::low_set_pc): ...this.
1804 (the_low_target): Remove the op fields.
1805 * linux-s390-low.cc (class s390_target)
1806 <low_supports_breakpoints>
1808 <low_set_pc>: Declare.
1809 (s390_target::low_supports_breakpoints): Define.
1810 (s390_get_pc): Turn into...
1811 (s390_target::low_get_pc): ...this.
1812 (s390_set_pc): Turn into...
1813 (s390_target::low_set_pc): ...this.
1814 (the_low_target): Remove the op fields.
1815 * linux-tic6x-low.cc (class tic6x_target)
1816 <low_supports_breakpoints>
1818 <low_set_pc>: Declare.
1819 (tic6x_target::low_supports_breakpoints): Define.
1820 (tic6x_get_pc): Turn into...
1821 (tic6x_target::low_get_pc): ...this.
1822 (tic6x_set_pc): Turn into...
1823 (tic6x_target::low_set_pc): ...this.
1824 (the_low_target): Remove the op fields.
1826 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1828 Turn some more static methods in linux-low into private methods
1829 of linux_process_target.
1831 * linux-low.cc (get_pc): Turn into...
1832 (linux_process_target::get_pc): ...this.
1833 (save_stop_reason): Turn into...
1834 (linux_process_target::save_stop_reason): ...this.
1835 (thread_still_has_status_pending_p): Turn into...
1836 (linux_process_target::thread_still_has_status_pending): ...this.
1837 (status_pending_p_callback): Turn into...
1838 (linux_process_target::status_pending_p_callback): ...this.
1839 (resume_stopped_resumed_lwps): Turn into...
1840 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1841 (install_software_single_step_breakpoints): Turn into...
1842 (linux_process_target::install_software_single_step_breakpoints):
1844 (single_step): Turn into...
1845 (linux_process_target::single_step): ...this.
1846 (linux_resume_one_lwp_throw): Turn into...
1847 (linux_process_target::resume_one_lwp_throw): ...this.
1848 (linux_resume_one_lwp): Turn into...
1849 (linux_process_target::resume_one_lwp): ...this.
1850 (resume_status_pending_p): Turn into...
1851 (linux_process_target::resume_status_pending): ...this.
1852 (need_step_over_p): Turn into...
1853 (linux_process_target::thread_needs_step_over): ...this.
1854 (linux_resume_one_thread): Turn into...
1855 (linux_process_target::resume_one_thread): ...this.
1856 (proceed_one_lwp): Turn into...
1857 (linux_process_target::proceed_one_lwp): ...this.
1858 (unsuspend_and_proceed_one_lwp): Turn into...
1859 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1861 Update the calls/references to the above functions below.
1863 (linux_process_target::handle_extended_wait)
1864 (linux_process_target::filter_event)
1865 (linux_process_target::wait_for_event_filtered)
1866 (linux_process_target::wait_1)
1867 (linux_process_target::move_out_of_jump_pad)
1868 (linux_process_target::start_step_over)
1869 (linux_process_target::resume)
1870 (linux_process_target::proceed_all_lwps)
1871 (regsets_store_inferior_registers)
1872 (linux_process_target::store_register)
1874 * linux-low.h (class linux_process_target)
1877 <thread_still_has_status_pending>
1878 <status_pending_p_callback>
1879 <resume_stopped_resumed_lwps>
1880 <install_software_single_step_breakpoints>
1882 <resume_one_lwp_throw>
1884 <resume_status_pending>
1885 <thread_needs_step_over>
1888 <unsuspend_and_proceed_one_lwp>: Declare.
1890 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1892 Turn the 'fetch_register' linux target op into a method of
1893 linux_process_target.
1895 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1896 (class linux_process_target) <low_fetch_register>: Declare.
1897 * linux-x86-low.cc (the_low_target)
1898 * linux-aarch64-low.cc (the_low_target)
1899 * linux-arm-low.cc (the_low_target)
1900 * linux-bfin-low.cc (the_low_target)
1901 * linux-cris-low.cc (the_low_target)
1902 * linux-crisv32-low.cc (the_low_target)
1903 * linux-m32r-low.cc (the_low_target)
1904 * linux-m68k-low.cc (the_low_target)
1905 * linux-nios2-low.cc (the_low_target)
1906 * linux-ppc-low.cc (the_low_target)
1907 * linux-s390-low.cc (the_low_target)
1908 * linux-sh-low.cc (the_low_target)
1909 * linux-sparc-low.cc (the_low_target)
1910 * linux-tic6x-low.cc (the_low_target)
1911 * linux-tile-low.cc (the_low_target)
1912 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1913 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1915 (ia64_fetch_register): Turn into...
1916 (ia64_target::low_fetch_register): ...this.
1917 (the_low_target): Remove the op field.
1918 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1920 (mips_fetch_register): Turn into...
1921 (mips_target::low_fetch_register): ...this.
1922 (the_low_target): Remove the op field.
1923 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1925 (riscv_fetch_register): Turn into...
1926 (riscv_target::low_fetch_register): ...this.
1927 (the_low_target): Remove the op field.
1929 Update the callers below.
1931 * linux-low.cc (linux_process_target::fetch_registers)
1932 (linux_process_target::low_fetch_register)
1934 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1936 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1937 linux target ops into methods of linux_process_target.
1939 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1940 (class linux_process_target) <fetch_register>
1942 <usr_fetch_inferior_registers>
1943 <usr_store_inferior_registers>
1944 <low_cannot_fetch_register>
1945 <low_cannot_fetch_register> Declare.
1946 * linux-low.cc (fetch_register): Turn into...
1947 (linux_process_target::fetch_register): ...this.
1948 (store_register): Turn into ...
1949 (linux_process_target::store_register): ...this.
1950 (usr_fetch_inferior_registers): Turn into...
1951 (linux_process_target::usr_fetch_inferior_registers): ...this.
1952 (usr_store_inferior_registers): Turn into...
1953 (linux_process_target::usr_store_inferior_registers): ...this.
1954 * linux-x86-low.cc (class x86_target)
1955 <low_cannot_fetch_register>
1956 <low_cannot_store_register>: Declare.
1957 (x86_cannot_store_register): Turn into...
1958 (x86_target::low_cannot_store_register): ...this.
1959 (x86_cannot_fetch_register): Turn into...
1960 (x86_target::low_cannot_fetch_register): ...this.
1961 (the_low_target): Remove the target op fields.
1962 * linux-aarch64-low.cc (class aarch64_target)
1963 <low_cannot_fetch_register>
1964 <low_cannot_store_register>: Declare.
1965 (aarch64_target::low_cannot_fetch_register)
1966 (aarch64_target::low_cannot_store_register): Define.
1967 (the_low_target): Remove the op fields.
1968 * linux-arm-low.cc (class arm_target)
1969 <low_cannot_fetch_register>
1970 <low_cannot_store_register>: Declare.
1971 (arm_cannot_fetch_register): Turn into...
1972 (arm_target::low_cannot_fetch_register): ...this.
1973 (arm_cannot_store_register): Turn into...
1974 (arm_target::low_cannot_store_register): ...this.
1975 (the_low_target): Remove the op fields.
1976 * linux-bfin-low.cc (class bfin_target)
1977 <low_cannot_fetch_register>
1978 <low_cannot_store_register>: Declare.
1979 (bfin_cannot_fetch_register): Turn into...
1980 (bfin_target::low_cannot_fetch_register): ...this.
1981 (bfin_cannot_store_register): Turn into...
1982 (bfin_target::low_cannot_store_register): ...this.
1983 (the_low_target): Remove the op fields.
1984 * linux-cris-low.cc (class cris_target)
1985 <low_cannot_fetch_register>
1986 <low_cannot_store_register>: Declare.
1987 (cris_cannot_fetch_register): Turn into...
1988 (cris_target::low_cannot_fetch_register): ...this.
1989 (cris_cannot_store_register): Turn into...
1990 (cris_target::low_cannot_store_register): ...this.
1991 (the_low_target): Remove the op fields.
1992 * linux-crisv32-low.cc (class crisv32_target)
1993 <low_cannot_fetch_register>
1994 <low_cannot_store_register>: Declare.
1995 (crisv32_target::low_cannot_fetch_register)
1996 (crisv32_target::low_cannot_store_register): Define.
1997 (the_low_target): Remove the op fields.
1998 * linux-ia64-low.cc (class ia64_target)
1999 <low_cannot_fetch_register>
2000 <low_cannot_store_register>: Declare.
2001 (ia64_cannot_fetch_register): Turn into...
2002 (ia64_target::low_cannot_fetch_register): ...this.
2003 (ia64_cannot_store_register): Turn into...
2004 (ia64_target::low_cannot_store_register): ...this.
2005 (the_low_target): Remove the op fields.
2006 * linux-m32r-low.cc (class m32r_target)
2007 <low_cannot_fetch_register>
2008 <low_cannot_store_register>: Declare.
2009 (m32r_cannot_fetch_register): Turn into...
2010 (m32r_target::low_cannot_fetch_register): ...this.
2011 (m32r_cannot_store_register): Turn into...
2012 (m32r_target::low_cannot_store_register): ...this.
2013 (the_low_target): Remove the op fields.
2014 * linux-m68k-low.cc (class m68k_target)
2015 <low_cannot_fetch_register>
2016 <low_cannot_store_register>: Declare.
2017 (m68k_cannot_fetch_register): Turn into...
2018 (m68k_target::low_cannot_fetch_register): ...this.
2019 (m68k_cannot_store_register): Turn into...
2020 (m68k_target::low_cannot_store_register): ...this.
2021 (the_low_target): Remove the op fields.
2022 * linux-mips-low.cc (class mips_target)
2023 <low_cannot_fetch_register>
2024 <low_cannot_store_register>: Declare.
2025 (mips_cannot_fetch_register): Turn into...
2026 (mips_target::low_cannot_fetch_register): ...this.
2027 (mips_cannot_store_register): Turn into...
2028 (mips_target::low_cannot_store_register): ...this.
2029 (get_usrregs_info): Inline at the call sites in
2030 low_cannot_fetch_register and low_cannot_store_register,
2032 (the_low_target): Remove the op fields.
2033 * linux-nios2-low.cc (class nios2_target)
2034 <low_cannot_fetch_register>
2035 <low_cannot_store_register>: Declare.
2036 (nios2_cannot_fetch_register): Turn into...
2037 (nios2_target::low_cannot_fetch_register): ...this.
2038 (nios2_cannot_store_register): Turn into...
2039 (nios2_target::low_cannot_store_register): ...this.
2040 (the_low_target): Remove the op fields.
2041 * linux-ppc-low.cc (class ppc_target)
2042 <low_cannot_fetch_register>
2043 <low_cannot_store_register>: Declare.
2044 (ppc_cannot_fetch_register): Turn into...
2045 (ppc_target::low_cannot_fetch_register): ...this.
2046 (ppc_cannot_store_register): Turn into...
2047 (ppc_target::low_cannot_store_register): ...this.
2048 (the_low_target): Remove the op fields.
2049 * linux-riscv-low.cc (class riscv_target)
2050 <low_cannot_fetch_register>
2051 <low_cannot_store_register>: Declare.
2052 (riscv_target::low_cannot_fetch_register)
2053 (riscv_target::low_cannot_store_register): Define.
2054 (the_low_target): Remove the op fields.
2055 * linux-s390-low.cc (class s390_target)
2056 <low_cannot_fetch_register>
2057 <low_cannot_store_register>: Declare.
2058 (s390_cannot_fetch_register): Turn into...
2059 (s390_target::low_cannot_fetch_register): ...this.
2060 (s390_cannot_store_register): Turn into...
2061 (s390_target::low_cannot_store_register): ...this.
2062 (the_low_target): Remove the op fields.
2063 * linux-sh-low.cc (class sh_target)
2064 <low_cannot_fetch_register>
2065 <low_cannot_store_register>: Declare.
2066 (sh_cannot_fetch_register): Turn into...
2067 (sh_target::low_cannot_fetch_register): ...this.
2068 (sh_cannot_store_register): Turn into...
2069 (sh_target::low_cannot_store_register): ...this.
2070 (the_low_target): Remove the op fields.
2071 * linux-sparc-low.cc (class sparc_target)
2072 <low_cannot_fetch_register>
2073 <low_cannot_store_register>: Declare.
2074 (sparc_cannot_fetch_register): Turn into...
2075 (sparc_target::low_cannot_fetch_register): ...this.
2076 (sparc_cannot_store_register): Turn into...
2077 (sparc_target::low_cannot_store_register): ...this.
2078 (the_low_target): Remove the op fields.
2079 * linux-tic6x-low.cc (class tic6x_target)
2080 <low_cannot_fetch_register>
2081 <low_cannot_store_register>: Declare.
2082 (tic6x_cannot_fetch_register): Turn into...
2083 (tic6x_target::low_cannot_fetch_register): ...this.
2084 (tic6x_cannot_store_register): Turn into...
2085 (tic6x_target::low_cannot_store_register): ...this.
2086 (the_low_target): Remove the op fields.
2087 * linux-tile-low.cc (class tile_target)
2088 <low_cannot_fetch_register>
2089 <low_cannot_store_register>: Declare.
2090 (tile_cannot_fetch_register): Turn into...
2091 (tile_target::low_cannot_fetch_register): ...this.
2092 (tile_cannot_store_register): Turn into...
2093 (tile_target::low_cannot_store_register): ...this.
2094 (the_low_target): Remove the op fields.
2095 * linux-xtensa-low.cc (class xtensa_target)
2096 <low_cannot_fetch_register>
2097 <low_cannot_store_register>: Declare.
2098 (xtensa_target::low_cannot_fetch_register)
2099 (xtensa_target::low_cannot_store_register): Define.
2100 (the_low_target): Remove the op fields.
2102 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2104 Turn the 'regs_info' linux target op into a method of
2105 linux_process_target.
2107 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2108 (class linux_process_target) <get_regs_info>: Define.
2110 Update the callers below.
2112 * linux-low.cc (linux_process_target::fetch_registers)
2113 (linux_process_target::store_registers)
2114 * proc-service.cc (gregset_info)
2116 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2117 (x86_linux_regs_info): Turn into ...
2118 (x86_target::get_regs_info): ...this.
2119 (the_low_target): Remove the op field.
2120 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2122 (aarch64_regs_info): Turn into ...
2123 (aarch64_target::get_regs_info): ...this.
2124 (the_low_target): Remove the op field.
2125 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2126 (arm_regs_info): Turn into ...
2127 (arm_target::get_regs_info): ...this.
2128 (the_low_target): Remove the op field.
2129 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2130 (bfin_regs_info): Turn into ...
2131 (bfin_target::get_regs_info): ...this.
2132 (the_low_target): Remove the op field.
2133 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2134 (cris_regs_info): Turn into ...
2135 (cris_target::get_regs_info): ...this.
2136 (the_low_target): Remove the op field.
2137 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2139 (crisv32_regs_info): Turn into ...
2140 (crisv32_target::get_regs_info): ...this.
2141 (the_low_target): Remove the op field.
2142 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2143 (ia64_regs_info): Turn into ...
2144 (ia64_target::get_regs_info): ...this.
2145 (the_low_target): Remove the op field.
2146 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2147 (m32r_regs_info): Turn into ...
2148 (m32r_target::get_regs_info): ...this.
2149 (the_low_target): Remove the op field.
2150 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2151 (m68k_regs_info): Turn into ...
2152 (m68k_target::get_regs_info): ...this.
2153 (the_low_target): Remove the op field.
2154 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2155 (mips_regs_info): Turn into ...
2156 (mips_target::get_regs_info): ...this.
2157 (the_low_target): Remove the op field.
2158 (get_usrregs_info): Update the call to the op.
2159 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2160 (nios2_regs_info): Turn into ...
2161 (nios2_target::get_regs_info): ...this.
2162 (the_low_target): Remove the op field.
2163 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2164 (ppc_regs_info): Turn into ...
2165 (ppc_target::get_regs_info): ...this.
2166 (the_low_target): Remove the op field.
2167 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2168 (riscv_regs_info): Turn into ...
2169 (riscv_target::get_regs_info): ...this.
2170 (the_low_target): Remove the op field.
2171 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2172 (s390_regs_info): Turn into ...
2173 (s390_target::get_regs_info): ...this.
2174 (the_low_target): Remove the op field.
2175 (s390_collect_ptrace_register)
2176 (s390_supply_ptrace_register)
2177 (s390_fill_gregset): Update the call to the op.
2178 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2179 (sh_regs_info): Turn into ...
2180 (sh_target::get_regs_info): ...this.
2181 (the_low_target): Remove the op field.
2182 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2183 (sparc_regs_info): Turn into ...
2184 (sparc_target::get_regs_info): ...this.
2185 (the_low_target): Remove the op field.
2186 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2187 (tic6x_regs_info): Turn into ...
2188 (tic6x_target::get_regs_info): ...this.
2189 (the_low_target): Remove the op field.
2190 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2191 (tile_regs_info): Turn into ...
2192 (tile_target::get_regs_info): ...this.
2193 (the_low_target): Remove the op field.
2194 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2196 (xtensa_regs_info): Turn into ...
2197 (xtensa_target::get_regs_info): ...this.
2198 (the_low_target): Remove the op field.
2200 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2202 Turn the 'arch_setup' linux target op into a method of
2203 linux_process_target.
2205 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2206 (class linux_process_target) <arch_setup_thread>
2207 <low_arch_setup>: New declarations.
2208 * linux-low.cc (linux_arch_setup): Delete.
2209 (linux_arch_setup_thread): Turn into...
2210 (linux_process_target::arch_setup_thread): ... this.
2212 Update the callers below.
2214 (linux_process_target::handle_extended_wait)
2215 (linux_process_target::post_create_inferior)
2216 (linux_process_target::filter_event)
2218 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2220 (x86_linux_update_xmltarget): Turn into...
2221 (x86_target::update_xmltarget): ...this.
2222 (x86_linux_process_qsupported): Update the call to
2223 x86_linux_update_xmltarget.
2224 (x86_arch_setup): Turn into ...
2225 (x86_target::low_arch_setup): ...this.
2226 (the_low_target): Remove the op field.
2227 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2229 (aarch64_arch_setup): Turn into ...
2230 (aarch64_target::low_arch_setup): ...this.
2231 (the_low_target): Remove the op field.
2232 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2234 (arm_arch_setup): Turn into ...
2235 (arm_target::low_arch_setup): ...this.
2236 (the_low_target): Remove the op field.
2237 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2239 (bfin_arch_setup): Turn into ...
2240 (bfin_target::low_arch_setup): ...this.
2241 (the_low_target): Remove the op field.
2242 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2244 (cris_arch_setup): Turn into ...
2245 (cris_target::low_arch_setup): ...this.
2246 (the_low_target): Remove the op field.
2247 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2249 (crisv32_arch_setup): Turn into ...
2250 (crisv32_target::low_arch_setup): ...this.
2251 (the_low_target): Remove the op field.
2252 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2254 (ia64_arch_setup): Turn into ...
2255 (ia64_target::low_arch_setup): ...this.
2256 (the_low_target): Remove the op field.
2257 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2259 (m32r_arch_setup): Turn into ...
2260 (m32r_target::low_arch_setup): ...this.
2261 (the_low_target): Remove the op field.
2262 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2264 (m68k_arch_setup): Turn into ...
2265 (m68k_target::low_arch_setup): ...this.
2266 (the_low_target): Remove the op field.
2267 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2269 (mips_arch_setup): Turn into ...
2270 (mips_target::low_arch_setup): ...this.
2271 (the_low_target): Remove the op field.
2272 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2274 (nios2_arch_setup): Turn into ...
2275 (nios2_target::low_arch_setup): ...this.
2276 (the_low_target): Remove the op field.
2277 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2279 (ppc_arch_setup): Turn into ...
2280 (ppc_target::low_arch_setup): ...this.
2281 (the_low_target): Remove the op field.
2282 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2284 (riscv_arch_setup): Turn into ...
2285 (riscv_target::low_arch_setup): ...this.
2286 (the_low_target): Remove the op field.
2287 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2289 (s390_arch_setup): Turn into ...
2290 (s390_target::low_arch_setup): ...this.
2291 (the_low_target): Remove the op field.
2292 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2294 (sh_arch_setup): Turn into ...
2295 (sh_target::low_arch_setup): ...this.
2296 (the_low_target): Remove the op field.
2297 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2299 (sparc_arch_setup): Turn into ...
2300 (sparc_target::low_arch_setup): ...this.
2301 (the_low_target): Remove the op field.
2302 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2304 (tic6x_arch_setup): Turn into ...
2305 (tic6x_target::low_arch_setup): ...this.
2306 (the_low_target): Remove the op field.
2307 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2309 (tile_arch_setup): Turn into ...
2310 (tile_target::low_arch_setup): ...this.
2311 (the_low_target): Remove the op field.
2312 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2314 (xtensa_arch_setup): Turn into ...
2315 (xtensa_target::low_arch_setup): ...this.
2316 (the_low_target): Remove the op field.
2318 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2320 * linux-low.h (the_linux_target): New extern declaration.
2321 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2323 (the_linux_target): Remove.
2324 * linux-x86-low.cc (class x86_target): New class.
2325 (the_x86_target): New static object.
2326 (the_linux_target): Define as pointer to the_x86_target.
2327 * linux-aarch64-low.cc (class aarch64_target): New class.
2328 (the_aarch64_target): New static object.
2329 (the_linux_target): Define as pointer to the_aarch64_target.
2330 * linux-arm-low.cc (class arm_target): New class.
2331 (the_arm_target): New static object.
2332 (the_linux_target): Define as pointer to the_arm_target.
2333 * linux-bfin-low.cc (class bfin_target): New class.
2334 (the_bfin_target): New static object.
2335 (the_linux_target): Define as pointer to the_bfin_target.
2336 * linux-cris-low.cc (class cris_target): New class.
2337 (the_cris_target): New static object.
2338 (the_linux_target): Define as pointer to the_cris_target.
2339 * linux-crisv32-low.cc (class crisv32_target): New class.
2340 (the_crisv32_target): New static object.
2341 (the_linux_target): Define as pointer to the_crisv32_target.
2342 * linux-ia64-low.cc (class ia64_target): New class.
2343 (the_ia64_target): New static object.
2344 (the_linux_target): Define as pointer to the_ia64_target.
2345 * linux-m32r-low.cc (class m32r_target): New class.
2346 (the_m32r_target): New static object.
2347 (the_linux_target): Define as pointer to the_m32r_target.
2348 * linux-m68k-low.cc (class m68k_target): New class.
2349 (the_m68k_target): New static object.
2350 (the_linux_target): Define as pointer to the_m68k_target.
2351 * linux-mips-low.cc (class mips_target): New class.
2352 (the_mips_target): New static object.
2353 (the_linux_target): Define as pointer to the_mips_target.
2354 * linux-nios2-low.cc (class nios2_target): New class.
2355 (the_nios2_target): New static object.
2356 (the_linux_target): Define as pointer to the_nios2_target.
2357 * linux-ppc-low.cc (class ppc_target): New class.
2358 (the_ppc_target): New static object.
2359 (the_linux_target): Define as pointer to the_ppc_target.
2360 * linux-riscv-low.cc (class riscv_target): New class.
2361 (the_riscv_target): New static object.
2362 (the_linux_target): Define as pointer to the_riscv_target.
2363 * linux-s390-low.cc (class s390_target): New class.
2364 (the_s390_target): New static object.
2365 (the_linux_target): Define as pointer to the_s390_target.
2366 * linux-sh-low.cc (class sh_target): New class.
2367 (the_sh_target): New static object.
2368 (the_linux_target): Define as pointer to the_sh_target.
2369 * linux-sparc-low.cc (class sparc_target): New class.
2370 (the_sparc_target): New static object.
2371 (the_linux_target): Define as pointer to the_sparc_target.
2372 * linux-tic6x-low.cc (class tic6x_target): New class.
2373 (the_tic6x_target): New static object.
2374 (the_linux_target): Define as pointer to the_tic6x_target.
2375 * linux-tile-low.cc (class tile_target): New class.
2376 (the_tile_target): New static object.
2377 (the_linux_target): Define as pointer to the_tile_target.
2378 * linux-xtensa-low.cc (class xtensa_target): New class.
2379 (the_xtensa_target): New static object.
2380 (the_linux_target): Define as pointer to the_xtensa_target.
2382 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2384 Turn some static functions in linux-low.cc into private methods of
2385 linux_process_target.
2387 * linux-low.cc (handle_extended_wait): Turn into ...
2388 (linux_process_target::handle_extended_wait): ...this. Call
2389 'mourn' on 'this' object instead of 'the_target'.
2390 (maybe_move_out_of_jump_pad): Turn into...
2391 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2392 (linux_low_filter_event): Turn into...
2393 (linux_process_target::filter_event): ...this.
2394 (linux_wait_for_event_filtered): Turn into...
2395 (linux_process_target::wait_for_event_filtered): ...this.
2396 (linux_wait_for_event): Turn into...
2397 (linux_process_target::wait_for_event): ...this.
2398 (linux_wait_1): Turn into...
2399 (linux_process_target::wait_1): ...this.
2400 (wait_for_sigstop): Turn into...
2401 (linux_process_target::wait_for_sigstop): ...this.
2402 (move_out_of_jump_pad_callback): Turn into...
2403 (linux_process_target::move_out_of_jump_pad): ...this.
2404 (stop_all_lwps): Turn into...
2405 (linux_process_target::stop_all_lwps): ...this.
2406 (start_step_over): Turn into...
2407 (linux_process_target::start_step_over): ...this.
2408 (complete_ongoing_step_over): Turn into...
2409 (linux_process_target::complete_ongoing_step_over): ...this.
2410 (proceed_all_lwps): Turn into...
2411 (linux_process_target::proceed_all_lwps): ...this.
2412 (unstop_all_lwps): Turn into...
2413 (linux_process_target::unstop_all_lwps): ...this.
2415 * linux-low.h (class linux_process_target)
2416 <handle_extended_wait>
2417 <maybe_move_out_of_jump_pad>
2419 <wait_for_event_filtered>
2423 <move_out_of_jump_pad>
2426 <complete_ongoing_step_over>
2428 <unstop_all_lwps>: Declare.
2430 Update the callers below.
2432 * linux-low.cc (linux_process_target::attach): Update.
2433 (linux_process_target::stabilize_threads): Ditto.
2434 (linux_process_target::wait): Ditto.
2436 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2438 * linux-low.h (struct linux_target_ops): Update the comment for
2439 'cannot_store_register' to return 0 or 1.
2440 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2443 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2445 * config.in: Re-generate.
2446 * configure: Re-generate.
2448 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2450 * regcache.cc (find_register_by_number): Update.
2451 * tdesc.cc (init_target_desc): Likewise.
2452 * tdesc.h (target_desc::reg_defs): Likewise.
2454 2020-03-12 Tom Tromey <tom@tromey.com>
2456 * configure: Rebuild.
2457 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2458 (WIN32APILIBS): New subst.
2459 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2461 (gdbsupport/%.o): Remove target.
2462 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2463 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2464 (WIN32APILIBS): New variable.
2465 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2466 (gdbreplay$(EXEEXT)): Likewise.
2468 2020-03-12 Tom Tromey <tom@tromey.com>
2470 * config.in, configure: Rebuild.
2471 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2472 * acinclude.m4: Include gettext-sister.m4.
2473 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2475 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2476 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2478 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2480 * acinclude.m4: Update path to selftest.m4.
2482 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2484 * configure.ac: Don't source bfd/development.sh, move
2485 GDB_AC_COMMON higher.
2486 * configure: Re-generate.
2488 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2490 * configure: Re-generate.
2492 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2494 * configure: Re-generate.
2496 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2498 * .dir-locals.el: New file.
2500 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2502 * .gitattributes: New file.
2504 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2506 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2507 reply into an S reply.
2508 * server.cc (disable_packet_T): New global.
2509 (captured_main): Set new global when appropriate.
2510 * server.h (disable_packet_T): Declare.
2512 2020-02-21 Tom Tromey <tom@tromey.com>
2514 * Makefile.in (mostlyclean): New target.
2516 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2518 * target.h (struct process_stratum_target): Remove.
2519 (class process_target): Rename to ...
2520 (class process_stratum_target): ... this.
2521 * linux-low.h (class linux_process_target): Derive from
2522 'process_stratum_target'.
2523 * linux-low.cc (linux_target_ops): Remove.
2524 (initialize_low): Set the_target to the singleton instance of
2525 linux_process_target.
2526 * lynx-low.h (class lynx_process_target): Derive from
2527 'process_stratum_target'.
2528 * lynx-low.cc (lynx_target_ops): Remove.
2529 (initialize_low): Set the_target to the singleton instance of
2530 lynx_process_target.
2531 * nto-low.h (class nto_process_target): Derive from
2532 'process_stratum_target'.
2533 * nto-low.cc (nto_target_ops): Remove.
2534 (initialize_low): Set the_target to the singleton instance of
2536 * win32-low.h (class win32_process_target): Derive from
2537 'process_stratum_target'.
2538 * win32-low.cc (win32_target_ops): Remove.
2539 (initialize_low): Set the_target to the singleton instance of
2540 win32_process_target.
2542 Replace 'the_target->pt' with 'the_target' in the uses below.
2544 * hostio.cc (hostio_error)
2549 * linux-aarch32-low.cc (arm_breakpoint_at)
2550 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2551 * linux-arm-low.cc (arm_sigreturn_next_pc)
2553 (arm_get_syscall_trapinfo)
2554 * linux-cris-low.cc (cris_breakpoint_at)
2555 * linux-crisv32-low.cc (cris_breakpoint_at)
2556 * linux-low.cc (handle_extended_wait)
2559 (linux_process_target::breakpoint_kind_from_pc)
2561 * linux-m32r-low.cc (m32r_breakpoint_at)
2562 * linux-mips-low.cc (mips_breakpoint_at)
2563 * linux-nios2-low.cc (nios2_breakpoint_at)
2564 * linux-ppc-low.cc (ppc_breakpoint_at)
2565 * linux-s390-low.cc (s390_get_hwcap)
2566 * linux-sh-low.cc (sh_breakpoint_at)
2567 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2568 (sparc_store_gregset_from_stack)
2569 (sparc_breakpoint_at)
2570 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2571 * linux-tile-low.cc (tile_breakpoint_at)
2572 * linux-x86-low.cc (x86_breakpoint_at)
2573 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2574 * mem-break.cc (bp_size)
2576 (insert_memory_breakpoint)
2577 (set_raw_breakpoint_at)
2578 (delete_raw_breakpoint)
2580 (uninsert_raw_breakpoint)
2581 (reinsert_raw_breakpoint)
2582 (validate_inserted_breakpoint)
2583 * regcache.cc (regcache_read_pc)
2585 * remote-utils.cc (putpkt_binary_1)
2588 (prepare_resume_reply)
2589 * server.cc (handle_general_set)
2592 (handle_qxfer_exec_file)
2593 (handle_qxfer_libraries_svr4)
2594 (handle_qxfer_osdata)
2595 (handle_qxfer_siginfo)
2596 (handle_qxfer_fdpic)
2600 (queue_stop_reply_callback)
2602 * target.cc (prepare_to_access_memory)
2603 (done_accessing_memory)
2604 (read_inferior_memory)
2605 (target_write_memory)
2606 (target_stop_and_wait)
2608 (target_mourn_inferior)
2609 (target_continue_no_signal)
2611 (target_supports_multi_process)
2614 (target_create_inferior)
2615 (target_post_create_inferior)
2617 (target_supports_fork_events)
2618 (target_supports_vfork_events)
2619 (target_supports_exec_events)
2620 (target_handle_new_gdb_connection)
2623 (fetch_inferior_registers)
2624 (store_inferior_registers)
2626 (target_supports_non_stop)
2628 (target_process_qsupported)
2629 (target_supports_catch_syscall)
2630 (target_get_ipa_tdesc_idx)
2631 (target_supports_tracepoints)
2632 (target_supports_fast_tracepoints)
2633 (target_get_min_fast_tracepoint_insn_len)
2634 (target_thread_stopped)
2636 (target_unpause_all)
2637 (target_stabilize_threads)
2638 (target_install_fast_tracepoint_jump_pad)
2640 (target_supports_disable_randomization)
2641 (target_supports_agent)
2642 (target_enable_btrace)
2643 (target_disable_btrace)
2644 (target_read_btrace)
2645 (target_read_btrace_conf)
2646 (target_supports_range_stepping)
2647 (target_supports_stopped_by_sw_breakpoint)
2648 (target_stopped_by_sw_breakpoint)
2649 (target_supports_stopped_by_hw_breakpoint)
2650 (target_supports_hardware_single_step)
2651 (target_stopped_by_hw_breakpoint)
2652 (target_breakpoint_kind_from_pc)
2653 (target_breakpoint_kind_from_current_state)
2654 (target_supports_software_single_step)
2655 (target_core_of_thread)
2656 (target_thread_name)
2657 (target_thread_handle)
2658 * win32-low.cc (do_initial_child_stuff)
2660 Rename target op default definitions listed below.
2662 * target.cc (process_target::post_create_inferior): Rename as ...
2663 (process_stratum_target::post_create_inferior): ... this.
2664 (process_target::prepare_to_access_memory): Rename as ...
2665 (process_stratum_target::prepare_to_access_memory): ... this.
2666 (process_target::done_accessing_memory): Rename as ...
2667 (process_stratum_target::done_accessing_memory): ... this.
2668 (process_target::look_up_symbols): Rename as ...
2669 (process_stratum_target::look_up_symbols): ... this.
2670 (process_target::supports_read_auxv): Rename as ...
2671 (process_stratum_target::supports_read_auxv): ... this.
2672 (process_target::read_auxv): Rename as ...
2673 (process_stratum_target::read_auxv): ... this.
2674 (process_target::supports_z_point_type): Rename as ...
2675 (process_stratum_target::supports_z_point_type): ... this.
2676 (process_target::insert_point): Rename as ...
2677 (process_stratum_target::insert_point): ... this.
2678 (process_target::remove_point): Rename as ...
2679 (process_stratum_target::remove_point): ... this.
2680 (process_target::stopped_by_sw_breakpoint): Rename as ...
2681 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2682 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2683 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2684 (process_target::stopped_by_hw_breakpoint): Rename as ...
2685 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2686 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2687 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2688 (process_target::supports_hardware_single_step): Rename as ...
2689 (process_stratum_target::supports_hardware_single_step): ... this.
2690 (process_target::stopped_by_watchpoint): Rename as ...
2691 (process_stratum_target::stopped_by_watchpoint): ... this.
2692 (process_target::stopped_data_address): Rename as ...
2693 (process_stratum_target::stopped_data_address): ... this.
2694 (process_target::supports_read_offsets): Rename as ...
2695 (process_stratum_target::supports_read_offsets): ... this.
2696 (process_target::read_offsets): Rename as ...
2697 (process_stratum_target::read_offsets): ... this.
2698 (process_target::supports_get_tls_address): Rename as ...
2699 (process_stratum_target::supports_get_tls_address): ... this.
2700 (process_target::get_tls_address): Rename as ...
2701 (process_stratum_target::get_tls_address): ... this.
2702 (process_target::hostio_last_error): Rename as ...
2703 (process_stratum_target::hostio_last_error): ... this.
2704 (process_target::supports_qxfer_osdata): Rename as ...
2705 (process_stratum_target::supports_qxfer_osdata): ... this.
2706 (process_target::qxfer_osdata): Rename as ...
2707 (process_stratum_target::qxfer_osdata): ... this.
2708 (process_target::supports_qxfer_siginfo): Rename as ...
2709 (process_stratum_target::supports_qxfer_siginfo): ... this.
2710 (process_target::qxfer_siginfo): Rename as ...
2711 (process_stratum_target::qxfer_siginfo): ... this.
2712 (process_target::supports_non_stop): Rename as ...
2713 (process_stratum_target::supports_non_stop): ... this.
2714 (process_target::async): Rename as ...
2715 (process_stratum_target::async): ... this.
2716 (process_target::start_non_stop): Rename as ...
2717 (process_stratum_target::start_non_stop): ... this.
2718 (process_target::supports_multi_process): Rename as ...
2719 (process_stratum_target::supports_multi_process): ... this.
2720 (process_target::supports_fork_events): Rename as ...
2721 (process_stratum_target::supports_fork_events): ... this.
2722 (process_target::supports_vfork_events): Rename as ...
2723 (process_stratum_target::supports_vfork_events): ... this.
2724 (process_target::supports_exec_events): Rename as ...
2725 (process_stratum_target::supports_exec_events): ... this.
2726 (process_target::handle_new_gdb_connection): Rename as ...
2727 (process_stratum_target::handle_new_gdb_connection): ... this.
2728 (process_target::handle_monitor_command): Rename as ...
2729 (process_stratum_target::handle_monitor_command): ... this.
2730 (process_target::core_of_thread): Rename as ...
2731 (process_stratum_target::core_of_thread): ... this.
2732 (process_target::supports_read_loadmap): Rename as ...
2733 (process_stratum_target::supports_read_loadmap): ... this.
2734 (process_target::read_loadmap): Rename as ...
2735 (process_stratum_target::read_loadmap): ... this.
2736 (process_target::process_qsupported): Rename as ...
2737 (process_stratum_target::process_qsupported): ... this.
2738 (process_target::supports_tracepoints): Rename as ...
2739 (process_stratum_target::supports_tracepoints): ... this.
2740 (process_target::read_pc): Rename as ...
2741 (process_stratum_target::read_pc): ... this.
2742 (process_target::write_pc): Rename as ...
2743 (process_stratum_target::write_pc): ... this.
2744 (process_target::supports_thread_stopped): Rename as ...
2745 (process_stratum_target::supports_thread_stopped): ... this.
2746 (process_target::thread_stopped): Rename as ...
2747 (process_stratum_target::thread_stopped): ... this.
2748 (process_target::supports_get_tib_address): Rename as ...
2749 (process_stratum_target::supports_get_tib_address): ... this.
2750 (process_target::get_tib_address): Rename as ...
2751 (process_stratum_target::get_tib_address): ... this.
2752 (process_target::pause_all): Rename as ...
2753 (process_stratum_target::pause_all): ... this.
2754 (process_target::unpause_all): Rename as ...
2755 (process_stratum_target::unpause_all): ... this.
2756 (process_target::stabilize_threads): Rename as ...
2757 (process_stratum_target::stabilize_threads): ... this.
2758 (process_target::supports_fast_tracepoints): Rename as ...
2759 (process_stratum_target::supports_fast_tracepoints): ... this.
2760 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2761 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2762 (process_target::emit_ops): Rename as ...
2763 (process_stratum_target::emit_ops): ... this.
2764 (process_target::supports_disable_randomization): Rename as ...
2765 (process_stratum_target::supports_disable_randomization): ... this.
2766 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2767 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2768 (process_target::qxfer_libraries_svr4): Rename as ...
2769 (process_stratum_target::qxfer_libraries_svr4): ... this.
2770 (process_target::supports_agent): Rename as ...
2771 (process_stratum_target::supports_agent): ... this.
2772 (process_target::enable_btrace): Rename as ...
2773 (process_stratum_target::enable_btrace): ... this.
2774 (process_target::disable_btrace): Rename as ...
2775 (process_stratum_target::disable_btrace): ... this.
2776 (process_target::read_btrace): Rename as ...
2777 (process_stratum_target::read_btrace): ... this.
2778 (process_target::read_btrace_conf): Rename as ...
2779 (process_stratum_target::read_btrace_conf): ... this.
2780 (process_target::supports_range_stepping): Rename as ...
2781 (process_stratum_target::supports_range_stepping): ... this.
2782 (process_target::supports_pid_to_exec_file): Rename as ...
2783 (process_stratum_target::supports_pid_to_exec_file): ... this.
2784 (process_target::pid_to_exec_file): Rename as ...
2785 (process_stratum_target::pid_to_exec_file): ... this.
2786 (process_target::supports_multifs): Rename as ...
2787 (process_stratum_target::supports_multifs): ... this.
2788 (process_target::multifs_open): Rename as ...
2789 (process_stratum_target::multifs_open): ... this.
2790 (process_target::multifs_unlink): Rename as ...
2791 (process_stratum_target::multifs_unlink): ... this.
2792 (process_target::multifs_readlink): Rename as ...
2793 (process_stratum_target::multifs_readlink): ... this.
2794 (process_target::breakpoint_kind_from_pc): Rename as ...
2795 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2796 (process_target::breakpoint_kind_from_current_state): Rename as ...
2797 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2798 (process_target::thread_name): Rename as ...
2799 (process_stratum_target::thread_name): ... this.
2800 (process_target::thread_handle): Rename as ...
2801 (process_stratum_target::thread_handle): ... this.
2802 (process_target::supports_software_single_step): Rename as ...
2803 (process_stratum_target::supports_software_single_step): ... this.
2804 (process_target::supports_catch_syscall): Rename as ...
2805 (process_stratum_target::supports_catch_syscall): ... this.
2806 (process_target::get_ipa_tdesc_idx): Rename as ...
2807 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2809 2020-02-20 Pedro Alves <palves@redhat.com>
2811 * target.cc (set_target_ops): Simply copy the given target pointer
2812 instead of creating a copy of the pointed object.
2814 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2816 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2819 * target.h (struct process_stratum_target): Remove the target op.
2820 (class process_target): Add the target op.
2821 (target_get_ipa_tdesc_idx): Update the macro.
2822 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2824 Update the derived classes and callers below.
2826 * linux-low.cc (linux_target_ops): Update.
2827 (linux_get_ipa_tdesc_idx): Turn into ...
2828 (linux_process_target::get_ipa_tdesc_idx): ... this.
2829 * linux-low.h (class linux_process_target): Update.
2830 * lynx-low.cc (lynx_target_ops): Update.
2831 * nto-low.cc (nto_target_ops): Update.
2832 * win32-low.cc (win32_target_ops): Update.
2834 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2836 Turn process_stratum_target's supports_catch_syscall op into a
2837 method of process_target.
2839 * target.h (struct process_stratum_target): Remove the target op.
2840 (class process_target): Add the target op.
2841 (target_supports_catch_syscall): Update the macro.
2842 * target.cc (process_target::supports_catch_syscall): Define.
2844 Update the derived classes and callers below.
2846 * linux-low.cc (linux_target_ops): Update.
2847 (linux_supports_catch_syscall): Turn into ...
2848 (linux_process_target::supports_catch_syscall): ... this.
2849 * linux-low.h (class linux_process_target): Update.
2850 * lynx-low.cc (lynx_target_ops): Update.
2851 * nto-low.cc (nto_target_ops): Update.
2852 * win32-low.cc (win32_target_ops): Update.
2854 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2856 Turn process_stratum_target's supports_software_single_step op
2857 into a method of process_target.
2859 * target.h (struct process_stratum_target): Remove the target op.
2860 (class process_target): Add the target op.
2861 (target_supports_software_single_step): Update the macro.
2862 * target.cc (process_target::supports_software_single_step): Define.
2864 Update the derived classes and callers below.
2866 * linux-low.cc (linux_target_ops): Update.
2867 (linux_supports_software_single_step): Turn into ...
2868 (linux_process_target::supports_software_single_step): ... this.
2869 * linux-low.h (class linux_process_target): Update.
2870 * lynx-low.cc (lynx_target_ops): Update.
2871 * nto-low.cc (nto_target_ops): Update.
2872 * win32-low.cc (win32_target_ops): Update.
2874 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2876 Turn process_stratum_target's thread_name and thread_handle ops
2877 into methods of process_target.
2879 * target.h (struct process_stratum_target): Remove the target ops.
2880 (class process_target): Add the target ops.
2881 (target_thread_name): Update the macro.
2882 (target_thread_handle): Update the macro.
2883 * target.cc (process_target::thread_name): Define.
2884 (process_target::thread_handle): Define.
2886 Update the derived classes and callers below.
2888 * linux-low.cc (linux_target_ops): Update.
2889 (linux_process_target::thread_name): Define.
2890 (linux_process_target::thread_handle): Define.
2891 * linux-low.h (class linux_process_target): Update.
2892 * lynx-low.cc (lynx_target_ops): Update.
2893 * nto-low.cc (nto_target_ops): Update.
2894 * win32-low.cc (win32_target_ops): Update.
2896 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898 Turn process_stratum_target's breakpoint_kind_from_pc,
2899 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2900 ops into methods of process_target.
2902 * target.h (struct process_stratum_target): Remove the target op.
2903 (class process_target): Add the target op.
2904 (target_breakpoint_kind_from_pc): Update the macro.
2905 (target_breakpoint_kind_from_current_state): Update the macro.
2906 (default_breakpoint_kind_from_pc): Remove declaration.
2907 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2908 (process_target::breakpoint_kind_from_pc): ... this.
2909 (process_target::breakpoint_kind_from_current_state): Define.
2911 Update the derived classes and callers below.
2913 * mem-break.cc (bp_size): Update.
2914 (bp_opcode): Update.
2915 * linux-low.cc (linux_target_ops): Update.
2916 (linux_wait_1): Update.
2917 (linux_breakpoint_kind_from_pc): Turn into ...
2918 (linux_process_target::breakpoint_kind_from_pc): ... this.
2919 (linux_sw_breakpoint_from_kind): Turn into ...
2920 (linux_process_target::sw_breakpoint_from_kind): ... this.
2921 (linux_breakpoint_kind_from_current_state): Turn into ...
2922 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2923 * linux-low.h (class linux_process_target): Update.
2924 * lynx-low.cc (lynx_target_ops): Update.
2925 (lynx_process_target::sw_breakpoint_from_kind): Define.
2926 * lynx-low.h (class lynx_process_target): Update.
2927 * nto-low.cc (nto_target_ops): Update.
2928 (nto_sw_breakpoint_from_kind): Turn into ...
2929 (nto_process_target::sw_breakpoint_from_kind): ... this.
2930 * nto-low.h (class nto_process_target): Update.
2931 * win32-low.cc (win32_target_ops): Update.
2932 (win32_sw_breakpoint_from_kind): Turn into ...
2933 (win32_process_target::sw_breakpoint_from_kind): ... this.
2934 * win32-low.h (class win32_process_target): Update.
2936 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2938 Turn process_stratum_target's multifs_open, multifs_readlink,
2939 multifs_unlink ops into methods of process_target.
2941 * target.h (struct process_stratum_target): Remove the target ops.
2942 (class process_target): Add the target ops. Also add
2944 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2946 (process_target::supports_multifs): Define.
2947 (process_target::multifs_open): Define.
2948 (process_target::multifs_readlink): Define.
2949 (process_target::multifs_unlink): Define.
2951 Update the derived classes and callers below.
2953 * hostio.cc (handle_setfs): Update.
2954 (handle_open): Update.
2955 (handle_unlink): Update.
2956 (handle_readlink): Update.
2957 * linux-low.cc (linux_target_ops): Update.
2958 (linux_process_target::supports_multifs): Define.
2959 (linux_process_target::multifs_open): Define.
2960 (linux_process_target::multifs_readlink): Define.
2961 (linux_process_target::multifs_unlink): Define.
2962 * linux-low.h (class linux_process_target): Update.
2963 * lynx-low.cc (lynx_target_ops): Update.
2964 * nto-low.cc (nto_target_ops): Update.
2965 * win32-low.cc (win32_target_ops): Update.
2967 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2969 Turn process_stratum_target's pid_to_exec_file op into a method
2972 * target.h (struct process_stratum_target): Remove the target op.
2973 (class process_target): Add the target op. Also add
2974 'supports_pid_to_exec_file'.
2975 * target.cc (process_target::pid_to_exec_file): Define.
2976 (process_target::supports_pid_to_exec_file): Define.
2978 Update the derived classes and callers below.
2980 * server.cc (handle_qxfer_exec_file): Update.
2981 (handle_query): Update.
2982 * linux-low.cc (linux_target_ops): Update.
2983 (linux_process_target::supports_pid_to_exec_file): Define.
2984 (linux_process_target::pid_to_exec_file): Define.
2985 * linux-low.h (class linux_process_target): Update.
2986 * lynx-low.cc (lynx_target_ops): Update.
2987 * nto-low.cc (nto_target_ops): Update.
2988 * win32-low.cc (win32_target_ops): Update.
2990 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2992 Turn process_stratum_target's supports_range_stepping op into a
2993 method of process_target.
2995 * target.h (struct process_stratum_target): Remove the target op.
2996 (class process_target): Add the target op.
2997 (target_supports_range_stepping): Update the macro.
2998 * target.cc (process_target::supports_range_stepping): Define.
3000 Update the derived classes and callers below.
3002 * linux-low.cc (linux_target_ops): Update.
3003 (linux_supports_range_stepping): Turn into ...
3004 (linux_process_target::supports_range_stepping): ... this.
3005 * linux-low.h (class linux_process_target): Update.
3006 * lynx-low.cc (lynx_target_ops): Update.
3007 * nto-low.cc (nto_target_ops): Update.
3008 * win32-low.cc (win32_target_ops): Update.
3010 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3012 Turn process_stratum_target's btrace-related ops (enable_btrace,
3013 disable_btrace, read_btrace, read_btrace_conf) into methods of
3016 * target.h (struct process_stratum_target): Remove the target ops.
3017 (class process_target): Add the target ops.
3018 (target_enable_btrace): Update.
3019 (target_disable_btrace): Update.
3020 (target_read_btrace): Update.
3021 (target_read_btrace_conf): Update.
3022 * target.cc (process_target::enable_btrace): Define.
3023 (process_target::disable_btrace): Define.
3024 (process_target::read_btrace): Define.
3025 (process_target::read_btrace_conf): Define.
3027 Update the derived classes and callers below.
3029 * linux-low.cc (linux_target_ops): Update.
3030 (linux_process_target:enable_btrace): Define as a wrapper around
3031 linux_enable_btrace.
3032 (linux_low_disable_btrace): Turn into ...
3033 (linux_process_target::disable_btrace): ... this.
3034 (linux_low_read_btrace): Turn into ...
3035 (linux_process_target::read_btrace): ... this.
3036 (linux_low_btrace_conf): Turn into ...
3037 (linux_process_target::read_btrace_conf): ... this.
3038 * linux-low.h (class linux_process_target): Update.
3039 * lynx-low.cc (lynx_target_ops): Update.
3040 * nto-low.cc (nto_target_ops): Update.
3041 * win32-low.cc (win32_target_ops): Update.
3043 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3045 Turn process_stratum_target's supports_agent op into a method of
3048 * target.h (struct process_stratum_target): Remove the target op.
3049 (class process_target): Add the target op.
3050 (target_supports_agent): Update the macro.
3051 * target.cc (process_target::supports_agent): Define.
3053 Update the derived classes and callers below.
3055 * linux-low.cc (linux_target_ops): Update.
3056 (linux_supports_agent): Turn into ...
3057 (linux_process_target::supports_agent): ... this.
3058 * linux-low.h (class linux_process_target): Update.
3059 * lynx-low.cc (lynx_target_ops): Update.
3060 * nto-low.cc (nto_target_ops): Update.
3061 * win32-low.cc (win32_target_ops): Update.
3063 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3065 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3066 method of process_target.
3068 * target.h (struct process_stratum_target): Remove the target op.
3069 (class process_target): Add the target op. Also add
3070 'supports_qxfer_libraries_svr4'.
3071 * target.cc (process_target::qxfer_libraries_svr4): Define.
3072 (process_target::supports_qxfer_libraries_svr4): Define.
3074 Update the derived classes and callers below.
3076 * server.cc (handle_qxfer_libraries_svr4): Update.
3077 (handle_query): Update.
3078 * linux-low.cc (linux_target_ops): Update.
3079 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3080 (linux_qxfer_libraries_svr4): Turn into ...
3081 (linux_process_target::qxfer_libraries_svr4): ... this.
3082 * linux-low.h (class linux_process_target): Update.
3083 * lynx-low.cc (lynx_target_ops): Update.
3084 * nto-low.cc (nto_target_ops): Update.
3085 * win32-low.cc (win32_target_ops): Update.
3087 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3089 Turn process_stratum_target's supports_disable_randomization op
3090 into a method of process_target.
3092 * target.h (struct process_stratum_target): Remove the target op.
3093 (class process_target): Add the target op.
3094 (target_supports_disable_randomization): Update the macro.
3095 * target.cc (process_target::supports_disable_randomization): Define.
3097 Update the derived classes and callers below.
3099 * linux-low.cc (linux_target_ops): Update.
3100 (linux_supports_disable_randomization): Turn into ...
3101 (linux_process_target::supports_disable_randomization): ... this.
3102 * linux-low.h (class linux_process_target): Update.
3103 * lynx-low.cc (lynx_target_ops): Update.
3104 * nto-low.cc (nto_target_ops): Update.
3105 * win32-low.cc (win32_target_ops): Update.
3107 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3109 Turn process_stratum_target's emit_ops op into a method of
3112 * target.h (struct process_stratum_target): Remove the target op.
3113 (class process_target): Add the target op.
3114 (target_emit_ops): Update the macro.
3115 * target.cc (process_target::emit_ops): Define.
3117 Update the derived classes and callers below.
3119 * linux-low.cc (linux_target_ops): Update.
3120 (linux_emit_ops): Turn into ...
3121 (linux_process_target::emit_ops): ... this.
3122 * linux-low.h (class linux_process_target): Update.
3123 * lynx-low.cc (lynx_target_ops): Update.
3124 * nto-low.cc (nto_target_ops): Update.
3125 * win32-low.cc (win32_target_ops): Update.
3127 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3129 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3130 and get_min_fast_tracepoint_insn_len ops into methods of
3133 * target.h (struct process_stratum_target): Remove the target ops.
3134 (class process_target): Add the target ops. Also add
3135 'supports_fast_tracepoints'.
3136 (target_supports_fast_tracepoints): Update the macro.
3137 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3138 (install_fast_tracepoint_jump_pad): Update and rename the macro
3140 (target_install_fast_tracepoint_jump_pad): ... this.
3141 * target.cc (process_target::supports_fast_tracepoints): Define.
3142 (process_target::install_fast_tracepoint_jump_pad): Define.
3143 (process_target::get_min_fast_tracepoint_insn_len): Define.
3145 Update the derived classes and callers below.
3147 * tracepoint.cc (install_fast_tracepoint): Update.
3148 * linux-low.cc (linux_target_ops): Update.
3149 (linux_process_target::supports_fast_tracepoints): Define.
3150 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3151 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3152 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3153 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3154 * linux-low.h (class linux_process_target): Update.
3155 * lynx-low.cc (lynx_target_ops): Update.
3156 * nto-low.cc (nto_target_ops): Update.
3157 * win32-low.cc (win32_target_ops): Update.
3159 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3161 Turn process_stratum_target's stabilize_threads op into a
3162 method of process_target.
3164 * target.h (struct process_stratum_target): Remove the target op.
3165 (class process_target): Add the target op.
3166 (target_stabilize_threads): Update the macro.
3167 * target.cc (process_target::stabilize_threads): Define.
3169 Update the derived classes and callers below.
3171 * server.cc (handle_status): Update.
3172 * tracepoint.cc (cmd_qtdp): Update.
3173 (cmd_qtstart): Update.
3174 * linux-low.cc (linux_target_ops): Update.
3175 (linux_stabilize_threads): Turn into ...
3176 (linux_process_target::stabilize_threads): ... this.
3177 (linux_wait_1): Update.
3178 * linux-low.h (class linux_process_target): Update.
3179 * lynx-low.cc (lynx_target_ops): Update.
3180 * nto-low.cc (nto_target_ops): Update.
3181 * win32-low.cc (win32_target_ops): Update.
3183 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3185 Turn process_stratum_target's pause_all and unpause_all ops
3186 into methods of process_target.
3188 * target.h (struct process_stratum_target): Remove the target ops.
3189 (class process_target): Add the target ops.
3190 (pause_all): Update the macro and rename to...
3191 (target_pause_all): ... this.
3192 (unpause_all): Update the macro and rename to...
3193 (target_unpause_all): ... this.
3194 * target.cc (process_target::pause_all): Define.
3195 (process_target::unpause_all): Define.
3197 Update the derived classes and callers below.
3199 * server.cc (handle_status): Update.
3200 * tracepoint.cc (clear_installed_tracepoints): Update.
3202 (cmd_qtstart): Update.
3203 (stop_tracing): Update.
3204 (cmd_qtstatus): Update.
3205 (upload_fast_traceframes): Update.
3206 (run_inferior_command): Update.
3207 * linux-low.cc (linux_target_ops): Update.
3208 (linux_pause_all): Turn into ...
3209 (linux_process_target::pause_all): ... this.
3210 (linux_unpause_all): Turn into ...
3211 (linux_process_target::unpause_all): ... this.
3212 (linux_process_target::prepare_to_access_memory): Update.
3213 (linux_process_target::done_accessing_memory): Update.
3214 * linux-low.h (class linux_process_target): Update.
3215 * lynx-low.cc (lynx_target_ops): Update.
3216 * nto-low.cc (nto_target_ops): Update.
3217 * win32-low.cc (win32_target_ops): Update.
3219 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3221 Turn process_stratum_target's get_tib_address op into a method of
3224 * target.h (struct process_stratum_target): Remove the target op.
3225 (class process_target): Add the target op. Also add
3226 'supports_get_tib_address'.
3227 * target.cc (process_target::get_tib_address): Define.
3228 (process_target::supports_get_tib_address): Define.
3230 Update the derived classes and callers below.
3232 * server.cc (handle_query): Update.
3233 * linux-low.cc (win32_target_ops): Update.
3234 * lynx-low.cc (lynx_target_ops): Update.
3235 * nto-low.cc (nto_target_ops): Update.
3236 * win32-low.cc (win32_target_ops): Update.
3237 (win32_process_target::supports_get_tib_address): Define.
3238 (win32_get_tib_address): Turn into ...
3239 (win32_process_target::get_tib_address): ... this.
3240 * win32-low.h (class win32_process_target): Update.
3242 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3244 Turn process_stratum_target's thread_stopped op into a method of
3247 * target.h (struct process_stratum_target): Remove the target op.
3248 (class process_target): Add the target op. Also add
3249 'supports_thread_stopped'.
3250 (target_thread_stopped): Update the macro.
3251 * target.cc (process_target::thread_stopped): Define.
3252 (process_target::supports_thread_stopped): Define.
3253 (prepare_to_access_memory): Update.
3255 Update the derived classes and callers below.
3257 * server.cc (queue_stop_reply_callback): Update.
3258 * linux-low.cc (linux_target_ops): Update.
3259 (linux_process_target::supports_thread_stopped): Define.
3260 (linux_thread_stopped): Turn into ...
3261 (linux_process_target::thread_stopped): ... this.
3262 * linux-low.h (class linux_process_target): Update.
3263 * lynx-low.cc (lynx_target_ops): Update.
3264 * nto-low.cc (nto_target_ops): Update.
3265 * win32-low.cc (win32_target_ops): Update.
3267 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3269 Turn process_stratum_target's read_pc and write_pc ops into
3270 methods of process_target.
3272 * target.h (struct process_stratum_target): Remove the target ops.
3273 (class process_target): Add the target ops.
3274 * target.cc (process_target::read_pc): Define.
3275 (process_target::write_pc): Define.
3277 Update the derived classes and callers below.
3279 * regcache.cc (regcache_read_pc): Update.
3280 (regcache_write_pc): Update.
3281 * linux-low.cc (linux_target_ops): Update.
3282 (linux_read_pc): Turn into ...
3283 (linux_process_target::read_pc): ... this.
3284 (linux_write_pc): Turn into ...
3285 (linux_process_target::write_pc): ... this.
3286 * linux-low.h (class linux_process_target): Update.
3287 * lynx-low.cc (lynx_target_ops): Update.
3288 * nto-low.cc (nto_target_ops): Update.
3289 * win32-low.cc (win32_target_ops): Update.
3291 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3293 Turn process_stratum_target's supports_tracepoints op into a
3294 method of process_target.
3296 * target.h (struct process_stratum_target): Remove the target op.
3297 (class process_target): Add the target op.
3298 (target_supports_tracepoints): Update the macro.
3299 * target.cc (process_target::supports_tracepoints): Define.
3301 Update the derived classes and callers below.
3303 * linux-low.cc (linux_target_ops): Update.
3304 (linux_supports_tracepoints): Turn into ...
3305 (linux_process_target::supports_tracepoints): ... this.
3306 * linux-low.h (class linux_process_target): Update.
3307 * lynx-low.cc (lynx_target_ops): Update.
3308 * nto-low.cc (nto_target_ops): Update.
3309 * win32-low.cc (win32_target_ops): Update.
3311 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3313 Turn process_stratum_target's process_qsupported op into a method
3316 * target.h (struct process_stratum_target): Remove the target op.
3317 (class process_target): Add the target op.
3318 (target_process_qsupported): Update the macro.
3319 * target.cc (process_target::process_qsupported): Define.
3321 Update the derived classes and callers below.
3323 * linux-low.cc (linux_target_ops): Update.
3324 (linux_process_qsupported): Turn into ...
3325 (linux_process_target::process_qsupported): ... this.
3326 * linux-low.h (class linux_process_target): Update.
3327 * lynx-low.cc (lynx_target_ops): Update.
3328 * nto-low.cc (nto_target_ops): Update.
3329 * win32-low.cc (win32_target_ops): Update.
3331 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3333 Turn process_stratum_target's read_loadmap op into a method of
3336 * target.h (struct process_stratum_target): Remove the target op.
3337 (class process_target): Add the target op. Also add
3338 'supports_read_loadmap'.
3339 * target.cc (process_target::read_loadmap): Define.
3340 (process_target::supports_read_loadmap): Define.
3342 Update the derived classes and callers below.
3344 * server.cc (handle_qxfer_fdpic): Update.
3345 (handle_query): Update.
3346 * linux-low.cc (linux_target_ops): Update.
3347 (linux_process_target::supports_read_loadmap): Define.
3348 (linux_read_loadmap): Turn into ...
3349 (linux_process_target::read_loadmap): ... this.
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 core_of_thread op into a method of
3360 * target.h (struct process_stratum_target): Remove the target op.
3361 (class process_target): Add the target op.
3362 (target_core_of_thread): Update the macro.
3363 * target.cc (process_target::core_of_thread): Define.
3365 Update the derived classes and callers below.
3367 * linux-low.cc (linux_target_ops): Update.
3368 (linux_process_target::core_of_thread): Define.
3369 * linux-low.h (class linux_process_target): Update.
3370 * lynx-low.cc (lynx_target_ops): Update.
3371 * nto-low.cc (nto_target_ops): Update.
3372 * win32-low.cc (win32_target_ops): Update.
3374 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3376 Turn process_stratum_target's handle_monitor_command op into a
3377 method of process_target.
3379 * target.h (struct process_stratum_target): Remove the target op.
3380 (class process_target): Add the target op.
3381 (target_handle_monitor_command): Update the macro.
3382 * target.cc (process_target::handle_monitor_command): Define.
3384 Update the derived classes and callers below.
3386 * server.cc (handle_query): Update.
3387 * linux-low.cc (linux_target_ops): Update.
3388 (linux_process_target::handle_monitor_command): Define.
3389 * linux-low.h (class linux_process_target): Update.
3390 * lynx-low.cc (lynx_target_ops): Update.
3391 * nto-low.cc (nto_target_ops): Update.
3392 * win32-low.cc (win32_target_ops): Update.
3394 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3396 Turn process_stratum_target's handle_new_gdb_connection op into a
3397 method of process_target.
3399 * target.h (struct process_stratum_target): Remove the target op.
3400 (class process_target): Add the target op.
3401 (target_handle_new_gdb_connection): Update the macro.
3402 * target.cc (process_target::handle_new_gdb_connection): Define.
3404 Update the derived classes and callers below.
3406 * linux-low.cc (linux_target_ops): Update.
3407 (linux_handle_new_gdb_connection): Turn into ...
3408 (linux_process_target::handle_new_gdb_connection): ... this.
3409 * linux-low.h (class linux_process_target): Update.
3410 * lynx-low.cc (lynx_target_ops): Update.
3411 * nto-low.cc (nto_target_ops): Update.
3412 * win32-low.cc (win32_target_ops): Update.
3414 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3416 Turn process_stratum_target's supports_fork_events,
3417 supports_vfork_events, and supports_exec_events ops into methods
3420 * target.h (struct process_stratum_target): Remove the target ops.
3421 (class process_target): Add the target ops.
3422 (target_supports_fork_events): Update the macro.
3423 (target_supports_vfork_events): Update the macro.
3424 (target_supports_exec_events): Update the macro.
3425 * target.cc (process_target::supports_fork_events): Define.
3426 (process_target::supports_vfork_events): Define.
3427 (process_target::supports_exec_events): Define.
3429 Update the derived classes and callers below.
3431 * linux-low.cc (linux_target_ops): Update.
3432 (linux_supports_fork_events): Turn into ...
3433 (linux_process_target::supports_fork_events): ... this.
3434 (linux_supports_vfork_events): Turn into ...
3435 (linux_process_target::supports_vfork_events): ... this.
3436 (linux_supports_exec_events): Turn into ...
3437 (linux_process_target::supports_exec_events): ... this.
3438 * linux-low.h (class linux_process_target): Update.
3439 * lynx-low.cc (lynx_target_ops): Update.
3440 * nto-low.cc (nto_target_ops): Update.
3441 * win32-low.cc (win32_target_ops): Update.
3443 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3445 Turn process_stratum_target's supports_multi_process op into a
3446 method of process_target.
3448 * target.h (struct process_stratum_target): Remove the target op.
3449 (class process_target): Add the target op.
3450 * target.cc (process_target::supports_multi_process): Define.
3451 (target_supports_multi_process): Update.
3453 Update the derived classes and callers below.
3455 * linux-low.cc (linux_target_ops): Update.
3456 (linux_supports_multi_process): Turn into ...
3457 (linux_process_target::supports_multi_process): ... this.
3458 * linux-low.h (class linux_process_target): Update.
3459 * lynx-low.cc (lynx_target_ops): Update.
3460 * nto-low.cc (nto_target_ops): Update.
3461 * win32-low.cc (win32_target_ops): Update.
3463 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3465 Turn process_stratum_target's supports_non_stop, async, and
3466 start_non_stop ops into methods of process_target.
3468 * target.h (struct process_stratum_target): Remove the target ops.
3469 (class process_target): Add the target ops.
3470 (target_supports_non_stop): Update the macro.
3471 (target_async): Update the macro.
3472 (start_non_stop): Remove declaration.
3473 * target.cc (process_target::supports_non_stop): Define.
3474 (process_target::async): Define.
3475 (process_target::start_non_stop): Define.
3476 (start_non_stop): Remove.
3478 Update the derived classes and callers below.
3480 * server.cc (handle_qxfer_siginfo): Update.
3481 (handle_query): Update.
3482 * linux-low.cc (linux_target_ops): Update.
3483 (linux_supports_non_stop): Turn into ...
3484 (linux_process_target::supports_non_stop): ... this.
3485 (linux_async): Turn into ...
3486 (linux_process_target::async): ... this.
3487 (linux_start_non_stop): Turn into ...
3488 (linux_process_target::start_non_stop): ... this.
3489 * linux-low.h (class linux_process_target): Update.
3490 * lynx-low.cc (lynx_target_ops): Update.
3491 * nto-low.cc (nto_target_ops): Update.
3492 (nto_supports_non_stop): Remove; rely on the default behavior
3494 * win32-low.cc (win32_target_ops): Update.
3496 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3498 Turn process_stratum_target's qxfer_siginfo op into a method of
3501 * target.h (struct process_stratum_target): Remove the target op.
3502 (class process_target): Add the target op. Also add
3503 'supports_qxfer_siginfo'.
3504 * target.cc (process_target::qxfer_siginfo): Define.
3505 (process_target::supports_qxfer_siginfo): Define.
3507 Update the derived classes and callers below.
3509 * server.cc (handle_qxfer_siginfo): Update.
3510 (handle_query): Update.
3511 * linux-low.cc (linux_target_ops): Update.
3512 (linux_process_target::supports_qxfer_siginfo): Define.
3513 (linux_xfer_siginfo): Turn into ...
3514 (linux_process_target::qxfer_siginfo): ... this.
3515 * linux-low.h (class linux_process_target): Update.
3516 * lynx-low.cc (lynx_target_ops): Update.
3517 * nto-low.cc (nto_target_ops): Update.
3518 * win32-low.cc (win32_target_ops): Update.
3520 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3522 Turn process_stratum_target's qxfer_osdata op into a method of
3525 * target.h (struct process_stratum_target): Remove the target op.
3526 (class process_target): Add the target op. Also add
3527 'supports_qxfer_osdata'.
3528 * target.cc (process_target::qxfer_osdata): Define.
3529 (process_target::supports_qxfer_osdata): Define.
3531 Update the derived classes and callers below.
3533 * server.cc (handle_qxfer_osdata): Update.
3534 (handle_query): Update.
3535 * linux-low.cc (linux_target_ops): Update.
3536 (linux_process_target::supports_qxfer_osdata): Define.
3537 (linux_qxfer_osdata): Turn into ...
3538 (linux_process_target::qxfer_osdata): ... this.
3539 * linux-low.h (class linux_process_target): Update.
3540 * lynx-low.cc (lynx_target_ops): Update.
3541 * nto-low.cc (nto_target_ops): Update.
3542 * win32-low.cc (win32_target_ops): Update.
3544 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3546 Turn process_stratum_target's hostio_last_error op into a
3547 method of process_target.
3549 * target.h (struct process_stratum_target): Remove the target op.
3550 (class process_target): Add the target op.
3551 * target.cc: Add "hostio.h" to includes.
3552 (process_target::hostio_last_error): Define.
3554 Update the derived classes and callers below.
3556 * hostio.cc (hostio_error): Update.
3557 * linux-low.cc: Remove "hostio.h" from includes.
3558 (linux_target_ops): Update.
3559 * lynx-low.cc (lynx_target_ops): Update.
3560 * nto-low.cc (nto_target_ops): Update.
3561 * win32-low.h (class win32_process_target): Update.
3562 * win32-low.cc (win32_target_ops): Update.
3563 (wince_hostio_last_error): Turn into ...
3564 (win32_process_target::hostio_last_error): ... this.
3566 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3568 Turn process_stratum_target's get_tls_address op into a method of
3571 * target.h (struct process_stratum_target): Remove the target op.
3572 (class process_target): Add the target op. Also add
3573 'supports_get_tls_address'.
3574 * target.cc (process_target::get_tls_address): Define.
3575 (process_target::supports_get_tls_address): Define.
3577 Update the derived classes and callers below.
3579 * server.cc (handle_query): Update.
3580 * linux-low.cc (linux_target_ops): Update.
3581 (linux_process_target::supports_get_tls_address): Define.
3582 (linux_process_target::get_tls_address): Define.
3583 * linux-low.h (class linux_process_target): Update.
3584 * lynx-low.cc (lynx_target_ops): Update.
3585 * nto-low.cc (nto_target_ops): Update.
3586 * win32-low.cc (win32_target_ops): Update.
3588 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3590 Turn process_stratum_target's read_offsets op into a method of
3593 * target.h (struct process_stratum_target): Remove the target op.
3594 (class process_target): Add the target op. Also add
3595 'supports_read_offsets'.
3596 * target.cc (process_target::read_offsets): Define.
3597 (process_target::supports_read_offsets): Define.
3599 Update the derived classes and callers below.
3601 * server.cc (handle_query): Update.
3602 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3603 (linux_target_ops): Update.
3604 (linux_process_target::supports_read_offsets): Define.
3605 (linux_read_offsets): Turn into ...
3606 (linux_process_target::read_offsets): ... this.
3607 * linux-low.h (class linux_process_target): Update.
3608 * lynx-low.cc (lynx_target_ops): Update.
3609 * nto-low.cc (nto_target_ops): Update.
3610 * win32-low.cc (win32_target_ops): Update.
3612 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3614 Turn process_stratum_target's stopped_by_watchpoint and
3615 stopped_data_address ops into methods of process_target.
3617 * target.h (struct process_stratum_target): Remove the target ops.
3618 (class process_target): Add the target ops.
3619 * target.cc (process_target::stopped_by_watchpoint): Define.
3620 (process_target::stopped_data_address): Define.
3622 Update the derived classes and callers below.
3624 * remote-utils.cc (prepare_resume_reply): Update.
3625 * linux-low.cc (linux_target_ops): Update.
3626 (linux_stopped_by_watchpoint): Turn into ...
3627 (linux_process_target::stopped_by_watchpoint): ... this.
3628 (linux_stopped_data_address): Turn into ...
3629 (linux_process_target::stopped_data_address): ... this.
3630 * linux-low.h (class linux_process_target): Update.
3631 * lynx-low.cc (lynx_target_ops): Update.
3632 * nto-low.cc (nto_target_ops): Update.
3633 (nto_stopped_by_watchpoint): Turn into ...
3634 (nto_process_target::stopped_by_watchpoint): ... this.
3635 (nto_stopped_data_address): Turn into ...
3636 (nto_process_target::stopped_data_address): ... this.
3637 * nto-low.h (class nto_process_target): Update.
3638 * win32-low.cc (win32_target_ops): Update.
3639 (win32_stopped_by_watchpoint): Turn into ...
3640 (win32_process_target::stopped_by_watchpoint): ... this.
3641 (win32_stopped_data_address): Turn into ...
3642 (win32_process_target::stopped_data_address): ... this.
3643 * win32-low.h (class win32_process_target): Update.
3645 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3647 Turn process_stratum_target's supports_hardware_single_step op into
3648 a method of process_target.
3650 * target.h (struct process_stratum_target): Remove the target op.
3651 (class process_target): Add the target op.
3652 (target_supports_hardware_single_step): Update the macro.
3653 (target_can_do_hardware_single_step): Remove declaration.
3654 * target.cc (process_target::supports_hardware_single_step): Define.
3655 (target_can_do_hardware_single_step): Remove.
3657 Update the derived classes and callers below.
3659 * linux-low.h (class linux_process_target): Update.
3660 * linux-low.cc (linux_target_ops): Update.
3661 (linux_supports_hardware_single_step): Turn into ...
3662 (linux_process_target::supports_hardware_single_step): ... this.
3663 * lynx-low.h (class lynx_process_target): Update.
3664 * lynx-low.cc (lynx_target_ops): Update.
3665 (lynx_process_target::supports_hardware_single_step): Define.
3666 * nto-low.h (class nto_process_target): Update.
3667 * nto-low.cc (nto_target_ops): Update.
3668 (nto_process_target::supports_hardware_single_step): Define.
3669 * win32-low.h (class win32_process_target): Update.
3670 * win32-low.cc (win32_target_ops): Update.
3671 (win32_process_target::supports_hardware_single_step): Define.
3673 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3675 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3676 ops into methods of process_target.
3678 * target.h (struct process_stratum_target): Remove the target ops.
3679 (class process_target): Add the target ops.
3680 (target_stopped_by_hw_breakpoint): Update the macro.
3681 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3682 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3683 (process_target::supports_stopped_by_hw_breakpoint): Define.
3685 Update the derived classes and callers below.
3687 * linux-low.cc (linux_target_ops): Update.
3688 (linux_stopped_by_hw_breakpoint): Turn into ...
3689 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3690 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3691 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3692 * linux-low.h (class linux_process_target): Update.
3693 * lynx-low.cc (lynx_target_ops): Update.
3694 * nto-low.cc (nto_target_ops): Update.
3695 * win32-low.cc (win32_target_ops): Update.
3697 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3699 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3700 ops into methods of process_target.
3702 * target.h (struct process_stratum_target): Remove the target ops.
3703 (class process_target): Add the target ops.
3704 (target_stopped_by_sw_breakpoint): Update the macro.
3705 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3706 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3707 (process_target::supports_stopped_by_sw_breakpoint): Define.
3709 Update the derived classes and callers below.
3711 * linux-low.cc (linux_target_ops): Update.
3712 (linux_stopped_by_sw_breakpoint): Turn into ...
3713 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3714 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3715 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3716 * linux-low.h (class linux_process_target): Update.
3717 * lynx-low.cc (lynx_target_ops): Update.
3718 * nto-low.cc (nto_target_ops): Update.
3719 * win32-low.cc (win32_target_ops): Update.
3721 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3723 Turn process_stratum_target's insert_point and remove_point ops
3724 into methods of process_target.
3726 * target.h (struct process_stratum_target): Remove the target ops.
3727 (class process_target): Add the target ops.
3728 * target.cc (process_target::insert_point): Define.
3729 (process_target::remove_point): Define.
3731 Update the derived classes and callers below.
3733 * mem-break.cc (set_raw_breakpoint_at): Update.
3734 (delete_raw_breakpoint): Update.
3735 (uninsert_raw_breakpoint): Update.
3736 (reinsert_raw_breakpoint): Update.
3737 * linux-low.cc (linux_target_ops): Update.
3738 (linux_insert_point): Turn into ...
3739 (linux_process_target::insert_point): ... this.
3740 (linux_remove_point): Turn into ...
3741 (linux_process_target::remove_point): ... this.
3742 * linux-low.h (class linux_process_target): Update.
3743 * lynx-low.cc (lynx_target_ops): Update.
3744 * nto-low.cc (nto_target_ops): Update.
3745 (nto_insert_point): Turn into ...
3746 (nto_process_target::insert_point): ... this.
3747 (nto_remove_point): Turn into ...
3748 (nto_process_target::remove_point): ... this.
3749 * nto-low.h (class nto_process_target): Update.
3750 * win32-low.cc (win32_target_ops): Update.
3751 (win32_insert_point): Turn into ...
3752 (win32_process_target::insert_point): ... this.
3753 (win32_remove_point): Turn into ...
3754 (win32_process_target::remove_point): ... this.
3755 * win32-low.h (class win32_process_target): Update.
3757 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3759 Turn process_stratum_target's supports_z_point_type op into a
3760 method of process_target.
3762 * target.h (struct process_stratum_target): Remove the target op.
3763 (class process_target): Add the target op.
3764 * target.cc (process_target::supports_z_point_type): Define.
3766 Update the derived classes and callers below.
3768 * mem-break.cc (z_type_supported): Update.
3769 * linux-low.cc (linux_target_ops): Update.
3770 (linux_supports_z_point_type): Turn into ...
3771 (linux_process_target::supports_z_point_type): ... this.
3772 * linux-low.h (class linux_process_target): Update.
3773 * lynx-low.cc (lynx_target_ops): Update.
3774 * nto-low.cc (nto_target_ops): Update.
3775 (nto_supports_z_point_type): Turn into ...
3776 (nto_process_target::supports_z_point_type): ... this.
3777 * nto-low.h (class nto_process_target): Update.
3778 * win32-low.cc (win32_target_ops): Update.
3779 (win32_supports_z_point_type): Turn into ...
3780 (win32_process_target::supports_z_point_type): ... this.
3781 * win32-low.h (class win32_process_target): Update.
3783 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3785 Turn process_stratum_target's read_auxv op into a method of
3788 * target.h (class process_stratum_target): Remove the target op.
3789 (struct process_target): Add the target op. Also add
3790 'supports_read_auxv'.
3791 * target.cc (process_target::read_auxv): Define.
3792 (process_target::supports_read_auxv): Define.
3794 Update the derived classes and callers below.
3796 * server.cc (handle_qxfer_auxv): Update.
3797 (handle_query): Update.
3798 * linux-low.cc (linux_target_ops): Update.
3799 (linux_process_target::supports_read_auxv): Define.
3800 (linux_read_auxv): Turn into ...
3801 (linux_process_target::read_auxv): ... this.
3802 * linux-low.h (class linux_process_target): Update.
3803 * lynx-low.cc (lynx_target_ops): Update.
3804 * nto-low.cc (nto_target_ops): Update.
3805 (nto_process_target::supports_read_auxv): Define.
3806 (nto_read_auxv): Turn into ...
3807 (nto_process_target::read_auxv): ... this.
3808 * nto-low.h (class nto_process_target): Update.
3809 * win32-low.cc (win32_target_ops): Update.
3811 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3813 Turn process_stratum_target's request_interrupt op into a method of
3816 * target.h (struct process_stratum_target): Remove the target op.
3817 (class process_target): Add the target op.
3819 Update the derived classes and callers below.
3821 * remote-utils.cc (putpkt_binary_1): Update.
3822 (input_interrupt): Update.
3824 * server.cc (handle_v_requests): Update.
3825 * linux-low.cc (linux_target_ops): Update.
3826 (linux_request_interrupt): Turn into ...
3827 (linux_process_target::request_interrupt): ... this.
3828 * linux-low.h (class linux_process_target): Update.
3829 * lynx-low.cc (lynx_target_ops): Update.
3830 (lynx_request_interrupt): Turn into ...
3831 (lynx_process_target::request_interrupt): ... this.
3832 * lynx-low.h (class lynx_process_target): Update.
3833 * nto-low.cc (nto_target_ops): Update.
3834 (nto_request_interrupt): Turn into ...
3835 (nto_process_target::request_interrupt): ... this.
3836 * nto-low.h (class nto_process_target): Update.
3837 * win32-low.cc (win32_target_ops): Update.
3838 (win32_request_interrupt): Turn into ...
3839 (win32_process_target::request_interrupt): ... this.
3840 * win32-low.h (class win32_process_target): Update.
3842 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3844 Turn process_stratum_target's look_up_symbols op into a method of
3847 * target.h (struct process_stratum_target): Remove the target op.
3848 (class process_target): Add the target op.
3849 * target.cc (process_target::look_up_symbols): Define.
3851 Update the derived classes and callers below.
3853 * server.cc (handle_query): Update.
3854 * linux-low.cc (linux_target_ops): Update.
3855 (linux_look_up_symbols): Turn into ...
3856 (linux_process_target::look_up_symbols): ... this.
3857 * linux-low.h (class linux_process_target): Update.
3858 * lynx-low.cc (lynx_target_ops): Update.
3859 * nto-low.cc (nto_target_ops): Update.
3860 * win32-low.cc (win32_target_ops): Update.
3862 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3864 Turn process_stratum_target's read_memory and write_memory
3865 ops into methods of process_target.
3867 * target.h (struct process_stratum_target): Remove the target ops.
3868 (class process_target): Add the target ops.
3870 Update the derived classes and callers below.
3872 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3873 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3874 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3875 (arm_get_syscall_trapinfo): Update.
3876 * linux-cris-low.cc (cris_breakpoint_at): Update.
3877 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3878 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3879 * linux-mips-low.cc (mips_breakpoint_at): Update.
3880 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3881 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3882 * linux-sh-low.cc (sh_breakpoint_at): Update.
3883 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3884 (sparc_store_gregset_from_stack): Update.
3885 (sparc_breakpoint_at): Update.
3886 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3887 * linux-tile-low.cc (tile_breakpoint_at): Update.
3888 * linux-x86-low.cc (x86_breakpoint_at): Update.
3889 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3890 * mem-brea.cc (insert_memory_breakpoint): Update.
3891 (validate_inserted_breakpoint): Update.
3892 * target.cc (read_inferior_memory): Update.
3893 (target_write_memory): Update.
3894 * linux-low.cc (linux_target_ops): Update.
3895 (linux_read_memory): Make a wrapper around the read_memory target
3897 (linux_process_target::read_memory): Rename from linux_read_memory.
3898 (linux_write_memory): Turn into ...
3899 (linux_process_target::write_memory): ... this.
3900 * linux-low.h (class linux_process_target): Update.
3901 * lynx-low.cc (lynx_target_ops): Update.
3902 (lynx_read_memory): Turn into ...
3903 (lynx_process_target::read_memory): ... this.
3904 (lynx_write_memory): Turn into ...
3905 (lynx_process_target::write_memory): ... this.
3906 * lynx-low.h (class lynx_process_target): Update.
3907 * nto-low.cc (nto_target_ops): Update.
3908 (nto_read_memory): Turn into ...
3909 (nto_process_target::read_memory): ... this.
3910 (nto_write_memory): Turn into ...
3911 (nto_process_target::write_memory): ... this.
3912 * nto-low.h (class nto_process_target): Update.
3913 * win32-low.cc (win32_target_ops): Update.
3914 (win32_read_inferior_memory): Turn into ...
3915 (win32_process_target::read_memory): ... this.
3916 (win32_write_inferior_memory): Turn into ...
3917 (win32_process_target::write_memory): ... this.
3918 * win32-low.h (class win32_process_target): Update.
3920 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3922 Turn process_stratum_target's prepare_to_access_memory and
3923 done_accessing_memory ops into methods of process_target.
3925 * target.h (struct process_stratum_target): Remove the target ops.
3926 (class process_target): Add the target ops.
3927 * target.cc (process_target::prepare_to_access_memory): Define.
3928 (process_target::done_accessing_memory): Define.
3929 (prepare_to_access_memory): Update.
3930 (done_accessing_memory): Update.
3932 Update the derived classes and callers below.
3934 * linux-low.cc (linux_target_ops): Update.
3935 (linux_prepare_to_access_memory): Turn into ...
3936 (linux_process_target::prepare_to_access_memory): ... this.
3937 (linux_done_accessing_memory): Turn into ...
3938 (linux_process_target::done_accessing_memory): ... this.
3939 * linux-low.h (class linux_process_target): Update.
3940 * lynx-low.cc (lynx_target_ops): Update.
3941 * nto-low.cc (nto_target_ops): Update.
3942 * win32-low.cc (win32_target_ops): Update.
3944 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3946 Turn process_stratum_target's fetch_registers and store_registers
3947 ops into methods of process_target.
3949 * target.h (struct process_stratum_target): Remove the target ops.
3950 (class process_target): Add the target ops.
3951 (fetch_inferior_registers): Update the macro.
3952 (store_inferior_registers): Update the macro.
3954 Update the derived classes and callers below.
3956 * linux-low.cc (linux_target_ops): Update.
3957 (linux_fetch_registers): Turn into ...
3958 (linux_process_target::fetch_registers): ... this.
3959 (linux_store_registers): Turn into ...
3960 (linux_process_target::store_registers): ... this.
3961 * linux-low.h (class linux_process_target): Update.
3962 * lynx-low.cc (lynx_target_ops): Update.
3963 (lynx_fetch_registers): Turn into ...
3964 (lynx_process_target::fetch_registers): ... this.
3965 (lynx_store_registers): Turn into ...
3966 (lynx_process_target::store_registers): ... this.
3967 * lynx-low.h (class lynx_process_target): Update.
3968 * nto-low.cc (nto_target_ops): Update.
3969 (nto_fetch_registers): Turn into ...
3970 (nto_process_target::fetch_registers): ... this.
3971 (nto_store_registers): Turn into ...
3972 (nto_process_target::store_registers): ... this.
3973 * nto-low.h (class nto_process_target): Update.
3974 * win32-low.cc (win32_target_ops): Update.
3975 (win32_fetch_inferior_registers): Turn into ...
3976 (win32_process_target::fetch_registers): ... this.
3977 (win32_store_inferior_registers): Turn into ...
3978 (win32_process_target::store_registers): ... this.
3979 * win32-low.h (class win32_process_target): Update.
3981 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3983 Turn process_stratum_target's wait op into a method of
3986 * target.h (struct process_stratum_target): Remove the target op.
3987 (class process_target): Add the target op.
3989 Update the derived classes and callers below.
3991 * target.cc (target_wait): Update.
3992 * linux-low.cc (linux_target_ops): Update.
3993 (linux_wait): Turn into ...
3994 (linux_process_target::wait): ... this.
3995 * linux-low.h (class linux_process_target): Update.
3996 * lynx-low.cc (lynx_target_ops): Update.
3997 (lynx_wait): Turn into ...
3998 (lynx_process_target::wait): ... this.
3999 * lynx-low.h (class lynx_process_target): Update.
4000 * nto-low.cc (nto_target_ops): Update.
4001 (nto_wait): Turn into ...
4002 (nto_process_target::wait): ... this.
4003 * nto-low.h (class nto_process_target): Update.
4004 * win32-low.cc (win32_target_ops): Update.
4005 (win32_wait): Turn into ...
4006 (win32_process_target::wait): ... this.
4007 (do_initial_child_stuff): Update.
4008 * win32-low.h (class win32_process_target): Update.
4010 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4012 Turn process_stratum_target's resume op into a method of
4015 * target.h (struct process_stratum_target): Remove the target op.
4016 (class process_target): Add the target op.
4018 Update the derived classes and callers below.
4020 * server.cc (resume): Update.
4021 * target.cc (target_stop_and_wait): Update.
4022 (target_continue_no_signal): Update.
4023 (target_continue): Update.
4024 * linux-low.cc (linux_target_ops): Update.
4025 (linux_resume): Turn into ...
4026 (linux_process_target::resume): ... this.
4027 * linux-low.h (class linux_process_target): Update.
4028 * lynx-low.cc (lynx_target_ops): Update.
4029 (lynx_resume): Turn into ...
4030 (lynx_process_target::resume): ... this.
4031 * lynx-low.h (class lynx_process_target): Update.
4032 * nto-low.cc (nto_target_ops): Update.
4033 (nto_resume): Turn into ...
4034 (nto_process_target::resume): ... this.
4035 * nto-low.h (class nto_process_target): Update.
4036 * win32-low.cc (win32_target_ops): Update.
4037 (win32_resume): Turn into ...
4038 (win32_process_target::resume): ... this.
4039 (win32_process_target::detach): Update.
4040 (do_initial_child_stuff): Update.
4041 * win32-low.h (class win32_process_target): Update.
4043 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4045 Turn process_stratum_target's thread_alive op into a method of
4048 * target.h (struct process_stratum_target): Remove the target op.
4049 (class process_target): Add the target op.
4050 (mythread_alive): Update the macro.
4052 Update the derived classes and callers below.
4054 * linux-low.cc (linux_target_ops): Update.
4055 (linux_thread_alive): Turn into ...
4056 (linux_process_target::thread_alive): ... this.
4057 (wait_for_sigstop): Update.
4058 * linux-low.h (class linux_process_target): Update.
4059 * lynx-low.cc (lynx_target_ops): Update.
4060 (lynx_thread_alive): Turn into ...
4061 (lynx_process_target::thread_alive): ... this.
4062 * lynx-low.h (class lynx_process_target): Update.
4063 * nto-low.cc (nto_target_ops): Update.
4064 (nto_thread_alive): Turn into ...
4065 (nto_process_target::thread_alive): ... this.
4066 * nto-low.h (class nto_process_target): Update.
4067 * win32-low.cc (win32_target_ops): Update.
4068 (win32_thread_alive): Turn into ...
4069 (win32_process_target::thread_alive): ... this.
4070 * win32-low.h (class win32_process_target): Update.
4072 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4074 Turn process_stratum_target's join op into a method of
4077 * target.h (struct process_stratum_target): Remove the target op.
4078 (class process_target): Add the target op.
4079 (join_inferior): Update the macro.
4081 Update the derived classes and callers below.
4083 * linux-low.cc (linux_target_ops): Update.
4084 (linux_join): Turn into ...
4085 (linux_process_target::join): ... this.
4086 * linux-low.h (class linux_process_target): Update.
4087 * lynx-low.cc (lynx_target_ops): Update.
4088 (lynx_join): Turn into ...
4089 (lynx_process_target::join): ... this.
4090 * lynx-low.h (class lynx_process_target): Update.
4091 * nto-low.cc (nto_target_ops): Update.
4092 (nto_process_target::join): Define.
4093 * nto-low.h (class nto_process_target): Update.
4094 * win32-low.cc (win32_target_ops): Update.
4095 (win32_join): Turn into ...
4096 (win32_process_target::join): ... this.
4097 * win32-low.h (class win32_process_target): Update.
4099 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4101 Turn process_stratum_target's mourn op into a method of
4104 * target.h (struct process_stratum_target): Remove the target op.
4105 (class process_target): Add the target op.
4107 Update the derived classes and callers below.
4109 * target.cc (target_mourn_inferior): Update.
4110 * linux-low.cc (linux_target_ops): Update.
4111 (linux_mourn): Turn into ...
4112 (linux_process_target::mourn): ... this.
4113 (handle_extended_wait): Update.
4114 (linux_process_target::kill): Update.
4115 (linux_process_target::detach): Update.
4116 * linux-low.h (class linux_process_target): Update.
4117 * lynx-low.cc (lynx_target_ops): Update.
4118 (lynx_mourn): Turn into ...
4119 (lynx_process_target::mourn): ... this.
4120 * lynx-low.h (class lynx_process_target): Update.
4121 * nto-low.cc (nto_target_ops): Update.
4122 (nto_mourn): Turn into ...
4123 (nto_process_target::mourn): ... this.
4124 * nto-low.h (class nto_process_target): Update.
4125 * win32-low.cc (win32_target_ops): Update.
4126 (win32_mourn): Turn into ...
4127 (win32_process_target::mourn): ... this.
4128 * win32-low.h (class win32_process_target): Update.
4130 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4132 Turn process_stratum_target's detach op into a method of
4135 * target.h (struct process_stratum_target): Remove the target op.
4136 (class process_target): Add the target op.
4137 (detach_inferior): Update the macro.
4139 Update the derived classes and callers below.
4141 * linux-low.cc (linux_target_ops): Update.
4142 (linux_detach): Turn into ...
4143 (linux_process_target::detach): ... this.
4144 * linux-low.h (class linux_process_target): Update.
4145 * lynx-low.cc (lynx_target_ops): Update.
4146 (lynx_detach): Turn into ...
4147 (lynx_process_target::detach): ... this.
4148 * lynx-low.h (class lynx_process_target): Update.
4149 * nto-low.cc (nto_target_ops): Update.
4150 (nto_detach): Turn into ...
4151 (nto_process_target::detach): ... this.
4152 * nto-low.h (class nto_process_target): Update.
4153 * win32-low.cc (win32_target_ops): Update.
4154 (win32_detach): Turn into ...
4155 (win32_process_target::detach): ... this.
4156 * win32-low.h (class win32_process_target): Update.
4158 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4160 Turn process_stratum_target's kill op into a method of
4163 * target.h (struct process_stratum_target): Remove the target op.
4164 (class process_target): Add the target op.
4166 Update the derived classes and callers below.
4168 * target.cc (kill_inferior): Update.
4169 * linux-low.cc (linux_target_ops): Update.
4170 (linux_kill): Turn into ...
4171 (linux_process_target::kill): ... this.
4172 * linux-low.h (class linux_process_target): Update.
4173 * lynx-low.cc (lynx_target_ops): Update.
4174 (lynx_kill): Turn into ...
4175 (lynx_process_target::kill): ... this.
4176 * lynx-low.h (class lynx_process_target): Update.
4177 * nto-low.cc (nto_target_ops): Update.
4178 (nto_kill): Turn into ...
4179 (nto_process_target::kill): ... this.
4180 * nto-low.h (class nto_process_target): Update.
4181 * win32-low.cc (win32_target_ops): Update.
4182 (win32_kill): Turn into ...
4183 (win32_process_target::kill): ... this.
4184 * win32-low.h (class win32_process_target): Update.
4186 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4188 Turn process_stratum_target's attach op into a method of
4191 * target.h (struct process_stratum_target): Remove the target op.
4192 (class process_target): Add the target op.
4193 (myattach): Update the macro.
4195 Update the derived classes and callers below.
4197 * linux-low.cc (linux_target_ops): Update.
4198 (linux_attach): Turn into ...
4199 (linux_process_target::attach): ... this.
4200 * linux-low.h (class linux_process_target): Update.
4201 * lynx-low.cc (lynx_target_ops): Update.
4202 (lynx_attach): Turn into ...
4203 (lynx_process_target::attach): ... this.
4204 * lynx-low.h (class lynx_process_target): Update.
4205 * nto-low.cc (nto_target_ops): Update.
4206 (nto_attach): Turn into ...
4207 (nto_process_target::attach): ... this.
4208 * nto-low.h (class nto_process_target): Update.
4209 * win32-low.cc (win32_target_ops): Update.
4210 (win32_attach): Turn into ...
4211 (win32_process_target::attach): ... this.
4212 * win32-low.h (class win32_process_target): Update.
4214 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4216 Turn process_stratum_target's post_create_inferior op into a method
4219 * target.h (struct process_stratum_target): Remove the target op.
4220 (class process_target): Add the target op.
4221 (target_post_create_inferior): Update the macro.
4222 * target.cc (process_target::post_create_inferior): Define.
4224 Update the derived classes and callers below.
4226 * linux-low.cc (linux_target_ops): Update.
4227 (linux_post_create_inferior): Turn into ...
4228 (linux_process_target::post_create_inferior): ... this.
4229 * linux-low.h (class linux_process_target): Update.
4230 * lynx-low.cc (lynx_target_ops): Update.
4231 * nto-low.cc (nto_target_ops): Update.
4232 * win32-low.cc (win32_target_ops): Update.
4234 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4236 Turn process_stratum_target's create_inferior op into a method of
4239 * target.h (struct process_stratum_target): Remove the target op.
4240 (class process_target): Add the target op.
4241 (create_inferior): Rename the macro to ...
4242 (target_create_inferior): ... this.
4244 Update the derived classes and callers below.
4246 * server.cc (handle_v_run): Update.
4247 (captured_main): Update.
4248 (process_serial_event): Update.
4249 * linux-low.cc (linux_target_ops): Update.
4250 (linux_create_inferior): Turn into ...
4251 (linux_process_target::create_inferior): ... this.
4252 * linux-low.h (class linux_process_target): Update.
4253 * lynx-low.cc (lynx_target_ops): Update.
4254 (lynx_create_inferior): Turn into ...
4255 (lynx_process_target::create_inferior): ... this.
4256 * lynx-low.h (class lynx_process_target): Update.
4257 * nto-low.cc (nto_target_ops): Update.
4258 (nto_create_inferior): Turn into ...
4259 (nto_process_target::create_inferior): ... this.
4260 * nto-low.h (class nto_process_target): Update.
4261 * win32-low.cc (win32_target_ops): Update.
4262 (win32_create_inferior): Turn into ...
4263 (win32_process_target::create_inferior): ... this.
4264 * win32-low.h (class win32_process_target): Update.
4266 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4268 * target.h (class process_target): New class definition.
4269 (struct process_stratum_target) <pt>: New field with type
4271 * linux-low.h (class linux_process_target): Define as a derived
4272 class of 'process_target'.
4273 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4275 * lynx-low.h (class lynx_process_target): Define as a derived
4276 class of 'process_target'.
4277 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4279 * nto-low.h (class nto_process_target): Define as a derived
4280 class of 'process_target'.
4281 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4283 * win32-low.h (class win32_process_target): Define as a derived
4284 class of 'process_target'.
4285 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4288 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4290 * configure: Regenerate.
4292 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4293 Andrew Burgess <andrew.burgess@embecosm.com>
4295 * linux-riscv-low.cc: New file.
4296 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4297 and nat/riscv-linux-tdesc.c.
4298 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4299 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4302 2020-02-14 Tom Tromey <tom@tromey.com>
4304 * acinclude.m4: Don't include acx_configure_dir.m4.
4305 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4306 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4307 (all, install-only, uninstall, clean-info, clean)
4308 (maintainer-clean): Don't recurse.
4309 (subdir_do, all-lib): Remove.
4310 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4312 (generated_files): Update.
4313 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4314 * configure: Rebuild.
4315 * configure.ac: Don't configure gnulib or libiberty.
4318 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4320 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4321 preparing the command line for CreateProcess.
4322 (win32_create_inferior): Reflect the program name in debugging
4323 output that shows the process and its command line.
4325 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4327 * Makefile.in: Rename source files from .c to .cc.
4328 * %.c: Rename to %.cc.
4329 * configure.ac: Rename server.c to server.cc.
4330 * configure: Re-generate.
4332 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4334 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4336 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4338 * win32-low.c (win32_create_inferior): Set signal_pid.
4340 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4341 Pedro Alves <palves@redhat.com>
4343 Skip building gdbserver in a cross-configuration.
4344 * configure.srv: Set $gdbserver_host depending on whether $target
4345 is $host. Use $gdbserver_host instead of $host.
4347 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4349 * configure: Re-generate.
4351 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4353 * configure: Re-generate.
4355 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4357 * acinclude.m4: Update warning.m4 path.
4359 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4361 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4362 (handle_exception): Set siginfo_er.
4363 (win32_xfer_siginfo): New function.
4365 2020-02-07 Tom Tromey <tom@tromey.com>
4366 Pedro Alves <palves@redhat.com>
4368 * README: Update build documentation.
4369 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4371 * configure.ac: Update paths.
4372 * configure: Rebuild.
4373 * acinclude.m4: Update paths.
4374 * Makefile.in: Update include paths.
4375 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4376 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4377 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4378 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4379 (%-generated.c): Update paths.
4380 * Move entire directory from ../gdb/gdbserver.
4382 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4384 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4386 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4388 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4389 assignment instead of srv_linux_obj.
4391 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4393 * server.c (handle_qxfer_libraries): Write segment-address with
4396 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4398 * Makefile.in (install-strip): New target.
4399 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4400 * aclocal.m4: Regenerate.
4401 * configure: Regenerate.
4402 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4404 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4406 * Makefile.in (SFILES): Adjust paths to point to real files.
4407 (OBS): Move waitstatus.o to target/waitstatus.o.
4408 (TAGS): Transform paths appropriately.
4410 (nat/%.o): ... this pattern rule.
4412 (target/%.o): ... this pattern rule.
4413 * configure.srv: Adjust paths throughout to include nat/ prefix
4414 with the revant files.
4415 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4416 * configure: Regenerate.
4418 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4420 * Makefile.in (TAGS): Remove config files from the recipe.
4422 2020-01-14 Tom Tromey <tom@tromey.com>
4424 * configure: Rebuild.
4425 * configure.ac: Remove any checks that were added to common.m4.
4426 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4429 2020-01-14 Tom Tromey <tom@tromey.com>
4431 * server.h: Include config.h.
4432 * gdbreplay.c: Include config.h.
4433 * configure: Rebuild.
4434 * configure.ac: Don't source common.host.
4435 * acinclude.m4: Update path.
4436 * Makefile.in (INCSUPPORT): New variable.
4437 (INCLUDE_CFLAGS): Add INCSUPPORT.
4438 (SFILES): Update paths.
4439 (version-generated.c): Update path to create-version.sh.
4440 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4442 2020-01-14 Tom Tromey <tom@tromey.com>
4444 * configure.ac (LIBS): Use WIN32APILIBS.
4445 (USE_WIN32API): Don't define.
4446 * configure: Rebuild.
4448 2020-01-14 Tom Tromey <tom@tromey.com>
4450 * configure: Rebuild.
4452 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4454 * Makefile.in (%-generated.c): Remove rule for files from
4457 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4459 * configure: Re-generate.
4461 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4463 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4465 * tracepoint.c (stop_tracing, flush_trace_buffer,
4466 about_to_request_buffer_space, get_trace_state_variable_value,
4467 set_trace_state_variable_value, gdb_collect): Add declaration.
4469 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4471 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4472 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4473 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4474 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4475 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4478 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4480 * inferiors.c: Include gdbsupport/common-inferior.h.
4482 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4484 * hostio-errno.c: Include hostio.h.
4486 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4488 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4491 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4493 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4494 * linux-arm-tdesc.h: Include arch/arm.h.
4496 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4498 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4500 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4502 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4503 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4505 2020-01-10 Pedro Alves <palves@redhat.com>
4507 * fork-child.c (post_fork_inferior): Pass target down to
4509 * inferiors.c (switch_to_thread): Add process_stratum_target
4511 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4512 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4513 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4514 * remote-utils.c (prepare_resume_reply): Pass the target to
4516 * target.c (the_target): Now a process_stratum_target.
4517 (done_accessing_memory): Pass the target to switch_to_thread.
4518 (set_target_ops): Ajust to use process_stratum_target.
4519 * target.h (struct target_ops): Rename to ...
4520 (struct process_stratum_target): ... this.
4521 (the_target, set_target_ops): Adjust.
4522 (prepare_to_access_memory): Adjust comment.
4523 * win32-low.c (child_xfer_memory): Adjust to use
4524 process_stratum_target.
4525 (win32_target_ops): Now a process_stratum_target.
4527 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4528 Pedro Alves <palves@redhat.com>
4530 * win32-low.c (get_child_debug_event): Extract the fatal exception
4531 from the exit status and convert to the equivalent Posix signal
4533 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4534 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4536 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4538 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4540 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4542 * server.c (gdbserver_version): Change copyright year to 2020.
4543 * gdbreplay.c (gdbreplay_version): Likewise.
4545 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4547 * configure: Regenerate.
4548 * configure.ac: Quote variable arguments of test.
4550 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4552 * Makefile.in: Fix build with GNU Make 3.81
4554 2019-12-16 Tom Tromey <tromey@adacore.com>
4556 * server.c (get_exec_file): Constify result.
4558 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4560 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4561 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4562 * config.in: Regenerate.
4563 * configure: Regenerate.
4564 * configure.ac: Don't check for strerror.
4565 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4566 Call safe_strerror instead of strerror.
4567 * server.h (strerror): Remove this now-unnecessary declaration.
4568 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4570 (gdb_agent_helper_thread): Likewise.
4571 * utils.c (perror_with_name): Likewise.
4573 2019-11-26 Tom Tromey <tom@tromey.com>
4575 * configure, config.in: Rebuild.
4577 2019-11-26 Tom Tromey <tom@tromey.com>
4579 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4580 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4582 * configure, config.in: Rebuild.
4584 2019-11-26 Tom Tromey <tom@tromey.com>
4586 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4587 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4588 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4589 * acinclude.m4: Include ax_pthread.m4.
4590 * config.in, configure: Rebuild.
4592 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4594 * debug.c (debug_set_output): Call safe_strerror instead of
4596 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4597 (linux_kill_one_lwp): Likewise.
4598 (linux_detach_one_lwp): Likewise.
4599 (linux_wait_for_event_filtered): Likewise.
4600 (store_register): Likewise.
4601 * lynx-low.c (lynx_attach): Likewise.
4602 * mem-break.c (insert_memory_breakpoint): Likewise.
4603 (remove_memory_breakpoint): Likewise.
4604 (delete_fast_tracepoint_jump): Likewise.
4605 (set_fast_tracepoint_jump): Likewise.
4606 (uninsert_fast_tracepoint_jumps_at): Likewise.
4607 (reinsert_fast_tracepoint_jumps_at): Likewise.
4608 * nto-low.c (nto_xfer_memory): Likewise.
4609 (nto_resume): Likewise.
4611 2019-11-20 Luis Machado <luis.machado@linaro.org>
4613 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4614 instead of register count.
4615 * tdesc.c (tdesc_contains_feature): New function.
4616 * tdesc.h (tdesc_contains_feature): New prototype.
4618 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4620 * Makefile.in: Add safe-strerror.c.
4621 * configure: Regenerate.
4622 * configure.ac: Don't source common.host.
4624 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4626 * config.in: Regenerate.
4627 * configure: Regenerate.
4629 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4631 * ax.c (ax_printf): Handle size_t_arg.
4633 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4635 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4636 * mi/mi-main.c (output_cores): Likewise.
4637 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4638 (linux_xfer_osdata_modules): Likewise.
4639 * remote.c (register_remote_support_xml): Likewise.
4640 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4641 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4643 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4645 * configure: Regenerate.
4646 * configure.ac: Remove check for strerror_r.
4648 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4650 * config.in: Regenerate.
4651 * configure: Regenerate.
4652 * configure.ac: Also check for strerror_r.
4654 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4656 * ax.h (debug_agent): Remove duplicate declaration.
4658 2019-10-26 Tom de Vries <tdevries@suse.de>
4660 * linux-aarch64-low.c: Fix typos in comments.
4661 * linux-arm-low.c: Same.
4662 * linux-low.c: Same.
4663 * linux-ppc-low.c: Same.
4664 * proc-service.c: Same.
4667 * tracepoint.c: Same.
4668 * win32-low.c: Same.
4670 2019-10-25 Tom Tromey <tromey@adacore.com>
4672 * utils.c (xstrdup): Remove.
4674 2019-10-23 Tom Tromey <tom@tromey.com>
4676 * configure, config.in: Rebuild.
4678 2019-10-23 Tom Tromey <tom@tromey.com>
4680 * configure: Rebuild.
4681 * acinclude.m4: Use m4_include, not sinclude.
4683 2019-10-17 Tom Tromey <tromey@adacore.com>
4685 * configure: Rebuild.
4686 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4687 in AC_CONFIG_FILES invocation.
4688 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4691 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4693 * server.c: Include xml-builtin.h.
4694 (get_xml_features): Don't declare xml_builtins here.
4696 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4698 * Makefile.in: Remove references to vec-ipa.o.
4700 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4702 * Makefile.in: Remove references to vec.c.
4704 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4706 * server.c (server_waiting): Change to bool.
4707 (extended_protocol): Likewise.
4708 (response_needed): Likewise.
4709 (exit_requested): Likewise.
4710 (run_once): Likewise.
4711 (report_no_resumed): Likewise.
4712 (non_stop): Likewise.
4713 (disable_packet_vCont): Likewise.
4714 (disable_packet_Tthread): Likewise.
4715 (disable_packet_qC): Likewise.
4716 (disable_packet_qfThreadInfo): Likewise.
4717 (handle_general_set): Update.
4718 (handle_detach): Update.
4719 (handle_monitor_command): Update.
4720 (handle_query): Update.
4721 (captured_main): Update.
4722 (process_serial_event): Update.
4723 * server.h (server_waiting): Change to bool.
4724 (disable_packet_vCont): Likewise.
4725 (disable_packet_Tthread): Likewise.
4726 (disable_packet_qC): Likewise.
4727 (disable_packet_qfThreadInfo): Likewise.
4728 (run_once): Likewise.
4729 (non_stop): Likewise.
4730 * target.c (target_stop_and_wait): Update.
4732 2019-10-02 Tom Tromey <tromey@adacore.com>
4734 * Makefile.in (SFILES): Add common-inferior.c.
4735 (OBS): Add common-inferior.o.
4736 * server.c (startup_with_shell): Don't define.
4738 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4740 * linux-low.c (linux_low_read_btrace): Update for change to
4743 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4745 * debug.c (debug_threads): Remove comment in favor of the header.
4746 * debug.h (using_threads): Add declaration.
4747 (debug_threads): Add comment.
4748 * linux-aarch64-low.c: Include debug.h and remove declaration of
4750 * nto-low.c: Likewise.
4751 * remote-utils.c: Likewise.
4752 * thread-db.c: Likewise.
4754 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4756 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4757 and powerpc-cell64l-ipa.o.
4758 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4759 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4760 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4763 * spu-low.c: Remove file.
4765 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4766 (parse_spufs_run): Remove.
4767 (ppc_get_pc): Remove Cell/B.E. support.
4768 (ppc_set_pc): Likewise.
4769 (ppc_breakpoint_at): Likewise.
4770 (ppc_arch_setup): Likewise.
4771 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4772 tdesc_powerpc_cell32l.
4773 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4774 or init_registers_powerpc_cell32l.
4775 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4776 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4777 or init_registers_powerpc_cell32l.
4778 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4779 (init_registers_powerpc_cell32l): Remove prototype.
4780 (init_registers_powerpc_cell64l): Likewise.
4782 * target.h (struct target_ops): Remove qxfer_spu member.
4783 * server.c (handle_qxfer_spu): Remove.
4784 (qxfer_packets): Remove entry for "spu".
4785 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4786 * linux-low.c (SPUFS_MAGIC): Remove.
4787 (spu_enumerate_spu_ids): Remove.
4788 (linux_qxfer_spu): Remove.
4789 (linux_target_ops): Remove qxfer_spu member.
4790 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4791 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4792 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4794 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4796 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4797 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4798 * config.in: Regenerate.
4799 * configure: Regenerate.
4801 2019-08-15 Tom Tromey <tromey@adacore.com>
4803 * target.c (target_write_memory): Use gdb::byte_vector.
4805 2019-08-15 Tom Tromey <tromey@adacore.com>
4807 * tracepoint.c (write_inferior_data_pointer)
4808 (write_inferior_integer, write_inferior_int8)
4809 (write_inferior_uinteger, m_tracepoint_action_download)
4810 (r_tracepoint_action_download, x_tracepoint_action_download)
4811 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4812 (download_agent_expr, download_tracepoint_1)
4813 (download_trace_state_variables, upload_fast_traceframes): Update.
4814 * server.c (gdb_write_memory): Update.
4815 * remote-utils.c (relocate_instruction): Update.
4816 * proc-service.c (ps_pdwrite): Update.
4817 * mem-break.c (remove_memory_breakpoint)
4818 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4819 (uninsert_fast_tracepoint_jumps_at)
4820 (reinsert_fast_tracepoint_jumps_at): Update.
4821 * linux-x86-low.c (append_insns)
4822 (i386_install_fast_tracepoint_jump_pad)
4823 (amd64_write_goto_address, i386_write_goto_address): Update.
4824 * linux-s390-low.c (append_insns, s390_write_goto_address):
4826 * linux-ppc-low.c (ppc_relocate_instruction)
4827 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4828 (ppc_write_goto_address): Update.
4829 * linux-aarch64-low.c (append_insns): Update.
4830 * target.h (struct target_ops): Update.
4831 (write_inferior_memory): Don't declare.
4832 * target.c (target_write_memory): Rename from
4833 write_inferior_memory. Remove old target_write_memory.
4835 2019-08-15 Tom Tromey <tromey@adacore.com>
4837 * target.c (write_inferior_memory): Use std::vector.
4839 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4842 * configure.ac: Drop enable-libmcheck support.
4843 * configure, config.in: Rebuild.
4844 * acinclude.m4: Don't include it.
4846 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4848 * configure.srv: Remove Arm xml files.
4850 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4852 * configure.srv: Add new files. Remove xml generated files.
4853 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4855 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4856 * linux-aarch32-tdesc.c: New file.
4857 * linux-aarch32-tdesc.h: New file.
4858 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4859 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4860 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4861 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4862 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4863 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4864 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4865 (arm_read_description): Call arm_linux_read_description.
4866 (initialize_low_arch): Don't init registers.
4867 * linux-arm-tdesc.c: New file.
4868 * linux-arm-tdesc.h: New file.
4870 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4872 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4873 Move counter inside for.
4874 (arm_read_description): Check ptrace earlier.
4875 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4877 2019-07-09 Tom Tromey <tom@tromey.com>
4879 * configure: Rebuild.
4880 * configure.ac: Change common to gdbsupport.
4881 * acinclude.m4: Change common to gdbsupport.
4882 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4883 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4884 common to gdbsupport.
4885 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4886 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4887 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4888 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4889 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4890 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4891 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4892 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4893 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4894 common to gdbsupport.
4896 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4898 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4900 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4902 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4904 * configure.srv: Remove legacy xml.
4905 * linux-aarch64-low.c (initialize_low_arch): Remove
4906 initialize_low_tdesc call.
4907 * linux-aarch64-tdesc-selftest.c: Remove file.
4908 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4909 * linux-x86-low.c (initialize_low_arch): Remove
4910 initialize_low_tdesc call.
4911 * linux-x86-tdesc-selftest.c: Remove file.
4912 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4914 2019-06-20 Tom de Vries <tdevries@suse.de>
4916 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4917 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4919 2019-06-19 Tom de Vries <tdevries@suse.de>
4921 * debug.h (debug_write): Change return type to ssize_t.
4922 * debug.c (debug_write): Same.
4924 2019-06-14 Tom Tromey <tom@tromey.com>
4926 * configure.ac: Use new path to gnulib.
4927 * configure: Rebuild.
4928 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4931 2019-06-11 Tom Tromey <tom@tromey.com>
4933 * Makefile.in (SFILES): Add alloc.c.
4935 (IPA_OBJS): Add alloc-ipa.o.
4936 (alloc-ipa.o): New target.
4937 (%.o: ../%.c): New pattern rule.
4939 2019-06-10 Tom Tromey <tromey@adacore.com>
4941 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4942 end warning with a newline.
4943 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4945 * thread-db.c (attach_thread): Don't end warning with a newline.
4946 (thread_db_notice_clone): Likewise.
4947 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4949 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4950 end warning with a newline.
4952 2019-06-04 Pedro Alves <palves@redhat.com>
4954 * server.c (captured_main): Use make_unique_xstrdup.
4956 2019-06-02 Tom Tromey <tom@tromey.com>
4958 * gdbreplay.c (fromhex): Remove.
4959 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4961 2019-05-29 Tom Tromey <tromey@adacore.com>
4963 * configure: Rebuild.
4965 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4967 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4968 sign extension code on 32-bit builds.
4970 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4973 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4975 2019-04-19 Tom Tromey <tom@tromey.com>
4977 * server.c (struct vstop_notif): Derive from notif_event.
4979 (queue_stop_reply): Update.
4980 (remove_all_on_match_ptid): Change type. Rewrite.
4981 (discard_queued_stop_replies): Rewrite.
4982 (in_queued_stop_replies_ptid): Change type.
4983 (in_queued_stop_replies): Rewrite.
4984 (notif_stop): Update.
4985 (queue_stop_reply_callback): Update.
4986 (captured_main): Don't call initialize_notif.
4987 (push_stop_notification): Update.
4988 * notif.c (notif_write_event, handle_notif_ack)
4989 (notif_event_enque, notif_push): Update.
4990 (notif_event_xfree, initialize_notif): Remove.
4991 * notif.h (struct notif_event): Include <list>, not
4993 (struct notif_server) <queue>: Now a std::list.
4994 (notif_event_p): Remove typedef.
4995 (initialize_notif): Don't declare.
4996 (struct notif_event): Add virtual destructor.
4998 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5000 * ax.c (ax_vdebug): Call debug_printf.
5001 * debug.c (debug_write): New function.
5002 * debug.h (debug_write): New declaration.
5003 * linux-low.c (sigchld_handler): Call debug_write.
5005 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5007 * debug.c (debug_set_output): New function.
5008 (debug_vprintf): Send output to debug_file.
5009 (debug_flush): Likewise.
5010 * debug.h (debug_set_output): New declaration.
5011 * server.c (handle_monitor_command): Add debug-file option.
5012 (captured_main): Likewise.
5014 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5016 * debug.c (remote_debug): Add definition.
5017 * debug.h (remote_debug): Add declaration.
5018 * hostio.c (remote_debug): Remove declaration.
5019 * remote-utils.c (struct ui_file): Likewise.
5020 (remote_debug): Likewise.
5021 * remote-utils.h (remote_debug): Likewise,
5022 * server.c (remote_debug): Remove definition.
5024 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5026 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5027 when using a 64-bit gdbserver.
5029 2019-04-09 Tom Tromey <tromey@adacore.com>
5031 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5033 2019-04-08 Tom Tromey <tom@tromey.com>
5035 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5037 (linux_resume_one_lwp): Likewise.
5039 2019-04-08 Tom Tromey <tom@tromey.com>
5041 * gdbreplay.c: Update.
5042 * linux-low.c: Update.
5045 2019-04-08 Tom Tromey <tom@tromey.com>
5047 * server.c: Use C++ exception handling.
5048 * linux-low.c: Use C++ exception handling.
5049 * gdbreplay.c: Use C++ exception handling.
5051 2019-04-08 Tom Tromey <tom@tromey.com>
5053 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5054 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5055 (captured_main, main): Update.
5056 * gdbreplay.c (main): Update.
5058 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5060 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5061 value in argument pointer, return 1 if the entry is found and 0
5062 otherwise. Move comment.
5063 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5064 * linux-low.h (linux_get_auxv): Declare.
5065 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5067 2019-04-05 Tom Tromey <tromey@adacore.com>
5069 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5072 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5074 * linux-low.c (AT_HWCAP2): Add define if not already included.
5076 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5078 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5079 (aarch64_arch_setup): Call linux_get_hwcap.
5080 * linux-arm-low.c (arm_get_hwcap): Remove function.
5081 (arm_read_description): Call linux_get_hwcap.
5082 * linux-low.c (linux_get_auxv): New function.
5083 (linux_get_hwcap): Likewise.
5084 (linux_get_hwcap2): Likewise.
5085 * linux-low.h (linux_get_hwcap): New declaration.
5086 (linux_get_hwcap2): Likewise.
5087 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5088 (ppc_arch_setup): Call linux_get_hwcap.
5089 * linux-s390-low.c (s390_get_hwcap): Remove function.
5090 (s390_arch_setup): Call linux_get_hwcap.
5092 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5093 Jiong Wang <jiong.wang@arm.com>
5095 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5096 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5098 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5100 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5101 Jiong Wang <jiong.wang@arm.com>
5103 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5104 (aarch64_get_hwcap): New function.
5105 (aarch64_arch_setup): Read APIA hwcap.
5107 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5108 Jiong Wang <jiong.wang@arm.com>
5110 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5111 (initialize_low_tracepoint): Likewise.
5112 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5113 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5114 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5115 (aarch64_linux_read_description): Likewise.
5116 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5118 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5120 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5121 i386_create_target_description for 'segments' parameter.
5122 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5123 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5124 * win32-i386-low.c (i386_arch_setup): Likewise.
5126 2019-03-12 Tom Tromey <tromey@adacore.com>
5128 * linux-low.c (iterate_over_lwps): Update.
5130 2019-03-06 Tom Tromey <tom@tromey.com>
5132 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5133 (captured_main): Use SCOPE_EXIT.
5135 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5137 * configure.srv: Use '$enable_unittest' instead of '$development'
5138 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5141 2019-02-27 Tom Tromey <tromey@adacore.com>
5143 * gdbreplay.c (logchar): Handle \r\n.
5145 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5147 * linux-low.c (linux_attach): Add process before lwp.
5148 * server.c (attach_inferior): Check if already attached.
5150 2019-02-07 Tom Tromey <tom@tromey.com>
5152 * x86-tdesc.h: Rename include guard.
5153 * x86-low.h: Add include guard.
5154 * wincecompat.h: Rename include guard.
5155 * win32-low.h: Add include guard.
5156 * utils.h: Rename include guard.
5157 * tracepoint.h: Rename include guard.
5158 * tdesc.h: Rename include guard.
5159 * target.h: Rename include guard.
5160 * server.h: Rename include guard.
5161 * remote-utils.h: Rename include guard.
5162 * regcache.h: Rename include guard.
5163 * nto-low.h: Rename include guard.
5164 * notif.h: Add include guard.
5165 * mem-break.h: Rename include guard.
5166 * lynx-low.h: Add include guard.
5167 * linux-x86-tdesc.h: Add include guard.
5168 * linux-s390-tdesc.h: Add include guard.
5169 * linux-ppc-tdesc-init.h: Add include guard.
5170 * linux-low.h: Add include guard.
5171 * linux-aarch64-tdesc.h: Add include guard.
5172 * linux-aarch32-low.h: Add include guard.
5173 * inferiors.h: Rename include guard.
5174 * i387-fp.h: Rename include guard.
5175 * hostio.h: Rename include guard.
5176 * gdbthread.h: Rename include guard.
5177 * gdb_proc_service.h: Rename include guard.
5178 * event-loop.h: Rename include guard.
5179 * dll.h: Rename include guard.
5180 * debug.h: Rename include guard.
5181 * ax.h: Rename include guard.
5183 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5186 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5187 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5189 2019-01-25 Tom Tromey <tom@tromey.com>
5191 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5193 2019-01-25 Tom Tromey <tom@tromey.com>
5195 * win32-low.c: Fix common/ includes.
5196 * win32-i386-low.c: Fix common/ includes.
5197 * tracepoint.c: Fix common/ includes.
5198 * thread-db.c: Fix common/ includes.
5199 * target.h: Fix common/ includes.
5200 * symbol.c: Fix common/ includes.
5201 * spu-low.c: Fix common/ includes.
5202 * server.h: Fix common/ includes.
5203 * server.c: Fix common/ includes.
5204 * remote-utils.c: Fix common/ includes.
5205 * regcache.h: Fix common/ includes.
5206 * regcache.c: Fix common/ includes.
5207 * nto-x86-low.c: Fix common/ includes.
5208 * notif.h: Fix common/ includes.
5209 * mem-break.h: Fix common/ includes.
5210 * lynx-low.c: Fix common/ includes.
5211 * lynx-i386-low.c: Fix common/ includes.
5212 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5213 * linux-x86-low.c: Fix common/ includes.
5214 * linux-low.c: Fix common/ includes.
5215 * inferiors.h: Fix common/ includes.
5216 * i387-fp.c: Fix common/ includes.
5217 * hostio.c: Fix common/ includes.
5218 * hostio-errno.c: Fix common/ includes.
5219 * gdbthread.h: Fix common/ includes.
5220 * gdbreplay.c: Fix common/ includes.
5221 * fork-child.c: Fix common/ includes.
5222 * event-loop.c: Fix common/ includes.
5224 (enum gdb_agent_op): Fix common/ includes.
5226 2019-01-21 Tom Tromey <tom@tromey.com>
5228 * tracepoint.c: Fix includes.
5229 * remote-utils.c: Fix includes.
5230 * linux-x86-low.c: Fix includes.
5232 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5234 * gdbreplay.c (gdbreplay_version): Update copyright year in
5236 * server.c (gdbserver_version): Likewise.
5238 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5240 * linux-low.c (add_lwp): Switch ordering.
5242 2018-11-29 Tom Tromey <tom@tromey.com>
5244 * win32-low.c (win32_join): Take pid, not process.
5245 * target.h (struct target_ops) <join>: Change argument type.
5246 (join_inferior): Change argument name.
5247 * spu-low.c (spu_join): Take pid, not process.
5248 * server.c (handle_detach): Preserve pid before destroying
5250 * lynx-low.c (lynx_join): Take pid, not process.
5251 * linux-low.c (linux_join): Take pid, not process.
5253 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5255 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5256 (aarch64_cannot_fetch_register): Likewise.
5257 (struct linux_target_ops): Update references.
5259 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5261 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5263 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5265 * configure.srv (ipa_ppc_linux_regobj): Add
5266 powerpc-isa207-htm-vsx32l-ipa.o and
5267 powerpc-isa207-htm-vsx64l-ipa.o.
5268 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5269 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5270 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5271 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5272 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5273 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5274 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5275 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5276 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5277 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5278 (init_registers_powerpc_isa207_htm_vsx32l)
5279 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5280 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5281 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5282 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5283 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5284 (ppc_store_tm_ctarregset): New functions.
5285 (ppc_regsets): Add entries for HTM regsets.
5286 (ppc_arch_setup): Set htm in features struct when needed. Set
5287 sizes for the HTM regsets.
5288 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5289 (initialize_low_arch): Call
5290 init_registers_powerpc_isa207_htm_vsx32l and
5291 init_registers_powerpc_isa207_htm_vsx64l.
5292 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5293 PPC_TDESC_ISA207_HTM_VSX.
5294 (initialize_low_tracepoint): Call
5295 init_registers_powerpc_isa207_htm_vsx32l and
5296 init_registers_powerpc_isa207_htm_vsx64l.
5298 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5300 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5301 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5302 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5303 (ppc_store_pmuregset): New functions.
5304 (ppc_regsets): Add entries for ebb and pmu regsets.
5305 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5306 pmu regsets are available. Set sizes for these regsets.
5308 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5310 * configure.srv (ipa_ppc_linux_regobj): Add
5311 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5312 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5313 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5314 rs6000/powerpc-isa207-vsx32l.xml, and
5315 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5316 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5317 <PPC_TDESC_ISA207_VSX>: New enum value.
5318 (init_registers_powerpc_isa207_vsx32l): Declare.
5319 (init_registers_powerpc_isa207_vsx64l): Declare.
5320 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5321 (ppc_store_tarregset): New function.
5322 (ppc_regsets): Add entry for the TAR regset.
5323 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5324 size for the TAR regsets.
5325 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5326 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5327 and init_registers_powerpc_isa207_vsx64l.
5328 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5329 (initialize_low_tracepoint): Call
5330 init_registers_powerpc_isa207_vsx32l and
5331 init_registers_powerpc_isa207_vsx64l.
5333 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5334 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5336 * configure.srv (ipa_ppc_linux_regobj): Add
5337 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5338 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5339 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5340 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5341 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5342 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5343 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5344 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5345 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5346 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5347 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5348 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5349 (ppc_hwcap): Add comment.
5350 (ppc_hwcap2): New global.
5351 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5352 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5353 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5354 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5355 when needed. Set sizes for the the DSCR and PPR regsets.
5356 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5357 (initialize_low_arch): Call
5358 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5359 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5360 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5361 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5362 (initialize_low_tracepoint): Call
5363 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5364 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5366 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5368 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5370 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5371 Simon Marchi <simark@simark.ca>
5373 * acinclude.m4: Include "../selftest.m4".
5374 * configure: Regenerate.
5375 * configure.ac: Use "GDB_AC_SELFTEST".
5376 * configure.srv: Use "$enable_unittests" instead of
5377 "$development" when checking whether unit tests have been
5379 * server.c (captured_main): Update message informing that
5380 selftests have been disabled.
5382 2018-10-04 Tom Tromey <tom@tromey.com>
5384 * configure: Rebuild.
5386 2018-10-04 Tom Tromey <tom@tromey.com>
5388 * server.c (handle_status): Rename inner "thread".
5389 (process_serial_event): Declare "res" in 'm' case.
5390 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5391 (iterate_over_lwps): Rename inner "thread".
5392 (linux_qxfer_libraries_svr4): Rename inner "len".
5393 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5395 2018-10-01 Gary Benson <gbenson@redhat.com>
5397 * gdb_proc_service.h: Moved common code to
5398 common/gdb_proc_service.h.
5400 2018-10-01 Gary Benson <gbenson@redhat.com>
5402 * gdb_proc_service.h: Synchronize comments and whitespace with
5403 GDB's version of this file.
5405 2018-09-25 Tom Tromey <tom@tromey.com>
5407 * configure: Rebuild.
5408 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5410 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5412 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5413 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5414 ($(IPA_LIB)): Sort IPA_OBJS.
5416 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5418 * Makefile.in: Remove references to $(ADD_DEPS).
5420 2018-09-16 Tom Tromey <tom@tromey.com>
5422 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5424 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5427 2018-09-05 Tom Tromey <tom@tromey.com>
5429 * configure: Rebuild.
5431 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5434 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5436 2018-08-27 Tom Tromey <tom@tromey.com>
5439 * configure: Rebuild.
5441 2018-08-27 Tom Tromey <tom@tromey.com>
5443 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5444 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5445 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5446 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5447 (s390x_emit_stack_adjust): Add casts to unsigned char.
5449 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5453 * server.h (struct client_state) <disable_randomization>:
5456 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5458 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5460 (mips_supply_ptrace_register): Likewise.
5462 2018-07-22 Tom Tromey <tom@tromey.com>
5464 * configure: Rebuild.
5466 2018-07-22 Tom Tromey <tom@tromey.com>
5468 * win32-low.c (win32_create_inferior): Remove unused variables.
5469 * gdbreplay.c (remote_open): Remove unused variable.
5470 * remote-utils.c (remote_prepare): Remove unused variable.
5471 * x86-tdesc.h (X86_TDESC_H): Define.
5472 (amd64_expedite_regs): Define conditionally.
5473 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5474 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5475 * remote-utils.c (readchar): Remove unused variable.
5477 2018-07-13 Pedro Alves <palves@redhat.com>
5479 * linux-low.c (linux_kill): Change parameter to process_info
5480 pointer instead of pid. Adjust.
5481 * lynx-low.c (lynx_kill): Likewise.
5482 * nto-low.c (nto_kill): Likewise.
5483 * spu-low.c (spu_kill): Likewise.
5484 * win32-low.c (win32_kill): Likewise.
5485 * server.c (handle_v_kill, kill_inferior_callback)
5486 (detach_or_kill_for_exit): Adjust.
5487 * target.c (kill_inferior): Change parameter to process_info
5488 pointer instead of pid. Adjust.
5489 * target.h (struct target_ops) <kill>: Change parameter to
5490 process_info pointer instead of pid. Adjust all implementations
5492 (kill_inferior): Likewise.
5494 2018-07-13 Pedro Alves <palves@redhat.com>
5496 * linux-low.c (linux_detach, linux_join): Change parameter to
5497 process_info pointer instead of pid. Adjust.
5498 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5499 * nto-low.c (nto_detach): Likewise.
5500 * spu-low.c (spu_detach, spu_join): Likewise.
5501 * win32-low.c (win32_detach, win32_join): Likewise.
5502 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5503 * target.h (struct target_ops) <detach, join>: Change parameter to
5504 process_info pointer instead of pid. Adjust all implementations
5506 (detach_inferior, join_inferior): Rename 'pid' parameter to
5509 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5510 Jan Kratochvil <jan.kratochvil@redhat.com>
5511 Paul Fertser <fercerpav@gmail.com>
5512 Tsutomu Seki <sekiriki@gmail.com>
5514 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5515 (OBS): Add 'common/netstuff.o'.
5516 (GDBREPLAY_OBS): Likewise.
5517 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5518 (remote_open): Implement support for IPv6
5520 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5522 (handle_accept_event): Accept connections from IPv6 sources.
5523 (remote_prepare): Handle IPv6-style hostnames; implement
5524 support for IPv6 connections.
5525 (remote_open): Implement support for printing connections from
5528 2018-07-11 Pedro Alves <palves@redhat.com>
5531 * mem-break.c (any_persistent_commands): Add process_info
5532 parameter and use it instead of relying on the current process.
5533 Change return type to bool.
5534 * mem-break.h (any_persistent_commands): Add process_info
5535 parameter and change return type to bool.
5536 * server.c (handle_detach): Remove require_running_or_return call.
5537 Look up the process_info for the process we're about to detach.
5538 If not found, return back error to GDB. Adjust
5539 any_persistent_commands call to pass down a process pointer.
5541 2018-07-11 Pedro Alves <palves@redhat.com>
5543 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5544 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5545 instead of collect_register_by_name.
5546 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5547 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5549 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5550 Pedro Alves <palves@redhat.com>
5552 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5554 2018-07-03 Tom Tromey <tom@tromey.com>
5556 * linux-low.c: Update.
5557 * lynx-low.c: Update.
5558 * mem-break.c: Update.
5559 * nto-low.c: Update.
5560 * remote-utils.c: Update.
5562 * spu-low.c: Update.
5564 * win32-low.c: Update.
5566 2018-07-03 Tom Tromey <tom@tromey.com>
5570 2018-07-03 Tom Tromey <tom@tromey.com>
5572 * linux-low.c: Update.
5574 2018-07-03 Tom Tromey <tom@tromey.com>
5578 2018-07-03 Tom Tromey <tom@tromey.com>
5580 * linux-low.c: Update.
5581 * linux-mips-low.c: Update.
5582 * lynx-low.c: Update.
5583 * nto-low.c: Update.
5584 * remote-utils.c: Update.
5586 * spu-low.c: Update.
5588 * thread-db.c: Update.
5590 2018-07-03 Tom Tromey <tom@tromey.com>
5592 * linux-low.c: Update.
5593 * linux-mips-low.c: Update.
5594 * lynx-low.c: Update.
5595 * mem-break.c: Update.
5596 * nto-low.c: Update.
5597 * remote-utils.c: Update.
5599 * spu-low.c: Update.
5601 * tracepoint.c: Update.
5603 2018-07-03 Tom Tromey <tom@tromey.com>
5605 * linux-low.c: Update.
5606 * linux-ppc-low.c: Update.
5607 * linux-x86-low.c: Update.
5608 * proc-service.c: Update.
5610 * spu-low.c: Update.
5611 * thread-db.c: Update.
5612 * win32-low.c: Update.
5614 2018-07-03 Tom Tromey <tom@tromey.com>
5616 * linux-low.c: Update.
5617 * lynx-low.c: Update.
5618 * nto-low.c: Update.
5619 * remote-utils.c: Update.
5620 * spu-low.c: Update.
5621 * thread-db.c: Update.
5622 * win32-low.c: Update.
5624 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5626 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5627 parameter in call to 'amd64_create_target_description'.
5629 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5631 * x86-tdesc.h: Remove executable permission flag.
5633 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5635 * configure.ac: Remove AC_PREREQ, add missing quoting.
5636 * configure: Re-generate.
5637 * config.in: Re-generate.
5638 * aclocal.m4: Re-generate.
5640 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5642 * tracepoint.h (current_traceframe): Remove declaration.
5644 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5646 * linux-aarch64-low.c (is_sve_tdesc): New function.
5647 (aarch64_sve_regs_copy_to_regcache): Likewise.
5648 (aarch64_sve_regs_copy_from_regcache): Likewise.
5649 (aarch64_regs_info): Add SVE checks.
5650 (initialize_low_arch): Initialize SVE.
5652 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5654 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5656 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5658 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5659 (initialize_low_tracepoint): Likewise
5660 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5661 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5663 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5665 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5667 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5669 * server.h (PBUFSIZ): Increase size
5671 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5673 * regcache.c (regcache::raw_compare): New function.
5674 * regcache.h (regcache::raw_compare): New declaration.
5676 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5678 * regcache.c (new_register_cache): Use new.
5679 (free_register_cache): Use delete.
5680 (register_data): Use const.
5681 (supply_register): Move body inside regcache.
5682 (regcache::raw_supply): New override function.
5683 (collect_register): Move body inside regcache.
5684 (regcache::raw_collect): New override function.
5685 (regcache::get_register_status): New override function.
5686 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5688 2018-06-09 Tom Tromey <tom@tromey.com>
5690 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5692 (event_queue): Use std::queue.
5693 (gdb_event_xfree): Remove.
5694 (initialize_event_loop, process_event, wait_for_event): Update.
5696 2018-06-08 Stan Cox <scox@redhat.com>
5698 * win32-low.c (win32_create_inferior): last_ptid and last_status
5699 moved to client_state.
5701 2018-06-08 Pedro Alves <palves@redhat.com>
5703 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5704 common/common-exceptions.o, common/common-utils.o,
5705 common/errors.o, common/print-utils.o and utils.o.
5706 * gdbreplay.c: Include "common-defs.h" instead of the two
5707 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5708 string.h or alloca.h.
5709 (perror_with_name): Delete.
5710 (remote_open): Use xstrdup instead of strdup.
5711 (main): Rename to ...
5712 (captured_main): ... this.
5715 2018-06-08 Tom Tromey <tom@tromey.com>
5717 * linux-low.c (linux_low_read_btrace): Update.
5719 2018-06-04 Stan Cox <scox@redhat.com>
5721 * server.h (struct client_state): New.
5722 * server.c (cont_thread, general_thread, multi_process)
5723 (report_fork_events, report_vfork_events, report_exec_events)
5724 (report_thread_events, swbreak_feature, hwbreak_feature)
5725 (vCont_supported, disable_randomization, pass_signals)
5726 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5727 Moved to client_state.
5728 * remote-utils.c (remote_debug, noack_mode)
5729 (transport_is_reliable): Moved to client_state.
5730 * tracepoint.c (current_traceframe): Moved to client_state.
5733 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5734 linux-low.c, remote-utils.h, target.c: Use client_state.
5736 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5738 * configure.srv: Add new c/h file.
5740 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5742 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5745 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5747 * gdb.arch/mips-fpregset-core.exp: New test.
5748 * gdb.arch/mips-fpregset-core.c: New test source.
5750 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5753 * hostio.c (require_int): Do not report overflow for integers
5754 between 0xfffffff and 0x7fffffff.
5756 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5758 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5759 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5760 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5762 (the_low_target): Wire them.
5764 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5766 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5767 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5768 mode. Call collect_register_by_name with vscr using
5769 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5770 (ppc_store_vrregset): Add and set vscr_offset variable as in
5771 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5774 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5776 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5777 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5778 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5780 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5782 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5783 (ppc_store_vsxregset): Likewise.
5784 (ppc_fill_vrregset): Likewise.
5785 (ppc_store_vrregset): Likewise.
5786 (ppc_fill_evrregset): Likewise.
5787 (ppc_store_evrregset): Likewise.
5788 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5789 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5792 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5794 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5795 wordsize of the inferior. Call ppc_linux_target_wordsize.
5797 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5799 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5800 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5801 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5802 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5803 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5804 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5805 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5806 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5807 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5808 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5809 (tdesc_powerpc_e500l): Remove.
5810 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5811 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5812 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5813 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5815 (ppc_arch_setup): Remove target description matching code. Fill a
5816 ppc_linux_features struct and call ppc_linux_match_description
5819 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5821 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5822 width of the requested register exceeds the width of the
5824 (mips_cannot_store_register): Likewise.
5826 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5828 * linux-mips-low.c (mips_fetch_register): New function. Update
5830 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5831 (the_low_target): Wire `mips_fetch_register'.
5833 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5835 * lynx-i386-low.c (LYNXOS_178): New macro.
5836 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5837 the layout on LynxOS-178.
5838 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5839 handle floating point registers that are not supported by
5842 2018-05-10 Tom Tromey <tom@tromey.com>
5844 * configure: Rebuild.
5846 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5849 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5850 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5851 Use it to set the expedite_regs field in the given tdesc.
5852 * x86-tdesc.h: New file.
5853 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5854 Adjust following the addition of the new expedite_regs parameter
5855 to init_target_desc.
5856 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5857 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5858 (i386_linux_read_description, amd64_linux_read_description):
5859 Adjust following the addition of the new expedite_regs parameter
5860 to init_target_desc.
5861 * lynx-i386-low.c: #include "x86-tdesc.h".
5862 (lynx_i386_arch_setup): Adjust following the addition of the new
5863 expedite_regs parameter to init_target_desc.
5864 * nto-x86-low.c: #include "x86-tdesc.h".
5865 (nto_x86_arch_setup): Adjust following the addition of the new
5866 expedite_regs parameter to init_target_desc.
5867 * win32-i386-low.c: #include "x86-tdesc.h".
5868 (i386_arch_setup): Adjust following the addition of the new
5869 expedite_regs parameter to init_target_desc.
5871 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5874 * win32-low.c (win32_create_inferior): Add call to my_wait
5875 setting last_status global.
5877 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5880 * win32-low.c (create_process): Only call gdb_tilde_expand if
5881 inferior_cwd is not NULL.
5883 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5885 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5886 registers to the cache if their values have changed.
5887 (i387_xsave_to_cache): Provide default values for x87 control
5888 registers when these features are available, but disabled.
5889 * regcache.c (supply_register_by_name_zeroed): New function.
5890 * regcache.h (supply_register_by_name_zeroed): Declare new
5893 2018-05-07 Tom Tromey <tom@tromey.com>
5895 * configure: Rebuild.
5897 2018-05-04 Tom Tromey <tom@tromey.com>
5899 * configure: Rebuild.
5901 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5902 Pedro Alves <palves@redhat.com>
5904 * linux-aarch64-low.c (aarch64_stopped_data_address):
5907 2018-04-27 Tom Tromey <tom@tromey.com>
5909 * configure: Rebuild.
5911 2018-04-23 Tom Tromey <tom@tromey.com>
5913 * configure: Rebuild.
5915 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5917 * Makefile.in (depcomp): Add "..".
5918 (all_deps_files): New and use it.
5920 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5922 * configure.srv (aarch64*-*-linux*): Don't include xml.
5923 (i[34567]86-*-cygwin*): Likewise.
5924 (i[34567]86-*-linux*): Likewise.
5925 (i[34567]86-*-lynxos*): Likewise.
5926 (i[34567]86-*-mingw32ce*): Likewise.
5927 (i[34567]86-*-mingw*): Likewise.
5928 (i[34567]86-*-nto*): Likewise.
5929 (tic6x-*-uclinux): Likewise.
5930 (x86_64-*-linux*): Likewise.
5931 (x86_64-*-mingw*): Likewise.
5932 (x86_64-*-cygwin*): Likewise.
5934 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5936 * tdesc.c: Remove xml parameter.
5938 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5940 * server.c (get_features_xml): Remove cast.
5941 * tdesc.c (void target_desc::accept): Fill in function.
5942 (tdesc_get_features_xml): Remove old xml creation.
5943 (print_xml_feature::visit_pre): Add xml vistor.
5944 * tdesc.h (struct target_desc): Make xmltarget mutable.
5945 (tdesc_get_features_xml): Remove declaration.
5947 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5949 * tdesc.c (tdesc_architecture_name): Add new function.
5950 (tdesc_osabi_name): Likewise.
5951 (tdesc_get_features_xml): Use new functions.
5953 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5955 * tdesc.c (tdesc_create_flags): Remove.
5956 (tdesc_add_flag): Likewise.
5957 (tdesc_named_type): Likewise.
5958 (tdesc_create_union): Likewise.
5959 (tdesc_create_struct): Likewise.
5960 (tdesc_create_vector): Likewise.
5961 (tdesc_add_bitfield): Likewise.
5962 (tdesc_add_field): Likewise.
5963 (tdesc_set_struct_size): Likewise.
5965 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5967 * tdesc.c (~target_desc): Remove implictly deleted items.
5968 (init_target_desc): Iterate all features.
5969 (tdesc_get_features_xml): Use vector.
5970 (tdesc_create_feature): Create feature.
5971 * tdesc.h (tdesc_feature) Remove
5972 (target_desc): Add features.
5974 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5976 * Makefile.in: Add common/tdesc.c
5977 * tdesc.c (init_target_desc): init all reg_defs from register
5979 (tdesc_create_reg): Create tdesc_reg.
5980 * tdesc.h (tdesc_feature): Add register vector.
5982 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5984 * tdesc.h (struct target_desc) <features>: Change type to
5985 std::vector<std::string>.
5986 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5988 (tdesc_get_features_xml): Likewise.
5989 (tdesc_create_feature): Likewise.
5991 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5993 * regcache.c (find_register_by_number): Return a ref.
5994 (find_regno): Use references.
5995 (register_size): Likewise.
5996 (register_data): Likewise.
5997 * tdesc.c (target_desc::~target_desc): Remove free calls.
5998 (target_desc::operator==): Use std::vector compare.
5999 (init_target_desc): Use reference.
6000 (tdesc_create_reg): Use reg constructors.
6001 * tdesc.h (struct target_desc): Replace pointer with object.
6003 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6005 * regcache.c (find_register_by_number): Make static.
6006 (find_regno): Use find_register_by_number
6007 * regcache.h (struct reg): Remove declaration.
6009 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6011 * tdesc.c (target_desc::~target_desc): Move to here.
6012 (target_desc::operator==): Likewise.
6013 * tdesc.h (target_desc::~target_desc): Move from here.
6014 (target_desc::operator==): Likewise.
6016 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6018 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6020 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6022 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6024 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6025 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6026 and init_registers_s390_gs_linux64.
6028 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6030 * linux-s390-low.c (s390_fill_gs): Remove function.
6031 (s390_fill_gsbc): Remove function.
6032 (s390_regsets): Set fill functions for the guarded storage regsets
6035 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6037 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6038 the word size. Add comment.
6039 (s390_get_wordsize): New function.
6040 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6041 pswm with it. Instead, use s390_get_wordsize to determine the
6042 word size first and derive the correct tdesc from that directly.
6044 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6046 * Makefile.in: Include silent-rules.mk.
6047 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6048 (COMPILE): Add ECHO_CXX.
6049 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6050 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6051 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6052 (version-generated.c): Add ECHO_GEN.
6053 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6054 (IPAGENT_COMPILE): Add ECHO_CXX.
6055 (%-generated.c): Add ECHO_REGDAT.
6057 2018-03-14 Tom Tromey <tom@tromey.com>
6060 * ax.c (ax_printf): Special case for NULL.
6062 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6064 * linux-low.c (linux_qxfer_libraries_svr4): Use
6065 xml_escape_text_append.
6067 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6069 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6071 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6073 * server.c (handle_general_set): Remove unnecessary xstrdup.
6075 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6077 * server.c (parse_debug_format_options): Adjust to
6078 delim_string_to_char_ptr_vec changes.
6079 * thread-db.c (thread_db_load_search): Adjust to
6080 dirnames_to_char_ptr_vec changes.
6082 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6084 * target.h (target_enable_btrace, target_disable_btrace)
6085 (target_read_btrace, target_read_btrace_conf): Turn macro into
6086 inline function. Throw error if target method is not defined.
6087 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6088 check for btrace target method. Be prepared to handle exceptions
6089 from btrace target methods.
6091 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6093 * server.c (captured_main): Change order of error message printed
6094 when the current working directory cannot be found.
6096 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6098 * server.c: Include "filenames.h" and "pathstuff.h".
6099 (program_name): Delete variable.
6100 (program_path): New anonymous class.
6101 (get_exec_wrapper): Use "program_path" instead of
6103 (handle_v_run): Likewise.
6104 (captured_main): Likewise.
6105 (process_serial_event): Likewise.
6107 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6109 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6110 (OBJS): Add "pathstuff.o".
6111 * server.c (current_directory): New global variable.
6112 (captured_main): Initialize "current_directory".
6114 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6116 * tdesc.c: Use common/tdesc.h.
6117 * tdesc.h: Likewise.
6119 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6120 Simon Marchi <simon.marchi@ericsson.com>
6122 * Makefile.in: Switch order of make rules.
6124 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6126 * Makefile.in: Add common directory in build.
6127 * configure.ac: Add common reference.
6128 * configure: Regenerate.
6130 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6132 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6133 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6134 * spu-low.c (spu_target_ops): Likewise.
6135 * win32-low.c (win32_target_ops): Likewise.
6136 * server.c (supported_btrace_packets): Report packets unconditionally.
6137 * target.h (target_ops) <supports_btrace>: Remove.
6138 (target_supports_btrace): Remove.
6140 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6142 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6143 (handle_btrace_disable): Change return type to void. Use exceptions
6145 (handle_btrace_general_set): Catch exception and copy message to
6148 2018-02-08 Tom Tromey <tom@tromey.com>
6150 * linux-low.c (install_software_single_step_breakpoints): Use
6151 make_scoped_restore.
6152 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6153 (do_restore_current_thread_cleanup): Remove.
6154 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6157 2018-02-08 Tom Tromey <tom@tromey.com>
6159 * mem-break.c (set_raw_breakpoint_at): Use
6160 gdb::unique_xmalloc_ptr.
6162 2018-01-30 Pedro Alves <palves@redhat.com>
6165 * target.c (target_terminal::terminal_state): Rename to ...
6166 (target_terminal::m_terminal_state): ... this.
6168 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6170 * linux-low.c (handle_extended_wait): Surround call to
6171 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6173 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6175 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6176 linux_ptrace_attach_fail_reason_string now returning an
6178 (linux_attach): Likewise.
6179 * thread-db.c (attach_thread): Likewise.
6181 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6184 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6185 checking for fs_base/gs_base fields in struct user_regs_struct.
6186 * configure: Regenerate.
6188 2018-01-16 Yao Qi <yao.qi@linaro.org>
6191 * linux-low.c (fetch_register): Call supply_register instead of
6194 2018-01-08 Yao Qi <yao.qi@linaro.org>
6195 Simon Marchi <simon.marchi@ericsson.com>
6197 * Makefile.in (OBS): Remove selftest.o.
6198 * configure.ac: Set srv_selftest_objs if $development is true.
6199 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6200 * configure: Re-generated.
6201 * server.c (captured_main): Wrap variable selftest_filter with
6204 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6206 * server.c (parse_debug_format_options): Return std::string.
6207 (handle_monitor_command, captured_main): Adjust.
6209 2018-01-05 Pedro Alves <palves@redhat.com>
6212 * server.c (captured_main): Pass quiet=false to
6213 save_original_signals_state.
6215 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6217 * gdbreplay.c (gdbreplay_version): Update copyright year in
6219 * server.c (gdbserver_version): Likewise.
6221 2017-12-08 Tom Tromey <tom@tromey.com>
6223 * ax.c (ax_printf): Update.
6225 2017-12-07 Yao Qi <yao.qi@linaro.org>
6227 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6228 aarch64_linux_read_description.
6229 * linux-amd64-ipa.c (idx2mask): New array.
6230 (get_ipa_tdesc): Move idx2mask out.
6231 (initialize_low_tracepoint): Initialize target descriptions.
6232 * linux-i386-ipa.c (idx2mask): New array.
6233 (get_ipa_tdesc): Move idx2mask out.
6234 (initialize_low_tracepoint): Initialize target descriptions.
6236 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6238 * tdesc.c (struct tdesc_type): Change return type.
6239 (tdesc_add_flag): Change parameter type.
6240 (tdesc_add_bitfield): Likewise.
6241 (tdesc_add_field): Likewise.
6242 (tdesc_set_struct_size): Likewise.
6244 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6246 * regcache.c (registers_to_string): Remove unused variable.
6248 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6250 * inferiors.c (for_each_inferior_with_data): Remove.
6251 * inferiors.h (for_each_inferior_with_data): Remove.
6252 * server.c (handle_qxfer_threads_worker): Change parameter type.
6253 (handle_qxfer_threads_proper): Use for_each_thread.
6255 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6257 * inferiors.c (for_each_inferior): Remove.
6258 (clear_inferiors): Use for_each_thread.
6259 * inferiors.h (for_each_inferior): Remove.
6260 * linux-low.c (linux_wait_for_event_filtered): Use
6262 (linux_stabilize_threads): Likewise.
6263 * regcache.c (regcache_release): Likewise.
6264 * server.c (gdb_wants_all_threads_stopped): Likewise.
6265 (clear_pending_status_callback): Remove.
6266 (handle_status): Use for_each_thread.
6267 (captured_main): Likewise.
6268 * win32-low.c (child_init_thread_list): Likewise.
6269 (win32_clear_inferiors): Likewise.
6270 (fake_breakpoint_event): Likewise.
6272 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6274 * inferiors.h (find_inferior): Remove.
6275 * inferiors.c (find_inferior): Remove.
6277 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6279 * linux-low.c (resume_status_pending_p): Update comment.
6280 (need_step_over_p): Update comment.
6282 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6284 * linux-low.c (proceed_one_lwp): Return void, change parameter
6286 (unsuspend_and_proceed_one_lwp): Likewise.
6287 (proceed_all_lwps): Use for_each_thread.
6288 (unstop_all_lwps): Likewise.
6290 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6292 * linux-low.c (linux_resume_one_thread): Return void, take
6294 (linux_resume): Use for_each_thread.
6296 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6298 * linux-low.c (send_sigstop_callback): Return void, change
6299 parameter type. Rename to...
6300 (send_sigstop): ... this.
6301 (suspend_and_send_sigstop_callback): Return void, change parameter
6303 (suspend_and_send_sigstop): ... this.
6304 (stop_all_lwps): Use for_each_thread.
6306 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6308 * linux-low.c (lwp_running): Return bool, remove unused
6310 (linux_stabilize_threads): Use find_thread.
6312 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6314 * linux-low.c (select_singlestep_lwp_callback): Remove.
6315 (count_events_callback): Remove.
6316 (select_event_lwp_callback): Remove.
6317 (select_event_lwp): Use find_thread/for_each_thread.
6319 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6321 * linux-low.c (not_stopped_callback): Return bool, take filter
6323 (linux_wait_for_event_filtered): Use find_thread.
6324 (linux_wait_1): Likewise.
6326 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6328 * linux-low.c (same_lwp): Remove.
6329 (find_lwp_pid): Use find_thread.
6331 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6333 * linux-low.c (delete_lwp_callback): Remove.
6334 (linux_mourn): Use for_each_thread.
6336 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6338 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6339 args parameter, don't check for pid.
6340 (linux_detach): Use for_each_thread.
6342 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6344 * linux-low.c (struct counter): Remove.
6345 (second_thread_of_pid_p): Remove.
6346 (last_thread_of_process_p): Use find_thread.
6348 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6350 * inferiors.c (find_inferior_in_random): Remove.
6351 * inferiors.h (find_inferior_in_random): Remove.
6352 * linux-low.c (status_pending_p_callback): Return bool, accept
6353 parameter ptid directly.
6354 (linux_wait_for_event_filtered): Use find_thread_in_random.
6355 (linux_wait_1): Likewise.
6357 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6359 * inferiors.c (find_inferior_id): Remove.
6360 (find_thread_ptid): Move implemention from find_inferior_id to
6362 * inferiors.h (find_inferior_id): Remove.
6363 * server.c (handle_status): Use find_thread_ptid.
6364 (process_serial_event): Likewise.
6365 * thread-db.c (find_one_thread): Likewise.
6366 (thread_db_thread_handle): Likewise.
6367 * win32-low.c (thread_rec): Likewise.
6368 (child_delete_thread): Likewise.
6369 (win32_thread_alive): Likewise.
6370 (get_child_debug_event): Likewise.
6372 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6374 * linux-mips-low.c (update_watch_registers_callback): Return
6375 void, remove pid_p parameter, don't check for pid.
6376 (mips_insert_point, mips_remove_point): Use for_each_thread.
6378 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6380 * lynx.low (lynx_delete_thread_callback): Remove.
6381 (lynx_mourn): Use for_each_thread.
6383 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6385 * regcache.c (regcache_invalidate_one): Remove.
6386 (regcache_invalidate_pid): use for_each_thread.
6388 2017-11-26 Tom Tromey <tom@tromey.com>
6390 * linux-low.c (linux_create_inferior): Update.
6392 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6394 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6396 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6398 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6399 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6400 * linux-aarch64-tdesc-selftest.c: New file.
6401 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6403 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6405 * configure.srv: Add new file.
6406 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6407 * linux-aarch64-tdesc-selftest.c: New file.
6408 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6410 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6412 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6413 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6414 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6416 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6418 * configure.srv: Add new files.
6419 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6420 aarch64_linux_read_description.
6421 * linux-aarch64-low.c (aarch64_linux_read_description):
6422 Merge with aarch64_arch_setup.
6423 (aarch64_arch_setup): Call aarch64_linux_read_description.
6424 * linux-aarch64-tdesc.c: New file.
6425 * linux-aarch64-tdesc.h: New file.
6427 2017-11-24 Yao Qi <yao.qi@linaro.org>
6429 * configure.srv: Set $srv_regobj for tic6x-linux.
6430 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6431 (tic6x_read_description): Move some code to tic6x_arch_setup.
6432 (tic6x_tdesc_test): New function.
6433 (initialize_low_arch): Call selftests::register_test.
6435 2017-11-22 Yao Qi <yao.qi@linaro.org>
6437 * remote-utils.c (prepare_resume_reply): Use memcpy.
6439 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6441 * linux-low.c (kill_one_lwp_callback): Return void, take
6442 argument directly, don't filter on pid.
6443 (linux_kill): Use for_each_thread.
6445 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6447 * linux-low.c (need_step_over_p): Return bool, remove dummy
6449 (linux_resume, proceed_all_lwps): Use find_thread.
6451 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6453 * linux-low.c (resume_status_pending_p): Return bool, remove
6455 (linux_resume): Use find_thread.
6457 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6459 * linux-low.c (struct thread_resume_array): Remove.
6460 (linux_set_resume_request): Return void, take arguments
6462 (linux_resume): Use for_each_thread.
6464 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6466 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6467 return bool, remove data argument.
6468 (linux_stabilize_threads): Use find_thread.
6470 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6472 * linux-low.c (unsuspend_one_lwp): Remove.
6473 (unsuspend_all_lwps): Use for_each_thread, inline code from
6476 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6478 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6479 * linux-low.c (struct iterate_over_lwps_args): Remove.
6480 (iterate_over_lwps_filter): Remove.
6481 (iterate_over_lwps): Use find_thread.
6483 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6485 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6486 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6487 code from reset_lwp_ptrace_options_callback.
6489 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6491 * linux-arm-low.c (struct update_registers_data): Remove.
6492 (update_registers_callback): Return void, take arguments
6493 directly, don't check thread's pid.
6494 (arm_insert_point, arm_remove_point): Use for_each_thread.
6496 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6498 * win32-low.c (continue_one_thread): Return void, take argument
6500 (child_continue): Use for_each_thread.
6502 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6504 * win32-i386-low.c (update_debug_registers_callback): Rename
6506 (update_debug_registers): ... this, return void, remove pid_p arg.
6507 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6509 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6511 * inferiors.h (struct process_info): Add constructor, initialize
6513 <syscalls_to_catch>: Change type to std::vector<int>.
6514 * inferiors.c (add_process): Allocate process_info with new.
6515 (remove_process): Free process_info with delete.
6516 * linux-low.c (handle_extended_wait): Adjust.
6517 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6518 * server.c (handle_general_set): Adjust.
6520 2017-11-16 Pedro Alves <palves@redhat.com>
6522 * remote-utils.c (remote_close): Block SIGIO signals instead of
6523 uninstalling the SIGIO handler.
6525 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6527 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6529 2017-11-16 Yao Qi <yao.qi@linaro.org>
6531 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6532 (tic6x_store_gregset): Likewise.
6533 (tic6x_usrregs_info): Move it up.
6535 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6537 * Makefile.in: Update arch rules.
6538 * configure.srv: Explicitly mark arch/ files.
6540 2017-11-13 Andreas Schwab <schwab@suse.de>
6542 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6544 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6546 2017-11-06 Pedro Alves <palves@redhat.com>
6548 * config.in, configure: Regenerate.
6550 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6552 * target.c (struct thread_search): Remove.
6553 (thread_search_callback): Remove.
6554 (prepare_to_access_memory): Use for_each_thread instead of
6555 find_inferior. Inline code from thread_search_callback.
6557 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6559 * server.c (struct visit_actioned_threads_data): Remove.
6560 (visit_actioned_threads): Change prototype to take arguments
6562 (resume): Use find_thread instead of find_inferior.
6564 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6566 * server.c (queue_stop_reply_callback): Change prototype, return
6568 (find_status_pending_thread_callback): Remove.
6569 (handle_status): Replace find_inferior with find_thread and
6572 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6574 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6576 (aarch64_store_gregset): Likewise.
6577 (aarch64_fill_fpregset): Likewise.
6578 (aarch64_store_fpregset): Likewise.
6580 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6582 * gdbthread.h (find_thread, for_each_thread): New functions.
6583 * inferiors.c (thread_of_pid): Remove.
6584 (find_any_thread_of_pid): Use find_thread.
6585 * linux-low.c (num_lwps): Use for_each_thread.
6587 2017-10-17 Yao Qi <yao.qi@linaro.org>
6589 * Makefile.in: Remove one rule.
6590 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6592 2017-10-17 Yao Qi <yao.qi@linaro.org>
6594 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6595 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6597 2017-10-17 Yao Qi <yao.qi@linaro.org>
6599 * configure.srv: Rename arm.o with arch/arm.o.
6601 2017-10-17 Yao Qi <yao.qi@linaro.org>
6603 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6604 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6605 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6606 (arch-i386.o, arch-amd64.o): Remove rules.
6607 (arch/%.o): New rule.
6608 Update POSTCOMPILE and COMPILE.pre.
6609 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6610 * configure: Re-generated.
6611 * configure.srv: Replace arch-i386.o with arch/i386.o.
6612 Replace arch-amd64.o with arch/amd64.o.
6614 2017-10-16 Yao Qi <yao.qi@linaro.org>
6616 * configure: Regenerated.
6618 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6620 * inferiors.h: (struct inferior_list): Remove.
6621 (struct inferior_list_entry); Remove.
6622 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6623 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6624 get_first_inferior): Remove.
6625 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6626 find_inferior_id, find_inferior_in_random): Change signature.
6627 * inferiors.c (all_threads): Change type to
6628 std::list<thread_info *>.
6629 (get_thread): Remove macro.
6630 (find_inferior, find_inferior_id): Change signature, implement
6632 (find_inferior_in_random): Change signature, implement using
6633 find_thread_in_random.
6634 (for_each_inferior, for_each_inferior_with_data): Change
6635 signature, implement using for_each_thread.
6636 (add_inferior_to_list, remove_inferior): Remove.
6637 (add_thread, get_first_thread, thread_of_pid,
6638 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6639 (get_first_inferior, one_inferior_p, clear_inferior_list):
6641 (clear_inferiors, get_thread_process): Update.
6642 * gdbthread.h: Include <list>.
6643 (struct thread_info) <entry>: Remove field.
6645 (all_threads): Change type to std::list<thread_info *>.
6646 (get_first_inferior): Add doc.
6647 (find_thread, for_each_thread, find_thread_in_random): New
6649 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6650 * linux-arm-low.c (update_registers_callback): Update.
6651 * linux-low.c (second_thread_of_pid_p): Update.
6652 (kill_one_lwp_callback, linux_detach_lwp_callback,
6653 delete_lwp_callback, status_pending_p_callback, same_lwp,
6654 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6655 iterate_over_lwps, not_stopped_callback,
6656 resume_stopped_resumed_lwps, count_events_callback,
6657 select_singlestep_lwp_callback, select_event_lwp_callback,
6658 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6659 suspend_and_send_sigstop_callback, wait_for_sigstop,
6660 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6661 lwp_running, linux_set_resume_request, resume_status_pending_p,
6662 need_step_over_p, start_step_over, linux_resume_one_thread,
6663 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6664 reset_lwp_ptrace_options_callback): Update.
6665 * linux-mips-low.c (update_watch_registers_callback): Update.
6666 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6668 (free_register_cache_thread_one): Remove.
6669 (regcache_release): Update.
6670 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6671 handle_qxfer_threads_worker): Update.
6672 (handle_query): Update, use list iterator.
6673 (visit_actioned_threads, handle_pending_status,
6674 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6675 clear_pending_status_callback, set_pending_status_callback,
6676 find_status_pending_thread_callback, handle_status,
6677 process_serial_event): Update.
6678 * target.c (thread_search_callback): Update.
6679 * thread-db.c (thread_db_get_tls_address): Update.
6680 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6682 * win32-i386-low.c (update_debug_registers_callback): Update.
6683 * win32-low.c (delete_thread_info, child_delete_thread,
6684 continue_one_thread, suspend_one_thread,
6685 get_child_debug_event): Adjust.
6687 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6689 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6690 * inferiors.h: Include <list>.
6691 (struct process_info) <entry>: Remove field.
6693 (pid_of): Change macro to function.
6694 (ptid_of, lwpid_of): Remove macro.
6695 (all_processes): Change type to std::list<process_info *>.
6696 (ALL_PROCESSES): Remove macro.
6697 (for_each_process, find_process): New function.
6698 * inferiors.c (all_processes): Change type to
6699 std::list<process_info *>.
6700 (find_thread_process): Adjust.
6701 (add_process): Likewise.
6702 (remove_process): Likewise.
6703 (find_process_pid): Likewise.
6704 (get_first_process): Likewise.
6705 (started_inferior_callback): Remove.
6706 (have_started_inferiors_p): Adjust.
6707 (attached_inferior_callback): Remove.
6708 (have_attached_inferiors_p): Adjust.
6709 * linux-low.c (check_zombie_leaders): Likewise.
6710 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6711 (x86_linux_update_xmltarget): Adjust.
6712 * server.c (handle_query): Likewise.
6713 (gdb_reattached_process): Remove.
6714 (handle_status): Adjust.
6715 (kill_inferior_callback): Likewise.
6716 (detach_or_kill_inferior): Remove.
6717 (print_started_pid): Likewise.
6718 (print_attached_pid): Likewise.
6719 (detach_or_kill_for_exit): Update.
6720 (process_serial_event): Likewise.
6721 * linux-arm-low.c (arm_new_fork): Likewise.
6723 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6725 * dll.h: Include <list>.
6726 (struct dll_info): Add constructor.
6727 <entry>: Remove field.
6728 (all_dlls): Change type to std::list<dll_info>.
6729 * dll.c: Include <algorithm>.
6730 (get_dll): Remove macro.
6731 (all_dlls): Change type to std::list<dll_info *>.
6732 (free_one_dll): Remove.
6733 (match_dll): Likewise.
6734 (loaded_dll): Adjust.
6735 (unloaded_dll): Adjust to all_dlls type change, use
6736 std::find_if. Inline code from match_dll.
6737 (clear_dlls): Adjust to all_dlls type change.
6738 * server.c (emit_dll_description): Remove.
6739 (handle_qxfer_libraries): Adjust to all_dlls type change,
6740 integrate emit_dll_description's functionality.
6742 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6744 * linux-low.h (struct linux_target_ops) <delete_process>: New
6746 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6747 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6748 (struct linux_target_ops): Add delete_process callback.
6749 * linux-arm-low.c (arm_delete_process): New.
6750 (struct linux_target_ops): Add delete_process callback.
6751 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6752 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6753 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6754 * linux-mips-low.c (mips_linux_delete_process): New.
6755 (struct linux_target_ops): Add delete_process callback.
6756 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6757 * linux-s390-low.c (struct linux_target_ops): Likewise.
6758 * linux-sh-low.c (struct linux_target_ops): Likewise.
6759 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6760 * linux-tile-low.c (struct linux_target_ops): Likewise.
6761 * linux-x86-low.c (x86_linux_delete_process): New.
6762 (struct linux_target_ops): Add delete_process callback.
6763 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6765 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6767 * linux-aarch64-low.c (the_low_target): Add thread delete
6769 * linux-arm-low.c (arm_delete_thread): New function.
6770 (the_low_target): Add thread delete callback.
6771 * linux-bfin-low.c (the_low_target): Likewise.
6772 * linux-crisv32-low.c (the_low_target): Likewise.
6773 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6775 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6777 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6778 * linux-mips-low.c (mips_linux_delete_thread): New function.
6779 (the_low_target): Add thread delete callback.
6780 * linux-ppc-low.c (the_low_target): Likewise.
6781 * linux-s390-low.c (the_low_target): Likewise.
6782 * linux-sh-low.c (the_low_target): Likewise.
6783 * linux-tic6x-low.c (the_low_target): Likewise.
6784 * linux-tile-low.c (the_low_target): Likewise.
6785 * linux-x86-low.c (the_low_target): Likewise.
6786 * linux-xtensa-low.c (the_low_target): Likewise.
6788 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6790 * win32-low.c: Include "common-inferior.h".
6792 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6794 * inferiors.c (set_inferior_cwd): New function.
6795 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6796 (handle_query): Inform that QSetWorkingDir is supported.
6797 * win32-low.c (create_process): Pass the inferior's cwd to
6800 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6802 * inferiors.c (current_inferior_cwd): New global variable.
6803 (get_inferior_cwd): New function.
6804 * inferiors.h (struct process_info) <cwd>: New field.
6806 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6808 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6809 (OBS): Add gdb_tilde_expand.o.
6811 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6813 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6814 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6816 2017-09-29 Pedro Alves <palves@redhat.com>
6818 * ax.c (gdb_parse_agent_expr): Constify.
6819 * ax.h (gdb_parse_agent_expr): Constify.
6820 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6822 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6823 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6824 * remote-utils.h (read_ptid): Constify.
6825 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6826 (process_point_options, process_serial_event): Constify.
6827 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6828 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6829 (cmd_qtbuffer): Constify.
6831 2017-09-29 Pedro Alves <palves@redhat.com>
6833 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6836 2017-09-29 Pedro Alves <palves@redhat.com>
6838 * linux-low.c (handle_extended_wait): Pass parent thread instead
6839 of process to thread_db_notice_clone.
6840 * linux-low.h (thread_db_notice_clone): Replace parent process
6841 parameter with parent thread parameter.
6842 * thread-db.c (find_one_thread): Add comment.
6843 (thread_db_notice_clone): Replace parent process parameter with
6844 parent thread parameter. Temporarily switch to the parent thread.
6846 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6848 * gdbthread.h: Include "common-gdbthread.h".
6849 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6850 "if" when validating the ptid.
6851 * remote-utils.c: Include "gdbthread.h".
6852 (prepare_resume_reply): Use "switch_to_thread".
6853 * target.c (done_accessing_memory): Likewise.
6855 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6857 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6858 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6859 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6860 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6861 s390x-gs-linux64-ipa.o to ipa_obj.
6862 * linux-s390-low.c (HWCAP_S390_GS): New define.
6863 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6865 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6866 (s390_arch_setup): Check for guarded-storage support and choose
6868 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6869 init_registers_s390x_gs_linux64.
6870 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6872 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6873 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6875 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6877 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6879 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6881 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6882 (thread_db_thread_handle): Declare.
6883 * linux-low.c (linux_target_ops): Initialize thread_handle.
6884 * server.c (handle_qxfer_threads_worker): Add support for
6886 * target.h (struct target_ops): Add new function pointer,
6888 (target_thread_handle): Define.
6889 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6891 (thread_db_thread_handle): New function.
6893 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6895 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6896 * linux-low.h (thread_db_notice_clone): Declare.
6897 * thread-db.c (thread_db_notice_clone): New function.
6899 2017-09-21 Pedro Alves <palves@redhat.com>
6901 * server.c (gdb_read_memory, handle_status, process_serial_event)
6902 (handle_serial_event, handle_target_event): Adjust to
6903 set_desired_thread prototype change.
6904 * target.c (set_desired_thread): Remove 'use_general' parameter
6906 * target.h (set_desired_thread): Remove 'use_general' parameter.
6908 2017-09-20 Tom Tromey <tom@tromey.com>
6910 * target.c (target_terminal::terminal_state): Define.
6911 (target_terminal::init): Rename from target_terminal_init.
6912 (target_terminal::inferior): Rename from
6913 target_terminal_inferior.
6914 (target_terminal::ours): Rename from target_terminal_ours.
6915 (target_terminal::ours_for_output, target_terminal::info): New.
6917 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6919 * server.c (accumulate_file_name_length): Remove.
6920 (emit_dll_description): Adjust to std::string change.
6921 (handle_qxfer_libraries): Use std::string to hold document.
6923 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6925 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6926 return type of xml_escape_text.
6927 * server.c (emit_dll_description): Likewise.
6929 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6931 * server.c (captured_main): Accept argument for --selftest.
6932 Update run_tests call.
6933 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6934 when registering selftests.
6936 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6938 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6939 instead of "VEC" for "target_desc.reg_defs".
6940 (regcache_cpy): Likewise.
6941 (registers_to_string): Likewise.
6942 (registers_from_string): Likewise.
6943 (find_regno): Likewise.
6944 (supply_regblock): Likewise.
6945 (regcache_raw_read_unsigned): Likewise.
6946 * tdesc.c (init_target_desc): Likewise.
6947 (tdesc_create_reg): Likewise.
6948 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6949 (struct target_desc) <reg_defs>: Convert to "std::vector".
6950 (target_desc): Do not initialize "reg_defs".
6951 (~target_desc): Update code to use "std::vector" instead of "VEC"
6952 for "target_desc.reg_defs".
6953 (operator==): Likewise.
6955 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6957 * inferiors.h (thread_to_gdb_id): Remove.
6958 * inferiors.c (thread_to_gdb_id): Remove.
6959 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6960 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6961 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6963 * nto-low.c (nto_fetch_registers, nto_store_registers,
6964 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6966 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6968 * inferiors.h (gdb_id_to_thread_id): Remove.
6969 * inferiors.c (gdb_id_to_thread_id): Remove.
6970 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6971 removal. Move pid declaration closer to where it's used.
6973 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6975 * server.c (handle_detach): New function.
6976 (process_serial_event): Move code out, call handle_detach.
6978 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6980 * server.c (require_running): Rename to ...
6981 (require_running_or_return): ... this ...
6982 (require_running_or_break): ... and this.
6983 (handle_query, process_serial_event): Adjust.
6985 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6987 * linux-low.c (linux_set_resume_request): Remove unused
6990 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6992 * server.c (first_thread_of): Remove.
6993 (process_serial_event): Replace usage of first_thread_of with
6994 find_any_thread_of_pid.
6995 * tracepoint.c (same_process_p): Remove.
6996 (gdb_agent_about_to_close): Replace usage of same_process_p with
6997 find_any_thread_of_pid.
6998 * linux-x86-low.c (same_process_callback): Remove.
6999 (x86_arch_setup_process_callback): Replace usage of
7000 same_process_callback with find_any_thread_of_pid.
7001 * thread-db.c (any_thread_of): Remove.
7002 (switch_to_process): Replace usage of any_thread_of with
7003 find_any_thread_of_pid.
7004 * inferiors.c (thread_pid_matches_callback): Remove.
7005 (find_thread_process): Adjust to use find_any_thread_of_pid.
7007 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7009 * regcache.c (get_thread_regcache): Guard calls to "memset"
7012 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7014 * linux-low.c (handle_extended_wait): Use
7015 "allocate_target_description" instead of "XNEW".
7016 * linux-x86-low.c (initialize_low_arch): Likewise.
7018 2017-09-05 Yao Qi <yao.qi@linaro.org>
7020 * configure.srv (srv_i386_regobj): Remove.
7021 (srv_amd64_regobj): Remove.
7022 (srv_regobj): Set it to "" for x86 non-linux targets.
7023 * linux-x86-tdesc.c (i386_linux_read_description):
7024 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7025 (init_registers_i386): Remove the declaration.
7026 (tdesc_i386): Remove the declaration.
7027 (lynx_i386_arch_setup): Call i386_create_target_description.
7028 * nto-x86-low.c: Likewise.
7029 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7030 [!__x86_64__]: include arch/i386.h.
7031 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7033 2017-09-05 Yao Qi <yao.qi@linaro.org>
7035 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7036 i386/amd64-XXX-linux from it.
7038 2017-09-05 Yao Qi <yao.qi@linaro.org>
7040 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7042 (ipa_amd64_linux_regobj): Remove.
7043 (ipa_x32_linux_regobj): Remove.
7045 2017-09-05 Yao Qi <yao.qi@linaro.org>
7047 * Makefile.in (arch-amd64.o): New rule.
7048 * configure.srv: Append arch-amd64.o.
7049 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7050 (get_ipa_tdesc): Call amd64_linux_read_description.
7051 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7052 and init_registers_amd64_XXX.
7053 * linux-x86-low.c (x86_linux_read_description): Call
7054 amd64_linux_read_description.
7055 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7056 (initialize_low_arch): Don't call init_registers_x32_XXX and
7057 init_registers_amd64_XXX.
7058 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7059 and tdesc_amd64_XXX.
7060 [__x86_64__] (amd64_tdesc_test): New function.
7061 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7062 and init_registers_amd64_XXX.
7063 * linux-x86-tdesc.c: Include arch/amd64.h.
7064 (xcr0_to_tdesc_idx): New function.
7065 (i386_linux_read_description): New function.
7066 (amd64_get_ipa_tdesc_idx): New function.
7067 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7068 (amd64_get_ipa_tdesc): Declare.
7070 2017-09-05 Yao Qi <yao.qi@linaro.org>
7072 * configure.srv (srv_i386_linux_xmlfiles): Remove
7073 i386/i386-XXX-linux.xml from it.
7075 2017-09-05 Yao Qi <yao.qi@linaro.org>
7077 * configure.srv: Set srv_i386_linux_regobj empty if $development
7079 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7080 initialize_low_tdesc.
7081 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7082 with #if initialize_low_tdesc.
7083 * linux-x86-tdesc-selftest.c: New file.
7084 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7086 2017-09-05 Yao Qi <yao.qi@linaro.org>
7088 * Makefile.in (arch-i386.o): New rule.
7089 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7090 (x86_64-*-linux*): Likewise.
7091 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7092 include arch/i386.h.
7093 (i386_linux_read_description): Remove code and call
7094 i386_create_target_description.
7095 * tdesc.c (allocate_target_description): New function.
7096 * tdesc.h (set_tdesc_architecture): Remove declaration.
7097 (set_tdesc_osabi): Likewise.
7099 2017-09-05 Yao Qi <yao.qi@linaro.org>
7101 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7102 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7103 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7105 * server.c (get_features_xml): Call tdesc_get_features_xml.
7106 * tdesc.c (set_tdesc_architecture): New function.
7107 (set_tdesc_osabi): New function.
7108 (tdesc_get_features_xml): New function.
7109 (tdesc_create_feature): Add an argument.
7110 * tdesc.h (struct target_desc) <features>: New field.
7111 <arch, osabi>: New field.
7112 (~target_desc): xfree features, arch, and osabi.
7113 (target_desc::oerator==): Don't compare .xmltarget.
7114 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7115 (set_tdesc_osabi): Likewise.
7116 (tdesc_get_features_xml): Likewise.
7118 2017-09-05 Yao Qi <yao.qi@linaro.org>
7120 * linux-x86-tdesc.c: Include selftest.h.
7121 (i386_tdesc_test): New function.
7122 (initialize_low_tdesc): Call selftests::register_test.
7123 * tdesc.h: Include regdef.h.
7124 (target_desc): Override operator == and !=.
7126 2017-09-05 Yao Qi <yao.qi@linaro.org>
7128 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7129 (ipa_obj): Likewise.
7130 * linux-i386-ipa.c: Include common/x86-xstate.h
7131 (get_ipa_tdesc): Call i386_linux_read_description.
7132 (initialize_low_tracepoint): Don't call init_registers_XXX
7133 functions, call initialize_low_tdesc instead.
7134 * linux-x86-low.c (x86_linux_read_description): Call
7135 i386_linux_read_description.
7136 (initialize_low_arch): Don't call init_registers_i386_XXX
7137 functions, call initialize_low_tdesc.
7138 * linux-x86-tdesc.c: New file.
7139 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7140 (i386_get_ipa_tdesc_idx): Declare.
7141 (i386_get_ipa_tdesc): Declare.
7142 (initialize_low_tdesc): Declare.
7144 2017-09-05 Yao Qi <yao.qi@linaro.org>
7146 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7149 2017-09-05 Yao Qi <yao.qi@linaro.org>
7151 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7152 * regcache.c (get_thread_regcache): Use VEC_length.
7153 (init_register_cache): Likewise.
7154 (regcache_cpy): Likewise.
7155 (registers_to_string): Iterate reg_defs via VEC_iterate.
7156 (find_regno): Likewise.
7157 (find_register_by_number): Use VEC_index.
7158 (register_size): Call find_register_by_number.
7159 (register_data): Call find_register_by_number.
7160 (supply_regblock): Use VEC_length.
7161 (regcache_raw_read_unsigned): Likewise.
7162 * tdesc.c (init_target_desc): Iterate reg_defs via
7164 (default_description): Update initializer.
7165 (copy_target_description): Don't update field num_registers.
7166 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7167 <num_registers>: Remove.
7169 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7171 * Makefile.in (.SECONDARY): Define target.
7173 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7175 * linux-low.c (linux_wait_1): Adjust.
7176 * server.c (queue_stop_reply_callback): Adjust.
7178 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7180 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7181 QEnvironmentUnset and QEnvironmentReset packets.
7182 (handle_query): Inform remote that QEnvironmentHexEncoded,
7183 QEnvironmentUnset and QEnvironmentReset are supported.
7185 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7187 * inferiors.h (inferior_target_data): Rename to ...
7188 (thread_target_data): ... this.
7189 (inferior_regcache_data): Rename to ...
7190 (thread_regcache_data): ... this.
7191 (set_inferior_regcache_data): Rename to ...
7192 (set_thread_regcache_data): ... this.
7193 * inferiors.c (inferior_target_data): Rename to ...
7194 (thread_target_data): ... this.
7195 (inferior_regcache_data): Rename to ...
7196 (thread_regcache_data): ... this.
7197 (set_inferior_regcache_data): Rename to ...
7198 (set_thread_regcache_data): ... this.
7199 (free_one_thread): Update.
7200 * linux-low.h (get_thread_lwp): Update.
7201 * regcache.c (get_thread_regcache): Update.
7202 (regcache_invalidate_thread): Update.
7203 (free_register_cache_thread): Update.
7204 * win32-i386-low.c (update_debug_registers_callback): Update.
7205 (win32_get_current_dr): Update.
7206 * win32-low.c (thread_rec): Update.
7207 (delete_thread_info): Update.
7208 (continue_one_thread): Update.
7209 (suspend_one_thread): Update.
7211 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7213 * inferiors.c (set_inferior_target_data): Remove.
7214 * inferiors.h (set_inferior_target_data): Remove.
7216 2017-08-18 Yao Qi <yao.qi@linaro.org>
7218 * Makefile.in (OBS): Add selftest.o.
7219 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7220 * configure, config.in: Re-generated.
7221 * server.c: Include common/sefltest.h.
7222 (captured_main): Handle option --selftest.
7224 2017-08-09 Yao Qi <yao.qi@linaro.org>
7226 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7227 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7228 i386-avx-mpx.o and i386-mmx.o.
7229 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7230 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7231 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7232 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7233 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7234 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7235 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7236 i386/amd64-avx-mpx.xml.
7238 2017-08-09 Yao Qi <yao.qi@linaro.org>
7240 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7241 and x32-avx-avx512.o.
7242 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7243 i386/x32-avx-avx512.xml.
7245 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7247 * tracepoint.h (enum class fast_tpoint_collect_result): New
7249 (fast_tracepoint_collecting): Change return type to
7250 fast_tpoint_collect_result.
7251 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7252 * linux-low.h: Include tracepoint.h.
7253 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7254 fast_tpoint_collect_result.
7255 * linux-low.c (handle_tracepoints): Adjust.
7256 (linux_fast_tracepoint_collecting): Change return type to
7257 fast_tpoint_collect_result.
7258 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7259 linux_wait_1, stuck_in_jump_pad_callback,
7260 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7261 proceed_one_lwp): Adjust to type change.
7263 2017-07-10 Yao Qi <yao.qi@linaro.org>
7265 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7267 2017-06-29 Yao Qi <yao.qi@linaro.org>
7269 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7271 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7273 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7275 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7277 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7279 * linux-low.c (linux_create_inferior): Adjust code to access the
7280 environment information via 'gdb_environ' class.
7281 * lynx-low.c (lynx_create_inferior): Likewise.
7282 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7283 (get_environ): Return a pointer to 'our_environ'.
7284 (captured_main): Initialize 'our_environ'.
7285 * server.h (get_environ): Adjust prototype.
7286 * spu-low.c (spu_create_inferior): Adjust code to access the
7287 environment information via 'gdb_environ' class.
7289 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7291 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7292 usage of "register" keyword.
7294 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7296 * configure: Re-generate.
7298 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7300 * configure: Re-generate.
7302 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7304 * Makefile.in (COMPILE.pre): Add "-x c++".
7306 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7308 * fork-child.c: Conditionally include <signal.h>.
7310 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7312 * server.c (handle_general_set): Handle new packet
7313 "QStartupWithShell".
7314 (handle_query): Add "QStartupWithShell" to the list of supported
7316 (gdbserver_usage): Add help text explaining the
7317 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7319 (captured_main): Recognize and act upon the presence of the new
7322 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7323 Pedro Alves <palves@redhat.com>
7325 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7326 * configure: Regenerate.
7327 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7329 (i[34567]86-*-lynxos*): Likewise.
7330 (spu*-*-*): Likewise.
7331 * fork-child.c: New file.
7332 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7334 (linux_ptrace_fun): New function.
7335 (linux_create_inferior): Adjust function prototype to reflect
7336 change on "target.h". Adjust function code to use
7338 (linux_request_interrupt): Delete "signal_pid".
7339 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7340 (lynx_ptrace_fun): New function.
7341 (lynx_create_inferior): Adjust function prototype to reflect
7342 change on "target.h". Adjust function code to use
7344 * nto-low.c (nto_create_inferior): Adjust function prototype and
7345 code to reflect change on "target.h". Update comments.
7346 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7347 "common-terminal.h" and "environ.h".
7348 (terminal_fd): Moved to fork-child.c.
7349 (old_foreground_pgrp): Likewise.
7350 (restore_old_foreground_pgrp): Likewise.
7351 (last_status): Make it global.
7352 (last_ptid): Likewise.
7353 (our_environ): New variable.
7354 (startup_with_shell): Likewise.
7355 (program_name): Likewise.
7356 (program_argv): Rename to...
7357 (program_args): ...this.
7358 (wrapper_argv): New variable.
7359 (start_inferior): Delete function.
7360 (get_exec_wrapper): New function.
7361 (get_exec_file): Likewise.
7362 (get_environ): Likewise.
7363 (prefork_hook): Likewise.
7364 (post_fork_inferior): Likewise.
7365 (postfork_hook): Likewise.
7366 (postfork_child_hook): Likewise.
7367 (handle_v_run): Update code to deal with arguments coming from the
7368 remote host. Update calls from "start_inferior" to
7370 (captured_main): Likewise. Initialize environment variable. Call
7372 * server.h (post_fork_inferior): New prototype.
7373 (get_environ): Likewise.
7374 (last_status): Declare.
7375 (last_ptid): Likewise.
7376 (signal_pid): Likewise.
7377 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7378 (spu_ptrace_fun): New function.
7379 (spu_create_inferior): Adjust function prototype to reflect change
7380 on "target.h". Adjust function code to use "fork_inferior".
7381 * target.c (target_terminal_init): New function.
7382 (target_terminal_inferior): Likewise.
7383 (target_terminal_ours): Likewise.
7384 * target.h: Include <vector>.
7385 (struct target_ops) <create_inferior>: Update prototype.
7386 (create_inferior): Update macro.
7387 * utils.c (gdb_flush_out_err): New function.
7388 * win32-low.c (win32_create_inferior): Adjust function prototype
7389 and code to reflect change on "target.h".
7391 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7393 * inferiors.c (switch_to_thread): New function.
7395 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7397 * Makefile.in (SFILE): Add "common/job-control.c".
7398 (OBS): Add "job-control.o".
7400 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7402 * Makefile: Remove "@host_makefile_frag@".
7404 2017-05-05 Pedro Alves <palves@redhat.com>
7406 * configure: Regenerate.
7408 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7410 * configure: Regenerate.
7412 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7414 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7415 software_single_step change of return type to
7416 std::vector<CORE_ADDR>.
7417 * linux-low.c (install_software_single_step_breakpoints):
7419 * linux-low.h (install_software_single_step_breakpoints):
7422 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7424 * remote-utils.c: Include "gdb_termios.h" instead of
7426 * terminal.h: Delete file.
7428 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7430 * server.c: Include <vector>.
7431 <program_argv, wrapper_argv>: Convert to std::vector.
7432 (start_inferior): Rewrite function to use C++.
7433 (handle_v_run): Likewise. Update code that calculates the argv
7434 based on the vRun packet; use C++.
7435 (captured_main): Likewise.
7437 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7439 * server.c (handle_v_cont): Initialize thread_resume::thread
7442 2017-04-05 Pedro Alves <palves@redhat.com>
7444 * configure: Regenerate.
7446 2017-04-05 Pedro Alves <palves@redhat.com>
7448 * gdbreplay.c (sync_error): Constify.
7449 * linux-x86-low.c (push_opcode): Constify.
7451 2017-04-05 Pedro Alves <palves@redhat.com>
7453 * win32-low.c (get_child_debug_event)
7454 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7455 Report TARGET_WAITKIND_SPURIOUS instead.
7457 2017-04-05 Pedro Alves <palves@redhat.com>
7459 * remote-utils.c (remote_prepare, remote_open): Constify.
7460 * remote-utils.h (remote_prepare, remote_open): Constify.
7461 * server.c (captured_main): Constify 'port' handling.
7463 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7465 * Makefile.in (clean): Clear .deps.
7467 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7469 * .gitignore: Remove generated files, replace with wildcard.
7470 * (clean): Replace removal of generated files with wildcard.
7471 (version.c): Replace with...
7472 (version-generated.c): ...this.
7473 (xml-builtin.c): Replace with...
7474 (xml-builtin-generated.c): ...this.
7475 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7476 (%.c: *regformats*): Replace with...
7477 (%-generated.c: *regformats*): ...this.
7479 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7481 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7482 (xtensa_fill_gregset): Call collect_register_by_name for
7484 (xtensa_store_gregset): Call supply_register_by_name for
7487 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7489 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7490 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7491 (xtensa_store_gregset): Call supply_register for all registers in
7492 a0_regnum..a0_regnum + C0_NREGS range.
7494 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7496 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7497 (ax-ipa.o: ax.c): Remove.
7498 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7499 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7500 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7501 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7502 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7504 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7506 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7507 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7508 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7509 (errors-ipa.o: ../common/errors.c): Remove.
7510 (format-ipa.o: ../common/format.c): Remove.
7511 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7513 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7515 * Makefile.in (%-ipa.o: %.c): New rule.
7516 (tracepoint-ipa.o: tracepoint.c): Remove.
7517 (utils-ipa.o: utils.c): Remove.
7518 (remote-utils-ipa.o: remote-utils.c): Remove.
7519 (regcache-ipa.o: regcache.c): Remove.
7520 (i386-linux-ipa.o: i386-linux.c): Remove.
7521 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7522 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7523 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7524 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7525 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7526 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7527 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7528 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7529 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7530 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7531 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7532 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7533 (aarch64-ipa.o: aarch64.c): Remove.
7534 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7535 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7536 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7537 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7538 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7539 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7540 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7541 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7542 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7543 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7544 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7545 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7546 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7547 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7548 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7549 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7550 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7551 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7552 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7553 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7554 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7555 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7556 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7557 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7558 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7559 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7560 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7561 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7562 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7563 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7564 (tdesc-ipa.o: tdesc.c): Remove.
7565 (x32-linux-ipa.o: x32-linux.c): Remove.
7566 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7567 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7569 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7571 * Makefile.in (%.o: ../arch/%.c): New rule.
7572 (arm.o: ../arch/arm.c): Remove.
7573 (arm-linux.o: ../arch/arm-linux.c): Remove.
7574 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7575 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7577 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7579 * Makefile.in (%.o: ../nat/%.c): New rule.
7580 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7581 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7582 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7583 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7584 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7585 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7586 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7587 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7588 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7589 (linux-personality.o: ../nat/linux-personality.c): Remove.
7590 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7591 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7592 (x86-linux.o: ../nat/x86-linux.c): Remove.
7593 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7594 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7596 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7598 * Makefile.in (%.o: ../common/%.c): New rule.
7599 (signals.o: ../common/signals.c): Remove.
7600 (print-utils.o: ../common/print-utils.c): Remove.
7601 (rsp-low.o: ../common/rsp-low.c): Remove.
7602 (common-utils.o: ../common/common-utils.c): Remove.
7603 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7604 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7605 (vec.o: ../common/vec.c): Remove.
7606 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7607 (xml-utils.o: ../common/xml-utils.c): Remove.
7608 (ptid.o: ../common/ptid.c): Remove.
7609 (buffer.o: ../common/buffer.c): Remove.
7610 (format.o: ../common/format.c): Remove.
7611 (filestuff.o: ../common/filestuff.c): Remove.
7612 (agent.o: ../common/agent.c): Remove.
7613 (errors.o: ../common/errors.c): Remove.
7614 (environ.o: ../common/environ.c): Remove.
7615 (common-debug.o: ../common/common-debug.c): Remove.
7616 (cleanups.o: ../common/cleanups.c): Remove.
7617 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7618 (fileio.o: ../common/fileio.c): Remove.
7619 (common-regcache.o: ../common/common-regcache.c): Remove.
7620 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7621 (new-op.o: ../common/new-op.c): Remove.
7622 (btrace-common.o: ../common/btrace-common.c): Remove.
7624 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7626 * Makefile.in (%.o: ../target/%.c): New rule.
7627 (waitstatus.o: ../target/waitstatus.c): Remove.
7629 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7632 (%.c: ../regformats/%.dat,
7633 (%.c: ../regformats/arm/%.dat,
7634 (%.c: ../regformats/i386/%.dat,
7635 (%.c: ../regformats/rs6000/%.dat): New rules.
7636 (aarch64.c): Remove.
7637 (reg-arm.c): Remove.
7638 (arm-with-iwmmxt.c): Remove.
7639 (arm-with-vfpv2.c): Remove.
7640 (arm-with-vfpv3.c): Remove.
7641 (arm-with-neon.c): Remove.
7642 (reg-bfin.c): Remove.
7643 (reg-cris.c): Remove.
7644 (reg-crisv32.c): Remove.
7646 (i386-linux.c): Remove.
7647 (i386-avx.c): Remove.
7648 (i386-avx-linux.c): Remove.
7649 (i386-avx-avx512.c): Remove.
7650 (i386-avx-avx512-linux.c): Remove.
7651 (i386-mpx.c): Remove.
7652 (i386-mpx-linux.c): Remove.
7653 (i386-avx-mpx-avx512-pku.c): Remove.
7654 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7655 (i386-avx-mpx.c): Remove.
7656 (i386-avx-mpx-linux.c): Remove.
7657 (i386-mmx.c): Remove.
7658 (i386-mmx-linux.c): Remove.
7659 (reg-ia64.c): Remove.
7660 (reg-m32r.c): Remove.
7661 (reg-m68k.c): Remove.
7663 (mips-linux.c): Remove.
7664 (mips-dsp-linux.c): Remove.
7665 (mips64-linux.c): Remove.
7666 (mips64-dsp-linux.c): Remove.
7667 (nios2-linux.c): Remove.
7668 (powerpc-32.c): Remove.
7669 (powerpc-32l.c): Remove.
7670 (powerpc-altivec32l.c): Remove.
7671 (powerpc-cell32l.c): Remove.
7672 (powerpc-vsx32l.c): Remove.
7673 (powerpc-isa205-32l.c): Remove.
7674 (powerpc-isa205-altivec32l.c): Remove.
7675 (powerpc-isa205-vsx32l.c): Remove.
7676 (powerpc-e500l.c): Remove.
7677 (powerpc-64l.c): Remove.
7678 (powerpc-altivec64l.c): Remove.
7679 (powerpc-cell64l.c): Remove.
7680 (powerpc-vsx64l.c): Remove.
7681 (powerpc-isa205-64l.c): Remove.
7682 (powerpc-isa205-altivec64l.c): Remove.
7683 (powerpc-isa205-vsx64l.c): Remove.
7684 (s390-linux32.c): Remove.
7685 (s390-linux32v1.c): Remove.
7686 (s390-linux32v2.c): Remove.
7687 (s390-linux64.c): Remove.
7688 (s390-linux64v1.c): Remove.
7689 (s390-linux64v2.c): Remove.
7690 (s390-te-linux64.c): Remove.
7691 (s390-vx-linux64.c): Remove.
7692 (s390-tevx-linux64.c): Remove.
7693 (s390x-linux64.c): Remove.
7694 (s390x-linux64v1.c): Remove.
7695 (s390x-linux64v2.c): Remove.
7696 (s390x-te-linux64.c): Remove.
7697 (s390x-vx-linux64.c): Remove.
7698 (s390x-tevx-linux64.c): Remove.
7699 (tic6x-c64xp-linux.c): Remove.
7700 (tic6x-c64x-linux.c): Remove.
7701 (tic6x-c62x-linux.c): Remove.
7703 (reg-sparc64.c): Remove.
7704 (reg-spu.c): Remove.
7706 (amd64-linux.c): Remove.
7707 (amd64-avx.c): Remove.
7708 (amd64-avx-linux.c): Remove.
7709 (amd64-avx-avx512.c): Remove.
7710 (amd64-avx-avx512-linux.c): Remove.
7711 (amd64-mpx.c): Remove.
7712 (amd64-mpx-linux.c): Remove.
7713 (amd64-avx-mpx-avx512-pku.c): Remove.
7714 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7715 (amd64-avx-mpx.c): Remove.
7716 (amd64-avx-mpx-linux.c): Remove.
7718 (x32-linux.c): Remove.
7719 (x32-avx.c): Remove.
7720 (x32-avx-linux.c): Remove.
7721 (x32-avx-avx512.c): Remove.
7722 (x32-avx-avx512-linux.c): Remove.
7723 (reg-xtensa.c): Remove.
7724 (reg-tilegx.c): Remove.
7725 (reg-tilegx32.c): Remove.
7727 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7729 * Makefile.in (SFILES): Add "common/environ.c".
7730 (OBJS): Add "common/environ.h".
7732 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7734 * configure.ac: Check if the fs_base and gs_base members of
7735 `struct user_regs_struct' exist.
7736 * config.in: Regenerated.
7737 * configure: Likewise.
7739 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7741 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7743 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7744 (get_next_pcs_syscall_next_pc): Likewise.
7746 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7748 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7749 * nto-x86-low.c: Likewise.
7751 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7753 * Makefile.in: Include disable-implicit-rules.mk.
7755 2016-11-23 Pedro Alves <palves@redhat.com>
7757 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7758 (debug_vprintf): Use std::chrono::steady_clock instead of
7759 gettimeofday. Use '.' instead of ':'.
7760 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7761 (get_timestamp): Use std::chrono::steady_clock instead of
7764 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7766 * Makefile.in: Fix whitespace formatting.
7768 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7770 * Makefile.in (SFILES, OBS): Flatten list and order
7773 2016-11-23 Pedro Alves <palves@redhat.com>
7775 * event-loop.c (handle_file_event): Use warning.
7776 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7777 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7780 2016-11-23 Pedro Alves <palves@redhat.com>
7782 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7784 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7785 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7786 debug_printf and debug_flush for debug output.
7787 * server.c (handle_general_set): Likewise.
7788 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7791 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7793 * Makefile.in (.c.o): Replace rule with ...
7794 (%.o: %.c): ... this one.
7796 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7798 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7799 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7801 * configure.ac: Remove checks for the make program.
7802 * configure: Re-generate.
7804 2016-10-28 Pedro Alves <palves@redhat.com>
7806 * Makefile.in (CXX_DIALECT): Get from configure.
7807 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7808 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7809 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7810 * config.in: Regenerate.
7811 * configure: Regenerate.
7813 2016-10-27 Yao Qi <yao.qi@linaro.org>
7815 * linux-low.c (linux_supports_range_stepping): Return true if
7816 can_software_single_step return true.
7818 2016-10-27 Yao Qi <yao.qi@linaro.org>
7820 * inferiors.c (find_inferior_in_random): New function.
7821 * inferiors.h (find_inferior_in_random): Declare.
7822 * linux-low.c (linux_wait_for_event_filtered): Call
7823 find_inferior_in_random instead of find_inferior.
7825 2016-10-27 Yao Qi <yao.qi@linaro.org>
7827 * linux-low.c (linux_wait_1): If single-step breakpoints are
7828 inserted, remove them.
7830 2016-10-26 Pedro Alves <palves@redhat.com>
7832 * linux-low.c (handle_extended_wait): Link parent/child fork
7834 (linux_wait_1): Unlink them.
7835 (linux_set_resume_request): Ignore resume requests for
7836 already-resumed and unhandled fork child threads.
7837 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7838 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7840 (handle_v_requests) <vCont>: Don't call require_running.
7841 * server.h (in_queued_stop_replies): New declaration.
7843 2016-10-24 Yao Qi <yao.qi@linaro.org>
7846 * linux-aarch64-low.c (append_insns): Cast the return value to
7849 2016-10-10 Yao Qi <yao.qi@linaro.org>
7851 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7853 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7855 * target.c (target_supports_multi_process): New function, moved
7857 * target.h (target_supports_multi_process): ... here. Remove
7860 2016-10-05 Tom Tromey <tom@tromey.com>
7863 * tracepoint.c (handle_tracepoint_bkpts): Check
7864 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7866 2016-10-05 Yao Qi <yao.qi@linaro.org>
7868 * configure.srv: Update the path of arm-*.xml files.
7870 2016-10-05 Terry Guo <terry.guo@arm.com>
7871 Yao Qi <yao.qi@linaro.org>
7873 * Makefile.in: Adjust the path of rules.
7874 * configure.srv: Update the path of xml files.
7875 * regformats/arm-with-iwmmxt.dat: Regenerated.
7876 * regformats/arm-with-neon.dat: Likewise.
7877 * regformats/arm-with-vfpv2.dat: Likewise.
7878 * regformats/arm-with-vfpv3.dat Likewise.
7880 2016-09-30 Yao Qi <yao.qi@linaro.org>
7883 * target.c (target_stop_and_wait): Don't call
7884 target_continue_no_signal, use resume_stop instead.
7886 2016-09-26 Yao Qi <yao.qi@linaro.org>
7888 * linux-low.c (linux_wait_1): Call debug_exit.
7890 2016-09-23 Pedro Alves <palves@redhat.com>
7892 * Makefile.in (SFILES): Add common/new-op.c.
7893 (OBS): Add common/new-op.o.
7894 (new-op.o): New rule.
7896 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7898 * .gitinore: Ignore more files.
7900 2016-09-21 Yao Qi <yao.qi@linaro.org>
7902 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7905 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7907 * server.c (start_inferior): Call target_mourn_inferior instead of
7908 mourn_inferior; pass ptid_t argument to it.
7910 (handle_target_event): Likewise.
7911 * target.c (target_mourn_inferior): New function.
7912 * target.h (mourn_inferior): Delete macro.
7914 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7916 * linux-low.c (lwp_is_stepping): New function.
7918 2016-09-06 Carl Love <cel@us.ibm.com>
7920 * server.c (start_inferior): Fixed comment, requested comment change
7921 didn't get updated correctly. Removed reference to ptrace () call as
7922 it is only true on Linux systems.
7924 2016-09-06 Carl Love <cel@us.ibm.com>
7926 * server.c (start_inferior): Do not call
7927 function target_post_create_inferior () if the
7928 inferior process has already exited.
7930 2016-09-05 Pedro Alves <palves@redhat.com>
7932 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7933 (COMPILE.pre, CC_LD): Use CXX directly.
7934 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7935 * acinclude.m4: Don't include build-with-cxx.m4.
7936 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7937 * configure: Regenerate.
7939 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7942 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7943 call writing data to own_buf.
7945 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7947 * target.c (mywait): Call target_wait instead of
7949 (target_wait): New function.
7951 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7953 * server.c (start_inferior): New variable 'ptid'. Replace calls
7954 to the_target->resume by target_continue{,_no_signal}, depending
7956 * target.c (target_stop_and_wait): Call target_continue_no_signal
7957 instead of the_target->resume.
7958 (target_continue): New function.
7960 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7962 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7964 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7967 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7969 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7970 * linux-arm-low.c (ps_get_thread_area): Likewise.
7971 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7972 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7973 * linux-mips-low.c (ps_get_thread_area): Likewise.
7974 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7975 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7976 * linux-x86-low.c (ps_get_thread_area): Likewise.
7977 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7979 2016-08-19 Pedro Alves <palves@redhat.com>
7981 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7983 2016-08-19 Pedro Alves <palves@redhat.com>
7985 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7986 comment. Use memcpy instead of casting through unsigned long.
7988 2016-08-19 Pedro Alves <palves@redhat.com>
7990 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7991 allocating around 0x80000000.
7993 2016-08-19 Pedro Alves <palves@redhat.com>
7996 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7997 (x32-avx512-linux-ipa.o): New rules.
7998 * configure.ac (x86_64-*-linux*): New x32 check.
7999 * configure.srv (ipa_x32_linux_regobj): New.
8000 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8001 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8003 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8005 * configure: Regenerate.
8007 2016-08-09 Pedro Alves <palves@redhat.com>
8010 * Makefile.in (OBS): Add signals-state-save-restore.o.
8011 (signals-state-save-restore.o): New rule.
8012 * config.in: Regenerate.
8013 * configure: Regenerate.
8014 * linux-low.c: Include "signals-state-save-restore.h".
8015 (linux_create_inferior): Call
8016 restore_original_signals_state.
8017 * server.c: Include "dispositions-save-restore.h".
8018 (captured_main): Call save_original_signals_state.
8020 2016-08-05 Pedro Alves <palves@redhat.com>
8022 * configure: Regenerate.
8024 2016-08-04 Yao Qi <yao.qi@linaro.org>
8026 * linux-low.c (regsets_fetch_inferior_registers): Check
8027 errno is ESRCH or not.
8029 2016-08-02 Yao Qi <yao.qi@linaro.org>
8031 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8032 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8033 (thread_db_load_search): Update.
8034 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8035 td_ta_set_event and td_ta_event_getmsg.
8037 2016-07-26 Pedro Alves <palves@redhat.com>
8040 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8041 of unsigned long for 64-bit registers and use uint32_t instead of
8042 unsigned int for 32-bit registers.
8044 2016-07-26 Pedro Alves <palves@redhat.com>
8046 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8049 2016-07-21 Tom Tromey <tom@tromey.com>
8051 * configure: Rebuild.
8053 2016-07-21 Yao Qi <yao.qi@linaro.org>
8055 * mem-break.c (find_gdb_breakpoint): Cast bp to
8056 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8058 2016-07-21 Yao Qi <yao.qi@linaro.org>
8060 * server.c (handle_v_requests): Support s and S actions
8061 if target_supports_software_single_step return true.
8063 2016-07-21 Yao Qi <yao.qi@linaro.org>
8065 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8066 is resume_step, call maybe_hw_step.
8067 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8069 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8071 (proceed_one_lwp): If resume request is resume_step, install
8072 reinsert breakpoints and call maybe_hw_step.
8074 2016-07-21 Yao Qi <yao.qi@linaro.org>
8076 * linux-low.c (proceed_one_lwp): Declare.
8077 (linux_resume_one_thread): Remove local variable 'step'.
8078 Lift code enqueue signal. Call proceed_one_lwp instead of
8079 linux_resume_one_lwp.
8081 2016-07-21 Yao Qi <yao.qi@linaro.org>
8083 * linux-low.c (linux_resume_one_thread): Call
8084 enqueue_pending_signal.
8086 2016-07-21 Yao Qi <yao.qi@linaro.org>
8088 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8089 * inferiors.c (do_restore_current_thread_cleanup): New function.
8090 (make_cleanup_restore_current_thread): Likewise.
8091 * linux-low.c (install_software_single_step_breakpoints): Call
8092 make_cleanup_restore_current_thread. Switch current_thread to
8095 2016-07-21 Yao Qi <yao.qi@linaro.org>
8097 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8098 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8099 (clone_one_breakpoint): Likewise.
8100 (delete_reinsert_breakpoints): Change parameter to thread.
8102 (has_reinsert_breakpoints): Likewise.
8103 (uninsert_reinsert_breakpoints): Likewise.
8104 (reinsert_reinsert_breakpoints): Likewise.
8105 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8106 (delete_reinsert_breakpoints): Likewise.
8107 (reinsert_reinsert_breakpoints): Likewise.
8108 (uninsert_reinsert_breakpoints): Likewise.
8109 (has_reinsert_breakpoints): Likewise.
8111 2016-07-21 Yao Qi <yao.qi@linaro.org>
8113 * inferiors.c (get_thread_process): Make parameter const.
8114 * inferiors.h (get_thread_process): Update declaration.
8115 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8116 Add new parameters child_thread and parent_thread. Callers
8118 * mem-break.h (clone_all_breakpoints): Update declaration.
8120 2016-07-21 Yao Qi <yao.qi@linaro.org>
8122 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8123 <command_list, handler>: Remove.
8124 (struct gdb_breakpoint): New.
8125 (struct other_breakpoint): New.
8126 (struct reinsert_breakpoint): New.
8127 (is_gdb_breakpoint): New function.
8128 (any_persistent_commands): Update command_list if
8129 is_gdb_breakpoint returns true.
8130 (set_breakpoint): Create breakpoints according to their types.
8131 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8132 (set_gdb_breakpoint_1): Likewise.
8133 (set_gdb_breakpoint): Likewise.
8134 (clear_breakpoint_conditions): Change parameter type to
8135 'struct gdb_breakpoint *'.
8136 (clear_breakpoint_commands): Likewise.
8137 (clear_breakpoint_conditions_and_commands): Likewise.
8138 (add_condition_to_breakpoint): Likewise.
8139 (add_breakpoint_condition): Likewise.
8140 (add_commands_to_breakpoint): Likewise.
8141 (check_breakpoints): Check other_breakpoint.
8142 (clone_one_breakpoint): Clone breakpopint according to its type.
8143 * mem-break.h (struct gdb_breakpoint): Declare.
8144 (set_gdb_breakpoint): Update declaration.
8145 (clear_breakpoint_conditions_and_commands): Likewise.
8146 (add_breakpoint_condition): Likewise.
8147 (add_breakpoint_commands): Likewise.
8148 * server.c (process_point_options): Change parameter type to
8149 'struct gdb_breakpoint *'.
8151 2016-07-21 Yao Qi <yao.qi@linaro.org>
8153 * mem-break.c (set_breakpoint_at): Rename it to ...
8154 (set_breakpoint_type_at): ... it.
8155 (set_breakpoint_at): Call set_breakpoint_type_at.
8156 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8157 * mem-break.h (set_breakpoint_at): Update comments.
8159 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8161 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8163 (nios2_store_gregset): Likewise.
8165 2016-07-01 Pedro Alves <palves@redhat.com>
8166 Antoine Tremblay <antoine.tremblay@ericsson.com>
8168 * linux-low.c: Change interface to take the target lwp_info
8169 pointer directly and return void. Handle detaching from a zombie
8171 (linux_detach_lwp_callback): New function.
8172 (linux_detach): Detach from the leader thread after detaching from
8175 2016-06-28 Yao Qi <yao.qi@linaro.org>
8177 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8178 for variable new_offset.
8179 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8180 (aarch64_ftrace_insn_reloc_cb): Likewise.
8181 (aarch64_ftrace_insn_reloc_tb): Likewise.
8182 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8183 PRIx64 instead of PRIx32.
8185 2016-06-28 Yao Qi <yao.qi@linaro.org>
8187 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8188 (the_low_target): Install arm_get_syscall_trapinfo.
8190 2016-06-28 Yao Qi <yao.qi@linaro.org>
8192 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8194 (the_low_target): Install aarch64_get_syscall_trapinfo.
8196 2016-06-28 Yao Qi <yao.qi@linaro.org>
8198 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8200 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8201 Remove parameter sysno.
8202 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8205 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8207 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8208 (s390_emit_ne_goto): Likewise.
8209 (s390_emit_lt_goto): Likewise.
8210 (s390_emit_le_goto): Likewise.
8211 (s390_emit_gt_goto): Likewise.
8212 (s390_emit_ge_goto): Likewise.
8213 (s390x_emit_eq_goto): Likewise.
8214 (s390x_emit_ne_goto): Likewise.
8215 (s390x_emit_lt_goto): Likewise.
8216 (s390x_emit_le_goto): Likewise.
8217 (s390x_emit_gt_goto): Likewise.
8218 (s390x_emit_ge_goto): Likewise.
8219 (s390_emit_ops_impl): Mark variable static.
8220 (s390x_emit_ops): Likewise.
8222 2016-06-17 Yao Qi <yao.qi@linaro.org>
8224 * linux-low.c (handle_extended_wait): Call
8225 uninsert_reinsert_breakpoints for the parent process. Remove
8226 reinsert breakpoints from the child process. Reinsert them to
8227 the parent process when vfork is done.
8228 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8229 (reinsert_reinsert_breakpoints): New function.
8230 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8231 (reinsert_reinsert_breakpoints): Declare.
8233 2016-06-17 Yao Qi <yao.qi@linaro.org>
8235 * linux-low.c (handle_extended_wait): If the parent is doing
8236 step-over, remove the reinsert breakpoints from the forked child.
8238 2016-06-17 Yao Qi <yao.qi@linaro.org>
8240 * linux-low.c (unsuspend_all_lwps): Declare.
8241 (linux_low_filter_event): If thread exited, call finish_step_over.
8242 If step-over is finished, unsuspend other threads.
8244 2016-06-17 Yao Qi <yao.qi@linaro.org>
8246 * linux-low.c (linux_resume_one_lwp_throw): Assert
8247 has_reinsert_breakpoints returns false.
8248 * mem-break.c (delete_disabled_breakpoints): Assert
8249 bp type isn't reinsert_breakpoint.
8251 2016-06-17 Yao Qi <yao.qi@linaro.org>
8253 * linux-low.c (maybe_hw_step): New function.
8254 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8255 (finish_step_over): Switch current_thread to lwp temporarily,
8256 and assert has_reinsert_breakpoints returns true.
8257 (proceed_one_lwp): Call maybe_hw_step.
8258 * mem-break.c (has_reinsert_breakpoints): New function.
8259 * mem-break.h (has_reinsert_breakpoints): Declare.
8261 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8263 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8265 2016-05-17 Yao Qi <yao.qi@linaro.org>
8267 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8268 instead of find_inferior.
8270 2016-05-05 Yao Qi <yao.qi@linaro.org>
8272 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8273 Initialize res to zero.
8275 2016-05-05 Yao Qi <yao.qi@linaro.org>
8277 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8280 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8282 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8283 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8284 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8286 2016-04-28 Par Olsson <par.olsson@windriver.com>
8287 Simon Marchi <simon.marchi@ericsson.com>
8289 * tracepoint.c (write_inferior_int8): New function.
8290 (cmd_qtenable_disable): Write enable flag using
8291 write_inferior_int8.
8293 2016-04-25 Yao Qi <yao.qi@linaro.org>
8295 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8296 (need_step_over_p): Return zero if the LWP has pending signals
8297 can be delivered on software single step target.
8299 2016-04-25 Yao Qi <yao.qi@linaro.org>
8301 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8302 return instead of error.
8304 2016-04-22 Yao Qi <yao.qi@linaro.org>
8306 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8309 2016-04-22 Yao Qi <yao.qi@linaro.org>
8311 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8312 signal when stepping over breakpoint with software single
8315 2016-04-21 Pedro Alves <palves@redhat.com>
8317 * linux-s390-low.c (s390_collect_ptrace_register)
8318 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8320 (s390_check_regset): Use void * instead of gdb_byte *.
8322 2016-04-20 Pedro Alves <palves@redhat.com>
8324 * configure: Renegerate.
8326 2016-04-20 Yao Qi <yao.qi@linaro.org>
8328 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8329 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8331 (arm_store_gregset): Likewise.
8333 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8335 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8336 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8337 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8338 (amd64-avx-mpx-linux.c): New rules.
8339 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8340 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8341 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8342 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8343 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8344 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8345 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8346 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8347 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8348 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8349 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8350 * linux-x86-low.c (x86_linux_read_description): Add case for
8351 X86_XSTATE_AVX_MPX_MASK.
8352 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8353 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8354 init_registers_i386_avx_mpx_linux.
8355 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8356 (initialize_low_tracepoint): Call
8357 init_registers_i386_avx_mpx_linux.
8358 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8359 (initialize_low_tracepoint): Call
8360 init_registers_amd64_avx_mpx_linux.
8361 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8362 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8363 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8366 2016-04-18 Pedro Alves <palves@redhat.com>
8368 * configure: Regenerate.
8370 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8372 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8373 (aarch64_emit_sub): Likewise.
8375 2016-04-12 Pedro Alves <palves@redhat.com>
8377 * utils.c (prepare_to_throw_exception): Delete.
8379 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8381 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8383 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8385 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8387 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8389 * linux-aarch64-ipa.c: Add <elf.h> include.
8390 * linux-ppc-ipa.c: Add <elf.h> include.
8391 * linux-s390-ipa.c: Add <elf.h> include.
8393 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8395 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8396 (get_raw_reg_ptr): Likewise.
8397 (get_trace_state_variable_value_ptr): Likewise.
8398 (set_trace_state_variable_value_ptr): Likewise.
8399 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8402 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8403 Marcin Kościelnicki <koriakin@0x04.net>
8406 * linux-ppc-low.c (emit_insns): New function.
8407 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8408 (ppc_emit_prologue): New function.
8409 (ppc_emit_epilogue): New function.
8410 (ppc_emit_add): New function.
8411 (ppc_emit_sub): New function.
8412 (ppc_emit_mul): New function.
8413 (ppc_emit_lsh): New function.
8414 (ppc_emit_rsh_signed): New function.
8415 (ppc_emit_rsh_unsigned): New function.
8416 (ppc_emit_ext): New function.
8417 (ppc_emit_zero_ext): New function.
8418 (ppc_emit_log_not): New function.
8419 (ppc_emit_bit_and): New function.
8420 (ppc_emit_bit_or): New function.
8421 (ppc_emit_bit_xor): New function.
8422 (ppc_emit_bit_not): New function.
8423 (ppc_emit_equal): New function.
8424 (ppc_emit_less_signed): New function.
8425 (ppc_emit_less_unsigned): New function.
8426 (ppc_emit_ref): New function.
8427 (ppc_emit_const): New function.
8428 (ppc_emit_reg): New function.
8429 (ppc_emit_pop): New function.
8430 (ppc_emit_stack_flush): New function.
8431 (ppc_emit_swap): New function.
8432 (ppc_emit_stack_adjust): New function.
8433 (ppc_emit_call): New function.
8434 (ppc_emit_int_call_1): New function.
8435 (ppc_emit_void_call_2): New function.
8436 (ppc_emit_if_goto): New function.
8437 (ppc_emit_goto): New function.
8438 (ppc_emit_eq_goto): New function.
8439 (ppc_emit_ne_goto): New function.
8440 (ppc_emit_lt_goto): New function.
8441 (ppc_emit_le_goto): New function.
8442 (ppc_emit_gt_goto): New function.
8443 (ppc_emit_ge_goto): New function.
8444 (ppc_write_goto_address): New function.
8445 (ppc_emit_ops_impl): New static variable.
8446 (ppc64v1_emit_prologue): New function.
8447 (ppc64v2_emit_prologue): New function.
8448 (ppc64_emit_epilogue): New function.
8449 (ppc64_emit_add): New function.
8450 (ppc64_emit_sub): New function.
8451 (ppc64_emit_mul): New function.
8452 (ppc64_emit_lsh): New function.
8453 (ppc64_emit_rsh_signed): New function.
8454 (ppc64_emit_rsh_unsigned): New function.
8455 (ppc64_emit_ext): New function.
8456 (ppc64_emit_zero_ext): New function.
8457 (ppc64_emit_log_not): New function.
8458 (ppc64_emit_bit_and): New function.
8459 (ppc64_emit_bit_or): New function.
8460 (ppc64_emit_bit_xor): New function.
8461 (ppc64_emit_bit_not): New function.
8462 (ppc64_emit_equal): New function.
8463 (ppc64_emit_less_signed): New function.
8464 (ppc64_emit_less_unsigned): New function.
8465 (ppc64_emit_ref): New function.
8466 (ppc64_emit_const): New function.
8467 (ppc64v1_emit_reg): New function.
8468 (ppc64v2_emit_reg): New function.
8469 (ppc64_emit_pop): New function.
8470 (ppc64_emit_stack_flush): New function.
8471 (ppc64_emit_swap): New function.
8472 (ppc64v1_emit_call): New function.
8473 (ppc64v2_emit_call): New function.
8474 (ppc64v1_emit_int_call_1): New function.
8475 (ppc64v2_emit_int_call_1): New function.
8476 (ppc64v1_emit_void_call_2): New function.
8477 (ppc64v2_emit_void_call_2): New function.
8478 (ppc64_emit_if_goto): New function.
8479 (ppc64_emit_eq_goto): New function.
8480 (ppc64_emit_ne_goto): New function.
8481 (ppc64_emit_lt_goto): New function.
8482 (ppc64_emit_le_goto): New function.
8483 (ppc64_emit_gt_goto): New function.
8484 (ppc64_emit_ge_goto): New function.
8485 (ppc64v1_emit_ops_impl): New static variable.
8486 (ppc64v2_emit_ops_impl): New static variable.
8487 (ppc_emit_ops): New function.
8488 (linux_low_target): Wire in ppc_emit_ops.
8490 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8491 Marcin Kościelnicki <koriakin@0x04.net>
8494 * Makefile.in: Add powerpc-*-ipa.o
8495 * configure.srv: Add ipa_obj for powerpc*-linux.
8496 * linux-ppc-ipa.c: New file.
8497 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8499 (PPC_FIELD): New macro.
8500 (PPC_SEXT): New macro.
8501 (PPC_OP6): New macro.
8502 (PPC_BO): New macro.
8503 (PPC_LI): New macro.
8504 (PPC_BD): New macro.
8505 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8506 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8507 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8508 (ppc_get_thread_area): New function.
8509 (is_elfv2_inferior): New function.
8510 (gen_ds_form): New function.
8511 (GEN_STD): New macro.
8512 (GEN_STDU): New macro.
8513 (GEN_LD): New macro.
8514 (GEN_LDU): New macro.
8515 (gen_d_form): New function.
8516 (GEN_ADDI): New macro.
8517 (GEN_ADDIS): New macro.
8518 (GEN_LI): New macro.
8519 (GEN_LIS): New macro.
8520 (GEN_ORI): New macro.
8521 (GEN_ORIS): New macro.
8522 (GEN_LWZ): New macro.
8523 (GEN_STW): New macro.
8524 (GEN_STWU): New macro.
8525 (gen_xfx_form): New function.
8526 (GEN_MFSPR): New macro.
8527 (GEN_MTSPR): New macro.
8528 (GEN_MFCR): New macro.
8529 (GEN_MTCR): New macro.
8530 (GEN_SYNC): New macro.
8531 (GEN_LWSYNC): New macro.
8532 (gen_x_form): New function.
8533 (GEN_OR): New macro.
8534 (GEN_MR): New macro.
8535 (GEN_LWARX): New macro.
8536 (GEN_STWCX): New macro.
8537 (GEN_CMPW): New macro.
8538 (gen_md_form): New function.
8539 (GEN_RLDICL): New macro.
8540 (GEN_RLDICR): New macro.
8541 (gen_i_form): New function.
8543 (GEN_BL): New macro.
8544 (gen_b_form): New function.
8545 (GEN_BNE): New macro.
8546 (GEN_LOAD): New macro.
8547 (GEN_STORE): New macro.
8548 (gen_limm): New function.
8549 (gen_atomic_xchg): New function.
8550 (gen_call): New function.
8551 (ppc_relocate_instruction): New function.
8552 (ppc_install_fast_tracepoint_jump_pad): New function.
8553 (ppc_get_min_fast_tracepoint_insn_len): New function.
8554 (ppc_get_ipa_tdesc_idx): New function.
8555 (the_low_target): Wire in the new functions.
8556 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8558 * linux-ppc-tdesc.h: New file.
8560 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8562 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8563 (alloc_jump_pad_buffer): New function.
8564 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8565 (alloc_jump_pad_buffer): New function.
8566 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8567 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8568 (alloc_jump_pad_buffer): New function.
8569 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8570 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8571 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8572 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8574 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8576 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8577 * linux-amd64-ipa.c: Likewise.
8578 * linux-i386-ipa.c: Likewise.
8579 * linux-s390-ipa.c: Likewise.
8580 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8581 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8582 set_trace_state_variable_value_ptr.
8583 (struct ipa_sym_addresses): Likewise.
8584 (symbol_list): Likewise.
8585 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8586 accessing gdb_collect directly.
8587 (gdb_collect_ptr_type): New typedef.
8588 (get_raw_reg_ptr_type): New typedef.
8589 (get_trace_state_variable_value_ptr_type): New typedef.
8590 (set_trace_state_variable_value_ptr_type): New typedef.
8591 (gdb_collect_ptr): New global.
8592 (get_raw_reg_ptr): New global.
8593 (get_trace_state_variable_value_ptr): New global.
8594 (set_trace_state_variable_value_ptr): New global.
8595 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8596 accessing get_raw_reg directly.
8597 (get_get_tsv_func_addr): Likewise for
8598 get_trace_state_variable_value_ptr.
8599 (get_set_tsv_func_addr): Likewise for
8600 set_trace_state_variable_value_ptr.
8601 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8603 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8605 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8607 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8609 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8611 (relocate_instruction): Remove own_buf.
8612 * server.c (own_buf): Make global.
8613 (handle_v_requests): Make global.
8614 * server.h (own_buf): New declaration.
8615 (handle_v_requests): New prototype.
8617 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8620 * linux-s390-low.c (add_insns): New function.
8621 (s390_emit_prologue): New function.
8622 (s390_emit_epilogue): New function.
8623 (s390_emit_add): New function.
8624 (s390_emit_sub): New function.
8625 (s390_emit_mul): New function.
8626 (s390_emit_lsh): New function.
8627 (s390_emit_rsh_signed): New function.
8628 (s390_emit_rsh_unsigned): New function.
8629 (s390_emit_ext): New function.
8630 (s390_emit_log_not): New function.
8631 (s390_emit_bit_and): New function.
8632 (s390_emit_bit_or): New function.
8633 (s390_emit_bit_xor): New function.
8634 (s390_emit_bit_not): New function.
8635 (s390_emit_equal): New function.
8636 (s390_emit_less_signed): New function.
8637 (s390_emit_less_unsigned): New function.
8638 (s390_emit_ref): New function.
8639 (s390_emit_if_goto): New function.
8640 (s390_emit_goto): New function.
8641 (s390_write_goto_address): New function.
8642 (s390_emit_litpool): New function.
8643 (s390_emit_const): New function.
8644 (s390_emit_call): New function.
8645 (s390_emit_reg): New function.
8646 (s390_emit_pop): New function.
8647 (s390_emit_stack_flush): New function.
8648 (s390_emit_zero_ext): New function.
8649 (s390_emit_swap): New function.
8650 (s390_emit_stack_adjust): New function.
8651 (s390_emit_set_r2): New function.
8652 (s390_emit_int_call_1): New function.
8653 (s390_emit_void_call_2): New function.
8654 (s390_emit_eq_goto): New function.
8655 (s390_emit_ne_goto): New function.
8656 (s390_emit_lt_goto): New function.
8657 (s390_emit_le_goto): New function.
8658 (s390_emit_gt_goto): New function.
8659 (s390_emit_ge_goto): New function.
8660 (s390x_emit_prologue): New function.
8661 (s390x_emit_epilogue): New function.
8662 (s390x_emit_add): New function.
8663 (s390x_emit_sub): New function.
8664 (s390x_emit_mul): New function.
8665 (s390x_emit_lsh): New function.
8666 (s390x_emit_rsh_signed): New function.
8667 (s390x_emit_rsh_unsigned): New function.
8668 (s390x_emit_ext): New function.
8669 (s390x_emit_log_not): New function.
8670 (s390x_emit_bit_and): New function.
8671 (s390x_emit_bit_or): New function.
8672 (s390x_emit_bit_xor): New function.
8673 (s390x_emit_bit_not): New function.
8674 (s390x_emit_equal): New function.
8675 (s390x_emit_less_signed): New function.
8676 (s390x_emit_less_unsigned): New function.
8677 (s390x_emit_ref): New function.
8678 (s390x_emit_if_goto): New function.
8679 (s390x_emit_const): New function.
8680 (s390x_emit_call): New function.
8681 (s390x_emit_reg): New function.
8682 (s390x_emit_pop): New function.
8683 (s390x_emit_stack_flush): New function.
8684 (s390x_emit_zero_ext): New function.
8685 (s390x_emit_swap): New function.
8686 (s390x_emit_stack_adjust): New function.
8687 (s390x_emit_int_call_1): New function.
8688 (s390x_emit_void_call_2): New function.
8689 (s390x_emit_eq_goto): New function.
8690 (s390x_emit_ne_goto): New function.
8691 (s390x_emit_lt_goto): New function.
8692 (s390x_emit_le_goto): New function.
8693 (s390x_emit_gt_goto): New function.
8694 (s390x_emit_ge_goto): New function.
8695 (s390_emit_ops): New function.
8696 (struct linux_target_ops): Fill in emit_ops hook.
8698 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8701 * Makefile.in: Add s390 IPA files.
8702 * configure.srv: Build IPA for s390.
8703 * linux-s390-ipa.c: New file.
8704 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8705 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8706 (tdesc_s390_linux32): Likewise.
8707 (init_registers_s390_linux32v1): Likewise.
8708 (tdesc_s390_linux32v1): Likewise.
8709 (init_registers_s390_linux32v2): Likewise.
8710 (tdesc_s390_linux32v2): Likewise.
8711 (init_registers_s390_linux64): Likewise.
8712 (tdesc_s390_linux64): Likewise.
8713 (init_registers_s390_linux64v1): Likewise.
8714 (tdesc_s390_linux64v1): Likewise.
8715 (init_registers_s390_linux64v2): Likewise.
8716 (tdesc_s390_linux64v2): Likewise.
8717 (init_registers_s390_te_linux64): Likewise.
8718 (tdesc_s390_te_linux64): Likewise.
8719 (init_registers_s390_vx_linux64): Likewise.
8720 (tdesc_s390_vx_linux64): Likewise.
8721 (init_registers_s390_tevx_linux64): Likewise.
8722 (tdesc_s390_tevx_linux64): Likewise.
8723 (init_registers_s390x_linux64): Likewise.
8724 (tdesc_s390x_linux64): Likewise.
8725 (init_registers_s390x_linux64v1): Likewise.
8726 (tdesc_s390x_linux64v1): Likewise.
8727 (init_registers_s390x_linux64v2): Likewise.
8728 (tdesc_s390x_linux64v2): Likewise.
8729 (init_registers_s390x_te_linux64): Likewise.
8730 (tdesc_s390x_te_linux64): Likewise.
8731 (init_registers_s390x_vx_linux64): Likewise.
8732 (tdesc_s390x_vx_linux64): Likewise.
8733 (init_registers_s390x_tevx_linux64): Likewise.
8734 (tdesc_s390x_tevx_linux64): Likewise.
8735 (have_hwcap_s390_vx): New static variable.
8736 (s390_arch_setup): Fill have_hwcap_s390_vx.
8737 (s390_get_thread_area): New function.
8738 (s390_ft_entry_gpr_esa): New const.
8739 (s390_ft_entry_gpr_zarch): New const.
8740 (s390_ft_entry_misc): New const.
8741 (s390_ft_entry_fr): New const.
8742 (s390_ft_entry_vr): New const.
8743 (s390_ft_main_31): New const.
8744 (s390_ft_main_64): New const.
8745 (s390_ft_exit_fr): New const.
8746 (s390_ft_exit_vr): New const.
8747 (s390_ft_exit_misc): New const.
8748 (s390_ft_exit_gpr_esa): New const.
8749 (s390_ft_exit_gpr_zarch): New const.
8750 (append_insns): New function.
8751 (s390_relocate_instruction): New function.
8752 (s390_install_fast_tracepoint_jump_pad): New function.
8753 (s390_get_min_fast_tracepoint_insn_len): New function.
8754 (s390_get_ipa_tdesc_idx): New function.
8755 (struct linux_target_ops): Wire in the above functions.
8756 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8757 * linux-s390-tdesc.h: New file.
8759 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8761 * linux-s390-low.c (s390_supports_tracepoints): New function.
8762 (struct linux_target_ops): Fill supports_tracepoints hook.
8764 2016-03-18 Yao Qi <yao.qi@linaro.org>
8766 * linux-low.c (lwp_signal_can_be_delivered): New function.
8767 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8769 2016-03-18 Yao Qi <yao.qi@linaro.org>
8771 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8772 0 if signal is enqueued. Remove 'signal' from one debugging
8773 message. Move one debugging message to some lines below.
8774 Remove code setting 'signal' to 0.
8776 2016-03-18 Yao Qi <yao.qi@linaro.org>
8778 * linux-low.c (linux_low_filter_event): Remove redundant
8779 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8781 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8783 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8784 (struct linux_target_ops): Wire in the above.
8786 2016-03-03 Yao Qi <yao.qi@linaro.org>
8788 * linux-low.c: Update comments to start_step_over.
8790 2016-03-03 Yao Qi <yao.qi@linaro.org>
8793 * linux-low.c (handle_extended_wait): Set child suspended
8794 if event_lwp->bp_reinsert isn't zero.
8796 2016-03-02 Yao Qi <yao.qi@linaro.org>
8798 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8799 enqueue_pending_signal.
8801 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8803 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8806 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8808 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8809 (s390_regmap_3264) [!__s390x__]: New global.
8810 (s390_collect_ptrace_register): Skip map entries containing -1.
8811 (s390_supply_ptrace_register): Ditto.
8812 (s390_fill_gprs_high): New function.
8813 (s390_store_gprs_high): New function.
8814 (s390_regsets): Add NT_S390_HIGH_GPRS.
8815 (s390_get_hwcap): Enable on 31-bit.
8816 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8817 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8818 Detect NT_S390_HIGH_GPRS.
8819 (s390_usrregs_info_3264): Enable on 31-bit.
8820 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8821 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8823 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8826 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8827 * configure.srv: Ditto.
8828 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8829 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8830 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8831 (init_registers_amd64_linux): Remove prototype.
8832 (tdesc_amd64_linux): Remove declaration.
8833 (get_ipa_tdesc): New function.
8834 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8835 initialize remaining tdescs.
8836 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8837 (init_registers_i386_linux): Remove prototype.
8838 (tdesc_i386_linux): Remove declaration.
8839 (get_ipa_tdesc): New function.
8840 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8841 initialize remaining tdescs.
8842 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8843 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8844 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8845 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8846 (x86_get_ipa_tdesc_idx): New function.
8847 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8848 * linux-x86-tdesc.h: New file.
8849 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8850 (target_get_ipa_tdesc_idx): New macro.
8851 * tracepoint.c (ipa_tdesc_idx): New macro.
8852 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8853 (symbol_list): Add ipa_tdesc_idx.
8854 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8855 (ipa_tdesc): Remove.
8856 (ipa_tdesc_idx): New variable.
8857 (get_context_regcache): Use get_ipa_tdesc.
8858 (gdb_collect): Ditto.
8860 * tracepoint.h (get_ipa_tdesc): New prototype.
8861 (ipa_tdesc): Remove.
8863 2016-02-24 Pedro Alves <palves@redhat.com>
8865 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8866 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8867 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8868 Factor out common code between the USE_SIGTRAP_SIGINFO and
8869 !USE_SIGTRAP_SIGINFO blocks.
8870 (linux_low_filter_event): Call save_stop_reason instead of
8871 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8873 (linux_wait_1): Update comments.
8875 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8877 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8878 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8879 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8880 ppc_insert_point, ppc_remove_point.
8882 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8884 * linux-s390-low.c (s390_supports_z_point_type): New function.
8885 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8887 2016-02-16 Yao Qi <yao.qi@linaro.org>
8889 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8890 PC. Get pc from regcache_read_pc.
8892 2016-02-12 Yao Qi <yao.qi@linaro.org>
8894 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8895 or linux_get_pc_32bit.
8896 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8898 2016-02-12 Yao Qi <yao.qi@linaro.org>
8900 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8901 arm_linux_get_next_pcs_fixup.
8903 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8905 * tracepoint.c (x_tracepoint_action_download): Change
8906 write_inferior_data_ptr to write_inferior_data_pointer.
8907 (cmd_qtstart): Likewise.
8908 (write_inferior_data_ptr): Remove.
8909 (download_agent_expr): Change write_inferior_data_ptr to
8910 write_inferior_data_pointer.
8911 (download_tracepoint_1): Likewise.
8912 (download_tracepoint): Likewise.
8913 (download_trace_state_variables): Likewise.
8915 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8916 Marcin Kościelnicki <koriakin@0x04.net>
8918 * tracepoint.c (struct tracepoint_action_ops): Remove.
8919 (struct tracepoint_action): Remove ops.
8920 (m_tracepoint_action_download, r_tracepoint_action_download)
8921 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8922 size and offset accordingly.
8923 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8924 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8925 (tracepoint_action_send, tracepoint_action_download): New functions.
8926 Helpers for trace action handlers.
8927 (add_tracepoint_action): Remove setup actions ops.
8928 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8930 2016-02-10 Yao Qi <yao.qi@linaro.org>
8932 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8934 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8936 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8938 * configure: Regenerate.
8940 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8942 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8943 void * to gdb_byte *.
8944 * linux-low.c (siginfo_fixup): Likewise.
8945 (linux_xfer_siginfo): Likewise.
8946 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8948 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8950 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8952 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8954 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8956 * linux-x86-low.c [__x86_64__]: Include
8957 "nat/amd64-linux-siginfo.h".
8958 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8959 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8960 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8961 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8962 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8963 (cpt_si_fd, si_timerid, si_overrun): Move from
8964 nat/amd64-linux-siginfo.c.
8965 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8967 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8969 * server.c (skip_to_semicolon): Remove.
8970 (process_point_options): Use strchrnul instead of
8973 2016-01-26 Yao Qi <yao.qi@linaro.org>
8975 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8976 * linux-low.c (install_software_single_step_breakpoints): Don't
8977 call regcache_read_pc.
8978 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8981 2016-01-26 Yao Qi <yao.qi@linaro.org>
8983 * linux-low.c (install_software_single_step_breakpoints): Call
8984 regcache_read_pc instead of get_pc.
8986 2016-01-26 Yao Qi <yao.qi@linaro.org>
8988 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8989 (unblock_async_io): Rename to ...
8990 (block_unblock_async_io): ... it. New function.
8991 (enable_async_io): Don't install SIGIO handler. Unblock it
8993 (disable_async_io): Don't ignore SIGIO. Block it instead.
8994 (initialize_async_io): Install SIGIO handler. Don't call
8997 2016-01-26 Yao Qi <yao.qi@linaro.org>
8999 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9000 first character is '\003', call *the_target->request_interrupt.
9002 2016-01-25 Yao Qi <yao.qi@linaro.org>
9004 * remote-utils.c (new_thread_notify): Remove.
9005 (dead_thread_notify): Likewise.
9006 * remote-utils.h (new_thread_notify): Remove declaration.
9007 (dead_thread_notify): Likewise.
9009 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9011 * gdb.trace/pending.exp: Fix expected message on continue.
9013 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9015 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9016 it works properly on big-endian machines where sizeof (CORE_ADDR)
9019 2016-01-21 Pedro Alves <palves@redhat.com>
9021 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9022 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9023 * configure: Regenerate.
9025 2016-01-21 Yao Qi <yao.qi@linaro.org>
9027 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9028 is_thumb and set it according to CPSR saved on the stack.
9029 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9030 arm_sigreturn_next_pc.
9032 2016-01-18 Yao Qi <yao.qi@linaro.org>
9034 * linux-low.c (linux_set_pc_64bit): New function.
9035 (linux_get_pc_64bit): New function.
9036 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9038 * linux-sparc-low.c (debug_threads): Remove declaration.
9039 (sparc_get_pc): Remove.
9040 (the_low_target): Use linux_get_pc_64bit instead of
9042 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9043 (the_low_target): Use linux_get_pc_64bit and
9046 2016-01-18 Yao Qi <yao.qi@linaro.org>
9048 * linux-arm-low.c (debug_threads): Remove declaration.
9049 (arm_get_pc, arm_set_pc): Remove.
9050 (the_low_target): Use linux_get_pc_32bit and
9052 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9053 (the_low_target): Use linux_get_pc_32bit and
9055 * linux-cris-low.c (debug_threads): Remove declaration.
9056 (cris_get_pc, cris_set_pc,): Remove.
9057 (the_low_target): Use linux_get_pc_32bit and
9059 * linux-crisv32-low.c (debug_threads): Remove declaration.
9060 (cris_get_pc, cris_set_pc): Remove.
9061 (the_low_target): Use linux_get_pc_32bit and
9063 * linux-low.c: Include inttypes.h.
9064 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9065 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9066 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9067 (the_low_target): Use linux_get_pc_32bit and
9069 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9070 (the_low_target): Use linux_get_pc_32bit and
9072 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9073 (the_low_target): Use linux_get_pc_32bit and
9075 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9076 (the_low_target): Use linux_get_pc_32bit and
9078 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9079 (the_low_target): Use linux_get_pc_32bit and
9082 2016-01-18 Gary Benson <gbenson@redhat.com>
9084 * configure.ac (AC_FUNC_FORK): New check.
9085 * config.in: Regenerate.
9086 * configure: Likewise.
9088 2016-01-14 Yao Qi <yao.qi@linaro.org>
9090 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9091 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9092 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9093 arm_get_next_pcs_ctor.
9095 2016-01-12 Josh Stone <jistone@redhat.com>
9096 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9098 * inferiors.h: Include "gdb_vecs.h".
9099 (struct process_info): Add syscalls_to_catch.
9100 * inferiors.c (remove_process): Free syscalls_to_catch.
9101 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9102 syscall_return stops.
9103 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9104 * server.c (handle_general_set): Handle QCatchSyscalls.
9105 (handle_query): Report support for QCatchSyscalls.
9106 * target.h (struct target_ops): Add supports_catch_syscall.
9107 (target_supports_catch_syscall): New macro.
9108 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9109 (struct lwp_info): Add syscall_state.
9110 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9111 Maintain syscall_state and syscalls_to_catch across exec.
9112 (get_syscall_trapinfo): New function, proxy to the_low_target.
9113 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9114 (linux_low_filter_event): Toggle syscall_state entry/return for
9115 syscall traps, and set it ignored for all others.
9116 (gdb_catching_syscalls_p): New function.
9117 (gdb_catch_this_syscall_p): New function.
9118 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9119 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9120 (linux_supports_catch_syscall): New function.
9121 (linux_target_ops): Install it.
9122 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9123 (the_low_target): Install it.
9125 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9127 * acinclude.m4: Include new ../warning.m4 file.
9128 * configure: Regenerated.
9129 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9131 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9133 * ax.c (is_goto_target): Mark static.
9134 * linux-low.c (register_addr): Likewise.
9135 (linux_fetch_registers, linux_store_registers): Likewise.
9136 * mem-break.c (any_persistent_commands): Fix old prototype.
9137 (add_commands_to_breakpoint): Mark static.
9138 * regcache.c (find_register_by_name): Delete unused func.
9139 * remote-utils.c (hex_or_minus_one): Mark static.
9140 * server.c (monitor_show_help): Mark static.
9141 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9142 handle_v_requests): Likewise.
9144 2016-01-12 Pedro Alves <palves@redhat.com>
9146 Remove use of the registered trademark symbol throughout.
9148 2016-01-08 Yao Qi <yao.qi@linaro.org>
9150 * remote-utils.c (getpkt): If c is '\003', call target hook
9153 2016-01-06 Yao Qi <yao.qi@linaro.org>
9155 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9156 linux-aarch32-low.c.
9157 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9158 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9159 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9160 (thumb2_breakpoint): Declare.
9161 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9162 linux-aarch32-low.h.
9163 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9164 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9165 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9167 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9169 * gdbreplay.c (gdbreplay_version): Change copyright year in
9171 * server.c (gdbserver_version): Likewise.
9173 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9175 * server.c (crc32_table): Delete.
9176 (crc32): Use libiberty's xcrc32 function.
9178 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9180 * lynx-low.c (lynx_delete_thread_callback): New function.
9181 (lynx_mourn): Properly delete our process and all of its
9182 threads. Remove call to clear_inferiors.
9184 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9186 * target.c (thread_search_callback): Add check that
9187 the thread_stopped target callback is not NULL before
9190 2015-12-21 Yao Qi <yao.qi@linaro.org>
9192 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9195 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9197 * server.c (handle_query): Call target_supports_software_single_step.
9199 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9201 * linux-low.c (single_step): New function.
9202 (linux_resume_one_lwp_throw): Call single_step.
9203 (start_step_over): Likewise.
9205 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9207 * Makefile.in (SFILES): Append arch/arm-linux.c,
9208 arch/arm-get-next-pcs.c.
9209 (arm-linux.o): New rule.
9210 (arm-get-next-pcs.o): New rule.
9211 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9213 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9214 to linux-aarch32-low.c.
9215 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9216 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9217 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9218 (thumb2_breakpoint_len): Likewise.
9219 (arm_is_thumb_mode): Make non-static.
9220 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9221 from linux-aarch32-low.c.
9222 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9223 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9224 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9225 (thumb2_breakpoint_len): Likewise.
9226 (arm_is_thumb_mode): New declaration.
9227 * linux-arm-low.c: Include arch/arm-linux.h
9228 aarch/arm-get-next-pcs.h, sys/syscall.h.
9229 (get_next_pcs_ops): New struct.
9230 (get_next_pcs_addr_bits_remove): New function.
9231 (get_next_pcs_is_thumb): New function.
9232 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9233 (arm_sigreturn_next_pc): Likewise.
9234 (get_next_pcs_syscall_next_pc): Likewise.
9235 (arm_gdbserver_get_next_pcs): Likewise.
9236 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9238 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9239 * server.h: Include gdb_vecs.h.
9241 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9243 * Makefile.in (SFILES): Append common/common-regcache.c.
9244 (OBS): Append common-regcache.o.
9245 (common-regcache.o): New rule.
9246 * regcache.c (init_register_cache): Initialize cache to
9248 (regcache_raw_read_unsigned): New function.
9249 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9250 register_status enum.
9252 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9254 * linux-aarch64-low.c (the_low_targets): Rename
9255 breakpoint_reinsert_addr to get_next_pcs.
9256 * linux-arm-low.c (the_low_targets): Likewise.
9257 * linux-bfin-low.c (the_low_targets): Likewise.
9258 * linux-cris-low.c (the_low_targets): Likewise.
9259 * linux-crisv32-low.c (the_low_targets): Likewise.
9260 * linux-low.c (can_software_single_step): Likewise.
9261 (install_software_single_step_breakpoints): New function.
9262 (start_step_over): Use install_software_single_step_breakpoints.
9263 * linux-low.h: New CORE_ADDR vector.
9264 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9266 * linux-mips-low.c (the_low_targets): Likewise.
9267 * linux-nios2-low.c (the_low_targets): Likewise.
9268 * linux-sparc-low.c (the_low_targets): Likewise.
9270 2015-12-17 Pedro Alves <palves@redhat.com>
9272 * linux-low.c (linux_kill_one_lwp): Remove references to
9274 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9276 (linux_init_signals): Delete.
9277 (initialize_low): Adjust.
9278 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9280 2015-12-16 Pedro Alves <palves@redhat.com>
9282 * configure.ac (compiler warning flags): When testing a
9283 -Wno-foo option, check whether -Wfoo works instead.
9284 * configure: Regenerate.
9286 2015-12-11 Don Breazeal <donb@codesourcery.com>
9288 * server.c (process_serial_event): Don't exit from gdbserver
9289 in remote mode if there are still active inferiors.
9291 2015-12-11 Yao Qi <yao.qi@linaro.org>
9293 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9294 arm_breakpoint_at if the process is 32-bit.
9296 2015-12-11 Yao Qi <yao.qi@linaro.org>
9298 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9301 2015-12-07 Yao Qi <yao.qi@linaro.org>
9303 * configure.srv: Append arm.o to srv_tgtobj for
9304 aarch64*-*-linux* target.
9305 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9306 from linux-arm-low.c.
9307 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9308 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9309 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9310 (thumb2_breakpoint_len): Likewise.
9311 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9312 (arm_breakpoint_kinds): Likewise.
9313 (arm_breakpoint_kind_from_pc): Likewise.
9314 (arm_sw_breakpoint_from_kind): Likewise.
9315 (arm_breakpoint_kind_from_current_state): Likewise.
9316 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9317 (arm_sw_breakpoint_from_kind): Declare.
9318 (arm_breakpoint_kind_from_current_state): Declare.
9319 (arm_breakpoint_at): Declare.
9320 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9321 arm_sw_breakpoint_from_kind if process is 32-bit.
9322 (aarch64_breakpoint_kind_from_pc): New function.
9323 (aarch64_breakpoint_kind_from_current_state): New function.
9324 (the_low_target): Initialize fields breakpoint_kind_from_pc
9325 and breakpoint_kind_from_current_state.
9326 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9327 linux-aarch32-low.c.
9328 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9329 (arm_breakpoint, arm_breakpoint_len): Likewise.
9330 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9331 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9332 (arm_is_thumb_mode): Likewise.
9333 (arm_breakpoint_at): Likewise.
9334 (arm_breakpoint_kind_from_pc): Likewise.
9335 (arm_sw_breakpoint_from_kind): Likewise.
9336 (arm_breakpoint_kind_from_current_state): Likewise.
9339 2015-08-04 Yao Qi <yao.qi@linaro.org>
9341 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9342 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9343 * server.c (extended_protocol): Remove "static".
9344 * server.h (extended_protocol): Declare it.
9346 2015-12-04 Josh Stone <jistone@redhat.com>
9348 * target.h (struct target_ops) <arch_setup>: Rename to ...
9349 (struct target_ops) <post_create_inferior>: ... this.
9350 (target_arch_setup): Rename to ...
9351 (target_post_create_inferior): ... this, calling post_create_inferior.
9352 * server.c (start_inferior): Update target_arch_setup calls to
9353 target_post_create_inferior.
9354 * linux-low.c (linux_low_ptrace_options): Forward declare.
9355 (linux_arch_setup): Update its comment for general use.
9356 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9357 (struct linux_target_ops): Use linux_post_create_inferior.
9358 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9359 to post_create_inferior.
9360 * nto-low.c (struct nto_target_ops): Likewise.
9361 * spu-low.c (struct spu_target_ops): Likewise.
9362 * win32-low.c (struct win32_target_ops): Likewise.
9364 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9366 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9368 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9370 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9371 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9372 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9373 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9374 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9375 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9376 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9377 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9378 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9379 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9380 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9381 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9383 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9385 * linux-low.c (linux_look_up_symbols): Don't call
9386 linux_supports_traceclone.
9387 * linux-low.h (thread_db_init): Remove use_events argument.
9388 * thread-db.c (thread_db_use_event): Remove global variable.
9389 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9390 (struct thread_db) <td_create_bp>: Remove field.
9391 (thread_db_create_event): Remove function.
9392 (thread_db_enable_reporting): Likewise.
9393 (find_one_thread): Don't check for thread_db_use_events.
9394 (attach_thread): Likewise.
9395 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9396 (try_thread_db_load_1): Don't check for thread_db_use_events.
9397 (thread_db_init): Remove use_events argument and thread events
9399 (remove_thread_event_breakpoints): Remove function.
9400 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9402 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9404 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9406 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9407 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9408 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9409 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9410 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9412 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9414 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9415 * linux-low.c (can_hardware_single_step): Use
9416 supports_hardware_single_step.
9417 (can_software_single_step): New function.
9418 (start_step_over): Call can_software_single_step.
9419 (linux_supports_hardware_single_step): New function.
9420 (struct target_ops) <supports_software_single_step>: Initialize.
9421 * linux-low.h (struct linux_target_ops)
9422 <supports_hardware_single_step>: Initialize.
9423 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9424 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9425 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9426 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9427 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9428 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9429 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9430 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9431 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9432 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9434 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9435 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9437 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9438 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9439 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9441 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9442 * target.h (struct target_ops): <supports_software_single_step>:
9444 (target_supports_software_single_step): New macro.
9446 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9448 * linux-low.c (linux_wait_1): Fix pc advance condition.
9449 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9450 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9452 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9454 * linux-arm-low.c (arm_is_thumb_mode): New function.
9455 (arm_breakpoint_at): Use arm_is_thumb_mode.
9456 (arm_breakpoint_kind_from_current_state): New function.
9457 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9459 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9460 (linux_breakpoint_kind_from_current_state): New function.
9461 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9462 * linux-low.h (struct linux_target_ops)
9463 <breakpoint_kind_from_current_state>: New field.
9464 * target.h (struct target_ops): Likewise.
9465 (target_breakpoint_kind_from_current_state): New macro.
9467 2015-11-30 Pedro Alves <palves@redhat.com>
9469 * linux-low.c (linux_resume): Wake up the event loop before
9472 2015-11-30 Pedro Alves <palves@redhat.com>
9474 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9476 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9478 * target.c (struct thread_search): New structure.
9479 (thread_search_callback): New function.
9480 (prev_general_thread): New global.
9481 (prepare_to_access_memory, done_accessing_memory): New functions.
9482 * target.h (prepare_to_access_memory, done_accessing_memory):
9483 Replace macros with function declarations.
9485 2015-11-30 Pedro Alves <palves@redhat.com>
9488 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9489 report TARGET_WAITKIND_NO_RESUMED.
9490 * remote-utils.c (prepare_resume_reply): Handle
9491 TARGET_WAITKIND_NO_RESUMED.
9492 * server.c (report_no_resumed): New global.
9493 (handle_query) <qSupported>: Handle "no-resumed+". Report
9494 "no-resumed+" support.
9495 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9496 return error if the client doesn't support no-resumed events.
9497 (push_stop_notification): New function.
9498 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9499 events if the client supports them.
9501 2015-11-30 Pedro Alves <palves@redhat.com>
9503 * linux-low.c (thread_still_has_status_pending_p): Don't check
9505 (lwp_resumed): New function.
9506 (status_pending_p_callback): Return early if the LWP is not
9507 supposed to be resumed.
9509 2015-11-30 Pedro Alves <palves@redhat.com>
9511 * linux-low.c (handle_extended_wait): Assert that the LWP's
9512 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9513 thread create events, leave the new child's status pending.
9514 (linux_low_filter_event): If GDB wants to hear about thread exit
9515 events, leave the LWP marked dead and don't delete it.
9516 (linux_wait_for_event_filtered): Don't check for thread exit.
9517 (filter_exit_event): New function.
9518 (linux_wait_1): Use it, when returning an exit event.
9519 (linux_resume_one_lwp_throw): Assert that the LWP's
9520 waitstatus is TARGET_WAITKIND_IGNORE.
9521 * remote-utils.c (prepare_resume_reply): Handle
9522 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9523 * server.c (report_thread_events): New global.
9524 (handle_general_set): Handle QThreadEvents.
9525 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9526 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9527 TARGET_WAITKIND_THREAD_EXITED.
9528 * server.h (report_thread_events): Declare.
9530 2015-11-30 Pedro Alves <palves@redhat.com>
9532 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9533 the thread's last_resume_kind was resume_stop.
9535 2015-11-30 Pedro Alves <palves@redhat.com>
9537 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9540 2015-11-30 Pedro Alves <palves@redhat.com>
9542 * server.c (handle_v_requests): Handle vCtrlC.
9544 2015-11-30 Pedro Alves <palves@redhat.com>
9546 * gdbthread.h (find_any_thread_of_pid): Declare.
9547 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9549 * server.c (handle_query): If current_thread is NULL, look for
9550 another thread of the selected process.
9552 2015-11-26 Daniel Colascione <dancol@dancol.org>
9553 Simon Marchi <simon.marchi@ericsson.com>
9555 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9556 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9558 * target.h (struct target_ops) <thread_name>: New field.
9559 (target_thread_name): New macro.
9561 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9563 * regcache.h (regcache_invalidate_pid): Add declaration.
9564 * regcache.c (regcache_invalidate_pid): New function, extracted
9565 from regcache_invalidate.
9566 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9567 Add trivial documentation comment.
9568 * lynx-low.c: Use regcache_invalidate_pid instead of
9569 regcache_invalidate.
9571 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9573 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9574 and Elf64_auxv_t if the target is Android.
9576 2015-11-22 Doug Evans <xdje42@gmail.com>
9578 * target.h: #include <sys/types.h>.
9580 2015-11-19 Pedro Alves <palves@redhat.com>
9582 * linux-low.c (linux_process_qsupported): Change prototype.
9584 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9586 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9587 and adjust to loop over all features.
9588 * server.c (handle_query) <qSupported>: Adjust to call
9589 target_process_qsupported once, passing it a vector of unprocessed
9591 * target.h (struct target_ops) <process_qsupported>: Change
9593 (target_process_qsupported): Adjust.
9595 2015-11-19 Pedro Alves <palves@redhat.com>
9597 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9599 * configure: Regenerate.
9601 2015-11-19 Pedro Alves <palves@redhat.com>
9603 * configure: Regenerate.
9605 2015-11-19 Yao Qi <yao.qi@linaro.org>
9607 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9610 2015-11-19 Yao Qi <yao.qi@linaro.org>
9612 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9613 (struct aarch64_operand): Move enum out.
9615 2015-11-19 Yao Qi <yao.qi@linaro.org>
9617 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9618 struct user_fpsimd_state *.
9619 (aarch64_store_fpregset): Likewise.
9621 2015-11-19 Yao Qi <yao.qi@linaro.org>
9623 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9624 struct user_pt_regs *.
9625 (aarch64_store_gregset): Likewise.
9627 2015-11-18 Pedro Alves <palves@redhat.com>
9629 * Makefile.in (all_object_files): Add $IPA_OBJS.
9631 2015-11-17 Pedro Alves <palves@redhat.com>
9633 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9634 GDB_SIGNAL_0 and gdb_signal_to_string.
9636 2015-11-17 Pedro Alves <palves@redhat.com>
9638 * win32-low.c (handle_output_debug_string): Remove parameter.
9639 (win32_kill): Remove our_status local and adjust call to
9640 handle_output_debug_string.
9641 (get_child_debug_event): Adjust call to
9642 handle_output_debug_string.
9644 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9646 * linux-mips-low.c (mips_fill_gregset): Add cast.
9647 (mips_store_gregset): Likewise.
9648 (mips_fill_fpregset): Likewise.
9649 (mips_store_fpregset): Likewise.
9651 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9653 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9656 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9658 * linux-mips-low.c (mips_linux_new_thread): Change type of
9659 watch_type to enum target_hw_bp_type.
9661 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9663 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9664 Change return type to arm_hwbp_type.
9666 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9668 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9669 (arm_store_gregset): Likewise.
9670 * linux-arm-low.c (arm_get_hwcap): Likewise.
9671 (arm_read_description): Likewise.
9673 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9675 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9677 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9679 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9680 (ppc_fill_vsxregset): Likewise.
9681 (ppc_store_vsxregset): Likewise.
9682 (ppc_fill_vrregset): Likewise.
9683 (ppc_store_vrregset): Likewise.
9684 (ppc_fill_evrregset): Likewise.
9685 (ppc_store_evrregset): Likewise.
9687 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9689 * linux-ppc-low.c (ppc_usrregs_info): Remove
9690 forward-declaration.
9691 (ppc_arch_setup): Move lower in file.
9693 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9695 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9696 (ps_pdwrite): Likewise.
9698 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9700 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9701 to after assert checks.
9703 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9705 * proc-service.c (ps_pdread): Add/adjust casts.
9706 (ps_pdwrite): Add/adjust casts.
9708 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9710 * server.c (handle_search_memory_1): Cast return value of
9713 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9715 * server.c (write_qxfer_response): Change type of data to
9718 2015-10-29 Pedro Alves <palves@redhat.com>
9720 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9722 2015-10-29 Pedro Alves <palves@redhat.com>
9724 * tracepoint.c (clear_installed_tracepoints): Add casts.
9726 2015-10-29 Pedro Alves <palves@redhat.com>
9728 * server.c (handle_v_cont, process_serial_event): Add enum
9729 gdb_signal casts to signal parsing code.
9731 2015-10-29 Pedro Alves <palves@redhat.com>
9733 * linux-low.h (NULL_REGSET): Define.
9734 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9735 * linux-arm-low.c (arm_regsets): Likewise.
9736 * linux-crisv32-low.c (cris_regsets): Likewise.
9737 * linux-m68k-low.c (m68k_regsets): Likewise.
9738 * linux-mips-low.c (mips_regsets): Likewise.
9739 * linux-nios2-low.c (nios2_regsets): Likewise.
9740 * linux-ppc-low.c (ppc_regsets): Likewise.
9741 * linux-s390-low.c (s390_regsets): Likewise.
9742 * linux-sh-low.c (sh_regsets): Likewise.
9743 * linux-sparc-low.c (sparc_regsets): Likewise.
9744 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9745 * linux-tile-low.c (tile_regsets): Likewise.
9746 * linux-x86-low.c (x86_regsets): Likewise.
9747 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9749 2015-10-29 Pedro Alves <palves@redhat.com>
9751 * linux-low.h (NULL_REGSET): Define.
9752 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9753 * linux-arm-low.c (arm_regsets): Likewise.
9754 * linux-crisv32-low.c (cris_regsets): Likewise.
9755 * linux-m68k-low.c (m68k_regsets): Likewise.
9756 * linux-mips-low.c (mips_regsets): Likewise.
9757 * linux-nios2-low.c (nios2_regsets): Likewise.
9758 * linux-ppc-low.c (ppc_regsets): Likewise.
9759 * linux-s390-low.c (s390_regsets): Likewise.
9760 * linux-sh-low.c (sh_regsets): Likewise.
9761 * linux-sparc-low.c (sparc_regsets): Likewise.
9762 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9763 * linux-tile-low.c (tile_regsets): Likewise.
9764 * linux-x86-low.c (x86_regsets): Likewise.
9765 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9767 2015-10-26 Doug Evans <dje@google.com>
9769 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9771 2015-10-26 Doug Evans <dje@google.com>
9773 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9775 2015-10-26 Doug Evans <dje@google.com>
9777 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9779 (attach_thread, find_new_threads_callback): Ditto.
9781 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9783 * mem-break.h (set_breakpoint_data): Remove.
9785 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9787 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9788 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9789 (initialize_low): Remove set_breakpoint_data call.
9790 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9791 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9792 (initialize_low): Remove set_breakpoint_data call.
9793 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9794 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9795 (initialize_low): Remove set_breakpoint_data call.
9797 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9799 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9800 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9801 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9802 * target.h (target_breakpoint_kind_from_pc): New macro.
9804 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9806 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9807 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9808 the default breakpoint kind.
9810 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9812 * linux-arm-low.c (arm_supports_z_point_type): Add software
9815 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9817 * linux-arm-low.c: Refactor breakpoint definitions.
9818 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9819 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9821 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9823 * Makefile.in: Add arm.c/o.
9824 * configure.srv: Likewise.
9825 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9826 (arm_breakpoint_kind_from_pc): New function.
9827 (arm_sw_breakpoint_from_kind): Return proper kind.
9828 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9830 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9832 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9834 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9835 (struct raw_breakpoint) <size>: Remove.
9836 (struct raw_breakpoint) <kind>: Add.
9837 (bp_size): New function.
9838 (bp_opcode): Likewise.
9839 (find_raw_breakpoint_at): Adjust for kind.
9840 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9841 (remove_memory_breakpoint): Adjust for kind call bp_size.
9842 (set_raw_breakpoint_at): Adjust for kind.
9843 (set_breakpoint): Likewise.
9844 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9845 (delete_raw_breakpoint): Adjust for kind.
9846 (delete_breakpoint): Likewise.
9847 (find_gdb_breakpoint): Likewise.
9848 (set_gdb_breakpoint_1): Likewise.
9849 (set_gdb_breakpoint): Likewise.
9850 (delete_gdb_breakpoint_1): Likewise.
9851 (delete_gdb_breakpoint): Likewise.
9852 (uninsert_raw_breakpoint): Likewise.
9853 (reinsert_raw_breakpoint): Likewise.
9854 (set_breakpoint_data): Remove.
9855 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9856 (check_mem_read): Adjust for kind call bp_size.
9857 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9858 (clone_one_breakpoint): Adjust for kind.
9859 * mem-break.h (set_gdb_breakpoint): Likewise.
9860 (delete_gdb_breakpoint): Likewise.
9861 * server.c (process_serial_event): Likewise.
9863 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9865 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9866 (struct linux_target_ops) <breakpoint>: Remove.
9867 (struct linux_target_ops) <breakpoint_len>: Remove.
9868 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9869 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9870 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9871 (arm_sw_breakpoint_from_kind): New function.
9872 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9873 (struct linux_target_ops) <breakpoint>: Remove.
9874 (struct linux_target_ops) <breakpoint_len>: Remove.
9875 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9876 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9877 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9878 (struct linux_target_ops) <breakpoint>: Remove.
9879 (struct linux_target_ops) <breakpoint_len>: Remove.
9880 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9881 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9882 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9883 (struct linux_target_ops) <breakpoint>: Remove.
9884 (struct linux_target_ops) <breakpoint_len>: Remove.
9885 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9886 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9887 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9888 and sw_breakpoint_from_kind to increment the pc.
9889 (linux_breakpoint_kind_from_pc): New function.
9890 (linux_sw_breakpoint_from_kind): New function.
9891 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9892 (initialize_low): Call breakpoint_kind_from_pc and
9893 sw_breakpoint_from_kind to replace breakpoint_data/len.
9894 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9896 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9897 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9898 (struct linux_target_ops) <breakpoint>: Remove.
9899 (struct linux_target_ops) <breakpoint_len>: Remove.
9900 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9901 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9902 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9903 (struct linux_target_ops) <breakpoint>: Remove.
9904 (struct linux_target_ops) <breakpoint_len>: Remove.
9905 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9906 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9907 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9908 (struct linux_target_ops) <breakpoint>: Remove.
9909 (struct linux_target_ops) <breakpoint_len>: Remove.
9910 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9911 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9912 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9913 (struct linux_target_ops) <breakpoint>: Remove.
9914 (struct linux_target_ops) <breakpoint_len>: Remove.
9915 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9916 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9917 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9918 (struct linux_target_ops) <breakpoint>: Remove.
9919 (struct linux_target_ops) <breakpoint_len>: Remove.
9920 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9921 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9922 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9923 (struct linux_target_ops) <breakpoint>: Remove.
9924 (struct linux_target_ops) <breakpoint_len>: Remove.
9925 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9926 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9927 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9928 (struct linux_target_ops) <breakpoint>: Remove.
9929 (struct linux_target_ops) <breakpoint_len>: Remove.
9930 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9931 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9932 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9933 (struct linux_target_ops) <breakpoint>: Remove.
9934 (struct linux_target_ops) <breakpoint_len>: Remove.
9935 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9936 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9937 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9938 (struct linux_target_ops) <breakpoint>: Remove.
9939 (struct linux_target_ops) <breakpoint_len>: Remove.
9940 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9941 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9942 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9943 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9944 (struct linux_target_ops) <breakpoint>: Remove.
9945 (struct linux_target_ops) <breakpoint_len>: Remove.
9946 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9947 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9948 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9949 (struct linux_target_ops) <breakpoint>: Remove.
9950 (struct linux_target_ops) <breakpoint_len>: Remove.
9951 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9952 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9954 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9956 * linux-cris-low.c (cris_get_pc): Remove void arg.
9958 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9960 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9963 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9965 * inferiors.c (thread_pid_matches_callback): New function.
9966 (find_thread_process): New function.
9967 (remove_thread): Reset current_thread.
9968 (remove_process): Assert threads have been removed first.
9970 2015-10-15 Yao Qi <yao.qi@linaro.org>
9972 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9974 (aarch64_remove_point): Likewise.
9975 * regcache.c (regcache_register_size): New function.
9977 2015-10-12 Yao Qi <yao.qi@linaro.org>
9979 * linux-aarch64-low.c: Update all callers as emit_load_store
9980 is renamed to aarch64_emit_load_store.
9982 2015-10-12 Yao Qi <yao.qi@linaro.org>
9984 * linux-aarch64-low.c: Update all callers of function renaming
9985 from emit_insn to aarch64_emit_insn.
9987 2015-10-12 Yao Qi <yao.qi@linaro.org>
9989 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9990 arch/aarch64-insn.h.
9991 (struct aarch64_memory_operand): Likewise.
9993 (emit_insn): Move to arch/aarch64-insn.c.
9994 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9995 (emit_load_store): Move to arch/aarch64-insn.c.
9996 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9997 (can_encode_int32): Remove.
9999 2015-10-12 Yao Qi <yao.qi@linaro.org>
10001 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10002 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10003 (aarch64_relocate_instruction): Likewise.
10004 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10005 (struct aarch64_insn_visitor): Likewise.
10007 2015-10-12 Yao Qi <yao.qi@linaro.org>
10009 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10010 (struct aarch64_insn_visitor): New.
10011 (struct aarch64_insn_relocation_data): New.
10012 (aarch64_ftrace_insn_reloc_b): New function.
10013 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10014 (aarch64_ftrace_insn_reloc_cb): Likewise.
10015 (aarch64_ftrace_insn_reloc_tb): Likewise.
10016 (aarch64_ftrace_insn_reloc_adr): Likewise.
10017 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10018 (aarch64_ftrace_insn_reloc_others): Likewise.
10020 (aarch64_relocate_instruction): Use visitor.
10022 2015-10-12 Yao Qi <yao.qi@linaro.org>
10024 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10025 int. Add argument buf.
10026 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10027 aarch64_relocate_instruction.
10029 2015-10-12 Yao Qi <yao.qi@linaro.org>
10031 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10032 argument insn. Remove local variable insn. Don't call
10033 target_read_uint32.
10034 (aarch64_install_fast_tracepoint_jump_pad): Call
10035 target_read_uint32.
10037 2015-09-30 Yao Qi <yao.qi@linaro.org>
10039 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10040 (emit_load_store_pair): Likewise.
10042 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10044 * dll.c (match_dll): Add cast(s).
10045 (unloaded_dll): Likewise.
10046 * linux-low.c (second_thread_of_pid_p): Likewise.
10047 (delete_lwp_callback): Likewise.
10048 (count_events_callback): Likewise.
10049 (select_event_lwp_callback): Likewise.
10050 (linux_set_resume_request): Likewise.
10051 * server.c (accumulate_file_name_length): Likewise.
10052 (emit_dll_description): Likewise.
10053 (handle_qxfer_threads_worker): Likewise.
10054 (visit_actioned_threads): Likewise.
10055 * thread-db.c (any_thread_of): Likewise.
10056 * tracepoint.c (same_process_p): Likewise.
10057 (match_blocktype): Likewise.
10058 (build_traceframe_info_xml): Likewise.
10060 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10062 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10064 (gdb_unparse_agent_expr): Likewise.
10065 * hostio.c (require_data): Likewise.
10066 (handle_pread): Likewise.
10067 * linux-low.c (disable_regset): Likewise.
10068 (fetch_register): Likewise.
10069 (store_register): Likewise.
10070 (get_dynamic): Likewise.
10071 (linux_qxfer_libraries_svr4): Likewise.
10072 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10073 (set_fast_tracepoint_jump): Likewise.
10074 (uninsert_fast_tracepoint_jumps_at): Likewise.
10075 (reinsert_fast_tracepoint_jumps_at): Likewise.
10076 (validate_inserted_breakpoint): Likewise.
10077 (clone_agent_expr): Likewise.
10078 * regcache.c (init_register_cache): Likewise.
10079 * remote-utils.c (putpkt_binary_1): Likewise.
10080 (decode_M_packet): Likewise.
10081 (decode_X_packet): Likewise.
10082 (look_up_one_symbol): Likewise.
10083 (relocate_instruction): Likewise.
10084 (monitor_output): Likewise.
10085 * server.c (handle_search_memory): Likewise.
10086 (handle_qxfer_exec_file): Likewise.
10087 (handle_qxfer_libraries): Likewise.
10088 (handle_qxfer): Likewise.
10089 (handle_query): Likewise.
10090 (handle_v_cont): Likewise.
10091 (handle_v_run): Likewise.
10092 (captured_main): Likewise.
10093 * target.c (write_inferior_memory): Likewise.
10094 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10095 * tracepoint.c (init_trace_buffer): Likewise.
10096 (add_tracepoint_action): Likewise.
10097 (add_traceframe): Likewise.
10098 (add_traceframe_block): Likewise.
10099 (cmd_qtdpsrc): Likewise.
10100 (cmd_qtdv): Likewise.
10101 (cmd_qtstatus): Likewise.
10102 (response_source): Likewise.
10103 (response_tsv): Likewise.
10104 (cmd_qtnotes): Likewise.
10105 (gdb_collect): Likewise.
10106 (initialize_tracepoint): Likewise.
10108 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10110 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10111 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10112 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10114 (enum aarch64_condition_codes): New enum.
10115 (w0): New static global.
10118 (struct aarch64_memory_operand) <type>: New
10119 MEMORY_OPERAND_POSTINDEX type.
10120 (postindex_memory_operand): New helper function.
10121 (emit_ret): New function.
10122 (emit_load_store_pair): New function, factored out of emit_stp
10123 with support for MEMORY_OPERAND_POSTINDEX.
10124 (emit_stp): Rewrite using emit_load_store_pair.
10125 (emit_ldp): New function.
10126 (emit_load_store): Likewise.
10127 (emit_ldr): Mention post-index instruction in comment.
10128 (emit_ldrh): New function.
10129 (emit_ldrb): New function.
10130 (emit_ldrsw): Mention post-index instruction in comment.
10131 (emit_str): Likewise.
10132 (emit_subs): New function.
10133 (emit_cmp): Likewise.
10134 (emit_and): Likewise.
10135 (emit_orr): Likewise.
10136 (emit_orn): Likewise.
10137 (emit_eor): Likewise.
10138 (emit_mvn): Likewise.
10139 (emit_lslv): Likewise.
10140 (emit_lsrv): Likewise.
10141 (emit_asrv): Likewise.
10142 (emit_mul): Likewise.
10143 (emit_sbfm): Likewise.
10144 (emit_sbfx): Likewise.
10145 (emit_ubfm): Likewise.
10146 (emit_ubfx): Likewise.
10147 (emit_csinc): Likewise.
10148 (emit_cset): Likewise.
10149 (emit_nop): Likewise.
10150 (emit_ops_insns): New helper function.
10151 (emit_pop): Likewise.
10152 (emit_push): Likewise.
10153 (aarch64_emit_prologue): New function.
10154 (aarch64_emit_epilogue): Likewise.
10155 (aarch64_emit_add): Likewise.
10156 (aarch64_emit_sub): Likewise.
10157 (aarch64_emit_mul): Likewise.
10158 (aarch64_emit_lsh): Likewise.
10159 (aarch64_emit_rsh_signed): Likewise.
10160 (aarch64_emit_rsh_unsigned): Likewise.
10161 (aarch64_emit_ext): Likewise.
10162 (aarch64_emit_log_not): Likewise.
10163 (aarch64_emit_bit_and): Likewise.
10164 (aarch64_emit_bit_or): Likewise.
10165 (aarch64_emit_bit_xor): Likewise.
10166 (aarch64_emit_bit_not): Likewise.
10167 (aarch64_emit_equal): Likewise.
10168 (aarch64_emit_less_signed): Likewise.
10169 (aarch64_emit_less_unsigned): Likewise.
10170 (aarch64_emit_ref): Likewise.
10171 (aarch64_emit_if_goto): Likewise.
10172 (aarch64_emit_goto): Likewise.
10173 (aarch64_write_goto_address): Likewise.
10174 (aarch64_emit_const): Likewise.
10175 (aarch64_emit_call): Likewise.
10176 (aarch64_emit_reg): Likewise.
10177 (aarch64_emit_pop): Likewise.
10178 (aarch64_emit_stack_flush): Likewise.
10179 (aarch64_emit_zero_ext): Likewise.
10180 (aarch64_emit_swap): Likewise.
10181 (aarch64_emit_stack_adjust): Likewise.
10182 (aarch64_emit_int_call_1): Likewise.
10183 (aarch64_emit_void_call_2): Likewise.
10184 (aarch64_emit_eq_goto): Likewise.
10185 (aarch64_emit_ne_goto): Likewise.
10186 (aarch64_emit_lt_goto): Likewise.
10187 (aarch64_emit_le_goto): Likewise.
10188 (aarch64_emit_gt_goto): Likewise.
10189 (aarch64_emit_ge_got): Likewise.
10190 (aarch64_emit_ops_impl): New static global variable.
10191 (aarch64_emit_ops): New target function, return
10192 &aarch64_emit_ops_impl.
10193 (struct linux_target_ops): Install it.
10195 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10197 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10198 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10200 * linux-aarch64-ipa.c: New file.
10201 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10203 (aarch64_get_thread_area): New target method.
10204 (extract_signed_bitfield): New helper function.
10205 (aarch64_decode_ldr_literal): New function.
10206 (enum aarch64_opcodes): New enum.
10207 (struct aarch64_register): New struct.
10208 (struct aarch64_operand): New struct.
10209 (x0): New static global.
10218 (aarch64_register): New helper function.
10219 (register_operand): Likewise.
10220 (immediate_operand): Likewise.
10221 (struct aarch64_memory_operand): New struct.
10222 (offset_memory_operand): New helper function.
10223 (preindex_memory_operand): Likewise.
10224 (enum aarch64_system_control_registers): New enum.
10225 (ENCODE): New macro.
10226 (emit_insn): New helper function.
10227 (emit_b): New function.
10228 (emit_bcond): Likewise.
10229 (emit_cb): Likewise.
10230 (emit_tb): Likewise.
10231 (emit_blr): Likewise.
10232 (emit_stp): Likewise.
10233 (emit_ldp_q_offset): Likewise.
10234 (emit_stp_q_offset): Likewise.
10235 (emit_load_store): Likewise.
10236 (emit_ldr): Likewise.
10237 (emit_ldrsw): Likewise.
10238 (emit_str): Likewise.
10239 (emit_ldaxr): Likewise.
10240 (emit_stxr): Likewise.
10241 (emit_stlr): Likewise.
10242 (emit_data_processing_reg): Likewise.
10243 (emit_data_processing): Likewise.
10244 (emit_add): Likewise.
10245 (emit_sub): Likewise.
10246 (emit_mov): Likewise.
10247 (emit_movk): Likewise.
10248 (emit_mov_addr): Likewise.
10249 (emit_mrs): Likewise.
10250 (emit_msr): Likewise.
10251 (emit_sevl): Likewise.
10252 (emit_wfe): Likewise.
10253 (append_insns): Likewise.
10254 (can_encode_int32_in): New helper function.
10255 (aarch64_relocate_instruction): New function.
10256 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10257 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10258 (struct linux_target_ops): Install aarch64_get_thread_area,
10259 aarch64_install_fast_tracepoint_jump_pad and
10260 aarch64_get_min_fast_tracepoint_insn_len.
10262 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10264 * Makefile.in (aarch64-insn.o): New rule.
10265 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10267 2015-09-21 Yao Qi <yao.qi@linaro.org>
10269 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10271 2015-09-21 Yao Qi <yao.qi@linaro.org>
10273 * tracepoint.c (max_jump_pad_size): Remove.
10275 2015-09-18 Yao Qi <yao.qi@linaro.org>
10277 * linux-aarch64-low.c: Don't include sys/uio.h.
10278 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10280 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10282 * tracepoint.c (eval_result_type): Change prototype.
10283 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10285 2015-09-15 Pedro Alves <palves@redhat.com>
10287 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10288 Check whether to report exec events instead of checking whether
10289 multiprocess is enabled.
10291 2015-09-15 Pedro Alves <palves@redhat.com>
10294 * remote-utils.c (prepare_resume_reply): Merge
10295 TARGET_WAITKIND_VFORK_DONE switch case with the
10296 TARGET_WAITKIND_FORKED case.
10298 2015-09-15 Yao Qi <yao.qi@linaro.org>
10300 * server.c (handle_query): Check string comparison using
10301 "else if" instead of "if".
10303 2015-09-15 Yao Qi <yao.qi@linaro.org>
10305 * server.c (vCont_supported): New global variable.
10306 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10307 matches. Append ";vContSupported+" to own_buf.
10308 (handle_v_requests): Append ";s;S" to own_buf if target supports
10309 hardware single step or vCont_supported is false.
10310 (capture_main): Set vCont_supported to zero.
10312 2015-09-15 Yao Qi <yao.qi@linaro.org>
10314 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10316 (linux_supports_hardware_single_step): ... New function.
10317 (linux_target_ops): Update.
10318 * lynx-low.c (lynx_target_ops): Set field
10319 supports_hardware_single_step to target_can_do_hardware_single_step.
10320 * nto-low.c (nto_target_ops): Likewise.
10321 * spu-low.c (spu_target_ops): Likewise.
10322 * win32-low.c (win32_target_ops): Likewise.
10323 * target.c (target_can_do_hardware_single_step): New function.
10324 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10325 Remove. <supports_hardware_single_step>: New field.
10326 (target_supports_conditional_breakpoints): Remove.
10327 (target_supports_hardware_single_step): New macro.
10328 (target_can_do_hardware_single_step): Declare.
10329 * server.c (handle_query): Use target_supports_hardware_single_step
10330 instead of target_supports_conditional_breakpoints.
10332 2015-09-15 Yao Qi <yao.qi@linaro.org>
10334 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10336 (struct linux_target_ops the_low_target): Install
10337 aarch64_linux_siginfo_fixup.
10339 2015-09-11 Don Breazeal <donb@codesourcery.com>
10340 Luis Machado <lgustavo@codesourcery.com>
10342 * linux-low.c (linux_mourn): Static declaration.
10343 (linux_arch_setup): Move in front of
10344 handle_extended_wait.
10345 (linux_arch_setup_thread): New function.
10346 (handle_extended_wait): Handle exec events. Call
10347 linux_arch_setup_thread. Make event_lwp argument a
10348 pointer-to-a-pointer.
10349 (check_zombie_leaders): Do not check stopped threads.
10350 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10351 (linux_low_filter_event): Add lwp and thread for exec'ing
10352 non-leader thread if leader thread has been deleted.
10353 Refactor code into linux_arch_setup_thread and call it.
10354 Pass child lwp pointer by reference to handle_extended_wait.
10355 (linux_wait_for_event_filtered): Update comment.
10356 (linux_wait_1): Prevent clobbering exec event status.
10357 (linux_supports_exec_events): New function.
10358 (linux_target_ops) <supports_exec_events>: Initialize new member.
10359 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10361 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10362 * server.c (report_exec_events): New global variable.
10363 (handle_query): Handle qSupported query for exec-events feature.
10364 (captured_main): Initialize report_exec_events.
10365 * server.h (report_exec_events): Declare new global variable.
10366 * target.h (struct target_ops) <supports_exec_events>: New
10368 (target_supports_exec_events): New macro.
10369 * win32-low.c (win32_target_ops) <supports_exec_events>:
10370 Initialize new member.
10372 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10374 * linux-low.c (linux_low_enable_btrace): Remove.
10375 (linux_target_ops): Replace linux_low_enable_btrace with
10376 linux_enable_btrace.
10378 2015-09-03 Yao Qi <yao.qi@linaro.org>
10380 * linux-aarch64-low.c (aarch64_insert_point): Call
10381 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10384 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10386 * linux-low.c (check_stopped_by_breakpoint): Use
10387 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10389 2015-08-27 Pedro Alves <palves@redhat.com>
10391 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10393 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10395 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10396 the XNEW-family equivalent.
10397 (compile_bytecodes): Likewise.
10398 * dll.c (loaded_dll): Likewise.
10399 * event-loop.c (append_callback_event): Likewise.
10400 (create_file_handler): Likewise.
10401 (create_file_event): Likewise.
10402 * hostio.c (handle_open): Likewise.
10403 * inferiors.c (add_thread): Likewise.
10404 (add_process): Likewise.
10405 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10406 * linux-arm-low.c (arm_new_process): Likewise.
10407 (arm_new_thread): Likewise.
10408 * linux-low.c (add_to_pid_list): Likewise.
10409 (linux_add_process): Likewise.
10410 (handle_extended_wait): Likewise.
10411 (add_lwp): Likewise.
10412 (enqueue_one_deferred_signal): Likewise.
10413 (enqueue_pending_signal): Likewise.
10414 (linux_resume_one_lwp_throw): Likewise.
10415 (linux_resume_one_thread): Likewise.
10416 (linux_read_memory): Likewise.
10417 (linux_write_memory): Likewise.
10418 * linux-mips-low.c (mips_linux_new_process): Likewise.
10419 (mips_linux_new_thread): Likewise.
10420 (mips_add_watchpoint): Likewise.
10421 * linux-x86-low.c (initialize_low_arch): Likewise.
10422 * lynx-low.c (lynx_add_process): Likewise.
10423 * mem-break.c (set_raw_breakpoint_at): Likewise.
10424 (set_breakpoint): Likewise.
10425 (add_condition_to_breakpoint): Likewise.
10426 (add_commands_to_breakpoint): Likewise.
10427 (clone_agent_expr): Likewise.
10428 (clone_one_breakpoint): Likewise.
10429 * regcache.c (new_register_cache): Likewise.
10430 * remote-utils.c (look_up_one_symbol): Likewise.
10431 * server.c (queue_stop_reply): Likewise.
10432 (start_inferior): Likewise.
10433 (queue_stop_reply_callback): Likewise.
10434 (handle_target_event): Likewise.
10435 * spu-low.c (fetch_ppc_memory): Likewise.
10436 (store_ppc_memory): Likewise.
10437 * target.c (set_target_ops): Likewise.
10438 * thread-db.c (thread_db_load_search): Likewise.
10439 (try_thread_db_load_1): Likewise.
10440 * tracepoint.c (add_tracepoint): Likewise.
10441 (add_tracepoint_action): Likewise.
10442 (create_trace_state_variable): Likewise.
10443 (cmd_qtdpsrc): Likewise.
10444 (cmd_qtro): Likewise.
10445 (add_while_stepping_state): Likewise.
10446 * win32-low.c (child_add_thread): Likewise.
10447 (get_image_name): Likewise.
10449 2015-08-25 Yao Qi <yao.qi@linaro.org>
10451 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10453 2015-08-25 Yao Qi <yao.qi@linaro.org>
10455 * Makefile.in (aarch64-linux.o): New rule.
10456 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10458 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10459 (aarch64_init_debug_reg_state): Make it extern.
10460 (aarch64_linux_prepare_to_resume): Remove.
10462 2015-08-25 Yao Qi <yao.qi@linaro.org>
10464 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10465 lwp_arch_private_info and ptid_of_lwp.
10467 2015-08-25 Yao Qi <yao.qi@linaro.org>
10469 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10470 Find proc_info by find_process_pid. All callers updated.
10472 2015-08-25 Yao Qi <yao.qi@linaro.org>
10474 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10476 (debug_reg_change_callback): Remove.
10477 (aarch64_notify_debug_reg_change): Remove.
10479 2015-08-25 Yao Qi <yao.qi@linaro.org>
10481 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10482 Call current_lwp_ptid.
10484 2015-08-25 Yao Qi <yao.qi@linaro.org>
10486 * linux-aarch64-low.c (debug_reg_change_callback): Use
10489 2015-08-25 Yao Qi <yao.qi@linaro.org>
10491 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10493 2015-08-25 Yao Qi <yao.qi@linaro.org>
10495 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10497 2015-08-25 Yao Qi <yao.qi@linaro.org>
10499 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10502 2015-08-25 Yao Qi <yao.qi@linaro.org>
10504 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10506 (debug_reg_change_callback): Remove argument entry and add argument
10507 lwp. Remove local variable thread. Don't print thread id in the
10508 debugging output. Don't check whether pid of thread equals to pid.
10509 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10510 iterate_over_lwps instead find_inferior.
10512 2015-08-24 Pedro Alves <palves@redhat.com>
10514 * inferiors.c (get_first_process): New function.
10515 * inferiors.h (get_first_process): New declaration.
10516 * remote-utils.c (read_ptid): Default to the first process in the
10517 list, instead of to the current thread's process.
10519 2015-08-24 Pedro Alves <palves@redhat.com>
10521 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10522 * event-loop.c: Likewise.
10523 * remote-utils.c: Likewise.
10524 * tracepoint.c: Likewise.
10526 2015-08-24 Pedro Alves <palves@redhat.com>
10528 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10531 2015-08-21 Pedro Alves <palves@redhat.com>
10533 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10534 instead of literal 1.
10536 2015-08-21 Pedro Alves <palves@redhat.com>
10538 * tdesc.c (default_description): Explicitly zero-initialize.
10540 2015-08-21 Pedro Alves <palves@redhat.com>
10543 * inferiors.c (remove_thread): Discard any pending stop reply for
10545 * server.c (remove_all_on_match_pid): Rename to ...
10546 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10548 (discard_queued_stop_replies): Change parameter to a ptid. Now
10550 (handle_v_kill, kill_inferior_callback, captured_main)
10551 (process_serial_event): Adjust.
10552 * server.h (discard_queued_stop_replies): Declare.
10554 2015-08-21 Pedro Alves <palves@redhat.com>
10556 * linux-low.c (wait_for_sigstop): Always switch to no thread
10557 selected if the previously current thread dies.
10558 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10559 process instead of the current thread's.
10560 * remote-utils.c (input_interrupt): Don't check if there's no
10562 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10563 current thread to the general thread fails, error out.
10564 (handle_qxfer_auxv, handle_qxfer_libraries)
10565 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10566 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10567 (handle_query): Check if there's a thread selected instead of
10568 checking whether there's any thread in the thread list.
10569 (handle_qxfer_threads, handle_qxfer_btrace)
10570 (handle_qxfer_btrace_conf): Don't error out early if there's no
10571 thread in the thread list.
10572 (handle_v_cont, myresume): Don't set the current thread to the
10574 (process_serial_event) <Hg handling>: Also set thread_id if the
10575 previous general thread is still alive.
10576 (process_serial_event) <g/G handling>: If setting the current
10577 thread to the general thread fails, error out.
10578 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10579 thread's lwp instead of the current thread's.
10580 * target.c (set_desired_thread): If the desired thread was not
10581 found, leave the current thread pointing to NULL. Return an int
10582 (boolean) indicating success.
10583 * target.h (set_desired_thread): Change return type to int.
10585 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10587 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10588 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10590 (ps_get_thread_area): New function.
10592 2015-08-19 Gary Benson <gbenson@redhat.com>
10594 * hostio.c (handle_pread): Do not attempt to read more data
10595 than hostio_reply_with_data can fit in a packet.
10597 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10599 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10601 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10603 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10605 2015-08-06 Pedro Alves <palves@redhat.com>
10607 * tracepoint.c (expr_eval_result): Now an int.
10609 2015-08-06 Pedro Alves <palves@redhat.com>
10611 * gdbthread.h (struct regcache): Forward declare.
10612 (struct thread_info) <regcache_data>: Now a struct regcache
10614 * inferiors.c (inferior_regcache_data)
10615 (set_inferior_regcache_data): Now work with struct regcache
10617 * inferiors.h (struct regcache): Forward declare.
10618 (inferior_regcache_data, set_inferior_regcache_data): Now work
10619 with struct regcache pointers.
10620 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10621 (free_register_cache_thread): Remove struct regcache pointer
10624 2015-08-06 Pedro Alves <palves@redhat.com>
10626 * server.c (captured_main): On error, print the exception message
10627 to stderr, and if run_once is set, throw a quit.
10629 2015-08-06 Pedro Alves <palves@redhat.com>
10631 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10632 the current thread.
10634 2015-08-06 Pedro Alves <palves@redhat.com>
10636 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10637 reading beyond the passed in buffer length.
10639 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10641 * tracepoint.c (symbol_list) <required>: Remove.
10643 2015-08-06 Pedro Alves <palves@redhat.com>
10645 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10646 count if stopping and suspending threads.
10647 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10648 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10649 (linux_detach): Complete an ongoing step-over.
10650 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10652 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10653 (linux_wait_1): If passing a signal to the inferior after
10654 finishing a step-over, unsuspend and re-resume all lwps. If we
10655 see a single-step event but the thread should be continuing, don't
10656 pass the trap to gdb.
10657 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10658 internal_error instead of gdb_assert.
10659 (enqueue_pending_signal): New function.
10660 (check_ptrace_stopped_lwp_gone): Add debug output.
10661 (start_step_over): Use internal_error instead of gdb_assert.
10662 (complete_ongoing_step_over): New function.
10663 (linux_resume_one_thread): Don't resume a suspended thread.
10664 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10667 2015-08-06 Pedro Alves <palves@redhat.com>
10669 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10670 (linux_thread_alive): Use lwp_is_marked_dead.
10671 (extended_event_reported): Delete.
10672 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10673 instead of extended_event_reported.
10674 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10676 (lwp_is_marked_dead): New function.
10677 (lwp_running): Use lwp_is_marked_dead.
10678 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10681 2015-08-06 Pedro Alves <palves@redhat.com>
10683 * linux-low.c (linux_wait_1): Move fork event output out of the
10684 !report_to_gdb check. Pass event_child->waitstatus to
10685 target_waitstatus_to_string instead of ourstatus.
10687 2015-08-04 Yao Qi <yao.qi@linaro.org>
10689 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10690 if current_thread is 32 bit.
10692 2015-08-04 Yao Qi <yao.qi@linaro.org>
10694 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10695 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10696 * server.c (extended_protocol): Remove "static".
10697 * server.h (extended_protocol): Declare it.
10699 2015-08-04 Yao Qi <yao.qi@linaro.org>
10701 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10702 both aarch64 and aarch32.
10703 (aarch64_set_pc): Likewise.
10705 2015-08-04 Yao Qi <yao.qi@linaro.org>
10707 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10708 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10709 arm-with-neon.xml to srv_xmlfiles.
10710 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10711 (is_64bit_tdesc): New function.
10712 (aarch64_linux_read_description): New function.
10713 (aarch64_arch_setup): Call aarch64_linux_read_description.
10714 (regs_info): Rename to regs_info_aarch64.
10715 (aarch64_regs_info): Return right regs_info.
10716 (initialize_low_arch): Call initialize_low_arch_aarch32.
10718 2015-08-04 Yao Qi <yao.qi@linaro.org>
10720 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10721 * linux-aarch32-low.c: New file.
10722 * linux-aarch32-low.h: New file.
10723 * linux-arm-low.c (arm_fill_gregset): Move it to
10724 linux-aarch32-low.c.
10725 (arm_store_gregset): Likewise.
10726 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10727 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10728 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10729 (regs_info): Rename to regs_info_arm.
10730 (arm_regs_info): Return regs_info_aarch32 if
10731 have_ptrace_getregset is 1 and target description is
10732 arm_with_neon or arm_with_vfpv3.
10733 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10734 Call initialize_low_arch_aarch32 instead.
10736 2015-08-04 Yao Qi <yao.qi@linaro.org>
10738 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10739 * linux-low.c: ... here.
10740 * linux-low.h (have_ptrace_getregset): Declare it.
10742 2015-08-04 Pedro Alves <palves@redhat.com>
10744 * thread-db.c (struct thread_db): Use new typedefs.
10745 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10747 (disable_thread_event_reporting): Cast result of dlsym to
10748 destination function pointer type.
10749 (thread_db_mourn): Use td_ta_delete_ftype.
10751 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10753 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10755 (CDX_BREAKPOINT): Define for R2.
10756 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10757 (the_low_target): Add comments.
10759 2015-07-30 Yao Qi <yao.qi@linaro.org>
10761 * linux-arm-low.c (arm_hwcap): Remove it.
10762 (arm_read_description): New local variable arm_hwcap. Don't
10763 set arm_hwcap to zero.
10765 2015-07-30 Yao Qi <yao.qi@linaro.org>
10767 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10768 Use regcache->tdesc instead.
10769 (arm_store_wmmxregset): Likewise.
10770 (arm_fill_vfpregset): Likewise.
10771 (arm_store_vfpregset): Likewise.
10773 2015-07-30 Yao Qi <yao.qi@linaro.org>
10775 * linux-arm-low.c: Include arch/arm.h.
10776 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10777 (arm_store_gregset): Likewise.
10779 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10781 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10782 ptrace's 4th parameter.
10784 2015-07-27 Yao Qi <yao.qi@linaro.org>
10786 * configure.srv (case aarch64*-*-linux*): Don't set
10789 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10791 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10793 * linux-arm-low.c: Likewise.
10794 * linux-cris-low.c: Likewise.
10795 * linux-crisv32-low.c: Likewise.
10796 * linux-low.c: Likewise.
10797 * linux-m68k-low.c: Likewise.
10798 * linux-mips-low.c: Likewise.
10799 * linux-nios2-low.c: Likewise.
10800 * linux-s390-low.c: Likewise.
10801 * linux-sparc-low.c: Likewise.
10802 * linux-tic6x-low.c: Likewise.
10803 * linux-tile-low.c: Likewise.
10804 * linux-x86-low.c: Likewise.
10806 2015-07-24 Pedro Alves <palves@redhat.com>
10808 * config.in: Regenerate.
10809 * configure: Regenerate.
10811 2015-07-24 Pedro Alves <palves@redhat.com>
10813 * acinclude.m4: Include ../ptrace.m4.
10814 * configure.ac: Call GDB_AC_PTRACE.
10815 * config.in, configure: Regenerate.
10817 2015-07-24 Yao Qi <yao.qi@linaro.org>
10819 * linux-low.c (linux_create_inferior): Remove setting to
10820 proc->priv->new_inferior.
10821 (linux_attach): Likewise.
10822 (linux_low_filter_event): Likewise.
10823 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10825 2015-07-24 Yao Qi <yao.qi@linaro.org>
10827 * linux-low.c (linux_arch_setup): New function.
10828 (linux_low_filter_event): If proc->tdesc is NULL and
10829 proc->attached is true, call the_low_target.arch_setup.
10830 Otherwise, keep status pending, and return.
10831 (linux_resume_one_lwp_throw): Don't call get_pc if
10832 thread->while_stepping isn't NULL. Don't call
10833 get_thread_regcache if proc->tdesc is NULL.
10834 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10835 (linux_target_ops): Install arch_setup.
10836 * server.c (start_inferior): Call the_target->arch_setup.
10837 * target.h (struct target_ops) <arch_setup>: New field.
10838 (target_arch_setup): New marco.
10839 * lynx-low.c (lynx_target_ops): Update.
10840 * nto-low.c (nto_target_ops): Update.
10841 * spu-low.c (spu_target_ops): Update.
10842 * win32-low.c (win32_target_ops): Update.
10844 2015-07-24 Yao Qi <yao.qi@linaro.org>
10846 * linux-low.c (linux_add_process): Don't set
10847 proc->priv->new_inferior.
10848 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10849 (linux_attach): Likewise.
10851 2015-07-24 Yao Qi <yao.qi@linaro.org>
10853 * server.c (start_inferior): Code refactor.
10855 2015-07-24 Yao Qi <yao.qi@linaro.org>
10857 * server.c (process_serial_event): Set general_thread.
10859 2015-07-21 Yao Qi <yao.qi@linaro.org>
10861 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10862 aarch64_linux_get_debug_reg_capacity.
10864 2015-07-17 Yao Qi <yao.qi@linaro.org>
10866 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10867 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10868 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10869 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10870 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10871 (AARCH64_HWP_ALIGNMENT): Likewise.
10872 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10873 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10874 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10875 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10876 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10877 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10878 (struct aarch64_debug_reg_state): Likewise.
10879 (struct arch_lwp_info): Likewise.
10880 (aarch64_align_watchpoint): Likewise.
10881 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10882 (aarch64_watchpoint_length): Likewise.
10883 (aarch64_point_encode_ctrl_reg): Likewise
10884 (aarch64_point_is_aligned): Likewise.
10885 (aarch64_align_watchpoint): Likewise.
10886 (aarch64_linux_set_debug_regs):
10887 (aarch64_dr_state_insert_one_point): Likewise.
10888 (aarch64_dr_state_remove_one_point): Likewise.
10889 (aarch64_handle_breakpoint): Likewise.
10890 (aarch64_handle_aligned_watchpoint): Likewise.
10891 (aarch64_handle_unaligned_watchpoint): Likewise.
10892 (aarch64_handle_watchpoint): Likewise.
10894 2015-07-17 Yao Qi <yao.qi@linaro.org>
10896 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10897 and don't aarch64_get_debug_reg_state. All callers update.
10898 (aarch64_handle_aligned_watchpoint): Likewise.
10899 (aarch64_handle_unaligned_watchpoint): Likewise.
10900 (aarch64_handle_watchpoint): Likewise.
10901 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10902 (aarch64_remove_point): Likewise.
10904 2015-07-17 Yao Qi <yao.qi@linaro.org>
10906 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10908 (aarch64_handle_unaligned_watchpoint): Likewise.
10910 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10912 Revert the previous 3 commits:
10913 Move gdb_regex* to common/
10914 Move linux_find_memory_regions_full & co.
10915 gdbserver build-id attribute generator
10917 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10918 Jan Kratochvil <jan.kratochvil@redhat.com>
10920 gdbserver build-id attribute generator.
10921 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10922 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10923 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10925 (get_dynamic): Use find_pdhr to traverse program headers.
10926 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10927 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10928 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10929 (get_hex_build_id): New.
10930 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10931 to reply XML document.
10933 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10934 Jan Kratochvil <jan.kratochvil@redhat.com>
10936 * target.c: Include target/target-utils.h and fcntl.h.
10937 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10938 (target_fileio_read_stralloc): New functions.
10940 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10942 * Makefile.in (OBS): Add gdb_regex.o.
10943 (gdb_regex.o): New.
10944 * config.in: Rebuilt.
10945 * configure: Rebuilt.
10947 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10948 Jan Kratochvil <jan.kratochvil@redhat.com>
10950 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10951 * Makefile.in (OBS): Add target-utils.o.
10952 (linux-maps.o, target-utils.o): New.
10953 * configure.srv (srv_linux_obj): Add linux-maps.o.
10955 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10957 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10958 function, return 1.
10959 (the_low_target): Install it.
10961 2015-07-14 Pedro Alves <palves@redhat.com>
10963 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10964 Instead, ignore ECHILD, and throw an error for other errnos.
10966 2015-07-10 Pedro Alves <palves@redhat.com>
10968 * event-loop.c (struct callback_event) <data>: Change type to
10969 gdb_client_data instance instead of gdb_client_data pointer.
10970 (append_callback_event): Adjust.
10972 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10974 * linux-aarch64-low.c: Add comments for each linux_target_ops
10975 method. Remove comments already covered in target_ops and
10976 linux_target_ops definitions.
10977 (the_low_target): Add comments for each unimplemented method.
10979 2015-07-09 Yao Qi <yao.qi@linaro.org>
10981 * linux-aarch64-low.c (aarch64_regmap): Remove.
10982 (aarch64_usrregs_info): Remove.
10983 (regs_info): Set field usrregs to NULL.
10985 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10987 * linux-low.c: Include "rsp-low.h"
10988 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10989 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10990 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10991 (handle_btrace_enable_pt): New.
10992 (handle_btrace_general_set): Support "pt".
10993 (handle_btrace_conf_general_set): Support "pt:size".
10995 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10997 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11000 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11002 * linux-aarch64-low.c: Remove comment about endianness.
11003 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11004 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11007 2015-06-24 Gary Benson <gbenson@redhat.com>
11009 * linux-i386-ipa.c (stdint.h): Do not include.
11010 * lynx-i386-low.c (stdint.h): Likewise.
11011 * lynx-ppc-low.c (stdint.h): Likewise.
11012 * mem-break.c (stdint.h): Likewise.
11013 * thread-db.c (stdint.h): Likewise.
11014 * tracepoint.c (stdint.h): Likewise.
11015 * win32-low.c (stdint.h): Likewise.
11017 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11019 * server.c (write_qxfer_response): Update call to
11020 remote_escape_output.
11022 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11023 Jan Kratochvil <jan.kratochvil@redhat.com>
11025 Merge multiple hex conversions.
11026 * gdbreplay.c (tohex): Rename to 'fromhex'.
11027 (logchar): Use fromhex.
11029 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11031 * server.c (handle_qxfer_libraries): Set `version' attribute for
11034 2015-06-10 Gary Benson <gbenson@redhat.com>
11036 * target.h (struct target_ops) <multifs_open>: New field.
11037 <multifs_unlink>: Likewise.
11038 <multifs_readlink>: Likewise.
11039 * linux-low.c (nat/linux-namespaces.h): New include.
11040 (linux_target_ops): Initialize the_target->multifs_open,
11041 the_target->multifs_unlink and the_target->multifs_readlink.
11042 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11043 * hostio.c (hostio_fs_pid): New static variable.
11044 (hostio_handle_new_gdb_connection): New function.
11045 (handle_setfs): Likewise.
11046 (handle_open): Use the_target->multifs_open as appropriate.
11047 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11048 (handle_readlink): Use the_target->multifs_readlink as
11050 (handle_vFile): Handle vFile:setfs packets.
11051 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11052 after target_handle_new_gdb_connection.
11054 2015-06-10 Gary Benson <gbenson@redhat.com>
11056 * configure.ac (AC_CHECK_FUNCS): Add setns.
11057 * config.in: Regenerate.
11058 * configure: Likewise.
11059 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11060 (linux-namespaces.o): New rule.
11061 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11063 2015-06-09 Gary Benson <gbenson@redhat.com>
11065 * hostio.c (handle_open): Process mode argument with
11066 fileio_to_host_mode.
11068 2015-06-01 Yao Qi <yao.qi@linaro.org>
11070 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11071 * linux-x86-low.c: Likewise.
11073 2015-05-28 Don Breazeal <donb@codesourcery.com>
11075 * linux-low.c (handle_extended_wait): Initialize
11076 thread_info.last_resume_kind for new fork children.
11078 2015-05-15 Pedro Alves <palves@redhat.com>
11080 * target.h (target_handle_new_gdb_connection): Rewrite using if
11081 wrapped in do/while.
11083 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11085 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11086 * configure, config.in: Regenerate.
11087 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11090 2015-05-12 Don Breazeal <donb@codesourcery.com>
11092 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11093 PTRACE_EVENT_VFORK_DONE.
11094 (linux_low_ptrace_options, extended_event_reported): Add vfork
11096 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11097 and "vforkdone" for RSP 'T' Stop Reply Packet.
11098 * server.h (report_vfork_events): Declare
11101 2015-05-12 Don Breazeal <donb@codesourcery.com>
11103 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11104 (the_low_target) <new_fork>: Initialize new member.
11105 * linux-arm-low.c (arm_new_fork): New function.
11106 (the_low_target) <new_fork>: Initialize new member.
11107 * linux-low.c (handle_extended_wait): Call new target function
11109 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11110 * linux-mips-low.c (mips_add_watchpoint): New function
11111 extracted from mips_insert_point.
11112 (the_low_target) <new_fork>: Initialize new member.
11113 (mips_linux_new_fork): New function.
11114 (mips_insert_point): Call mips_add_watchpoint.
11115 * linux-x86-low.c (x86_linux_new_fork): New function.
11116 (the_low_target) <new_fork>: Initialize new member.
11118 2015-05-12 Don Breazeal <donb@codesourcery.com>
11120 * linux-low.c (handle_extended_wait): Implement return value,
11121 rename argument 'event_child' to 'event_lwp', handle
11122 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11123 (linux_low_ptrace_options): New function.
11124 (linux_low_filter_event): Call linux_low_ptrace_options,
11125 use different argument fo linux_enable_event_reporting,
11126 use return value from handle_extended_wait.
11127 (extended_event_reported): New function.
11128 (linux_wait_1): Call extended_event_reported and set
11129 status to report fork events.
11130 (linux_write_memory): Add pid to debug message.
11131 (reset_lwp_ptrace_options_callback): New function.
11132 (linux_handle_new_gdb_connection): New function.
11133 (linux_target_ops): Initialize new structure member.
11134 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11135 * lynx-low.c: Initialize new structure member.
11136 * remote-utils.c (prepare_resume_reply): Implement stop reason
11137 "fork" for "T" stop message.
11138 * server.c (handle_query): Call handle_new_gdb_connection.
11139 * server.h (report_fork_events): Declare global flag.
11140 * target.h (struct target_ops) <handle_new_gdb_connection>:
11142 (target_handle_new_gdb_connection): New macro.
11143 * win32-low.c: Initialize new structure member.
11145 2015-05-12 Don Breazeal <donb@codesourcery.com>
11147 * mem-break.c (APPEND_TO_LIST): Define macro.
11148 (clone_agent_expr): New function.
11149 (clone_one_breakpoint): New function.
11150 (clone_all_breakpoints): New function.
11151 * mem-break.h: Declare new functions.
11153 2015-05-12 Don Breazeal <donb@codesourcery.com>
11155 * linux-low.c (linux_supports_fork_events): New function.
11156 (linux_supports_vfork_events): New function.
11157 (linux_target_ops): Initialize new structure members.
11158 (initialize_low): Call linux_check_ptrace_features.
11159 * lynx-low.c (lynx_target_ops): Initialize new structure
11161 * server.c (report_fork_events, report_vfork_events):
11163 (handle_query): Add new features to qSupported packet and
11165 (captured_main): Initialize new global variables.
11166 * target.h (struct target_ops) <supports_fork_events>:
11168 <supports_vfork_events>: New member.
11169 (target_supports_fork_events): New macro.
11170 (target_supports_vfork_events): New macro.
11171 * win32-low.c (win32_target_ops): Initialize new structure
11174 2015-05-12 Gary Benson <gbenson@redhat.com>
11176 * server.c (handle_qxfer_exec_file): Use current process
11179 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11181 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11182 Remove HAVE_PTRACE_GETREGS conditionals.
11183 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11184 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11186 2015-05-08 Yao Qi <yao.qi@linaro.org>
11188 * linux-low.c (linux_supports_conditional_breakpoints): New
11190 (linux_target_ops): Install new target method.
11191 * lynx-low.c (lynx_target_ops): Install NULL hook for
11192 supports_conditional_breakpoints.
11193 * nto-low.c (nto_target_ops): Likewise.
11194 * spu-low.c (spu_target_ops): Likewise.
11195 * win32-low.c (win32_target_ops): Likewise.
11196 * server.c (handle_query): Check
11197 target_supports_conditional_breakpoints.
11198 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11200 (target_supports_conditional_breakpoints): New macro.
11202 2015-05-06 Pedro Alves <palves@redhat.com>
11205 * server.c (start_inferior): If the process exits, mourn it.
11207 2015-04-21 Gary Benson <gbenson@redhat.com>
11209 * hostio.c (fileio_open_flags_to_host): Factored out to
11210 fileio_to_host_openflags in common/fileio.c. Single use
11213 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11215 * linux-xtensa-low.c (xtensa_fill_gregset)
11216 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11219 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11221 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11222 (regs_info): Replace usrregs pointer with NULL.
11224 2015-04-17 Gary Benson <gbenson@redhat.com>
11226 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11227 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11228 * server.c (handle_qxfer_exec_file): New function.
11229 (qxfer_packets): Add exec-file entry.
11230 (handle_query): Report qXfer:exec-file:read as supported packet.
11232 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11234 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11236 2015-04-09 Gary Benson <gbenson@redhat.com>
11238 * hostio-errno.c (errno_to_fileio_error): Remove function.
11239 Update caller to use remote_fileio_to_fio_error.
11241 2015-04-09 Yao Qi <yao.qi@linaro.org>
11243 * linux-low.c (linux_insert_point): Call
11244 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11245 (linux_remove_point): Call remove_memory_breakpoint if type is
11247 * linux-x86-low.c (x86_insert_point): Don't call
11248 insert_memory_breakpoint.
11249 (x86_remove_point): Don't call remove_memory_breakpoint.
11251 2015-04-01 Pedro Alves <palves@redhat.com>
11252 Cleber Rosa <crosa@redhat.com>
11254 * server.c (gdbserver_usage): Reorganize and extend the usage
11257 2015-03-24 Pedro Alves <palves@redhat.com>
11259 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11260 output. Also dump TRAP_TRACE.
11261 (linux_low_filter_event): In debug output, distinguish a
11262 resume_stop SIGSTOP from a delayed SIGSTOP.
11264 2015-03-24 Gary Benson <gbenson@redhat.com>
11266 * linux-x86-low.c (x86_linux_new_thread): Moved to
11268 (x86_linux_prepare_to_resume): Likewise.
11270 2015-03-24 Gary Benson <gbenson@redhat.com>
11272 * Makefile.in (x86-linux-dregs.o): New rule.
11273 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11274 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11275 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11276 (x86_linux_dr_get): Likewise.
11277 (x86_linux_dr_set): Likewise.
11278 (update_debug_registers_callback): Likewise.
11279 (x86_linux_dr_set_addr): Likewise.
11280 (x86_linux_dr_get_addr): Likewise.
11281 (x86_linux_dr_set_control): Likewise.
11282 (x86_linux_dr_get_control): Likewise.
11283 (x86_linux_dr_get_status): Likewise.
11284 (x86_linux_update_debug_registers): Likewise.
11286 2015-03-24 Gary Benson <gbenson@redhat.com>
11288 * linux-x86-low.c (x86_linux_update_debug_registers):
11289 New function, factored out from...
11290 (x86_linux_prepare_to_resume): ...this.
11292 2015-03-24 Gary Benson <gbenson@redhat.com>
11294 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11295 (x86_linux_dr_set): Likewise.
11296 (update_debug_registers_callback): Likewise.
11297 (x86_linux_dr_set_addr): Likewise.
11298 (x86_linux_dr_get_addr): Likewise.
11299 (x86_linux_dr_set_control): Likewise.
11300 (x86_linux_dr_get_control): Likewise.
11301 (x86_linux_dr_get_status): Likewise.
11302 (x86_linux_prepare_to_resume): Likewise.
11304 2015-03-24 Gary Benson <gbenson@redhat.com>
11306 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11307 Use perror_with_name. Pass string through gettext.
11308 (x86_linux_dr_set): Likewise.
11310 2015-03-24 Gary Benson <gbenson@redhat.com>
11312 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11313 (x86_linux_dr_set_addr): ...this.
11314 (x86_dr_low_get_addr): Rename to...
11315 (x86_linux_dr_get_addr): ...this.
11316 (x86_dr_low_set_control): Rename to...
11317 (x86_linux_dr_set_control): ...this.
11318 (x86_dr_low_get_control): Rename to...
11319 (x86_linux_dr_get_control): ...this.
11320 (x86_dr_low_get_status): Rename to...
11321 (x86_linux_dr_get_status): ...this.
11322 (x86_dr_low): Update with new function names.
11324 2015-03-24 Gary Benson <gbenson@redhat.com>
11326 * Makefile.in (x86-linux.o): New rule.
11327 * configure.srv: Add x86-linux.o to relevant targets.
11328 * linux-low.c (lwp_set_arch_private_info): New function.
11329 (lwp_arch_private_info): Likewise.
11330 * linux-x86-low.c: Include nat/x86-linux.h.
11331 (arch_lwp_info): Removed structure.
11332 (update_debug_registers_callback):
11333 Use lwp_set_debug_registers_changed.
11334 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11335 and lwp_set_debug_registers_changed.
11336 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11338 2015-03-24 Gary Benson <gbenson@redhat.com>
11340 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11341 * linux-arm-low.c (arm_new_thread): Likewise.
11342 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11343 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11344 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11345 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11347 2015-03-24 Gary Benson <gbenson@redhat.com>
11349 * linux-low.c (ptid_of_lwp): New function.
11350 (lwp_is_stopped): Likewise.
11351 (lwp_stop_reason): Likewise.
11352 * linux-x86-low.c (update_debug_registers_callback):
11353 Use lwp_is_stopped.
11354 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11357 2015-03-24 Gary Benson <gbenson@redhat.com>
11359 * linux-low.h (linux_stop_lwp): Remove declaration.
11361 2015-03-24 Gary Benson <gbenson@redhat.com>
11363 * linux-low.h: Include nat/linux-nat.h.
11364 * linux-low.c (iterate_over_lwps_args): New structure.
11365 (iterate_over_lwps_filter): New function.
11366 (iterate_over_lwps): Likewise.
11367 * linux-x86-low.c (update_debug_registers_callback):
11368 Update signature to what iterate_over_lwps expects.
11369 Remove PID check that iterate_over_lwps now performs.
11370 (x86_dr_low_set_addr): Use iterate_over_lwps.
11371 (x86_dr_low_set_control): Likewise.
11373 2015-03-24 Gary Benson <gbenson@redhat.com>
11375 * linux-x86-low.c (x86_debug_reg_state): New function.
11376 (x86_linux_prepare_to_resume): Use the above.
11378 2015-03-24 Gary Benson <gbenson@redhat.com>
11380 * linux-low.c (current_lwp_ptid): New function.
11381 * linux-x86-low.c: Include nat/linux-nat.h.
11382 (x86_dr_low_get_addr): Use current_lwp_ptid.
11383 (x86_dr_low_get_control): Likewise.
11384 (x86_dr_low_get_status): Likewise.
11386 2015-03-20 Pedro Alves <palves@redhat.com>
11388 * tracepoint.c (cmd_qtstatus): Make "str" const.
11390 2015-03-20 Pedro Alves <palves@redhat.com>
11392 * server.c (handle_general_set): Make "req_str" const.
11394 2015-03-19 Pedro Alves <palves@redhat.com>
11396 * linux-low.c (linux_resume_one_lwp): Rename to ...
11397 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11398 instead call perror_with_name.
11399 (check_ptrace_stopped_lwp_gone): New function.
11400 (linux_resume_one_lwp): Reimplement as wrapper around
11401 linux_resume_one_lwp_throw that swallows errors if the LWP is
11404 2015-03-19 Pedro Alves <palves@redhat.com>
11406 * linux-low.c (count_events_callback, select_event_lwp_callback):
11407 No longer check whether the thread has resume_stop as last resume
11410 2015-03-19 Pedro Alves <palves@redhat.com>
11412 * linux-low.c (count_events_callback, select_event_lwp_callback):
11413 Use the lwp's status_pending_p field, not the thread's.
11415 2015-03-19 Pedro Alves <palves@redhat.com>
11417 * linux-low.c (select_event_lwp_callback): Update comments to
11418 no longer mention SIGTRAP.
11420 2015-03-18 Gary Benson <gbenson@redhat.com>
11422 * server.c (handle_query): Do not report vFile:fstat as supported.
11424 2015-03-11 Gary Benson <gbenson@redhat.com>
11426 * hostio.c (sys/types.h): New include.
11427 (sys/stat.h): Likewise.
11428 (common-remote-fileio.h): Likewise.
11429 (handle_fstat): New function.
11430 (handle_vFile): Handle vFile:fstat packets.
11432 2015-03-11 Gary Benson <gbenson@redhat.com>
11434 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11435 struct stat.st_blocks and struct stat.st_blksize.
11436 * configure: Regenerate.
11437 * config.in: Likewise.
11438 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11439 (OBS): Add common-remote-fileio.o.
11440 (common-remote-fileio.o): New rule.
11442 2015-03-09 Pedro Alves <palves@redhat.com>
11444 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11445 'struct sockaddr' pointer in 'accept' call.
11447 2015-03-09 Pedro Alves <palves@redhat.com>
11450 2015-03-07 Pedro Alves <palves@redhat.com>
11451 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11452 or <winsock2.h> here. Instead include "gdb_socket.h".
11453 (remote_open): Use union gdb_sockaddr_u.
11454 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11455 or <winsock2.h> here. Instead include "gdb_socket.h".
11456 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11457 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11459 (init_named_socket, gdb_agent_helper_thread): Use union
11462 2015-03-07 Pedro Alves <palves@redhat.com>
11464 * configure.ac (build_warnings): Move
11465 -Wdeclaration-after-statement to the C-specific set.
11466 * configure: Regenerate.
11468 2015-03-07 Pedro Alves <palves@redhat.com>
11470 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11471 or <winsock2.h> here. Instead include "gdb_socket.h".
11472 (remote_open): Use union gdb_sockaddr_u.
11473 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11474 or <winsock2.h> here. Instead include "gdb_socket.h".
11475 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11476 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11478 (init_named_socket, gdb_agent_helper_thread): Use union
11481 2015-03-07 Pedro Alves <palves@redhat.com>
11483 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11486 2015-03-06 Yao Qi <yao.qi@linaro.org>
11488 * linux-aarch64-low.c (aarch64_insert_point): Use
11489 show_debug_regs as a boolean.
11490 (aarch64_remove_point): Likewise.
11492 2015-03-05 Pedro Alves <palves@redhat.com>
11494 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11495 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11496 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11497 * nto-low.c (nto_target_ops): Likewise.
11498 * spu-low.c (spu_target_ops): Likewise.
11499 * win32-low.c (win32_target_ops): Likewise.
11501 2015-03-04 Pedro Alves <palves@redhat.com>
11503 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11504 Decide whether a breakpoint triggered based on the SIGTRAP's
11506 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11507 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11508 (linux_low_filter_event): Check for breakpoints before checking
11510 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11512 (linux_stopped_by_sw_breakpoint)
11513 (linux_supports_stopped_by_sw_breakpoint)
11514 (linux_stopped_by_hw_breakpoint)
11515 (linux_supports_stopped_by_hw_breakpoint): New functions.
11516 (linux_target_ops): Install new target methods.
11518 2015-03-04 Pedro Alves <palves@redhat.com>
11520 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11521 * server.c (swbreak_feature, hwbreak_feature): New globals.
11522 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11523 (captured_main): Clear swbreak_feature and hwbreak_feature.
11524 * server.h (swbreak_feature, hwbreak_feature): Declare.
11525 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11526 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11527 supports_stopped_by_hw_breakpoint>: New fields.
11528 (target_supports_stopped_by_sw_breakpoint)
11529 (target_stopped_by_sw_breakpoint)
11530 (target_supports_stopped_by_hw_breakpoint)
11531 (target_stopped_by_hw_breakpoint): Declare.
11533 2015-03-04 Pedro Alves <palves@redhat.com>
11535 enum lwp_stop_reason -> enum target_stop_reason
11536 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11537 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11538 (linux_wait_1, stuck_in_jump_pad_callback)
11539 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11540 (linux_stopped_by_watchpoint):
11541 * linux-low.h (enum lwp_stop_reason): Delete.
11542 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11543 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11545 2015-03-04 Yao Qi <yao.qi@linaro.org>
11547 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11549 2015-03-03 Gary Benson <gbenson@redhat.com>
11551 * hostio.c (handle_vFile): Fix prefix lengths.
11553 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11555 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11558 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11560 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11561 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11562 (clean): Add "rm -f" for above C files.
11563 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11564 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11565 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11566 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11567 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11568 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11569 (init_registers_s390x_vx_linux64)
11570 (init_registers_s390x_tevx_linux64)
11571 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11572 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11574 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11575 (s390_store_vxrs_high): New functions.
11576 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11578 (s390_arch_setup): Add logic for selecting one of the new target
11579 descriptions. Activate the new vector regsets if applicable.
11580 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11581 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11582 and init_registers_s390x_tevx_linux64.
11584 2015-03-01 Pedro Alves <palves@redhat.com>
11586 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11589 2015-02-27 Pedro Alves <palves@redhat.com>
11591 * linux-x86-low.c (u_debugreg_offset): New function.
11592 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11594 2015-02-27 Pedro Alves <palves@redhat.com>
11596 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11597 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11598 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11599 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11600 (ps_lsetfpregs, ps_getpid)
11601 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11602 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11603 (ps_lsetxregs, ps_plog): Declare.
11605 2015-02-27 Pedro Alves <palves@redhat.com>
11607 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11608 IP_AGENT_EXPORT_FUNC.
11609 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11610 IP_AGENT_EXPORT_FUNC.
11611 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11612 (IP_AGENT_EXPORT): Delete.
11613 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11614 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11615 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11616 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11617 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11618 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11619 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11620 (traceframe_read_count, traceframe_write_count)
11621 (traceframes_created, trace_state_variables, get_raw_reg)
11622 (get_trace_state_variable_value, set_trace_state_variable_value)
11623 (ust_loaded, helper_thread_id, cmd_buf): Use
11624 IPA_SYM_EXPORTED_NAME.
11625 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11626 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11627 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11628 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11629 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11630 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11631 EXTERN_C_PUSH/EXTERN_C_POP.
11632 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11633 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11634 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11635 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11636 (traceframe_write_count, traceframe_read_count)
11637 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11638 (about_to_request_buffer_space, get_trace_state_variable_value)
11639 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11640 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11641 EXTERN_C_PUSH/EXTERN_C_POP.
11642 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11643 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11644 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11645 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11646 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11647 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11648 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11649 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11651 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11652 (IP_AGENT_EXPORT_VAR_DECL): Define.
11653 (tracing): Declare.
11654 (gdb_agent_get_raw_reg): Declare.
11656 2015-02-27 Tom Tromey <tromey@redhat.com>
11657 Pedro Alves <palves@redhat.com>
11659 Rename symbols whose names are reserved C++ keywords throughout.
11661 2015-02-27 Pedro Alves <palves@redhat.com>
11663 * Makefile.in (COMPILER): New, get it from autoconf.
11664 (CXX): Get from autoconf instead.
11665 (COMPILE.pre): Use COMPILER.
11666 (CC-LD): Rename to ...
11667 (CC_LD): ... this. Use COMPILER.
11668 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11669 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11670 * acinclude.m4: Include build-with-cxx.m4.
11671 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11672 Disable -Werror by default if building in C++ mode.
11673 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11674 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11675 the C++ compiler. Save/restore CXXFLAGS too.
11676 * configure: Regenerate.
11678 2015-02-27 Pedro Alves <palves@redhat.com>
11680 * acinclude.m4: Include libiberty.m4.
11681 * configure.ac: Call libiberty_INIT.
11682 * config.in, configure: Regenerate.
11684 2015-02-26 Pedro Alves <palves@redhat.com>
11686 * linux-low.c (linux_wait_1): When incrementing the PC past a
11687 program breakpoint always use the_low_target.breakpoint_len as
11688 increment, rather than the maximum between that and
11689 the_low_target.decr_pc_after_break.
11691 2015-02-23 Pedro Alves <palves@redhat.com>
11693 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11694 thread was doing a step-over; always adjust the PC if
11695 we stepped over a permanent breakpoint.
11696 (linux_wait_1): If we stepped over breakpoint that was on top of a
11697 permanent breakpoint, manually advance the PC past it.
11699 2015-02-23 Pedro Alves <palves@redhat.com>
11701 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11703 (x86_fill_gregset, x86_store_gregset): Use it when handling
11706 2015-02-20 Pedro Alves <palves@redhat.com>
11708 * thread-db.c: Include "nat/linux-procfs.h".
11709 (thread_db_init): Skip listing new threads if the kernel supports
11710 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11712 2015-02-20 Pedro Alves <palves@redhat.com>
11714 * linux-low.c (status_pending_p_callback): Use ptid_match.
11716 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11718 PR breakpoints/16812
11719 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11720 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11721 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11723 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11725 PR breakpoints/15956
11726 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11728 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11730 * linux-low.c (linux_low_btrace_conf): Print size.
11731 * server.c (handle_btrace_conf_general_set): New.
11732 (hanle_general_set): Call handle_btrace_conf_general_set.
11733 (handle_query): Report Qbtrace-conf:bts:size as supported.
11735 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11737 * linux-low.c (linux_low_enable_btrace): Update parameters.
11738 (linux_low_btrace_conf): New.
11739 (linux_target_ops)<to_btrace_conf>: Initialize.
11740 * server.c (current_btrace_conf): New.
11741 (handle_btrace_enable): Rename to ...
11742 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11743 to target_enable_btrace. Update comment. Update users.
11744 (handle_qxfer_btrace_conf): New.
11745 (qxfer_packets): Add btrace-conf entry.
11746 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11747 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11748 (target_ops)<read_btrace_conf>: New.
11749 (target_enable_btrace): Update parameters.
11750 (target_read_btrace_conf): New.
11752 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11754 * server.c (handle_btrace_general_set): Remove call to
11755 target_supports_btrace.
11756 (supported_btrace_packets): New.
11757 (handle_query): Call supported_btrace_packets.
11758 * target.h: include btrace-common.h.
11759 (btrace_target_info): Removed.
11760 (supports_btrace, target_supports_btrace): Update parameters.
11762 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11764 * Makefile.in (SFILES): Add common/btrace-common.c.
11765 (OBS): Add common/btrace-common.o.
11766 (btrace-common.o): Add build rules.
11767 * linux-low: Include btrace-common.h.
11768 (linux_low_read_btrace): Use struct btrace_data. Call
11769 btrace_data_init and btrace_data_fini.
11771 2015-02-06 Pedro Alves <palves@redhat.com>
11773 * thread-db.c (find_new_threads_callback): Add debug output.
11775 2015-02-04 Pedro Alves <palves@redhat.com>
11777 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11778 (resume_stopped_resumed_lwps): New function.
11779 (linux_wait_for_event_filtered): Use it.
11781 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11783 * Makefile.in (SFILES): Add linux-personality.c.
11784 (linux-personality.o): New rule.
11785 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11786 list of objects to be built.
11787 * linux-low.c: Include nat/linux-personality.h.
11788 (linux_create_inferior): Remove code to disable address space
11789 randomization (moved to ../nat/linux-personality.c). Create
11790 cleanup to disable address space randomization.
11792 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11794 * Makefile.in (posix-strerror.o): New rule.
11795 (mingw-strerror.o): Likewise.
11796 * configure: Regenerated.
11797 * configure.ac: Source file ../common/common.host. Initialize new
11798 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11800 2015-01-14 Yao Qi <yao@codesourcery.com>
11802 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11803 (ppc-linux.o): New rule.
11804 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11805 * configure.ac: AC_CHECK_FUNCS(getauxval).
11806 * config.in: Re-generated.
11807 * configure: Re-generated.
11808 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11809 ppc64_64bit_inferior_p
11811 2015-01-14 Yao Qi <yao@codesourcery.com>
11813 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11814 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11815 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11816 (PT_ORIG_R3, PT_TRAP): Likewise.
11817 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11818 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11819 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11821 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11823 * i387-fp.c (i387_cache_to_xsave): In look over
11824 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11825 zmmh_low_space field by use of zmmh_high_space.
11827 2015-01-09 Pedro Alves <palves@redhat.com>
11829 * linux-low.c (step_over_bkpt): Move higher up in the file.
11830 (handle_extended_wait): Don't store the stop_pc here.
11831 (get_stop_pc): Adjust comments and rename to ...
11832 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11833 stopped for a software breakpoint or hardware breakpoint.
11834 (thread_still_has_status_pending_p): New function.
11835 (status_pending_p_callback): Use
11836 thread_still_has_status_pending_p. If the event is no longer
11837 interesting, resume the LWP.
11838 (handle_tracepoints): Add assert.
11839 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11840 (wstatus_maybe_breakpoint): New function.
11841 (cancel_breakpoint): Delete function.
11842 (check_stopped_by_watchpoint): New function, factored out from
11843 linux_low_filter_event.
11844 (lp_status_maybe_breakpoint): Delete function.
11845 (linux_low_filter_event): Remove filter_ptid argument.
11846 Leave thread group exits pending here. Store the LWP's stop PC.
11847 Always leave events pending.
11848 (linux_wait_for_event_filtered): Pull all events out of the
11849 kernel, and leave them all pending.
11850 (count_events_callback, select_event_lwp_callback): Consider all
11852 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11853 (select_event_lwp): Only give preference to the stepping LWP in
11854 all-stop mode. Adjust comments.
11855 (ignore_event): New function.
11856 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11857 references to cancel_breakpoints. Adjust to renames. Also give
11858 equal priority to all LWPs that have had events in non-stop mode.
11859 If reporting a software breakpoint event, unadjust the LWP's PC.
11860 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11861 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11863 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11864 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11865 (linux_stopped_by_watchpoint): Adjust.
11866 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11867 * linux-low.h (enum lwp_stop_reason): New.
11868 (struct lwp_info) <stop_pc>: Adjust comment.
11869 <stopped_by_watchpoint>: Delete field.
11870 <stop_reason>: New field.
11871 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11872 * mem-break.c (software_breakpoint_inserted_here)
11873 (hardware_breakpoint_inserted_here): New function.
11874 * mem-break.h (software_breakpoint_inserted_here)
11875 (hardware_breakpoint_inserted_here): Declare.
11876 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11877 (cancel_breakpoints): Delete.
11878 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11879 (upload_fast_traceframes): Remove references to
11880 cancel_breakpoints.
11882 2015-01-09 Pedro Alves <palves@redhat.com>
11884 * thread-db.c (find_new_threads_callback): Ignore thread if the
11885 kernel thread ID is -1.
11887 2015-01-09 Pedro Alves <palves@redhat.com>
11889 * linux-low.c (linux_attach_fail_reason_string): Move to
11890 nat/linux-ptrace.c, and rename.
11891 (linux_attach_lwp): Update comment.
11892 (attach_proc_task_lwp_callback): New function.
11893 (linux_attach): Adjust to rename and use
11894 linux_proc_attach_tgid_threads.
11895 (linux_attach_fail_reason_string): Delete declaration.
11897 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11899 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11900 * server.c (gdbserver_version): Likewise.
11902 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11904 * remote-utils.c: Include ctype.h.
11905 (input_interrupt): Explicitly handle the case when the char
11906 received is the NUL byte. Improve the printing of non-ASCII
11909 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11911 * linux-low.c (linux_low_filter_event): Update call to
11912 linux_enable_event_reporting following the addition of
11913 a new parameter to that function.
11915 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11918 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11919 (AARCH64_FPCR_REGNO): Likewise.
11920 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11921 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11922 (aarch64_store_fpregset): Likewise.
11924 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11926 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11927 Remove FIXME comment about assumption about N.
11929 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11931 * configure.ac: If large-file support is disabled in GDBserver,
11932 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11933 * configure: Regenerate.
11935 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11937 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11938 warning upon ENODATA from ptrace.
11939 * linux-s390-low.c (s390_store_tdb): New.
11940 (s390_regsets): Add regset for NT_S390_TDB.
11942 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11944 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11945 without a fill_function.
11946 * linux-s390-low.c (s390_fill_last_break): Remove.
11947 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11948 (s390_arch_setup): Use regset's size instead of fill_function for
11949 loop end condition.
11951 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11953 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11954 the regset's store function when ptrace returned an error.
11955 * regcache.c (get_thread_regcache): Invalidate register cache
11956 before fetching inferior's registers.
11958 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11960 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11961 while-loop as for-loop.
11962 (regsets_store_inferior_registers): Likewise.
11964 2014-11-28 Yao Qi <yao@codesourcery.com>
11966 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11967 * config.in, configure: Re-generate.
11968 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11971 2014-11-21 Yao Qi <yao@codesourcery.com>
11973 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11974 (AC_CHECK_HEADERS): Remove malloc.h.
11975 * configure: Re-generated.
11976 * config.in: Re-generated.
11977 * server.h: Don't include alloca.h and malloc.h.
11978 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11979 Don't include malloc.h.
11981 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11983 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11984 corresponding ERRNO check in same block.
11986 2014-11-12 Pedro Alves <palves@redhat.com>
11988 * server.c (cont_thread): Update comment.
11989 (start_inferior, attach_inferior): No longer clear cont_thread.
11990 (handle_v_cont): No longer set cont_thread.
11991 (captured_main): Clear cont_thread each time a GDB connects.
11993 2014-11-12 Pedro Alves <palves@redhat.com>
11995 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11996 thread, and don't resume all threads if the Hc thread has exited.
11998 2014-11-12 Pedro Alves <palves@redhat.com>
12000 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12001 the process group instead of to a specific LWP.
12003 2014-10-15 Pedro Alves <palves@redhat.com>
12006 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12008 (arm_set_thread_context): Delete.
12009 (the_low_target): Adjust.
12010 * win32-i386-low.c (debug_registers_changed)
12011 (debug_registers_used): Delete.
12012 (update_debug_registers_callback): New function.
12013 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12014 needing to update their debug registers.
12015 (win32_get_current_dr): New function.
12016 (x86_dr_low_get_addr, x86_dr_low_get_control)
12017 (x86_dr_low_get_status): Fetch the debug register from the thread
12019 (i386_initial_stuff): Adjust.
12020 (i386_get_thread_context): Remove current_event parameter. Don't
12021 clear debug_registers_changed nor copy DR values to
12023 (i386_set_thread_context): Delete.
12024 (i386_prepare_to_resume): New function.
12025 (i386_thread_added): Mark the thread as needing to update irs
12027 (the_low_target): Remove i386_set_thread_context and install
12028 i386_prepare_to_resume.
12029 * win32-low.c (win32_get_thread_context): Adjust.
12030 (win32_set_thread_context): Use SetThreadContext
12032 (win32_prepare_to_resume): New function.
12033 (win32_require_context): New function, factored out from ...
12034 (thread_rec): ... this.
12035 (continue_one_thread): Call win32_prepare_to_resume on each thread
12036 we're about to continue.
12037 (win32_resume): Call win32_prepare_to_resume on the event thread.
12038 * win32-low.h (struct win32_thread_info)
12039 <debug_registers_changed>: New field.
12040 (struct win32_target_ops): Change prototype of set_thread_context,
12041 delete set_thread_context and add prepare_to_resume.
12042 (win32_require_context): New declaration.
12044 2014-10-08 Gary Benson <gbenson@redhat.com>
12046 * server.h: Do not include common-exceptions.h.
12048 2014-10-08 Gary Benson <gbenson@redhat.com>
12050 * server.h: Do not include cleanups.h.
12052 2014-09-30 James Hogan <james.hogan@imgtec.com>
12054 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12055 mips64-dsp-linux.c.
12057 2014-09-23 Yao Qi <yao@codesourcery.com>
12059 * linux-low.c (lp_status_maybe_breakpoint): New function.
12060 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12061 (count_events_callback): Likewise.
12062 (select_event_lwp_callback): Likewise.
12063 (cancel_breakpoints_callback): Likewise.
12065 2014-09-19 Don Breazeal <donb@codesourcery.com>
12067 * linux-low.c (handle_extended_wait): Call
12068 linux_ptrace_get_extended_event.
12069 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12070 linux_is_extended_waitstatus.
12072 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12074 * Makefile.in (CPPFLAGS): Define.
12075 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12076 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12078 2014-09-16 Gary Benson <gbenson@redhat.com>
12080 * inferiors.h (current_inferior): Renamed as...
12081 (current_thread): New variable. All uses updated.
12082 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12083 (maybe_move_out_of_jump_pad): Likewise.
12084 (cancel_breakpoint): Likewise.
12085 (linux_low_filter_event): Likewise.
12086 (wait_for_sigstop): Likewise.
12087 (linux_resume_one_lwp): Likewise.
12088 (need_step_over_p): Likewise.
12089 (start_step_over): Likewise.
12090 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12091 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12092 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12093 and save_inferior as saved_thread.
12094 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12096 (regcache_invalidate_thread): Likewise.
12097 * remote-utils.c (prepare_resume_reply): Likewise.
12098 * thread-db.c (thread_db_get_tls_address): Likewise.
12099 (disable_thread_event_reporting): Likewise.
12100 (remove_thread_event_breakpoints): Likewise.
12101 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12103 * target.h (set_desired_inferior): Renamed as...
12104 (set_desired_thread): New declaration. All uses updated.
12105 * server.c (myresume): Updated comment to reference thread instead
12107 (handle_serial_event): Likewise.
12108 (handle_target_event): Likewise.
12110 2014-09-12 Tom Tromey <tromey@redhat.com>
12111 Gary Benson <gbenson@redhat.com>
12113 * regcache.h: Include common-regcache.h.
12114 (regcache_read_pc): Don't declare.
12115 * regcache.c (get_thread_regcache_for_ptid): New function.
12117 2014-09-11 Tom Tromey <tromey@redhat.com>
12118 Gary Benson <gbenson@redhat.com>
12120 * symbol.c: New file.
12121 * Makefile.in (SFILES): Add symbol.c.
12122 (OBS): Add symbol.o.
12124 2014-09-11 Gary Benson <gbenson@redhat.com>
12126 * target.c (target_stop_ptid, target_continue_ptid): New
12129 2014-09-11 Tom Tromey <tromey@redhat.com>
12130 Gary Benson <gbenson@redhat.com>
12132 * target.h: Include target/target.h.
12133 * target.c (target_read_memory, target_read_uint32)
12134 (target_write_memory): New functions.
12136 2014-09-11 Gary Benson <gbenson@redhat.com>
12138 * server.h (debug_hw_points): Don't declare.
12139 * server.c (debug_hw_points): Don't define. Replace all uses
12140 with show_debug_regs.
12141 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12142 all uses with show_debug_regs.
12144 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12146 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12147 endianness into account.
12148 (ppc_supply_ptrace_register): Likewise.
12150 2014-09-03 James Hogan <james.hogan@imgtec.com>
12152 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12153 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12155 2014-09-03 Gary Benson <gbenson@redhat.com>
12157 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12158 ALL_DEBUG_ADDRESS_REGISTERS.
12160 2014-09-02 Gary Benson <gbenson@redhat.com>
12162 * i386-low.h: Renamed as...
12163 * x86-low.h: New file. All type, function and variable name
12164 prefixes changed from "i386_" to "x86_". All references updated.
12165 * i386-low.c: Renamed as...
12166 * x86-low.c: New file. All type, function and variable name
12167 prefixes changed from "i386_" to "x86_". All references updated.
12169 2014-09-02 Gary Benson <gbenson@redhat.com>
12171 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12172 (x86_linux_new_thread): Likewise.
12174 2014-08-29 Gary Benson <gbenson@redhat.com>
12176 * server.h (setjmp.h): Do not include.
12177 (toplevel): Do not declare.
12178 (common-exceptions.h): Include.
12179 (cleanups.h): Likewise.
12180 * server.c (toplevel): Do not define.
12181 (exit_code): New static global.
12182 (detach_or_kill_for_exit_cleanup): New function.
12183 (main): New function. Original main renamed to...
12184 (captured_main): New function.
12185 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12187 2014-08-29 Gary Benson <gbenson@redhat.com>
12189 * Makefile.in (SFILES): Add common/common-exceptions.c.
12190 (OBS): Add common-exceptions.o.
12191 (common-exceptions.o): New rule.
12192 * utils.c (prepare_to_throw_exception): New function.
12194 2014-08-29 Gary Benson <gbenson@redhat.com>
12196 * config.in: Regenerate.
12197 * configure: Likewise.
12199 2014-08-29 Gary Benson <gbenson@redhat.com>
12201 * Makefile.in (SFILES): Add common/cleanups.c.
12203 (cleanups.o): New rule.
12205 2014-08-29 Gary Benson <gbenson@redhat.com>
12207 * utils.c (internal_vwarning): New function.
12209 2014-08-28 Gary Benson <gbenson@redhat.com>
12211 * utils.h (fatal): Remove declaration.
12212 * utils.c (fatal): Remove function.
12214 2014-08-28 Gary Benson <gbenson@redhat.com>
12216 * tracepoint.c (gdb_agent_init): Replace fatal with
12218 (initialize_tracepoint): Likewise.
12220 2014-08-28 Gary Benson <gbenson@redhat.com>
12222 * remote-utils.c (remote_prepare): Replace fatal with error.
12224 2014-08-28 Gary Benson <gbenson@redhat.com>
12226 * linux-low.c (linux_async): Replace fatal with warning.
12227 Tidy up and return.
12228 (linux_start_non_stop): Return -1 if linux_async failed.
12230 2014-08-28 Gary Benson <gbenson@redhat.com>
12232 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12234 (i386_dr_low_get_addr): Remove vague comment.
12235 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12238 2014-08-28 Gary Benson <gbenson@redhat.com>
12240 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12241 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12243 (linux_resume_one_lwp): Likewise.
12244 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12246 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12247 with internal_error.
12248 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12249 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12250 (find_register_by_name): Replace fatal with internal_error.
12251 (find_regno): Likewise.
12252 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12253 * thread-db.c (thread_db_create_event): Likewise.
12254 (thread_db_load_search): Likewise.
12255 (try_thread_db_load_1): Likewise.
12256 * tracepoint.c (get_jump_space_head): Replace fatal with
12258 (claim_trampoline_space): Likewise.
12259 (have_fast_tracepoint_trampoline_buffer): Likewise.
12260 (cmd_qtstart): Likewise.
12261 (stop_tracing): Likewise.
12262 (fast_tracepoint_collecting): Likewise.
12263 (target_malloc): Likewise.
12264 (download_tracepoint): Likewise.
12265 (download_trace_state_variables): Replace check with gdb_assert.
12266 (upload_fast_traceframes): Replace fatal with internal_error.
12268 2014-08-19 Tom Tromey <tromey@redhat.com>
12269 Gary Benson <gbenson@redhat.com>
12271 * Makefile.in (SFILES): Add common/common-debug.c.
12272 (OBS): Add common-debug.o.
12273 (common-debug.o): New rule.
12274 * debug.h (debug_printf): Don't declare.
12275 * debug.c (debug_printf): Renamed and rewritten as...
12276 (debug_vprintf): New function.
12278 2014-08-19 Gary Benson <gbenson@redhat.com>
12280 * utils.h: Do not include print-utils.h.
12282 2014-08-19 Tom Tromey <tromey@redhat.com>
12283 Gary Benson <gbenson@redhat.com>
12285 * server.h: Add static assertion.
12286 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12288 2014-08-19 Tom Tromey <tromey@redhat.com>
12289 Gary Benson <gbenson@redhat.com>
12291 * Makefile.in (SFILES): Add common/errors.c.
12292 (OBS): Add errors.o.
12293 (IPA_OBS): Add errors-ipa.o.
12294 (errors.o): New rule.
12295 (errors-ipa.o): Likewise.
12296 * utils.h (perror_with_name, error, warning): Don't declare.
12297 * utils.c (warning): Renamed and rewritten as...
12298 (vwarning): New function.
12299 (error): Renamed and rewritten as...
12300 (verror): New function.
12301 (internal_error): Renamed and rewritten as...
12302 (internal_verror): New function.
12304 2014-08-07 Gary Benson <gbenson@redhat.com>
12306 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12307 * configure: Regenerate.
12308 * config.in: Likewise.
12309 * server.h: Do not include errno.h.
12310 * event-loop.c: Likewise.
12311 * hostio-errno.c: Likewise.
12312 * linux-low.c: Likewise.
12313 * remote-utils.c: Likewise.
12314 * spu-low.c: Likewise.
12315 * utils.c: Likewise.
12316 * gdbreplay.c: Unconditionally include errno.h.
12318 2014-08-07 Gary Benson <gbenson@redhat.com>
12320 * server.h: Do not include string.h.
12321 * event-loop.c: Likewise.
12322 * linux-low.c: Likewise.
12323 * regcache.c: Likewise.
12324 * remote-utils.c: Likewise.
12325 * spu-low.c: Likewise.
12326 * utils.c: Likewise.
12328 2014-08-07 Gary Benson <gbenson@redhat.com>
12330 * server.h: Do not include gdb_assert.h.
12332 2014-08-07 Gary Benson <gbenson@redhat.com>
12334 * server.h: Do not include common-utils.h.
12336 2014-08-07 Gary Benson <gbenson@redhat.com>
12338 * server.h: Do not include ptid.h.
12339 * notif.h: Likewise.
12341 2014-08-07 Gary Benson <gbenson@redhat.com>
12343 * server.h: Do not include gdb_locale.h.
12345 2014-08-07 Gary Benson <gbenson@redhat.com>
12347 * server.h: Do not include gdb/signals.h.
12348 * win32-low.c: Likewise.
12350 2014-08-07 Gary Benson <gbenson@redhat.com>
12352 * server.h: Do not include pathmax.h.
12354 2014-08-07 Gary Benson <gbenson@redhat.com>
12356 * server.h: Do not include libiberty.h.
12357 * linux-bfin-low.c: Likewise.
12359 2014-08-07 Gary Benson <gbenson@redhat.com>
12361 * server.h: Do not include ansidecl.h.
12363 2014-08-07 Gary Benson <gbenson@redhat.com>
12365 * linux-x86-low.c: Do not include stddef.h.
12366 * lynx-ppc-low.c: Likewise.
12367 * tracepoint.c: Likewise.
12369 2014-08-07 Gary Benson <gbenson@redhat.com>
12371 * server.h: Do not include stdarg.h.
12372 * nto-low.c: Likewise.
12374 2014-08-07 Gary Benson <gbenson@redhat.com>
12376 * server.h: Do not include stdlib.h.
12377 * inferiors.c: Likewise.
12378 * linux-low.c: Likewise.
12379 * regcache.c: Likewise.
12380 * spu-low.c: Likewise.
12381 * tracepoint.c: Likewise.
12382 * utils.c: Likewise.
12384 2014-08-07 Gary Benson <gbenson@redhat.com>
12386 * server.h: Do not include stdio.h.
12387 * linux-low.c: Likewise.
12388 * remote-utils.c: Likewise.
12389 * spu-low.c: Likewise.
12390 * utils.c: Likewise.
12391 * wincecompat.c: Likewise.
12393 2014-08-06 Gary Benson <gbenson@redhat.com>
12395 * regcache.c (init_register_cache): Move conditionals inside if.
12397 2014-08-06 Gary Benson <gbenson@redhat.com>
12399 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12401 2014-07-31 Gary Benson <gbenson@redhat.com>
12403 * ax.h: Do not include server.h.
12404 * gdbthread.h: Likewise.
12405 * lynx-low.h: Likewise.
12406 * notif.h: Likewise.
12408 2014-07-30 Gary Benson <gbenson@redhat.com>
12410 * server.h: Include common-defs.h.
12411 Do not include config.h or build-gnulib-gdbserver/config.h.
12413 2014-07-30 Gary Benson <gbenson@redhat.com>
12415 * hostio-errno.c: Move server.h to top of includes list.
12416 * inferiors.c: Likewise.
12417 * linux-x86-low.c: Likewise.
12418 * notif.c: Include server.h.
12420 2014-07-24 Tom Tromey <tromey@redhat.com>
12421 Gary Benson <gbenson@redhat.com>
12423 * server.h (CORE_ADDR): Now unsigned.
12425 2014-07-16 Pedro Alves <palves@redhat.com>
12427 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12429 2014-07-15 Pedro Alves <palves@redhat.com>
12431 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12434 2014-07-11 Pedro Alves <palves@redhat.com>
12436 * linux-low.c (kill_wait_lwp): New function, based on
12437 kill_one_lwp_callback, but use my_waitpid directly.
12438 (kill_one_lwp_callback, linux_kill): Use it.
12440 2014-06-23 Pedro Alves <palves@redhat.com>
12442 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12443 before setting DR0..DR3.
12445 2014-06-20 Gary Benson <gbenson@redhat.com>
12447 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12448 * configure: Regenerated.
12449 * config.in: Likewise.
12451 2014-06-20 Gary Benson <gbenson@redhat.com>
12453 * Makefile.in (SFILES): Update locations for files moved
12454 from common to nat.
12455 (object file files): Reordered.
12457 2014-06-20 Gary Benson <gbenson@redhat.com>
12459 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12460 (i386_dr_low_set_addr): Likewise.
12461 (i386_dr_low_get_addr): Likewise.
12462 (i386_dr_low_can_set_control): Likewise.
12463 (i386_dr_low_set_control): Likewise.
12464 (i386_dr_low_get_control): Likewise.
12465 (i386_dr_low_get_status): Likewise.
12466 (i386_get_debug_register_length): Likewise.
12467 * linux-x86-low.c (i386_dr_low_set_addr):
12468 Changed signature. Made static.
12469 (i386_dr_low_get_addr): Likewise.
12470 (i386_dr_low_set_control): Likewise.
12471 (i386_dr_low_get_control): Likewise.
12472 (i386_dr_low_get_status): Likewise.
12473 (i386_dr_low): New global variable.
12474 * win32-i386-low.c (i386_dr_low_set_addr):
12475 Changed signature. Made static.
12476 (i386_dr_low_get_addr): Likewise.
12477 (i386_dr_low_set_control): Likewise.
12478 (i386_dr_low_get_control): Likewise.
12479 (i386_dr_low_get_status): Likewise.
12480 (i386_dr_low): New global variable.
12482 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12484 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12485 * Makefile.in (AR, AR_FLAGS): Define.
12486 * configure: Regenerate.
12488 2014-06-19 Gary Benson <gbenson@redhat.com>
12490 * Makefile.in (i386-dregs.o): New rule.
12491 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12492 * i386-low.c (target.h): Remove include.
12493 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12494 (DR_CONTROL_SHIFT): Likewise.
12495 (DR_CONTROL_SIZE): Likewise.
12496 (DR_RW_EXECUTE): Likewise.
12497 (DR_RW_WRITE): Likewise.
12498 (DR_RW_READ): Likewise.
12499 (DR_RW_IORW): Likewise.
12500 (DR_LEN_1): Likewise.
12501 (DR_LEN_2): Likewise.
12502 (DR_LEN_4): Likewise.
12503 (DR_LEN_8): Likewise.
12504 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12505 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12506 (DR_ENABLE_SIZE): Likewise.
12507 (DR_LOCAL_SLOWDOWN): Likewise.
12508 (DR_GLOBAL_SLOWDOWN): Likewise.
12509 (DR_CONTROL_RESERVED): Likewise.
12510 (I386_DR_CONTROL_MASK): Likewise.
12511 (I386_DR_VACANT): Likewise.
12512 (I386_DR_LOCAL_ENABLE): Likewise.
12513 (I386_DR_GLOBAL_ENABLE): Likewise.
12514 (I386_DR_DISABLE): Likewise.
12515 (I386_DR_SET_RW_LEN): Likewise.
12516 (I386_DR_GET_RW_LEN): Likewise.
12517 (I386_DR_WATCH_HIT): Likewise.
12518 (i386_wp_op_t): Likewise.
12519 (i386_show_dr): Likewise.
12520 (i386_length_and_rw_bits): Likewise.
12521 (i386_insert_aligned_watchpoint): Likewise.
12522 (i386_remove_aligned_watchpoint): Likewise.
12523 (i386_handle_nonaligned_watchpoint): Likewise.
12524 i386_update_inferior_debug_regs(): Likewise.
12525 (i386_dr_insert_watchpoint): Likewise.
12526 (i386_dr_remove_watchpoint): Likewise.
12527 (i386_dr_region_ok_for_watchpoint): Likewise.
12528 (i386_dr_stopped_data_address): Likewise.
12529 (i386_dr_stopped_by_watchpoint): Likewise.
12531 2014-06-19 Gary Benson <gbenson@redhat.com>
12533 * i386-low.c (i386_dr_show): Renamed to
12534 i386_show_dr and made static. All uses updated.
12535 (i386_dr_length_and_rw_bits): Renamed to
12536 i386_length_and_rw_bits and made static.
12538 (i386_dr_insert_aligned_watchpoint): Renamed to
12539 i386_insert_aligned_watchpoint and made static.
12541 (i386_dr_remove_aligned_watchpoint): Renamed to
12542 i386_remove_aligned_watchpoint and made static.
12544 (i386_dr_update_inferior_debug_regs): Renamed to
12545 i386_update_inferior_debug_regs and made static.
12548 2014-06-18 Gary Benson <gbenson@redhat.com>
12550 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12551 (i386_dr_low_can_set_control): Likewise.
12552 (i386_get_debug_register_length): Likewise.
12553 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12554 (i386_dr_low_can_set_control): Likewise.
12555 (i386_get_debug_register_length): Likewise.
12557 2014-06-17 Gary Benson <gbenson@redhat.com>
12559 * i386-low.h (i386-dregs.h): New include.
12560 (DR_FIRSTADDR): Now in i386-dregs.h.
12561 (DR_LASTADDR): Likewise.
12562 (DR_NADDR): Likewise.
12563 (DR_STATUS): Likewise.
12564 (DR_CONTROL): Likewise.
12565 (i386_debug_reg_state): Likewise.
12566 (i386_dr_insert_watchpoint): Likewise.
12567 (i386_dr_remove_watchpoint): Likewise.
12568 (i386_dr_region_ok_for_watchpoint): Likewise.
12569 (i386_dr_stopped_data_address): Likewise.
12570 (i386_dr_stopped_by_watchpoint): Likewise.
12571 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12573 2014-06-18 Gary Benson <gbenson@redhat.com>
12575 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12576 i386_dr_insert_watchpoint.
12577 (i386_low_remove_watchpoint): Renamed to
12578 i386_dr_remove_watchpoint.
12579 (i386_low_region_ok_for_watchpoint): Renamed to
12580 i386_dr_region_ok_for_watchpoint.
12581 (i386_low_stopped_data_address): Renamed to
12582 i386_dr_stopped_data_address.
12583 (i386_low_stopped_by_watchpoint): Renamed to
12584 i386_dr_stopped_by_watchpoint.
12585 * i386-low.c (i386_show_dr): Renamed to
12586 i386_dr_show and made nonstatic. All uses updated.
12587 (i386_length_and_rw_bits): Renamed to
12588 i386_dr_length_and_rw_bits and made nonstatic.
12590 (i386_insert_aligned_watchpoint): Renamed to
12591 i386_dr_insert_aligned_watchpoint and made nonstatic.
12593 (i386_remove_aligned_watchpoint): Renamed to
12594 i386_dr_remove_aligned_watchpoint and made nonstatic.
12596 (i386_update_inferior_debug_regs): Renamed to
12597 i386_dr_update_inferior_debug_regs and made nonstatic.
12599 (i386_low_insert_watchpoint): Renamed to
12600 i386_dr_insert_watchpoint. All uses updated.
12601 (i386_low_remove_watchpoint): Renamed to
12602 i386_dr_remove_watchpoint. All uses updated.
12603 (i386_low_region_ok_for_watchpoint): Renamed to
12604 i386_dr_region_ok_for_watchpoint. All uses updated.
12605 (i386_low_stopped_data_address): Renamed to
12606 i386_dr_stopped_data_address. All uses updated.
12607 (i386_low_stopped_by_watchpoint): Renamed to
12608 i386_dr_stopped_by_watchpoint. All uses updated.
12610 2014-06-18 Gary Benson <gbenson@redhat.com>
12612 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12613 (i386_dr_low_can_set_control): Likewise.
12614 (i386_insert_aligned_watchpoint): New check.
12616 2014-06-18 Gary Benson <gbenson@redhat.com>
12618 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12621 2014-06-18 Gary Benson <gbenson@redhat.com>
12623 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12624 instead of fatal and error.
12625 (i386_handle_nonaligned_watchpoint): Likewise.
12627 2014-06-18 Gary Benson <gbenson@redhat.com>
12629 * i386-low.c (i386_get_debug_register_length): New macro.
12630 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12631 (i386_show_dr): Use debug_printf instead of fprintf. Use
12632 phex to format values.
12634 2014-06-18 Gary Benson <gbenson@redhat.com>
12636 * i386-low.h: Comment changes.
12637 * i386-low.c: Likewise.
12639 2014-06-18 Gary Benson <gbenson@redhat.com>
12641 * i386-low.c: Whitespace changes.
12643 2014-06-12 Tom Tromey <tromey@redhat.com>
12645 * utils.c (freeargv): Remove.
12647 2014-06-12 Tom Tromey <tromey@redhat.com>
12649 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12650 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12651 (parse_debug_format_options): Likewise.
12652 (gdbserver_usage): Likewise.
12653 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12654 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12655 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12657 ($(LIBGNU)): Depend on libiberty.
12658 (all-lib): Recurse into all subdirs.
12659 (install-only): Invoke "install" target in subdirs.
12660 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12662 * configure: Rebuild.
12663 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12664 for vasprintf, vsnprintf, or gettimeofday.
12665 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12668 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12670 * development.sh: Delete.
12671 * Makefile.in (config.status): Adjust dependency on development.sh.
12672 * configure.ac: Adjust development.sh source call.
12673 * configure: Regenerate.
12675 2014-06-02 Pedro Alves <palves@redhat.com>
12677 * ax.c (gdb_free_agent_expr): New function.
12678 * ax.h (gdb_free_agent_expr): New declaration.
12679 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12681 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12683 (clear_breakpoint_conditions_and_commands): New function.
12684 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12685 (clear_breakpoint_conditions_and_commands): New declaration.
12687 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12689 * linux-aarch64-low.c (asm/ptrace.h): Include.
12691 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12693 Fix TLS access for -static -pthread.
12694 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12695 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12696 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12698 2014-05-20 Pedro Alves <palves@redhat.com>
12700 * linux-aarch64-low.c (aarch64_insert_point)
12701 (aarch64_remove_point): No longer check whether the type is
12702 supported here. Adjust to new interface.
12703 (the_low_target): Install aarch64_supports_z_point_type as
12704 supports_z_point_type method.
12705 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12706 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12707 instead of a Z packet char. Adjust.
12708 (arm_supports_z_point_type): New function.
12709 (arm_insert_point, arm_remove_point): Adjust to new interface.
12710 (the_low_target): Install arm_supports_z_point_type.
12711 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12712 (cris_insert_point, cris_remove_point): Adjust to new interface.
12713 Don't check whether the type is supported here.
12714 (the_low_target): Install cris_supports_z_point_type.
12715 * linux-low.c (linux_supports_z_point_type): New function.
12716 (linux_insert_point, linux_remove_point): Adjust to new interface.
12717 * linux-low.h (struct linux_target_ops) <insert_point,
12718 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12719 raw_breakpoint pointer parameter.
12720 <supports_z_point_type>: New method.
12721 * linux-mips-low.c (mips_supports_z_point_type): New function.
12722 (mips_insert_point, mips_remove_point): Adjust to new interface.
12723 Use mips_supports_z_point_type.
12724 (the_low_target): Install mips_supports_z_point_type.
12725 * linux-ppc-low.c (the_low_target): Install NULL as
12726 supports_z_point_type method.
12727 * linux-s390-low.c (the_low_target): Install NULL as
12728 supports_z_point_type method.
12729 * linux-sparc-low.c (the_low_target): Install NULL as
12730 supports_z_point_type method.
12731 * linux-x86-low.c (x86_supports_z_point_type): New function.
12732 (x86_insert_point): Adjust to new insert_point interface. Use
12733 insert_memory_breakpoint. Adjust to new
12734 i386_low_insert_watchpoint interface.
12735 (x86_remove_point): Adjust to remove_point interface. Use
12736 remove_memory_breakpoint. Adjust to new
12737 i386_low_remove_watchpoint interface.
12738 (the_low_target): Install x86_supports_z_point_type.
12739 * lynx-low.c (lynx_target_ops): Install NULL as
12740 supports_z_point_type callback.
12741 * nto-low.c (nto_supports_z_point_type): New.
12742 (nto_insert_point, nto_remove_point): Adjust to new interface.
12743 (nto_target_ops): Install nto_supports_z_point_type.
12744 * mem-break.c: Adjust intro comment.
12745 (struct raw_breakpoint) <raw_type, size>: New fields.
12746 <inserted>: Update comment.
12747 <shlib_disabled>: Delete field.
12748 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12749 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12750 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12751 (raw_bkpt_type_to_target_hw_bp_type): New function.
12752 (find_enabled_raw_code_breakpoint_at): New function.
12753 (find_raw_breakpoint_at): New type and size parameters. Use them.
12754 (insert_memory_breakpoint): New function, based off
12755 set_raw_breakpoint_at.
12756 (remove_memory_breakpoint): New function.
12757 (set_raw_breakpoint_at): Reimplement.
12758 (set_breakpoint): New, based on set_breakpoint_at.
12759 (set_breakpoint_at): Reimplement.
12760 (delete_raw_breakpoint): Go through the_target->remove_point
12761 instead of assuming memory breakpoints.
12762 (find_gdb_breakpoint_at): Delete.
12763 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12764 (find_gdb_breakpoint): New function.
12765 (set_gdb_breakpoint_at): Delete.
12766 (z_type_supported): New function.
12767 (set_gdb_breakpoint_1): New function, loosely based off
12768 set_gdb_breakpoint_at.
12769 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12770 (delete_gdb_breakpoint_at): Delete.
12771 (delete_gdb_breakpoint_1): New function, loosely based off
12772 delete_gdb_breakpoint_at.
12773 (delete_gdb_breakpoint): New function.
12774 (clear_gdb_breakpoint_conditions): Rename to ...
12775 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12777 (add_condition_to_breakpoint): Make static.
12778 (add_breakpoint_condition): Take a struct breakpoint pointer
12779 instead of an address. Adjust.
12780 (gdb_condition_true_at_breakpoint): Rename to ...
12781 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12783 (gdb_condition_true_at_breakpoint): Reimplement.
12784 (add_breakpoint_commands): Take a struct breakpoint pointer
12785 instead of an address. Adjust.
12786 (gdb_no_commands_at_breakpoint): Rename to ...
12787 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12788 parameter. Return true if no breakpoint was found. Change debug
12790 (gdb_no_commands_at_breakpoint): Reimplement.
12791 (run_breakpoint_commands): Rename to ...
12792 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12793 and change return type to boolean.
12794 (run_breakpoint_commands): New function.
12795 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12796 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12797 breakpoint. Go through the_target->remove_point instead of
12798 assuming memory breakpoint.
12799 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12800 software and hardware breakpoints.
12801 (reinsert_raw_breakpoint): Go through the_target->insert_point
12802 instead of assuming memory breakpoint.
12803 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12804 software and hardware breakpoints.
12805 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12806 Check both software and hardware breakpoints.
12807 (validate_inserted_breakpoint): Assert the breakpoint is a
12808 software breakpoint. Set the inserted flag to -1 instead of
12809 setting shlib_disabled.
12810 (delete_disabled_breakpoints): Adjust.
12811 (validate_breakpoints): Only validate software breakpoints.
12812 Adjust to inserted flag change.
12813 (check_mem_read, check_mem_write): Skip breakpoint types other
12814 than software breakpoints. Adjust to inserted flag change.
12815 * mem-break.h (enum raw_bkpt_type): New enum.
12816 (raw_breakpoint, struct process_info): Forward declare.
12817 (Z_packet_to_target_hw_bp_type): Delete declaration.
12818 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12819 (set_gdb_breakpoint, delete_gdb_breakpoint)
12820 (clear_breakpoint_conditions): New declarations.
12821 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12822 (breakpoint_inserted_here): Update comment.
12823 (add_breakpoint_condition, add_breakpoint_commands): Replace
12824 address parameter with a breakpoint pointer parameter.
12825 (gdb_breakpoint_here): Update comment.
12826 (delete_gdb_breakpoint_at): Delete.
12827 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12828 * server.c (process_point_options): Take a struct breakpoint
12829 pointer instead of an address. Adjust.
12830 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12831 delete_gdb_breakpoint.
12832 * spu-low.c (spu_target_ops): Install NULL as
12833 supports_z_point_type method.
12834 * target.h: Include mem-break.h.
12835 (struct target_ops) <prepare_to_access_memory>: Update comment.
12836 <supports_z_point_type>: New field.
12837 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12838 instead of a char. Also take a raw breakpoint pointer.
12839 * win32-arm-low.c (the_low_target): Install NULL as
12840 supports_z_point_type.
12841 * win32-i386-low.c (i386_supports_z_point_type): New function.
12842 (i386_insert_point, i386_remove_point): Adjust to new interface.
12843 (the_low_target): Install i386_supports_z_point_type.
12844 * win32-low.c (win32_supports_z_point_type): New function.
12845 (win32_insert_point, win32_remove_point): Adjust to new interface.
12846 (win32_target_ops): Install win32_supports_z_point_type.
12847 * win32-low.h (struct win32_target_ops):
12848 <supports_z_point_type>: New method.
12849 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12850 instead of a char. Also take a raw breakpoint pointer.
12852 2014-05-20 Pedro Alves <palves@redhat.com>
12854 * mem-break.h: Include break-common.h.
12855 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12856 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12857 (Z_packet_to_target_hw_bp_type): New declaration.
12858 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12859 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12860 (Z_PACKET_ACCESS_WP): Delete macros.
12861 (Z_packet_to_hw_type): Delete function.
12862 * i386-low.h: Don't include break-common.h here.
12863 (Z_packet_to_hw_type): Delete declaration.
12864 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12865 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12866 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12867 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12868 * linux-aarch64-low.c: Don't include break-common.h here.
12869 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12870 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12871 (Z_packet_to_target_hw_bp_type): Delete function.
12872 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12874 (mips_insert_point, mips_remove_point): Use
12875 Z_packet_to_target_hw_bp_type.
12877 2014-05-20 Pedro Alves <palves@redhat.com>
12879 * linux-aarch64-low.c: Include break-common.h.
12880 (enum target_point_type): Delete.
12881 (Z_packet_to_point_type): Rename to ...
12882 (Z_packet_to_target_hw_bp_type): ... this, and return a
12883 target_hw_bp_type instead.
12884 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12885 instead of an enum target_point_type.
12886 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12888 (aarch64_dr_state_insert_one_point)
12889 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12890 (aarch64_handle_aligned_watchpoint)
12891 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12892 Take an enum target_hw_bp_type instead of an enum
12894 (aarch64_supports_z_point_type): New function.
12895 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12896 use Z_packet_to_target_hw_bp_type.
12898 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12900 * configure.ac: Only use -Werror by default when DEVELOPMENT
12902 * configure: Regenerate.
12904 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12906 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12907 * linux-x86-low.c (X86_64_USER_REGS): New.
12908 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12910 2014-04-28 Yao Qi <yao@codesourcery.com>
12912 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12915 2014-04-25 Pedro Alves <palves@redhat.com>
12918 * linux-low.c (linux_attach_fail_reason_string): New function.
12919 (linux_attach_lwp): Delete.
12920 (linux_attach_lwp_1): Rename to ...
12921 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12922 argument. Remove "initial" parameter. Return int instead of
12923 void. Don't error or warn here.
12924 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12925 failure to attach to the tgid. Call warning when failing to
12927 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12928 argument. Remove "initial" parameter. Return int instead of
12929 void. Don't error or warn here.
12930 (linux_attach_fail_reason_string): New declaration.
12931 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12932 interface change. Use linux_attach_fail_reason_string.
12934 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12935 Walfred Tedeschi <walfred.tedeschi@intel.com>
12937 * Makefile.in: Added rules to handle new files
12938 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12939 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12940 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12941 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12942 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12943 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12944 x32-avx512-linux.o.
12945 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12946 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12947 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12948 i386/x32-avx512.xml.
12949 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12950 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12951 i386/x32-avx512-linux.xml.
12952 * i387-fp.c (num_avx512_k_registers): New constant for number
12954 (num_avx512_zmmh_low_registers): New constant for number of
12955 lower ZMM registers (0-15).
12956 (num_avx512_zmmh_high_registers): New constant for number of
12957 higher ZMM registers (16-31).
12958 (num_avx512_ymmh_registers): New contant for number of higher
12959 YMM registers (ymm16-31 added by avx521 on x86_64).
12960 (num_avx512_xmm_registers): New constant for number of higher
12961 XMM registers (xmm16-31 added by AVX512 on x86_64).
12962 (struct i387_xsave): Add space for AVX512 registers.
12963 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12964 Add code to handle AVX512 registers.
12965 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12966 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12967 prototypei from generated file.
12968 (tdesc_amd64_avx512_linux): Likewise.
12969 (init_registers_x32_avx512_linux): Likewise.
12970 (tdesc_x32_avx512_linux): Likewise.
12971 (init_registers_i386_avx512_linux): Likewise.
12972 (tdesc_i386_avx512_linux): Likewise.
12973 (x86_64_regmap): Add AVX512 registers.
12974 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12976 (initialize_low_arch): Add code to initialize AVX512 registers.
12978 2014-04-23 Pedro Alves <palves@redhat.com>
12980 * mem-break.c (find_gdb_breakpoint_at): Make static.
12981 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12983 2014-04-23 Pedro Alves <palves@redhat.com>
12985 * i386-low.c: Don't include break-common.h here.
12986 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12987 prototype to take target_hw_bp_type as argument instead of a Z
12989 * i386-low.h: Include break-common.h here.
12990 (Z_packet_to_hw_type): Declare.
12991 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12993 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12994 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12995 (x86_remove_point): Convert the packet number to a
12996 target_hw_bp_type before calling i386_low_remove_watchpoint.
12997 * win32-i386-low.c (i386_insert_point): Convert the packet number
12998 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12999 (i386_remove_point): Convert the packet number to a
13000 target_hw_bp_type before calling i386_low_remove_watchpoint.
13002 2014-04-23 Pedro Alves <palves@redhat.com>
13004 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13006 2014-04-10 Pedro Alves <palves@redhat.com>
13008 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13009 Check if the condition or command is NULL before checking if the
13010 breakpoint is known. On success, return true.
13011 * mem-break.h (add_breakpoint_condition): Document return.
13012 (add_breakpoint_commands): Add describing comment.
13013 * server.c (skip_to_semicolon): New function.
13014 (process_point_options): Use it.
13016 2014-04-09 Pedro Alves <palves@redhat.com>
13018 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13021 2014-02-27 Pedro Alves <palves@redhat.com>
13024 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13026 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13028 (last_thread_of_process_p): Take a PID argument instead of a
13030 (linux_wait_for_lwp): Delete.
13031 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13033 (linux_low_filter_event): New function, party factored out from
13034 linux_wait_for_event.
13035 (linux_wait_for_event): Rename to ...
13036 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13037 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13038 sigsuspend. Check for zombie leaders.
13039 (linux_wait_for_event): Reimplement as wrapper around
13040 linux_wait_for_event_filtered.
13041 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13042 a normal or signal exit is seen, it's the whole process exiting.
13043 (wait_for_sigstop): No longer a for_each_inferior callback.
13044 Rewrite on top of linux_wait_for_event_filtered.
13045 (stop_all_lwps): Call wait_for_sigstop directly.
13046 * server.c (resume, handle_target_event): Handle
13047 TARGET_WAITKIND_NO_RESUMED.
13049 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13051 * win32-low.c (psapi_get_dll_name,
13052 * win32_CreateToolhelp32Snapshot): Delete.
13053 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13054 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13056 (handle_load_dll): Add function description.
13057 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13059 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13061 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13063 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13064 base address when calling win32_add_one_solib.
13065 (handle_load_dll): Delete local variable load_addr.
13066 Remove 0x1000 offset applied to DLL base address when calling
13067 win32_add_one_solib.
13068 (handle_unload_dll): Add comment.
13070 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13072 * win32-low.c (win32_add_all_dlls): Renames
13073 win32_ensure_ntdll_loaded. Rewrite function documentation.
13074 Adjust implementation to always load all DLLs.
13075 Add 0x1000 offset to DLL base address when calling
13076 win32_add_one_solib.
13077 (child_initialization_done): New static global.
13078 (do_initial_child_stuff): Set child_initialization_done to
13079 zero during child initialization, and 1 after. Replace call
13080 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13082 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13083 (handle_unload_dll): Add function documentation.
13084 (get_child_debug_event): Ignore load and unload DLL events
13085 during child initialization.
13087 2014-02-20 Doug Evans <dje@google.com>
13089 Remove global all_lwps.
13090 * inferiors.h (ptid_of): Move here from linux-low.h.
13091 (pid_of, lwpid_of): Ditto.
13092 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13093 parameter is a struct thread_info * now.
13094 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13095 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13096 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13098 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13099 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13100 * linux-arm-low.c (update_registers_callback): Update, "entry"
13101 parameter is a struct thread_info * now.
13102 Fetch lwpid from current_inferior directly.
13103 (arm_insert_point): Pass &all_threads to find_inferior instead of
13105 (arm_remove_point): Ditto.
13106 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13107 (arm_prepare_to_resume): Fetch pid from thread.
13108 (arm_read_description): Fetch lwpid from current_inferior directly.
13109 * linux-low.c (all_lwps): Delete.
13110 (delete_lwp): Delete call to remove_inferior.
13111 (handle_extended_wait): Fetch lwpid from thread.
13112 (add_lwp): Don't set lwp->entry.id. Remove call to
13113 add_inferior_to_list.
13114 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13115 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13116 (kill_one_lwp_callback): Ditto.
13117 (linux_kill): Don't dereference NULL pointer.
13118 Fetch ptid,lwpid from thread.
13119 (get_detach_signal): Fetch ptid from thread.
13120 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13121 Simplify call to regcache_invalidate_thread.
13122 (delete_lwp_callback): Update, "entry" parameter is a
13123 struct thread_info * now. Fetch pid from thread.
13124 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13125 (status_pending_p_callback): Update, "entry" parameter is a
13126 struct thread_info * now. Fetch ptid from thread.
13127 (find_lwp_pid): Update, "entry" parameter is a
13128 struct thread_info * now.
13129 (linux_wait_for_lwp): Fetch pid from thread.
13130 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13131 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13132 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13133 (dequeue_one_deferred_signal): Ditto.
13134 (cancel_breakpoint): Fetch ptid from current_inferior.
13135 (linux_wait_for_event): Pass &all_threads to find_inferior,
13136 not &all_lwps. Fetch ptid, lwpid from thread.
13137 (count_events_callback): Update, "entry" parameter is a
13138 struct thread_info * now.
13139 (select_singlestep_lwp_callback): Ditto.
13140 (select_event_lwp_callback): Ditto.
13141 (cancel_breakpoints_callback): Ditto.
13142 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13144 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13145 (unsuspend_one_lwp): Update, "entry" parameter is a
13146 struct thread_info * now.
13147 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13149 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13150 Fetch lwpid from thread, not lwp.
13151 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13152 Pass &all_threads to find_inferior, not &all_lwps.
13153 (send_sigstop): Fetch lwpid from thread, not lwp.
13154 (send_sigstop_callback): Update, "entry" parameter is a
13155 struct thread_info * now.
13156 (suspend_and_send_sigstop_callback): Ditto.
13157 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13158 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13159 struct thread_info * now.
13160 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13162 (lwp_running): Update, "entry" parameter is a
13163 struct thread_info * now.
13164 (stop_all_lwps): Fetch ptid from thread.
13165 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13166 (linux_resume_one_lwp): Fetch lwpid from thread.
13167 (linux_set_resume_request): Update, "entry" parameter is a
13168 struct thread_info * now. Fetch pid, lwpid from thread.
13169 (resume_status_pending_p): Update, "entry" parameter is a
13170 struct thread_info * now.
13171 (need_step_over_p): Ditto. Fetch lwpid from thread.
13172 (start_step_over): Fetch lwpid from thread.
13173 (linux_resume_one_thread): Update, "entry" parameter is a
13174 struct thread_info * now. Fetch lwpid from thread.
13175 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13176 (proceed_one_lwp): Update, "entry" parameter is a
13177 struct thread_info * now. Fetch lwpid from thread.
13178 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13179 struct thread_info * now.
13180 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13181 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13182 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13184 (regsets_store_inferior_registers): Ditto.
13185 (fetch_register, store_register): Ditto.
13186 (linux_read_memory, linux_write_memory): Ditto.
13187 (linux_request_interrupt): Ditto.
13188 (linux_read_auxv): Ditto.
13189 (linux_xfer_siginfo): Ditto.
13190 (linux_qxfer_spu): Ditto.
13191 (linux_qxfer_libraries_svr4): Ditto.
13192 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13193 moved to inferiors.h.
13195 (get_thread_lwp): Update.
13196 (struct lwp_info): Delete member "entry". Simplify comment for
13198 (all_lwps): Delete.
13199 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13200 current_inferior directly.
13201 (update_watch_registers_callback): Update, "entry" parameter is a
13202 struct thread_info * now. Fetch pid from thread.
13203 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13204 (mips_insert_point): Fetch lwpid from current_inferior.
13205 Pass &all_threads to find_inferior, not &all_lwps.
13206 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13207 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13209 (mips_stopped_data_address): Ditto.
13210 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13212 * linux-tile-low.c (tile_arch_setup): Ditto.
13213 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13214 (update_debug_registers_callback): Update, "entry" parameter is a
13215 struct thread_info * now. Fetch pid from thread.
13216 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13217 Pass &all_threads to find_inferior, not &all_lwps.
13218 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13219 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13220 Pass &all_threads to find_inferior, not &all_lwps.
13221 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13222 (i386_dr_low_get_status): Ditto.
13223 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13224 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13225 (x86_linux_read_description): Ditto.
13226 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13228 2014-02-20 Doug Evans <dje@google.com>
13230 * inferiors.c (get_first_inferior): Fix buglet.
13232 2014-02-19 Doug Evans <dje@google.com>
13234 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13235 * inferiors.c (add_thread): Change result type to struct thread_info *.
13236 All callers updated.
13237 (add_lwp): Call add_thread here instead of in callers.
13238 All callers updated.
13239 * linux-low.h (get_lwp_thread): Rewrite.
13240 (struct lwp_info): New member "thread".
13242 2014-02-19 Doug Evans <dje@google.com>
13244 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13245 All callers updated.
13247 2014-02-19 Doug Evans <dje@google.com>
13249 * inferiors.c (add_thread): Fix whitespace.
13251 2014-02-19 Doug Evans <dje@google.com>
13253 * dll.c (clear_dlls): Replace accessing list implemention details
13255 * gdbthread.h (get_first_thread): Declare.
13256 * inferiors.c (for_each_inferior_with_data): New function.
13257 (get_first_thread): New function.
13258 (find_thread_ptid): Simplify.
13259 (get_first_inferior): New function.
13260 (clear_list): Delete.
13261 (one_inferior_p): New function.
13262 (clear_inferior_list): New function.
13263 (clear_inferiors): Update.
13264 * inferiors.h (for_each_inferior_with_data): Declare.
13265 (clear_inferior_list): Declare.
13266 (one_inferior_p): Declare.
13267 (get_first_inferior): Declare.
13268 * linux-low.c (linux_wait_for_event): Replace accessing list
13269 implemention details with API function.
13270 * server.c (target_running): Ditto.
13271 (accumulate_file_name_length): New function.
13272 (emit_dll_description): New function.
13273 (handle_qxfer_libraries): Replace accessing list implemention
13274 details with API function.
13275 (handle_qxfer_threads_worker): New function.
13276 (handle_qxfer_threads_proper): Replace accessing list implemention
13277 details with API function.
13278 (handle_query): Ditto.
13279 (visit_actioned_threads_callback_ftype): New typedef.
13280 (visit_actioned_threads_data): New struct.
13281 (visit_actioned_threads): Rewrite to be find_inferior callback.
13282 (resume): Call find_inferior.
13283 (handle_status): Replace accessing list implemention
13284 details with API function.
13285 (process_serial_event): Replace accessing list implemention details
13287 * target.c (set_desired_inferior): Replace accessing list implemention
13288 details with API function.
13289 * tracepoint.c (same_process_p): New function.
13290 (gdb_agent_about_to_close): Replace accessing list implemention
13291 details with API function.
13292 * win32-low.c (child_delete_thread): Replace accessing list
13293 implemention details with API function.
13294 (match_dll_by_basename): New function.
13295 (dll_is_loaded_by_basename): New function.
13296 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13297 details call to dll_is_loaded_by_basename.
13299 2014-02-19 Doug Evans <dje@google.com>
13301 * dll.h (struct dll_info): Add comment.
13302 * gdbthread.h (struct thread_info): Add comment.
13303 (current_ptid): Simplify.
13304 * inferiors.c (add_process): Update.
13305 (remove_process): Update.
13306 * inferiors.h (struct process_info): Rename member "head" to "entry".
13307 * linux-low.c (delete_lwp): Update.
13309 (last_thread_of_process_p): Update.
13310 (kill_one_lwp_callback, linux_kill): Update.
13311 (status_pending_p_callback): Update.
13312 (wait_for_sigstop): Update. Simplify read of ptid.
13313 (start_step_over): Update.
13314 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13315 (get_lwp_thread): Update.
13316 (struct lwp_info): Rename member "head" to "entry".
13317 * regcache.h (inferior_list_entry): Delete.
13318 * server.c (kill_inferior_callback): Update.
13319 (detach_or_kill_inferior_callback): Update.
13320 (print_started_pid): Update.
13321 (print_attached_pid): Update.
13322 (process_serial_event): Simplify read of ptid.
13323 * thread-db.c (thread_db_create_event): Update.
13324 (thread_db_get_tls_address): Update.
13325 * win32-low.c (current_inferior_ptid): Simplify.
13327 2014-02-19 Tom Tromey <tromey@redhat.com>
13329 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13331 (target_supports_btrace): Update.
13333 2014-02-14 Yao Qi <yao@codesourcery.com>
13335 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13336 (rsp-low-ipa.o): New target.
13338 2014-02-12 Tom Tromey <tromey@redhat.com>
13340 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13341 convert_ascii_to_int.
13342 * regcache.c (registers_to_string): Likewise.
13343 * remote-utils.c (decode_M_packet): Likewise.
13344 * server.c (process_serial_event): Likewise.
13346 2014-02-12 Tom Tromey <tromey@redhat.com>
13348 * server.c (handle_query, handle_v_run): Use hex2bin, not
13350 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13352 2014-02-12 Tom Tromey <tromey@redhat.com>
13354 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13355 convert_int_to_ascii.
13356 * regcache.c (registers_to_string, collect_register_as_string):
13358 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13360 * server.c (process_serial_event): Likewise.
13361 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13362 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13364 2014-02-12 Tom Tromey <tromey@redhat.com>
13366 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13367 bin2hex, not hexify.
13368 * tracepoint.c (cmd_qtstatus): Likewise.
13370 2014-02-12 Tom Tromey <tromey@redhat.com>
13372 * remote-utils.c (monitor_output): Pass explicit length to
13375 2014-02-12 Tom Tromey <tromey@redhat.com>
13377 * tracepoint.c: Include rsp-low.h.
13378 * server.c: Include rsp-low.h.
13379 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13380 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13382 * remote-utils.c: Include rsp-low.h.
13383 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13384 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13385 (convert_int_to_ascii, convert_ascii_to_int): Move to
13387 * regcache.c: Include rsp-low.h.
13388 * ax.c: Include rsp-low.h.
13389 * Makefile.in (SFILES): Add common/rsp-low.c.
13390 (OBS): Add rsp-low.o.
13391 (rsp-low.o): New target.
13393 2014-02-12 Tom Tromey <tromey@redhat.com>
13395 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13396 Include print-utils.h.
13397 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13398 (plongest, thirty_two, phex_nz): Remove.
13399 * Makefile.in (SFILES): Add common/print-utils.c.
13400 (OBS): Add print-utils.o.
13401 (print-utils-ipa.o): New target.
13402 (print-utils.o): New target.
13403 (IPA_OBJS): Add print-utils-ipa.o.
13405 2014-02-06 Tom Tromey <tromey@redhat.com>
13407 * Makefile.in (SFILES): Fix indentation.
13409 2014-02-05 Doug Evans <dje@google.com>
13411 * linux-low.c (linux_wait_for_event): Improve comment.
13412 (linux_wait_1): Keep current_inferior in sync with event_child.
13414 2014-01-22 Doug Evans <dje@google.com>
13416 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13418 2014-01-22 Doug Evans <dje@google.com>
13420 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13421 * configure: Regenerate.
13422 * config.in: Regenerate.
13423 * Makefile.in (SFILES): Add debug.c.
13424 (OBS): Add debug.o.
13425 * debug.c: New file.
13426 * debug.h: New file.
13427 * linux-aarch64-low.c (*): Update all debugging printfs to use
13428 debug_printf instead of fprintf.
13429 * linux-arm-low.c (*): Ditto.
13430 * linux-cris-low.c (*): Ditto.
13431 * linux-crisv32-low.c (*): Ditto.
13432 * linux-m32r-low.c (*): Ditto.
13433 * linux-sparc-low.c (*): Ditto.
13434 * linux-x86.c (*): Ditto.
13435 * linux-low.c (*): Ditto.
13436 (linux_wait_1): Add calls to debug_enter, debug_exit.
13437 (linux_wait): Remove redundant debugging printf.
13438 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13439 (linux_resume, unstop_all_lwps): Ditto.
13440 * mem-break.c (*): Update all debugging printfs to use
13441 debug_printf instead of fprintf.
13442 * remote-utils.c (*): Ditto.
13443 * thread-db.c (*): Ditto.
13444 * server.c #include <ctype.h>, "gdb_vecs.h".
13445 (debug_threads): Moved to debug.c.
13446 (*): Update all debugging printfs to use debug_printf instead of
13448 (start_inferior): Replace call to fflush with call to debug_flush.
13449 (monitor_show_help): Mention set debug-format.
13450 (parse_debug_format_options): New function.
13451 (handle_monitor_command): Handle "monitor set debug-format".
13452 (gdbserver_usage): Mention --debug-format.
13453 (main): Parse --debug-format.
13454 * server.h (debug_threads): Declaration moved to debug.h.
13455 #include "debug.h".
13456 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13457 trace_debug_1 that uses debug_printf.
13458 (tracepoint_look_up_symbols): Update all debugging printfs to use
13459 debug_printf instead of fprintf.
13461 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13463 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13466 2014-01-17 Pedro Alves <palves@redhat.com>
13469 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13470 defined after including gdb_proc_service.h.
13472 2014-01-16 Doug Evans <dje@google.com>
13474 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13475 (match_dll): Use it.
13477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13479 * target.h (target_ops) <read_btrace>: Change parameters and
13480 return type to allow error reporting.
13481 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13482 trace reading errors on.
13483 * linux-low.c (linux_low_read_btrace): Pass trace reading
13485 (linux_low_disable_btrace): New.
13487 2014-01-15 Doug Evans <dje@google.com>
13489 * inferiors.c (thread_id_to_gdb_id): Delete.
13490 * inferiors.h (thread_id_to_gdb_id): Delete.
13492 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13494 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13495 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13498 2014-01-08 Pedro Alves <palves@redhat.com>
13500 * server.c (handle_status): Don't discard previous queued stop
13501 replies or thread's pending status here.
13502 (main) <disconnection>: Do it here instead.
13504 2014-01-08 Pedro Alves <palves@redhat.com>
13506 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13507 * server.c (visit_actioned_threads, handle_pending_status): New
13509 (handle_v_cont): Factor out parts to ...
13510 (resume): ... this new function. If in all-stop, and a thread
13511 being resumed has a pending status, report it without actually
13513 (myresume): Adjust to use the new 'resume' function.
13514 (clear_pending_status_callback, set_pending_status_callback)
13515 (find_status_pending_thread_callback): New functions.
13516 (handle_status): Handle the case of multiple threads having
13517 interesting statuses to report. Report threads' real last signal
13518 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13519 with an interesting thread to report the status for, instead of
13520 always reporting the status of the first thread.
13522 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13524 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13525 * gdbreplay.c (gdbreplay_version): Likewise.
13527 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13529 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13530 iov.iov_len with the real length in use.
13532 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13534 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13535 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13536 for all targets that use win32-low.c.
13537 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13538 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13540 2013-12-13 Pedro Alves <palves@redhat.com>
13542 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13543 if equal to TARGET_WAITKIND_LOADED.
13544 * win32-low.c (cached_status): New static global.
13545 (win32_wait): Add declaration.
13546 (do_initial_child_stuff): Flush all initial pending debug events
13547 up to the initial breakpoint.
13548 (win32_wait): If CACHED_STATUS was set, return that instead
13549 of doing a real wait. Remove the code resuming the execution
13550 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13551 during the initial phase. Also remove the code changing
13552 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13553 TARGET_WAITKIND_STOPPED.
13555 2013-12-11 Yao Qi <yao@codesourcery.com>
13557 * notif.c (handle_notif_ack): Return 0 if no notification
13560 2013-11-20 Doug Evans <dje@google.com>
13562 * linux-low.c (linux_set_resume_request): Fix comment.
13564 2013-11-20 Doug Evans <dje@google.com>
13566 * linux-low.c (resume_status_pending_p): Tweak comment.
13568 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13570 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13571 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13572 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13573 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13574 (srv_amd64_regobj): Add amd64-mpx.o.
13575 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13576 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13577 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13578 * i387-fp.c (num_pl_bnd_register) Added constant.
13579 (num_pl_bnd_cfg_registers) Added constant.
13580 (struct i387_xsave) Added reserved area and MPX fields.
13581 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13582 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13584 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13585 (init_registers_amd64_mpx_linux): Declare new function.
13586 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13587 (x86_64_regmap): Add MPX registers.
13588 (x86_linux_read_description): Add MPX case.
13589 (initialize_low_arch): Initialize MPX targets.
13591 2013-11-18 Tom Tromey <tromey@redhat.com>
13593 * configure: Rebuild.
13594 * configure.ac: Don't check for stdlib.h.
13595 * gdbreplay.c: Unconditionally include stdlib.h.
13597 2013-11-18 Tom Tromey <tromey@redhat.com>
13599 * config.in: Rebuild.
13600 * configure: Rebuild.
13601 * configure.ac: Don't use AC_HEADER_DIRENT.
13603 2013-11-18 Tom Tromey <tromey@redhat.com>
13605 * server.h: Don't check HAVE_STRING_H.
13606 * gdbreplay.c: Don't check HAVE_STRING_H.
13607 * configure: Rebuild.
13609 2013-11-18 Tom Tromey <tromey@redhat.com>
13611 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13614 2013-11-08 Tom Tromey <tromey@redhat.com>
13616 * configure, config.in: Rebuild.
13617 * configure.ac: Remove unused configury.
13619 2013-11-08 Tom Tromey <tromey@redhat.com>
13621 * acinclude.m4: Include common.m4, codeset.m4.
13622 * configure, config.in: Rebuild.
13623 * configure.ac: Use GDB_AC_COMMON.
13625 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13627 * linux-s390-low.c (HWCAP_S390_TE): New define.
13628 (s390_arch_setup): Consider the TE field in the HWCAP for
13629 determining 'have_regset_tdb'.
13631 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13634 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13637 2013-10-02 Pedro Alves <palves@redhat.com>
13639 * server.c (process_serial_event): Don't output "GDBserver
13640 exiting" if GDB is connected through stdio.
13641 * target.c (mywait): Likewise, be silent if GDB is connected
13644 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13646 * lynx-low.c (lynx_add_threads_after_attach): New function.
13647 (lynx_attach): Remove call to add_thread. Add call to
13648 lynx_add_threads_after_attach instead.
13650 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13652 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13653 * config.in, configure: Regenerated.
13655 2013-09-18 Yao Qi <yao@codesourcery.com>
13658 * server.c (start_inferior): Clear 'resume_info'.
13660 2013-09-16 Jiong Wang <jiwang@tilera.com>
13662 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13665 2013-09-16 Jiong Wang <jiwang@tilera.com>
13667 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13668 linux-tile-low.o to srv_tgtobj.
13670 2013-09-16 Will Newton <will.newton@linaro.org>
13672 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13675 2013-09-06 Pedro Alves <palves@redhat.com>
13677 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13678 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13679 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13680 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13681 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13682 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13684 2013-09-06 Pedro Alves <palves@redhat.com>
13686 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13687 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13689 2013-09-06 Pedro Alves <palves@redhat.com>
13691 * linux-amd64-ipa.c: Include tracepoint.h.
13692 * linux-i386-ipa.c: Include tracepoint.h.
13694 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13696 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13697 (ps_get_thread_area): New function.
13699 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13701 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13702 (initialize_low_arch): Call init_registers_crisv32 rather than
13703 init_register_crisv32.
13705 2013-09-05 Pedro Alves <palves@redhat.com>
13707 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13709 * hostio.h: ... this new file.
13710 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13711 win32-low.c: Include hostio.h.
13713 2013-09-05 Pedro Alves <palves@redhat.com>
13715 * server.h (gdb_client_data, handler_func, callback_handler_func)
13716 (delete_file_handler, add_file_handler, append_callback_event)
13717 (delete_callback_event, start_event_loop, initialize_event_loop):
13718 Move to event-loop.h and include it.
13719 * event-loop.h: New file.
13721 2013-09-05 Pedro Alves <palves@redhat.com>
13723 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13724 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13725 (loaded_dll, unloaded_dll): Move to ...
13726 * dll.h: ... this new file.
13727 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13729 2013-09-05 Pedro Alves <palves@redhat.com>
13731 * server.h (current_process, get_thread_process, all_processes)
13732 (add_inferior_to_list, for_each_inferior, current_inferior)
13733 (remove_inferior, add_process, remove_process, find_process_pid)
13734 (have_started_inferiors_p, have_attached_inferiors_p)
13735 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13736 (clear_inferiors, find_inferior, find_inferior_id)
13737 (inferior_target_data, set_inferior_target_data)
13738 (inferior_regcache_data, set_inferior_regcache_data): Move to
13739 inferiors.h, and include it.
13740 * inferiors.h: New file.
13742 2013-09-05 Pedro Alves <palves@redhat.com>
13744 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13748 2013-09-05 Pedro Alves <palves@redhat.com>
13750 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13752 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13753 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13754 (handle_tracepoint_general_set, handle_tracepoint_query)
13755 (tracepoint_finished_step, tracepoint_was_hit)
13756 (release_while_stepping_state_list, current_traceframe)
13757 (in_readonly_region, traceframe_read_mem)
13758 (fetch_traceframe_registers, traceframe_read_sdata)
13759 (traceframe_read_info, struct fast_tpoint_collect_status)
13760 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13761 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13762 (supply_fast_tracepoint_registers)
13763 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13764 (ipa_tdesc, claim_trampoline_space)
13765 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13766 (agent_mem_read, agent_get_trace_state_variable_value)
13767 (agent_set_trace_state_variable_value, agent_tsv_read)
13768 (agent_mem_read_string, get_raw_reg_func_addr)
13769 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13770 * tracepoint.h: ... this new file.
13772 2013-09-05 Pedro Alves <palves@redhat.com>
13774 * server.h (perror_with_name, error, fatal, warning, paddress)
13775 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13777 * utils.h: New file.
13779 2013-09-05 Pedro Alves <palves@redhat.com>
13781 * server.h (remote_debug, noack_mode, transport_is_reliable)
13782 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13783 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13784 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13785 (write_enn, initialize_async_io, enable_async_io)
13786 (disable_async_io, check_remote_input_interrupt_request)
13787 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13788 (dead_thread_notify, prepare_resume_reply)
13789 (decode_address_to_semicolon, decode_address, decode_m_packet)
13790 (decode_M_packet, decode_X_packet, decode_xfer_write)
13791 (decode_search_memory_packet, unhexify, hexify)
13792 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13793 (look_up_one_symbol, relocate_instruction)
13794 (monitor_output): Move to remote-utils.h, and include it.
13795 * remote-utils.h: New file.
13797 2013-09-05 Pedro Alves <palves@redhat.com>
13799 * server.h (_): Delete.
13801 2013-09-02 Pedro Alves <palves@redhat.com>
13803 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13804 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13806 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13808 2013-09-02 Pierre Muller <muller@sourceware.org>
13810 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13811 or WriteProcessMemory complete successfully and handle
13812 ERROR_PARTIAL_COPY error.
13814 2013-09-02 Pedro Alves <palves@redhat.com>
13816 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13817 error instead of EIO.
13819 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13822 * linux-low.c: Include filestuff.h.
13823 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13824 * lynx-low.c: Include filestuff.h.
13825 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13826 * server.c: Include filestuff.h.
13827 (main): Call notice_open_fds.
13828 * spu-low.c: Include filestuff.h.
13829 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13831 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13833 * Makefile.in: Explain why ../target and ../nat are not
13834 listed as include file search paths.
13835 (linux-waitpid.o): New object file rule.
13836 * configure.srv (srv_native_linux_obj): New variable.
13837 Replace all occurrences of linux native object files with
13838 $srv_native_linux_obj.
13839 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13840 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13841 (linux_enable_event_reporting): Remove declaration.
13842 (my_waitpid): Moved to common/linux-waitpid.c.
13843 (linux_wait_for_event): Pass ptid when calling
13844 linux_enable_event_reporting.
13845 (linux_supports_tracefork_flag): Remove.
13846 (linux_enable_event_reporting): Likewise.
13847 (linux_tracefork_grandchild): Remove.
13848 (STACK_SIZE): Moved to common/linux-ptrace.c.
13849 (linux_tracefork_child): Remove.
13850 (linux_test_for_tracefork): Remove.
13851 (linux_look_up_symbols): Call linux_supports_traceclone.
13852 (initialize_low): Remove call to linux_test_for_tracefork.
13853 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13854 common/linux-ptrace.h.
13855 (PTRACE_TYPE_ARG4): Likewise.
13856 Include linux-ptrace.h.
13858 2013-08-21 Pedro Alves <palves@redhat.com>
13860 * config.in: Renegerate.
13862 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13864 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13865 (SFILES): Remove $(srcdir)/common/target-common.c and
13866 add $(srcdir)/target/waitstatus.c.
13867 (OBS): Remove target-common.o and add waitstatus.o.
13868 (server_h): Remove $(srcdir)/../common/target-common.h and
13869 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13870 and $(srcdir)/../target/waitstatus.h.
13871 (target-common.o): Remove.
13872 (waitstatus.o): New target object file.
13873 * target.h: Do not include target-common.h and
13874 include target/resume.h, target/wait.h and
13875 target/waitstatus.h.
13877 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13879 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13880 to PTRACE_TYPE_ARG3.
13881 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13882 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13884 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13885 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13887 2013-07-27 Jie Zhang <jie@codesourcery.com>
13888 Daniel Jacobowitz <dan@codesourcery.com>
13889 Yao Qi <yao@codesourcery.com>
13891 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13892 (mips-linux-watch.o): New rule.
13893 (mips_linux_watch_h): New variable.
13894 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13896 * linux-mips-low.c: Include mips-linux-watch.h.
13897 (struct arch_process_info, struct arch_lwp_info): New.
13898 (update_watch_registers_callback): New function.
13899 (mips_linux_new_process, mips_linux_new_thread) New functions.
13900 (mips_linux_prepare_to_resume, mips_insert_point): New
13902 (mips_remove_point, mips_stopped_by_watchpoint): New
13904 (rsp_bp_type_to_target_hw_bp_type): New function.
13905 (mips_stopped_data_address): New function.
13906 (the_low_target): Add watchpoint support functions.
13908 2013-07-27 Yao Qi <yao@codesourcery.com>
13910 * i386-low.c: Include break-common.h.
13911 (enum target_hw_bp_type): Remove.
13913 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13915 * Makefile.in (SFILES): /common/target-common.c.
13916 (OBS): Add target-common.o.
13917 (server_h): Add $(srcdir)/../common/target-common.h.
13918 (target-common.o): New target.
13919 * server.c (queue_stop_reply_callback): Free
13920 status string after use.
13921 * target.c (target_waitstatus_to_string): Remove.
13922 * target.h: Include target-common.h.
13923 (resume_kind): Likewise.
13924 (target_waitkind): Likewise.
13925 (target_waitstatus): Likewise.
13926 (TARGET_WNOHANG): Likewise.
13928 2013-07-04 Yao Qi <yao@codesourcery.com>
13930 * Makefile.in (host_alias): Use @host_noncanonical@.
13931 (target_alias): Use @target_noncanonical@.
13932 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13933 ACX_NONCANONICAL_HOST.
13934 * configure: Regenerated.
13937 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13939 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13940 * configure: Rebuild.
13941 * Makefile.in (version_host, version_target): Get from configure.
13942 (version.c): Use $(version_host) and $(version_target).
13944 2013-07-03 Pedro Alves <palves@redhat.com>
13946 * Makefile.in (config.status): Depend on development.sh.
13947 * acinclude.m4: Include libmcheck.m4.
13948 * configure: Regenerate.
13950 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13952 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13953 attribute inside the parentheses.
13954 (winapi_DebugSetProcessKillOnExit): Ditto.
13955 (winapi_DebugBreakProcess): Ditto.
13956 (winapi_GenerateConsoleCtrlEvent): Ditto.
13958 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13960 * notif.h (notif_event): Add a dummy member to avoid compiler
13963 2013-07-01 Pedro Alves <palves@redhat.com>
13965 * hostio.c (HOSTIO_PATH_MAX): Define.
13966 (require_filename, handle_open, handle_unlink, handle_readlink):
13969 2013-07-01 Pedro Alves <palves@redhat.com>
13971 * server.h: Include "pathmax.h".
13972 * linux-low.c: Don't include sys/param.h.
13973 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13975 * win32-low.c: Don't include sys/param.h.
13976 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13978 2013-07-01 Pedro Alves <palves@redhat.com>
13980 * event-loop.c: Don't check HAVE_UNISTD_H before including
13982 * gdbreplay.c: Likewise.
13983 * remote-utils.c: Likewise.
13984 * server.c: Likewise.
13985 * configure.ac: Don't check for unistd.h.
13986 * configure: Regenerate.
13988 2013-06-28 Tom Tromey <tromey@redhat.com>
13990 * Makefile.in (version.c): Use version.in, not
13993 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13995 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13996 * configure: Rebuild.
13997 * Makefile.in (version_host, version_target): Get from configure.
13998 (version.c): Use $(version_host) and $(version_target).
14000 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14002 Fix trace-status to output user name without trailing colon.
14003 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14005 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14007 Fix trace-status to output proper start-time and stop-time.
14008 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14009 output start time and stop time in hex as gdb expects.
14011 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14013 * tracepoint.c (build_traceframe_info_xml): Output trace state
14014 variables present in the trace buffer.
14016 2013-06-24 Tom Tromey <tromey@redhat.com>
14018 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14020 (version.o): Remove.
14021 * gdbreplay.c: Include version.h.
14022 (version, host_name): Don't declare.
14023 * server.h: Include version.h.
14024 (version, host_name): Don't declare.
14026 2013-06-12 Pedro Alves <palves@redhat.com>
14028 * linux-x86-low.c (linux_is_elf64): Delete global.
14029 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14030 with local linux_pid_exe_is_elf_64_file use.
14032 2013-06-11 Pedro Alves <palves@redhat.com>
14034 * linux-low.c (regset_disabled, disable_regset): New functions.
14035 (regsets_fetch_inferior_registers)
14036 (regsets_store_inferior_registers): Use them.
14037 (initialize_regsets_info); Don't allocate the disabled_regsets
14039 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14042 2013-06-11 Pedro Alves <palves@redhat.com>
14044 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14047 2013-06-11 Pedro Alves <palves@redhat.com>
14049 * linux-x86-low.c (initialize_low_arch): Call
14050 init_registers_x32_avx_linux.
14052 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14054 Fix compatibility with Android Bionic.
14055 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14058 2013-06-07 Pedro Alves <palves@redhat.com>
14061 * Makefile.in (OBS): Add tdesc.o.
14062 (IPA_OBJS): Add tdesc-ipa.o.
14063 (tdesc-ipa.o): New rule.
14064 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14066 * linux-low.c (new_inferior): Delete.
14067 (disabled_regsets, num_regsets): Delete.
14068 (linux_add_process): Adjust to set the new per-process
14070 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14071 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14072 was a stop. When calling arch_setup, switch the current inferior
14073 to the thread that got an event.
14074 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14075 (regsets_fetch_inferior_registers)
14076 (regsets_store_inferior_registers): New regsets_info parameter.
14078 (linux_register_in_regsets): New regs_info parameter. Adjust to
14080 (register_addr, fetch_register, store_register): New usrregs_info
14081 parameter. Adjust to use it.
14082 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14083 parameter regs_info. Adjust to use it.
14084 (linux_fetch_registers): Get the current inferior's regs_info, and
14086 (linux_store_registers): Ditto.
14087 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14088 (initialize_low): Don't initialize the target_regsets here. Call
14089 initialize_low_arch.
14090 * linux-low.h (target_regsets): Delete declaration.
14091 (struct regsets_info): New.
14092 (struct usrregs_info): New.
14093 (struct regs_info): New.
14094 (struct process_info_private) <new_inferior>: New field.
14095 (struct linux_target_ops): Delete the num_regs, regmap, and
14096 regset_bitmap fields. New field regs_info.
14097 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14098 * i387-fp.c (num_xmm_registers): Delete.
14099 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14100 calls to new interface.
14101 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14102 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14103 Infer the number of xmm registers from the regcache's target
14105 * i387-fp.h (num_xmm_registers): Delete.
14106 * inferiors.c (add_thread): Don't install the thread's regcache
14108 * proc-service.c (gregset_info): Fetch the current inferior's
14109 regs_info. Adjust to use it.
14110 * regcache.c: Include tdesc.h.
14111 (register_bytes, reg_defs, num_registers)
14112 (gdbserver_expedite_regs): Delete.
14113 (get_thread_regcache): If the thread doesn't have a regcache yet,
14114 create one, instead of aborting gdbserver.
14115 (regcache_invalidate_one): Rename to ...
14116 (regcache_invalidate_thread): ... this.
14117 (regcache_invalidate_one): New.
14118 (regcache_invalidate): Only invalidate registers of the current
14120 (init_register_cache): Add target_desc parameter, and use it.
14121 (new_register_cache): Ditto. Assert the target description has a
14122 non zero registers_size.
14123 (regcache_cpy): Add assertions. Adjust.
14124 (realloc_register_cache, set_register_cache): Delete.
14125 (registers_to_string, registers_from_string): Adjust.
14126 (find_register_by_name, find_regno, find_register_by_number)
14127 (register_cache_size): Add target_desc parameter, and use it.
14128 (free_register_cache_thread, free_register_cache_thread_one)
14129 (regcache_release, register_cache_size): New.
14130 (register_size): Add target_desc parameter, and use it.
14131 (register_data, supply_register, supply_register_zeroed)
14132 (supply_regblock, supply_register_by_name, collect_register)
14133 (collect_register_as_string, collect_register_by_name): Adjust.
14134 * regcache.h (struct target_desc): Forward declare.
14135 (struct regcache) <tdesc>: New field.
14136 (init_register_cache, new_register_cache): Add target_desc
14138 (regcache_invalidate_thread): Declare.
14139 (regcache_invalidate_one): Delete declaration.
14140 (regcache_release): Declare.
14141 (find_register_by_number, register_cache_size, register_size)
14142 (find_regno): Add target_desc parameter.
14143 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14145 * remote-utils.c: Include tdesc.h.
14146 (outreg, prepare_resume_reply): Adjust.
14147 * server.c: Include tdesc.h.
14148 (gdbserver_xmltarget): Delete declaration.
14149 (get_features_xml, process_serial_event): Adjust.
14150 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14152 (struct process_info) <tdesc>: New field.
14153 (ipa_tdesc): Declare.
14154 * tdesc.c: New file.
14155 * tdesc.h: New file.
14156 * tracepoint.c: Include tdesc.h.
14157 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14158 (get_context_regcache): Adjust to pass ipa_tdesc down.
14159 (do_action_at_tracepoint): Adjust to get the register cache size
14160 from the context regcache's description.
14161 (traceframe_walk_blocks): Adjust to get the register cache size
14162 from the current trace frame's description.
14163 (traceframe_get_pc): Adjust to get current trace frame's
14164 description and pass it down.
14165 (gdb_collect): Adjust to get the register cache size from the
14167 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14168 (gdbserver_xmltarget): Delete.
14169 (initialize_low_tracepoint): Set the ipa's target description.
14170 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14171 (initialize_low_tracepoint): Set the ipa's target description.
14172 * linux-x86-low.c: Include tdesc.h.
14173 [__x86_64__] (is_64bit_tdesc): New.
14174 (ps_get_thread_area, x86_get_thread_area): Use it.
14175 (i386_cannot_store_register): Rename to ...
14176 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14177 (i386_cannot_fetch_register): Rename to ...
14178 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14179 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14181 (target_regsets): Rename to ...
14182 (x86_regsets): ... this.
14183 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14185 (x86_siginfo_fixup): Use is_64bit_tdesc.
14186 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14187 (tdesc_x32_avx_linux, tdesc_x32_linux)
14188 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14190 (x86_linux_update_xmltarget): Delete.
14191 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14192 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14193 (AMD64_LINUX_USER64_CS): New.
14194 (x86_linux_read_description): New, based on
14195 x86_linux_update_xmltarget.
14196 (same_process_callback): New.
14197 (x86_arch_setup_process_callback): New.
14198 (x86_linux_update_xmltarget): New.
14199 (x86_regsets_info): New.
14200 (amd64_linux_regs_info): New.
14201 (i386_linux_usrregs_info): New.
14202 (i386_linux_regs_info): New.
14203 (x86_linux_regs_info): New.
14204 (x86_arch_setup): Reimplement.
14205 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14206 (x86_emit_ops): Ditto.
14207 (the_low_target): Adjust. Install x86_linux_regs_info,
14208 x86_cannot_fetch_register, and x86_cannot_store_register.
14209 (initialize_low_arch): New.
14210 * linux-ia64-low.c (tdesc_ia64): Declare.
14211 (ia64_fetch_register): Adjust.
14212 (ia64_usrregs_info, regs_info): New globals.
14213 (ia64_regs_info): New function.
14214 (the_low_target): Adjust.
14215 (initialize_low_arch): New function.
14216 * linux-sparc-low.c (tdesc_sparc64): Declare.
14217 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14219 (sparc_arch_setup): New function.
14220 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14221 (the_low_target): Adjust.
14222 (initialize_low_arch): New function.
14223 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14224 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14225 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14226 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14227 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14228 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14229 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14230 (tdesc_powerpc_isa205_vsx64l): Declare.
14231 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14232 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14233 (ppc_set_pc, ppc_get_hwcap): Adjust.
14234 (ppc_usrregs_info): Forward declare.
14235 (!__powerpc64__) ppc_regmap_adjusted: New global.
14236 (ppc_arch_setup): Adjust to the current process'es target
14238 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14239 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14240 (ppc_store_evrregset): Adjust.
14241 (target_regsets): Rename to ...
14242 (ppc_regsets): ... this, and make static.
14243 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14244 (ppc_regs_info): New function.
14245 (the_low_target): Adjust.
14246 (initialize_low_arch): New function.
14247 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14248 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14249 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14250 (tdesc_s390x_linux64v2): Declare.
14251 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14252 (s390_fill_gregset, s390_store_last_break): Adjust.
14253 (target_regsets): Rename to ...
14254 (s390_regsets): ... this, and make static.
14255 (s390_get_pc, s390_set_pc): Adjust.
14256 (s390_get_hwcap): New target_desc parameter, and use it.
14257 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14258 (s390_arch_setup): Adjust to set the current process'es target
14259 description. Don't adjust the regmap.
14260 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14261 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14262 (regs_info_3264): New globals.
14263 (s390_regs_info): New function.
14264 (the_low_target): Adjust.
14265 (initialize_low_arch): New function.
14266 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14267 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14268 [__mips64] (init_registers_mips_linux)
14269 (init_registers_mips_dsp_linux): Delete defines.
14270 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14271 (have_dsp): New global.
14272 (mips_read_description): New, based on mips_arch_setup.
14273 (mips_arch_setup): Reimplement.
14274 (get_usrregs_info): New function.
14275 (mips_cannot_fetch_register, mips_cannot_store_register)
14276 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14277 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14278 (target_regsets): Rename to ...
14279 (mips_regsets): ... this, and make static.
14280 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14281 (dsp_regs_info, regs_info): New globals.
14282 (mips_regs_info): New function.
14283 (the_low_target): Adjust.
14284 (initialize_low_arch): New function.
14285 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14286 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14288 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14289 (arm_read_description): New, with bits factored from
14291 (arm_arch_setup): Reimplement.
14292 (target_regsets): Rename to ...
14293 (arm_regsets): ... this, and make static.
14294 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14295 (arm_regs_info): New function.
14296 (the_low_target): Adjust.
14297 (initialize_low_arch): New function.
14298 * linux-m68k-low.c (tdesc_m68k): Declare.
14299 (target_regsets): Rename to ...
14300 (m68k_regsets): ... this, and make static.
14301 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14302 (m68k_regs_info): New function.
14303 (m68k_arch_setup): New function.
14304 (the_low_target): Adjust.
14305 (initialize_low_arch): New function.
14306 * linux-sh-low.c (tdesc_sharch): Declare.
14307 (target_regsets): Rename to ...
14308 (sh_regsets): ... this, and make static.
14309 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14310 (sh_regs_info, sh_arch_setup): New functions.
14311 (the_low_target): Adjust.
14312 (initialize_low_arch): New function.
14313 * linux-bfin-low.c (tdesc_bfin): Declare.
14314 (bfin_arch_setup): New function.
14315 (bfin_usrregs_info, regs_info): New globals.
14316 (bfin_regs_info): New function.
14317 (the_low_target): Adjust.
14318 (initialize_low_arch): New function.
14319 * linux-cris-low.c (tdesc_cris): Declare.
14320 (cris_arch_setup): New function.
14321 (cris_usrregs_info, regs_info): New globals.
14322 (cris_regs_info): New function.
14323 (the_low_target): Adjust.
14324 (initialize_low_arch): New function.
14325 * linux-cris-low.c (tdesc_crisv32): Declare.
14326 (cris_arch_setup): New function.
14327 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14328 (cris_regs_info): New function.
14329 (the_low_target): Adjust.
14330 (initialize_low_arch): New function.
14331 * linux-m32r-low.c (tdesc_m32r): Declare.
14332 (m32r_arch_setup): New function.
14333 (m32r_usrregs_info, regs_info): New globals.
14334 (m32r_regs_info): Adjust.
14335 (initialize_low_arch): New function.
14336 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14337 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14338 (tic6x_usrregs_info): Forward declare.
14339 (tic6x_read_description): New function, based on ...
14340 (tic6x_arch_setup): ... this. Reimplement.
14341 (target_regsets): Rename to ...
14342 (tic6x_regsets): ... this, and make static.
14343 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14344 (tic6x_regs_info): New function.
14345 (the_low_target): Adjust.
14346 (initialize_low_arch): New function.
14347 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14348 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14349 (target_regsets): Rename to ...
14350 (xtensa_regsets): ... this, and make static.
14351 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14353 (xtensa_arch_setup, xtensa_regs_info): New functions.
14354 (the_low_target): Adjust.
14355 (initialize_low_arch): New function.
14356 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14357 (nios2_arch_setup): Set the current process'es tdesc.
14358 (target_regsets): Rename to ...
14359 (nios2_regsets): ... this.
14360 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14361 (nios2_regs_info): New function.
14362 (the_low_target): Adjust.
14363 (initialize_low_arch): New function.
14364 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14365 (aarch64_arch_setup): Set the current process'es tdesc.
14366 (target_regsets): Rename to ...
14367 (aarch64_regsets): ... this.
14368 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14369 (aarch64_regs_info): New function.
14370 (the_low_target): Adjust.
14371 (initialize_low_arch): New function.
14372 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14374 (target_regsets): Rename to ...
14375 (tile_regsets): ... this.
14376 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14377 (tile_regs_info): New function.
14378 (tile_arch_setup): Set the current process'es tdesc.
14379 (the_low_target): Adjust.
14380 (initialize_low_arch): New function.
14381 * spu-low.c (tdesc_spu): Declare.
14382 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14383 * win32-arm-low.c (tdesc_arm): Declare.
14384 (arm_arch_setup): New function.
14385 (the_low_target): Install arm_arch_setup instead of
14386 init_registers_arm.
14387 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14388 (init_windows_x86): Rename to ...
14389 (i386_arch_setup): ... this. Set `win32_tdesc'.
14390 (the_low_target): Adjust.
14391 * win32-low.c (win32_tdesc): New global.
14392 (child_add_thread): Don't create the thread cache here.
14393 (do_initial_child_stuff): Set the new process'es tdesc.
14394 * win32-low.h (struct target_desc): Forward declare.
14395 (win32_tdesc): Declare.
14396 * lynx-i386-low.c (tdesc_i386): Declare global.
14397 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14398 * lynx-low.c (lynx_tdesc): New global.
14399 (lynx_add_process): Set the new process'es tdesc.
14400 * lynx-low.h (struct target_desc): Forward declare.
14401 (lynx_tdesc): Declare global.
14402 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14403 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14404 * nto-low.c (nto_tdesc): New global.
14405 (do_attach): Set the new process'es tdesc.
14406 * nto-low.h (struct target_desc): Forward declare.
14407 (nto_tdesc): Declare.
14408 * nto-x86-low.c (tdesc_i386): Declare.
14409 (nto_x86_arch_setup): Set `nto_tdesc'.
14411 2013-06-04 Gary Benson <gbenson@redhat.com>
14413 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14414 to qSupported response when appropriate.
14415 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14416 with nonzero-length annex.
14417 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14418 arguments supplied in annex.
14420 2013-05-31 Doug Evans <dje@google.com>
14423 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14424 64 bits in 64-cross-32 environment.
14426 2013-05-28 Pedro Alves <palves@redhat.com>
14428 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14429 (aarch64-without-fpu.c): Delete rule.
14430 * configure.srv (aarch64*-*-linux*): Remove references to
14431 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14432 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14435 2013-05-24 Pedro Alves <palves@redhat.com>
14437 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14438 instead of strchr/decode_address. Error if the range isn't split
14439 with a ','. Don't assume there's be a ':' in the action.
14441 2013-05-23 Yao Qi <yao@codesourcery.com>
14442 Pedro Alves <palves@redhat.com>
14444 * linux-low.c (lwp_in_step_range): New function.
14445 (linux_wait_1): If the thread was range stepping and stopped
14446 outside the stepping range, report the stop to GDB. Otherwise,
14447 continue stepping. Add range stepping debug output.
14448 (linux_set_resume_request): Copy the step range from the resume
14449 request to the lwp.
14450 (linux_supports_range_stepping): New.
14451 (linux_target_ops) <supports_range_stepping>: Set to
14452 linux_supports_range_stepping.
14453 * linux-low.h (struct linux_target_ops)
14454 <supports_range_stepping>: New field.
14455 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14456 * linux-x86-low.c (x86_supports_range_stepping): New.
14457 (the_low_target) <supports_range_stepping>: Set to
14458 x86_supports_range_stepping.
14459 * server.c (handle_v_cont): Handle 'r' action.
14460 (handle_v_requests): Append ";r" if the target supports range
14462 * target.h (struct thread_resume) <step_range_start,
14463 step_range_end>: New fields.
14464 (struct target_ops) <supports_range_stepping>:
14466 (target_supports_range_stepping): New macro.
14468 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14470 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14471 confusion in comment.
14473 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14475 * lynx-low.c (struct process_info_private): New type.
14476 (lynx_add_process): New function.
14477 (lynx_create_inferior, lynx_attach): Replace calls to
14478 add_process by calls to lynx_add_process.
14479 (lynx_resume): If PTID is null, then try using
14480 current_process()->private->last_wait_event_ptid.
14482 (lynx_clear_inferiors): Delete. The contents of that function
14483 has been inlined in lynx_mourn;
14484 (lynx_wait_1): Save the ptid in the process's private data.
14485 (lynx_mourn): Free the process' private data. Replace call
14486 to lynx_clear_inferiors by call to clear_inferiors.
14488 2013-05-17 Yao Qi <yao@codesourcery.com>
14490 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14493 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14495 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14496 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14497 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14498 PT_TEXT_END_ADDR guards. Update comments.
14499 (linux_target_op) <read_offsets>: Conditionally define to
14500 linux_read_offsets if the target is UCLIBC and if it defines
14501 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14503 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14504 Andrew Jenner <andrew@codesourcery.com>
14506 * Makefile.in (SFILES): Add linux-nios2-low.c.
14507 (clean): Add action to delete nios2-linux.c.
14508 (nios2-linux.c): New rule.
14509 * configure.srv: Add nios2*-*-linux*.
14510 * linux-nios2-low.c: New.
14512 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14514 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14516 2013-04-25 Hui Zhu <hui@codesourcery.com>
14519 * ax.c (ax_printf): Add fflush.
14521 2013-04-22 Tom Tromey <tromey@redhat.com>
14523 * Makefile.in (SFILES): Add filestuff.c.
14524 (OBS): Add filestuff.o.
14525 (filestuff.o): New target.
14526 * config.in, configure: Rebuild.
14527 * configure.ac: Check for fdwalk, pipe2.
14529 2013-04-17 Pedro Alves <palves@redhat.com>
14531 * configure.ac (USE_THREAD_DB): Delete variable.
14532 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14533 Don't AC_SUBST USE_THREAD_DB.
14534 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14535 * config.in, configure: Regenerate.
14537 2013-04-16 Pedro Alves <palves@redhat.com>
14539 * linux-low.h (struct lwp_info) <thread_known>: Move under
14540 the USE_THREAD_DB #ifdef.
14542 2013-04-16 Pedro Alves <palves@redhat.com>
14544 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14545 (linux-low.o): Delete rule.
14546 * linux-low.h: Always include "gdb_thread_db.h" instead of
14547 conditionally including thread_db.h.
14548 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14551 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14553 * Makefile.in (install-only): Fix make install regression.
14555 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14557 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14558 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14560 * gdbserver.1: Remove.
14562 2013-03-22 Pedro Alves <palves@redhat.com>
14564 * linux-low.c (handle_extended_wait): Don't call
14565 linux_enable_event_reporting.
14567 2013-03-15 Tony Theodore <tonyt@logyst.com>
14570 * Makefile.in (SHELL): Use @SHELL@.
14572 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14574 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14577 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14579 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14580 Remove extraneous NULL element.
14582 2013-03-13 Yao Qi <yao@codesourcery.com>
14584 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14585 'V' block in trace frame.
14587 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14589 * target.h (struct target_ops): Add btrace ops.
14590 (target_supports_btrace): New macro.
14591 (target_enable_btrace): New macro.
14592 (target_disable_btrace): New macro.
14593 (target_read_btrace): New macro.
14594 * gdbthread.h (struct thread_info): Add btrace field.
14595 * server.c: Include btrace-common.h.
14596 (handle_btrace_general_set): New function.
14597 (handle_btrace_enable): New function.
14598 (handle_btrace_disable): New function.
14599 (handle_general_set): Call handle_btrace_general_set.
14600 (handle_qxfer_btrace): New function.
14601 (struct qxfer qxfer_packets[]): Add btrace entry.
14602 * inferiors.c (remove_thread): Disable btrace.
14603 * linux-low: Include linux-btrace.h.
14604 (linux_low_enable_btrace): New function.
14605 (linux_low_read_btrace): New function.
14606 (linux_target_ops): Add btrace ops.
14607 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14608 Add srv_linux_btrace=yes.
14609 (x86_64-*-linux*): Add linux-btrace.o.
14610 Add srv_linux_btrace=yes.
14611 * configure.ac: Define HAVE_LINUX_BTRACE.
14612 * config.in: Regenerated.
14613 * configure: Regenerated.
14615 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14617 * server.c (handle_qxfer): Preserve error message if -3 is
14619 (qxfer): Document the -3 return value.
14621 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14623 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14624 (linux_btrace_h): New variable.
14625 (linux-btrace.o): New rule.
14627 2013-03-08 Stan Shebs <stan@codesourcery.com>
14628 Hafiz Abid Qadeer <abidh@codesourcery.com>
14630 * tracepoint.c (trace_buffer_size): New global.
14631 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14632 (init_trace_buffer): Change to one-argument function. Allocate
14633 trace buffer memory.
14634 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14635 handle QTBuffer:size packet.
14636 (cmd_bigqtbuffer_size): New function.
14637 (initialize_tracepoint): Call init_trace_buffer with
14638 DEFAULT_TRACE_BUFFER_SIZE.
14639 * server.c (handle_query): Add QTBuffer:size in the
14642 2013-03-07 Yao Qi <yao@codesourcery.com>
14644 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14645 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14647 (cmd_qtsp): Adjust condition. Do post increment.
14648 Set cur_action and cur_step_action back to 0.
14650 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14653 * linux-low.c (linux_write_memory): Return early success if LEN is
14656 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14658 * configure.srv: Add x86_64-*-cygwin* as target.
14660 2013-02-28 Tom Tromey <tromey@redhat.com>
14662 * configure.ac: Invoke AC_SYS_LARGEFILE.
14663 * configure, config.in: Rebuild.
14665 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14667 * win32-low.c: Throughout, fix format strings and casts of
14668 printf-like functions to avoid type related warnings on all
14670 (get_child_debug_event): Print dwDebugEventCode as hex since
14671 that's how it's usually documented.
14673 2013-02-28 Yao Qi <yao@codesourcery.com>
14675 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14678 2013-02-27 Jiong Wang <jiwang@tilera.com>
14680 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14681 (reg-tilegx32.c): New rule.
14682 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14683 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14684 different register info initializer according to elf class.
14685 (init_registers_tilgx32): New function. The tilegx32 register info
14687 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14688 (tile_store_gregset): Likewise.
14690 2013-02-27 Yao Qi <yao@codesourcery.com>
14692 * server.c (process_point_options): Print debug message when
14693 debug_threads is true.
14695 2013-02-26 Yao Qi <yao@codesourcery.com>
14697 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14699 2013-02-19 Pedro Alves <palves@redhat.com>
14700 Kai Tietz <ktietz@redhat.com>
14704 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14705 instead of strtoul to extract address from packet.
14706 (process_serial_event) <'z'>: Likewise.
14708 2013-02-18 Yao Qi <yao@codesourcery.com>
14710 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14712 2013-02-14 Pedro Alves <palves@redhat.com>
14716 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14717 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14719 2013-02-14 Pedro Alves <palves@redhat.com>
14721 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14723 2013-02-14 Pedro Alves <palves@redhat.com>
14725 * tracepoint.c (save_string): Delete.
14726 (add_tracepoint_action): Use savestring instead of save_string.
14728 2013-02-12 Pedro Alves <palves@redhat.com>
14730 * linux-xtensa-low.c: Ditto.
14731 * xtensa-xtregs.c: Ditto.
14733 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14735 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14738 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14740 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14741 aarch64_num_wp_regs and aarch64_num_bp_regs to
14742 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14744 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14746 * linux-aarch64-low.c (ps_get_thread_area): Replace
14747 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14749 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14750 Marcus Shawcroft <marcus.shawcroft@arm.com>
14751 Nigel Stephens <nigel.stephens@arm.com>
14752 Yufeng Zhang <yufeng.zhang@arm.com>
14754 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14755 (aarch64.c, aarch64-without-fpu.c): New targets.
14756 * configure.srv (aarch64*-*-linux*): New.
14757 * linux-aarch64-low.c: New file.
14759 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14761 * linux-low.c (handle_extended_wait, linux_create_inferior)
14762 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14763 (dequeue_one_deferred_signal, linux_resume_one_thread)
14764 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14765 (linux_tracefork_grandchild, linux_test_for_tracefork)
14766 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14767 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14768 where the argument is 0.
14770 2013-01-25 Yao Qi <yao@codesourcery.com>
14772 * event-loop.c: Include "queue.h".
14773 (gdb_event_p): New typedef.
14774 (struct gdb_event) <next_event>: Remove.
14775 (event_queue): Change to QUEUE(gdb_event_p).
14776 (async_queue_event): Remove.
14777 (gdb_event_xfree): New.
14778 (initialize_event_loop): New.
14779 (process_event): Use API from QUEUE.
14780 (wait_for_event): Likewise.
14781 * server.c (main): Call initialize_event_loop.
14782 * server.h (initialize_event_loop): Declare.
14784 2013-01-18 Yao Qi <yao@codesourcery.com>
14786 * ax.h (struct eval_agent_expr_context): New.
14787 (gdb_eval_agent_expr): Update declaration.
14788 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14789 TFRAME. Add new argument CTX.
14790 * server.h (struct eval_agent_expr_context): Declare.
14791 (agent_mem_read, agent_tsv_read): Update declaration.
14792 (agent_mem_read_string): Likewise.
14793 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14794 (add_traceframe_block): Add new argument TPOINT.
14795 Increase TPOINT->traceframe_usage.
14796 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14797 eval_tracepoint_agent_expr.
14798 (condition_true_at_tracepoint): Likewise.
14799 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14800 (agent_mem_read_string, agent_tsv_read): Likewise.
14802 2013-01-16 Yao Qi <yao@codesourcery.com>
14804 * linux-low.c (linux_resume_one_lwp): Don't check
14805 'lwp->bp_reinsert != 0'.
14807 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14808 Pedro Alves <palves@redhat.com>
14810 * lynx-low.c (ptrace_request_to_str): Define a temporary
14811 macro and use it to simplify this function's implementation.
14813 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14815 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14818 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14820 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14822 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14824 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14826 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14828 * lynx-low.c (lynx_resume): Use the resume_info parameter
14829 to determine the ptid for the lynx_ptrace call, unless
14830 it is equal to minus_one_ptid, in which case we use the
14831 ptid of the current_inferior.
14832 (lynx_wait_1): After having received a thread create/exit
14833 event, resume the inferior's execution using the signaling
14834 thread's ptid, rather than the old ptid.
14836 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14838 * lynx-low.c (lynx_resume): Delete variable ret.
14840 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14842 * gdbreplay.c (gdbreplay_version): Update copyright year.
14843 * server.c (gdbserver_version): Likewise.
14845 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14847 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14850 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14852 * lynx-low.c (ptrace_request_to_str): Add handling for
14853 PTRACE_GETTRACESIG.
14855 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14857 * lynx-low.c (lynx_attach): Delete variable new_process.
14859 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14861 * lynx-low.c (lynx_create_inferior): Delete variable
14864 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14866 * lynx-low.c (ptrace_request_to_str): Do not handle
14867 PTRACE_GETTHREADLIST if this macro does not exist.
14869 2012-12-15 Yao Qi <yao@codesourcery.com>
14871 * Makefile.in (OBS): Add notif.o.
14872 * notif.c, notif.h: New.
14873 * server.c: Include "notif.h".
14874 (struct vstop_notif) <next>: Remove.
14876 (queue_stop_reply): Update.
14877 (push_event, send_next_stop_reply): Remove.
14878 (discard_queued_stop_replies): Update.
14879 (notif_stop): New variable.
14880 (handle_v_stopped): Remove.
14881 (handle_v_requests): Don't call handle_v_stopped. Call
14882 handle_ack_notif instead.
14883 (queue_stop_reply_callback): Call notif_event_enque instead
14884 of queue_stop_reply.
14885 (handle_status): Don't call send_next_stop_reply, call
14886 notif_write_event instead.
14887 (kill_inferior_callback): Likewise.
14888 (detach_or_kill_inferior_callback): Likewise.
14889 (main): Call initialize_notif.
14890 (process_serial_event): Call QUEUE_is_empty.
14891 (handle_target_event): Call notif_push instead of push event.
14892 * server.h (push_event): Remove declaration.
14894 2012-12-10 Tom Tromey <tromey@redhat.com>
14896 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14897 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14900 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14901 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14902 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14903 (amd64-linux-ipa.o, ax.o): Rewrite.
14904 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14905 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14906 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14907 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14908 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14909 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14910 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14911 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14912 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14913 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14914 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14915 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14916 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14917 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14918 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14919 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14920 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14921 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14922 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14923 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14924 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14925 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14926 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14927 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14928 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14929 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14930 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14931 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14932 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14933 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14934 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14935 (reg-tilegx.o): Remove.
14936 (all_object_files): New macro.
14937 Include .deps files.
14938 * aclocal.m4, configure: Rebuild.
14939 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14940 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14941 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14943 2012-12-05 Tom Tromey <tromey@redhat.com>
14946 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14948 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14950 * configure.ac: Check for linux/perf_event.h.
14951 * config.in: Regenerated.
14952 * configure: Regenerated.
14954 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14956 * hostio.c (handle_readlink): Decrease buffer size
14957 parameter passed to readlink by one byte.
14959 2012-11-26 Yao Qi <yao@codesourcery.com>
14961 * configure.ac (build_warnings): Append '-Wempty-body'.
14962 * configure: Regenerated.
14963 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14966 2012-11-15 Pierre Muller <muller@sourceware.org>
14968 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14969 * config.in: Regenerate.
14970 * configure: Regenerate.
14971 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14972 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14973 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14974 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14976 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14977 instead of <sys/wait.h> header.
14978 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14980 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14982 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14983 (various make rules): Remove -DGDBSERVER
14985 2012-11-09 Yao Qi <yao@codesourcery.com>
14987 * spu-low.c (current_ptid): Move it to ..
14988 * gdbthread.h: ... here. New.
14989 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14990 * server.c (myresume, process_serial_event): Likewise.
14991 * thread-db.c (thread_db_find_new_threads): Likewise.
14992 * tracepoint.c (run_inferior_command): Likewise.
14994 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14996 * server.c (handle_search_memory_1): Include access length in
14999 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15001 * linux-crisv32-low.c: Fix compile errors.
15003 2012-09-04 Yao Qi <yao@codesourcery.com>
15005 * tracepoint.c (cmd_qtsv): Adjust debug message.
15006 Don't check CUR_TPOINT.
15008 2012-08-28 Yao Qi <yao@codesourcery.com>
15010 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15011 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15012 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15013 Remove declarations of xmalloc, xreallloc, xstrdup and
15015 * Makefile.in (libiberty_h): New.
15016 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15017 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15019 2012-08-23 Yao Qi <yao@codesourcery.com>
15021 * server.h: Remove declaration of 'xsnprintf'.
15023 2012-08-22 Keith Seitz <keiths@redhat.com>
15025 * server.h: Include build-gnulib-gbserver/config.h.
15026 * gdbreplay.c: Likewise.
15028 2012-08-08 Doug Evans <dje@google.com>
15030 * Makefile.in (SFILES): Add gdb_vecs.c.
15031 (OBS): Add gdb_vecs.o.
15032 (gdb_vecs_h, host_defs_h): New variables.
15033 (thread-db.o): Add $(gdb_vecs_h) dependency.
15034 (gdb_vecs.o): New rule.
15035 * thread-db.c: #include "gdb_vecs.h".
15036 (thread_db_load_search): Use a vector to iterate over path elements.
15037 Handle text appearing after "$pdir".
15039 * configure.ac: Add check for strstr.
15040 * config.in: Regenerate.
15041 * configure: Regenerate.
15043 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15045 * hostio.c (handle_pread): If pread fails, fall back to attempting
15047 (handle_pwrite): Likewise for pwrite.
15049 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15051 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15052 between unsupported TYPE and unimplementable ADDR/LEN combination.
15053 (arm_insert_point): Act on new return value.
15055 2012-07-31 Pedro Alves <palves@redhat.com>
15057 * server.c (process_point_options): Only skip tokens if we find
15058 one that is unrecognized. Don't treat 'X' specially while
15059 skipping unrecognized tokens.
15061 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15063 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15064 to 4-byte-align HW breakpoint addresses for Thumb.
15066 2012-07-27 Yao Qi <yao@codesourcery.com>
15070 * server.h: Declare gdb_agent_about_to_close.
15071 * target.c (kill_inferior): Include "agent.h".
15072 New. Send command 'kill'.
15073 * target.h (kill_inferior): Removed macro.
15074 * tracepoint.c (gdb_agent_about_to_close): New.
15075 (gdb_agent_helper_thread): Handle command 'close'.
15076 Wait endlessly until the inferior stops.
15077 Install gdb_agent_remove_socket to atexit hook.
15078 (agent_socket_name): New static variable.
15079 (gdb_agent_socket_init): Replace local variable 'name' with
15080 'agent_socket_name'.
15081 (gdb_agent_remove_socket): New.
15083 2012-07-27 Yao Qi <yao@codesourcery.com>
15085 * server.c (process_point_options): Stop at 'X' when parsing.
15087 2012-07-19 Michael Eager <eager@eagercon.com>
15089 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15091 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15092 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15093 hardware breakpoint.
15095 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15097 * gdbserver/linux-low.c (initialize_low): Call
15098 linux_ptrace_init_warnings.
15100 2012-07-02 Doug Evans <dje@google.com>
15102 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15105 2012-07-02 Stan Shebs <stan@codesourcery.com>
15107 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15108 (ax.o): Add it to build rule.
15110 (OBS): Add format.o.
15111 (IPA_OBS): Add format.o.
15112 * server.c (handle_query): Claim support for breakpoint commands.
15113 (process_point_options): Add command case.
15114 (process_serial_event): Leave running if there are printfs in
15116 * mem-break.h (any_persistent_commands): Declare.
15117 (add_breakpoint_commands): Declare.
15118 (gdb_no_commands_at_breakpoint): Declare.
15119 (run_breakpoint_commands): Declare.
15120 * mem-break.c (struct point_command_list): New struct.
15121 (struct breakpoint): New field command_list.
15122 (any_persistent_commands): New function.
15123 (add_commands_to_breakpoint): New function.
15124 (add_breakpoint_commands): New function.
15125 (gdb_no_commands_at_breakpoint): New function.
15126 (run_breakpoint_commands): New function.
15127 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15129 * ax.c: Include format.h.
15130 (ax_printf): New function.
15131 (gdb_eval_agent_expr): Add printf opcode.
15133 2012-06-13 Yao Qi <yao@codesourcery.com>
15135 * server.c (start_inferior): Remove duplicated writes to fields
15136 'last_resume_kind' and 'last_status' of 'current_inferior'.
15138 2012-06-12 Yao Qi <yao@codesourcery.com>
15139 Pedro Alves <palves@redhat.com>
15141 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15143 * server.c (handle_v_cont): Extend comment.
15145 2012-06-11 Yao Qi <yao@codesourcery.com>
15147 * linux-low.c (linux_attach): Add 'static'.
15149 2012-06-06 Yao Qi <yao@codesourcery.com>
15151 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15153 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15155 Fix gcc -flto compilation warning.
15156 * server.c (main): Make variable multi_mode and attach volatile.
15158 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15160 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15161 if the platform doesn't know about it.
15163 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15165 * Makefile.in (SFILES): Add linux-tile-low.c.
15166 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15167 * configure.srv: Handle tilegx-*-linux*.
15168 * linux-tile-low.c: New file.
15170 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15172 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15174 2012-05-24 Pedro Alves <palves@redhat.com>
15178 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15180 2012-05-24 Pedro Alves <palves@redhat.com>
15184 Replace target_signal with gdb_signal throughout.
15186 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15188 * linux-low.c (linux_store_registers): Avoid the copying sequence
15189 when no data has been retrieved by ptrace.
15191 2012-05-22 Will Deacon <will.deacon@arm.com>
15193 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15194 Include asm/ptrace.h.
15195 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15198 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15200 * linux-low.c (linux_store_registers): Don't re-retrieve data
15201 with ptrace that has already been obtained from /proc. Always
15202 copy any data retrieved with ptrace to the buffer supplied.
15204 2012-05-11 Yao Qi <yao@codesourcery.com>
15205 Pedro Alves <palves@redhat.com>
15207 * linux-low.c (enum stopping_threads_kind): New.
15208 (stopping_threads): Change type to `enum stopping_threads_kind'.
15209 (handle_extended_wait): If stopping and suspending threads, leave
15210 the new_lwp suspended too.
15211 (linux_wait_for_event): Adjust.
15212 (stop_all_lwps): Set `stopping_threads' to
15213 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15214 whether we're suspending threads or just stopping them. Assert no
15217 2012-04-29 Yao Qi <yao@codesourcery.com>
15219 * server.h: Move some code to ...
15220 * gdbthread.h: ... here. New.
15221 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15222 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15223 (nto-low.o, win32-low.o): Likewise.
15224 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15225 * regcache.c, remote-utils.c, server.c: Likewise.
15226 * target.c, tracepoint.c, win32-low.c: Likewise.
15228 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15230 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15231 (PTRACE_ARG4_TYPE): Likewise.
15232 (PTRACE_XFER_TYPE): Likewise.
15233 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15234 ptrace to PTRACE_ARG3_TYPE.
15235 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15236 (PTRACE_ARG4_TYPE): Likewise.
15237 (PTRACE_XFER_TYPE): Likewise.
15238 (linux_detach_one_lwp): Cast fourth argument of
15239 ptrace to long then PTRACE_ARG4_TYPE.
15240 (regsets_fetch_inferior_registers): Cast third argument of
15241 ptrace to long then PTRACE_ARG3_TYPE.
15242 (regsets_store_inferior_registers): Likewise.
15244 2012-04-20 Pedro Alves <palves@redhat.com>
15246 * configure: Regenerate.
15248 2012-04-19 Pedro Alves <palves@redhat.com>
15250 * Makefile.in (GNULIB_BUILDDIR): New.
15251 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15252 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15253 (all, install-only, uninstall, clean-info, all-lib, clean): No
15254 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15255 (maintainer-clean realclean distclean): Use subdir_do.
15257 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15258 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15259 * acinclude.m4: Include acx_configure_dir.m4.
15260 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15261 calls. Call AC_PROG_RANLIB. Configure gnulib using
15264 (GNULIB_STDINT_H): Adjust.
15265 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15266 * gdbreplay.c: Include build-gnulib/config.h.
15267 * server.h: Likewise.
15268 * aclocal.m4: Regenerate.
15269 * config.in: Regenerate.
15270 * configure: Regenerate.
15272 2012-04-19 Pedro Alves <palves@redhat.com>
15274 * Makefile.in (LIBGNU, INCGNU): Adjust.
15275 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15276 (all, install-only, uninstall, clean-info, all-lib, clean)
15277 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15278 * configure.ac: Adjust AC_OUTPUT output.
15279 * aclocal.m4: Regenerate.
15280 * configure: Regenerate.
15282 2012-04-19 Pedro Alves <palves@redhat.com>
15284 * Makefile.in (generated_files): New.
15285 (server_h): Remove the explicit dependency on config.h, and depend
15286 on $generated_files.
15288 2012-04-19 Pedro Alves <palves@redhat.com>
15290 * Makefile.in (INCGNU): Add -Ignulib.
15292 2012-04-19 Pedro Alves <palves@redhat.com>
15294 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15295 (INCGNU): ... this, and spell out -I here.
15296 (GNULIB_LIB): Rename to ...
15297 (LIBGNU): ... this.
15298 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15300 2012-04-19 Pedro Alves <palves@redhat.com>
15302 * config.in: Regenerate.
15304 2012-04-19 Pedro Alves <palves@redhat.com>
15306 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15307 * server.h (memmem): Remove declaration.
15308 * config.in: Regenerate.
15309 * configure: Regenerate.
15311 2012-04-19 Yao Qi <yao@codesourcery.com>
15313 * Makefile.in (SFILES): Add common/vec.c.
15317 2012-04-19 Yao Qi <yao@codesourcery.com>
15319 * remote-utils.c (prepare_resume_reply): Replace with macro
15320 target_core_of_thread.
15321 * server.c (handle_qxfer_threads_proper): Likewise.
15322 * target.h (traget_core_of_thread): New macro.
15324 2012-04-18 Pedro Alves <palves@redhat.com>
15326 * aclocal.m4: Regenerate.
15327 * configure: Regenerate.
15329 2012-04-16 Yao Qi <yao@codesourcery.com>
15331 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15332 duplicated on address.
15334 2012-04-16 Yao Qi <yao@codesourcery.com>
15336 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15337 (struct tracepoint_action_ops) <send>: New field.
15338 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15339 (agent_expr_send, x_tracepoint_action_send): New.
15340 (l_tracepoint_action_send): New.
15341 (cmd_qtdp): Download and install tracepoint
15342 according to `use_agent'.
15343 (run_inferior_command): Add one more parameter `len'.
15345 (tracepoint_send_agent): New.
15346 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15348 2012-04-16 Yao Qi <yao@codesourcery.com>
15350 * tracepoint.c (download_tracepoints): Moved to ...
15351 (cmd_qtstart): ... here.
15353 2012-04-14 Yao Qi <yao@codesourcery.com>
15355 * tracepoint.c: Include inttypes.h.
15356 (struct collect_memory_action): Use sized types.
15357 (struct tracepoint): Likewise.
15358 (cmd_qtdp, stop_tracing): Update print specifiers.
15359 (cmd_qtp, response_tracepoint): Likewise.
15360 (collect_data_at_tracepoint): Likewise.
15361 (collect_data_at_step): Likewise.
15363 2012-04-14 Yao Qi <yao@codesourcery.com>
15365 Import gnulib module inttypes.
15366 * aclocal.m4, config.in, configure: Regenerated.
15368 2012-04-14 Yao Qi <yao@codesourcery.com>
15370 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15371 Makefile and config.status at last.
15373 2012-04-13 Yao Qi <yao@codesourcery.com>
15375 * tracepoint.c: Include stdint.h unconditionally.
15377 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15379 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15380 on BFD_HAVE_SYS_PROCFS_TYPE.
15381 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15382 * configure: Regenerate.
15383 * config.in: Likewise.
15385 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15387 * Makefile.in (clean): Also remove x32.c x32-linux.c
15388 x32-avx.c x32-avx-linux.c.
15389 (x32.o): New target.
15391 (x32-linux.o): Likewise.
15392 (x32-linux.c): Likewise.
15393 (x32-avx.o): Likewise.
15394 (x32-avx.c): Likewise.
15395 (x32-avx-linux.o): Likewise.
15396 (x32-avx-linux.c): Likewise.
15398 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15399 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15400 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15401 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15402 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15403 i386/x32-avx-linux.xml.
15405 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15406 (init_registers_x32_avx_linux): Likwise.
15407 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15408 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15410 2012-04-13 Pedro Alves <palves@redhat.com>
15412 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15413 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15414 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15415 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15418 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15420 * linux-x86-low.c (compat_x32_clock_t): New.
15421 (compat_x32_siginfo_t): Likewise.
15422 (compat_x32_siginfo_from_siginfo): Likewise.
15423 (siginfo_from_compat_x32_siginfo): Likewise.
15424 (linux_is_elf64): Likewise.
15425 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15426 and siginfo_from_compat_x32_siginfo for x32.
15427 (x86_arch_setup): Set linux_is_elf64.
15429 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15432 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15434 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15435 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15436 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15437 compatible with process.
15439 2012-04-12 Yao Qi <yao@codesourcery.com>
15441 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15442 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15443 (install-only, install-info, clean): Handle sub dir gnulib.
15444 (all-lib, am--refresh): New targets.
15445 (memmem.o): Remove target.
15446 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15447 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15448 (AC_REPLACE_FUNCS): Remove memmem.
15449 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15450 (AC_OUTPUT): Generate Makefile in gnulib/.
15451 * aclocal.m4, config.in, configure: Regenerated.
15453 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15455 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15457 2012-04-05 Pedro Alves <palves@redhat.com>
15459 -Werror=strict-aliasing
15461 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15464 2012-04-04 Pedro Alves <palves@redhat.com>
15466 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15467 (sparc_store_gregset_from_stack, sparc_store_gregset)
15468 (sparc_breakpoint_at): Fix formatting.
15470 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15472 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15474 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15475 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15476 * config.in: Regenerate.
15477 * configure: Likewise.
15479 2012-03-29 Pedro Alves <palves@redhat.com>
15481 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15482 Correct ptrace arguments.
15484 2012-03-28 Pedro Alves <palves@redhat.com>
15486 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15487 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15488 (IA64_FR1_REGNUM): New defines.
15489 (ia64_fetch_register): New.
15490 (the_low_target): Install it.
15491 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15493 * linux-low.c (linux_fetch_registers): Try the
15494 the_low_target.fetch_register hook first.
15496 * linux-arm-low.c (the_low_target): Adjust.
15497 * linux-bfin-low.c (the_low_target): Adjust.
15498 * linux-cris-low.c (the_low_target): Adjust.
15499 * linux-crisv32-low.c (the_low_target): Adjust.
15500 * linux-m32r-low.c (the_low_target): Adjust.
15501 * linux-m68k-low.c (the_low_target): Adjust.
15502 * linux-mips-low.c (the_low_target): Adjust.
15503 * linux-ppc-low.c (the_low_target): Adjust.
15504 * linux-s390-low.c (the_low_target): Adjust.
15505 * linux-sh-low.c (the_low_target): Adjust.
15506 * linux-sparc-low.c (the_low_target): Adjust.
15507 * linux-tic6x-low.c (the_low_target): Adjust.
15508 * linux-x86-low.c (the_low_target): Adjust.
15509 * linux-xtensa-low.c (the_low_target): Adjust.
15511 2012-03-26 Pedro Alves <palves@redhat.com>
15513 * server.c (handle_qxfer_libraries): Don't bail early if
15514 the_target->qxfer_libraries_svr4 is not NULL.
15516 2012-03-26 Pedro Alves <palves@redhat.com>
15518 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15520 2012-03-23 Pedro Alves <palves@redhat.com>
15522 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15523 "library-list-svr4" element's start tag when the the DSO list is
15526 2012-03-23 Pedro Alves <palves@redhat.com>
15528 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15529 a variable whose type size is the same as the inferior's pointer
15532 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15534 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15536 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15537 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15538 * linux-low.h: Include <signal.h>.
15539 (struct siginfo): Remove forward declaration.
15540 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15543 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15545 * .gitignore: Ignore more files.
15547 2012-03-19 Pedro Alves <palves@redhat.com>
15548 Jan Kratochvil <jan.kratochvil@redhat.com>
15550 * server.c (cont_thread, general_thread): Add describing comments.
15551 (start_inferior): Clear `cont_thread'.
15552 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15555 2012-03-15 Yao Qi <yao@codesourcery.com>
15557 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15559 (cmd_qtdp): ... here.
15561 2012-03-15 Yao Qi <yao@codesourcery.com>
15563 * tracepoint.c (struct tracepoint_action_ops): New.
15564 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15565 (m_tracepoint_action_download): New.
15566 (r_tracepoint_action_download): New.
15567 (x_tracepoint_action_download): New.
15568 (l_tracepoint_action_download): New.
15569 (add_tracepoint_action): Install `action->ops' according type.
15570 (download_tracepoint_1): Move code `download' function pointer
15571 of various tracepoint_action_ops.
15573 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15575 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15576 linux_ptrace_attach_warnings.
15578 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15580 * Makefile.in (linux-ptrace.o): New.
15581 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15582 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15583 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15584 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15585 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15587 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15589 2012-03-08 Yao Qi <yao@codesourcery.com>
15590 Pedro Alves <palves@redhat.com>
15592 Fix PR server/13392.
15593 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15594 offset of JMP insn.
15595 * tracepoint.c (remove_tracepoint): New.
15596 (cmd_qtdp): Call remove_tracepoint when failed to install.
15598 2012-03-07 Pedro Alves <palves@redhat.com>
15600 * linux-low.c (get_detach_signal): New.
15601 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15602 Pass on pending signals to PTRACE_DETACH. Check the result of the
15604 * server.c (program_signals, program_signals_p): New.
15605 (handle_general_set): Handle QProgramSignals.
15606 * server.h (program_signals, program_signals_p): Declare.
15608 2012-03-05 Pedro Alves <palves@redhat.com>
15609 Jan Kratochvil <jan.kratochvil@redhat.com>
15611 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15614 2012-03-03 Yao Qi <yao@codesourcery.com>
15616 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15617 agent_look_up_symbols.
15619 2012-03-03 Yao Qi <yao@codesourcery.com>
15621 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15622 (linux-x86-low.o): Likewise.
15623 * server.h: Remove in_process_agent_loaded.
15624 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15628 2012-03-03 Yao Qi <yao@codesourcery.com>
15630 * tracepoint.c (gdb_agent_capability): New global.
15631 (in_process_agent_loaded_ust): Renamed to
15632 `in_process_agent_supports_ust'.
15634 (in_process_agent_supports_ust): Call agent_capability_check.
15635 (clear_installed_tracepoints): Assert that agent supports
15638 2012-03-03 Yao Qi <yao@codesourcery.com>
15640 * linux-low.c (linux_supports_agent): New.
15641 (linux_target_ops): Initialize field `supports_agent' with
15642 linux_supports_agent.
15643 * target.h (struct target_ops) <supports_agent>: New.
15644 (target_supports_agent): New macro.
15645 * server.c (handle_general_set): Handle packet 'QAgent'.
15646 (handle_query): Send `QAgent+'.
15647 * Makefile.in (server.o): Depends on agent.h.
15649 2012-03-03 Yao Qi <yao@codesourcery.com>
15651 * Makefile.in (OBS): Add agent.o.
15652 Add new rule for agent.o.
15653 Track dependence of tracepoint.c on agent.h.
15654 * tracepoint.c (run_inferior_command_1):
15655 (run_inferior_command): Call agent_run_command.
15656 (gdb_ust_connect_sync_socket): Deleted. Move it to
15658 (resume_thread, stop_thread): Likewise.
15659 (gdb_ust_socket_init): Renamed to ...
15660 (gdb_agent_socket_init): ... New.
15661 (gdb_ust_thread): Renamed to ...
15662 (gdb_agent_helper_thread): ... New.
15663 (gdb_ust_init): Move some code to ...
15664 (gdb_agent_init): ... here. New.
15665 [HAVE_UST]: Call gdb_ust_init.
15666 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15667 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15668 * config.in, configure: Regenerated.
15670 2012-03-02 Pedro Alves <palves@redhat.com>
15672 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15673 * linux-low.c (struct simple_pid_list): New.
15674 (stopped_pids): New a struct simple_pid_list pointer.
15675 (add_to_pid_list, pull_pid_from_list): New.
15676 (handle_extended_wait): Don't assume the first signal new children
15677 report is SIGSTOP. Adjust call to pull_pid_from_list.
15678 (linux_wait_for_lwp): Adjust.
15680 2012-03-02 Yao Qi <yao@codesourcery.com>
15682 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15685 2012-03-02 Yao Qi <yao@codesourcery.com>
15687 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15688 `stop_pc' and `tpoint'. Update caller.
15690 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15692 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15693 * linux-low.c (use_linux_regsets): New macro.
15694 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15695 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15696 (linux_register_in_regsets): New function.
15697 (usr_fetch_inferior_registers): Skip registers covered by
15699 (usr_store_inferior_registers): Likewise.
15700 (usr_fetch_inferior_registers): New macro.
15701 (usr_store_inferior_registers): Likewise.
15702 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15703 (linux_store_registers): Likewise.
15704 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15706 (init_registers_mips64_dsp_linux): Likewise.
15707 (init_registers_mips_linux): New macro.
15708 (init_registers_mips_dsp_linux): Likewise.
15709 (mips_dsp_num_regs): Likewise.
15710 (DSP_BASE, DSP_CONTROL): New fallback macros.
15711 (mips_base_regs): New macro.
15712 (mips_regmap): Use it. Fix the size.
15713 (mips_dsp_regmap): New variable.
15714 (mips_dsp_regset_bitmap): Likewise.
15715 (mips_arch_setup): New function.
15716 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15718 (mips_cannot_store_register): Likewise.
15719 (the_low_target): Update .arch_setup, .num_regs and .regmap
15720 initializers. Add .regset_bitmap initializer.
15721 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15723 * linux-bfin-low.c (the_low_target): Likewise.
15724 * linux-cris-low.c (the_low_target): Likewise.
15725 * linux-crisv32-low.c (the_low_target): Likewise.
15726 * linux-ia64-low.c (the_low_target): Likewise.
15727 * linux-m32r-low.c (the_low_target): Likewise.
15728 * linux-m68k-low.c (the_low_target): Likewise.
15729 * linux-ppc-low.c (the_low_target): Likewise.
15730 * linux-s390-low.c (the_low_target): Likewise.
15731 * linux-sh-low.c (the_low_target): Likewise.
15732 * linux-sparc-low.c (the_low_target): Likewise.
15733 * linux-tic6x-low.c (the_low_target): Likewise.
15734 * linux-x86-low.c (the_low_target): Likewise.
15735 * linux-xtensa-low.c (the_low_target): Likewise.
15736 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15737 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15738 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15740 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15741 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15743 2012-02-29 Yao Qi <yao@codesourcery.com>
15744 Pedro Alves <palves@redhat.com>
15746 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15747 `step_over_finished' is true.
15749 2012-02-27 Pedro Alves <palves@redhat.com>
15751 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15752 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15754 2012-02-27 Pedro Alves <palves@redhat.com>
15757 * linux-low.c (pid_is_stopped): New.
15758 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15760 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15762 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15765 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15767 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15769 2012-02-24 Luis Machado <lgustavo@codesourcery>
15771 * server.c (handle_query): Advertise support for target-side
15772 breakpoint condition evaluation.
15773 (process_point_options): New function.
15774 (process_serial_event): When inserting a breakpoint, check for
15775 a target-side condition that should be evaluated.
15777 * mem-break.c: Include regcache.h and ax.h.
15778 (point_cond_list_t): New data structure.
15779 (breakpoint) <cond_list>: New field.
15780 (find_gdb_breakpoint_at): Make non-static.
15781 (delete_gdb_breakpoint_at): Clear any target-side
15783 (clear_gdb_breakpoint_conditions): New function.
15784 (add_condition_to_breakpoint): Likewise.
15785 (add_breakpoint_condition): Likewise.
15786 (gdb_condition_true_at_breakpoint): Likewise.
15787 (gdb_breakpoint_here): Return result directly instead
15788 of going through a local variable.
15790 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15791 (clear_gdb_breakpoint_conditions): Likewise.
15792 (add_breakpoint_condition): Likewise.
15793 (gdb_condition_true_at_breakpoint): Likewise.
15795 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15796 (need_step_over_p): Take target-side breakpoint condition into
15799 2012-02-24 Luis Machado <lgustavo@codesourcery>
15801 * server.h: Include tracepoint.h.
15802 (agent_mem_read, agent_get_trace_state_variable_value,
15803 agent_set_trace_state_variable_value,
15804 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15805 get_set_tsv_func_addr): New prototypes.
15807 * ax.h: New include file.
15808 * ax.c: New source file.
15810 * tracepoint.c: Include ax.h.
15811 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15812 agent_expr, eval_result_type): Move to ax.h.
15813 (parse_agent_expr): Rename to ...
15814 (gdb_parse_agent_expr): ... this, make it non-static and move
15816 (unparse_agent_expr) Rename to ...
15817 (gdb_unparse_agent_expr): ... this, make it non-static and move
15819 (eval_agent_expr): Rename to ...
15820 (eval_tracepoint_agent_expr): ... this.
15821 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15822 forward declarations.
15823 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15824 (agent_get_trace_state_variable_value): New function.
15825 (agent_set_trace_state_variable_value): New function.
15826 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15827 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15828 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15829 (condition_true_at_tracepoint): Likewise.
15830 (parse_agent_expr): Rename to ...
15831 (gdb_parse_agent_expr): ... this and move to ax.c.
15832 (unparse_agent_expr): Rename to ...
15833 (gdb_unparse_agent_expr): ... this and move to ax.c.
15834 (gdb_agent_op_name): Move to ax.c.
15835 (eval_agent_expr): Rename to ...
15836 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15838 (eval_tracepoint_agent_expr): New function.
15839 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15841 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15843 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15844 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15845 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15846 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15847 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15848 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15849 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15850 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15851 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15852 (compile_bytecodes): Remove forward declaration.
15853 (is_goto_target): Move to ax.c.
15854 (compile_bytecodes): Move to ax.c and call
15855 agent_get_trace_state_variable_value (...) and
15856 agent_set_trace_state_variable_value (...).
15858 * Makefile.in: Update ax.c and IPA dependencies.
15860 2012-02-24 Pedro Alves <palves@redhat.com>
15862 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15863 (cmd_bigqtbuffer_circular): ... this. Only handle
15864 'QTBuffer:circular:'.
15865 (handle_tracepoint_general_set): Adjust.
15867 2012-02-16 Yao Qi <yao@codesourcery.com>
15869 * inferiors.c: Move code to ...
15870 * dll.c: .... here. New.
15871 * server.h: Declare clear_dlls.
15872 * Makefile.in (SFILES): Add dll.c.
15876 2012-02-11 Yao Qi <yao@codesourcery.com>
15878 * server.c: (handle_monitor_command): Add a new parameter
15880 (handle_query): Update caller.
15882 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15884 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15885 * configure, config.in: Regenerate.
15886 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15889 2012-02-02 Pedro Alves <palves@redhat.com>
15891 Try SIGKILL first, then PTRACE_KILL.
15892 * linux-low.c (linux_kill_one_lwp): New.
15893 (linux_kill_one_lwp): Rename to ...
15894 (kill_one_lwp_callback): ... this. Use the new
15895 linux_kill_one_lwp.
15897 2012-02-02 Pedro Alves <palves@redhat.com>
15899 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15902 2012-01-27 Pedro Alves <palves@redhat.com>
15904 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15905 (elf_64_file_p): Make static.
15906 (linux_pid_exe_is_elf_64_file): New.
15907 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15908 Delete declarations.
15909 (linux_pid_exe_is_elf_64_file): Declare.
15910 * linux-x86-low.c (x86_arch_setup): Use
15911 linux_pid_exe_is_elf_64_file.
15913 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15915 * linux-low.c (linux_wait_for_event_1): Rename to ...
15916 (linux_wait_for_event): ... here and merge it with former
15917 linux_wait_for_event - new variable wait_ptid, use it.
15918 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15920 2012-01-23 Pedro Alves <palves@redhat.com>
15922 * server.c (main): Avoid yet another case of infinite loop while
15923 detaching/killing after a longjmp.
15925 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15928 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15930 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15932 * hostio.c (handle_readlink): New function.
15933 (handle_vFile): Call it to handle "vFile:readlink" packets.
15935 2012-01-20 Pedro Alves <palves@redhat.com>
15936 Ulrich Weigand <ulrich.weigand@linaro.org>
15938 * server.c (handle_v_requests): Only support vAttach and vRun to
15939 start multiple processes when in extended protocol mode.
15941 2012-01-17 Pedro Alves <palves@redhat.com>
15943 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15944 memalign plus mprotect to allocate the scratch buffer.
15946 2012-01-13 Pedro Alves <palves@redhat.com>
15948 * server.c (attach_inferior): Clear `cont_thread'.
15950 2012-01-13 Pedro Alves <palves@redhat.com>
15952 * server.c (main): Avoid infinite loop while detaching/killing
15955 2012-01-09 Doug Evans <dje@google.com>
15957 * server.c (start_inferior): Set last_ptid in --wrapper case.
15959 2012-01-06 Yao Qi <yao@codesourcery.com>
15961 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15963 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15965 2012-01-04 Yao Qi <yao@codesourcery.com>
15967 * tracepoint.c (cmd_qtdp): Print debug message
15968 for static tracepoint.
15970 2012-01-04 Yao Qi <yao@codesourcery.com>
15972 * tracepoint.c (trace_vdebug): Differentiate debug message
15973 between gdbserver and IPA.
15975 2012-01-03 Yao Qi <yao@codesourcery.com>
15977 * tracepoint.c (tracepoint_was_hit): Don't collect for
15980 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15982 * terminal.h: Reformat copyright header.
15984 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15986 * server.c (gdbserver_version): Update copyright year.
15987 * gdbreplay.c (gdbreplay_version): Likewise.
15989 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15991 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15994 2011-12-18 Hui Zhu <teawater@gmail.com>
15995 * linux-low.c (linux_create_inferior): Save return value to ret.
15997 2011-12-18 Hui Zhu <teawater@gmail.com>
15999 * linux-low.c (linux_create_inferior): Save return value to ret.
16001 2011-12-16 Doug Evans <dje@google.com>
16003 * linux-low.c (linux_create_inferior): If stdio connection,
16004 redirect stdin from /dev/null, stdout to stderr.
16005 * remote-utils.c (remote_is_stdio): New static global.
16006 (remote_connection_is_stdio): New function.
16007 (remote_prepare): Handle stdio connection.
16008 (remote_open): Ditto.
16009 (remote_close): Don't close stdin for stdio connections.
16010 (read_prim,write_prim): New functions. Replace all calls to
16011 read/write to these.
16012 * server.c (main): Watch for "-" argument. Move call to
16013 remote_prepare before start_inferior.
16014 * server.h (STDIO_CONNECTION_NAME): New macro.
16015 (remote_connection_is_stdio): Declare.
16017 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16018 in debugging output.
16020 2011-12-15 Yao Qi <yao@codesourcery.com>
16022 * tracepoint.c: Include sys/syscall.h.
16023 (gdb_ust_thread): Remove preprocessor conditional.
16025 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16027 * linux-low.c (linux_detach_one_lwp): Call
16028 the_low_target.prepare_to_resume before detaching.
16030 2011-12-14 Yao Qi <yao@codesourcery.com>
16032 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16035 2011-12-14 Yao Qi <yao@codesourcery.com>
16037 * i386-low.c (i386_low_stopped_data_address): Initialize local
16038 variable `control'.
16040 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16044 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16045 DR_CONTROL unless necessary. Extend comments.
16046 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16047 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16049 2011-12-13 Yao Qi <yao@codesourcery.com>
16051 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16053 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16055 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16057 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16058 Print new debug message for such case.
16060 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16062 Fix overlapping memcpy.
16063 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16064 the read_inferior_memory transfer.
16065 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16066 write_inferior_memory transfer.
16067 (set_fast_tracepoint_jump): New variable buf. Use it for the
16068 read_inferior_memory and write_inferior_memory transfers.
16069 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16070 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16071 Use it for the write_inferior_memory transfer.
16072 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16075 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16077 * linux-low.c (fetch_register, store_register): Make code
16078 consistent, fix formatting.
16080 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16082 * linux-low.c (usr_store_inferior_registers): Factor out code
16083 to handle individual registers into...
16084 (store_register): ... this new function.
16086 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16088 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16089 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16090 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16091 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16092 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16093 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16094 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16095 (srv_xmlfiles): Add new XML files.
16097 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16099 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16100 (init_registers_s390_linux32v1): Add prototype.
16101 (init_registers_s390_linux32v2): Likewise.
16102 (init_registers_s390_linux64v1): Likewise.
16103 (init_registers_s390_linux64v2): Likewise.
16104 (init_registers_s390x_linux64v1): Likewise.
16105 (init_registers_s390x_linux64v2): Likewise.
16106 (s390_num_regs): Increment to 52.
16107 (s390_regmap): Add orig_r2 register.
16108 (s390_num_regs_3264): Increment to 68.
16109 (s390_regmap_3264): Add orig_r2 register.
16110 (s390_collect_ptrace_register): Handle orig_r2 register.
16111 (s390_supply_ptrace_register): Likewise.
16112 (s390_fill_last_break): New function.
16113 (s390_store_last_break): Likewise.
16114 (s390_fill_system_call): New function.
16115 (s390_store_system_call): Likewise.
16116 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16118 (s390_check_regset): New function.
16119 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16120 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16121 Update target_regsets for available register sets.
16123 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16124 Jan Kratochvil <jan.kratochvil@redhat.com>
16126 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16127 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16129 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16130 * linux-low.h (struct process_info_private): New member r_debug.
16131 * server.c (handle_qxfer_libraries): Call
16132 the_target->qxfer_libraries_svr4.
16133 (handle_qxfer_libraries_svr4): New function.
16134 (qxfer_packets): New entry "libraries-svr4".
16135 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16136 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16137 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16138 PACKET_qXfer_libraries_svr4.
16140 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16142 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16143 PSW address/mask between 8-byte and 16-byte formats.
16144 (s390_supply_ptrace_register): Likewise.
16145 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16146 basic addressing mode bit.
16148 2011-11-24 Stan Shebs <stan@codesourcery.com>
16150 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16152 2011-11-17 Stan Shebs <stan@codesourcery.com>
16154 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16155 (tracing_start_time): New global.
16156 (tracing_stop_time): New global.
16157 (tracing_user_name): New global.
16158 (tracing_notes): New global.
16159 (tracing_stop_note): New global.
16160 (cmd_qtstart): Set traceframe_usage, start_time.
16161 (stop_tracing): Set stop_time.
16162 (cmd_qtstatus): Report additional status.
16163 (cmd_qtp): New function.
16164 (handle_tracepoint_query): Call it.
16165 (cmd_qtnotes): New function.
16166 (handle_tracepoint_general_set): Call it.
16167 (get_timestamp): Rename from tsv_get_timestamp.
16169 2011-11-14 Stan Shebs <stan@codesourcery.com>
16170 Kwok Cheung Yeung <kcy@codesourcery.com>
16172 * linux-x86-low.c (small_jump_insn): New.
16173 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16174 trampoline and error message, build a trampoline and issue a small
16175 jump instruction to it.
16176 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16177 trampoline and error message.
16178 (x86_get_min_fast_tracepoint_insn_len): New.
16179 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16180 * linux-low.h (struct linux_target_ops): Add arguments to
16181 install_fast_tracepoint_jump_pad operation, add new operation.
16182 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16184 (linux_get_min_fast_tracepoint_insn_len): New function.
16185 (linux_target_op): Add new operation.
16186 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16187 (gdb_trampoline_buffer_end): Ditto.
16188 (gdb_trampoline_buffer_error): Ditto.
16189 (struct ipa_sym_addresses): Add fields for new IPA variables.
16190 (symbol_list): Add entries for new IPA variables.
16191 (struct tracepoint): Add fields to hold the address range of the
16192 trampoline used by the tracepoint.
16193 (trampoline_buffer_head): New static variable.
16194 (trampoline_buffer_tail): Ditto.
16195 (claim_trampoline_space): New function.
16196 (have_fast_tracepoint_trampoline_buffer): New function.
16197 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16199 (install_fast_tracepoint): Ditto, also add error buffer argument.
16200 (cmd_qtminftpilen): New function.
16201 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16202 (fast_tracepoint_from_trampoline_address): New function.
16203 (fast_tracepoint_collecting): Handle trampoline as part of jump
16205 (set_trampoline_buffer_space): New function.
16206 (initialize_tracepoint): Initialize new IPA variables.
16207 * target.h (struct target_ops): Add arguments to
16208 install_fast_tracepoint_jump_pad operation, add new
16209 get_min_fast_tracepoint_insn_len operation.
16210 (target_get_min_fast_tracepoint_insn_len): New.
16211 (install_fast_tracepoint_jump_pad): Add arguments.
16212 * server.h (IPA_BUFSIZ): Define.
16213 * linux-i386-ipa.c: Include extra header files.
16214 (initialize_fast_tracepoint_trampoline_buffer): New function.
16215 (initialize_low_tracepoint): Call it.
16216 * server.h (set_trampoline_buffer_space): Declare.
16217 (claim_trampoline_space): Ditto.
16218 (have_fast_tracepoint_trampoline_buffer): Ditto.
16220 2011-11-14 Yao Qi <yao@codesourcery.com>
16222 * server.c (handle_query): Handle InstallInTrace for qSupported.
16223 * tracepoint.c (add_tracepoint): Sort list.
16224 (install_tracepoint, download_tracepoint): New.
16225 (cmd_qtdp): Call them to install and download tracepoints.
16226 (sort_tracepoints): Removed.
16227 (cmd_qtstart): Update.
16229 2011-11-14 Yao Qi <yao@codesourcery.com>
16231 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16232 * mem-break.h: Declare.
16233 * tracepoint.c (cmd_qtstart): Move some code to ...
16234 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16236 (download_tracepoints): Move some code to ...
16237 (download_tracepoint_1): ... here. New.
16239 2011-11-08 Yao Qi <yao@codesourcery.com>
16241 * remote-utils.c (relocate_instruction): A comment fix.
16243 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16245 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16246 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16247 dr_status_mirror and dr_control_mirror from debug_reg_state.
16248 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16249 (i386_initial_stuff): Remove use of deleted globals.
16250 (i386_get_thread_context, i386_set_thread_context,
16251 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16252 from debug_reg_state.
16254 2011-11-05 Yao Qi <yao@codesourcery.com>
16256 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16257 address as TPOINT's.
16259 2011-11-02 Stan Shebs <stan@codesourcery.com>
16261 * tracepoint.c (agent_mem_read_string): New function.
16262 (eval_agent_expr): Call it for tracenz.
16263 * server.c (handle_query): Report support for tracenz.
16265 2011-11-02 Yao Qi <yao@codesourcery.com>
16267 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16269 2011-11-02 Yao Qi <yao@codesourcery.com>
16271 * target.h: Fix a typo in comment.
16273 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16275 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16276 clobber the breakpoints' shadows with fast tracepoint jumps.
16277 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16278 * target.c (write_inferior_memory): Also pass MYADDR down to
16281 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16283 * configure.ac: Check support for personality routine.
16284 * configure: Regenerate.
16285 * config.in: Likewise.
16286 * linux-low.c: Include <sys/personality.h>.
16287 Define ADDR_NO_RANDOMIZE if necessary.
16288 (linux_create_inferior): Disable address space randomization when
16289 forking inferior, if requested.
16290 (linux_supports_disable_randomization): New function.
16291 (linux_target_ops): Install it.
16292 * server.h (disable_randomization): Declare.
16293 * server.c (disable_randomization): New global variable.
16294 (handle_general_set): Handle QDisableRandomization.
16295 (handle_query): Likewise for qSupported.
16296 (main): Support --disable-randomization and --no-disable-randomization
16297 command line arguments.
16298 * target.h (struct target_ops): Add supports_disable_randomization.
16299 (target_supports_disable_randomization): New macro.
16301 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16303 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16305 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16306 [!PT_GETDSBT] (target_loadmap): New definition.
16307 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16308 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16309 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16310 and PT_GETDSBT to LINUX_LOADMAP.
16311 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16312 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16314 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16316 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16317 (arm_linux_hwbp_cap): New static variable.
16318 (arm_linux_get_hwbp_cap): Replace by ...
16319 (arm_linux_init_hwbp_cap): ... this new function.
16320 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16321 (arm_linux_get_hw_watchpoint_count): Likewise.
16322 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16323 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16324 (arm_prepare_to_resume): Use perror_with_name instead of error.
16326 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16328 * linux-arm-low.c: Include <signal.h>.
16329 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16330 (struct arm_linux_hwbp_cap): New data type.
16331 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16332 (struct arm_linux_hw_breakpoint): New data type.
16333 (MAX_BPTS, MAX_WPTS): Define.
16334 (struct arch_process_info, struct arch_lwp_info): New data types.
16335 (arm_linux_get_hwbp_cap): New function.
16336 (arm_linux_get_hw_breakpoint_count): Likewise.
16337 (arm_linux_get_hw_watchpoint_count): Likewise.
16338 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16339 (arm_hwbp_control_initialize): Likewise.
16340 (arm_hwbp_control_is_enabled): Likewise.
16341 (arm_hwbp_control_is_initialized): Likewise.
16342 (arm_hwbp_control_disable): Likewise.
16343 (arm_linux_hw_breakpoint_equal): Likewise.
16344 (arm_linux_hw_point_initialize): Likewise.
16345 (struct update_registers_data): New data structure.
16346 (update_registers_callback: New function.
16347 (arm_insert_point): Likewise.
16348 (arm_remove_point): Likewise.
16349 (arm_stopped_by_watchpoint): Likewise.
16350 (arm_stopped_data_address): Likewise.
16351 (arm_new_process): Likewise.
16352 (arm_new_thread): Likewise.
16353 (arm_prepare_to_resume): Likewise.
16354 (the_low_target): Register arm_insert_point, arm_remove_point,
16355 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16356 arm_new_thread, and arm_prepare_to_resume.
16358 2011-09-15 Stan Shebs <stan@codesourcery.com>
16360 * server.h (struct emit_ops): Add compare-goto fields.
16361 * tracepoint.c (gdb_agent_op_sizes): New table.
16362 (emit_eq_goto): New function.
16363 (emit_ne_goto): New function.
16364 (emit_lt_goto): New function.
16365 (emit_le_goto): New function.
16366 (emit_gt_goto): New function.
16367 (emit_ge_goto): New function.
16368 (is_goto_target): New function.
16369 (compile_bytecodes): Recognize special cases of compare-goto
16370 combinations and call specialized emitters for them.
16371 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16372 (amd64_emit_ne_goto): New function.
16373 (amd64_emit_lt_goto): New function.
16374 (amd64_emit_le_goto): New function.
16375 (amd64_emit_gt_goto): New function.
16376 (amd64_emit_ge_goto): New function.
16377 (amd64_emit_ops): Add the new functions.
16378 (i386_emit_eq_goto): New function.
16379 (i386_emit_ne_goto): New function.
16380 (i386_emit_lt_goto): New function.
16381 (i386_emit_le_goto): New function.
16382 (i386_emit_gt_goto): New function.
16383 (i386_emit_ge_goto): New function.
16384 (i386_emit_ops): Add the new functions.
16386 2011-09-08 Stan Shebs <stan@codesourcery.com>
16388 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16389 (i386_emit_epilogue): Restore %ebx.
16391 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16393 * server.c (step_thread): Remove definition.
16394 (process_serial_event): Don't handle Hs.
16395 * server.h (step_thread): Remove declaration.
16396 * target.c (set_desired_inferior): Remove use of step_thread.
16398 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16400 * linux-low.c: Include linux-procfs.h.
16401 (linux_attach_lwp_1): Update comments.
16402 (linux_attach): Scan for existing threads when attaching to a
16403 process that is the tgid.
16404 * Makefile.in: Update dependencies.
16406 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16408 * configure.srv: Add linux-procfs.o dependencies.
16410 2011-08-14 Yao Qi <yao@codesourcery.com>
16412 * target.h (struct target_ops): Fix indent.
16413 * win32-low.c (win32_target_ops): Fix comment.
16415 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16416 Yao Qi <yao@codesourcery.com>
16418 * Makefile.in (clean): Remove tic6x-*.c files.
16419 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16420 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16421 (tic6x-c64xp-linux.c): Likewise.
16422 * configure.srv: Add support for tic6x-*-uclinux.
16423 * linux-tic6x-low.c: New.
16424 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16426 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16427 Yao Qi <yao@codesourcery.com>
16429 * target.h (struct target_ops): Add read_loadmap.
16430 * linux-low.c (struct target_loadseg): New type.
16431 (struct target_loadmap): New type.
16432 (linux_read_loadmap): New function.
16433 (linux_target_ops): Add linux_read_loadmap.
16434 * server.c (handle_query): Support qXfer:fdpic:read packet.
16435 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16438 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16440 * win32-low.c: Include <stdint.h>.
16442 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16444 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16445 to the inferior here.
16446 (i386_remove_aligned_watchpoint): Ditto.
16447 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16448 fit part of the watchpoint in the debug registers.
16449 (i386_update_inferior_debug_regs): New.
16450 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16451 registers, and only update the inferior on success.
16452 (i386_low_remove_watchpoint): Ditto.
16454 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16456 * linux-low.c (compare_ints, unique, list_threads, show_process,
16457 linux_core_of_thread): Delete.
16458 (linux_target_ops): Change linux_core_of_thread to
16459 linux_common_core_of_thread.
16460 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16461 * utils.c (malloc_failure): Change type of argument.
16462 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16463 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16464 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16465 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16466 (IPA_OBJS): Add common-utils-ipa.o.
16467 (ptid_h, linux_osdata_h): New macros.
16468 (server_h): Add common/common-utils.h, common/xml-utils.h,
16469 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16471 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16472 ptid.o, buffer.o): New rules.
16473 (linux-low.o): Add common/linux-osdata.h as a dependency.
16474 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16475 * configure.ac: Add AC_HEADER_DIRENT check.
16476 * config.in: Regenerate.
16477 * configure: Regenerate.
16478 * remote-utils.c (xml_escape_text): Delete.
16479 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16480 buffer_xml_printf): Move to common/buffer.c.
16481 * server.c (main): Remove call to initialize_inferiors.
16482 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16483 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16484 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16485 internal_error, gdb_assert, gdb_assert_fail): Delete.
16486 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16487 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16489 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16490 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16491 initialize_inferiors): Delete.
16493 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16495 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16498 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16500 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16502 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16504 2011-05-26 Yao Qi <yao@codesourcery.com>
16506 * Makefile.in (thread-db.o): Track dependence to
16507 common/gdb_thread_db.h.
16508 * thread-db.c: include gdb_thread_db.h from right place.
16510 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16512 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16513 __FILE__ and __LINE__ to internal_error.
16515 2011-05-13 Doug Evans <dje@google.com>
16517 * thread-db.c (try_thread_db_load_from_sdir): New function.
16518 (try_thread_db_load_from_dir): New function.
16519 (thread_db_load_search): Handle $sdir, ignore $pdir.
16520 Remove trying of system directories if search of
16521 libthread-db-search-path fails, that is now done via $sdir.
16523 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16525 * server.c (handle_query): Add EnableDisableTracepoints to the list
16526 of supported features.
16527 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16529 (cmd_qtenable_disable): New.
16530 (cmd_qtstart): Install tracepoints even if disabled.
16531 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16532 receiving a QTEnable or QTDisable packet.
16533 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16534 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16536 (gdb_probe): Skip data collection if static tracepoint is disabled.
16538 2011-05-10 Doug Evans <dje@google.com>
16540 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16542 2011-05-04 Doug Evans <dje@google.com>
16544 * linux-low.c (linux_join): Skip process lookup.
16545 * spu-low.c (spu_join): Ditto.
16546 * server.c (join_inferiors_callback): Delete.
16547 (process_serial_event): For 'D' packet (detach) call join_inferior
16550 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16552 * README: Don't mention xscale*-*-linux*.
16553 * configure.srv (xscale*-*-linux*): Don't handle target.
16555 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16557 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16559 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16560 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16561 (i386_emit_void_call_2): Likewise.
16563 2011-04-26 Yao Qi <yao@codesourcery.com>
16565 * linux-low.c: Move common macros to linux-ptrace.h.
16566 Include linux-ptrace.h.
16567 * Makefile.in (linux_ptrace_h): New.
16568 (linux-low.o): Depends on linux-ptrace.h.
16570 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16572 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16573 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16574 (remote_prepare): New function with most of the TCP code from ...
16575 (remote_open): ... here. Detect PORT here unconditionally. Move also
16576 setting transport_is_reliable.
16577 * server.c (run_once): New variable.
16578 (gdbserver_usage): Document it.
16579 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16580 the first run if RUN_ONCE.
16581 * server.h (run_once, remote_prepare): New declarations.
16583 2011-04-19 Tom Tromey <tromey@redhat.com>
16585 * win32-low.c (handle_load_dll): Remove duplicate "the".
16587 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16589 Remove support for old Cygwin 1.5 versions.
16590 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16591 function to avoid warning.
16592 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16595 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16597 * gdbserver/server.h (Macro _): Define it if not available.
16599 2011-03-14 Michael Snyder <msnyder@vmware.com>
16601 * hostio.c (handle_close): Remove unnecessary null test.
16603 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16605 * Makefile.in (maintainer-clean realclean distclean): Remove
16606 "make ... subdir_do" command.
16608 2011-03-10 Michael Snyder <msnyder@vmware.com>
16610 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16612 * server.c (handle_v_run): Free alloced buffer on early return.
16614 2011-03-09 Yao Qi <yao@codesourcery.com>
16617 2011-03-04 Yao Qi <yao@codesourcery.com>
16619 * Makefile.in: Remove GNU make feature --directory.
16621 2011-03-05 Yao Qi <yao@codesourcery.com>
16623 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16624 (subdir_do): New make target. Copied from gdb/Makefile.
16625 (maintainer-clean, realclean, distclean, clean): Call corresponding
16626 make targets in common/Makefile.
16628 2011-02-11 Yao Qi <yao@codesourcery.com>
16630 * configure.ac: Call AC_PROG_RANLIB.
16631 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16632 * configure: Regenerate.
16634 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16636 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16638 2011-03-06 Yao Qi <yao@codesourcery.com>
16640 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16642 2011-03-05 Yao Qi <yao@codesourcery.com>
16644 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16645 (subdir_do): New make target. Copied from gdb/Makefile.
16646 (maintainer-clean, realclean, distclean, clean): Call corresponding
16647 make targets in common/Makefile.
16649 2011-03-04 Yao Qi <yao@codesourcery.com>
16651 * Makefile.in: Remove GNU make feature --directory.
16653 2011-03-04 Michael Snyder <msnyder@vmware.com>
16655 * server.c (queue_stop_reply): Call xmalloc not malloc.
16657 2011-03-02 Michael Snyder <msnyder@vmware.com>
16659 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16661 2011-02-28 Michael Snyder <msnyder@vmware.com>
16663 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16664 (cmd_qtframe): Ditto.
16665 (cmd_qtbuffer): Ditto.
16666 (cmd_bigqtbuffer): Ditto.
16668 * utils.c (decimal2str): Initialize 'width' to nine, then
16669 don't mess with it.
16671 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16673 * hostio.c (require_data): Free *data, not data.
16675 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16677 * hostio.c (require_data): Use free, not xfree.
16679 2011-02-27 Michael Snyder <msnyder@vmware.com>
16681 * server.c (handle_query): Discard unused value.
16683 * hostio.c (require_data): Free malloc memory before returning
16686 2011-02-26 Michael Snyder <msnyder@vmware.com>
16688 * linux-low.c (list_threads): Call closedir for dirent.
16690 2011-02-27 Michael Snyder <msnyder@vmware.com>
16692 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16693 a case statement falls through.
16695 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16697 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16700 2011-02-26 Michael Snyder <msnyder@vmware.com>
16702 * utils.c (decimal2str): Eliminate dead code and dead param.
16703 (pulongest): Drop dead param from call to decimal2str.
16706 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16708 Revert the following patch (not approved yet):
16709 2011-02-21 Hui Zhu <teawater@gmail.com>
16710 * tracepoint.c (tp_printf): New function.
16711 (eval_agent_expr): Handle gdb_agent_op_printf.
16713 2011-02-21 Hui Zhu <teawater@gmail.com>
16715 * tracepoint.c (tp_printf): New function.
16716 (eval_agent_expr): Handle gdb_agent_op_printf.
16718 2011-02-18 Tom Tromey <tromey@redhat.com>
16720 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16721 (tracepoint.o): Likewise.
16722 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16723 (gdb_agent_op_names): Likewise.
16725 2011-02-18 Tom Tromey <tromey@redhat.com>
16727 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16728 gdb_agent_op_rot>: New constants.
16729 (gdb_agent_op_names): Add pick and roll.
16730 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16733 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16735 * aclocal.m4: Regenerated with aclocal-1.11.1.
16737 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16739 * server.c (handle_qxfer_traceframe_info): New.
16740 (qxfer_packets): Register "traceframe-info".
16741 (handle_query): Report support for qXfer:traceframe-info:read+.
16742 * tracepoint.c (match_blocktype): New.
16743 (traceframe_find_block_type): Rename to ...
16744 (traceframe_walk_blocks): ... this. Add callback filter argument,
16746 (traceframe_find_block_type): New, reimplemented on top of
16747 traceframe_walk_blocks.
16748 (build_traceframe_info_xml): New.
16749 (traceframe_read_info): New.
16750 * server.h (traceframe_read_info): Declare.
16752 2011-02-11 Yao Qi <yao@codesourcery.com>
16754 * configure.ac: Call AC_PROG_RANLIB.
16755 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16756 * configure: Regenerate.
16758 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16760 * server.c (gdb_read_memory): Change return semantics to allow
16762 (handle_search_memory_1): Adjust.
16763 (process_serial_event) <'m' packet>: Handle partial transfers.
16764 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16766 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16768 * regcache.c (init_register_cache): Initialize
16769 regcache->register_status.
16770 (free_register_cache): Release regcache->register_status.
16771 (regcache_cpy): Copy register_status.
16772 (registers_to_string): Print 'x's for unavailable registers.
16773 (supply_register): Mark the register's status valid or
16774 unavailable, depending on whether a buffer was passed in or not.
16775 (supply_register_zeroed): New.
16776 (supply_regblock): Mark the registers' status valid or
16777 unavailable, depending on whether a buffer was passed in or not.
16778 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16779 (struct regcache): New `register_status' field.
16780 (supply_register_zeroed): Declare.
16781 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16782 supply_register_zeroed, rather than passing a NULL buffer to
16784 * tracepoint.c (fetch_traceframe_registers): Update comment.
16786 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16788 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16791 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16793 * server.h (decode_xfer_write): Change prototype.
16794 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16795 and don't extract the annex here.
16796 * server.c (decode_xfer_read): Remove `annex' parameter,
16797 and don't extract the annex here.
16798 (decode_xfer): New.
16799 (struct qxfer): New.
16800 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16801 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16802 (handle_qxfer_statictrace): New functions, abstracted out from
16803 handle_query, and made to use the struct qxfer interface.
16804 (handle_threads_qxfer_proper): Rename to ...
16805 (handle_qxfer_threads_proper): ... this.
16806 (handle_threads_qxfer): Rename to ...
16807 (handle_qxfer_threads): ... this. Adjust.
16808 (qxfer_packets): New array.
16809 (handle_qxfer): New function.
16810 (handle_query): Use handle_qxfer.
16812 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16814 * gdbreplay.c: Shorten lines of >= 80 columns.
16815 * linux-low.c: Ditto.
16816 * linux-ppc-low.c: Ditto.
16817 * linux-s390-low.c: Ditto.
16818 * linux-sparc-low.c: Ditto.
16819 * linux-x86-low.c: Ditto.
16820 * linux-xtensa-low.c: Ditto.
16821 * mem-break.c: Ditto.
16822 * nto-low.c: Ditto.
16823 * regcache.h: Ditto.
16824 * remote-utils.c: Ditto.
16827 * thread-db.c: Ditto.
16828 * tracepoint.c: Ditto.
16830 * win32-low.h: Ditto.
16832 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16834 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16837 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16839 * server.c (gdbserver_version): Update copyright year in version
16841 * gdbreplay.c (gdbreplay_version): Ditto.
16843 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16845 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16846 * linux-bfin-low.c: New file.
16847 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16848 PT_DATA_ADDR for BFIN targets.
16849 * Makefile.in (SFILES): Add linux-bfin-low.c.
16850 (clean): Remove reg-bfin.c.
16851 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16852 * README: Mention supported Blackfin targets.
16854 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16856 * .gitignore: New file.
16858 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16860 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16862 2010-10-22 Jie Zhang <jie@codesourcery.com>
16864 * Makefile.in: Add FLAGS_TO_PASS variable.
16865 (install): Remove dependency of install-only and recursively
16866 invoke make for install-only.
16868 2010-10-04 Doug Evans <dje@google.com>
16870 * Makefile.in (uninstall): Use $(DESTDIR).
16872 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16876 * linux-x86-low.c (compat_siginfo_from_siginfo)
16877 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16878 si_code is < 0. Check for si_code == SI_TIMER before checking for
16881 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16883 * lynx-i386-low.c: New file.
16884 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16886 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16888 * lynx-low.c (ptrace_request_to_str): Remove handling for
16889 request values that have been removed in LynxOS 5.x.
16891 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16893 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16896 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16898 * configure.ac: Add --enable-inprocess-agent option.
16899 * configure: Rebuilt.
16901 2010-09-06 Yao Qi <yao@codesourcery.com>
16903 * linux-low.c (linux_kill): Remove unused variable.
16904 (linux_stabilize_threads): Likewise.
16905 * server.c (start_inferior): Likewise.
16906 (queue_stop_reply_callback): Likewise.
16907 * tracepoint.c (do_action_at_tracepoint): Likewise.
16909 2010-09-06 Yao Qi <yao@codesourcery.com>
16911 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16914 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16916 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16918 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16920 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16923 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16925 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16926 gdbserver/lynx-ppc-low.c: New files.
16927 * Makefile.in (lynx_low_h): New variable.
16928 (lynx-low.o, lynx-ppc-low.o): New rules.
16929 * configure.ac: On LynxOS, link with -lnetinet.
16930 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16931 * configure: regenerate.
16933 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16935 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16936 * configure.ac: Add check for vasprintf and vsnprintf.
16937 * configure, config.in: Regenerate.
16938 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16940 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16942 * gdbreplay.c: Move include of alloca.h up, next to include of
16944 * server.h: Add include of malloc.h.
16945 * mem-break.c: Remove include of malloc.h.
16946 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16948 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16950 * Makefile.in (memmem.o): Build with -Wno-error.
16952 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16954 * utils.c (xsnprintf): Make non-static.
16955 * server.h: Add xsnprintf declaration.
16956 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16957 replace calls to snprintf by calls to xsnprintf throughout.
16959 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16961 * configure.ac: Add configure check for alloca.
16962 * configure, config.in: Regenerate.
16963 * server.h: Include alloca.h if it exists.
16964 * gdbreplay.c: Include alloca.h if it exists.
16966 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16968 * linux-low.c (__SIGRTMIN): Define if not already defined.
16969 (linux_create_inferior): Check for __ANDROID__ rather than
16971 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16972 are already deferred.
16973 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16974 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16975 stopped and already has a pending signal to report.
16976 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16977 a pending signal to report or is moving out of a jump pad.
16978 (linux_init_signals): Check for __ANDROID__ rather than
16981 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16983 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16984 debug_threads check. Avoid a linear search when not doing debug
16987 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16989 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16990 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16991 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16992 (process_event): Change local fd's type to gdb_fildes_t.
16993 (create_file_handler): Adjust prototype.
16994 (delete_file_handler): Adjust prototype.
16995 (handle_file_event): Adjust prototype. Use pfildes.
16996 (create_file_event): Adjsut prototype.
16997 * remote-utils.c (remote_desc, listen_desc): Change type to
16999 * server.h: New gdb_fildes_t typedef.
17000 [USE_WIN32API]: Include winsock2.h.
17001 (delete_file_handler, add_file_handler): Adjust prototypes.
17002 (pfildes): Declare.
17003 * utils.c (pfildes): New.
17005 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17007 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17008 * configure: Regenerate.
17010 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17012 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17013 (linux_done_accessing_memory): ... this.
17014 (linux_target_ops): Adjust.
17015 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17016 * nto-low.c (nto_target_ops): Adjust comment.
17017 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17018 * spu-low.c (spu_target_ops): Adjust comment.
17019 * target.h (target_ops): Rename unprepare_to_access_memory field
17020 to done_accessing_memory.
17021 (unprepare_to_access_memory): Rename to ...
17022 (done_accessing_memory): ... this.
17024 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17026 * linux-low.c (linux_prepare_to_access_memory): New.
17027 (linux_unprepare_to_access_memory): New.
17028 (linux_target_ops): Install them.
17029 * server.c (read_memory): Rename to ...
17030 (gdb_read_memory): ... this. Use
17031 prepare_to_access_memory/prepare_to_access_memory.
17032 (write_memory): Rename to ...
17033 (gdb_write_memory): ... this. Use
17034 prepare_to_access_memory/prepare_to_access_memory.
17035 (handle_search_memory_1): Adjust.
17036 (process_serial_event): Adjust.
17037 * target.h (struct target_ops): New fields
17038 prepare_to_access_memory and unprepare_to_access_memory.
17039 (prepare_to_access_memory, unprepare_to_access_memory): New.
17040 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17041 prepare_to_access_memory/prepare_to_access_memory.
17042 * nto-low.c (nto_target_ops): Adjust.
17043 * spu-low.c (spu_target_ops): Adjust.
17044 * win32-low.c (win32_target_ops): Adjust.
17046 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17048 * Makefile.in (WARN_CFLAGS): Get it from configure.
17049 (WERROR_CFLAGS): New.
17050 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17051 * configure.ac: Introduce --enable-werror, which adds -Werror to
17052 the compiler command line. Enabled by default. Disable with
17053 --disable-werror. Add -Wdeclaration-after-statement
17054 Wpointer-arith and -Wformat-nonliteral to warning flags.
17055 * configure: Regenerate.
17057 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17059 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17061 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17063 * gdbreplay.c (remote_error): New.
17065 (expect): Use gdbchar. Check for error reading from GDB.
17066 Clarify sync error output.
17067 (play): Check for errors writing to GDB.
17068 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17069 * remote-utils.c (getpkt): Check for errors writing to the remote
17072 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17074 * linux-low.c (linux_wait_1): Move non-debugging code out of
17075 `debug_threads' control.
17077 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17079 * linux-low.c (linux_wait_1): Don't set last_status here.
17080 * server.c (push_event, queue_stop_reply_callback): Assert we're
17081 not pushing a TARGET_WAITKIND_IGNORE event.
17082 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17083 (myresume, handle_target_event): Set the thread's last_resume_kind
17084 and last_status from the target returned status.
17086 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17090 * linux-x86-low.c (update_debug_registers_callback): New.
17091 (i386_dr_low_set_addr): Use it.
17092 (i386_dr_low_get_addr): New.
17093 (i386_dr_low_set_control): Use update_debug_registers_callback.
17094 (i386_dr_low_get_control): New.
17095 (i386_dr_low_get_status): Adjust.
17096 * linux-low.c (linux_stop_lwp): New.
17097 * linux-low.h (linux_stop_lwp): Declare.
17099 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17100 argument instead of a i386_debug_reg_state.
17101 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17102 a i386_debug_reg_state.
17103 (i386_insert_aligned_watchpoint): Adjust.
17104 (i386_remove_aligned_watchpoint): Adjust.
17105 (i386_low_stopped_data_address): Read the debug registers from the
17106 inferior instead of from the mirrors.
17107 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17108 (i386_dr_low_get_addr): Declare.
17109 (i386_dr_low_get_control): Declare.
17110 (i386_dr_low_get_status): Change prototype.
17112 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17113 (i386_dr_low_get_addr): New.
17114 (i386_dr_low_get_control): New.
17115 (i386_dr_low_get_status): Adjust prototype. Return
17117 (i386_initial_stuff): Clear dr_status_mirror and
17119 (i386_get_thread_context): Adjust.
17120 (i386_set_thread_context): Adjust.
17121 (i386_thread_added): Adjust.
17123 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17125 * linux-low.h (linux_thread_area): Delete declaration.
17127 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17129 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17130 after its termination.
17132 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17134 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17135 (gdb_wants_all_stopped): Delete.
17136 (linux_wait_1): Don't call them.
17137 * server.c (handle_v_cont): Tag all threads as want-stopped.
17138 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17139 stopped as "client-wants-stopped".
17141 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17143 * Makefile.in (signals_h): New.
17144 (server_h): Depend on it.
17145 (server.o): Don't depend on $(signals_def).
17146 (signals.o): Depend on $(signals_def).
17148 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17150 * Makefile.in (signals_def): New.
17151 (server_h): Append include/gdb/signals.h and signals_def.
17152 (server.o): Append signals_def.
17154 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17156 * server.c (handle_target_event): Use target_signal_to_host for
17157 resume_info.sig initialization.
17158 * target.h (struct thread_resume) <sig>: New comment.
17160 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17162 * server.c (handle_query): strcpy() the returned string from paddress()
17163 instead of sprintf().
17164 * utils.c (paddress): Return phex_nz().
17166 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17168 * server.c (handle_v_cont): Call mourn_inferior if process
17170 (myresume): Likewise.
17172 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17174 Static tracepoints, and integration with UST.
17176 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17177 * mem-break.c (uninsert_all_breakpoints)
17178 (reinsert_all_breakpoints): New.
17179 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17180 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17181 (gdb_agent_ust_loaded, helper_thread_id)
17182 (gdb_agent_helper_thread_id): New macros.
17183 (struct ipa_sym_addresses): Add addr_ust_loaded,
17184 addr_helper_thread_id, addr_cmd_buf.
17185 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17186 (in_process_agent_loaded_ust): New.
17187 (write_e_ust_not_loaded): New.
17188 (maybe_write_ipa_ust_not_loaded): New.
17189 (struct collect_static_trace_data_action): New.
17190 (enum tracepoint_type) <static_tracepoint>: New.
17191 (struct tracepoint) <handle>: Mention static tracepoints.
17192 (struct static_tracepoint_ctx): New.
17193 (CMD_BUF_SIZE): New.
17194 (add_tracepoint_action): Handle static tracepoint actions.
17195 (unprobe_marker_at): New.
17196 (clear_installed_tracepoints): Handle static tracepoints.
17197 (cmd_qtdp): Handle static tracepoints.
17198 (probe_marker_at): New.
17199 (cmd_qtstart): Handle static tracepoints.
17200 (response_tracepoint): Handle static tracepoints.
17201 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17202 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17203 (get_context_regcache): Handle static tracepoints.
17204 (do_action_at_tracepoint): Handle static tracepoint actions.
17205 (traceframe_find_block_type): Handle static trace data blocks.
17206 (traceframe_read_sdata): New.
17207 (download_tracepoints): Download static tracepoint actions.
17208 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17209 (GDB_PROBE_NAME): New.
17211 (GET_UST_SYM): New.
17214 (ust_marker_to_static_tracepoint): New.
17216 (collect_ust_data_at_tracepoint): New.
17217 (gdb_ust_probe): New.
17218 (UNIX_PATH_MAX, SOCK_DIR): New.
17219 (gdb_ust_connect_sync_socket): New.
17220 (resume_thread, stop_thread): New.
17221 (run_inferior_command): New.
17222 (init_named_socket): New.
17223 (gdb_ust_socket_init): New.
17224 (cstr_to_hexstr): New.
17226 (first_marker, next_marker): New.
17227 (response_ust_marker): New.
17228 (cmd_qtfstm, cmd_qtsstm): New.
17229 (unprobe_marker_at, probe_marker_at): New.
17230 (cmd_qtstmat, gdb_ust_thread): New.
17231 (gdb_ust_init): New.
17232 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17233 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17234 (ST_REGENTRY): New.
17235 (x86_64_st_collect_regmap): New.
17236 (X86_64_NUM_ST_COLLECT_GREGS): New.
17237 (AMD64_RIP_REGNUM): New.
17238 (supply_static_tracepoint_registers): New.
17239 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17240 (ST_REGENTRY): New.
17241 (i386_st_collect_regmap): New.
17242 (i386_NUM_ST_COLLECT_GREGS): New.
17243 (supply_static_tracepoint_registers): New.
17244 * server.c (handle_query): Handle qXfer:statictrace:read.
17245 <qSupported>: Report support for StaticTracepoints, and
17246 qXfer:statictrace:read features.
17247 * server.h (traceframe_read_sdata)
17248 (supply_static_tracepoint_registers): Declare.
17249 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17250 (unpack_varlen_hex): Include in IPA build.
17251 * Makefile.in (ustlibs, ustinc): New.
17252 (IPA_OBJS): Add remote-utils-ipa.o.
17253 ($(IPA_LIB)): Link -ldl and -lpthread.
17255 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17256 * config.in, configure: Regenerate.
17258 2010-06-20 Ian Lance Taylor <iant@google.com>
17259 Pedro Alves <pedro@codesourcery.com>
17261 * linux-x86-low.c (always_true): Delete.
17262 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17263 trying to fool the compiler with always_true.
17265 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17267 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17268 conditions in gdbserver.
17270 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17272 * spu-low.c (spu_read_memory): Wrap around local store limit.
17273 (spu_write_memory): Likewise.
17275 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17277 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17278 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17280 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17282 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17283 uses with LONGEST uses.
17285 2010-06-14 Stan Shebs <stan@codesourcery.com>
17286 Pedro Alves <pedro@codesourcery.com>
17290 * linux-x86-low.c: Include limits.h.
17292 (always_true): New.
17295 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17296 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17297 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17298 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17299 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17300 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17301 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17302 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17303 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17304 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17305 (amd64_emit_void_call_2): New.
17306 (amd64_emit_ops): New.
17307 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17308 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17309 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17310 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17311 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17312 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17313 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17314 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17315 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17316 (i386_emit_stack_adjust, i386_emit_int_call_1)
17317 (i386_emit_void_call_2): New.
17318 (i386_emit_ops): New.
17319 (x86_emit_ops): New.
17320 (the_low_target): Install x86_emit_ops.
17321 * server.h (struct emit_ops): New.
17322 (get_raw_reg_func_addr): Declare.
17323 (current_insn_ptr, emit_error): Declare.
17324 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17325 (set_trace_state_variable_value): New defines.
17326 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17327 addr_get_trace_state_variable_value and
17328 addr_set_trace_state_variable_value.
17329 (symbol_list): New fields for get_raw_reg,
17330 get_trace_state_variable_value and set_trace_state_variable_value.
17331 (condfn): New typedef.
17332 (struct tracepoint): New field `compiled_cond'.
17333 (do_action_at_tracepoint): Clear compiled_cond.
17334 (get_trace_state_variable_value, set_trace_state_variable_value):
17336 (condition_true_at_tracepoint): If there's a compiled condition,
17338 (current_insn_ptr, emit_error): New globals.
17339 (struct bytecode_address): New.
17340 (get_raw_reg_func_addr): New.
17341 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17342 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17343 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17344 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17345 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17346 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17347 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17348 (compile_tracepoint_condition, compile_bytecodes): New.
17349 * target.h (emit_ops): Forward declare.
17350 (struct target_ops): New field emit_ops.
17351 (target_emit_ops): New.
17352 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17353 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17354 * linux-low.c (linux_emit_ops): New.
17355 (linux_target_ops): Install it.
17356 * linux-low.h (struct linux_target_ops): New field emit_ops.
17358 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17360 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17361 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17363 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17364 Stan Shebs <stan@codesourcery.com>
17366 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17367 (all): Depend on $(extra_libraries).
17368 (install-only): Install the IPA.
17369 (IPA_OBJS, IPA_LIB): New.
17370 (clean): Remove the IPA lib.
17371 (IPAGENT_CFLAGS): New.
17372 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17373 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17374 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17375 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17376 * configure.ac: Check for atomic builtins support in the compiler.
17377 (IPA_DEPFILES, extra_libraries): Define.
17378 * configure.srv (ipa_obj): Add description.
17379 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17380 (i[34567]86-*-linux*): Set ipa_obj.
17381 (x86_64-*-linux*): Set ipa_obj.
17382 * linux-low.c (stabilizing_threads): New.
17383 (supports_fast_tracepoints): New.
17384 (linux_detach): Stabilize threads before detaching.
17385 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17386 the lwp is either not stabilizing, or is moving out of a jump pad.
17387 (linux_fast_tracepoint_collecting): New.
17388 (maybe_move_out_of_jump_pad): New.
17389 (enqueue_one_deferred_signal): New.
17390 (dequeue_one_deferred_signal): New.
17391 (linux_wait_for_event_1): If moving out of a jump pad, defer
17392 pending signals to later.
17393 (linux_stabilize_threads): New.
17394 (linux_wait_1): Check if threads need moving out of jump pads, and
17396 (stuck_in_jump_pad_callback): New.
17397 (move_out_of_jump_pad_callback): New.
17398 (lwp_running): New.
17399 (linux_resume_one_lwp): Handle moving out of jump pads.
17400 (linux_set_resume_request): Dequeue deferred signals.
17401 (need_step_over_p): Also step over fast tracepoint jumps.
17402 (start_step_over): Also uninsert fast tracepoint jumps.
17403 (finish_step_over): Also reinsert fast tracepoint jumps.
17404 (linux_install_fast_tracepoint_jump): New.
17405 (linux_target_ops): Install linux_stabilize_threads and
17406 linux_install_fast_tracepoint_jump_pad.
17407 * linux-low.h (linux_target_ops) <get_thread_area,
17408 install_fast_tracepoint_jump_pad>: New fields.
17409 (struct lwp_info) <collecting_fast_tracepoint,
17410 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17411 (linux_get_thread_area): Declare.
17412 * linux-x86-low.c (jump_insn): New.
17413 (x86_get_thread_area): New.
17414 (append_insns): New.
17415 (push_opcode): New.
17416 (amd64_install_fast_tracepoint_jump_pad): New.
17417 (i386_install_fast_tracepoint_jump_pad): New.
17418 (x86_install_fast_tracepoint_jump_pad): New.
17419 (the_low_target): Install x86_get_thread_area and
17420 x86_install_fast_tracepoint_jump_pad.
17421 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17422 (struct fast_tracepoint_jump): New.
17423 (fast_tracepoint_jump_insn): New.
17424 (fast_tracepoint_jump_shadow): New.
17425 (find_fast_tracepoint_jump_at): New.
17426 (fast_tracepoint_jump_here): New.
17427 (delete_fast_tracepoint_jump): New.
17428 (set_fast_tracepoint_jump): New.
17429 (uninsert_fast_tracepoint_jumps_at): New.
17430 (reinsert_fast_tracepoint_jumps_at): New.
17431 (set_breakpoint_at): Use write_inferior_memory.
17432 (uninsert_raw_breakpoint): Use write_inferior_memory.
17433 (check_mem_read): Mask out fast tracepoint jumps.
17434 (check_mem_write): Mask out fast tracepoint jumps.
17435 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17436 (set_fast_tracepoint_jump): Declare.
17437 (delete_fast_tracepoint_jump)
17438 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17439 (reinsert_fast_tracepoint_jumps_at): Declare.
17440 * regcache.c: Don't compile many functions when building the
17441 in-process agent library.
17442 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17443 the register buffer in the heap.
17444 (free_register_cache): If the register buffer isn't owned by the
17445 regcache, don't free it.
17446 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17447 pre-existing register caches.
17448 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17450 (convert_ascii_to_int): : Constify `from' parameter type.
17451 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17452 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17453 the needed buffer in-place.
17454 (relocate_instruction): New.
17455 * server.c (handle_query) <qSymbols>: If the target supports
17456 tracepoints, give it a chance of looking up symbols. Report
17457 support for fast tracepoints.
17458 (handle_status): Stabilize threads.
17459 (process_serial_event): Adjust.
17460 * server.h (struct fast_tracepoint_jump): Forward declare.
17461 (struct process_info) <fast_tracepoint_jumps>: New field.
17462 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17463 (decode_X_packet, decode_M_packet): Adjust.
17464 (relocate_instruction): Declare.
17465 (in_process_agent_loaded): Declare.
17466 (tracepoint_look_up_symbols): Declare.
17467 (struct fast_tpoint_collect_status): Declare.
17468 (fast_tracepoint_collecting): Declare.
17469 (force_unlock_trace_buffer): Declare.
17470 (handle_tracepoint_bkpts): Declare.
17471 (initialize_low_tracepoint)
17472 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17473 * target.h (struct target_ops) <stabilize_threads,
17474 install_fast_tracepoint_jump_pad>: New fields.
17475 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17476 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17477 [HAVE_STDINT_H]: Include stdint.h.
17478 (trace_debug_1): Rename to ...
17479 (trace_vdebug): ... this.
17480 (trace_debug): Rename to ...
17481 (trace_debug_1): ... this. Add `level' parameter.
17482 (trace_debug): New.
17483 (ATTR_USED, ATTR_NOINLINE): New.
17484 (IP_AGENT_EXPORT): New.
17485 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17486 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17487 (about_to_request_buffer_space, trace_buffer_is_full)
17488 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17489 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17490 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17491 (traceframe_write_count, traceframes_created)
17492 (trace_state_variables)
17493 New renaming defines.
17494 (struct ipa_sym_addresses): New.
17495 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17496 (symbol_list): New.
17497 (ipa_sym_addrs): New.
17498 (all_tracepoint_symbols_looked_up): New.
17499 (in_process_agent_loaded): New.
17500 (write_e_ipa_not_loaded): New.
17501 (maybe_write_ipa_not_loaded): New.
17502 (tracepoint_look_up_symbols): New.
17503 (debug_threads) [IN_PROCESS_AGENT]: New.
17504 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17505 (UNKNOWN_SIDE_EFFECTS): New.
17506 (stop_tracing): New.
17507 (flush_trace_buffer): New.
17508 (stop_tracing_bkpt): New.
17509 (flush_trace_buffer_bkpt): New.
17510 (read_inferior_integer): New.
17511 (read_inferior_uinteger): New.
17512 (read_inferior_data_pointer): New.
17513 (write_inferior_data_pointer): New.
17514 (write_inferior_integer): New.
17515 (write_inferior_uinteger): New.
17516 (struct collect_static_trace_data_action): Delete.
17517 (enum tracepoint_type): New.
17518 (struct tracepoint) <type>: New field `type'.
17519 <actions_str, step_actions, step_actions_str>: Only include in
17521 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17522 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17523 (tracepoints): Use IP_AGENT_EXPORT.
17524 (last_tracepoint): Don't include in the IPA.
17525 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17526 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17527 (alloced_trace_state_variables): New.
17528 (trace_state_variables): Use IP_AGENT_EXPORT.
17529 (traceframe_t): Delete unused variable.
17530 (circular_trace_buffer): Don't include in the IPA.
17531 (trace_buffer_start): Delete.
17532 (struct trace_buffer_control): New.
17533 (trace_buffer_free): Delete.
17534 (struct ipa_trace_buffer_control): New.
17535 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17536 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17538 (trace_buffer_ctrl): New.
17539 (TRACE_BUFFER_CTRL_CURR): New.
17540 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17541 Reimplement as macros.
17542 (trace_buffer_wrap): Delete.
17543 (traceframe_write_count, traceframe_read_count)
17544 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17545 (struct tracepoint_hit_ctx) <type>: New field.
17546 (struct fast_tracepoint_ctx): New.
17547 (memory_barrier): New.
17549 (record_tracepoint_error): Update atomically in the IPA.
17550 (clear_inferior_trace_buffer): New.
17551 (about_to_request_buffer_space): New.
17552 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17553 updating the same buffer.
17554 (add_tracepoint): Default the tracepoint's type to trap
17555 tracepoint, and orig_size to -1.
17556 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17557 internal variables.
17558 (create_trace_state_variable): New parameter `gdb'. Handle it.
17559 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17560 (cmd_qtdp): Handle fast tracepoints.
17561 (cmd_qtdv): Adjust.
17562 (max_jump_pad_size): New.
17563 (gdb_jump_pad_head): New.
17564 (get_jump_space_head): New.
17565 (claim_jump_space): New.
17566 (sort_tracepoints): New.
17567 (MAX_JUMP_SIZE): New.
17568 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17570 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17571 support. Upload fast traceframes, and delete internal IPA
17573 (stop_tracing_handler): New.
17574 (flush_trace_buffer_handler): New.
17575 (cmd_qtstop): Upload fast tracepoints.
17576 (response_tracepoint): Handle fast tracepoints.
17577 (tracepoint_finished_step): Upload fast traceframes. Set the
17578 tracepoint hit context's tracepoint type.
17579 (handle_tracepoint_bkpts): New.
17580 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17581 type. Add comment about fast tracepoints.
17582 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17583 non-existing action_str field.
17584 (get_context_regcache): Handle fast tracepoints.
17585 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17587 (fast_tracepoint_from_jump_pad_address): New.
17588 (fast_tracepoint_from_ipa_tpoint_address): New.
17589 (collecting_t): New.
17590 (force_unlock_trace_buffer): New.
17591 (fast_tracepoint_collecting): New.
17593 (gdb_collect): New.
17594 (write_inferior_data_ptr): New.
17595 (target_tp_heap): New.
17596 (target_malloc): New.
17597 (download_agent_expr): New.
17599 (download_tracepoints): New.
17600 (download_trace_state_variables): New.
17601 (upload_fast_traceframes): New.
17602 (IPA_FIRST_TRACEFRAME): New.
17603 (IPA_NEXT_TRACEFRAME_1): New.
17604 (IPA_NEXT_TRACEFRAME): New.
17605 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17606 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17607 (gdb_jump_pad_buffer_end): New.
17608 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17609 (initialize_tracepoint): Adjust.
17610 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17611 buffer. Initialize the low module.
17612 * utils.c (PREFIX, TOOLNAME): New.
17613 (malloc_failure): Use PREFIX.
17614 (error): In the IPA, an error causes an exit.
17615 (fatal, warning): Use PREFIX.
17616 (internal_error): Use TOOLNAME.
17617 (NUMCELLS): Increase to 10.
17618 * configure, config.in: Regenerate.
17620 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17622 * server.c (handle_query) <qSupported>: Do two passes over the
17623 qSupported string to avoid nesting strtok.
17625 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17627 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17629 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17630 -Wl,--dynamic-list.
17631 * configure: Regenerate.
17632 * proc-service.list: New.
17634 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17636 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17639 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17641 * gdbreplay.c (remote_open): Check error return from socket() call by
17642 its equality to -1 not by it being negative.
17643 * remote-utils.c (remote_open): Likewise.
17645 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17647 * config.h: Regenerate.
17649 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17651 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17652 doesn't provide PTRACE_GET_THREAD_AREA.
17654 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17656 * linux-m68k-low.c: Include <asm/ptrace.h>
17657 (ps_get_thread_area): Implement.
17659 2010-05-03 Doug Evans <dje@google.com>
17661 * event-loop.c (struct callback_event): New struct.
17662 (callback_list): New global.
17663 (append_callback_event, delete_callback_event): New functions.
17664 (process_callback): New function.
17665 (start_event_loop): Call it.
17666 * remote-utils.c (NOT_SCHEDULED): Define.
17667 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17668 moved out of readchar.
17669 (readchar): Rewrite. Call reschedule before returning.
17670 (reset_readchar): New function.
17671 (remote_close): Call it.
17672 (process_remaining, reschedule): New functions.
17673 * server.h (callback_handler_func): New typedef.
17674 (append_callback_event, delete_callback_event): Declare.
17676 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17678 * proc-service.c (ps_pglobal_lookup): Use
17679 thread_db_look_up_one_symbol.
17680 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17681 parameter. Use it instead of all_symbols_looked_up.
17682 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17684 (all_symbols_looked_up): Don't declare.
17685 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17686 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17688 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17689 Set all_symbols_looked_up here.
17690 (thread_db_look_up_one_symbol): New.
17691 (thread_db_get_tls_address): Adjust.
17692 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17693 thread_db object on the heap, and tentatively set it in the
17695 (thread_db_init): Don't set all_symbols_looked_up here.
17696 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17698 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17700 * linux-low.c (linux_kill, linux_detach): Adjust.
17701 (status_pending_p_callback): Remove redundant statement. Check
17702 for !TARGET_WAITIKIND_IGNORE, instead of
17703 TARGET_WAITKIND_STOPPED.
17704 (handle_tracepoints): Make sure LWP is locked. Adjust.
17705 (linux_wait_for_event_1): Adjust.
17706 (linux_cancel_breakpoints): New.
17707 (unsuspend_one_lwp): New.
17708 (unsuspend_all_lwps): New.
17709 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17710 (send_sigstop_callback): Change return type to int, add new
17711 `except' parameter and handle it.
17712 (suspend_and_send_sigstop_callback): New.
17713 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17714 pass them down. If SUSPEND, also increment the lwp's suspend
17716 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17717 (need_step_over_p): Don't consider suspended LWPs.
17718 (start_step_over): Adjust.
17719 (proceed_one_lwp): Change return type to int, add new `except'
17720 parameter and handle it.
17721 (unsuspend_and_proceed_one_lwp): New.
17722 (proceed_all_lwps): Use find_inferior instead of
17724 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17725 also decrement the suspend count of LWPs. Pass `except' down,
17726 instead of hacking its suspend count.
17727 (linux_pause_all): Add `freeze' parameter. Adjust.
17728 (linux_unpause_all): New.
17729 (linux_target_ops): Install linux_unpause_all.
17730 * server.c (handle_status): Adjust.
17731 * target.h (struct target_ops): New fields `unpause_all' and
17732 `cancel_breakpoints'. Add new parameter to `pause_all'.
17733 (pause_all): Add new `freeze' parameter.
17734 (unpause_all): New.
17735 (cancel_breakpoints): New.
17736 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17737 cancel breakpoints.
17738 (cmd_qtstart): Pause threads.
17739 (stop_tracing): Pause threads, and cancel breakpoints.
17740 * win32-low.c (win32_target_ops): Adjust.
17742 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17744 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17745 the inferior right away from here...
17746 (linux_wait_1): ... to here, and adjust to check the thread's
17747 last_resume_kind instead of the lwp's step or stop_expected flags.
17749 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17751 * README: Use consistent `GDB' and `GDBserver' spellings.
17753 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17755 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17756 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17757 (linux_detach_one_lwp): Assume the lwp is stopped.
17758 (any_thread_of): Delete.
17759 (linux_detach): Stop all lwps here. Don't blindly delete all
17761 (delete_lwp_callback): New.
17762 (linux_mourn): Delete all lwps of the process that is gone.
17763 (linux_wait_1): Don't delete the last lwp of the process here.
17764 * mem-break.h (mark_breakpoints_out): Declare.
17765 * mem-break.c (mark_breakpoints_out): New.
17766 (free_all_breakpoints): Use it.
17767 * server.c (handle_target_event): If the process is gone, mark
17769 * thread-db.c (struct thread_db) <create_bp>: New field.
17770 (thread_db_enable_reporting): Fix prototype. Store a thread event
17771 breakpoint reference in the thread_db struct.
17772 (thread_db_load_search): Clear the thread_db object.
17773 (try_thread_db_load_1): Ditto.
17774 (switch_to_process): New.
17775 (disable_thread_event_reporting): Use it.
17776 (remove_thread_event_breakpoints): New.
17777 (thread_db_detach, thread_db_mourn): Use it.
17779 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17781 * linux-low.c (linux_enable_event_reporting): New.
17782 (linux_wait_for_event_1, handle_extended_wait): Use it.
17784 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17786 * linux-low.c (linux_kill_one_lwp, linux_kill)
17787 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17788 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17789 SIGSTOP even if the LWP is stopped.
17790 (send_sigstop_callback): New.
17791 (stop_all_lwps): Use send_sigstop_callback instead.
17792 (linux_resume_one_thread): Adjust.
17793 (proceed_one_lwp): Still proceed an LWP that the client has
17794 requested to stop, if we haven't reported it as stopped yet. Make
17795 sure that LWPs the client want stopped, have a pending SIGSTOP.
17797 2010-04-26 Doug Evans <dje@google.com>
17799 * server.c (handle_general_set): Make static.
17801 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17802 Print received char after testing for error/eof instead of before.
17803 (input_interrupt): Tweak comment.
17805 2010-04-23 Doug Evans <dje@google.com>
17807 * server.c (start_inferior): Print inferior argv if --debug.
17809 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17811 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17812 * nto-x86-low.c: Include server.h
17814 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17816 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17817 be consistent with other sources of this directory.
17818 (init_registers_amd64): Correct name of source file of this function
17821 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17823 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17824 64-bit executables.
17826 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17828 * win32-i386-low.c: Add 64-bit support.
17829 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17830 (init_registers_amd64): Declare.
17831 (mappings): Add 64-bit version of array.
17832 (init_windows_x86): New function.
17833 (the_low_target): Change init_arch field to init_windows_x86.
17835 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17837 * win32-low.c: Adapt to support also 64-bit architecture.
17838 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17839 (get_image_name): Use SIZE_T type for local variable `done'.
17840 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17841 (toolhelp_get_dll_name): Idem.
17842 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17843 Use uintptr_t typecast to avoid warning.
17844 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17845 (handle_exception): Use phex_nz to avoid warning.
17846 (win32_wait): Remove unused local variable `process'.
17848 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17850 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17853 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17855 * configure.ac: Use `ws2_32' library for srv_mingw.
17856 * configure: Regenerate.
17857 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17858 * remote-utils.c: Likewise.
17860 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17862 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17863 if __x86_64__ is defined.
17865 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17867 * configure: Regenerate.
17869 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17871 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17872 * target.h (target_ops): New get_tib_address field.
17873 * win32-low.h (win32_thread_info): Add thread_local_base field.
17874 * win32-low.c (child_add_thread): Add tlb argument.
17875 Set thread_local_base field to TLB.
17876 (get_child_debug_event): Adapt to child_add_thread change.
17877 (win32_get_tib_address): New function.
17878 (win32_target_ops): Set get_tib_address field to
17879 win32_get_tib_address.
17880 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17882 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17884 * linux-low.c (linux_mourn): Also remove the process.
17885 * server.c (handle_target_event): Don't remove the process here.
17886 * nto-low.c (nto_mourn): New.
17887 (nto_target_ops): Install it.
17888 * spu-low.c (spu_mourn): New.
17889 (spu_target_ops): Install it.
17890 * win32-low.c (win32_mourn): New.
17891 (win32_target_ops): Install it.
17893 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17895 * server.h (buffer_xml_printf): Remove redundant `;'.
17897 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17899 * regcache.c (set_register_cache): Invalidate regcaches before
17900 changing the register cache layout.
17901 (regcache_invalidate_one): Allow a NULL regcache.
17902 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17903 regcaches before changing the register cache layout or the target
17906 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17908 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17909 variable warning on Linux/x86-64.
17911 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17913 GDBserver disconnected tracing support.
17915 * linux-low.c (linux_remove_process): Delete.
17916 (add_lwp): Don't set last_resume_kind here.
17917 (linux_kill): Use `mourn'.
17918 (linux_detach): Use `thread_db_detach', and `mourn'.
17919 (linux_mourn): New.
17920 (linux_attach_lwp_1): Adjust comment.
17921 (linux_attach): last_resume_kind moved the thread_info; adjust.
17922 (status_pending_p_callback): Adjust.
17923 (linux_wait_for_event_1): Adjust.
17924 (count_events_callback, select_singlestep_lwp_callback)
17925 (select_event_lwp_callback, cancel_breakpoints_callback)
17926 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17927 (proceed_one_lwp): Adjust.
17928 (linux_async): Add debug output.
17929 (linux_thread_stopped): New.
17930 (linux_pause_all): New.
17931 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17933 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17934 (thread_db_free): Delete declaration.
17935 (thread_db_detach, thread_db_mourn): Declare.
17936 * thread-db.c (thread_db_init): Use thread_db_mourn.
17937 (thread_db_free): Delete, split in two.
17938 (disable_thread_event_reporting): New.
17939 (thread_db_detach): New.
17940 (thread_db_mourn): New.
17942 * server.h (struct thread_info) <last_resume_kind>: New field.
17943 <attached>: Add comment.
17944 <gdb_detached>: New field.
17945 (handler_func): Change return type to int.
17946 (handle_serial_event, handle_target_event): Ditto.
17947 (gdb_connected): Declare.
17949 (disconnected_tracing): Declare.
17950 (stop_tracing): Declare.
17952 * server.c (handle_query) <qSupported>: Report support for
17953 disconnected tracing.
17954 (queue_stop_reply_callback): Account for running threads.
17955 (gdb_wants_thread_stopped): New.
17956 (gdb_wants_all_threads_stopped): New.
17957 (gdb_reattached_process): New.
17958 (handle_status): Clear the `gdb_detached' flag of all processes.
17959 In all-stop, stop all threads.
17960 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17961 (process_serial_event): If the remote connection breaks, or if an
17962 exit was forced with "monitor exit", force an event loop exit.
17963 Handle disconnected tracing on detach.
17964 (handle_serial_event): Adjust.
17965 (handle_target_event): If GDB isn't connected, forward events back
17966 to the inferior, unless the last process exited, in which case,
17967 exit gdbserver. Adjust interface.
17969 * remote-utils.c (remote_open): Don't block in accept. Instead
17970 register an event loop source on the listen socket file
17971 descriptor. Refactor bits into ...
17972 (listen_desc): ... this new global.
17973 (gdb_connected): ... this new function.
17974 (enable_async_notification): ... this new function.
17975 (handle_accept_event): ... this new function.
17976 (remote_close): Clear remote_desc.
17978 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17980 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17982 (mourn_inferior): Define.
17983 (target_process_qsupported): Avoid the dangling else problem.
17984 (thread_stopped): Define.
17985 (pause_all): Define.
17986 (target_waitstatus_to_string): Declare.
17987 * target.c (target_waitstatus_to_string): New.
17989 * tracepoint.c (tracing): Make extern.
17990 (disconnected_tracing): New.
17991 (stop_tracing): Make extern. Handle tracing stops due to GDB
17993 (cmd_qtdisconnected): New.
17994 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17995 (handle_tracepoint_general_set): Handle QTDisconnected.
17997 * event-loop.c (event_handler_func): Change return type to int.
17998 (process_event): Bail out if the event handler wants the event
18000 (handle_file_event): Ditto.
18001 (start_event_loop): Bail out if the event handler wants the event
18004 * nto-low.c (nto_target_ops): Adjust.
18005 * spu-low.c (spu_wait): Don't remove the process here.
18006 (spu_target_ops): Adjust.
18007 * win32-low.c (win32_wait): Don't remove the process here.
18008 (win32_target_ops): Adjust.
18010 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18012 * regcache.c (realloc_register_cache): Invalidate inferior's
18013 regcache before recreating it.
18015 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18017 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18019 2010-04-09 Stan Shebs <stan@codesourcery.com>
18020 Pedro Alves <pedro@codesourcery.com>
18022 * server.h (LONGEST): New.
18023 (struct thread_info) <while_stepping>: New field.
18024 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18026 (initialize_tracepoint, handle_tracepoint_general_set)
18027 (handle_tracepoint_query, tracepoint_finished_step)
18028 (tracepoint_was_hit, release_while_stepping_state_list):
18029 (current_traceframe): Declare.
18030 * server.c (handle_general_set): Handle tracepoint packets.
18031 (read_memory): New.
18032 (write_memory): New.
18033 (handle_search_memory_1): Use read_memory.
18034 (handle_query): Report support for conditional tracepoints, trace
18035 state variables, and tracepoint sources. Handle tracepoint
18037 (main): Initialize the tracepoints module.
18038 (process_serial_event): Handle traceframe reads/writes.
18040 * linux-low.c (handle_tracepoints): New.
18041 (linux_wait_1): Call it.
18042 (linux_resume_one_lwp): Handle while-stepping.
18043 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18044 (linux_target_ops): Install them.
18045 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18047 * linux-x86-low.c (x86_supports_tracepoints): New.
18048 (the_low_target). Install it.
18050 * mem-break.h (delete_breakpoint): Declare.
18051 * mem-break.c (delete_breakpoint): Make external.
18053 * target.h (struct target_ops): Add `supports_tracepoints',
18054 `read_pc', and `write_pc' fields.
18055 (target_supports_tracepoints): Define.
18056 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18059 * regcache.h (struct regcache) <registers_owned>: New field.
18060 (init_register_cache, regcache_cpy): Declare.
18061 (regcache_read_pc, regcache_write_pc): Declare.
18062 (register_cache_size): Declare.
18063 (supply_regblock): Declare.
18064 * regcache.c (init_register_cache): New.
18065 (new_register_cache): Use it.
18066 (regcache_cpy): New.
18067 (register_cache_size): New.
18068 (supply_regblock): New.
18069 (regcache_read_pc, regcache_write_pc): New.
18071 * tracepoint.c: New.
18073 * Makefile.in (OBS): Add tracepoint.o.
18074 (tracepoint.o): New rule.
18076 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18078 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18080 (i386-mmx.c): Likewise.
18081 (i386-mmx-linux.o): Likewise.
18082 (i386-mmx-linux.c): Likewise.
18084 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18085 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18086 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18087 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18089 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18090 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18091 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18093 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18095 * Makefile.in (clean): Updated.
18097 (i386-avx.c): Likewise.
18098 (i386-avx-linux.o): Likewise.
18099 (i386-avx-linux.c): Likewise.
18100 (amd64-avx.o): Likewise.
18101 (amd64-avx.c): Likewise.
18102 (amd64-avx-linux.o): Likewise.
18103 (amd64-avx-linux.c): Likewise.
18105 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18106 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18107 (srv_amd64_regobj): Add amd64-avx.o.
18108 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18109 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18110 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18111 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18112 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18113 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18114 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18116 * i387-fp.c: Include "i386-xstate.h".
18118 (i387_cache_to_xsave): Likewise.
18119 (i387_xsave_to_cache): Likewise.
18120 (x86_xcr0): Likewise.
18122 * i387-fp.h (i387_cache_to_xsave): Likewise.
18123 (i387_xsave_to_cache): Likewise.
18124 (x86_xcr0): Likewise.
18126 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18127 * linux-crisv32-low.c (target_regsets): Likewise.
18128 * linux-m68k-low.c (target_regsets): Likewise.
18129 * linux-mips-low.c (target_regsets): Likewise.
18130 * linux-ppc-low.c (target_regsets): Likewise.
18131 * linux-s390-low.c (target_regsets): Likewise.
18132 * linux-sh-low.c (target_regsets): Likewise.
18133 * linux-sparc-low.c (target_regsets): Likewise.
18134 * linux-xtensa-low.c (target_regsets): Likewise.
18136 * linux-low.c: Include <sys/uio.h>.
18137 (regsets_fetch_inferior_registers): Support nt_type.
18138 (regsets_store_inferior_registers): Likewise.
18139 (linux_process_qsupported): New.
18140 (linux_target_ops): Add linux_process_qsupported.
18142 * linux-low.h (regset_info): Add nt_type.
18143 (linux_target_ops): Add process_qsupported.
18145 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18147 (init_registers_i386_avx_linux): New.
18148 (init_registers_amd64_avx_linux): Likewise.
18149 (xmltarget_i386_linux_no_xml): Likewise.
18150 (xmltarget_amd64_linux_no_xml): Likewise.
18151 (PTRACE_GETREGSET): Likewise.
18152 (PTRACE_SETREGSET): Likewise.
18153 (x86_fill_xstateregset): Likewise.
18154 (x86_store_xstateregset): Likewise.
18155 (use_xml): Likewise.
18156 (x86_linux_update_xmltarget): Likewise.
18157 (x86_linux_process_qsupported): Likewise.
18158 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18159 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18160 init_registers_i386_linux here. Call
18161 x86_linux_update_xmltarget.
18162 (the_low_target): Add x86_linux_process_qsupported.
18164 * server.c (handle_query): Call target_process_qsupported.
18166 * target.h (target_ops): Add process_qsupported.
18167 (target_process_qsupported): New.
18169 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18171 * inferiors.c (add_thread): Set last_status kind to
18172 TARGET_WAITKIND_IGNORE.
18173 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18174 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18175 (linux_wait_1): Move `thread' local definition to block that uses
18176 it. Don't NULL initialize `event_child'.
18177 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18178 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18179 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18181 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18183 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18184 an extended waitstatus, or by a watchpoint.
18185 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18186 thread was stepping or has been stopped by a watchpoint.
18188 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18190 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18191 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18192 of another, then delete the previous, and validate all
18194 (validate_inserted_breakpoint): New.
18195 (delete_disabled_breakpoints): New.
18196 (validate_breakpoints): New.
18197 (check_mem_read): Validate breakpoints before trusting their
18198 shadow. Delete disabled breakpoints.
18199 (check_mem_write): Validate breakpoints before trusting they
18200 should be inserted. Delete disabled breakpoints.
18201 * mem-break.h (validate_breakpoints):
18202 * server.c (handle_query): Validate breakpoints when we see a
18205 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18207 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18208 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18209 if we could tell there's a GDB breakpoint at stop_pc.
18210 (need_step_over_p): Don't do a step over if we find a GDB
18211 breakpoint at the resume PC.
18213 * mem-break.c (struct raw_breakpoint): New.
18214 (enum bkpt_type): New type `gdb_breakpoint'.
18215 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18216 fields. New field `raw'.
18217 (find_raw_breakpoint_at): New.
18218 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18219 breakpoint instead.
18220 (set_breakpoint_at): Adjust.
18221 (delete_raw_breakpoint): New.
18222 (release_breakpoint): New.
18223 (delete_breakpoint): Rename to...
18224 (delete_breakpoint_1): ... this. Add proc parameter. Use
18225 release_breakpoint. Return ENOENT.
18226 (delete_breakpoint): Reimplement.
18227 (find_breakpoint_at): Delete.
18228 (find_gdb_breakpoint_at): New.
18229 (delete_breakpoint_at): Delete.
18230 (set_gdb_breakpoint_at): New.
18231 (delete_gdb_breakpoint_at): New.
18232 (gdb_breakpoint_here): New.
18233 (set_reinsert_breakpoint): Use release_breakpoint.
18234 (uninsert_breakpoint): Rename to ...
18235 (uninsert_raw_breakpoint): ... this.
18236 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18237 (reinsert_raw_breakpoint): Change parameter type to
18239 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18241 (check_breakpoints): Adjust. Use release_breakpoint.
18242 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18243 (breakpoint_inserted_here): Ditto.
18244 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18245 Don't trust the breakpoint's shadow if it is not inserted.
18246 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18247 (delete_all_breakpoints): Adjust.
18248 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18249 use delete_breakpoint_1.
18251 * mem-break.h (breakpoints_supported): Delete declaration.
18252 (set_gdb_breakpoint_at): Declare.
18253 (gdb_breakpoint_here): Declare.
18254 (delete_breakpoint_at): Delete.
18255 (delete_gdb_breakpoint_at): Declare.
18257 * server.h (struct raw_breakpoint): Forward declare.
18258 (struct process_info): New field `raw_breakpoints'.
18260 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18263 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18265 * linux-low.c (status_pending_p_callback): Fix comment.
18266 (linux_wait_for_event_1): Move most of the internal breakpoint
18267 handling from here...
18268 (linux_wait_1): ... to here.
18269 (count_events_callback): New.
18270 (select_singlestep_lwp_callback): New.
18271 (select_event_lwp_callback): New.
18272 (cancel_breakpoints_callback): New.
18273 (select_event_lwp): New.
18274 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18275 priority to all LWPs that have had events that should be reported
18276 to the client. Cancel breakpoints when about to reporting the
18277 event to the client, not while stopping lwps. No longer cancel
18278 finished single-steps here.
18279 (cancel_finished_single_step): Delete.
18280 (cancel_finished_single_steps): Delete.
18282 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18284 * mem-break.c (enum bkpt_type): New.
18285 (struct breakpoint): New field `type'.
18286 (set_breakpoint_at): Change return type to struct breakpoint
18287 pointer. Set type to `other_breakpoint' by default.
18288 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18289 in the breakpoint list.
18290 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18291 (reinsert_breakpoint): Rename to ...
18292 (reinsert_raw_breakpoint): ... this.
18293 (reinsert_breakpoints_at): Adjust.
18294 * mem-break.h (struct breakpoint): Declare.
18295 (set_breakpoint_at): Change return type to struct breakpoint
18298 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18300 * server.c (handle_query): Assign, not compare.
18302 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18304 Teach linux gdbserver to step-over-breakpoints.
18306 * linux-low.c (can_hardware_single_step): New.
18307 (supports_breakpoints): New.
18308 (handle_extended_wait): If stopping threads, read the stop pc of
18309 the new cloned LWP.
18311 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18312 low target doesn't support retrieving the PC.
18313 (add_lwp): Set last_resume_kind to resume_continue.
18314 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18315 (linux_attach): Don't clear stop_expected. Set the lwp's
18316 last_resume_kind to resume_stop.
18317 (linux_detach_one_lwp): Don't check for removed breakpoints.
18318 (check_removed_breakpoint): Delete.
18319 (status_pending_p): Rename to ...
18320 (status_pending_p_callback): ... this. Don't check for removed
18321 breakpoints. Don't consider threads that are stopped from GDB's
18323 (linux_wait_for_lwp): Always read the stop_pc here.
18324 (cancel_breakpoint): New.
18325 (step_over_bkpt): New global.
18326 (linux_wait_for_event_1): Implement stepping over breakpoints.
18327 (gdb_wants_lwp_stopped): New.
18328 (gdb_wants_all_stopped): New.
18329 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18330 single-step traps here. Store the thread's last reported target
18332 (send_sigstop): Don't clear stop_expected. Always set it,
18334 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18335 (cancel_finished_single_step): New.
18336 (cancel_finished_single_steps): New.
18337 (wait_for_sigstop): Don't cancel finished single-step traps here.
18338 (linux_resume_one_lwp): Don't check for removed breakpoints.
18339 Don't set `step' on non-hardware step archs.
18340 (linux_set_resume_request): Ignore resume_stop requests if already
18341 stopping or stopped. Set the lwp's last_resume_kind.
18342 (resume_status_pending_p): Don't check for removed breakpoints.
18343 (need_step_over_p): New.
18344 (start_step_over): New.
18345 (finish_step_over): New.
18346 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18347 requests. Clear the thread's last reported target waitstatus.
18348 Don't use the `suspended' flag. Don't consider pending breakpoints.
18349 (linux_resume): Start a step-over if necessary.
18350 (proceed_one_lwp): New.
18351 (proceed_all_lwps): New.
18352 (unstop_all_lwps): New.
18353 * linux-low.h (struct lwp_info): Rewrite comment for the
18354 `suspended' flag. Add the `stop_pc' field. Delete the
18355 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18356 Add `'last_resume_kind' and `need_step_over' fields.
18357 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18358 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18359 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18360 (set_raw_breakpoint_at): New.
18361 (set_breakpoint_at): Rewrite to use it.
18362 (reinsert_breakpoint_handler): Delete.
18363 (set_reinsert_breakpoint): New.
18364 (reinsert_breakpoint_by_bp): Delete.
18365 (delete_reinsert_breakpoints): New.
18366 (uninsert_breakpoint): Rewrite.
18367 (uninsert_breakpoints_at): New.
18368 (reinsert_breakpoint): Rewrite.
18369 (reinsert_breakpoints_at): New.
18370 (check_breakpoints): Rewrite.
18371 (breakpoint_here): New.
18372 (breakpoint_inserted_here): New.
18373 (check_mem_read): Adjust.
18374 * mem-break.h (breakpoints_supported, breakpoint_here)
18375 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18376 (reinsert_breakpoint_by_bp): Delete declaration.
18377 (delete_reinsert_breakpoints): Declare.
18378 (reinsert_breakpoint): Delete declaration.
18379 (reinsert_breakpoints_at): Declare.
18380 (uninsert_breakpoint): Delete declaration.
18381 (uninsert_breakpoints_at): Declare.
18382 (check_breakpoints): Adjust prototype.
18383 * server.h: Adjust include order.
18384 (struct thread_info): Declare here. Add a `last_status' field.
18386 2010-03-23 Michael Snyder <msnyder@vmware.com>
18388 * server.c (crc32): New function.
18389 (handle_query): Add handling for 'qCRC:' request.
18391 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18393 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18394 lwp had been stopped by a watchpoint.
18396 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18398 * server.h (internal_error): Declare.
18399 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18400 * utils.c (internal_error): New function.
18402 2010-03-15 Andreas Schwab <schwab@redhat.com>
18404 * configure.srv: Fix typo setting srv_regobj.
18406 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18408 * linux-low.c (fetch_register): Avoid passing a non string literal
18410 (usr_store_inferior_registers): Ditto.
18412 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18414 * linux-low.c (linux_write_memory): Bail out early if peeking
18417 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18419 * linux-low.h (struct lwp_info): New fields
18420 `stopped_by_watchpoint' and `stopped_data_address'.
18421 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18422 here, and cache them in the lwp object.
18423 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18425 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18427 (linux_stopped_by_watchpoint): Rewrite.
18428 (linux_stopped_data_address): Rewrite.
18430 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18432 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18433 switching the current inferior, not before.
18435 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18437 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18438 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18439 i386-linux.c and amd64-linux.c.
18440 (reg-i386.o): Removed.
18441 (reg-i386.c): Likewise.
18442 (reg-i386-linux.o): Likewise.
18443 (reg-i386-linux.c): Likewise.
18444 (reg-x86-64.o): Likewise.
18445 (reg-x86-64.c): Likewise.
18446 (reg-x86-64-linux.o): Likewise.
18447 (reg-x86-64-linux.c): Likewise.
18449 (i386.c): Likewise.
18450 (i386-linux.o): Likewise.
18451 (i386-linux.c): Likewise.
18452 (amd64.o): Likewise.
18453 (amd64.c): Likewise.
18454 (amd64-linux.o): Likewise.
18455 (amd64-linux.c): Likewise.
18457 * configure.srv (srv_i386_regobj): New.
18458 (srv_i386_linux_regobj): Likewise.
18459 (srv_amd64_regobj): Likewise.
18460 (srv_amd64_linux_regobj): Likewise.
18461 (srv_i386_32bit_xmlfiles): Likewise.
18462 (srv_i386_64bit_xmlfiles): Likewise.
18463 (srv_i386_xmlfiles): Likewise.
18464 (srv_amd64_xmlfiles): Likewise.
18465 (srv_i386_linux_xmlfiles): Likewise.
18466 (srv_amd64_linux_xmlfiles): Likewise.
18467 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18468 srv_xmlfiles to $srv_i386_xmlfiles.
18469 (i[34567]86-*-mingw32ce*): Likewise.
18470 (i[34567]86-*-mingw*): Likewise.
18471 (i[34567]86-*-nto*): Likewise.
18472 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18473 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18474 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18475 (x86_64-*-linux*): Likewise.
18477 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18478 (init_registers_amd64_linux): New.
18479 (x86_arch_setup): Replace init_registers_x86_64_linux with
18480 init_registers_amd64_linux.
18482 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18484 * configure.ac: Check for libdl. If it is not available link against
18485 static libthread_db.
18486 * configure: Regenerate.
18488 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18492 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18493 handing a read watchpoint.
18494 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18496 2010-02-12 Doug Evans <dje@google.com>
18498 * linux-low.c (linux_supports_tracefork_flag): Document.
18499 (linux_look_up_symbols): Add comment.
18501 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18503 * regcache.c (supply_register): Clear regcache if buf is NULL.
18505 2010-02-02 Nicolas Roche <roche@sourceware.org>
18506 Joel Brobecker <brobecker@adacore.com>
18508 * inferiors.c (find_inferior): Add function documentation.
18509 (unloaded_dll): Handle the case where the unloaded dll has not
18510 been previously registered in the dll list.
18512 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18514 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18515 (thumb2_breakpoint): New.
18516 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18518 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18520 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18521 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18524 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18526 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18528 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18530 * linux-s390-low.c (s390_collect_ptrace_register)
18531 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18533 2010-01-21 Doug Evans <dje@google.com>
18535 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18536 (PTRACE_ARG4_TYPE): New macro.
18537 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18538 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18539 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18540 (usr_store_inferior_registers): Ditto.
18541 (linux_read_memory, linux_write_memory): Ditto.
18542 (linux_test_for_tracefork): Ditto.
18544 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18545 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18547 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18549 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18552 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18554 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18555 prototype to take a regcache. Adjust.
18557 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18559 * regcache.h (struct thread_info): Forward declare.
18560 (struct regcache): New.
18561 (new_register_cache): Adjust prototype.
18562 (get_thread_regcache): Declare.
18563 (free_register_cache): Adjust prototype.
18564 (registers_to_string, registers_from_string): Ditto.
18565 (supply_register, supply_register_by_name, collect_register)
18566 (collect_register_as_string, collect_register_by_name): Ditto.
18567 * regcache.c (struct inferior_regcache_data): Delete.
18568 (get_regcache): Rename to ...
18569 (get_thread_regcache): ... this. Adjust. Switch inferior before
18570 fetching registers.
18571 (regcache_invalidate_one): Adjust.
18572 (regcache_invalidate): Fix prototype.
18573 (new_register_cache): Return the new register cache.
18574 (free_register_cache): Change prototype.
18575 (realloc_register_cache): Adjust.
18576 (registers_to_string): Change prototype to take a regcache. Adjust.
18577 (registers_from_string): Ditto.
18578 (register_data): Ditto.
18579 (supply_register): Ditto.
18580 (supply_register_by_name): Ditto.
18581 (collect_register): Ditto.
18582 (collect_register_as_string): Ditto.
18583 (collect_register_by_name): Ditto.
18584 * server.c (process_serial_event): Adjust.
18585 * linux-low.h (regset_fill_func, regset_store_func): Change
18587 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18589 * linux-low.c (get_stop_pc): Adjust.
18590 (check_removed_breakpoint): Adjust.
18591 (linux_wait_for_event): Adjust.
18592 (linux_resume_one_lwp): Adjust.
18593 (fetch_register): Add regcache parameter. Adjust.
18594 (usr_store_inferior_registers): Ditto.
18595 (regsets_fetch_inferior_registers): Ditto.
18596 (regsets_store_inferior_registers): Ditto.
18597 (linux_fetch_registers, linux_store_registers): Ditto.
18598 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18600 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18602 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18603 prototype to take a regcache.
18604 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18605 * remote-utils.c (convert_ascii_to_int, outreg)
18606 (prepare_resume_reply): Change prototype to take a regcache.
18608 * target.h (struct target_ops) <fetch_registers, store_registers>:
18609 Change prototype to take a regcache.
18610 (fetch_inferior_registers, store_inferior_registers): Change
18611 prototype to take a regcache. Adjust.
18612 * proc-service.c (ps_lgetregs): Adjust.
18613 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18614 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18615 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18616 take a regcache. Adjust.
18617 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18618 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18619 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18620 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18621 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18622 (cris_cannot_fetch_register):
18623 (cris_breakpoint_at): Change prototype to take a regcache.
18625 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18626 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18627 to take a regcache. Adjust.
18628 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18630 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18631 take a regcache. Adjust.
18632 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18633 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18634 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18635 * linux-mips-low.c (mips_get_pc):
18636 (mips_set_pc): Change prototype to take a regcache. Adjust.
18637 (mips_reinsert_addr): Adjust.
18638 (mips_collect_register): Change prototype to take a regcache.
18640 (mips_supply_register):
18641 (mips_collect_register_32bit, mips_supply_register_32bit)
18642 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18643 (mips_store_fpregset): Ditto.
18644 * linux-ppc-low.c (ppc_supply_ptrace_register)
18645 (ppc_supply_ptrace_register): Ditto.
18646 (parse_spufs_run): Adjust.
18647 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18648 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18649 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18650 take a regcache. Adjust.
18651 * linux-s390-low.c (s390_collect_ptrace_register)
18652 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18653 (s390_set_pc): Change prototype to take a regcache. Adjust.
18654 (s390_arch_setup): Adjust.
18655 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18656 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18657 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18658 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18659 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18661 (sparc_breakpoint_at): Adjust.
18662 * linux-xtensa-low.c (xtensa_fill_gregset):
18663 (xtensa_store_gregset):
18664 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18665 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18666 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18667 prototype to take a regcache. Adjust.
18668 * win32-arm-low.c (arm_fetch_inferior_register)
18669 (arm_store_inferior_register): Change prototype to take a
18671 * win32-i386-low.c (i386_fetch_inferior_register)
18672 (i386_store_inferior_register): Change prototype to take a
18674 * win32-low.c (child_fetch_inferior_registers)
18675 (child_store_inferior_registers): Change prototype to take a
18677 (win32_wait): Adjust.
18678 (win32_fetch_inferior_registers): Change prototype to take a
18680 (win32_store_inferior_registers): Adjust.
18681 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18682 store_inferior_register>: Change prototype to take a regcache.
18684 2010-01-20 Doug Evans <dje@google.com>
18686 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18688 (linux_wait_for_event1, linux_init_signals): Ditto.
18689 (W_STOPCODE): Provide definition if missing.
18691 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18693 * linux-low.c (linux_core_of_thread): New.
18694 (compare_ints, show_process, list_threads): New.
18695 (linux_qxfer_osdata): Report threads and cores.
18696 (linux_target_op): Register linux_core_of_thread.
18697 * remote-utils.c (prepare_resume_reply): Report the core.
18698 (buffer_xml_printf): Support %d specifier.
18699 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18701 (handle_query): Handle qXfer:threads. Announce availability
18703 * target.h (struct target_ops): New field core_of_thread.
18705 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18707 * Makefile.in (clean): Remove new generated files.
18708 (reg-s390.o, reg-s390.c): Remove rules.
18709 (reg-s390x.o, reg-s390x.c): Likewise.
18710 (s390-linux32.o, s390-linux32.c): Add rules.
18711 (s390-linux64.o, s390-linux64.c): Likewise.
18712 (s390x-linux64.o, s390x-linux64.c): Likewise.
18713 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18714 * linux-s390-low.c: Include <elf.h>.
18715 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18716 (init_registers_s390): Remove prototype.
18717 (init_registers_s390x): Likewise.
18718 (init_registers_s390_linux32): Add prototype.
18719 (init_registers_s390_linux64): Likewise.
18720 (init_registers_s390x_linux64): Likewise.
18721 (s390_num_regs_3264): New define.
18722 (s390_regmap_3264): New global variable.
18723 (s390_cannot_fetch_register): Remove obsolete check.
18724 (s390_cannot_store_register): Likewise.
18725 (s390_collect_ptrace_register): Handle upper/lower register halves.
18726 (s390_supply_ptrace_register): Likewise.
18727 (s390_fill_gregset): Update to register number changes.
18728 (s390_get_hwcap): New routine.
18729 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18730 Install appropriate regmap and register set.
18732 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18734 * server.c (gdbserver_version): Update copyright year to 2010.
18735 * gdbreplay.c (gdbreplay_version): Likewise.
18737 2009-12-28 Doug Evans <dje@google.com>
18739 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18740 elf/external.h. Include <elf.h> instead but only if necessary.
18742 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18744 * linux-low.c (linux_remove_process): Remove `detaching'
18745 parameter. Don't release/detach from thread_db here.
18746 (linux_kill): Release/detach from thread_db here, ...
18747 (linux_detach): ... and here, before actually detaching.
18748 (linux_wait_1): ... and here, when a process exits.
18749 * thread-db.c (any_thread_of): New.
18750 (thread_db_free): Switch the current inferior to a thread of the
18753 2009-12-21 Doug Evans <dje@google.com>
18755 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18757 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18758 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18759 warning ifndef __NR_tkill. Move setting of errno there too.
18760 Delete unnecessary resetting of errno after syscall.
18761 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18763 * configure.ac: Check for dladdr.
18764 * config.in: Regenerate.
18765 * configure: Regenerate.
18766 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18767 (try_thread_db_load): Update.
18769 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18771 2009-12-18 Doug Evans <dje@google.com>
18773 * event-loop.c: Include unistd.h if it exists.
18775 * linux-low.c (my_waitpid): Move definition away from being in
18776 between linux_tracefork_child/linux_test_for_tracefork.
18778 * gdb_proc_service.h (psaddr_t): Fix type.
18779 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18780 signature to match glibc.
18782 2009-12-16 Doug Evans <dje@google.com>
18784 * linux-low.c (linux_read_memory): Fix argument to read.
18786 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18788 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18789 events, don't leave current_inferior pointing at null.
18791 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18793 * win32-low.c (LOG): Delete.
18794 (OUTMSG): Output to stderr.
18795 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18796 on compile time LOG macro.
18797 (win32_wait): Fix debug output.
18799 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18801 * win32-low.c (win32_add_one_solib): If the dll name is
18802 "ntdll.dll", prepend the system directory to the dll path.
18804 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18806 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18808 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18809 Vladimir Prus <vladimir@codesourcery.com>
18811 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18812 * configure.ac: Check for __mcoldfire__ and set
18813 gdb_cv_m68k_is_coldfire.
18814 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18815 reg-cf.o and reg-m68k.o.
18816 * configure: Regenerated.
18818 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18820 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18821 Pass it to thread_db_free.
18822 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18823 proper `detaching' argument to linux_remove_process.
18824 * linux-low.h (thread_db_free): Add `detaching' parameter.
18825 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18827 (thread_db_free): Add `detaching' parameter. Only
18828 call td_ta_clear_event if detaching from process.
18830 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18832 * thread-db.c (thread_db_free): Fix typo.
18834 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18837 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18839 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18841 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18842 with an i686 compiler.
18843 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18845 * configure: Rebuilt.
18847 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18851 * server.c (handle_search_memory_1): Correct read_addr initialization
18852 in loop for searching subsequent chunks.
18854 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18856 * configure.ac: New --with-libthread-db option.
18857 * thread-db.c: Allow direct dependence on libthread_db.
18858 (thread_db_free): Adjust.
18859 * config.in: Regenerate.
18860 * configure: Likewise.
18862 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18865 * thread-db.c (attach_thread): New function.
18866 (maybe_attach_thread): Return success/failure.
18867 (find_new_threads_callback): Adjust.
18868 (thread_db_find_new_threads): Loop until no new threads.
18870 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18872 * proc-service.c (ps_lgetregs): Formatting.
18874 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18876 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18877 * configure.ac: Adjust.
18878 * linux-low.h (struct process_info_private): Move members to struct
18880 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18881 * linux-low.c (linux_remove_process): Adjust.
18882 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18883 * server.c (handle_query): Move code ...
18884 (handle_monitor_command): ... here. New function.
18885 * target.h (struct target_ops): New member.
18886 * thread-db.c (struct thread_db): New.
18887 (libthread_db_search_path): New variable.
18888 (thread_db_create_event, thread_db_enable_reporting)
18889 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18890 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18891 (try_thread_db_load_1, dladdr_to_soname): New functions.
18892 (try_thread_db_load, thread_db_load_search): New functions.
18893 (thread_db_init): Search for libthread_db.
18894 (thread_db_free): New function.
18895 (thread_db_handle_monitor_command): Likewise.
18896 * config.in: Regenerate.
18897 * configure: Regenerate.
18899 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18901 * spu-low.c (spu_kill): Wait for inferior to terminate.
18902 Call clear_inferiors.
18903 (spu_detach): Call clear_inferiors.
18905 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18907 * aclocal.m4: Regenerate.
18908 * config.in: Likewise.
18909 * configure: Likewise.
18911 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18913 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18914 (parse_spufs_run): New function.
18915 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18916 (ppc_breakpoint_at): Handle SPU breakpoints.
18918 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18920 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18921 (SPUFS_MAGIC): Define.
18922 (spu_enumerate_spu_ids): New function.
18923 (linux_qxfer_spu): New function.
18924 (linux_target_ops): Install linux_qxfer_spu.
18926 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18928 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18929 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18930 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18931 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18932 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18933 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18934 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18935 (init_registers_powerpc_cell32l): Add prototype.
18936 (init_registers_powerpc_cell64l): Likewise.
18937 (ppc_arch_setup): Detect Cell/B.E. architecture.
18939 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18941 * Makefile.in (datarootdir): New variable.
18943 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18945 * linux-low.c (linux_write_memory): Update debugging output.
18946 * Makefile.in (clean): Add new descriptions.
18947 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18948 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18949 * configure.srv: Add new files for arm*-*-linux*.
18950 * linux-arm-low.c: Add new declarations.
18951 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18952 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18953 (HWCAP_VFPv3D16): New.
18954 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18955 instead of __IWMMXT__.
18956 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18957 (arm_arch_setup): New.
18958 (target_regsets): Remove #ifdef. Add VFP regset.
18959 (the_low_target): Use arm_arch_setup.
18961 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18963 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18964 the main thread again.
18966 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18968 Adding Neutrino gdbserver.
18969 * configure: Regenerated.
18970 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18971 * configure.srv (i[34567]86-*-nto*): New target.
18972 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18973 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18974 (nto_comctrl) [__QNX__]: New function.
18975 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18977 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18979 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18982 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18983 Pedro Alves <pedro@codesourcery.com>
18985 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18986 don't support CONTEXT_EXTENDED_REGISTERS.
18987 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18988 (the_low_target): Install them.
18989 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18990 failing with ERROR_PIPE_NOT_CONNECTED.
18992 2009-06-30 Doug Evans <dje@google.com>
18993 Pierre Muller <muller@ics.u-strasbg.fr>
18995 Add h/w watchpoint support to x86-linux, win32-i386.
18996 * Makefile.in (SFILES): Add i386-low.c
18997 (i386_low_h): Define.
18998 (i386-low.o): Add dependencies.
18999 (linux-x86-low.o): Add i386-low.h dependency.
19000 (win32-i386-low.o): Ditto.
19001 * i386-low.c: New file.
19002 * i386-low.h: New file.
19003 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19004 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19005 * linux-low.c (linux_add_process): Initialize arch_private.
19006 (linux_remove_process): Free arch_private.
19007 (add_lwp): Initialize arch_private.
19008 (delete_lwp): Free arch_private.
19009 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19011 * linux-low.h (process_info_private): New member arch_private.
19012 (lwp_info): New member arch_private.
19013 (linux_target_ops): New members new_process, new_thread,
19015 (ptid_of): New macro.
19016 * linux-x86-low.c: Include stddef.h, i386-low.h.
19017 (arch_process_info): New struct.
19018 (arch_lwp_info): New struct.
19019 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19020 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19021 (i386_dr_low_get_status): New function.
19022 (x86_insert_point, x86_remove_point): New functions.
19023 (x86_stopped_by_watchpoint): New function.
19024 (x86_stopped_data_address): New function.
19025 (x86_linux_new_process, x86_linux_new_thread): New functions.
19026 (x86_linux_prepare_to_resume): New function.
19027 (the_low_target): Add entries for insert_point, remove_point,
19028 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19030 * server.c (debug_hw_points): New global.
19031 (monitor_show_help): Document set debug-hw-points.
19032 (handle_query): Process "set debug-hw-points".
19033 * server.h (debug_hw_points): Declare.
19034 (paddress): Declare.
19035 * utils.c (NUMCELLS, CELLSIZE): New macros.
19036 (get_sell, xsnprintf, paddress): New functions.
19037 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19038 remove_point, stopped_by_watchpoint, stopped_data_address.
19039 * win32-i386-low.c: Include i386-low.h.
19040 (debug_reg_state): Replaces dr.
19041 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19042 (i386_dr_low_get_status): New function.
19043 (i386_insert_point, i386_remove_point): New functions.
19044 (i386_stopped_by_watchpoint): New function.
19045 (i386_stopped_data_address): New function.
19046 (i386_initial_stuff): Update.
19047 (get_thread_context,set_thread_context,i386_thread_added): Update.
19048 (the_low_target): Add entries for insert_point,
19049 remove_point, stopped_by_watchpoint, stopped_data_address.
19050 * win32-low.c (win32_insert_watchpoint): New function.
19051 (win32_remove_watchpoint): New function.
19052 (win32_stopped_by_watchpoint): New function.
19053 (win32_stopped_data_address): New function.
19054 (win32_target_ops): Add entries for insert_watchpoint,
19055 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19056 * win32-low.h (win32_target_ops): New members insert_point,
19057 remove_point, stopped_by_watchpoint, stopped_data_address.
19059 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19061 * server.c (process_serial_event): Re-return unsupported, not
19062 error, if the type isn't recognized. Re-allow supporting only
19063 insert or remove packets. Also call require_running for
19064 breakpoints. Add missing break statement to default case. Tidy.
19065 * target.h (struct target_ops): Rename insert_watchpoint to
19066 insert_point, and remove_watchpoint to remove_point.
19068 * linux-low.h (struct linux_target_ops): Likewise.
19069 * linux-low.c (linux_insert_watchpoint): Rename to ...
19070 (linux_insert_point): ... this. Adjust.
19071 (linux_remove_watchpoint): Rename to ...
19072 (linux_remove_point): ... this. Adjust.
19073 (linux_target_ops): Adjust.
19074 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19075 (cris_insert_point): ... this.
19076 (cris_remove_watchpoint): Rename to ...
19077 (cris_remove_point): ... this.
19078 (the_low_target): Adjust.
19080 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19082 * server.c (handle_v_kill): Pass signal_pid to
19083 kill_inferior if multi_process is zero.
19085 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19087 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19088 * target.h (target_ops): Comment for *_watchpoint to make it clear
19089 the functions can get types '0' and '1'.
19091 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19093 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19094 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19095 * regcache.c (get_regcache): Likewise.
19096 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19097 * win32-low.c (child_fetch_inferior_registers): Remove check for
19100 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19101 Pedro Alves <pedro@codesourcery.com>
19103 * target.h (struct target_ops) <supports_multi_process>: New
19105 (target_supports_multi_process): New.
19106 * server.c (handle_query): Even if GDB reports support, only
19107 enable multi-process if the target also supports it. Report
19108 multi-process support only if the target backend supports it.
19109 * linux-low.c (linux_supports_multi_process): New function.
19110 (linux_target_ops): Install it as target_supports_multi_process
19113 2009-05-24 Doug Evans <dje@google.com>
19115 Global renaming of find_thread_pid to find_thread_ptid.
19116 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19117 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19118 All callers updated.
19120 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19121 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19124 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19125 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19126 (linux_resume_one_lwp): Ditto.
19128 2009-05-23 Doug Evans <dje@google.com>
19130 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19131 from struct inferior_list_entry * to struct lwp_info *.
19132 All callers updated.
19134 2009-05-13 Doug Evans <dje@google.com>
19136 * linux-x86-low.c: Don't include assert.h.
19137 (x86_siginfo_fixup): Use fatal, not assert.
19138 (x86_arch_setup): Fix comment.
19140 2009-05-12 Doug Evans <dje@google.com>
19142 Biarch support for i386/amd64 gdbserver.
19143 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19144 Add linux-x86-low.c.
19145 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19146 (linux-x86-low.o): Add.
19147 * linux-x86-64-low.c: Delete.
19148 * linux-i386-low.c: Delete.
19149 * linux-x86-low.c: New file.
19150 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19152 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19154 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19155 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19156 (linux_child_pid_to_exec_file): New function.
19157 (elf_64_header_p, elf_64_file_p): New functions.
19158 (siginfo_fixup): New function.
19159 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19160 give target a chance to convert layout.
19161 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19162 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19164 2009-05-07 Doug Evans <dje@google.com>
19166 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19167 (regsets_store_inferior_registers): Ditto.
19169 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19173 * linux-low.c (must_set_ptrace_flags): Delete.
19174 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19176 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19177 `lwp->must_set_ptrace_flags' instead.
19178 (linux_wait_for_event_1): Set ptrace options here.
19179 (linux_wait_1): ... not here.
19181 2009-04-30 Doug Evans <dje@google.com>
19183 * inferiors.c (started_inferior_callback): New function.
19184 (attached_inferior_callback): New function.
19185 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19186 * server.c (print_started_pid, print_attached_pid): New functions.
19187 (detach_or_kill_for_exit): New function.
19188 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19189 * server.h (have_started_inferiors_p): Declare.
19190 (have_attached_inferiors_p): Declare.
19192 * inferiors.c (remove_process): Fix memory leak, free process.
19193 * linux-low.c (linux_remove_process): New function.
19194 (linux_kill): Call it instead of remove_process.
19195 (linux_detach, linux_wait_1): Ditto.
19197 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19199 * configure.srv: Add x86 Windows CE target.
19201 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19203 * inferiors.c (get_thread_process): Make global.
19204 * server.h (get_thread_process): Add prototype.
19205 * thread-db.c (find_one_thread): Use get_thread_process
19206 instead of current_process.
19207 (thread_db_get_tls_address): Do not crash if called when
19208 thread layer is not yet initialized.
19210 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19212 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19213 * spu-low.c (current_tid): Rename to ...
19214 (current_ptid): ... this.
19215 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19216 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19217 ptid_get_lwp (current_ptid) instead of current_tid.
19218 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19219 instead of current_tid. Use find_process_pid to verify pid
19220 argument is valid. Pass proper argument to remove_process.
19221 (spu_thread_alive): Compare current_ptid instead of current_tid.
19222 (spu_resume): Likewise.
19224 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19226 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19229 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19231 Implement the multiprocess extensions, and add linux multiprocess
19234 * server.h (ULONGEST): Declare.
19235 (struct ptid, ptid_t): New.
19236 (minus_one_ptid, null_ptid): Declare.
19237 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19238 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19239 (struct inferior_list_entry): Change `id' type from unsigned from
19241 (struct sym_cache, struct breakpoint, struct
19242 process_info_private): Forward declare.
19243 (struct process_info): Declare.
19244 (current_process): Declare.
19245 (all_processes): Declare.
19246 (initialize_inferiors): Declare.
19247 (add_thread): Adjust to use ptid_t.
19248 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19249 (add_process, remove_process, find_thread_pid): Declare.
19250 (find_inferior_id): Adjust to use ptid_t.
19251 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19252 (multi_process): Declare.
19253 (push_event): Adjust to use ptid_t.
19254 (read_ptid, write_ptid): Declare.
19255 (prepare_resume_reply): Adjust to use ptid_t.
19256 (clear_symbol_cache): Declare.
19257 * inferiors.c (all_processes): New.
19258 (null_ptid, minus_one_ptid): New.
19259 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19260 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19261 (add_thread): Change unsigned long to ptid. Remove gdb_id
19263 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19264 (gdb_id_to_thread): Rename to ...
19265 (find_thread_pid): ... this. Change unsigned long to ptid.
19266 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19267 (loaded_dll, pull_pid_from_list): Adjust.
19268 (add_process, remove_process, find_process_pid)
19269 (get_thread_process, current_process, initialize_inferiors): New.
19270 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19271 (struct target_waitstatus) <related_pid>: Ditto.
19272 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19273 return type to int.
19274 (struct target_ops) <join>: Add `pid' argument.
19275 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19276 (struct target_ops) <wait>: Add `ptid' field. Change return type
19278 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19279 (mywait): Add `ptid' argument. Change return type to ptid_t.
19280 (target_pid_to_str): Declare.
19281 * target.c (set_desired_inferior): Adjust to use ptids.
19282 (mywait): Add new `ptid' argument. Adjust.
19283 (target_pid_to_str): New.
19284 * mem-break.h (free_all_breakpoints): Declare.
19285 * mem-break.c (breakpoints): Delelete.
19286 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19287 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19288 to use per-process breakpoint list.
19289 (free_all_breakpoints): New.
19290 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19291 (symbol_cache, all_symbols_looked_up): Delete.
19293 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19295 (prepare_resume_reply): Change ptid argument's type from unsigned
19296 long to ptid_t. Adjust. Implement W;process and X;process.
19297 (free_sym_cache, clear_symbol_cache): New.
19298 (look_up_one_symbol): Adjust to per-process symbol cache. *
19299 * server.c (cont_thread, general_thread, step_thread): Change type
19301 (attached): Delete.
19302 (multi_process): New.
19303 (last_ptid): Change type to ptid_t.
19304 (struct vstop_notif) <ptid>: Change type to ptid_t.
19305 (queue_stop_reply, push_event): Change `ptid' argument's type to
19307 (discard_queued_stop_replies): Add `pid' argument.
19308 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19309 changes. Don't reference the `attached' global.
19310 (attach_inferior): Adjust to mywait interface changes.
19311 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19312 features. Handle and report "multiprocess+". Handle
19314 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19316 (handle_v_kill): New.
19317 (handle_v_stopped): Adjust to use target_pid_to_str.
19318 (handle_v_requests): Allow multiple attaches and runs when
19319 multiprocess extensions are in effect. Handle "vKill".
19320 (myresume): Adjust to use ptids.
19321 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19322 (handle_status): Adjust to discard_queued_stop_replies interface
19324 (first_thread_of, kill_inferior_callback)
19325 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19326 (main): Call initialize_inferiors. Adjust to use ptids, killing
19327 and detaching from all inferiors. Handle multiprocess packet
19329 * linux-low.h: Include gdb_proc_service.h.
19330 (struct process_info_private): New.
19331 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19332 <lwpid_of>: Use ptid_get_lwp.
19333 (get_lwp_thread): Adjust.
19334 (struct lwp_info): Add `dead' member.
19335 (find_lwp_pid): Declare.
19336 * linux-low.c (thread_db_active): Delete.
19337 (new_inferior): Adjust comment.
19338 (inferior_pid): Delete.
19339 (linux_add_process): New.
19340 (handle_extended_wait): Adjust.
19341 (add_lwp): Change unsigned long to ptid.
19342 (linux_create_inferior): Add process to processes table. Adjust
19343 to use ptids. Don't set new_inferior here.
19344 (linux_attach_lwp): Rename to ...
19345 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19346 it. Adjust to use ptids.
19347 (linux_attach_lwp): New.
19348 (linux_attach): Add process to processes table. Don't set
19350 (struct counter): New.
19351 (second_thread_of_pid_p, last_thread_of_process_p): New.
19352 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19353 multiple processes.
19354 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19355 processes. Remove process from process table.
19356 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19357 to multiple processes.
19358 (any_thread_of): New.
19359 (linux_detach): Add `pid' argument, and handle it. Remove process
19360 from processes table.
19361 (linux_join): Add `pid' argument. Handle it.
19362 (linux_thread_alive): Change unsighed long argument to ptid_t.
19363 Consider dead lwps as not being alive.
19364 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19365 threads we're not interested in.
19366 (same_lwp, find_lwp_pid): New.
19367 (linux_wait_for_lwp): Change `pid' argument's type from int to
19369 (linux_wait_for_event): Rename to ...
19370 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19371 from int to ptid_t. Adjust.
19372 (linux_wait_for_event): New.
19373 (linux_wait_1): Add `ptid' argument. Change return type to
19374 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19375 that exit from the process table.
19376 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19378 (mark_lwp_dead): New.
19379 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19380 stopping all threads, mark its main lwp as dead.
19381 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19383 (fetch_register, usr_store_inferior_registers)
19384 (regsets_fetch_inferior_registers)
19385 (regsets_store_inferior_registers, linux_read_memory)
19386 (linux_write_memory): Inline `inferior_pid'.
19387 (linux_look_up_symbols): Adjust to use per-process
19388 `thread_db_active'.
19389 (linux_request_interrupt): Adjust to use ptids.
19390 (linux_read_auxv): Inline `inferior_pid'.
19391 (initialize_low): Don't reference thread_db_active.
19392 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19393 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19394 (ps_getpid): Return the pid of the current inferior.
19395 * thread-db.c (proc_handle, thread_agent): Delete.
19396 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19398 (find_one_thread): Change argument type to ptid_t. Adjust to
19400 (maybe_attach_thread): Adjust to per-process data and ptids.
19401 (thread_db_find_new_threads): Ditto.
19402 (thread_db_init): Ditto.
19403 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19404 processes table. Adjust to use ptids.
19405 (spu_kill, spu_detach): Adjust interface. Remove process from
19407 (spu_join, spu_thread_alive): Adjust interface.
19408 (spu_wait): Adjust interface. Remove process from processes
19409 table. Adjust to use ptids.
19410 * win32-low.c (current_inferior_tid): Delete.
19411 (current_inferior_ptid): New.
19412 (debug_event_ptid): New.
19413 (thread_rec): Take a ptid. Adjust.
19414 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19415 (child_delete_thread): Ditto.
19416 (do_initial_child_stuff): Add `attached' argument. Add process to
19418 (child_fetch_inferior_registers, child_store_inferior_registers):
19420 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19421 (win32_attach): Pass 1 to do_initial_child_stuff.
19422 (win32_kill): Adjust interface. Remove process from processes
19424 (win32_detach): Ditto.
19425 (win32_join): Adjust interface.
19426 (win32_thread_alive): Take a ptid.
19427 (win32_resume): Adjust to use ptids.
19428 (get_child_debug_event): Ditto.
19429 (win32_wait): Adjust interface. Remove exiting process from
19432 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19434 Non-stop mode support.
19436 * server.h (non_stop): Declare.
19437 (gdb_client_data, handler_func): Declare.
19438 (delete_file_handler, add_file_handler, start_event_loop):
19440 (handle_serial_event, handle_target_event, push_event)
19441 (putpkt_notif): Declare.
19442 * target.h (enum resume_kind): New.
19443 (struct thread_resume): Replace `step' field by `kind' field.
19444 (TARGET_WNOHANG): Define.
19445 (struct target_ops) <wait>: Add `options' argument.
19446 <supports_non_stop, async, start_non_stop>: New fields.
19447 (target_supports_non_stop, target_async): New.
19448 (start_non_stop): Declare.
19449 (mywait): Add `options' argument.
19450 * target.c (mywait): Add `options' argument. Print child exit
19451 notifications here.
19452 (start_non_stop): New.
19453 * server.c (non_stop, own_buf, mem_buf): New globals.
19454 (struct vstop_notif): New.
19455 (notif_queue): New global.
19456 (queue_stop_reply, push_event, discard_queued_stop_replies)
19457 (send_next_stop_reply): New.
19458 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19460 (attach_inferior): In non-stop mode, don't wait for the target
19462 (handle_general_set): Handle QNonStop.
19463 (handle_query): When handling qC, return the current general
19464 thread, instead of the first thread of the list.
19465 (handle_query): If the backend supports non-stop mode, include
19466 QNonStop+ in the qSupported query response.
19467 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19469 (handle_v_attach, handle_v_run): Handle non-stop mode.
19470 (handle_v_stopped): New.
19471 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19472 (myresume): Adjust to use resume_kind. Handle non-stop.
19473 (queue_stop_reply_callback): New.
19474 (handle_status): Handle non-stop mode.
19475 (main): Clear non_stop flag on reconnection. Use the event-loop.
19476 Refactor serial protocol handling from here ...
19477 (process_serial_event): ... to this new function. When GDB
19478 selects any thread, select one here. In non-stop mode, wait until
19479 GDB acks all pending events before exiting.
19480 (handle_serial_event, handle_target_event): New.
19481 * remote-utils.c (remote_open): Install remote_desc in the event
19483 (remote_close): Remove remote_desc from the event loop.
19484 (putpkt_binary): Rename to...
19485 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19486 (putpkt_binary): New as wrapper around putpkt_binary_1.
19487 (putpkt_notif): New.
19488 (prepare_resume_reply): In non-stop mode, don't change the
19490 * event-loop.c: New.
19491 * Makefile.in (OBJ): Add event-loop.o.
19492 (event-loop.o): New rule.
19494 * linux-low.h (pid_of): Moved here.
19496 (get_lwp_thread): Use lwpid_of.
19497 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19498 * linux-low.c (pid_of): Delete.
19499 (inferior_pid): Use lwpid_of.
19500 (linux_event_pipe): New.
19501 (target_is_async_p): New.
19503 (handle_extended_wait): Use lwpid_of.
19504 (add_lwp): Don't set lwpid field.
19505 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19506 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19507 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19508 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19509 first. Adjust to linux_wait_for_event interface changes. Use
19511 (linux_detach): Don't delete the main lwp here.
19512 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19513 (status_pending_p): Don't consider explicitly suspended lwps.
19514 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19515 pointer. Add OPTIONS argument. Change return type to int. Use
19516 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19517 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19518 pointer. Add status pointer argument. Return a pid instead of a
19519 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19520 changes. In non-stop mode, don't switch to a random thread.
19521 (linux_wait): Rename to...
19522 (linux_wait_1): ... this. Add target_options argument, and handle
19523 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19524 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19525 clean exit and signal exit code. Don't stop all threads in
19526 non-stop mode. In all-stop mode, only stop all threads when
19527 reporting a stop to GDB. Handle explicit thread stop requests.
19528 (async_file_flush, async_file_mark): New.
19530 (send_sigstop): Use lwpid_of.
19531 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19532 interface changes. In non-stop mode, don't switch to a random
19534 (linux_resume_one_lwp): Use lwpid_of.
19535 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19536 (linux_resume_one_thread): ... this. Handle resume_stop. In
19537 non-stop mode, don't look for pending flag in all threads.
19538 (resume_status_pending_p): Don't consider explicitly suspended
19540 (my_waitpid): Reimplement. Emulate __WALL.
19541 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19543 (sigchld_handler, linux_supports_non_stop, linux_async)
19544 (linux_start_non_stop): New.
19545 (linux_target_ops): Register linux_supports_non_stop, linux_async
19546 and linux_start_non_stop.
19547 (initialize_low): Install SIGCHLD handler.
19548 * thread-db.c (thread_db_create_event, find_one_thread)
19549 (thread_db_get_tls_address): Use lwpid_of.
19550 * win32-low.c (win32_detach): Adjust to use resume_kind.
19551 (win32_wait): Add `options' argument.
19552 * spu-low.c (spu_resume): Adjust to use resume_kind.
19553 (spu_wait): Add `options' argument.
19555 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19557 Decouple target code from remote protocol.
19559 * target.h (enum target_waitkind): New.
19560 (struct target_waitstatus): New.
19561 (struct target_ops) <wait>: Return an unsigned long. Take a
19562 target_waitstatus pointer instead of a char pointer.
19563 (mywait): Likewise.
19564 * target.c (mywait): Change prototype to return an unsigned long.
19565 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19566 * server.h (thread_from_wait, old_thread_from_wait): Delete
19568 (prepare_resume_reply): Change prototype to take a
19570 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19571 (last_status, last_ptid): New.
19572 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19573 pid instead of a signal.
19574 (attach_inferior): Remove "status" and "signal" parameters.
19576 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19578 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19579 (handle_v_requests, myresume): Remove "status" and "signal"
19580 parameters. Adjust.
19581 (handle_status): New.
19582 (main): Delete local `status'. Adjust.
19583 * remote-utils.c: Include target.h.
19584 (prepare_resume_reply): Change prototype to take a
19585 target_waitstatus. Adjust.
19587 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19589 * spu-low.c (spu_wait): Adjust.
19590 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19592 (win32_wait): Adjust.
19594 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19596 * target.h (struct thread_resume): Delete leave_stopped member.
19597 (struct target_ops): Add a `n' argument to the `resume' callback.
19598 * server.c (start_inferior): Adjust.
19599 (handle_v_cont, myresume): Adjust.
19600 * linux-low.c (check_removed_breakpoint): Adjust to resume
19601 interface change, and to removed leave_stopped field.
19602 (resume_ptr): Delete.
19603 (struct thread_resume_array): New.
19604 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19605 resume interface change.
19606 (linux_continue_one_thread, linux_queue_one_thread)
19607 (resume_status_pending_p): Check if the resume field is NULL
19608 instead of checking the leave_stopped member.
19609 (linux_resume): Adjust to the target resume interface change.
19610 * spu-low.c (spu_resume): Adjust to the target resume interface
19612 * win32-low.c (win32_detach, win32_resume): Ditto.
19614 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19616 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19618 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19620 (linux_continue_one_thread): Only preserve the stepping flag if
19621 there's a pending breakpoint.
19623 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19625 * server.c (main): After the inferior having exited, call
19626 remote_close before exiting gdbserver.
19628 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19630 Fix size of FPSCR in Power 7 processors.
19631 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19632 (PPC_FEATURE_HAS_DFP): New #define.
19633 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19636 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19638 * server.c (handle_query) Whitespace and formatting.
19640 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19642 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19643 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19644 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19645 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19646 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19647 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19648 Makefile.in, configure.ac: Fix whitespace throughout.
19649 * configure: Regenerate.
19651 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19653 * inferiors.c (find_inferior): Make it safe for the callback
19654 function to delete the currently iterated inferior.
19656 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19658 * Makefile.in (linuw_low_h): Move higher.
19659 (thread-db.o): Depend on $(linux_low_h).
19661 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19663 Rename "process" to "lwp" throughout.
19665 * linux-low.c (all_processes): Rename to...
19666 (all_lwps): ... this.
19667 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19668 (add_process): Rename to ...
19669 (add_lwp): ... this. Adjust.
19670 (linux_create_inferior): Adjust.
19671 (linux_attach_lwp): Adjust.
19672 (linux_attach): Adjust.
19673 (linux_kill_one_process): Rename to ...
19674 (linux_kill_one_lwp): ... this. Adjust.
19675 (linux_kill): Adjust.
19676 (linux_detach_one_process): Rename to ...
19677 (linux_detach_one_lwp): ... this. Adjust.
19678 (linux_detach): Adjust.
19679 (check_removed_breakpoint): Adjust.
19680 (status_pending_p): Adjust.
19681 (linux_wait_for_process): Rename to ...
19682 (linux_wait_for_lwp): ... this. Adjust.
19683 (linux_wait_for_event): Adjust.
19684 (send_sigstop): Adjust.
19685 (wait_for_sigstop): Adjust.
19686 (stop_all_processes): Rename to ...
19687 (stop_all_lwps): ... this.
19688 (linux_resume_one_process): Rename to ...
19689 (linux_resume_one_lwp): ... this. Adjust.
19690 (linux_set_resume_request, linux_continue_one_thread)
19691 (linux_queue_one_thread, resume_status_pending_p)
19692 (usr_store_inferior_registers, regsets_store_inferior_registers)
19693 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19695 * linux-low.h (get_process): Rename to ...
19696 (get_lwp): ... this. Adjust.
19697 (get_thread_process): Rename to ...
19698 (get_thread_lwp): ... this. Adjust.
19699 (get_process_thread): Rename to ...
19700 (get_lwp_thread): ... this. Adjust.
19701 (struct process_info): Rename to ...
19702 (struct lwp_info): ... this.
19703 (all_processes): Rename to ...
19704 (all_lwps): ... this.
19705 * proc-service.c (ps_lgetregs): Adjust.
19706 * thread-db.c (thread_db_create_event, find_one_thread)
19707 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19709 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19711 * server.c (handle_query): Handle "qAttached".
19713 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19715 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19716 GPLv3, update license URL.
19718 2009-03-01 Doug Evans <dje@google.com>
19720 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19721 (server_h): Add gdb_signals.h.
19722 (signals.o): Update.
19723 * server.h (target_signal_from_host,target_signal_to_host_p)
19724 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19726 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19728 * remote-utils.c (getpkt): Also generate remote-debug
19729 information if noack_mode is set.
19731 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19733 * server.c (handle_query): Report qXfer:siginfo:read and
19734 qXfer:siginfo:write as supported and handle them.
19735 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19736 * linux-low.c (linux_xfer_siginfo): New.
19737 (linux_target_ops): Set it.
19739 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19741 * server.c (gdbserver_usage): Mention --remote-debug.
19742 (main): Accept '--remote-debug' switch.
19744 2009-01-18 Doug Evans <dje@google.com>
19746 * regcache.c (new_register_cache): No need to check result of xcalloc.
19747 * server.c (handle_search_memory): Back out calls to xmalloc,
19748 result is checked and error is returned to user upon failure.
19749 (handle_query): Ditto. Add more checks for result of malloc.
19750 (handle_v_cont): Check result of malloc, report error back to
19752 (handle_v_run): Ditto. Call freeargv.
19753 * server.h (freeargv): Declare.
19754 * utils.c (freeargv): New fn.
19756 2009-01-15 Doug Evans <dje@google.com>
19758 * gdbreplay.c (perror_with_name): Make arg const char *.
19759 * server.h (target_signal_to_name): Make return type const char *.
19760 * thread-db.c (thread_db_err_str): Make return type const char *.
19761 * utils.c (perror_with_name): Make arg const char *.
19763 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19765 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19766 when handling a EXIT_PROCESS_DEBUG_EVENT.
19768 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19770 * gdbreplay.c (gdbreplay_version): Update copyright year.
19771 * server.c (gdbserver_version): Likewise.
19773 2009-01-05 Doug Evans <dje@google.com>
19775 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19776 (handle_extended_wait): Improve comment.
19778 2008-12-13 Doug Evans <dje@google.com>
19780 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19781 * server.h (ATTR_MALLOC): New macro.
19782 (xmalloc,xcalloc,xstrdup): Declare.
19783 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19784 * inferiors.c: Ditto.
19785 * linux-low.c: Ditto.
19786 * mem-break.c: Ditto.
19787 * regcache.c: Ditto.
19788 * remote-utils.c: Ditto.
19791 * win32-low.c: Ditto.
19793 2008-12-12 Doug Evans <dje@google.com>
19795 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19796 in debugging printf.
19798 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19800 2008-12-09 Doug Evans <dje@google.com>
19802 * linux-low.h (struct process_info): Delete member tid, unused.
19803 * thread-db.c (find_one_thread): Update.
19804 (maybe_attach_thread): Update.
19806 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19808 * target.h (struct target_ops): Add qxfer_osdata member.
19809 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19811 (linux_qxfer_osdata): New functions.
19812 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19814 * server.c (handle_query): Handle "qXfer:osdata:read:".
19815 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19816 (buffer_xml_printf): New functions.
19817 * server.h (struct buffer): New.
19818 (buffer_grow_str, buffer_grow_str0): New macros.
19819 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19820 (buffer_xml_printf): Declare.
19822 2008-11-24 Doug Evans <dje@google.com>
19824 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19826 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19828 * server.c (handle_v_run): Always use the supplied argument list.
19830 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19832 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19833 (xtensa_regmap_table): Add entry for scompare1.
19835 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19837 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19838 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19839 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19840 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19841 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19842 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19843 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19844 XML target descriptions.
19845 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19846 when inferior is running on an ISA 2.05 or later processor. Add
19847 special case to return offset for full 64-bit slot of FPSCR when
19850 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19852 * Makefile.in (SFILES, clean): Added sparc64 files.
19853 (reg-sparc64.o, reg-sparc64.c): New.
19854 * configure.srv (sparc*-*-linux*): New configuration.
19855 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19856 syscall arguments for SPARC.
19857 (regsets_store_inferior_registers): Likewise.
19858 * linux-sparc-low.c: New file.
19860 2008-10-21 Doug Evans <dje@google.com>
19862 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19863 (READLINE_DIR,READLINE_DEP): Delete.
19864 (INTERNAL_CFLAGS): Update.
19865 (LINTFLAGS): Update.
19867 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19869 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19870 whole argv from the last run, not just argv[0].
19872 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19874 * regcache.c (new_register_cache): Return NULL if the register
19875 cache size isn't known yet.
19876 (free_register_cache): Avoid dereferencing a NULL regcache.
19878 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19880 * configure.srv: Merge MIPS and MIPS64.
19882 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19884 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19886 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19888 * Makefile.in: Add required vsx dependencies.
19890 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19891 Declare init_registers_powerpc_vsx32l.
19892 Declare init_registers_powerpc_vsx64l.
19893 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19894 (ppc_arch_setup): Check for VSX in hwcap.
19895 (ppc_fill_vsxregset): New function.
19896 (ppc_store_vsxregset): New function.
19897 Add new VSX entry in regset_info target_regsets.
19899 * configure.srv: Add new VSX dependencies.
19901 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19903 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19904 (remote_open): Set or clear transport_is_reliable.
19905 (putpkt_binary): Don't expect acks in noack mode.
19906 (getpkt): Don't send ack/nac in noack mode.
19907 * server.c (handle_general_set): Handle QStartNoAckMode.
19908 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19910 (main): Reset noack_mode on every connection.
19911 * server.h (noack_mode): Declare.
19913 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19915 * Makefile.in (GDBREPLAY_OBS): New variable.
19916 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19918 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19919 Daniel Jacobowitz <dan@codesourcery.com>
19921 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19922 (usr_store_inferior_registers): Likewise.
19923 (regsets_store_inferior_registers): Likewise.
19925 2008-07-31 Rolf Jansen <rj@surtec.com>
19926 Pedro Alves <pedro@codesourcery.com>
19928 * configure.ac: Check for memmem declaration.
19929 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19930 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19931 (disable_packet_qfThreadInfo): Unconditionally compile.
19932 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19933 * configure, config.in: Regenerate.
19935 2008-07-28 Doug Kwan <dougkwan@google.com>
19937 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19938 (linux_write_memory): Remove declaration of errno.
19940 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19942 * linux-low.c (handle_extended_wait): Do not use "status"
19943 variable uninitialized.
19945 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19947 * server.c (handle_v_attach): Inhibit reporting dll changes.
19949 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19951 * remote-utils.c (prepare_resume_reply): If requested, don't
19952 output "thread:TID" in the T stop reply.
19954 * server.c (disable_packet_vCont, disable_packet_Tthread)
19955 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19956 (handle_query): If requested, disable support for qC, qfThreadInfo
19958 (handle_v_requests): If requested, disable support for vCont.
19959 (gdbserver_show_disableable): New.
19960 (main): Handle --disable-packet and --disable-packet=LIST.
19962 * server.h (disable_packet_vCont, disable_packet_Tthread)
19963 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19965 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19967 * server.c (gdbserver_usage): Mention --version.
19969 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19971 * Makefile.in (gdbreplay.o): New rule.
19973 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19975 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19976 message, not gdbserver.
19978 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19979 Nathan Sidwell <nathan@codesourcery.com>
19980 Joseph Myers <joseph@codesourcery.com>
19982 * acinclude.m4: Include ../../config/acx.m4.
19983 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19984 * configure, config.in: Regenerate.
19985 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19986 * server.c (gdbserver_version): Print PKGVERSION.
19987 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19988 (main): Adjust gdbserver_usage calls.
19989 * gdbreplay.c (version, host_name): Add declarations.
19990 (gdbreplay_version, gdbreplay_usage): New.
19991 (main): Accept --version and --help options.
19993 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19995 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19996 (arm_breakpoint_at): Handle Thumb.
19997 (the_low_target): Add comment.
19999 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20001 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20003 2008-05-09 Doug Evans <dje@google.com>
20005 * server.h (decode_search_memory_packet): Declare.
20006 * remote-utils.c (decode_search_memory_packet): New fn.
20007 * server.c (handle_search_memory_1): New fn.
20008 (handle_search_memory): New fn.
20009 (handle_query): Process qSearch:memory packets.
20011 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20013 * regcache.c (registers_length): Remove.
20014 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20015 full register packet.
20016 * regcache.h (registers_length): Remove prototype.
20017 * server.h (PBUFSIZ): Define to 16384.
20019 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20021 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20022 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20023 powerpc-64l.o, and powerpc-altivec64l.o.
20024 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20025 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20026 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20027 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20028 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20031 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20032 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20033 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20034 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20035 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20036 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20037 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20038 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20039 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20040 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20043 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20044 (init_registers_powerpc_32l): ... this new prototype.
20045 (init_registers_powerpc_32): Remove, replace by ...
20046 (init_registers_powerpc_altivec32l): ... this new prototype.
20047 (init_registers_powerpc_e500): Remove, replace by ...
20048 (init_registers_powerpc_e500l): ... this new prototype.
20049 (init_registers_ppc64): Remove, replace by ...
20050 (init_registers_powerpc_64l): ... this new prototype.
20051 (init_registers_powerpc_64): Remove, replace by ...
20052 (init_registers_powerpc_altivec64l): ... this new prototype.
20053 (ppc_num_regs): Set to 73.
20054 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20055 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20056 (ppc_cannot_store_register): Handle orig_r3 and trap.
20057 (ppc_arch_setup): Update init_registers_... calls.
20058 (ppc_fill_gregset): Handle orig_r3 and trap.
20060 * inferiors.c (clear_inferiors): Reset current_inferior.
20062 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20064 * acinclude.m4: Add override.m4.
20065 * configure: Regenerate.
20067 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20069 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20070 initial call to init_register_ppc64.
20072 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20074 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20075 single powerpc*-*-linux* case.
20076 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20078 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20080 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20081 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20083 * linux-ppc-low.c: Include <elf.h>.
20084 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20085 (ppc_hwcap): New global variable.
20086 (ppc_regmap): Remove __SPE__ #ifdef sections.
20087 (ppc_regmap_e500): New global variable.
20088 (ppc_cannot_store_register): Update __SPE__ special case.
20089 (ppc_get_hwcap): New function.
20090 (ppc_arch_setup): Use it to determine whether inferior supports
20091 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20092 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20093 Do not access registers if target does not support AltiVec.
20094 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20095 Do not access registers if target does not support SPE.
20096 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20098 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20100 * linux-low.c (disabled_regsets, num_regsets): New.
20101 (use_regsets_p): Delete.
20102 (linux_wait_for_process): Clear disabled_regsets.
20103 (regsets_fetch_inferior_registers): Check and set it.
20104 (regsets_store_inferior_registers): Likewise.
20105 (linux_fetch_registers, linux_store_registers): Do not use
20107 (initialize_low): Allocate disabled_regsets.
20109 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20111 * Makefile.in (LIBOBJS): New.
20112 (OBS): Use LIBOBJS.
20113 (memmem.o): New rule.
20114 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20115 * configure: Regenerated.
20117 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20119 * server.c (handle_query): Never return "unsupported" for
20120 qXfer:features:read queries.
20122 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20124 * server.c (get_features_xml): Fix inverted condition.
20125 (handle_query): Always support qXfer:feature:read.
20127 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20129 * server.c (wrapper_argv): New.
20130 (start_inferior): Handle wrapper_argv. If set, expect an extra
20132 (gdbserver_usage): Document --wrapper.
20133 (main): Parse --wrapper.
20135 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20137 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20138 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20139 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20140 (ppc_set_pc): Likewise.
20141 (ppc_arch_setup): New function.
20142 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20143 of collect_register.
20144 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20146 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20148 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20149 instead of linux-ppc64-low.o.
20150 * linux-ppc64-low.c: Remove file.
20151 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20152 (linux-ppc64-low.o): Remove rule.
20154 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20155 (init_registers_powerpc_64): Likewise.
20156 (ppc_regmap): Conditionally define depending on __powerpc64__.
20157 (ppc_cannot_store_register): Do not special-case "fpscr" when
20158 compiled on __powerpc64__.
20159 (ppc_collect_ptrace_register): New function.
20160 (ppc_supply_ptrace_register): New function.
20161 (ppc_breakpoint): Change type to "unsigned int".
20162 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20163 (the_low_target): Conditionally provide initializers for the
20164 arch_setup member depending on __powerpc64__. Install
20165 collect_ptrace_register and supply_ptrace_register members.
20167 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20169 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20170 * server.c (gdbserver_xmltarget): Define.
20171 (get_features_xml): Use it to replace "target.xml" and arch_string.
20173 * configure.srv: Remove srv_xmltarget. Add XML files that were
20174 mentioned there to srv_xmlfiles instead. Remove conditional tests
20175 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20176 srv_xmlfiles and srv_regobj to include all possible choices.
20177 * configure.ac (srv_xmltarget): Remove.
20178 (srv_xmlfiles): Do not add "target.xml".
20179 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20180 checks for supplementary target information.
20181 * configure: Regenerate.
20182 * Makefile.in (XML_TARGET): Remove.
20183 (target.xml): Remove rule.
20184 (clean): Do not clean up target.xml.
20185 (.PRECIOUS): Do not mention target.xml.
20187 * target.h (struct target_ops): Remove arch_string member.
20188 * linux-low.c (linux_arch_string): Remove.
20189 (linux_target_ops): Remove arch_string initializer.
20190 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20191 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20192 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20193 * spu-low.c (spu_arch_string): Remove.
20194 (spu_target_ops): Remove arch_string initializer.
20195 * win32-low.c (win32_arch_string): Remove.
20196 (win32_target_ops): Remove arch_string initializer.
20197 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20198 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20199 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20201 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20203 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20204 by collect_ptrace_register and supply_ptrace_register hooks.
20205 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20206 instead of checking for the_low_target.left_pad_xfer.
20207 (usr_store_inferior_registers): Use collect_ptrace_register callback
20208 instead of checking for the_low_target.left_pad_xfer.
20210 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20211 (s390_supply_ptrace_register): Likewise.
20212 (s390_fill_gregset): Call s390_collect_ptrace_register.
20213 (the_low_target): Update.
20215 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20216 (ppc_supply_ptrace_register): Likewise.
20217 (the_low_target): Update.
20219 * linux-i386-low.c (the_low_target): Update.
20220 * linux-x86-64-low.c (the_low_target): Update.
20222 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20224 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20225 reg-s390.o and reg-s390x.o.
20227 * linux-low.c (new_inferior): New global variable.
20228 (linux_create_inferior, linux_attach): Set it.
20229 (linux_wait_for_process): Call the_low_target.arch_setup after the
20230 target has stopped for the first time.
20231 (initialize_low): Do not call the_low_target.arch_setup.
20233 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20234 (s390_set_pc): Likewise.
20235 (s390_arch_setup): New function.
20236 (the_low_target): Use s390_arch_setup as arch_setup routine.
20238 * regcache.c (realloc_register_cache): New function.
20239 (set_register_cache): Call it for each existing regcache.
20241 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20243 * server.h (init_registers): Remove prototype.
20245 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20246 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20247 instead of init_registers ().
20248 * linux-arm-low.c (init_registers_arm): Add prototype.
20249 (init_registers_arm_with_iwmmxt): Likewise.
20250 (the_low_target): Add initializer for arch_setup field.
20251 * linux-cris-low.c (init_registers_cris): Add prototype.
20252 (the_low_target): Add initializer for arch_setup field.
20253 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20254 (the_low_target): Add initializer for arch_setup field.
20255 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20256 (the_low_target): Add initializer for arch_setup field.
20257 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20258 (the_low_target): Add initializer for arch_setup field.
20259 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20260 (the_low_target): Add initializer for arch_setup field.
20261 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20262 (the_low_target): Add initializer for arch_setup field.
20263 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20264 (init_registers_mips64_linux): Likewise.
20265 (the_low_target): Add initializer for arch_setup field.
20266 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20267 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20268 (the_low_target): Add initializer for arch_setup field.
20269 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20270 (init_registers_powerpc_64): Likewise.
20271 (the_low_target): Add initializer for arch_setup field.
20272 * linux-s390-low.c (init_registers_s390): Add prototype.
20273 (init_registers_s390x): Likewise.
20274 (the_low_target): Add initializer for arch_setup field.
20275 * linux-sh-low.c (init_registers_sh): Add prototype.
20276 (the_low_target): Add initializer for arch_setup field.
20277 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20278 (the_low_target): Add initializer for arch_setup field.
20279 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20280 (the_low_target): Add initializer for arch_setup field.
20282 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20283 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20284 instead of init_registers ().
20285 * win32-arm-low.c (init_registers_arm): Add prototype.
20286 (the_low_target): Add initializer for arch_setup field.
20287 * win32-i386-low.c (init_registers_i386): Add prototype.
20288 (the_low_target): Add initializer for arch_setup field.
20290 * spu-low.c (init_registers_spu): Add prototype.
20291 (initialize_low): Call initialie_registers_spu () instead of
20292 initialize_registers ().
20294 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20296 * server.c (handle_v_requests): When handling the vRun and vAttach
20297 packets, if already debugging a process, don't kill it. Return an
20300 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20302 * server.c (handle_query): Correct length check.
20304 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20306 * win32-low.c (do_initial_child_stuff): Add process handle
20307 parameter. Set current_process_handle and current_process_id from the
20308 parameters. Clear globals.
20309 (win32_create_inferior): Don't set current_process_handle and
20310 current_process_id here. Instead pass them on the call to
20311 do_initial_child_stuff.
20312 (win32_attach): Likewise.
20313 (win32_clear_inferiors): New.
20314 (win32_kill): Don't close the current process handle or the
20315 current thread handle here. Instead call win32_clear_inferiors.
20316 (win32_detach): Don't open a new handle to the process. Call
20317 win32_clear_inferiors.
20318 (win32_join): Don't rely on current_process_handle; open a new
20319 handle using the process id.
20320 (win32_wait): Call win32_clear_inferiors when the inferior process
20323 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20325 * server.c (monitor_show_help): Add "exit".
20327 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20329 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20330 (clean): Add reg-xtensa.c.
20331 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20332 * configure.srv (xtensa*-*-linux*) New target.
20333 * linux-xtensa-low.c: New.
20334 * xtensa-xtregs.c: New.
20336 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20338 * hostio.c: Don't include errno.h.
20339 (errno_to_fileio_errno): Move to hostio-errno.
20340 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20341 error number outputting to the target->hostio_last_error callback.
20342 (hostio_packet_error): Use FILEIO_EINVAL directly.
20343 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20344 calls to hostio_error.
20345 * hostio-errno.c: New.
20346 * server.h (hostio_last_error_from_errno): Declare.
20347 * target.h (target_ops): Add hostio_last_error member.
20348 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20349 as hostio_last_error handler.
20350 * spu-low.c (spu_target_ops): Likewise.
20351 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20352 (wince_hostio_last_error): New functions.
20353 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20354 as hostio_last_error handler.
20355 (win32_target_ops) [!_WIN32_WCE]: Register
20356 hostio_last_error_from_errno as hostio_last_error handler.
20357 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20358 (hostio-errno.o): New rule.
20359 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20360 * configure.srv (srv_hostio_err_objs): New variable. Default to
20362 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20363 * configure: Regenerate.
20365 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20367 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20368 (linux_kill, linux_detach): Clean up the process list.
20369 * remote-utils.c (remote_open): Improve port number parsing.
20370 (putpkt_binary, input_interrupt): Only send interrupts if the target
20372 * server.c (extended_protocol): Make static.
20373 (attached): Define earlier.
20374 (exit_requested, response_needed, program_argv): New variables.
20375 (target_running): New.
20376 (start_inferior): Clear attached here.
20377 (attach_inferior): Set attached here.
20378 (require_running): Define.
20379 (handle_query): Use require_running and target_running. Implement
20381 (handle_v_attach, handle_v_run): New.
20382 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20383 (gdbserver_usage): Update.
20384 (main): Redo argument parsing. Handle --debug and --multi. Handle
20385 --attach along with other options or after the port. Save
20386 program_argv. Support no initial program. Resynchronize
20387 communication with GDB after an error. Handle "monitor exit".
20388 Use require_running and target_running. Always allow the extended
20389 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20390 restart in extended mode.
20391 * README: Refer to the GDB manual. Update --attach usage.
20393 2007-12-20 Andreas Schwab <schwab@suse.de>
20395 * linux-low.c (STACK_SIZE): Define.
20396 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20397 (linux_test_for_tracefork): Likewise.
20399 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20401 * linux-low.c (linux_wait_for_event): Update messages. Do not
20402 reinsert auto-delete breakpoints.
20403 * mem-break.c (struct breakpoint): Change return type of handler to
20405 (set_breakpoint_at): Update handler type.
20406 (reinsert_breakpoint_handler): Return 1 instead of calling
20408 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20410 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20411 * mem-break.h (set_breakpoint_at): Update handler type.
20412 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20413 * win32-low.c (auto_delete_breakpoint): New.
20414 (get_child_debug_event): Use it.
20416 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20418 * configure.ac: Check for pread and pwrite.
20419 * hostio.c (handle_pread): Fall back to lseek and read.
20420 (handle_pwrite): Fall back to lseek and write.
20421 * config.in, configure: Regenerated.
20423 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20425 * server.c (myresume): Add own_buf argument.
20426 (main): Update calls.
20428 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20430 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20431 * remote-utils.c (remote_open): Do not call disable_async_io.
20432 (block_async_io): Delete.
20433 (unblock_async_io): Make static.
20434 (initialize_async_io): New.
20435 * server.c (handle_v_cont): Handle async I/O here.
20436 (myresume): Likewise. Move other common resume tasks here...
20437 (main): ... from here. Call initialize_async_io. Disable async
20438 I/O before the main loop.
20439 * server.h (initialize_async_io): Declare.
20440 (block_async_io, unblock_async_io): Delete prototypes.
20441 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20443 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20445 * remote-utils.c (readchar): Allow binary data in received messages.
20447 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20449 * win32-low.c (attaching): New global.
20450 (win32_create_inferior): Clear the `attaching' global.
20451 (win32_attach): Set the `attaching' global.
20452 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20453 attaching. Only set a breakpoint at the entry point if not
20456 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20458 * server.c (main): Don't report dll events on the initial
20459 connection on attaches.
20461 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20463 * server.c (main): Relax numerical bases supported for the pid of
20464 the --attach command line argument.
20466 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20468 * win32-low.c (win32_attach): Call OpenProcess before
20469 DebugActiveProcess, not after. Add last error output to error
20472 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20474 * win32-low.c (win32_get_thread_context)
20475 (win32_set_thread_context): New functions.
20476 (thread_rec): Use win32_get_thread_context.
20477 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20478 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20481 2007-12-03 Leo Zayas
20482 Pedro Alves <pedro_alves@portugalmail.pt>
20484 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20486 (child_add_thread): Minor cleanup.
20487 (child_continue): Resume artificially suspended threads before
20488 calling ContinueDebugEvent.
20489 (suspend_one_thread): New.
20490 (fake_breakpoint_event): New.
20491 (get_child_debug_event): Change return type to int. Check here if
20492 gdb sent an interrupt request. If a soft interrupt was requested,
20493 fake a breakpoint event. Return 0 if there is no event to handle,
20495 (win32_wait): Don't check here if gdb sent an interrupt request.
20496 Ensure there is a valid event to handle.
20497 (win32_request_interrupt): Add soft interruption method as last
20500 2007-12-03 Leo Zayas
20501 Pedro Alves <pedro_alves@portugalmail.pt>
20503 * win32-low.h (win32_thread_info): Add descriptions to the
20504 structure members. Replace `suspend_count' counter by a
20506 * win32-low.c (thread_rec): Update condition of when to get the
20507 context from the inferior. Rely on ContextFlags being set if it
20508 has already been retrieved. Only suspend the inferior thread if
20509 we haven't already. Warn if that fails.
20510 (continue_one_thread): s/suspend_count/suspended/. Only call
20511 ResumeThread once. Warn if that fails.
20513 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20515 * win32-low.c (win32_wait): Don't read from the inferior when it
20516 has already exited.
20518 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20520 * Makefile.in (win32_low_h): New variable.
20521 (win32-low.o): Add dependency on $(win32_low_h).
20522 (win32-arm-low.o, win32-i386-low.o): New rules.
20524 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20526 * hostio.c: Correct copyright year.
20528 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20530 * Makefile.in (OBS): Add hostio.o.
20531 (hostio.o): New rule.
20532 * server.h (handle_vFile): Declare.
20533 * hostio.c: New file.
20534 * server.c (handle_v_requests): Take packet_len and new_packet_len
20535 for binary packets. Call handle_vFile.
20536 (main): Update call to handle_v_requests.
20538 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20540 * linux-low.c: Include <sched.h>.
20542 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20544 * linux-low.c (linux_tracefork_grandchild): New.
20545 (linux_tracefork_child): Use clone.
20546 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20548 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20550 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20552 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20554 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20556 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20558 * inferiors.c (change_inferior_id): Delete.
20559 (add_pid_to_list, pull_pid_from_list): New.
20560 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20561 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20562 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20563 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20564 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20565 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20566 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20567 (using_threads): Always set to 1.
20568 (handle_extended_wait): New.
20569 (add_process): Do not set TID.
20570 (linux_create_inferior): Set must_set_ptrace_flags.
20571 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20572 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20573 (linux_thread_alive): Rename TID argument to LWPID.
20574 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20575 (linux_wait_for_event): Do not use TID or check using_threads. Update
20576 call to dead_thread_notify. Call handle_extended_wait.
20577 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20578 (send_sigstop): Delete sigstop_sent.
20579 (wait_for_sigstop): Avoid TID.
20580 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20581 (linux_test_for_tracefork): New.
20582 (linux_lookup_signals): Use thread_db_active and
20583 linux_supports_tracefork_flag.
20584 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20585 * linux-low.h (get_process_thread): Avoid TID.
20586 (struct process_ifo): Move thread_known and tid to the end. Remove
20588 (linux_attach_lwp, thread_db_init): Update prototypes.
20589 * server.h (change_inferior_id): Delete prototype.
20590 (add_pid_to_list, pull_pid_from_list): New prototypes.
20591 * thread-db.c (thread_db_use_events): New.
20592 (find_first_thread): Rename to...
20593 (find_one_thread): ...this. Update callers and messages. Do not
20594 call fatal. Check thread_db_use_events. Do not call
20595 change_inferior_id or new_thread_notify.
20596 (maybe_attach_thread): Update. Do not call new_thread_notify.
20597 (thread_db_init): Set thread_db_use_events. Check use_events.
20598 * utils.c (fatal, warning): Correct message prefix.
20600 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20602 * Makefile.in (clean): Remove new files.
20603 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20604 (powerpc-64.o, powerpc-64.c): New rules.
20605 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20606 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20608 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20610 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20611 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20612 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20613 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20614 (target_regsets): Add AltiVec and SPE register sets.
20615 * configure.ac: Check for AltiVec and SPE.
20616 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20617 (ppc_fill_vrregset, ppc_store_vrregset): New.
20618 (target_regsets): Add AltiVec register set.
20619 * configure: Regenerated.
20621 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20623 * linux-low.c (O_LARGEFILE): Define.
20624 (linux_read_memory): Use /proc/PID/mem.
20625 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20626 * configure, config.in: Regenerated.
20628 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20630 * linux-low.c (linux_wait_for_event): Do not pass signals while
20633 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20635 * win32-low.c (create_process): New.
20636 (win32_create_inferior): Use create_process instead of
20637 CreateProcess. If create_process failed retry appending an ".exe"
20638 suffix. Store the GetLastError result immediatelly after
20639 create_process calls and use it on the call to error.
20641 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20643 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20645 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20647 * configure.ac: Switch license to GPLv3.
20649 2007-08-01 Michael Snyder <msnyder@access-company.com>
20651 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20653 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20655 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20657 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20658 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20659 CloseToolhelp32Snapshot.
20660 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20661 CloseToolhelp32Snapshot.
20663 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20665 * server.c (main): Check for inferior exit before main loop.
20667 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20669 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20670 instead of on tmp_desc.
20672 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20673 Daniel Jacobowitz <dan@codesourcery.com>
20675 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20676 (add_thread): Minor cleanups.
20677 (clear_inferiors): Move lower in the file. Clear the DLL
20679 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20680 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20681 (xml_escape_text): New.
20682 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20684 (handle_v_cont): Report errors.
20685 (gdbserver_version): Update.
20686 (main): Correct size of own_buf. Do not report initial DLL events.
20687 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20688 (unloaded_dll, xml_escape_text): New.
20689 * win32-low.c (enum target_waitkind): Update comments.
20690 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20691 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20692 (win32_EnumProcessModules, win32_GetModuleInformation)
20693 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20694 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20695 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20696 (win32_Module32First, win32_Module32Next, load_toolhelp)
20697 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20698 (get_child_debug_event): Handle DLL events.
20699 (win32_wait): Likewise.
20701 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20703 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20704 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20706 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20708 * win32-low.c (handle_output_debug_string): Ignore event if not
20711 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20713 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20715 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20717 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20719 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20721 * inferiors.c (change_inferior_id): Add comment.
20722 * linux-low.c (check_removed_breakpoint): Add an early
20723 prototype. Improve debug output.
20724 (linux_attach): Doc update.
20725 (linux_detach_one_process, linux_detach): Clean up before releasing
20727 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20728 * linux-low.h (struct process_info): Doc improvement.
20729 * mem-break.c (delete_all_breakpoints): New.
20730 * mem-break.h (delete_all_breakpoints): New prototype.
20731 * thread-db.c (find_first_thread): New.
20732 (thread_db_create_event): Call it instead of
20733 thread_db_find_new_threads. Clean up unused variables.
20734 (maybe_attach_thread): Remove first thread handling.
20735 (thread_db_find_new_threads): Use find_first_thread.
20736 (thread_db_get_tls_address): Likewise.
20738 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20740 * thread-db.c (thread_db_find_new_threads): Add prototype.
20741 (thread_db_create_event): Check for the main thread before adding
20743 (maybe_attach_thread): Only enable event reporting if TID == 0.
20744 (thread_db_get_tls_address): Check for new threads.
20746 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20748 * linux-low.c (linux_create_inferior): Try execv before execvp.
20749 * spu-low.c (spu_create_inferior): Likewise.
20751 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20753 * linux-low.c (linux_create_inferior): Change execv to execvp.
20754 * spu-low.c (spu_create_inferior): Likewies.
20756 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20758 * Makefile.in (clean): Clean new files instead of deleted ones.
20759 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20760 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20762 * configure.srv: Specify XML files and new regformats for MIPS and
20764 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20765 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20766 an entry for the restart register.
20767 (mips_cannot_fetch_register, mips_cannot_store_register)
20768 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20769 register names to match the XML descriptions.
20770 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20771 restart register instead of $0.
20773 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20774 Markus Deuling <deuling@de.ibm.com>
20776 * remote-utils.c (decode_xfer_write): New function.
20777 * server.h (decode_xfer_write): Add prototype.
20778 * server.c (handle_query): Add PACKET_LEN argument. Support
20779 qXfer:spu:read and qXfer:spu:write packets.
20780 (main): Pass packet_len to handle_query.
20781 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20782 * target.h (target_ops): Add qxfer_spu.
20784 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20786 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20787 accessing non-seekable spufs files.
20789 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20791 * server.c (handle_query): Add reply for qC packet.
20793 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20794 Leo Zayas <lerele@champenstudios@com>
20796 * server.h (check_remote_input_interrupt_request): New function.
20797 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20798 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20799 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20800 (check_remote_input_interrupt_request): New function.
20801 * server.h (check_remote_input_interrupt_request): Declare.
20802 * win32-low.c (winapi_DebugBreakProcess,
20803 winapi_GenerateConsoleCtrlEvent): New typedefs.
20804 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20806 (win32_wait): Check for remote interrupt request
20807 with check_remote_input_interrupt_request.
20808 (win32_request_interrupt): New function.
20809 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20811 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20813 * win32-low.c (debug_registers_changed,
20814 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20815 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20816 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20817 (thread_rec): Get context using the low target.
20818 (child_add_thread): Call thread_added on the low target,
20819 which does the same thing.
20821 (do_initial_child_stuff): Remove debug registers references.
20822 Set context using the low target. Resume threads after
20823 setting the contexts.
20824 (child_continue): Remove dead variable. Remove debug
20825 registers references.
20826 (child_fetch_inferior_registers): Go through the low target.
20827 (do_child_store_inferior_registers): Remove.
20828 (child_store_inferior_registers): Go through the low target.
20829 (win32_resume): Remove debug registers references.
20830 Set context using the low target.
20831 (handle_exception): Change return type to void. Don't record
20832 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20833 first chance exception.
20834 (get_child_debug_event): Change return type to void. Remove
20835 goto loop. Always return after waiting for debug event.
20836 (win32_wait): Convert to switch statement. Handle spurious
20839 * win32-i386-low.c (debug_registers_changed,
20840 debug_registers_used): New.
20841 (initial_stuff): Rename to ...
20842 (i386_initial_stuff): ... this. Clear debug registers
20844 (store_debug_registers): Delete.
20845 (i386_get_thread_context): New.
20846 (load_debug_registers): Delete.
20847 (i386_set_thread_context): New.
20848 (i386_thread_added): New.
20849 (single_step): Rename to ...
20850 (i386_single_step): ... this.
20851 (do_fetch_inferior_registers): Rename to ...
20852 (i386_fetch_inferior_register): ... this.
20853 (i386_store_inferior_register): New.
20854 (the_low_target): Adapt to new interface.
20856 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20857 (arm_get_thread_context): New.
20858 (arm_set_thread_context): New.
20860 (do_fetch_inferior_registers): Rename to ...
20861 (arm_fetch_inferior_register): ... this.
20862 (arm_store_inferior_register): New.
20863 (arm_wince_breakpoint): Reimplement as unsigned long.
20864 (arm_wince_breakpoint_len): Define.
20865 (the_low_target): Adapt to new interface.
20867 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20868 load_debug_registers. Add get_thread_context, set_thread_context,
20869 thread_added and store_inferior_register. Rename
20870 fetch_inferior_registers to fetch_inferior_register.
20871 (regptr): Remove declaration.
20873 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20875 * linux-low.c (linux_detach): Change return type to int. Return 0.
20876 * spu-low.c (spu_detach): Likewise.
20878 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20880 * target.h (target_ops): Change return type of detach to int.
20882 (join_inferior): New.
20883 * server.c (main): Don't skip detach support on mingw32.
20884 If the inferior doesn't support detaching return error.
20885 Call join_inferior instead of using waitpid.
20886 * linux-low.c (linux_join): New.
20887 (linux_target_op): Add linux_join.
20888 * spu-low.c (spu_join): New.
20889 (spu_target_ops): Add spu_join.
20890 * win32-low.c (win32_detach): Adapt to new interface.
20891 Reopen current_process_handle before detaching. Issue a child
20892 resume before detaching.
20894 (win32_target_op): Add win32_join.
20896 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20898 * win32-low.c (win32-attach): Fix return value.
20899 * target.h (target_ops): Describe ATTACH return values.
20901 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20903 * win32-low.c (GETPROCADDRESS): Define.
20904 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20905 (winapi_DebugSetProcessKillOnExit): Likewise.
20906 (win32_create_inferior): Force usage of ansi CreateProcessA.
20907 (win32_attach): Use GETPROCADDRESS.
20908 (win32_detach): Likewise.
20910 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20912 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20914 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20916 * win32-low.c: Commit leftover changes from 2007-03-29.
20918 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20920 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20921 fields short instead of int. Add explicit padding.
20922 (i387_cache_to_fsave): Remove unnecessary casts.
20923 (i387_fsave_to_cache): Doc fix.
20924 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20926 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20928 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20929 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20931 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20933 * configure.srv (arm*-*-mingw32ce*): Move near the other
20936 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20938 * configure.ac: Add errno checking.
20939 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20940 sys/file.h and malloc.h.
20941 (AC_CHECK_DECLS): Add perror.
20942 (srv_mingwce): Handle.
20943 * configure.srv (i[34567]86-*-cygwin*): Add
20944 win32-i386-low.o to srv_tgtobj.
20945 (i[34567]86-*-mingw*): Likewise.
20946 (arm*-*-mingw32ce*): Add case.
20947 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20948 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20949 [__MINGW32CE__] (strerror): New function.
20950 [__MINGW32CE__] (errno): Define to GetLastError.
20951 [__MINGW32CE__] (COUNTOF): New macro.
20952 (remote_open): Remove extra close call.
20953 * mem-break.c (delete_breakpoint_at): New function.
20954 * mem-break.h (delete_breakpoint_at): Declare.
20955 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20956 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20957 [USE_WIN32API] (read, write): Add char* casts.
20958 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20959 * server.h: Include wincecompat.h on Windows CE.
20960 [HAVE_ERRNO_H]: Check.
20961 (perror): Declare if not declared.
20962 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20963 (perror_with_name): Remove errno declaration.
20964 * wincecompat.h: New.
20965 * wincecompat.c: New.
20966 * win32-low.h: New.
20967 * win32-arm-low.c: New.
20968 * win32-i386-low.c: New.
20969 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20970 (OUTMSG2): Make it safe.
20972 (COUNTOF): New macro.
20973 (NUM_REGS): Get it from the low target.
20974 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20975 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20976 (thread_rec): Let low target handle debug registers.
20977 (child_add_thread): Likewise.
20978 (child_init_thread_list): Likewise.
20979 (continue_one_thread): Likewise.
20981 (do_child_fetch_inferior_registers): Move to ...
20982 * win32-i386-low.c: ... here, and rename to ...
20983 (do_fetch_inferior_registers): ... this.
20984 * win32-low.c (child_fetch_inferior_registers):
20985 Go through the low target.
20986 (do_child_store_inferior_registers): Use regptr.
20987 (strwinerror): New function.
20988 (win32_create_inferior): Handle Windows CE.
20989 Use strwinerror instead of strerror on Windows error
20990 codes. Add program to the error output.
20991 Don't close the main thread handle on Windows CE.
20992 (win32_attach): Use coredll.dll on Windows CE.
20993 (win32_kill): Close current process and current
20995 (win32_detach): Use coredll.dll on Windows CE.
20996 (win32_resume): Let low target handle debug registers, and
20998 (handle_exception): Add/Remove initial breakpoint. Avoid
20999 non-existant WSTOPSIG on Windows CE.
21000 (win32_read_inferior_memory): Cast to remove warning.
21001 (win32_arch_string): Go through the low target.
21002 (initialize_low): Call set_breakpoint_data with the low
21003 target's breakpoint.
21004 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21005 FOP_REGNUM, mappings): Move to ...
21006 * win32-i386-low.c: ... here.
21007 * win32-low.c (win32_thread_info): Move to ...
21008 * win32-low.h: ... here.
21009 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21010 win32-arm-low.c and wincecompat.c.
21011 (all:): Add $EXEEXT.
21012 (install-only:): Likewise.
21013 (gdbserver:): Likewise.
21014 (gdbreplay:): Likewise.
21015 * config.in: Regenerate.
21016 * configure: Regenerate.
21018 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21020 * win32-low.c: Rename typedef thread_info to
21021 win32_thread_info throughout.
21023 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21025 * win32-i386-low.c: Rename to ...
21026 * win32-low.c: ... this.
21027 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21028 * Makefile.in: Likewise.
21030 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21032 * remote-utils.c (monitor_output): Constify msg parameter.
21033 * server.h (monitor_output): Likewise.
21034 * win32-i386-low.c (handle_output_debug_string): New.
21035 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21036 handle_output_debug_string.
21037 (get_child_debug_event): Likewise.
21039 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21041 * server.c (main): Correct strtoul check.
21043 2007-03-27 Jon Ringle <jon@ringle.org>
21045 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21047 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21049 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21051 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21053 * terminal.h: Check HAVE_SGTTY_H.
21055 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21057 * remote-utils.c (remote_open): Print out the assigned port number.
21059 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21061 * remote-utils.c (monitor_output): New function.
21062 * server.c (debug_threads): Define here.
21063 (monitor_show_help): New function.
21064 (handle_query): Handle qRcmd.
21065 (main): Do not handle 'd' packet.
21066 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21067 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21070 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21072 * Makefile.in (EXEEXT): New.
21073 (clean): Use $(EXEEXT).
21075 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21077 * target.h (target_ops): Rename send_signal to request_interrupt,
21078 and remove enum target_signal parameter.
21079 * linux-low.c (linux_request_interrupt): Rename from
21080 linux_send_signal, and always send SIGINT.
21081 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21082 and always send SIGINT.
21083 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21085 (input_interrupt): Likewise.
21087 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21089 * server.c (get_features_xml): Check if target implemented
21091 * win32-i386-low.c (win32_arch_string): New.
21092 (win32_target_ops): Add win32_arch_string as arch_string member.
21094 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21096 * spu-low.c (spu_arch_string): New.
21097 (spu_target_ops): Add spu_arch_string.
21099 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21101 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21102 * configure.ac: Do not check for terminal.h.
21103 * configure, config.in: Regenerated.
21105 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21107 * Makefile.in (OBS): Add $(XML_BUILTIN).
21108 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21110 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21111 (arm-with-iwmmxt.c): New.
21112 * config.in, configure: Regenerate.
21113 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21114 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21115 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21116 (arm*-*-linux*): Add iWMMXt and regset support.
21117 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21118 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21119 (arm_store_wmmxregset, target_regsets): New.
21120 * server.c (get_features_xml): Take annex argument. Check builtin
21122 (handle_query): Handle multiple annexes.
21124 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21126 * remote-utils.c [USE_WIN32API] (read, write): Define.
21127 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21130 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21132 * linux-i386-low.c (the_low_target): Set arch_string.
21133 * linux-x86-64-low.c (the_low_target): Likewise.
21134 * linux-low.c (linux_arch_string): New.
21135 (linux_target_ops): Add it.
21136 * linux-low.h (struct linux_target_ops): Add arch_string.
21137 * server.c (write_qxfer_response): Use const void * for DATA.
21138 (get_features_xml): New.
21139 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21140 * target.h (struct target_ops): Add arch_string method.
21142 2007-01-03 Denis Pilat <denis.pilat@st.com>
21143 Daniel Jacobowitz <dan@codesourcery.com>
21145 * linux-low.c (linux_kill): Handle being called with no threads.
21146 * win32-i386-low.c (win32_kill): Likewise.
21147 (get_child_debug_event): Clear current_process_handle.
21149 2006-12-30 Denis PILAT <denis.pilat@st.com>
21150 Daniel Jacobowitz <dan@codesourcery.com>
21152 * remote-utils.c (remote_open): Check the type of specified
21153 serial port devices before opening them.
21154 * server.c (main): Kill the inferior if an error occurs during
21155 the first remote_open.
21157 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21159 * README: Update supported targets.
21161 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21163 * Makefile.in (clean): Remove reg-mips64.c.
21164 (reg-mips64.c, reg-mips64.o): New rules.
21165 * configure.srv: Handle mips64. Include regset support for mips.
21166 * linux-mips-low.c (union mips_register): New.
21167 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21168 (mips_breakpoint, mips_breakpoint_at): Use int.
21169 (mips_collect_register, mips_supply_register)
21170 (mips_collect_register_32bit, mips_supply_register_32bit)
21171 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21172 (mips_store_fpregset, target_regsets): New.
21173 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21175 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21177 * configure.srv: Add target "spu*-*-*".
21178 * Makefile.in (clean): Remove reg-spu.c.
21179 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21180 * spu-low.c: New file.
21182 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21184 * configure.ac: Correct td_thr_tls_get_addr test.
21185 * configure: Regenerated.
21187 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21189 * linux-low.c (linux_wait_for_event): Reformat. Use the
21190 pass_signals array.
21191 * remote-utils.c (decode_address_to_semicolon): New.
21192 * server.c (pass_signals, handle_general_set): New.
21193 (handle_query): Mention QPassSignals for qSupported.
21194 (main): Call handle_general_set.
21195 * server.h (pass_signals, decode_address_to_semicolon): New.
21197 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21199 * server.c (handle_query): Correct error handling for read_auxv.
21201 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21203 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21204 and srv_linux_thread_db to yes.
21205 * linux-s390-low.c (s390_fill_gregset): New function.
21206 (target_regsets): Define data structure.
21208 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21210 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21211 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21212 * config.in, configure: Regenerated.
21213 * inferiors.c (gdb_id_to_thread): New function.
21214 (gdb_id_to_thread_id): Use it.
21215 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21216 * linux-low.h (struct process_info): Add th member.
21217 (thread_db_get_tls_address): New prototype.
21218 * remote-utils.c (decode_address): Make non-static.
21219 * server.c (handle_query): Handle qGetTLSAddr.
21220 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21221 * target.h (struct target_ops): Add get_tls_address.
21222 * thread-db.c (maybe_attach_thread): Save the thread handle.
21223 (thread_db_get_tls_address): New.
21225 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21227 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21228 (linux_resume_one_process): Take a siginfo_t *. Update all
21229 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21230 (struct pending_signals): Add a siginfo_t.
21231 (linux_wait_for_process): Always set last_status.
21232 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21233 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21234 * linux-low.h (struct process_info): Add last_status.
21236 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21238 * remote-utils.c (try_rle): New function.
21239 (putpkt_binary): Use it.
21241 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21243 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21244 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21245 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21246 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21247 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21250 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21252 * server.c (terminal_fd): New variable.
21253 (old_foreground_pgrp): Likewise.
21254 (restore_old_foreground_pgrp): New function.
21255 (start_inferior): Record the terminal file descriptor in terminal_fd
21256 and its original foreground group in old_foreground_pgrp. Register
21257 restore_old_foreground_pgrp with atexit().
21259 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21261 * server.c (handle_query): Correct qPart to qXfer.
21263 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21265 * configure.ac: Check for more headers which are missing on
21266 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21267 * configure.srv: Add Cygwin and mingw32.
21268 * remote-utils.c: Don't include headers unconditionally which
21269 are missing on mingw32. Include <winsock.h> for mingw32.
21270 (remote_open): Adjust for mingw32 support. Flush
21271 standard error after writing to it.
21272 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21273 (unblock_async_io, enable_async_io, disable_async_io)
21274 (readchar, getpkt): Update for Winsock support.
21275 (prepare_resume_reply): Expect a protocol signal number.
21276 * server.c: Disable <sys/wait.h> on mingw32.
21277 (start_inferior): Adjust for mingw32 support. Flush
21278 standard error after writing to it.
21279 (attach_inferior): Likewise. Use protocol signal
21281 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21283 * win32-i386-low.c: New file.
21284 * Makefile.in (XM_CLIBS): Set.
21285 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21286 (win32-i386-low.o): New dependency rule.
21287 * linux-low.c (linux_wait): Use target signal numbers.
21288 * target.h (struct target_ops): Doc fix.
21289 * server.h (target_signal_to_name): New prototype.
21290 * gdbreplay.c: Don't include headers unconditionally which
21291 are missing on mingw32. Include <winsock.h> for mingw32.
21292 (remote_close, remote_open): Adjust for Winsock support.
21293 * configure, config.in: Regenerated.
21295 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21297 * server.c (decode_xfer_read, write_qxfer_response): New.
21298 (handle_query): Take a packet length argument. Handle
21299 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21300 the qSupported response.
21301 (main): Update call to handle_query.
21303 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21305 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21306 (putpkt_binary): Renamed from putpkt and adjusted for binary
21308 (putpkt): New wrapper for putpkt_binary.
21309 (readchar): Don't mask off the high bit.
21310 (decode_X_packet): New function.
21311 * server.c (main): Call putpkt_binary if a handler sets the packet
21312 length. Save the length of the incoming packet. Handle 'X'.
21313 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21315 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21317 * server.c (handle_query): Handle qSupported.
21319 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21321 * remote-utils.c (all_symbols_looked_up): New variable.
21322 (look_up_one_symbol): Check it.
21323 * server.h (look_up_one_symbol): New declaration.
21324 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21326 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21328 * Makefile.in (linux-arm-low.o): Update dependencies.
21329 * linux-arm-low.c: Include "gdb_proc_service.h".
21330 (PTRACE_GET_THREAD_AREA): Define.
21331 (ps_get_thread_area): New function.
21333 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21335 * configure.srv (m68k*-*-uclinux*): New target.
21336 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21337 (linux_resume_one_process): Remove extraneous cast.
21338 (linux_read_offsets): New.
21339 (linux_target_op): Add linux_read_offsets on mmuless systems.
21340 * server.c (handle_query): Add qOffsets logic.
21341 * target.h (struct target_ops): Add read_offsets.
21343 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21345 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21346 (PTRACE_GET_THREAD_AREA): Define.
21347 (ps_get_thread_area): New function.
21348 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21349 (linux-x86-64-low.o): Update.
21351 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21353 * configure.ac: Remove checks for prfpregset_t.
21354 * gdb_proc_service.h: New file.
21355 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21356 new "gdb_proc_service.h".
21357 * proc-service.c: Likewise.
21358 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21359 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21360 * Makefile.in (gdb_proc_service_h): Updated.
21361 * configure, config.in: Regenerated.
21363 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21365 * remote-utils.c (prepare_resume_reply): Move declaration
21366 of gdb_id_from_wait to the top of the block.
21368 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21370 * linux-low.c (regsets_store_inferior_registers): Read the regset
21371 from the target before filling it.
21373 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21375 * server.c (attach_inferior): Return SIGTRAP for a successful
21378 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21380 * Makefile.in (OBS): Add version.o.
21381 (STAGESTUFF): Delete.
21382 (version.o): Add dependencies.
21383 (version.c): Replace rule.
21384 (clean): Remove version.c.
21385 * server.c (gdbserver_version): New.
21386 (gdbserver_usage): Use printf.
21387 (main): Handle --version and --help.
21388 * server.h (version, host_name): Add declarations.
21390 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21402 * linux-x86-64-low.c:
21404 * linux-s390-low.c:
21405 * linux-ppc64-low.c:
21407 * linux-mips-low.c:
21408 * linux-m68k-low.c:
21409 * linux-m32r-low.c:
21412 * linux-ia64-low.c:
21413 * linux-i386-low.c:
21414 * linux-crisv32-low.c:
21426 * gdbserver.1: Add (C) after Copyright. Update the FSF
21429 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21431 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21432 (arm_breakpoint_at): Recognize both breakpoints.
21433 (the_low_target): Use the correct breakpoint instruction.
21435 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21437 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21438 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21439 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21440 (the_low_target): Update.
21442 2005-10-25 Andreas Schwab <schwab@suse.de>
21444 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21446 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21447 (ia64_num_regs): Reduce to 462.
21449 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21451 * acinclude.m4: Correct quoting.
21452 * aclocal.m4: Regenerated.
21454 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21455 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21456 (thread_db_init): Call thread_db_err_str.
21457 * configure.ac: Check for TD_VERSION.
21458 * config.in, configure: Regenerated.
21460 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21462 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21464 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21466 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21467 is not available. Define HAVE_PTRACE_GETREGS if it is.
21468 * config.in, configure: Regenerated.
21469 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21470 * linux-i386-low.c, linux-m68k-low.c: Update to use
21471 HAVE_PTRACE_GETREGS.
21472 * linux-low.c (regsets_fetch_inferior_registers)
21473 (regsets_store_inferior_registers): Only return 0 if we processed
21475 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21476 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21478 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21480 * inferiors.c (struct thread_info): Add gdb_id.
21481 (add_thread): Add gdb_id argument.
21482 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21483 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21484 calls to add_thread.
21485 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21486 * server.c (handle_query): Use thread_to_gdb_id.
21487 (handle_v_cont, main): Use gdb_id_to_thread_id.
21488 * server.h (add_thread): Update prototype.
21489 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21492 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21494 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21495 left-padded registers.
21496 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21497 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21499 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21501 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21502 * configure: Regenerate.
21503 * config.in: Regenerate.
21504 * server.h (NEED_DECLARATION_STRERROR):
21505 Replace with !HAVE_DECL_STRERROR.
21507 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21509 * linux-low.c (linux_wait, linux_send_signal): Don't test
21510 an unsigned long variable for > 0 if it could be MAX_ULONG.
21511 * server.c (myresume): Likewise.
21512 * target.c (set_desired_inferior): Likewise.
21514 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21516 * configure.ac: Simplify and improve check for socklen_t.
21517 * configure, config.in: Regenerate.
21519 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21521 * acconfig.h: Remove.
21522 * configure.ac: Add a test for socklen_t. Use three-argument
21523 AC_DEFINE throughout.
21524 * config.in: Regenerated using autoheader 2.59.
21525 * configure: Regenerated.
21527 * gdbreplay.c (socklen_t): Provide a default.
21528 (remote_open): Use socklen_t.
21529 * remote-utils.c (socklen_t): Provide a default.
21530 (remote_open): Use socklen_t.
21531 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21534 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21536 * linux-low.c (linux_read_memory, linux_write_memory)
21537 (linux_read_auxv): Likewise.
21538 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21539 (check_mem_write): Likewise.
21540 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21542 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21543 (registers_from_string, register_data): Likewise.
21544 * server.c (handle_query, main): Likewise.
21545 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21546 (decode_M_packet): Likewise.
21547 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21548 * target.h (struct target_ops): Update read_memory, write_memory,
21550 (read_inferior_memory, write_inferior_memory): Update.
21551 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21552 to unsigned char *.
21553 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21554 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21555 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21556 linux-s390-low.c, linux-sh-low.c: Update for changes in
21557 read_inferior_memory and the_low_target->breakpoint.
21559 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21561 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21562 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21563 * configure.srv: Add powerpc64-*-linux*.
21564 * linux-ppc64-low.c: New file.
21566 2005-05-23 Orjan Friberg <orjanf@axis.com>
21568 * linux-cris-low.c: New file with support for CRIS.
21569 * linux-crisv32-low.c: Ditto for CRISv32.
21570 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21571 (clean): Add reg-cris.c and reg-crisv32.c.
21572 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21573 reg-crisv32.o, and reg-crisv32.c to make rules.
21574 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21575 recognized targets.
21577 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21579 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21580 of sizeof (PTRACE_XFER_TYPE).
21581 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21583 2005-05-12 Orjan Friberg <orjanf@axis.com>
21585 * target.h (struct target_ops): Add insert_watchpoint,
21586 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21587 pointers for hardware watchpoint support.
21588 * linux-low.h (struct linux_target_ops): Ditto.
21589 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21590 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21591 to linux_target_ops.
21592 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21594 * server.c (main): Recognize 'Z' and 'z' packets.
21596 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21598 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21599 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21600 (the_low_target): Add new members.
21602 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21604 * proc-service.c (ps_lgetregs): Search all_processes instead of
21607 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21609 * server.c (start_inferior): Change return type to int.
21610 (attach_inferior): Change sigptr to int *.
21611 (handle_v_cont, handle_v_requests): Change signal to int *.
21612 (main): Change signal to int.
21614 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21616 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21617 * configure.srv: Add m32r*-*-linux*.
21618 * linux-m32r-low.c: New file.
21620 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21622 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21624 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21626 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21627 Take unsigned long arguments for PIDs.
21628 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21629 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21630 (wait_for_sigstop, linux_resume_one_process)
21631 (regsets_fetch_inferior_registers, linux_send_signal)
21632 (linux_read_auxv): Likewise. Update the types of variables holding
21633 PIDs. Update format string specifiers.
21634 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21635 * remote-utils.c (prepare_resume_reply): Likewise.
21636 * server.c (cont_thread, general_thread, step_thread)
21637 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21639 (handle_query): Update format specifiers.
21640 (handle_v_cont, main): Use strtoul for thread IDs.
21641 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21642 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21643 (general_thread, step_thread, thread_from_wait)
21644 (old_thread_from_wait): Update.
21645 * target.h (struct thread_resume): Use unsigned long for THREAD.
21646 (struct target_ops): Use unsigned long for arguments to attach and
21649 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21651 * acinclude.m4: Include bfd/bfd.m4 directly.
21652 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21653 <agriffis@toolchain.org>.
21654 * aclocal.m4, configure: Regenerated.
21656 2005-01-07 Andrew Cagney <cagney@gnu.org>
21658 * configure.ac: Rename configure.in, require autoconf 2.59.
21659 * configure: Re-generate.
21661 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21663 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21664 LIBS when finished.
21665 * aclocal.m4: Regenerated.
21666 * configure: Regenerated.
21668 2004-11-21 Andreas Schwab <schwab@suse.de>
21670 * linux-m68k-low.c (m68k_num_gregs): Define.
21671 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21672 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21673 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21674 (m68k_breakpoint_at): New. Add to the_low_target.
21676 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21677 srv_linux_thread_db to yes.
21679 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21681 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21682 (ARCH_SET_FS): Likewise.
21683 (ARCH_GET_FS): Likewise.
21684 (ARCH_GET_GS): Likewise.
21686 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21688 * linux-i386-low.c (ps_get_thread_area): New.
21689 * linux-x86-64-low.c (ps_get_thread_area): New.
21690 * linux-low.c: Include <sys/syscall.h>.
21691 (linux_kill_one_process): Don't kill the first thread here.
21692 (linux_kill): Kill the first thread here.
21693 (kill_lwp): New function.
21694 (send_sigstop, linux_send_signal): Use it.
21695 * proc-service.c: Clean up #ifdefs.
21696 (fpregset_info): Delete.
21697 (ps_lgetregs): Update and enable implementation.
21698 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21700 * remote-utils.c (struct sym_cache, symbol_cache): New.
21701 (input_interrupt): Print a clearer message.
21702 (async_io_enabled): New variable.
21703 (enable_async_io, disable_async_io): Use it. Update comments.
21704 (look_up_one_symbol): Use the symbol cache.
21705 * thread-db.c (thread_db_look_up_symbols): New function.
21706 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21708 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21710 * configure.in: Test for -rdynamic.
21711 * configure: Regenerated.
21712 * Makefile (INTERNAL_LDFLAGS): New.
21713 (gdbserver, gdbreplay): Use it.
21715 2004-09-02 Andrew Cagney <cagney@gnu.org>
21717 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21719 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21721 * linux-low.c (linux_wait): Clear all_processes list also.
21723 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21725 * linux-low.c: Include <errno.h>. Remove extern declaration of
21728 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21730 * gdbreplay.c, server.h, utils.c: Update copyright years.
21732 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21734 * server.c (main): Print child status or termination signal from
21735 variable 'signal', not 'sig'.
21737 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21739 * linux-low.c (linux_read_memory): Change return type to
21740 int. Check for and return error from ptrace().
21741 * target.c (read_inferior_memory): Change return type to int. Pass
21742 back return status from the_target->read_memory().
21743 * target.h (struct target_ops): Adapt *read_memory() prototype.
21745 (read_inferior_memory): Adapt prototype.
21746 * server.c (main): Return an error packet if
21747 read_inferior_memory() returns an error.
21749 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21751 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21752 Unify with other clean targets.
21754 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21756 * server.c (handle_v_cont): Call set_desired_inferior.
21758 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21760 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21762 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21764 * linux-low.c (linux_wait): Unblock async I/O.
21765 (linux_resume): Block and enable async I/O.
21766 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21767 * server.h (block_async_io, unblock_async_io): Add prototypes.
21769 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21771 * remote-utils.c (remote_open): Print a status notice after
21772 opening a TCP port.
21773 * server.c (attach_inferior): Print a status notice after
21776 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21778 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21780 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21782 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21784 * server.c, target.h: Update copyright years.
21786 2004-02-25 Roland McGrath <roland@redhat.com>
21788 * target.h (struct target_ops): New member `read_auxv'.
21789 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21790 * linux-low.c (linux_read_auxv): New function.
21791 (linux_target_ops): Initialize `read_auxv' member to that.
21793 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21795 Committed by Jim Blandy <jimb@redhat.com>.
21797 * linux-s390-low.c (s390_num_regs): Update.
21798 (s390_regmap): Remove control registers. Use __s390x__ predefine
21799 instead of GPR_SIZE to distiguish s390 and s390x targets.
21801 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21803 * linux-low.c: Update copyright year.
21804 (check_removed_breakpoint): Clear pending_is_breakpoint.
21805 (linux_set_resume_request, linux_queue_one_thread)
21806 (resume_status_pending_p): New functions.
21807 (linux_continue_one_thread): Use process->resume.
21808 (linux_resume): Only resume threads if there are no pending events.
21809 * linux-low.h (struct process_info): Add resume request
21812 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21814 * regcache.c (new_register_cache): Clear the allocated register
21815 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21817 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21819 * linux-low.c (linux_resume): Take a struct thread_resume *
21821 (linux_wait): Update call.
21822 (resume_ptr): New static variable.
21823 (linux_continue_one_thread): Renamed from
21824 linux_continue_one_process. Use resume_ptr.
21825 (linux_resume): Use linux_continue_one_thread.
21826 * server.c (handle_v_cont, handle_v_requests): New functions.
21827 (myresume): New function.
21828 (main): Handle 'v' case.
21829 * target.h (struct thread_resume): New type.
21830 (struct target_ops): Change argument of "resume" to struct
21832 (myresume): Delete macro.
21834 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21836 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21837 (uninstall): Support DESTDIR.
21839 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21841 * configure.srv: Add xscale*linux copy of arm*linux entry.
21843 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21845 * linux-arm-low.c (arm_reinsert_addr): New function.
21846 (the_low_target): Add arm_reinsert_addr.
21848 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21850 * mem-break.c: Remove whitespace at end of file.
21852 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21854 * configure.in: Check whether we need to prototype strerror.
21855 * server.h: Optionally prototype strerror.
21856 * gdbreplay.c (perror_with_name): Use strerror.
21857 * linux-low.c (linux_attach_lwp): Use strerror.
21858 * utils.c (perror_with_name): Use strerror.
21859 * config.in, configure: Regenerated.
21861 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21863 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21864 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21866 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21868 * Makefile.in (SFILES): Update.
21869 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21870 low-sun3.c: Remove files.
21872 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21874 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21875 (linux_detach_one_process, linux_detach): New functions.
21876 (linux_target_ops): Add linux_detach.
21877 * server.c (main): Handle 'D' packet.
21878 * target.h (struct target_ops): Add "detach" member.
21879 (detach_inferior): Define.
21881 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21883 From Kelley Cook <kelleycook@wideopenwest.com>:
21884 * configure.srv: Accept i[34567]86 variants.
21886 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21888 * linux-low.c (linux_wait_for_event): Correct comment typos.
21889 (linux_resume_one_process): Call check_removed_breakpoint.
21890 (linux_send_signal): New function.
21891 (linux_target_ops): Add linux_send_signal.
21892 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21894 * target.h (struct target_ops): Add send_signal.
21896 2003-05-29 Jim Blandy <jimb@redhat.com>
21898 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21899 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21900 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21901 away part of the register's value.
21903 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21905 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21906 (linux_wait_for_event, linux_init_signals): Likewise.
21908 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21910 * configure.in: Check for stdlib.h.
21911 * configure: Regenerated.
21912 * config.in: Regenerated.
21914 2003-01-04 Andreas Schwab <schwab@suse.de>
21916 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21918 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21920 * Makefile.in: Remove obsolete code.
21922 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21924 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21925 defined(PT_FPR0_HI).
21927 2002-11-17 Stuart Hughes <seh@zee2.com>
21929 * linux-arm-low.c (arm_num_regs): Increase.
21930 (arm_regmap): Include status register.
21932 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21934 * linux-low.c (register_addr): Remove incorrect -1 check.
21936 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21938 * linux-low.c (linux_create_inferior): Call setpgid. Return
21940 (unstopped_p, linux_signal_pid): Remove.
21941 (linux_target_ops): Remove linux_signal_pid.
21942 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21943 global instead of target method.
21944 * target.h (struct target_ops): Remove signal_pid. Update comment
21945 for create_inferior.
21946 * server.c (signal_pid): New variable.
21947 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21948 gdbserver. Set the child to be the foreground process group.
21949 (attach_inferior): Set signal_pid.
21951 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21953 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21955 2002-08-20 Jim Blandy <jimb@redhat.com>
21957 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21960 2002-08-01 Andrew Cagney <cagney@redhat.com>
21962 * Makefile.in: Make chill references obsolete.
21964 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21966 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21967 * configure: Regenerate.
21968 * config.in: Regenerate.
21970 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21972 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21973 (perror_with_name, remote_close, remote_open, expect, play): Static.
21975 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21977 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21978 byte offsets instead of an array of indexes.
21979 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21981 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21983 * regcache.c: Add comment.
21985 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21987 * thread-db.c: New file.
21988 * proc-service.c: New file.
21989 * acinclude.m4: New file.
21990 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21991 proc-service.o, and thread-db.o.
21992 (linux-low.o): Add USE_THREAD_DB.
21993 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21994 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21995 * aclocal.m4: Regenerated.
21996 * config.in: Regenerated.
21997 * configure: Regenerated.
21998 * configure.in: Check for proc_service.h, sys/procfs.h,
21999 thread_db.h, and linux/elf.h headrs.
22000 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22001 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22002 Check for -lthread_db and thread support.
22003 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22004 PowerPC, and SuperH.
22005 * i387-fp.c: Constify arguments.
22006 * i387-fp.h: Likewise.
22007 * inferiors.c: (struct thread_info): Renamed from
22008 `struct inferior_info'. Remove PID member. Use generic inferior
22009 list header. All uses updated.
22010 (inferiors, signal_pid): Removed.
22011 (all_threads): New variable.
22012 (get_thread): Define.
22013 (add_inferior_to_list): New function.
22014 (for_each_inferior): New function.
22015 (change_inferior_id): New function.
22016 (add_inferior): Removed.
22017 (remove_inferior): New function.
22018 (add_thread): New function.
22019 (free_one_thread): New function.
22020 (remove_thread): New function.
22021 (clear_inferiors): Use for_each_inferior and free_one_thread.
22022 (find_inferior): New function.
22023 (find_inferior_id): New function.
22024 (inferior_target_data): Update argument type.
22025 (set_inferior_target_data): Likewise.
22026 (inferior_regcache_data): Likewise.
22027 (set_inferior_regcache_data): Likewise.
22028 * linux-low.c (linux_bp_reinsert): Remove.
22029 (all_processes, stopping_threads, using_thrads)
22030 (struct pending_signals, debug_threads, pid_of): New.
22031 (inferior_pid): Replace with macro.
22032 (struct inferior_linux_data): Remove.
22033 (get_stop_pc, add_process): New functions.
22034 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22035 Use add_process and add_thread.
22036 (linux_attach_lwp): New function, based on old linux_attach. Use
22037 add_process and add_thread. Set stop_expected for new threads.
22038 (linux_attach): New function.
22039 (linux_kill_one_process): New function.
22040 (linux_kill): Kill all LWPs.
22041 (linux_thread_alive): Use find_inferior_id.
22042 (check_removed_breakpoints, status_pending_p): New functions.
22043 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22044 Update. Use WNOHANG. Wait for cloned processes also. Update process
22045 struct for the found process.
22046 (linux_wait_for_event): New function.
22047 (linux_wait): Use it. Support LWPs.
22048 (send_sigstop, wait_for_sigstop, stop_all_processes)
22049 (linux_resume_one_process, linux_continue_one_process): New functions.
22050 (linux_resume): Support LWPs.
22051 (REGISTER_RAW_SIZE): Remove.
22052 (fetch_register): Use register_size instead. Call supply_register.
22053 (usr_store_inferior_registers): Likewise. Call collect_register.
22054 Fix recursive case.
22055 (regsets_fetch_inferior_registers): Improve error message.
22056 (regsets_store_inferior_registers): Add debugging.
22057 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22058 (unstopped_p, linux_signal_pid): New functions.
22059 (linux_target_ops): Add linux_signal_pid.
22060 (linux_init_signals): New function.
22061 (initialize_low): Call it. Initialize using_threads.
22062 * regcache.c (inferior_regcache_data): Add valid
22064 (get_regcache): Fetch registers lazily. Add fetch argument
22065 and update all callers.
22066 (regcache_invalidate_one, regcache_invalidate): New
22068 (new_register_cache): Renamed from create_register_cache.
22069 Return the new regcache.
22070 (free_register_cache): Change argument to a void *.
22071 (registers_to_string, registers_from_string): Call get_regcache
22072 with fetch flag set.
22073 (register_data): Make static. Pass fetch flag to get_regcache.
22074 (supply_register): Call get_regcache with fetch flag clear.
22075 (collect_register): Call get_regcache with fetch flag set.
22076 (collect_register_as_string): New function.
22077 * regcache.h: Update.
22078 * remote-utils.c (putpkt): Flush after debug output and use
22080 Handle input interrupts while waiting for an ACK.
22081 (input_interrupt): Use signal_pid method.
22082 (getpkt): Flush after debug output and use stderr.
22083 (outreg): Use collect_register_as_string.
22084 (new_thread_notify, dead_thread_notify): New functions.
22085 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22086 and general_thread.
22087 (look_up_one_symbol): Flush after debug output.
22088 * server.c (step_thread, server_waiting): New variables.
22089 (start_inferior): Don't use signal_pid. Update call to mywait.
22090 (attach_inferior): Update call to mywait.
22091 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22092 (main): Don't fetch/store registers explicitly. Use
22093 set_desired_inferior. Support proposed ``Hs'' packet. Update
22095 * server.h: Update.
22096 (struct inferior_list, struct_inferior_list_entry): New.
22097 * target.c (set_desired_inferior): New.
22098 (write_inferior_memory): Constify.
22099 (mywait): New function.
22100 * target.h: Update.
22101 (struct target_ops): New signal_pid method.
22102 (mywait): Removed macro, added prototype.
22104 * linux-low.h (regset_func): Removed.
22105 (regset_fill_func, regset_store_func): New.
22106 (enum regset_type): New.
22107 (struct regset_info): Add type field. Use new operation types.
22108 (struct linux_target_ops): stop_pc renamed to get_pc.
22109 Add decr_pc_after_break and breakpoint_at.
22110 (get_process, get_thread_proess, get_process_thread)
22111 (strut process_info, all_processes, linux_attach_lwp)
22112 (thread_db_init): New.
22114 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22115 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22116 (the_low_target): Add new members.
22117 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22118 (i386_store_fpxregset): Constify.
22119 (target_regsets): Add new kind identifier.
22120 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22121 (i386_set_pc): Add debugging.
22122 (i386_breakpoint_at): New function.
22123 (the_low_target): Add new members.
22124 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22125 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22126 (mips_breakpoint_at): New.
22127 (the_low_target): Add new members.
22128 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22129 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22130 (the_low_target): Add new members.
22131 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22132 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22133 (the_low_target): Add new members.
22134 * linux-x86-64-low.c (target_regsets): Add new kind
22137 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22139 From Martin Pool <mbp@samba.org>:
22140 * server.c (gdbserver_usage): New function.
22143 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22145 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22146 stop_at -> stop_pc.
22148 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22150 * Makefile.in: Remove obsolete code.
22152 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22154 * linux-low.c (regsets_fetch_inferior_registers),
22155 (regsets_store_inferior_registers): Removed cast to int from
22157 * regcache.h: Added declaration of struct inferior_info.
22159 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22161 * inferiors.c (struct inferior_info): Add regcache_data.
22162 (add_inferior): Call create_register_cache.
22163 (clear_inferiors): Call free_register_cache.
22164 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22165 * regcache.c (struct inferior_regcache_data): New.
22166 (registers): Remove.
22167 (get_regcache): New function.
22168 (create_register_cache, free_register_cache): New functions.
22169 (set_register_cache): Don't initialize the register cache here.
22170 (registers_to_string, registers_from_string, register_data): Call
22172 * regcache.h: Add prototypes.
22173 * server.h: Likewise.
22175 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22177 * mem-break.c: New file.
22178 * mem-break.h: New file.
22179 * Makefile.in: Add mem-break.o rule; update server.h
22181 * inferiors.c (struct inferior_info): Add target_data
22183 (clear_inferiors): Free target_data member if set.
22184 (inferior_target_data, set_inferior_target_data): New functions.
22185 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22186 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22187 * linux-low.c (linux_bp_reinsert): New variable.
22188 (struct inferior_linux_data): New.
22189 (linux_create_inferior): Use set_inferior_target_data.
22190 (linux_attach): Likewise. Call add_inferior.
22191 (linux_wait_for_one_inferior): New function.
22192 (linux_wait): Call it.
22193 (linux_write_memory): Add const.
22194 (initialize_low): Call set_breakpoint_data.
22195 * linux-low.h (struct linux_target_ops): Add breakpoint
22197 * server.c (attach_inferior): Remove extra add_inferior
22199 * server.h: Include mem-break.h. Update inferior.c
22201 * target.c (read_inferior_memory)
22202 (write_inferior_memory): New functions.
22203 * target.h (read_inferior_memory)
22204 (write_inferior_memory): Change macros to prototypes.
22205 (struct target_ops): Update comments. Add const to write_memory
22208 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22210 * linux-low.c (usr_store_inferior_registers): Support
22211 registers which are allowed to fail to store.
22212 * linux-low.h (linux_target_ops): Likewise.
22213 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22214 (ppc_cannot_store_register): FPSCR may not be storable.
22216 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22218 * server.h: Include <string.h> if HAVE_STRING_H.
22219 * ChangeLog: Correct paths in last ChangeLog entry.
22221 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22223 * linux-low.h: Remove obsolete prototypes.
22224 (struct linux_target_ops): New.
22225 (extern the_low_target): New.
22226 * linux-low.c (num_regs, regmap): Remove declarations.
22227 (register_addr): Use the_low_target explicitly.
22228 (fetch_register): Likewise.
22229 (usr_fetch_inferior_registers): Likewise.
22230 (usr_store_inferior_registers): Likewise.
22231 * linux-arm-low.c (num_regs): Remove.
22232 (arm_num_regs): Define.
22233 (arm_regmap): Renamed from regmap, made static.
22234 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22236 (arm_cannot_store_register): Renamed from cannot_store_register,
22238 (the_low_target): New.
22239 * linux-i386-low.c (num_regs): Remove.
22240 (i386_num_regs): Define.
22241 (i386_regmap): Renamed from regmap, made static.
22242 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22244 (i386_cannot_store_register): Renamed from cannot_store_register,
22246 (the_low_target): New.
22247 * linux-ia64-low.c (num_regs): Remove.
22248 (ia64_num_regs): Define.
22249 (ia64_regmap): Renamed from regmap, made static.
22250 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22252 (ia64_cannot_store_register): Renamed from cannot_store_register,
22254 (the_low_target): New.
22255 * linux-m68k-low.c (num_regs): Remove.
22256 (m68k_num_regs): Define.
22257 (m68k_regmap): Renamed from regmap, made static.
22258 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22260 (m68k_cannot_store_register): Renamed from cannot_store_register,
22262 (the_low_target): New.
22263 * linux-mips-low.c (num_regs): Remove.
22264 (mips_num_regs): Define.
22265 (mips_regmap): Renamed from regmap, made static.
22266 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22268 (mips_cannot_store_register): Renamed from cannot_store_register,
22270 (the_low_target): New.
22271 * linux-ppc-low.c (num_regs): Remove.
22272 (ppc_num_regs): Define.
22273 (ppc_regmap): Renamed from regmap, made static.
22274 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22276 (ppc_cannot_store_register): Renamed from cannot_store_register,
22278 (the_low_target): New.
22279 * linux-s390-low.c (num_regs): Remove.
22280 (s390_num_regs): Define.
22281 (s390_regmap): Renamed from regmap, made static.
22282 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22284 (s390_cannot_store_register): Renamed from cannot_store_register,
22286 (the_low_target): New.
22287 * linux-sh-low.c (num_regs): Remove.
22288 (sh_num_regs): Define.
22289 (sh_regmap): Renamed from regmap, made static.
22290 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22292 (sh_cannot_store_register): Renamed from cannot_store_register,
22294 (the_low_target): New.
22295 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22296 (the_low_target): New.
22298 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22300 * Makefile.in: Add stamp-h target.
22301 * configure.in: Create stamp-h.
22302 * configure: Regenerated.
22304 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22306 * inferiors.c: New file.
22307 * target.c: New file.
22308 * target.h: New file.
22309 * Makefile.in: Add target.o and inferiors.o. Update
22311 * linux-low.c (inferior_pid): New static variable,
22312 moved from server.c.
22313 (linux_create_inferior): Renamed from create_inferior.
22314 Call add_inferior. Return 0 on success instead of a PID.
22315 (linux_attach): Renamed from myattach.
22316 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22317 (linux_thread_alive): Renamed from mythread_alive.
22318 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22320 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22321 (regsets_store_inferior_registers): Correct error message.
22322 Add missing ``return 0''.
22323 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22324 (linux_store_registers): Renamed from store_inferior_registers.
22325 (linux_read_memory): Renamed from read_inferior_memory.
22326 (linux_write_memory): Renamed from write_inferior_memory.
22327 (linux_target_ops): New structure.
22328 (initialize_low): Call set_target_ops ().
22329 * remote-utils.c (unhexify): New function.
22330 (hexify): New function.
22331 (input_interrupt): Send signals to ``signal_pid''.
22332 * server.c (inferior_pid): Remove.
22333 (start_inferior): Update create_inferior call.
22334 (attach_inferior): Call add_inferior.
22335 (handle_query): New function.
22336 (main): Call handle_query for `q' packets.
22337 * server.h: Include "target.h". Remove obsolete prototypes.
22338 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22340 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22342 * Makefile.in: Add WARN_CFLAGS. Update configury
22344 * configure.in: Check for <string.h>
22345 * configure: Regenerate.
22346 * config.in: Regenerate.
22347 * gdbreplay.c: Include needed system headers.
22348 (remote_open): Remove strchr prototype.
22349 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22350 * regcache.c (supply_register): Change buf argument to const void *.
22351 (supply_register_by_name): Likewise.
22352 (collect_register): Change buf argument to void *.
22353 (collect_register_by_name): Likewise.
22354 * regcache.h: Add missing prototypes.
22355 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22356 * server.c (handle_query): New function.
22357 (attached): New static variable, moved out of main.
22358 (main): Quiet longjmp clobber warnings.
22359 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22360 * utils.c (error): Remove NORETURN.