1 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
3 * server.cc (handle_monitor_command): Handle "set
5 (captured_main): Handle "--debug-event-loop".
6 (monitor_show_help): Mention new setting.
7 (gdbserver_usage): Mention new flag.
9 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
11 * linux-low.cc (linux_process_target::async): Pass name to
13 * remote-utils.cc (handle_accept_event): Likewise.
14 (remote_open): Likewise.
16 2020-10-01 Kamil Rytarowski <n54@gmx.com>
18 * netbsd-i386-low.cc: Add.
19 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
20 * configure.srv: Add i[34567]86-*-netbsd*.
22 2020-10-01 Kamil Rytarowski <n54@gmx.com>
24 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
25 (netbsd_target_regsets): Now const.
26 (the_low_target): Remove.
27 (class netbsd_amd64_target, the_netbsd_amd64_target)
28 (the_netbsd_target): Add.
29 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
31 (netbsd_process_target::fetch_registers)
32 (netbsd_process_target::store_registers, initialize_low): Update.
33 (the_netbsd_target): Remove.
34 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
35 (the_low_target, netbsd_tdesc): Remove.
36 (netbsd_process_target::get_regs_info)
37 (netbsd_process_target::low_arch_setup): Add.
39 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
41 * win32-low.cc: Remove local wow64_process variable.
42 * win32-low.h: Remove local wow64_process variable.
44 2020-09-18 Tom Tromey <tromey@adacore.com>
46 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
47 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
48 (netbsd_process_target::wait): Change type of target_options.
49 * win32-low.h (class win32_process_target) <wait>: Update.
50 * win32-low.cc (win32_process_target::wait): Update.
51 * target.h (class process_stratum_target) <wait>: Update.
53 * target.cc (mywait, target_wait): Change type of "options".
54 * linux-low.h (class linux_process_target) <wait, wait_1>:
56 * linux-low.cc (linux_process_target::wait)
57 (linux_process_target::wait_1): Update.
59 2020-09-15 Tom Tromey <tromey@adacore.com>
61 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
62 (xmltarget_amd64_linux_no_xml): Now arrays.
64 2020-09-14 Tom Tromey <tromey@adacore.com>
66 * tracepoint.cc (eval_result_names): Now const.
67 * ax.cc (gdb_agent_op_names): Now const.
69 2020-09-10 Kamil Rytarowski <n54@gmx.com>
72 * netbsd-low.h: Likewise.
73 * netbsd-amd64-low.cc: Likewise.
74 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
75 "netbsd-amd64-low.cc".
76 * configure.srv: Add x86_64-*-netbsd*.
78 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
80 * server.cc (captured_main): Accept multiple `--selftest=`
81 options. Pass all `--selftest=` arguments to run_tests.
83 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
85 * configure, config.in: Regenerate.
87 2020-07-26 Eli Zaretskii <eliz@gnu.org>
89 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
90 When checking whether socklen_t type is defined, use ws2tcpip.h if
91 it is available and sys/socket.h isn't.
92 * configure: Regenerate.
93 * config.in: Regenerate.
95 2020-07-22 Pedro Alves <pedro@palves.net>
97 * inferiors.cc (switch_to_process): New, moved here from
98 thread-db.cc, and made extern.
99 * inferiors.h (switch_to_process): Declare.
100 * server.cc: Include "gdbsupport/scoped_restore.h".
101 (handle_qxfer_threads_proper): Now returns bool. Prepare to
102 access memory around target calls.
103 (handle_qxfer_threads): Handle errors.
104 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
106 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
108 * linux-low.cc (stopped_pids): Make static.
110 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
112 * tdesc.cc (allocate_target_description): Add header comment.
113 (target_desc_deleter::operator()): New function.
114 * tdesc.h (struct target_desc): Declare as final.
116 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
118 * server.cc (handle_query): Use std::vector of
119 std::string for `qsupported` vector. Use separate
121 * target.h (class process_stratum_target) <process_qsupported>:
122 Change parameters to array_view of const char *.
123 (target_process_qsupported): Remove `count` parameter.
124 * target.cc (process_stratum_target::process_qsupported): Change
125 parameters to array_view of const char *.
126 * linux-x86-low.cc (class x86_target) <process_qsupported>:
129 2020-06-29 Tom de Vries <tdevries@suse.de>
131 * ax.h: Include gdbsupport/debug_agent.h.
133 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
135 * tdesc.cc (struct tdesc_compatible_info): New struct.
136 (tdesc_compatible_info_list): New function.
137 (tdesc_compatible_info_arch_name): New function.
139 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
141 Use std::list to stop pending signal instead of manually-created
143 * linux-low.h: Include <list>.
144 (struct pending_signal): Move here from linux-low.cc.
145 (struct lwp_info) <pending_signals>
146 <pending_signals_to_report>: Update the type.
147 * linux-low.cc (struct pending_signals): Remove.
148 (linux_process_target::delete_lwp)
149 (linux_process_target::add_lwp)
150 (enqueue_one_deferred_signal)
151 (dequeue_one_deferred_signal)
152 (enqueue_pending_signal)
153 (linux_process_target::resume_one_lwp_throw)
154 (linux_process_target::thread_needs_step_over)
155 (linux_process_target::resume_one_thread)
156 (linux_process_target::proceed_one_lwp): Update the use of pending
159 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
161 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
164 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
166 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
167 * configure.srv: Remove mingw32ce cases.
168 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
169 * win32-low.h (to_back_slashes): Remove.
170 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
172 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
174 * Makefile.in (SFILES): linux-tile-low.cc.
175 * configure.srv: Remove tilegx case.
176 * linux-tile-low.cc: Remove.
178 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
180 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
181 * configure.srv: Remove m32r case.
182 * linux-m32r-low.cc: Remove.
184 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
186 * Makefile.in (SFILES): Remove linux-cris-low.c.
187 * configure.srv: Remove cris cases.
188 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
190 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
192 * Makefile.in (SFILES): Remove linux-bfin-low.c.
193 * configure.srv: Remove bfin case.
194 * linux-bfin-low.cc: Remove.
195 * linux-low.cc: Remove BFIN-conditional code.
197 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
199 * configure: Re-generate.
200 * configure.ac: Remove srv_qnx test.
201 * configure.srv: Remove nto case.
202 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
203 * remote-utils.c: Remove __QNX__-guarded code.
205 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
207 * configure: Re-generate.
208 * configure.ac: Remove srv_lynxos test.
209 * configure.srv: Remove lynxos cases.
210 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
213 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
215 * README: Fix a few outdated or incoherent things.
217 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
219 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
220 (win32_clear_inferiors): Use open_process_used.
221 (get_child_debug_event): Likewise.
223 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
226 * linux-low.cc (linux_process_target::create_inferior),
227 lynx-low.cc (lynx_process_target::create_inferior),
228 win32-low.cc (win32_process_target::create_inferior): Use
229 construct_inferior_arguments instead of stringify_argv
230 to get string representation which properly escapes
232 * server.cc (handle_v_run): Just pass empty program arg
233 as such, since any further processing is now handled via
234 construct_inferior_arguments.
236 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
238 * nto-low.cc (nto_process_target::create_inferior): Pass
239 argv to spawnp function as char **.
241 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
243 * server.cc (captured_main), (handle_v_run): No longer
244 insert extra NULL element to args vector.
246 2020-05-23 Pedro Alves <palves@redhat.com>
248 * gdb-safe-ctype.h: New.
250 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
252 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
253 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
254 (ia64_target::low_breakpoint_at): Ditto.
256 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
258 * win32-i386-low.cc (i386_supports_z_point_type): Handle
259 Z_PACKET_HW_BP z_type.
260 (i386_insert_point): Handle raw_bkpt_type type.
261 (i386_remove_point): Likewise.
263 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
265 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
267 * win32-arm-low.cc (arm_num_regs): New function.
268 (struct win32_target_ops): Use arm_num_regs.
269 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
271 (i386_get_thread_context): Likewise.
272 (i386_prepare_to_resume): Likewise.
273 (i386_thread_added): Likewise.
274 (i386_single_step): Likewise.
275 (i386_fetch_inferior_register): Likewise.
276 (i386_store_inferior_register): Likewise.
277 (i386_arch_setup): Likewise.
278 (i386_win32_num_regs): New function.
279 (struct win32_target_ops): Use i386_win32_num_regs.
280 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
282 (win32_require_context): Likewise.
283 (child_add_thread): Likewise.
284 (do_initial_child_stuff): Likewise.
285 (continue_one_thread): Likewise.
286 (win32_process_target::resume): Likewise.
287 (load_psapi): Likewise.
288 (win32_add_all_dlls): Likewise.
289 (maybe_adjust_pc): Likewise.
290 (win32_process_target::qxfer_siginfo): Likewise.
291 (initialize_low): Likewise.
292 * win32-low.h (struct win32_target_ops): Change num_regs to
295 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
297 * configure.ac: Remove check for fs_base/gs_base in
299 * configure: Re-generate.
300 * config.in: Re-generate.
301 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
302 x86_store_gregset): Adjust.
304 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
306 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
309 2020-04-16 Tom Tromey <tromey@adacore.com>
311 * win32-low.cc (windows_nat::handle_access_violation): New
314 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
316 * win32-low.cc (get_child_debug_event): Fix format string warning.
318 2020-04-13 Tom Tromey <tom@tromey.com>
320 * server.h (gdb_fildes_t): Remove typedef.
321 * remote-utils.c (remote_desc, list_desc): Now int.
322 (INVALID_DESCRIPTOR): Remove.
323 (gdb_connected, remote_close)
324 (check_remote_input_interrupt_request): Update.
325 * utils.h (pfildes): Don't declare.
326 * utils.c (pfildes): Remove.
328 2020-04-13 Tom Tromey <tom@tromey.com>
330 * server.h (handle_serial_event, handle_target_event): Update.
331 * server.c: Don't call initialize_event_loop.
332 (keep_processing_events): New global.
333 (handle_serial_event): Return void. Set keep_processing_events.
334 (handle_target_event): Return void.
335 (start_event_loop): Move from event-loop.c. Rewrite.
336 * remote-utils.c (handle_accept_event): Return void.
337 (reset_readchar): Use delete_timer.
338 (process_remaining): Return void.
339 (reschedule): Use create_timer.
340 * event-loop.h: Remove.
341 * event-loop.cc: Remove.
342 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
344 2020-04-13 Tom Tromey <tom@tromey.com>
346 * server.c (invoke_async_signal_handlers)
347 (check_async_event_handlers, flush_streams, gdb_select): New
350 2020-04-13 Tom Tromey <tom@tromey.com>
352 * configure: Rebuild.
353 * config.in: Rebuild.
355 2020-04-08 Tom Tromey <tromey@adacore.com>
358 * win32-low.c (child_continue): Call matching_pending_stop.
359 (get_child_debug_event): Call fetch_pending_stop. Push pending
362 2020-04-08 Tom Tromey <tromey@adacore.com>
364 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
365 (win32_process_target::supports_stopped_by_sw_breakpoint):
367 * win32-low.c (win32_supports_z_point_type): Always handle
369 (win32_insert_point): Call insert_memory_breakpoint when needed.
370 (win32_remove_point): Call remove_memory_breakpoint when needed.
371 (win32_process_target::stopped_by_sw_breakpoint)
372 (win32_process_target::supports_stopped_by_sw_breakpoint): New
374 (win32_target_ops): Update.
375 (maybe_adjust_pc): New function.
376 (win32_wait): Call maybe_adjust_pc.
378 2020-04-08 Tom Tromey <tromey@adacore.com>
380 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
382 * win32-i386-low.c (the_low_target): Update.
383 * win32-arm-low.c (the_low_target): Update.
385 2020-04-08 Tom Tromey <tromey@adacore.com>
387 * win32-low.h (win32_process_target::read_pc)
388 (win32_process_target::write_pc): Declare.
389 * win32-low.c (win32_process_target::read_pc)
390 (win32_process_target::write_pc): New methods.
391 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
393 (the_low_target): Update.
394 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
396 (the_low_target): Update.
398 2020-04-08 Tom Tromey <tromey@adacore.com>
400 * win32-low.c (win32_kill, get_child_debug_event): Use
401 wait_for_debug_event.
403 2020-04-08 Tom Tromey <tromey@adacore.com>
405 * win32-low.c (child_continue): Call continue_last_debug_event.
407 2020-04-08 Tom Tromey <tromey@adacore.com>
409 * win32-low.c (handle_exception): Remove.
410 (windows_nat::handle_ms_vc_exception): New function.
411 (get_child_debug_event): Add "continue_status" parameter.
413 (win32_wait): Update.
415 2020-04-08 Tom Tromey <tromey@adacore.com>
417 * win32-low.c (windows_nat::handle_load_dll): Rename from
418 handle_load_dll. No longer static.
419 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
422 2020-04-08 Tom Tromey <tromey@adacore.com>
424 * win32-low.c (handle_output_debug_string): Add parameter. Change
426 (win32_kill, get_child_debug_event): Update.
428 2020-04-08 Tom Tromey <tromey@adacore.com>
430 * win32-low.c (current_process_handle, current_process_id)
431 (main_thread_id, last_sig, current_event, siginfo_er): Move to
434 2020-04-08 Tom Tromey <tromey@adacore.com>
436 * win32-low.c (get_image_name): Remove.
437 (handle_load_dll): Update.
439 2020-04-08 Tom Tromey <tromey@adacore.com>
441 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
442 No longer static. Change parameters.
443 (child_add_thread, child_fetch_inferior_registers)
444 (child_store_inferior_registers, win32_resume)
445 (win32_get_tib_address): Update.
447 2020-04-08 Tom Tromey <tromey@adacore.com>
449 * win32-low.h (struct win32_target_ops): Use qualified names where
451 * win32-i386-low.c: Add "using namespace".
452 * win32-low.c: Add "using namespace".
453 * win32-arm-low.c: Add "using namespace".
455 2020-04-08 Tom Tromey <tromey@adacore.com>
457 * win32-low.c (delete_thread_info): Don't call CloseHandle.
459 2020-04-08 Tom Tromey <tromey@adacore.com>
461 * win32-low.c (win32_require_context, suspend_one_thread): Use
462 windows_thread_info::suspend.
463 (continue_one_thread): Use windows_thread_info::resume.
464 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
466 2020-04-08 Tom Tromey <tromey@adacore.com>
468 * win32-i386-low.c (update_debug_registers)
469 (i386_prepare_to_resume, i386_thread_added): Update.
471 2020-04-08 Tom Tromey <tromey@adacore.com>
473 * win32-low.c (child_add_thread): Use new.
474 (delete_thread_info): Use delete.
476 2020-04-08 Tom Tromey <tromey@adacore.com>
478 * win32-low.h (struct windows_thread_info): Remove.
480 2020-04-08 Tom Tromey <tromey@adacore.com>
482 * win32-low.h (struct windows_thread_info): Rename from
483 win32_thread_info. Remove typedef.
484 (struct win32_target_ops, win32_require_context): Update.
485 * win32-low.c (win32_get_thread_context)
486 (win32_set_thread_context, win32_prepare_to_resume)
487 (win32_require_context, thread_rec, child_add_thread)
488 (delete_thread_info, continue_one_thread)
489 (child_fetch_inferior_registers, child_store_inferior_registers)
490 (win32_resume, suspend_one_thread, win32_get_tib_address):
492 * win32-i386-low.c (update_debug_registers)
493 (win32_get_current_dr, i386_get_thread_context)
494 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
495 (i386_fetch_inferior_register, i386_store_inferior_register):
497 * win32-arm-low.c (arm_get_thread_context)
498 (arm_fetch_inferior_register, arm_store_inferior_register):
501 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
503 * linux-low.h (struct linux_target_ops): Remove.
504 (the_low_target): Remove.
505 * linux-x86-low.cc (the_low_target): Remove.
506 * linux-aarch64-low.cc (the_low_target): Ditto.
507 * linux-arm-low.cc (the_low_target): Ditto.
508 * linux-bfin-low.cc (the_low_target): Ditto.
509 * linux-cris-low.cc (the_low_target): Ditto.
510 * linux-crisv32-low.cc (the_low_target): Ditto.
511 * linux-ia64-low.cc (the_low_target): Ditto.
512 * linux-m32r-low.cc (the_low_target): Ditto.
513 * linux-m68k-low.cc (the_low_target): Ditto.
514 * linux-mips-low.cc (the_low_target): Ditto.
515 * linux-nios2-low.cc (the_low_target): Ditto.
516 * linux-ppc-low.cc (the_low_target): Ditto.
517 * linux-riscv-low.cc (the_low_target): Ditto.
518 * linux-s390-low.cc (the_low_target): Ditto.
519 * linux-sh-low.cc (the_low_target): Ditto.
520 * linux-sparc-low.cc (the_low_target): Ditto.
521 * linux-tic6x-low.cc (the_low_target): Ditto.
522 * linux-tile-low.cc (the_low_target): Ditto.
523 * linux-xtensa-low.cc (the_low_target): Ditto.
525 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
527 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
528 linux target define the op by overriding the declaration in
529 process_stratum_target.
531 * linux-low.h (struct linux_target_ops): Remove the op.
532 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
533 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
534 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
535 (x86_get_ipa_tdesc_idx): Turn into...
536 (x86_target::get_ipa_tdesc_idx): ...this.
537 (the_low_target): Remove the op field.
538 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
539 (ppc_get_ipa_tdesc_idx): Turn into...
540 (ppc_target::get_ipa_tdesc_idx): ...this.
541 (the_low_target): Remove the op field.
542 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
543 (s390_get_ipa_tdesc_idx): Turn into...
544 (s390_target::get_ipa_tdesc_idx): ...this.
545 (the_low_target): Remove the op field.
547 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
549 Turn the 'get_syscall_trapinfo' linux target op into a method
550 of process_stratum_target.
552 * linux-low.h (struct linux_target_ops): Remove the op.
553 (class linux_process_target) <get_syscall_trapinfo>
554 <gdb_catch_this_syscall>
555 <low_supports_catch_syscall>
556 <low_get_syscall_trapinfo>: Declare.
557 * linux-low.cc (get_syscall_trapinfo): Turn into...
558 (linux_process_target::get_syscall_trapinfo): ...this.
559 (linux_process_target::low_get_syscall_trapinfo): Define.
560 (gdb_catch_this_syscall_p): Turn into...
561 (linux_process_target::gdb_catch_this_syscall): ...this.
562 (linux_process_target::low_supports_catch_syscall): Define.
564 Update the callers below.
566 (linux_process_target::wait_1)
567 (linux_process_target::supports_catch_syscall)
569 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
570 <low_get_syscall_trapinfo>: Declare.
571 (x86_target::low_supports_catch_syscall): Define.
572 (x86_get_syscall_trapinfo): Turn into...
573 (x86_target::low_get_syscall_trapinfo): ...this.
574 (the_low_target): Remove the op field.
575 * linux-aarch64-low.cc (class aarch64_target)
576 <low_supports_catch_syscall>
577 <low_get_syscall_trapinfo>: Declare.
578 (aarch64_target::low_supports_catch_syscall): Define.
579 (aarch64_get_syscall_trapinfo): Turn into...
580 (aarch64_target::low_get_syscall_trapinfo): ...this.
581 (the_low_target): Remove the op field.
582 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
583 <low_get_syscall_trapinfo>: Declare.
584 (arm_target::low_supports_catch_syscall): Define.
585 (arm_get_syscall_trapinfo): Turn into...
586 (arm_target::low_get_syscall_trapinfo): ...this.
587 (the_low_target): Remove the op field.
588 * linux-ppc-low.cc (the_low_target): Remove the op field.
589 * linux-s390-low.cc (the_low_target): Remove the op field.
591 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
593 Remove the 'supports_hardware_single_step' linux target op and
594 override the process_stratum_target's op definition in
595 linux_process_target to return true.
597 * linux-low.h (struct linux_target_ops): Remove the op.
598 (class linux_process_target) <finish_step_over>
599 <maybe_hw_step>: Declare.
600 * linux-low.cc (can_hardware_single_step): Remove.
601 (maybe_hw_step): Turn into...
602 (linux_process_target::maybe_hw_step): ...this.
603 (finish_step_over): Turn into...
604 (linux_process_target::finish_step_over): ...this.
605 (linux_process_target::supports_hardware_single_step): Update
608 Update the callers below.
610 (linux_process_target::single_step)
611 (linux_process_target::resume_one_lwp_throw)
613 * linux-arm-low.cc (class arm_target)
614 <supports_hardware_single_step>: Declare.
615 (arm_supports_hardware_single_step): Turn into...
616 (arm_target::supports_hardware_single_step): ...this.
617 (the_low_target): Remove the op field.
618 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
619 (the_low_target): Remove the op field.
620 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
622 (the_low_target): Remove the op field.
623 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
624 (the_low_target): Remove the op field.
625 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
626 (the_low_target): Remove the op field.
627 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
628 (the_low_target): Remove the op field.
629 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
630 (the_low_target): Remove the op field.
631 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
632 (the_low_target): Remove the op field.
633 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
634 (the_low_target): Remove the op field.
635 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
636 (the_low_target): Remove the op field.
637 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
638 (the_low_target): Remove the op field.
639 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
640 (the_low_target): Remove the op field.
641 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
643 (the_low_target): Remove the op field.
645 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
647 Turn the 'supports_range_stepping' linux target op into a method
648 of linux_process_target.
650 * linux-low.h (struct linux_target_ops): Remove the op.
651 (class linux_process_target) <low_supports_range_stepping>: Declare.
652 * linux-low.cc (linux_process_target::low_supports_range_stepping):
654 (linux_process_target::supports_range_stepping): Update the call
656 * linux-x86-low.cc (class x86_target)
657 <low_supports_range_stepping>: Declare.
658 (x86_supports_range_stepping): Turn into...
659 (x86_target::low_supports_range_stepping): ...this.
660 (the_low_target): Remove the op field.
661 * linux-aarch64-low.cc (class aarch64_target)
662 <low_supports_range_stepping>: Declare.
663 (aarch64_supports_range_stepping): Turn into...
664 (aarch64_target::low_supports_range_stepping): ...this.
665 (the_low_target): Remove the op field.
666 * linux-arm-low.cc (the_low_target): Remove the op field.
667 * linux-bfin-low.cc (the_low_target): Ditto.
668 * linux-crisv32-low.cc (the_low_target): Ditto.
669 * linux-m32r-low.cc (the_low_target): Ditto.
670 * linux-m68k-low.cc (the_low_target): Ditto.
671 * linux-ppc-low.cc (the_low_target): Ditto.
672 * linux-s390-low.cc (the_low_target): Ditto.
673 * linux-sh-low.cc (the_low_target): Ditto.
674 * linux-tic6x-low.cc (the_low_target): Ditto.
675 * linux-tile-low.cc (the_low_target): Ditto.
676 * linux-xtensa-low.cc (the_low_target): Ditto.
678 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
680 Remove the 'emit_ops' linux target ops and let the concrete
681 linux target define the op by overriding the declaration of
682 process_stratum_target.
684 * linux-low.h (struct linux_target_ops): Remove the op.
685 (class linux_process_target) <emit_ops>: Remove.
686 * linux-low.cc (linux_process_target::emit_ops): Remove.
687 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
688 (x86_emit_ops): Turn into...
689 (x86_target::emit_ops): ...this.
690 (the_low_target): Remove the op field.
691 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
692 (aarch64_emit_ops): Turn into...
693 (aarch64_target::emit_ops): ...this.
694 (the_low_target): Remove the op field.
695 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
696 (ppc_emit_ops): Turn into...
697 (ppc_target::emit_ops): ...this.
698 (the_low_target): Remove the op field.
699 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
700 (s390_emit_ops): Turn into...
701 (s390_target::emit_ops): ...this.
702 (the_low_target): Remove the op field.
703 * linux-arm-low.cc (the_low_target): Remove the op field.
704 * linux-bfin-low.cc (the_low_target): Ditto.
705 * linux-crisv32-low.cc (the_low_target): Ditto.
706 * linux-m32r-low.cc (the_low_target): Ditto.
707 * linux-m68k-low.cc (the_low_target): Ditto.
708 * linux-sh-low.cc (the_low_target): Ditto.
709 * linux-tic6x-low.cc (the_low_target): Ditto.
710 * linux-tile-low.cc (the_low_target): Ditto.
711 * linux-xtensa-low.cc (the_low_target): Ditto.
713 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
715 Remove the 'install_fast_tracepoint_jump_pad' and
716 'get_min_fast_tracepoint_insn_len' linux target ops to let the
717 concrete linux target define the ops by overriding the declarations
718 of process_stratum_target.
720 * linux-low.h (struct linux_target_ops): Remove the ops.
721 (class linux_process_target) <supports_fast_tracepoints>
722 <install_fast_tracepoint_jump_pad>
723 <get_min_fast_tracepoint_insn_len>: Remove.
724 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
725 (linux_process_target::install_fast_tracepoint_jump_pad)
726 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
727 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
728 <install_fast_tracepoint_jump_pad>
729 <get_min_fast_tracepoint_insn_len>: Declare.
730 (x86_target::supports_fast_tracepoints): Define.
731 (x86_install_fast_tracepoint_jump_pad): Turn into...
732 (x86_target::install_fast_tracepoint_jump_pad): ...this.
733 (x86_get_min_fast_tracepoint_insn_len): Turn into...
734 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
735 (the_low_target): Remove the op fields.
736 * linux-aarch64-low.cc (class aarch64_target)
737 <supports_fast_tracepoints>
738 <install_fast_tracepoint_jump_pad>
739 <get_min_fast_tracepoint_insn_len>: Declare.
740 (aarch64_target::supports_fast_tracepoints): Define.
741 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
742 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
743 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
744 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
745 (the_low_target): Remove the op fields.
746 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
747 <install_fast_tracepoint_jump_pad>
748 <get_min_fast_tracepoint_insn_len>: Declare.
749 (ppc_target::supports_fast_tracepoints): Define.
750 (ppc_install_fast_tracepoint_jump_pad): Turn into...
751 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
752 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
753 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
754 (the_low_target): Remove the op fields.
755 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
756 <install_fast_tracepoint_jump_pad>
757 <get_min_fast_tracepoint_insn_len>: Declare.
758 (s390_target::supports_fast_tracepoints): Define.
759 (s390_install_fast_tracepoint_jump_pad): Turn into...
760 (s390_target::install_fast_tracepoint_jump_pad): ...this.
761 (s390_get_min_fast_tracepoint_insn_len): Turn into...
762 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
763 (the_low_target): Remove the op fields.
764 * linux-arm-low.cc (the_low_target): Remove the op fields.
765 * linux-bfin-low.cc (the_low_target): Ditto.
766 * linux-crisv32-low.cc (the_low_target): Ditto.
767 * linux-m32r-low.cc (the_low_target): Ditto.
768 * linux-m68k-low.cc (the_low_target): Ditto.
769 * linux-sh-low.cc (the_low_target): Ditto.
770 * linux-tic6x-low.cc (the_low_target): Ditto.
771 * linux-tile-low.cc (the_low_target): Ditto.
772 * linux-xtensa-low.cc (the_low_target): Ditto.
774 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
776 Turn the 'get_thread_area' linux target op into a method of
777 process_stratum_target.
779 * linux-low.h (struct linux_target_ops): Remove the op.
780 (class linux_process_target) <stuck_in_jump_pad>
781 <linux_fast_tracepoint_collecting>
782 <low_get_thread_area>: Declare.
783 * linux-low.cc (supports_fast_tracepoints): Remove.
784 (linux_fast_tracepoint_collecting): Turn into...
785 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
786 (linux_process_target::low_get_thread_area): Define.
787 (stuck_in_jump_pad_callback): Turn into...
788 (linux_process_target::stuck_in_jump_pad): ...this.
790 Update the caller below.
792 (linux_process_target::stabilize_threads)
794 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
796 (x86_get_thread_area): Turn into...
797 (x86_target::low_get_thread_area): ...this.
798 (the_low_target): Remove the op field.
799 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
801 (aarch64_get_thread_area): Turn into...
802 (aarch64_target::low_get_thread_area): ...this.
803 (the_low_target): Remove the op field.
804 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
806 (ppc_get_thread_area): Turn into...
807 (ppc_target::low_get_thread_area): ...this.
808 (the_low_target): Remove the op field.
809 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
811 (s390_get_thread_area): Turn into...
812 (s390_target::low_get_thread_area): ...this.
813 (the_low_target): Remove the op field.
814 * linux-arm-low.cc (the_low_target): Remove the op field.
815 * linux-bfin-low.cc (the_low_target): Ditto.
816 * linux-crisv32-low.cc (the_low_target): Ditto.
817 * linux-m32r-low.cc (the_low_target): Ditto.
818 * linux-m68k-low.cc (the_low_target): Ditto.
819 * linux-sh-low.cc (the_low_target): Ditto.
820 * linux-tic6x-low.cc (the_low_target): Ditto.
821 * linux-tile-low.cc (the_low_target): Ditto.
822 * linux-xtensa-low.cc (the_low_target): Ditto.
824 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
826 Remote the 'supports_tracepoints' linux target op and let the
827 concrete linux target define it by overriding the op declared in
828 process_stratum_target.
830 * linux-low.h (struct linux_target_ops): Remove the op.
831 (class linux_process_target) <supports_tracepoints>: Remove.
832 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
833 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
835 (x86_supports_tracepoints): Turn into...
836 (x86_target::supports_tracepoints): ...this.
837 (the_low_target): Remove the op field.
838 * linux-aarch64-low.cc (class aarch64_target)
839 <supports_tracepoints>: Declare.
840 (aarch64_supports_tracepoints): Turn into...
841 (aarch64_target::supports_tracepoints): ...this.
842 (the_low_target): Remove the op field.
843 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
845 (ppc_supports_tracepoints): Turn into...
846 (ppc_target::supports_tracepoints): ...this.
847 (the_low_target): Remove the op field.
848 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
850 (s390_supports_tracepoints): Turn into...
851 (s390_target::supports_tracepoints): ...this.
852 (the_low_target): Remove the op field.
853 * linux-arm-low.cc (the_low_target): Remove the op field.
854 * linux-bfin-low.cc (the_low_target): Ditto.
855 * linux-crisv32-low.cc (the_low_target): Ditto.
856 * linux-m32r-low.cc (the_low_target): Ditto.
857 * linux-m68k-low.cc (the_low_target): Ditto.
858 * linux-sh-low.cc (the_low_target): Ditto.
859 * linux-tic6x-low.cc (the_low_target): Ditto.
860 * linux-tile-low.cc (the_low_target): Ditto.
861 * linux-xtensa-low.cc (the_low_target): Ditto.
863 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
865 Remove the 'process_qsupported' linux target op and let a concrete
866 linux target define the op by overriding the op declaration in
867 process_stratum_target.
869 * linux-low.h (struct linux_target_ops): Remove the op.
870 (class linux_process_target) <process_qsupported>: Remove.
871 * linux-low.cc (linux_process_target::process_qsupported): Remove.
872 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
873 (x86_linux_process_qsupported): Turn into...
874 (x86_target::process_qsupported): ...this.
875 (the_low_target): Remove the op field.
876 * linux-aarch64-low.cc (the_low_target): Remove the op
878 * linux-arm-low.cc (the_low_target): Ditto.
879 * linux-bfin-low.cc (the_low_target): Ditto.
880 * linux-crisv32-low.cc (the_low_target): Ditto.
881 * linux-m32r-low.cc (the_low_target): Ditto.
882 * linux-m68k-low.cc (the_low_target): Ditto.
883 * linux-ppc-low.cc (the_low_target): Ditto.
884 * linux-s390-low.cc (the_low_target): Ditto.
885 * linux-sh-low.cc (the_low_target): Ditto.
886 * linux-tic6x-low.cc (the_low_target): Ditto.
887 * linux-tile-low.cc (the_low_target): Ditto.
888 * linux-xtensa-low.cc (the_low_target): Ditto.
890 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
892 Turn the 'prepare_to_resume' linux target op into a method of
893 linux_process_target.
895 * linux-low.h (struct linux_target_ops): Remove the op.
896 (class linux_process_target) <low_prepare_to_resume>: Declare.
897 * linux-low.cc (linux_process_target::low_prepare_to_resume):
900 Update the callers below:
902 (linux_process_target::resume_one_lwp_throw)
903 (linux_process_target::low_prepare_to_resume)
905 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
907 (x86_target::low_prepare_to_resume): Define.
908 (the_low_target): Remove the op field.
909 * linux-aarch64-low.cc (class aarch64_target)
910 <low_prepare_to_resume>: Declare.
911 (aarch64_target::low_prepare_to_resume): Define.
912 (the_low_target): Remove the op field.
913 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
915 (arm_prepare_to_resume): Turn into...
916 (arm_target::low_prepare_to_resume): ...this.
917 (the_low_target): Remove the op field.
918 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
920 (mips_linux_prepare_to_resume): Turn into...
921 (mips_target::low_prepare_to_resume): ...this.
922 (the_low_target): Remove the op field.
923 * linux-bfin-low.cc (the_low_target): Remove the op field.
924 * linux-crisv32-low.cc (the_low_target): Ditto.
925 * linux-m32r-low.cc (the_low_target): Ditto.
926 * linux-m68k-low.cc (the_low_target): Ditto.
927 * linux-ppc-low.cc (the_low_target): Ditto.
928 * linux-s390-low.cc (the_low_target): Ditto.
929 * linux-sh-low.cc (the_low_target): Ditto.
930 * linux-tic6x-low.cc (the_low_target): Ditto.
931 * linux-tile-low.cc (the_low_target): Ditto.
932 * linux-xtensa-low.cc (the_low_target): Ditto.
934 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
936 Turn the 'new_process', 'delete_process', 'new_thread',
937 'delete_thread', and 'new_fork' linux target ops into methods
938 of linux_process_target.
940 * linux-low.h (struct linux_target_ops): Remove the ops.
941 (class linux_process_target) <add_linux_process>
946 <check_zombie_leaders>
952 <low_new_fork>: Declare.
953 * linux-low.cc (delete_lwp): Turn into...
954 (linux_process_target::delete_lwp): ...this.
955 (linux_process_target::low_delete_thread): Define.
956 (linux_add_process): Turn into...
957 (linux_process_target::add_linux_process): ...this.
958 (linux_process_target::low_new_process): Define.
959 (linux_process_target::low_delete_process): Define.
960 (linux_process_target::low_new_fork): Define.
961 (add_lwp): Turn into...
962 (linux_process_target::add_lwp): ...this.
963 (linux_process_target::low_new_thread): Define.
964 (linux_attach_lwp): Turn into...
965 (linux_process_target::attach_lwp): ...this.
966 (linux_detach_one_lwp): Turn into...
967 (linux_process_target::detach_one_lwp): ...this.
968 (linux_detach_lwp_callback): Remove and inline...
969 (linux_process_target::detach): ...here.
970 (check_zombie_leaders): Turn into...
971 (linux_process_target::check_zombie_leaders): ...this.
972 (filter_exit_event): Turn into...
973 (linux_process_target::filter_exit_event): ...this.
975 Update the callers below.
977 (linux_process_target::handle_extended_wait)
978 (linux_process_target::create_inferior)
979 (attach_proc_task_lwp_callback)
980 (linux_process_target::attach)
981 (linux_process_target::detach)
982 (linux_process_target::mourn)
983 * thread-db.cc (attach_thread)
985 * linux-x86-low.cc (class x86_target) <low_new_process>
989 <low_new_fork>: Declare.
990 (x86_linux_new_process): Turn into...
991 (x86_target::low_new_process): ...this.
992 (x86_linux_delete_process): Turn into...
993 (x86_target::low_delete_process): ...this.
994 (x86_target::low_new_thread): Define.
995 (x86_target::low_delete_thread): Define.
996 (x86_linux_new_fork): Turn into...
997 (x86_target::low_new_fork): ...this.
998 (the_low_target): Remove the op fields.
999 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1000 <low_delete_process>
1003 <low_new_fork>: Declare.
1004 (aarch64_linux_new_process): Turn into...
1005 (aarch64_target::low_new_process): ...this.
1006 (aarch64_linux_delete_process): Turn into...
1007 (aarch64_target::low_delete_process): ...this.
1008 (aarch64_target::low_new_thread): Define.
1009 (aarch64_target::low_delete_thread): Define.
1010 (aarch64_linux_new_fork): Turn into...
1011 (aarch64_target::low_new_fork): ...this.
1012 (the_low_target): Remove the op fields.
1013 * linux-arm-low.cc (class arm_target) <low_new_process>
1014 <low_delete_process>
1017 <low_new_fork>: Declare.
1018 (arm_new_process): Turn into...
1019 (arm_target::low_new_process): ...this.
1020 (arm_delete_process): Turn into...
1021 (arm_target::low_delete_process): ...this.
1022 (arm_new_thread): Turn into...
1023 (arm_target::low_new_thread): ...this.
1024 (arm_delete_thread): Turn into...
1025 (arm_target::low_delete_thread): ...this.
1026 (arm_new_fork): Turn into...
1027 (arm_target::low_new_fork): ...this.
1028 (the_low_target): Remove the op fields.
1029 * linux-mips-low.cc (class mips_target) <low_new_process>
1030 <low_delete_process>
1033 <low_new_fork>: Declare.
1034 (mips_linux_new_process): Turn into...
1035 (mips_target::low_new_process): ...this.
1036 (mips_linux_delete_process): Turn into...
1037 (mips_target::low_delete_process): ...this.
1038 (mips_linux_new_thread): Turn into...
1039 (mips_target::low_new_thread): ...this.
1040 (mips_linux_delete_thread): Turn into...
1041 (mips_target::low_delete_thread): ...this.
1042 (mips_linux_new_fork): Turn into...
1043 (mips_target::low_new_fork): ...this.
1044 (the_low_target): Remove the op fields.
1045 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1046 * linux-crisv32-low.cc (the_low_target): Ditto.
1047 * linux-m32r-low.cc (the_low_target): Ditto.
1048 * linux-m68k-low.cc (the_low_target): Ditto.
1049 * linux-ppc-low.cc (the_low_target): Ditto.
1050 * linux-s390-low.cc (the_low_target): Ditto.
1051 * linux-sh-low.cc (the_low_target): Ditto.
1052 * linux-tic6x-low.cc (the_low_target): Ditto.
1053 * linux-tile-low.cc (the_low_target): Ditto.
1054 * linux-xtensa-low.cc (the_low_target): Ditto.
1056 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1058 Turn the 'siginfo_fixup' linux target op into a method of
1059 linux_process_target.
1061 * linux-low.h (struct linux_target_ops): Remove the op.
1062 (class linux_process_target) <siginfo_fixup>
1063 <low_siginfo_fixup>: Declare.
1064 * linux-low.cc (siginfo_fixup): Turn into...
1065 (linux_process_target::siginfo_fixup): ...this.
1066 (linux_process_target::low_siginfo_fixup): Define.
1067 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1068 (x86_siginfo_fixup): Turn into...
1069 (x86_target::low_siginfo_fixup): ...this.
1070 (the_low_target): Remove the op field.
1071 * linux-aarch64-low.cc (class aarch64_target):
1072 <low_siginfo_fixup>: Declare.
1073 (aarch64_linux_siginfo_fixup): Turn into...
1074 (aarch64_target::low_siginfo_fixup): ...this.
1075 (the_low_target): Remove the op field.
1076 * linux-arm-low.cc (the_low_target): Remove the op field.
1077 * linux-bfin-low.cc (the_low_target): Ditto.
1078 * linux-crisv32-low.cc (the_low_target): Ditto.
1079 * linux-m32r-low.cc (the_low_target): Ditto.
1080 * linux-m68k-low.cc (the_low_target): Ditto.
1081 * linux-mips-low.cc (the_low_target): Ditto.
1082 * linux-ppc-low.cc (the_low_target): Ditto.
1083 * linux-s390-low.cc (the_low_target): Ditto.
1084 * linux-sh-low.cc (the_low_target): Ditto.
1085 * linux-tic6x-low.cc (the_low_target): Ditto.
1086 * linux-tile-low.cc (the_low_target): Ditto.
1087 * linux-xtensa-low.cc (the_low_target): Ditto.
1089 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1091 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1092 linux target ops into methods of linux_process_target.
1094 * linux-low.h (struct linux_target_ops): Remove the ops.
1095 (class linux_process_target) <low_collect_ptrace_register>
1096 <low_store_ptrace_register>: Declare.
1097 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1098 (linux_process_target::low_supply_ptrace_register): Define.
1100 Update the callers below.
1102 (linux_process_target::fetch_register)
1103 (linux_process_target::store_register)
1105 * linux-x86-low.cc (the_low_target): Remove the op fields.
1106 * linux-aarch64-low.cc (the_low_target): Ditto.
1107 * linux-arm-low.cc (the_low_target): Ditto.
1108 * linux-bfin-low.cc (the_low_target): Ditto.
1109 * linux-crisv32-low.cc (the_low_target): Ditto.
1110 * linux-m32r-low.cc (the_low_target): Ditto.
1111 * linux-m68k-low.cc (the_low_target): Ditto.
1112 * linux-sh-low.cc (the_low_target): Ditto.
1113 * linux-sparc-low.cc (the_low_target): Ditto.
1114 * linux-tic6x-low.cc (the_low_target): Ditto.
1115 * linux-tile-low.cc (the_low_target): Ditto.
1116 * linux-xtensa-low.cc (the_low_target): Ditto.
1117 * linux-mips-low.cc (class mips_target)
1118 <low_collect_ptrace_register>
1119 <low_supply_ptrace_register>: Declare.
1120 (mips_collect_ptrace_register): Turn into ...
1121 (mips_target::low_collect_ptrace_register): ...this.
1122 (mips_supply_ptrace_register): Turn into...
1123 (mips_target::low_supply_ptrace_register): ...this.
1124 (the_low_target): Remove the op fields.
1125 * linux-ppc-low.cc (class ppc_target)
1126 <low_collect_ptrace_register>
1127 <low_supply_ptrace_register>: Declare.
1128 (ppc_collect_ptrace_register): Turn into ...
1129 (ppc_target::low_collect_ptrace_register): ...this.
1130 (ppc_supply_ptrace_register): Turn into ...
1131 (ppc_target::low_supply_ptrace_register): ...this.
1132 (ppc_fill_gregset): Update for the calls to
1133 low_collect_ptrace_register.
1134 (the_low_target): Remove the op fields.
1135 * linux-s390-low.cc (class s390_target)
1136 <low_collect_ptrace_register>
1137 <low_supply_ptrace_register>: Declare.
1138 (s390_collect_ptrace_register): Turn into ...
1139 (s390_target::low_collect_ptrace_register): ...this.
1140 (s390_supply_ptrace_register): Turn into ...
1141 (s390_target::low_supply_ptrace_register): ...this.
1142 (s390_fill_gregset): Update for the calls to
1143 low_collect_ptrace_register.
1144 (the_low_target): Remove the op fields.
1146 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1148 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1149 target ops into methods of linux_process_target.
1151 * linux-low.h (struct linux_target_ops): Remove the ops.
1152 (class linux_process_target) <check_stopped_by_watchpoint>
1153 <low_stopped_by_watchpoint>
1154 <low_stopped_data_address>: Declare.
1155 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1156 (linux_process_target::check_stopped_by_watchpoint): ...this.
1157 (linux_process_target::low_stopped_by_watchpoint): Define.
1158 (linux_process_target::low_stopped_data_address): Define.
1159 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1160 <low_stopped_data_address>: Declare.
1161 (x86_stopped_by_watchpoint): Turn into...
1162 (x86_target::low_stopped_by_watchpoint): ...this.
1163 (x86_stopped_data_address): Turn into...
1164 (x86_target::low_stopped_data_address): ...this.
1165 (the_low_target): Remove the op fields.
1166 * linux-aarch64-low.cc (class aarch64_target)
1167 <low_stopped_by_watchpoint>
1168 <low_stopped_data_address>: Declare.
1169 (aarch64_stopped_by_watchpoint): Turn into...
1170 (aarch64_target::low_stopped_by_watchpoint): ...this.
1171 (aarch64_stopped_data_address): Turn into...
1172 (aarch64_target::low_stopped_data_address): ...this.
1173 (the_low_target): Remove the op fields.
1174 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1175 <low_stopped_data_address>: Declare.
1176 (arm_stopped_by_watchpoint): Turn into...
1177 (arm_target::low_stopped_by_watchpoint): ...this.
1178 (arm_stopped_data_address): Turn into...
1179 (arm_target::low_stopped_data_address): ...this.
1180 (the_low_target): Remove the op fields.
1181 * linux-crisv32-low.cc (class crisv32_target)
1182 <low_stopped_by_watchpoint>
1183 <low_stopped_data_address>: Declare.
1184 (cris_stopped_by_watchpoint): Turn into...
1185 (crisv32_target::low_stopped_by_watchpoint): ...this.
1186 (cris_stopped_data_address): Turn into...
1187 (crisv32_target::low_stopped_data_address): ...this.
1188 (the_low_target): Remove the op fields.
1189 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1190 <low_stopped_data_address>: Declare.
1191 (mips_stopped_by_watchpoint): Turn into...
1192 (mips_target::low_stopped_by_watchpoint): ...this.
1193 (mips_stopped_data_address): Turn into...
1194 (mips_target::low_stopped_data_address): ...this.
1195 (the_low_target): Remove the op fields.
1196 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1197 * linux-m32r-low.cc (the_low_target): Ditto.
1198 * linux-m68k-low.cc (the_low_target): Ditto.
1199 * linux-ppc-low.cc (the_low_target): Ditto.
1200 * linux-s390-low.cc (the_low_target): Ditto.
1201 * linux-sh-low.cc (the_low_target): Ditto.
1202 * linux-sparc-low.cc (the_low_target): Ditto.
1203 * linux-tic6x-low.cc (the_low_target): Ditto.
1204 * linux-tile-low.cc (the_low_target): Ditto.
1205 * linux-xtensa-low.cc (the_low_target): Ditto.
1207 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1209 Turn the 'insert_point' and 'remove_point' linux target ops into
1210 methods of linux_process_target.
1212 * linux-low.h (struct linux_target_ops): Remove the ops.
1213 (class linux_process_target) <low_insert_point>
1214 <low_remove_point>: Declare.
1215 * linux-low.cc (linux_process_target::low_insert_point)
1216 (linux_process_target::low_remove_point): Define.
1217 (linux_process_target::insert_point)
1218 (linux_process_target::remove_point): Update for calls to
1219 low_insert_point and low_remove_point.
1220 * linux-x86-low.cc (class x86_target) <low_insert_point>
1221 <low_remove_point>: Declare.
1222 (x86_insert_point): Turn into...
1223 (x86_target::low_insert_point): ...this.
1224 (x86_remove_point): Turn into...
1225 (x86_target::low_remove_point): ...this.
1226 (the_low_target): Remove the op fields.
1227 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1228 <low_remove_point>: Declare.
1229 (aarch64_insert_point): Turn into...
1230 (aarch64_target::low_insert_point): ...this.
1231 (aarch64_remove_point): Turn into...
1232 (aarch64_target::low_remove_point): ...this.
1233 (the_low_target): Remove the op fields.
1234 * linux-arm-low.cc (class arm_target) <low_insert_point>
1235 <low_remove_point>: Declare.
1236 (arm_insert_point): Turn into...
1237 (arm_target::low_insert_point): ...this.
1238 (arm_remove_point): Turn into...
1239 (arm_target::low_remove_point): ...this.
1240 (the_low_target): Remove the op fields.
1241 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1242 <low_remove_point>: Declare.
1243 (crisv32_insert_point): Turn into...
1244 (crisv32_target::low_insert_point): ...this.
1245 (crisv32_remove_point): Turn into...
1246 (crisv32_target::low_remove_point): ...this.
1247 (the_low_target): Remove the op fields.
1248 * linux-mips-low.cc (class mips_target) <low_insert_point>
1249 <low_remove_point>: Declare.
1250 (mips_insert_point): Turn into...
1251 (mips_target::low_insert_point): ...this.
1252 (mips_remove_point): Turn into...
1253 (mips_target::low_remove_point): ...this.
1254 (the_low_target): Remove the op fields.
1255 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1256 <low_remove_point>: Declare.
1257 (ppc_insert_point): Turn into...
1258 (ppc_target::low_insert_point): ...this.
1259 (ppc_remove_point): Turn into...
1260 (ppc_target::low_remove_point): ...this.
1261 (the_low_target): Remove the op fields.
1262 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1263 * linux-m32r-low.cc (the_low_target): Ditto.
1264 * linux-m68k-low.cc (the_low_target): Ditto.
1265 * linux-s390-low.cc (the_low_target): Ditto.
1266 * linux-sh-low.cc (the_low_target): Ditto.
1267 * linux-sparc-low.cc (the_low_target): Ditto.
1268 * linux-tic6x-low.cc (the_low_target): Ditto.
1269 * linux-tile-low.cc (the_low_target): Ditto.
1270 * linux-xtensa-low.cc (the_low_target): Ditto.
1272 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1274 Remove the 'supports_z_point_type' linux target op and let the
1275 concrete linux target define it by overriding the op declared in
1276 process_stratum_target.
1278 * linux-low.cc (linux_process_target::supports_z_point_type):
1280 * linux-low.h (struct linux_target_ops): Remove the op.
1281 (class linux_process_target) <supports_z_point_type>: Remove.
1282 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1284 (x86_supports_z_point_type): Turn into...
1285 (x86_target::supports_z_point_type): ...this.
1286 (the_low_target): Remove the op field.
1287 * linux-aarch64-low.cc (class aarch64_target)
1288 <supports_z_point_type>: Declare.
1289 (aarch64_supports_z_point_type): Turn into...
1290 (aarch64_target::supports_z_point_type): ...this.
1291 (the_low_target): Remove the op field.
1292 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1294 (arm_supports_z_point_type): Turn into...
1295 (arm_target::supports_z_point_type): ...this.
1296 (the_low_target): Remove the op field.
1297 * linux-crisv32-low.cc (class crisv32_target)
1298 <supports_z_point_type>: Declare.
1299 (cris_supports_z_point_type): Turn into...
1300 (crisv32_target::supports_z_point_type): ...this.
1301 (the_low_target): Remove the op field.
1302 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1304 (mips_supports_z_point_type): Turn into...
1305 (mips_target::supports_z_point_type): ...this.
1306 (the_low_target): Remove the op field.
1307 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1309 (ppc_supports_z_point_type): Turn into...
1310 (ppc_target::supports_z_point_type): ...this.
1311 (the_low_target): Remove the op field.
1312 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1314 (s390_supports_z_point_type): Turn into...
1315 (s390_target::supports_z_point_type): ...this.
1316 (the_low_target): Remove the op field.
1317 * linux-bfin-low.cc (the_low_target): Remove the op field.
1318 * linux-m32r-low.cc (the_low_target): Ditto.
1319 * linux-m68k-low.cc (the_low_target): Ditto.
1320 * linux-sh-low.cc (the_low_target): Ditto.
1321 * linux-sparc-low.cc (the_low_target): Ditto.
1322 * linux-tic6x-low.cc (the_low_target): Ditto.
1323 * linux-tile-low.cc (the_low_target): Ditto.
1324 * linux-xtensa-low.cc (the_low_target): Ditto.
1326 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1328 Turn the 'breakpoint_at' linux target op into a method of
1329 linux_process_target.
1331 * linux-low.h (struct linux_target_ops): Remove the op.
1332 (class linux_process_target) <low_breakpoint_at>: Declare.
1334 Update the callers below:
1336 * linux-low.cc (linux_process_target::save_stop_reason)
1337 (linux_process_target::thread_still_has_status_pending)
1338 (linux_process_target::wait_1)
1340 * linux-x86-low.cc (class x86_target)
1341 <low_breakpoint_at>: Declare.
1342 (x86_breakpoint_at): Turn into...
1343 (x86_target::low_breakpoint_at): ...this.
1344 (the_low_target): Remove the op field.
1345 * linux-aarch64-low.cc (class aarch64_target)
1346 <low_breakpoint_at>: Declare.
1347 (aarch64_breakpoint_at): Turn into...
1348 (aarch64_target::low_breakpoint_at): ...this.
1349 (the_low_target): Remove the op field.
1350 * linux-arm-low.cc (class arm_target)
1351 <low_breakpoint_at>: Declare.
1352 (arm_target::low_breakpoint_at): Define.
1353 (the_low_target): Remove the op field.
1354 * linux-bfin-low.cc (class bfin_target)
1355 <low_breakpoint_at>: Declare.
1356 (bfin_breakpoint_at): Turn into...
1357 (bfin_target::low_breakpoint_at): ...this.
1358 (the_low_target): Remove the op field.
1359 * linux-cris-low.cc (class cris_target)
1360 <low_breakpoint_at>: Declare.
1361 (cris_breakpoint_at): Turn into...
1362 (cris_target::low_breakpoint_at): ...this.
1363 (the_low_target): Remove the op field.
1364 * linux-crisv32-low.cc (class crisv32_target)
1365 <low_breakpoint_at>: Declare.
1366 (crisv32_breakpoint_at): Turn into...
1367 (crisv32_target::low_breakpoint_at): ...this.
1368 (the_low_target): Remove the op field.
1369 * linux-ia64-low.cc (class ia64_target)
1370 <low_breakpoint_at>: Declare.
1371 (ia64_target::low_breakpoint_at): Define.
1372 * linux-m32r-low.cc (class m32r_target)
1373 <low_breakpoint_at>: Declare.
1374 (m32r_breakpoint_at): Turn into...
1375 (m32r_target::low_breakpoint_at): ...this.
1376 (the_low_target): Remove the op field.
1377 * linux-m68k-low.cc (class m68k_target)
1378 <low_breakpoint_at>: Declare.
1379 (m68k_breakpoint_at): Turn into...
1380 (m68k_target::low_breakpoint_at): ...this.
1381 (the_low_target): Remove the op field.
1382 * linux-mips-low.cc (class mips_target)
1383 <low_breakpoint_at>: Declare.
1384 (mips_breakpoint_at): Turn into...
1385 (mips_target::low_breakpoint_at): ...this.
1386 (the_low_target): Remove the op field.
1387 * linux-nios2-low.cc (class nios2_target)
1388 <low_breakpoint_at>: Declare.
1389 (nios2_breakpoint_at): Turn into...
1390 (nios2_target::low_breakpoint_at): ...this.
1391 (the_low_target): Remove the op field.
1392 * linux-ppc-low.cc (class ppc_target)
1393 <low_breakpoint_at>: Declare.
1394 (ppc_breakpoint_at): Turn into...
1395 (ppc_target::low_breakpoint_at): ...this.
1396 (the_low_target): Remove the op field.
1397 * linux-riscv-low.cc (class riscv_target)
1398 <low_breakpoint_at>: Declare.
1399 (riscv_breakpoint_at): Turn into...
1400 (riscv_target::low_breakpoint_at): ...this.
1401 (the_low_target): Remove the op field.
1402 * linux-s390-low.cc (class s390_target)
1403 <low_breakpoint_at>: Declare.
1404 (s390_breakpoint_at): Turn into...
1405 (s390_target::low_breakpoint_at): ...this.
1406 (the_low_target): Remove the op field.
1407 * linux-sh-low.cc (class sh_target)
1408 <low_breakpoint_at>: Declare.
1409 (sh_breakpoint_at): Turn into...
1410 (sh_target::low_breakpoint_at): ...this.
1411 (the_low_target): Remove the op field.
1412 * linux-sparc-low.cc (class sparc_target)
1413 <low_breakpoint_at>: Declare.
1414 (sparc_breakpoint_at): Turn into...
1415 (sparc_target::low_breakpoint_at): ...this.
1416 (the_low_target): Remove the op field.
1417 * linux-tic6x-low.cc (class tic6x_target)
1418 <low_breakpoint_at>: Declare.
1419 (tic6x_breakpoint_at): Turn into...
1420 (tic6x_target::low_breakpoint_at): ...this.
1421 (the_low_target): Remove the op field.
1422 * linux-tile-low.cc (class tile_target)
1423 <low_breakpoint_at>: Declare.
1424 (tile_breakpoint_at): Turn into...
1425 (tile_target::low_breakpoint_at): ...this.
1426 (the_low_target): Remove the op field.
1427 * linux-xtensa-low.cc (class xtensa_target)
1428 <low_breakpoint_at>: Declare.
1429 (xtensa_breakpoint_at): Turn into...
1430 (xtensa_target::low_breakpoint_at): ...this.
1431 (the_low_target): Remove the op field.
1433 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1435 Turn the 'decr_pc_after_break' linux_target_ops field into
1436 a method of linux_process_target.
1438 * linux-low.h (struct linux_target_ops)
1439 <decr_pc_after_break>: Remove.
1440 (class linux_process_target) <low_decr_pc_after_break>: New method
1442 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1443 New method implementation.
1445 Update the users below.
1447 (linux_process_target::save_stop_reason)
1448 (linux_process_target::wait_1)
1449 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1451 (x86_target::low_decr_pc_after_break): New method implementation.
1452 (the_low_target): Remove the field.
1453 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1455 (bfin_target::low_decr_pc_after_break): New method implementation.
1456 (the_low_target): Remove the field.
1457 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1459 (m68k_target::low_decr_pc_after_break): New method implementation.
1460 (the_low_target): Remove the field.
1461 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1463 (s390_target::low_decr_pc_after_break): New method implementation.
1464 (the_low_target): Remove the field.
1465 * linux-aarch64-low.cc (the_low_target): Remove the field.
1466 * linux-arm-low.cc (the_low_target): Remove the field.
1467 * linux-cris-low.cc (the_low_target): Remove the field.
1468 * linux-crisv32-low.cc (the_low_target): Remove the field.
1469 * linux-m32r-low.cc (the_low_target): Remove the field.
1470 * linux-mips-low.cc (the_low_target): Remove the field.
1471 * linux-nios2-low.cc (the_low_target): Remove the field.
1472 * linux-ppc-low.cc (the_low_target): Remove the field.
1473 * linux-riscv-low.cc (the_low_target): Remove the field.
1474 * linux-sh-low.cc (the_low_target): Remove the field.
1475 * linux-sparc-low.cc (the_low_target): Remove the field.
1476 * linux-tic6x-low.cc (the_low_target): Remove the field.
1477 * linux-tile-low.cc (the_low_target): Remove the field.
1478 * linux-xtensa-low.cc (the_low_target): Remove the field.
1480 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1482 Remove the 'supports_software_single_step' linux target op and let
1483 the concrete linux target define it by overriding the op in
1484 process_stratum_target.
1485 Turn the 'get_next_pcs' linux target op into a method of
1486 linux_process_target.
1488 * linux-low.h (struct linux_target_ops): Remove the ops.
1489 (class linux_process_target) <supports_software_single_step>:
1491 <low_get_next_pcs>: Declare.
1492 * linux-low.cc (can_software_single_step): Remove.
1493 (linux_process_target::low_get_next_pcs): Define.
1494 (linux_process_target::supports_software_single_step): Remove.
1496 Update the callers below.
1498 (linux_process_target::handle_extended_wait)
1499 (linux_process_target::wait_1)
1500 (linux_process_target::install_software_single_step_breakpoints)
1501 (linux_process_target::single_step)
1502 (linux_process_target::thread_needs_step_over)
1503 (linux_process_target::proceed_one_lwp)
1504 (linux_process_target::supports_range_stepping)
1506 * linux-x86-low.cc (the_low_target): Remove the op field.
1507 * linux-aarch64-low.cc (the_low_target): Ditto.
1508 * linux-bfin-low.cc (the_low_target): Ditto.
1509 * linux-cris-low.cc (the_low_target): Ditto.
1510 * linux-crisv32-low.cc (the_low_target): Ditto.
1511 * linux-m32r-low.cc (the_low_target): Ditto.
1512 * linux-m68k-low.cc (the_low_target): Ditto.
1513 * linux-mips-low.cc (the_low_target): Ditto.
1514 * linux-nios2-low.cc (the_low_target): Ditto.
1515 * linux-ppc-low.cc (the_low_target): Ditto.
1516 * linux-riscv-low.cc (the_low_target): Ditto.
1517 * linux-s390-low.cc (the_low_target): Ditto.
1518 * linux-sh-low.cc (the_low_target): Ditto.
1519 * linux-sparc-low.cc (the_low_target): Ditto.
1520 * linux-tic6x-low.cc (the_low_target): Ditto.
1521 * linux-tile-low.cc (the_low_target): Ditto.
1522 * linux-xtensa-low.cc (the_low_target): Ditto.
1523 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1524 <supports_software_single_step>: Declare.
1525 (arm_target::supports_software_single_step): Define.
1526 (arm_gdbserver_get_next_pcs): Turn into...
1527 (arm_target::low_get_next_pcs): ...this.
1528 (the_low_target): Remove the op field.
1530 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1532 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1533 the concrete linux target define it by overriding the op
1534 in process_stratum_target.
1536 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1538 * linux-low.h (struct linux_target_ops): Remove the op.
1539 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1540 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1542 (x86_sw_breakpoint_from_kind): Turn into...
1543 (x86_target::sw_breakpoint_from_kind): ...this.
1544 (the_low_target): Remove the op field.
1545 * linux-aarch64-low.cc (class aarch64_target)
1546 <sw_breakpoint_from_kind>: Declare.
1547 (aarch64_sw_breakpoint_from_kind): Turn into...
1548 (aarch64_target::sw_breakpoint_from_kind): ...this.
1549 (the_low_target): Remove the op field.
1550 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1552 (arm_target::sw_breakpoint_from_kind): Define.
1553 (the_low_target): Remove the op field.
1554 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1556 (bfin_sw_breakpoint_from_kind): Turn into...
1557 (bfin_target::sw_breakpoint_from_kind): ...this.
1558 (the_low_target): Remove the op field.
1559 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1561 (cris_sw_breakpoint_from_kind): Turn into...
1562 (cris_target::sw_breakpoint_from_kind): ...this.
1563 (the_low_target): Remove the op field.
1564 * linux-crisv32-low.cc (class crisv32_target)
1565 <sw_breakpoint_from_kind>: Declare.
1566 (cris_sw_breakpoint_from_kind): Turn into...
1567 (crisv32_target::sw_breakpoint_from_kind): ...this.
1568 (the_low_target): Remove the op field.
1569 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1571 (ia64_target::sw_breakpoint_from_kind): Define.
1572 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1574 (m32r_sw_breakpoint_from_kind): Turn into...
1575 (m32r_target::sw_breakpoint_from_kind): ...this.
1576 (the_low_target): Remove the op field.
1577 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1579 (m68k_sw_breakpoint_from_kind): Turn into...
1580 (m68k_target::sw_breakpoint_from_kind): ...this.
1581 (the_low_target): Remove the op field.
1582 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1584 (mips_sw_breakpoint_from_kind): Turn into...
1585 (mips_target::sw_breakpoint_from_kind): ...this.
1586 (the_low_target): Remove the op field.
1587 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1589 (nios2_sw_breakpoint_from_kind): Turn into...
1590 (nios2_target::sw_breakpoint_from_kind): ...this.
1591 (the_low_target): Remove the op field.
1592 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1594 (ppc_sw_breakpoint_from_kind): Turn into...
1595 (ppc_target::sw_breakpoint_from_kind): ...this.
1596 (the_low_target): Remove the op field.
1597 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1599 (riscv_sw_breakpoint_from_kind): Turn into...
1600 (riscv_target::sw_breakpoint_from_kind): ...this.
1601 (the_low_target): Remove the op field.
1602 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1604 (s390_sw_breakpoint_from_kind): Turn into...
1605 (s390_target::sw_breakpoint_from_kind): ...this.
1606 (the_low_target): Remove the op field.
1607 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1609 (sh_sw_breakpoint_from_kind): Turn into...
1610 (sh_target::sw_breakpoint_from_kind): ...this.
1611 (the_low_target): Remove the op field.
1612 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1614 (sparc_sw_breakpoint_from_kind): Turn into...
1615 (sparc_target::sw_breakpoint_from_kind): ...this.
1616 (the_low_target): Remove the op field.
1617 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1619 (tic6x_sw_breakpoint_from_kind): Turn into...
1620 (tic6x_target::sw_breakpoint_from_kind): ...this.
1621 (the_low_target): Remove the op field.
1622 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1624 (tile_sw_breakpoint_from_kind): Turn into...
1625 (tile_target::sw_breakpoint_from_kind): ...this.
1626 (the_low_target): Remove the op field.
1627 * linux-xtensa-low.cc (class xtensa_target)
1628 <sw_breakpoint_from_kind>: Declare.
1629 (xtensa_sw_breakpoint_from_kind): Turn into...
1630 (xtensa_target::sw_breakpoint_from_kind): ...this.
1631 (the_low_target): Remove the op field.
1633 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1635 Remove the 'breakpoint_kind_from_pc' and
1636 'breakpoint_kind_from_current_state' linux target ops, and let the
1637 concrete linux target define them by overriding the ops of
1638 process_stratum_target.
1640 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1642 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1643 * linux-low.h (struct linux_target_ops): Remove ops.
1644 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1645 <breakpoint_kind_from_current_state>: Remove.
1646 * linux-x86-low.cc (the_low_target): Remove the op fields.
1647 * linux-bfin-low.cc (the_low_target): Ditto.
1648 * linux-cris-low.cc (the_low_target): Ditto.
1649 * linux-crisv32-low.cc (the_low_target): Ditto.
1650 * linux-m32r-low.cc (the_low_target): Ditto.
1651 * linux-m68k-low.cc (the_low_target): Ditto.
1652 * linux-mips-low.cc (the_low_target): Ditto.
1653 * linux-nios2-low.cc (the_low_target): Ditto.
1654 * linux-ppc-low.cc (the_low_target): Ditto.
1655 * linux-s390-low.cc (the_low_target): Ditto.
1656 * linux-sh-low.cc (the_low_target): Ditto.
1657 * linux-sparc-low.cc (the_low_target): Ditto.
1658 * linux-tic6x-low.cc (the_low_target): Ditto.
1659 * linux-tile-low.cc (the_low_target): Ditto.
1660 * linux-xtensa-low.cc (the_low_target): Ditto.
1661 * linux-aarch64-low.cc (class aarch64_target)
1662 <breakpoint_kind_from_pc>
1663 <breakpoint_kind_from_current_state>: Declare.
1664 (aarch64_breakpoint_kind_from_pc): Turn into...
1665 (aarch64_target::breakpoint_kind_from_pc): ...this.
1666 (aarch64_breakpoint_kind_from_current_state): Turn into...
1667 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1668 (the_low_target): Remove the op fields.
1669 * linux-arm-low.cc (class arm_target):
1670 <breakpoint_kind_from_pc>
1671 <breakpoint_kind_from_current_state>: Declare.
1672 (arm_target::breakpoint_kind_from_pc): Define.
1673 (arm_target::breakpoint_kind_from_current_state): Define.
1674 (the_low_target): Remove the op fields.
1675 * linux-riscv-low.cc (class riscv_target):
1676 <breakpoint_kind_from_pc>: Declare.
1677 (riscv_breakpoint_kind_from_pc): Turn into...
1678 (riscv_target::breakpoint_kind_from_pc): ...this.
1679 (the_low_target): Remove the op fields.
1681 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1683 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1684 of linux_process_target.
1686 * linux-low.h (struct linux_target_ops): Remove the ops.
1687 (class linux_process_target) <low_supports_breakpoints>
1689 <low_set_pc>: Declare.
1690 * linux-low.cc (supports_breakpoints): Turn into...
1691 (linux_process_target::low_supports_breakpoints): ...this.
1692 (linux_process_target::low_get_pc): Define.
1693 (linux_process_target::low_set_pc): Define.
1695 Update the callers below.
1697 (linux_process_target::get_pc)
1698 (linux_process_target::save_stop_reason)
1699 (linux_process_target::maybe_move_out_of_jump_pad)
1700 (linux_process_target::wait_1)
1701 (linux_process_target::resume_one_lwp_throw)
1702 (linux_process_target::resume)
1703 (linux_process_target::proceed_all_lwps)
1704 (linux_process_target::read_pc)
1705 (linux_process_target::write_pc)
1707 * linux-x86-low.cc (class linux_process_target)
1708 <low_supports_breakpoints>
1710 <low_set_pc>: Declare.
1711 (x86_target::low_supports_breakpoints): Define.
1712 (x86_get_pc): Turn into...
1713 (x86_target::low_get_pc): ...this.
1714 (x86_set_pc): Turn into...
1715 (x86_target::low_set_pc): ...this.
1716 (the_low_target): Remove the op fields.
1717 * linux-arm-low.cc (class arm_target)
1718 <low_supports_breakpoints>
1720 <low_set_pc>: Declare.
1721 (arm_target::low_supports_breakpoints)
1722 (arm_target::low_get_pc)
1723 (arm_target::low_set_pc): Define.
1724 (the_low_target): Remove the op fields.
1725 * linux-bfin-low.cc (class bfin_target)
1726 <low_supports_breakpoints>
1728 <low_set_pc>: Declare.
1729 (bfin_target::low_supports_breakpoints)
1730 (bfin_target::low_get_pc)
1731 (bfin_target::low_set_pc): Define.
1732 (the_low_target): Remove the op fields.
1733 * linux-cris-low.cc (class cris_target)
1734 <low_supports_breakpoints>
1736 <low_set_pc>: Declare.
1737 (cris_target::low_supports_breakpoints)
1738 (cris_target::low_get_pc)
1739 (cris_target::low_set_pc): Define.
1740 (the_low_target): Remove the op fields.
1741 * linux-crisv32-low.cc (class crisv32_target)
1742 <low_supports_breakpoints>
1744 <low_set_pc>: Declare.
1745 (crisv32_target::low_supports_breakpoints)
1746 (crisv32_target::low_get_pc)
1747 (crisv32_target::low_set_pc): Define.
1748 (the_low_target): Remove the op fields.
1749 * linux-m32r-low.cc (class m32r_target)
1750 <low_supports_breakpoints>
1752 <low_set_pc>: Declare.
1753 (m32r_target::low_supports_breakpoints)
1754 (m32r_target::low_get_pc)
1755 (m32r_target::low_set_pc): Define.
1756 (the_low_target): Remove the op fields.
1757 * linux-m68k-low.cc (class m68k_target)
1758 <low_supports_breakpoints>
1760 <low_set_pc>: Declare.
1761 (m68k_target::low_supports_breakpoints)
1762 (m68k_target::low_get_pc)
1763 (m68k_target::low_set_pc): Define.
1764 (the_low_target): Remove the op fields.
1765 * linux-nios2-low.cc (class nios2_target)
1766 <low_supports_breakpoints>
1768 <low_set_pc>: Declare.
1769 (nios2_target::low_supports_breakpoints)
1770 (nios2_target::low_get_pc)
1771 (nios2_target::low_set_pc): Define.
1772 (the_low_target): Remove the op fields.
1773 * linux-sh-low.cc (class sh_target)
1774 <low_supports_breakpoints>
1776 <low_set_pc>: Declare.
1777 (sh_target::low_supports_breakpoints)
1778 (sh_target::low_get_pc)
1779 (sh_target::low_set_pc): Define.
1780 (the_low_target): Remove the op fields.
1781 * linux-xtensa-low.cc (class xtensa_target)
1782 <low_supports_breakpoints>
1784 <low_set_pc>: Declare.
1785 (xtensa_target::low_supports_breakpoints)
1786 (xtensa_target::low_get_pc)
1787 (xtensa_target::low_set_pc): Define.
1788 (the_low_target): Remove the op fields.
1789 * linux-sparc-low.cc (class sparc_target)
1790 <low_supports_breakpoints>
1791 <low_get_pc>: Declare.
1792 (sparc_target::low_supports_breakpoints)
1793 (sparc_target::low_get_pc): Define.
1794 (the_low_target): Remove the op fields.
1795 * linux-tile-low.cc (class tile_target)
1796 <low_supports_breakpoints>
1798 <low_set_pc>: Declare.
1799 (tile_target::low_supports_breakpoints)
1800 (tile_target::low_get_pc)
1801 (tile_target::low_set_pc): Define.
1802 (the_low_target): Remove the op fields.
1803 * linux-aarch64-low.cc (class aarch64_target)
1804 <low_supports_breakpoints>
1806 <low_set_pc>: Declare.
1807 (aarch64_target::low_supports_breakpoints): Define.
1808 (aarch64_get_pc): Turn into...
1809 (aarch64_target::low_get_pc): ...this.
1810 (aarch64_set_pc): Turn into...
1811 (aarch64_target::low_set_pc): ...this.
1812 (the_low_target): Remove the op fields.
1813 * linux-mips-low.cc (class mips_target)
1814 <low_supports_breakpoints>
1816 <low_set_pc>: Declare.
1817 (mips_target::low_supports_breakpoints): Define.
1818 (mips_get_pc): Turn into...
1819 (mips_target::low_get_pc): ...this.
1820 (mips_set_pc): Turn into...
1821 (mips_target::low_set_pc): ...this.
1822 (the_low_target): Remove the op fields.
1823 * linux-ppc-low.cc (class ppc_target)
1824 <low_supports_breakpoints>
1826 <low_set_pc>: Declare.
1827 (ppc_target::low_supports_breakpoints): Define.
1828 (ppc_get_pc): Turn into...
1829 (ppc_target::low_get_pc): ...this.
1830 (ppc_set_pc): Turn into...
1831 (ppc_target::low_set_pc): ...this.
1832 (the_low_target): Remove the op fields.
1833 * linux-riscv-low.cc (class riscv_target)
1834 <low_supports_breakpoints>
1836 <low_set_pc>: Declare.
1837 (riscv_target::low_supports_breakpoints): Define.
1838 (riscv_get_pc): Turn into...
1839 (riscv_target::low_get_pc): ...this.
1840 (riscv_set_pc): Turn into...
1841 (riscv_target::low_set_pc): ...this.
1842 (the_low_target): Remove the op fields.
1843 * linux-s390-low.cc (class s390_target)
1844 <low_supports_breakpoints>
1846 <low_set_pc>: Declare.
1847 (s390_target::low_supports_breakpoints): Define.
1848 (s390_get_pc): Turn into...
1849 (s390_target::low_get_pc): ...this.
1850 (s390_set_pc): Turn into...
1851 (s390_target::low_set_pc): ...this.
1852 (the_low_target): Remove the op fields.
1853 * linux-tic6x-low.cc (class tic6x_target)
1854 <low_supports_breakpoints>
1856 <low_set_pc>: Declare.
1857 (tic6x_target::low_supports_breakpoints): Define.
1858 (tic6x_get_pc): Turn into...
1859 (tic6x_target::low_get_pc): ...this.
1860 (tic6x_set_pc): Turn into...
1861 (tic6x_target::low_set_pc): ...this.
1862 (the_low_target): Remove the op fields.
1864 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1866 Turn some more static methods in linux-low into private methods
1867 of linux_process_target.
1869 * linux-low.cc (get_pc): Turn into...
1870 (linux_process_target::get_pc): ...this.
1871 (save_stop_reason): Turn into...
1872 (linux_process_target::save_stop_reason): ...this.
1873 (thread_still_has_status_pending_p): Turn into...
1874 (linux_process_target::thread_still_has_status_pending): ...this.
1875 (status_pending_p_callback): Turn into...
1876 (linux_process_target::status_pending_p_callback): ...this.
1877 (resume_stopped_resumed_lwps): Turn into...
1878 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1879 (install_software_single_step_breakpoints): Turn into...
1880 (linux_process_target::install_software_single_step_breakpoints):
1882 (single_step): Turn into...
1883 (linux_process_target::single_step): ...this.
1884 (linux_resume_one_lwp_throw): Turn into...
1885 (linux_process_target::resume_one_lwp_throw): ...this.
1886 (linux_resume_one_lwp): Turn into...
1887 (linux_process_target::resume_one_lwp): ...this.
1888 (resume_status_pending_p): Turn into...
1889 (linux_process_target::resume_status_pending): ...this.
1890 (need_step_over_p): Turn into...
1891 (linux_process_target::thread_needs_step_over): ...this.
1892 (linux_resume_one_thread): Turn into...
1893 (linux_process_target::resume_one_thread): ...this.
1894 (proceed_one_lwp): Turn into...
1895 (linux_process_target::proceed_one_lwp): ...this.
1896 (unsuspend_and_proceed_one_lwp): Turn into...
1897 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1899 Update the calls/references to the above functions below.
1901 (linux_process_target::handle_extended_wait)
1902 (linux_process_target::filter_event)
1903 (linux_process_target::wait_for_event_filtered)
1904 (linux_process_target::wait_1)
1905 (linux_process_target::move_out_of_jump_pad)
1906 (linux_process_target::start_step_over)
1907 (linux_process_target::resume)
1908 (linux_process_target::proceed_all_lwps)
1909 (regsets_store_inferior_registers)
1910 (linux_process_target::store_register)
1912 * linux-low.h (class linux_process_target)
1915 <thread_still_has_status_pending>
1916 <status_pending_p_callback>
1917 <resume_stopped_resumed_lwps>
1918 <install_software_single_step_breakpoints>
1920 <resume_one_lwp_throw>
1922 <resume_status_pending>
1923 <thread_needs_step_over>
1926 <unsuspend_and_proceed_one_lwp>: Declare.
1928 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1930 Turn the 'fetch_register' linux target op into a method of
1931 linux_process_target.
1933 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1934 (class linux_process_target) <low_fetch_register>: Declare.
1935 * linux-x86-low.cc (the_low_target)
1936 * linux-aarch64-low.cc (the_low_target)
1937 * linux-arm-low.cc (the_low_target)
1938 * linux-bfin-low.cc (the_low_target)
1939 * linux-cris-low.cc (the_low_target)
1940 * linux-crisv32-low.cc (the_low_target)
1941 * linux-m32r-low.cc (the_low_target)
1942 * linux-m68k-low.cc (the_low_target)
1943 * linux-nios2-low.cc (the_low_target)
1944 * linux-ppc-low.cc (the_low_target)
1945 * linux-s390-low.cc (the_low_target)
1946 * linux-sh-low.cc (the_low_target)
1947 * linux-sparc-low.cc (the_low_target)
1948 * linux-tic6x-low.cc (the_low_target)
1949 * linux-tile-low.cc (the_low_target)
1950 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1951 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1953 (ia64_fetch_register): Turn into...
1954 (ia64_target::low_fetch_register): ...this.
1955 (the_low_target): Remove the op field.
1956 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1958 (mips_fetch_register): Turn into...
1959 (mips_target::low_fetch_register): ...this.
1960 (the_low_target): Remove the op field.
1961 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1963 (riscv_fetch_register): Turn into...
1964 (riscv_target::low_fetch_register): ...this.
1965 (the_low_target): Remove the op field.
1967 Update the callers below.
1969 * linux-low.cc (linux_process_target::fetch_registers)
1970 (linux_process_target::low_fetch_register)
1972 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1974 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1975 linux target ops into methods of linux_process_target.
1977 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1978 (class linux_process_target) <fetch_register>
1980 <usr_fetch_inferior_registers>
1981 <usr_store_inferior_registers>
1982 <low_cannot_fetch_register>
1983 <low_cannot_fetch_register> Declare.
1984 * linux-low.cc (fetch_register): Turn into...
1985 (linux_process_target::fetch_register): ...this.
1986 (store_register): Turn into ...
1987 (linux_process_target::store_register): ...this.
1988 (usr_fetch_inferior_registers): Turn into...
1989 (linux_process_target::usr_fetch_inferior_registers): ...this.
1990 (usr_store_inferior_registers): Turn into...
1991 (linux_process_target::usr_store_inferior_registers): ...this.
1992 * linux-x86-low.cc (class x86_target)
1993 <low_cannot_fetch_register>
1994 <low_cannot_store_register>: Declare.
1995 (x86_cannot_store_register): Turn into...
1996 (x86_target::low_cannot_store_register): ...this.
1997 (x86_cannot_fetch_register): Turn into...
1998 (x86_target::low_cannot_fetch_register): ...this.
1999 (the_low_target): Remove the target op fields.
2000 * linux-aarch64-low.cc (class aarch64_target)
2001 <low_cannot_fetch_register>
2002 <low_cannot_store_register>: Declare.
2003 (aarch64_target::low_cannot_fetch_register)
2004 (aarch64_target::low_cannot_store_register): Define.
2005 (the_low_target): Remove the op fields.
2006 * linux-arm-low.cc (class arm_target)
2007 <low_cannot_fetch_register>
2008 <low_cannot_store_register>: Declare.
2009 (arm_cannot_fetch_register): Turn into...
2010 (arm_target::low_cannot_fetch_register): ...this.
2011 (arm_cannot_store_register): Turn into...
2012 (arm_target::low_cannot_store_register): ...this.
2013 (the_low_target): Remove the op fields.
2014 * linux-bfin-low.cc (class bfin_target)
2015 <low_cannot_fetch_register>
2016 <low_cannot_store_register>: Declare.
2017 (bfin_cannot_fetch_register): Turn into...
2018 (bfin_target::low_cannot_fetch_register): ...this.
2019 (bfin_cannot_store_register): Turn into...
2020 (bfin_target::low_cannot_store_register): ...this.
2021 (the_low_target): Remove the op fields.
2022 * linux-cris-low.cc (class cris_target)
2023 <low_cannot_fetch_register>
2024 <low_cannot_store_register>: Declare.
2025 (cris_cannot_fetch_register): Turn into...
2026 (cris_target::low_cannot_fetch_register): ...this.
2027 (cris_cannot_store_register): Turn into...
2028 (cris_target::low_cannot_store_register): ...this.
2029 (the_low_target): Remove the op fields.
2030 * linux-crisv32-low.cc (class crisv32_target)
2031 <low_cannot_fetch_register>
2032 <low_cannot_store_register>: Declare.
2033 (crisv32_target::low_cannot_fetch_register)
2034 (crisv32_target::low_cannot_store_register): Define.
2035 (the_low_target): Remove the op fields.
2036 * linux-ia64-low.cc (class ia64_target)
2037 <low_cannot_fetch_register>
2038 <low_cannot_store_register>: Declare.
2039 (ia64_cannot_fetch_register): Turn into...
2040 (ia64_target::low_cannot_fetch_register): ...this.
2041 (ia64_cannot_store_register): Turn into...
2042 (ia64_target::low_cannot_store_register): ...this.
2043 (the_low_target): Remove the op fields.
2044 * linux-m32r-low.cc (class m32r_target)
2045 <low_cannot_fetch_register>
2046 <low_cannot_store_register>: Declare.
2047 (m32r_cannot_fetch_register): Turn into...
2048 (m32r_target::low_cannot_fetch_register): ...this.
2049 (m32r_cannot_store_register): Turn into...
2050 (m32r_target::low_cannot_store_register): ...this.
2051 (the_low_target): Remove the op fields.
2052 * linux-m68k-low.cc (class m68k_target)
2053 <low_cannot_fetch_register>
2054 <low_cannot_store_register>: Declare.
2055 (m68k_cannot_fetch_register): Turn into...
2056 (m68k_target::low_cannot_fetch_register): ...this.
2057 (m68k_cannot_store_register): Turn into...
2058 (m68k_target::low_cannot_store_register): ...this.
2059 (the_low_target): Remove the op fields.
2060 * linux-mips-low.cc (class mips_target)
2061 <low_cannot_fetch_register>
2062 <low_cannot_store_register>: Declare.
2063 (mips_cannot_fetch_register): Turn into...
2064 (mips_target::low_cannot_fetch_register): ...this.
2065 (mips_cannot_store_register): Turn into...
2066 (mips_target::low_cannot_store_register): ...this.
2067 (get_usrregs_info): Inline at the call sites in
2068 low_cannot_fetch_register and low_cannot_store_register,
2070 (the_low_target): Remove the op fields.
2071 * linux-nios2-low.cc (class nios2_target)
2072 <low_cannot_fetch_register>
2073 <low_cannot_store_register>: Declare.
2074 (nios2_cannot_fetch_register): Turn into...
2075 (nios2_target::low_cannot_fetch_register): ...this.
2076 (nios2_cannot_store_register): Turn into...
2077 (nios2_target::low_cannot_store_register): ...this.
2078 (the_low_target): Remove the op fields.
2079 * linux-ppc-low.cc (class ppc_target)
2080 <low_cannot_fetch_register>
2081 <low_cannot_store_register>: Declare.
2082 (ppc_cannot_fetch_register): Turn into...
2083 (ppc_target::low_cannot_fetch_register): ...this.
2084 (ppc_cannot_store_register): Turn into...
2085 (ppc_target::low_cannot_store_register): ...this.
2086 (the_low_target): Remove the op fields.
2087 * linux-riscv-low.cc (class riscv_target)
2088 <low_cannot_fetch_register>
2089 <low_cannot_store_register>: Declare.
2090 (riscv_target::low_cannot_fetch_register)
2091 (riscv_target::low_cannot_store_register): Define.
2092 (the_low_target): Remove the op fields.
2093 * linux-s390-low.cc (class s390_target)
2094 <low_cannot_fetch_register>
2095 <low_cannot_store_register>: Declare.
2096 (s390_cannot_fetch_register): Turn into...
2097 (s390_target::low_cannot_fetch_register): ...this.
2098 (s390_cannot_store_register): Turn into...
2099 (s390_target::low_cannot_store_register): ...this.
2100 (the_low_target): Remove the op fields.
2101 * linux-sh-low.cc (class sh_target)
2102 <low_cannot_fetch_register>
2103 <low_cannot_store_register>: Declare.
2104 (sh_cannot_fetch_register): Turn into...
2105 (sh_target::low_cannot_fetch_register): ...this.
2106 (sh_cannot_store_register): Turn into...
2107 (sh_target::low_cannot_store_register): ...this.
2108 (the_low_target): Remove the op fields.
2109 * linux-sparc-low.cc (class sparc_target)
2110 <low_cannot_fetch_register>
2111 <low_cannot_store_register>: Declare.
2112 (sparc_cannot_fetch_register): Turn into...
2113 (sparc_target::low_cannot_fetch_register): ...this.
2114 (sparc_cannot_store_register): Turn into...
2115 (sparc_target::low_cannot_store_register): ...this.
2116 (the_low_target): Remove the op fields.
2117 * linux-tic6x-low.cc (class tic6x_target)
2118 <low_cannot_fetch_register>
2119 <low_cannot_store_register>: Declare.
2120 (tic6x_cannot_fetch_register): Turn into...
2121 (tic6x_target::low_cannot_fetch_register): ...this.
2122 (tic6x_cannot_store_register): Turn into...
2123 (tic6x_target::low_cannot_store_register): ...this.
2124 (the_low_target): Remove the op fields.
2125 * linux-tile-low.cc (class tile_target)
2126 <low_cannot_fetch_register>
2127 <low_cannot_store_register>: Declare.
2128 (tile_cannot_fetch_register): Turn into...
2129 (tile_target::low_cannot_fetch_register): ...this.
2130 (tile_cannot_store_register): Turn into...
2131 (tile_target::low_cannot_store_register): ...this.
2132 (the_low_target): Remove the op fields.
2133 * linux-xtensa-low.cc (class xtensa_target)
2134 <low_cannot_fetch_register>
2135 <low_cannot_store_register>: Declare.
2136 (xtensa_target::low_cannot_fetch_register)
2137 (xtensa_target::low_cannot_store_register): Define.
2138 (the_low_target): Remove the op fields.
2140 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2142 Turn the 'regs_info' linux target op into a method of
2143 linux_process_target.
2145 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2146 (class linux_process_target) <get_regs_info>: Define.
2148 Update the callers below.
2150 * linux-low.cc (linux_process_target::fetch_registers)
2151 (linux_process_target::store_registers)
2152 * proc-service.cc (gregset_info)
2154 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2155 (x86_linux_regs_info): Turn into ...
2156 (x86_target::get_regs_info): ...this.
2157 (the_low_target): Remove the op field.
2158 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2160 (aarch64_regs_info): Turn into ...
2161 (aarch64_target::get_regs_info): ...this.
2162 (the_low_target): Remove the op field.
2163 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2164 (arm_regs_info): Turn into ...
2165 (arm_target::get_regs_info): ...this.
2166 (the_low_target): Remove the op field.
2167 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2168 (bfin_regs_info): Turn into ...
2169 (bfin_target::get_regs_info): ...this.
2170 (the_low_target): Remove the op field.
2171 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2172 (cris_regs_info): Turn into ...
2173 (cris_target::get_regs_info): ...this.
2174 (the_low_target): Remove the op field.
2175 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2177 (crisv32_regs_info): Turn into ...
2178 (crisv32_target::get_regs_info): ...this.
2179 (the_low_target): Remove the op field.
2180 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2181 (ia64_regs_info): Turn into ...
2182 (ia64_target::get_regs_info): ...this.
2183 (the_low_target): Remove the op field.
2184 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2185 (m32r_regs_info): Turn into ...
2186 (m32r_target::get_regs_info): ...this.
2187 (the_low_target): Remove the op field.
2188 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2189 (m68k_regs_info): Turn into ...
2190 (m68k_target::get_regs_info): ...this.
2191 (the_low_target): Remove the op field.
2192 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2193 (mips_regs_info): Turn into ...
2194 (mips_target::get_regs_info): ...this.
2195 (the_low_target): Remove the op field.
2196 (get_usrregs_info): Update the call to the op.
2197 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2198 (nios2_regs_info): Turn into ...
2199 (nios2_target::get_regs_info): ...this.
2200 (the_low_target): Remove the op field.
2201 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2202 (ppc_regs_info): Turn into ...
2203 (ppc_target::get_regs_info): ...this.
2204 (the_low_target): Remove the op field.
2205 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2206 (riscv_regs_info): Turn into ...
2207 (riscv_target::get_regs_info): ...this.
2208 (the_low_target): Remove the op field.
2209 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2210 (s390_regs_info): Turn into ...
2211 (s390_target::get_regs_info): ...this.
2212 (the_low_target): Remove the op field.
2213 (s390_collect_ptrace_register)
2214 (s390_supply_ptrace_register)
2215 (s390_fill_gregset): Update the call to the op.
2216 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2217 (sh_regs_info): Turn into ...
2218 (sh_target::get_regs_info): ...this.
2219 (the_low_target): Remove the op field.
2220 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2221 (sparc_regs_info): Turn into ...
2222 (sparc_target::get_regs_info): ...this.
2223 (the_low_target): Remove the op field.
2224 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2225 (tic6x_regs_info): Turn into ...
2226 (tic6x_target::get_regs_info): ...this.
2227 (the_low_target): Remove the op field.
2228 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2229 (tile_regs_info): Turn into ...
2230 (tile_target::get_regs_info): ...this.
2231 (the_low_target): Remove the op field.
2232 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2234 (xtensa_regs_info): Turn into ...
2235 (xtensa_target::get_regs_info): ...this.
2236 (the_low_target): Remove the op field.
2238 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2240 Turn the 'arch_setup' linux target op into a method of
2241 linux_process_target.
2243 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2244 (class linux_process_target) <arch_setup_thread>
2245 <low_arch_setup>: New declarations.
2246 * linux-low.cc (linux_arch_setup): Delete.
2247 (linux_arch_setup_thread): Turn into...
2248 (linux_process_target::arch_setup_thread): ... this.
2250 Update the callers below.
2252 (linux_process_target::handle_extended_wait)
2253 (linux_process_target::post_create_inferior)
2254 (linux_process_target::filter_event)
2256 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2258 (x86_linux_update_xmltarget): Turn into...
2259 (x86_target::update_xmltarget): ...this.
2260 (x86_linux_process_qsupported): Update the call to
2261 x86_linux_update_xmltarget.
2262 (x86_arch_setup): Turn into ...
2263 (x86_target::low_arch_setup): ...this.
2264 (the_low_target): Remove the op field.
2265 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2267 (aarch64_arch_setup): Turn into ...
2268 (aarch64_target::low_arch_setup): ...this.
2269 (the_low_target): Remove the op field.
2270 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2272 (arm_arch_setup): Turn into ...
2273 (arm_target::low_arch_setup): ...this.
2274 (the_low_target): Remove the op field.
2275 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2277 (bfin_arch_setup): Turn into ...
2278 (bfin_target::low_arch_setup): ...this.
2279 (the_low_target): Remove the op field.
2280 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2282 (cris_arch_setup): Turn into ...
2283 (cris_target::low_arch_setup): ...this.
2284 (the_low_target): Remove the op field.
2285 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2287 (crisv32_arch_setup): Turn into ...
2288 (crisv32_target::low_arch_setup): ...this.
2289 (the_low_target): Remove the op field.
2290 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2292 (ia64_arch_setup): Turn into ...
2293 (ia64_target::low_arch_setup): ...this.
2294 (the_low_target): Remove the op field.
2295 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2297 (m32r_arch_setup): Turn into ...
2298 (m32r_target::low_arch_setup): ...this.
2299 (the_low_target): Remove the op field.
2300 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2302 (m68k_arch_setup): Turn into ...
2303 (m68k_target::low_arch_setup): ...this.
2304 (the_low_target): Remove the op field.
2305 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2307 (mips_arch_setup): Turn into ...
2308 (mips_target::low_arch_setup): ...this.
2309 (the_low_target): Remove the op field.
2310 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2312 (nios2_arch_setup): Turn into ...
2313 (nios2_target::low_arch_setup): ...this.
2314 (the_low_target): Remove the op field.
2315 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2317 (ppc_arch_setup): Turn into ...
2318 (ppc_target::low_arch_setup): ...this.
2319 (the_low_target): Remove the op field.
2320 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2322 (riscv_arch_setup): Turn into ...
2323 (riscv_target::low_arch_setup): ...this.
2324 (the_low_target): Remove the op field.
2325 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2327 (s390_arch_setup): Turn into ...
2328 (s390_target::low_arch_setup): ...this.
2329 (the_low_target): Remove the op field.
2330 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2332 (sh_arch_setup): Turn into ...
2333 (sh_target::low_arch_setup): ...this.
2334 (the_low_target): Remove the op field.
2335 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2337 (sparc_arch_setup): Turn into ...
2338 (sparc_target::low_arch_setup): ...this.
2339 (the_low_target): Remove the op field.
2340 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2342 (tic6x_arch_setup): Turn into ...
2343 (tic6x_target::low_arch_setup): ...this.
2344 (the_low_target): Remove the op field.
2345 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2347 (tile_arch_setup): Turn into ...
2348 (tile_target::low_arch_setup): ...this.
2349 (the_low_target): Remove the op field.
2350 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2352 (xtensa_arch_setup): Turn into ...
2353 (xtensa_target::low_arch_setup): ...this.
2354 (the_low_target): Remove the op field.
2356 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2358 * linux-low.h (the_linux_target): New extern declaration.
2359 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2361 (the_linux_target): Remove.
2362 * linux-x86-low.cc (class x86_target): New class.
2363 (the_x86_target): New static object.
2364 (the_linux_target): Define as pointer to the_x86_target.
2365 * linux-aarch64-low.cc (class aarch64_target): New class.
2366 (the_aarch64_target): New static object.
2367 (the_linux_target): Define as pointer to the_aarch64_target.
2368 * linux-arm-low.cc (class arm_target): New class.
2369 (the_arm_target): New static object.
2370 (the_linux_target): Define as pointer to the_arm_target.
2371 * linux-bfin-low.cc (class bfin_target): New class.
2372 (the_bfin_target): New static object.
2373 (the_linux_target): Define as pointer to the_bfin_target.
2374 * linux-cris-low.cc (class cris_target): New class.
2375 (the_cris_target): New static object.
2376 (the_linux_target): Define as pointer to the_cris_target.
2377 * linux-crisv32-low.cc (class crisv32_target): New class.
2378 (the_crisv32_target): New static object.
2379 (the_linux_target): Define as pointer to the_crisv32_target.
2380 * linux-ia64-low.cc (class ia64_target): New class.
2381 (the_ia64_target): New static object.
2382 (the_linux_target): Define as pointer to the_ia64_target.
2383 * linux-m32r-low.cc (class m32r_target): New class.
2384 (the_m32r_target): New static object.
2385 (the_linux_target): Define as pointer to the_m32r_target.
2386 * linux-m68k-low.cc (class m68k_target): New class.
2387 (the_m68k_target): New static object.
2388 (the_linux_target): Define as pointer to the_m68k_target.
2389 * linux-mips-low.cc (class mips_target): New class.
2390 (the_mips_target): New static object.
2391 (the_linux_target): Define as pointer to the_mips_target.
2392 * linux-nios2-low.cc (class nios2_target): New class.
2393 (the_nios2_target): New static object.
2394 (the_linux_target): Define as pointer to the_nios2_target.
2395 * linux-ppc-low.cc (class ppc_target): New class.
2396 (the_ppc_target): New static object.
2397 (the_linux_target): Define as pointer to the_ppc_target.
2398 * linux-riscv-low.cc (class riscv_target): New class.
2399 (the_riscv_target): New static object.
2400 (the_linux_target): Define as pointer to the_riscv_target.
2401 * linux-s390-low.cc (class s390_target): New class.
2402 (the_s390_target): New static object.
2403 (the_linux_target): Define as pointer to the_s390_target.
2404 * linux-sh-low.cc (class sh_target): New class.
2405 (the_sh_target): New static object.
2406 (the_linux_target): Define as pointer to the_sh_target.
2407 * linux-sparc-low.cc (class sparc_target): New class.
2408 (the_sparc_target): New static object.
2409 (the_linux_target): Define as pointer to the_sparc_target.
2410 * linux-tic6x-low.cc (class tic6x_target): New class.
2411 (the_tic6x_target): New static object.
2412 (the_linux_target): Define as pointer to the_tic6x_target.
2413 * linux-tile-low.cc (class tile_target): New class.
2414 (the_tile_target): New static object.
2415 (the_linux_target): Define as pointer to the_tile_target.
2416 * linux-xtensa-low.cc (class xtensa_target): New class.
2417 (the_xtensa_target): New static object.
2418 (the_linux_target): Define as pointer to the_xtensa_target.
2420 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2422 Turn some static functions in linux-low.cc into private methods of
2423 linux_process_target.
2425 * linux-low.cc (handle_extended_wait): Turn into ...
2426 (linux_process_target::handle_extended_wait): ...this. Call
2427 'mourn' on 'this' object instead of 'the_target'.
2428 (maybe_move_out_of_jump_pad): Turn into...
2429 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2430 (linux_low_filter_event): Turn into...
2431 (linux_process_target::filter_event): ...this.
2432 (linux_wait_for_event_filtered): Turn into...
2433 (linux_process_target::wait_for_event_filtered): ...this.
2434 (linux_wait_for_event): Turn into...
2435 (linux_process_target::wait_for_event): ...this.
2436 (linux_wait_1): Turn into...
2437 (linux_process_target::wait_1): ...this.
2438 (wait_for_sigstop): Turn into...
2439 (linux_process_target::wait_for_sigstop): ...this.
2440 (move_out_of_jump_pad_callback): Turn into...
2441 (linux_process_target::move_out_of_jump_pad): ...this.
2442 (stop_all_lwps): Turn into...
2443 (linux_process_target::stop_all_lwps): ...this.
2444 (start_step_over): Turn into...
2445 (linux_process_target::start_step_over): ...this.
2446 (complete_ongoing_step_over): Turn into...
2447 (linux_process_target::complete_ongoing_step_over): ...this.
2448 (proceed_all_lwps): Turn into...
2449 (linux_process_target::proceed_all_lwps): ...this.
2450 (unstop_all_lwps): Turn into...
2451 (linux_process_target::unstop_all_lwps): ...this.
2453 * linux-low.h (class linux_process_target)
2454 <handle_extended_wait>
2455 <maybe_move_out_of_jump_pad>
2457 <wait_for_event_filtered>
2461 <move_out_of_jump_pad>
2464 <complete_ongoing_step_over>
2466 <unstop_all_lwps>: Declare.
2468 Update the callers below.
2470 * linux-low.cc (linux_process_target::attach): Update.
2471 (linux_process_target::stabilize_threads): Ditto.
2472 (linux_process_target::wait): Ditto.
2474 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2476 * linux-low.h (struct linux_target_ops): Update the comment for
2477 'cannot_store_register' to return 0 or 1.
2478 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2481 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2483 * config.in: Re-generate.
2484 * configure: Re-generate.
2486 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2488 * regcache.cc (find_register_by_number): Update.
2489 * tdesc.cc (init_target_desc): Likewise.
2490 * tdesc.h (target_desc::reg_defs): Likewise.
2492 2020-03-12 Tom Tromey <tom@tromey.com>
2494 * configure: Rebuild.
2495 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2496 (WIN32APILIBS): New subst.
2497 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2499 (gdbsupport/%.o): Remove target.
2500 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2501 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2502 (WIN32APILIBS): New variable.
2503 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2504 (gdbreplay$(EXEEXT)): Likewise.
2506 2020-03-12 Tom Tromey <tom@tromey.com>
2508 * config.in, configure: Rebuild.
2509 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2510 * acinclude.m4: Include gettext-sister.m4.
2511 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2513 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2514 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2516 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2518 * acinclude.m4: Update path to selftest.m4.
2520 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2522 * configure.ac: Don't source bfd/development.sh, move
2523 GDB_AC_COMMON higher.
2524 * configure: Re-generate.
2526 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2528 * configure: Re-generate.
2530 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2532 * configure: Re-generate.
2534 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2536 * .dir-locals.el: New file.
2538 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2540 * .gitattributes: New file.
2542 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2544 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2545 reply into an S reply.
2546 * server.cc (disable_packet_T): New global.
2547 (captured_main): Set new global when appropriate.
2548 * server.h (disable_packet_T): Declare.
2550 2020-02-21 Tom Tromey <tom@tromey.com>
2552 * Makefile.in (mostlyclean): New target.
2554 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2556 * target.h (struct process_stratum_target): Remove.
2557 (class process_target): Rename to ...
2558 (class process_stratum_target): ... this.
2559 * linux-low.h (class linux_process_target): Derive from
2560 'process_stratum_target'.
2561 * linux-low.cc (linux_target_ops): Remove.
2562 (initialize_low): Set the_target to the singleton instance of
2563 linux_process_target.
2564 * lynx-low.h (class lynx_process_target): Derive from
2565 'process_stratum_target'.
2566 * lynx-low.cc (lynx_target_ops): Remove.
2567 (initialize_low): Set the_target to the singleton instance of
2568 lynx_process_target.
2569 * nto-low.h (class nto_process_target): Derive from
2570 'process_stratum_target'.
2571 * nto-low.cc (nto_target_ops): Remove.
2572 (initialize_low): Set the_target to the singleton instance of
2574 * win32-low.h (class win32_process_target): Derive from
2575 'process_stratum_target'.
2576 * win32-low.cc (win32_target_ops): Remove.
2577 (initialize_low): Set the_target to the singleton instance of
2578 win32_process_target.
2580 Replace 'the_target->pt' with 'the_target' in the uses below.
2582 * hostio.cc (hostio_error)
2587 * linux-aarch32-low.cc (arm_breakpoint_at)
2588 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2589 * linux-arm-low.cc (arm_sigreturn_next_pc)
2591 (arm_get_syscall_trapinfo)
2592 * linux-cris-low.cc (cris_breakpoint_at)
2593 * linux-crisv32-low.cc (cris_breakpoint_at)
2594 * linux-low.cc (handle_extended_wait)
2597 (linux_process_target::breakpoint_kind_from_pc)
2599 * linux-m32r-low.cc (m32r_breakpoint_at)
2600 * linux-mips-low.cc (mips_breakpoint_at)
2601 * linux-nios2-low.cc (nios2_breakpoint_at)
2602 * linux-ppc-low.cc (ppc_breakpoint_at)
2603 * linux-s390-low.cc (s390_get_hwcap)
2604 * linux-sh-low.cc (sh_breakpoint_at)
2605 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2606 (sparc_store_gregset_from_stack)
2607 (sparc_breakpoint_at)
2608 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2609 * linux-tile-low.cc (tile_breakpoint_at)
2610 * linux-x86-low.cc (x86_breakpoint_at)
2611 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2612 * mem-break.cc (bp_size)
2614 (insert_memory_breakpoint)
2615 (set_raw_breakpoint_at)
2616 (delete_raw_breakpoint)
2618 (uninsert_raw_breakpoint)
2619 (reinsert_raw_breakpoint)
2620 (validate_inserted_breakpoint)
2621 * regcache.cc (regcache_read_pc)
2623 * remote-utils.cc (putpkt_binary_1)
2626 (prepare_resume_reply)
2627 * server.cc (handle_general_set)
2630 (handle_qxfer_exec_file)
2631 (handle_qxfer_libraries_svr4)
2632 (handle_qxfer_osdata)
2633 (handle_qxfer_siginfo)
2634 (handle_qxfer_fdpic)
2638 (queue_stop_reply_callback)
2640 * target.cc (prepare_to_access_memory)
2641 (done_accessing_memory)
2642 (read_inferior_memory)
2643 (target_write_memory)
2644 (target_stop_and_wait)
2646 (target_mourn_inferior)
2647 (target_continue_no_signal)
2649 (target_supports_multi_process)
2652 (target_create_inferior)
2653 (target_post_create_inferior)
2655 (target_supports_fork_events)
2656 (target_supports_vfork_events)
2657 (target_supports_exec_events)
2658 (target_handle_new_gdb_connection)
2661 (fetch_inferior_registers)
2662 (store_inferior_registers)
2664 (target_supports_non_stop)
2666 (target_process_qsupported)
2667 (target_supports_catch_syscall)
2668 (target_get_ipa_tdesc_idx)
2669 (target_supports_tracepoints)
2670 (target_supports_fast_tracepoints)
2671 (target_get_min_fast_tracepoint_insn_len)
2672 (target_thread_stopped)
2674 (target_unpause_all)
2675 (target_stabilize_threads)
2676 (target_install_fast_tracepoint_jump_pad)
2678 (target_supports_disable_randomization)
2679 (target_supports_agent)
2680 (target_enable_btrace)
2681 (target_disable_btrace)
2682 (target_read_btrace)
2683 (target_read_btrace_conf)
2684 (target_supports_range_stepping)
2685 (target_supports_stopped_by_sw_breakpoint)
2686 (target_stopped_by_sw_breakpoint)
2687 (target_supports_stopped_by_hw_breakpoint)
2688 (target_supports_hardware_single_step)
2689 (target_stopped_by_hw_breakpoint)
2690 (target_breakpoint_kind_from_pc)
2691 (target_breakpoint_kind_from_current_state)
2692 (target_supports_software_single_step)
2693 (target_core_of_thread)
2694 (target_thread_name)
2695 (target_thread_handle)
2696 * win32-low.cc (do_initial_child_stuff)
2698 Rename target op default definitions listed below.
2700 * target.cc (process_target::post_create_inferior): Rename as ...
2701 (process_stratum_target::post_create_inferior): ... this.
2702 (process_target::prepare_to_access_memory): Rename as ...
2703 (process_stratum_target::prepare_to_access_memory): ... this.
2704 (process_target::done_accessing_memory): Rename as ...
2705 (process_stratum_target::done_accessing_memory): ... this.
2706 (process_target::look_up_symbols): Rename as ...
2707 (process_stratum_target::look_up_symbols): ... this.
2708 (process_target::supports_read_auxv): Rename as ...
2709 (process_stratum_target::supports_read_auxv): ... this.
2710 (process_target::read_auxv): Rename as ...
2711 (process_stratum_target::read_auxv): ... this.
2712 (process_target::supports_z_point_type): Rename as ...
2713 (process_stratum_target::supports_z_point_type): ... this.
2714 (process_target::insert_point): Rename as ...
2715 (process_stratum_target::insert_point): ... this.
2716 (process_target::remove_point): Rename as ...
2717 (process_stratum_target::remove_point): ... this.
2718 (process_target::stopped_by_sw_breakpoint): Rename as ...
2719 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2720 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2721 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2722 (process_target::stopped_by_hw_breakpoint): Rename as ...
2723 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2724 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2725 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2726 (process_target::supports_hardware_single_step): Rename as ...
2727 (process_stratum_target::supports_hardware_single_step): ... this.
2728 (process_target::stopped_by_watchpoint): Rename as ...
2729 (process_stratum_target::stopped_by_watchpoint): ... this.
2730 (process_target::stopped_data_address): Rename as ...
2731 (process_stratum_target::stopped_data_address): ... this.
2732 (process_target::supports_read_offsets): Rename as ...
2733 (process_stratum_target::supports_read_offsets): ... this.
2734 (process_target::read_offsets): Rename as ...
2735 (process_stratum_target::read_offsets): ... this.
2736 (process_target::supports_get_tls_address): Rename as ...
2737 (process_stratum_target::supports_get_tls_address): ... this.
2738 (process_target::get_tls_address): Rename as ...
2739 (process_stratum_target::get_tls_address): ... this.
2740 (process_target::hostio_last_error): Rename as ...
2741 (process_stratum_target::hostio_last_error): ... this.
2742 (process_target::supports_qxfer_osdata): Rename as ...
2743 (process_stratum_target::supports_qxfer_osdata): ... this.
2744 (process_target::qxfer_osdata): Rename as ...
2745 (process_stratum_target::qxfer_osdata): ... this.
2746 (process_target::supports_qxfer_siginfo): Rename as ...
2747 (process_stratum_target::supports_qxfer_siginfo): ... this.
2748 (process_target::qxfer_siginfo): Rename as ...
2749 (process_stratum_target::qxfer_siginfo): ... this.
2750 (process_target::supports_non_stop): Rename as ...
2751 (process_stratum_target::supports_non_stop): ... this.
2752 (process_target::async): Rename as ...
2753 (process_stratum_target::async): ... this.
2754 (process_target::start_non_stop): Rename as ...
2755 (process_stratum_target::start_non_stop): ... this.
2756 (process_target::supports_multi_process): Rename as ...
2757 (process_stratum_target::supports_multi_process): ... this.
2758 (process_target::supports_fork_events): Rename as ...
2759 (process_stratum_target::supports_fork_events): ... this.
2760 (process_target::supports_vfork_events): Rename as ...
2761 (process_stratum_target::supports_vfork_events): ... this.
2762 (process_target::supports_exec_events): Rename as ...
2763 (process_stratum_target::supports_exec_events): ... this.
2764 (process_target::handle_new_gdb_connection): Rename as ...
2765 (process_stratum_target::handle_new_gdb_connection): ... this.
2766 (process_target::handle_monitor_command): Rename as ...
2767 (process_stratum_target::handle_monitor_command): ... this.
2768 (process_target::core_of_thread): Rename as ...
2769 (process_stratum_target::core_of_thread): ... this.
2770 (process_target::supports_read_loadmap): Rename as ...
2771 (process_stratum_target::supports_read_loadmap): ... this.
2772 (process_target::read_loadmap): Rename as ...
2773 (process_stratum_target::read_loadmap): ... this.
2774 (process_target::process_qsupported): Rename as ...
2775 (process_stratum_target::process_qsupported): ... this.
2776 (process_target::supports_tracepoints): Rename as ...
2777 (process_stratum_target::supports_tracepoints): ... this.
2778 (process_target::read_pc): Rename as ...
2779 (process_stratum_target::read_pc): ... this.
2780 (process_target::write_pc): Rename as ...
2781 (process_stratum_target::write_pc): ... this.
2782 (process_target::supports_thread_stopped): Rename as ...
2783 (process_stratum_target::supports_thread_stopped): ... this.
2784 (process_target::thread_stopped): Rename as ...
2785 (process_stratum_target::thread_stopped): ... this.
2786 (process_target::supports_get_tib_address): Rename as ...
2787 (process_stratum_target::supports_get_tib_address): ... this.
2788 (process_target::get_tib_address): Rename as ...
2789 (process_stratum_target::get_tib_address): ... this.
2790 (process_target::pause_all): Rename as ...
2791 (process_stratum_target::pause_all): ... this.
2792 (process_target::unpause_all): Rename as ...
2793 (process_stratum_target::unpause_all): ... this.
2794 (process_target::stabilize_threads): Rename as ...
2795 (process_stratum_target::stabilize_threads): ... this.
2796 (process_target::supports_fast_tracepoints): Rename as ...
2797 (process_stratum_target::supports_fast_tracepoints): ... this.
2798 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2799 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2800 (process_target::emit_ops): Rename as ...
2801 (process_stratum_target::emit_ops): ... this.
2802 (process_target::supports_disable_randomization): Rename as ...
2803 (process_stratum_target::supports_disable_randomization): ... this.
2804 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2805 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2806 (process_target::qxfer_libraries_svr4): Rename as ...
2807 (process_stratum_target::qxfer_libraries_svr4): ... this.
2808 (process_target::supports_agent): Rename as ...
2809 (process_stratum_target::supports_agent): ... this.
2810 (process_target::enable_btrace): Rename as ...
2811 (process_stratum_target::enable_btrace): ... this.
2812 (process_target::disable_btrace): Rename as ...
2813 (process_stratum_target::disable_btrace): ... this.
2814 (process_target::read_btrace): Rename as ...
2815 (process_stratum_target::read_btrace): ... this.
2816 (process_target::read_btrace_conf): Rename as ...
2817 (process_stratum_target::read_btrace_conf): ... this.
2818 (process_target::supports_range_stepping): Rename as ...
2819 (process_stratum_target::supports_range_stepping): ... this.
2820 (process_target::supports_pid_to_exec_file): Rename as ...
2821 (process_stratum_target::supports_pid_to_exec_file): ... this.
2822 (process_target::pid_to_exec_file): Rename as ...
2823 (process_stratum_target::pid_to_exec_file): ... this.
2824 (process_target::supports_multifs): Rename as ...
2825 (process_stratum_target::supports_multifs): ... this.
2826 (process_target::multifs_open): Rename as ...
2827 (process_stratum_target::multifs_open): ... this.
2828 (process_target::multifs_unlink): Rename as ...
2829 (process_stratum_target::multifs_unlink): ... this.
2830 (process_target::multifs_readlink): Rename as ...
2831 (process_stratum_target::multifs_readlink): ... this.
2832 (process_target::breakpoint_kind_from_pc): Rename as ...
2833 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2834 (process_target::breakpoint_kind_from_current_state): Rename as ...
2835 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2836 (process_target::thread_name): Rename as ...
2837 (process_stratum_target::thread_name): ... this.
2838 (process_target::thread_handle): Rename as ...
2839 (process_stratum_target::thread_handle): ... this.
2840 (process_target::supports_software_single_step): Rename as ...
2841 (process_stratum_target::supports_software_single_step): ... this.
2842 (process_target::supports_catch_syscall): Rename as ...
2843 (process_stratum_target::supports_catch_syscall): ... this.
2844 (process_target::get_ipa_tdesc_idx): Rename as ...
2845 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2847 2020-02-20 Pedro Alves <palves@redhat.com>
2849 * target.cc (set_target_ops): Simply copy the given target pointer
2850 instead of creating a copy of the pointed object.
2852 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2854 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2857 * target.h (struct process_stratum_target): Remove the target op.
2858 (class process_target): Add the target op.
2859 (target_get_ipa_tdesc_idx): Update the macro.
2860 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2862 Update the derived classes and callers below.
2864 * linux-low.cc (linux_target_ops): Update.
2865 (linux_get_ipa_tdesc_idx): Turn into ...
2866 (linux_process_target::get_ipa_tdesc_idx): ... this.
2867 * linux-low.h (class linux_process_target): Update.
2868 * lynx-low.cc (lynx_target_ops): Update.
2869 * nto-low.cc (nto_target_ops): Update.
2870 * win32-low.cc (win32_target_ops): Update.
2872 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2874 Turn process_stratum_target's supports_catch_syscall op into a
2875 method of process_target.
2877 * target.h (struct process_stratum_target): Remove the target op.
2878 (class process_target): Add the target op.
2879 (target_supports_catch_syscall): Update the macro.
2880 * target.cc (process_target::supports_catch_syscall): Define.
2882 Update the derived classes and callers below.
2884 * linux-low.cc (linux_target_ops): Update.
2885 (linux_supports_catch_syscall): Turn into ...
2886 (linux_process_target::supports_catch_syscall): ... this.
2887 * linux-low.h (class linux_process_target): Update.
2888 * lynx-low.cc (lynx_target_ops): Update.
2889 * nto-low.cc (nto_target_ops): Update.
2890 * win32-low.cc (win32_target_ops): Update.
2892 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2894 Turn process_stratum_target's supports_software_single_step op
2895 into a method of process_target.
2897 * target.h (struct process_stratum_target): Remove the target op.
2898 (class process_target): Add the target op.
2899 (target_supports_software_single_step): Update the macro.
2900 * target.cc (process_target::supports_software_single_step): Define.
2902 Update the derived classes and callers below.
2904 * linux-low.cc (linux_target_ops): Update.
2905 (linux_supports_software_single_step): Turn into ...
2906 (linux_process_target::supports_software_single_step): ... this.
2907 * linux-low.h (class linux_process_target): Update.
2908 * lynx-low.cc (lynx_target_ops): Update.
2909 * nto-low.cc (nto_target_ops): Update.
2910 * win32-low.cc (win32_target_ops): Update.
2912 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2914 Turn process_stratum_target's thread_name and thread_handle ops
2915 into methods of process_target.
2917 * target.h (struct process_stratum_target): Remove the target ops.
2918 (class process_target): Add the target ops.
2919 (target_thread_name): Update the macro.
2920 (target_thread_handle): Update the macro.
2921 * target.cc (process_target::thread_name): Define.
2922 (process_target::thread_handle): Define.
2924 Update the derived classes and callers below.
2926 * linux-low.cc (linux_target_ops): Update.
2927 (linux_process_target::thread_name): Define.
2928 (linux_process_target::thread_handle): Define.
2929 * linux-low.h (class linux_process_target): Update.
2930 * lynx-low.cc (lynx_target_ops): Update.
2931 * nto-low.cc (nto_target_ops): Update.
2932 * win32-low.cc (win32_target_ops): Update.
2934 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2936 Turn process_stratum_target's breakpoint_kind_from_pc,
2937 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2938 ops into methods of process_target.
2940 * target.h (struct process_stratum_target): Remove the target op.
2941 (class process_target): Add the target op.
2942 (target_breakpoint_kind_from_pc): Update the macro.
2943 (target_breakpoint_kind_from_current_state): Update the macro.
2944 (default_breakpoint_kind_from_pc): Remove declaration.
2945 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2946 (process_target::breakpoint_kind_from_pc): ... this.
2947 (process_target::breakpoint_kind_from_current_state): Define.
2949 Update the derived classes and callers below.
2951 * mem-break.cc (bp_size): Update.
2952 (bp_opcode): Update.
2953 * linux-low.cc (linux_target_ops): Update.
2954 (linux_wait_1): Update.
2955 (linux_breakpoint_kind_from_pc): Turn into ...
2956 (linux_process_target::breakpoint_kind_from_pc): ... this.
2957 (linux_sw_breakpoint_from_kind): Turn into ...
2958 (linux_process_target::sw_breakpoint_from_kind): ... this.
2959 (linux_breakpoint_kind_from_current_state): Turn into ...
2960 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2961 * linux-low.h (class linux_process_target): Update.
2962 * lynx-low.cc (lynx_target_ops): Update.
2963 (lynx_process_target::sw_breakpoint_from_kind): Define.
2964 * lynx-low.h (class lynx_process_target): Update.
2965 * nto-low.cc (nto_target_ops): Update.
2966 (nto_sw_breakpoint_from_kind): Turn into ...
2967 (nto_process_target::sw_breakpoint_from_kind): ... this.
2968 * nto-low.h (class nto_process_target): Update.
2969 * win32-low.cc (win32_target_ops): Update.
2970 (win32_sw_breakpoint_from_kind): Turn into ...
2971 (win32_process_target::sw_breakpoint_from_kind): ... this.
2972 * win32-low.h (class win32_process_target): Update.
2974 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2976 Turn process_stratum_target's multifs_open, multifs_readlink,
2977 multifs_unlink ops into methods of process_target.
2979 * target.h (struct process_stratum_target): Remove the target ops.
2980 (class process_target): Add the target ops. Also add
2982 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2984 (process_target::supports_multifs): Define.
2985 (process_target::multifs_open): Define.
2986 (process_target::multifs_readlink): Define.
2987 (process_target::multifs_unlink): Define.
2989 Update the derived classes and callers below.
2991 * hostio.cc (handle_setfs): Update.
2992 (handle_open): Update.
2993 (handle_unlink): Update.
2994 (handle_readlink): Update.
2995 * linux-low.cc (linux_target_ops): Update.
2996 (linux_process_target::supports_multifs): Define.
2997 (linux_process_target::multifs_open): Define.
2998 (linux_process_target::multifs_readlink): Define.
2999 (linux_process_target::multifs_unlink): Define.
3000 * linux-low.h (class linux_process_target): Update.
3001 * lynx-low.cc (lynx_target_ops): Update.
3002 * nto-low.cc (nto_target_ops): Update.
3003 * win32-low.cc (win32_target_ops): Update.
3005 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3007 Turn process_stratum_target's pid_to_exec_file op into a method
3010 * target.h (struct process_stratum_target): Remove the target op.
3011 (class process_target): Add the target op. Also add
3012 'supports_pid_to_exec_file'.
3013 * target.cc (process_target::pid_to_exec_file): Define.
3014 (process_target::supports_pid_to_exec_file): Define.
3016 Update the derived classes and callers below.
3018 * server.cc (handle_qxfer_exec_file): Update.
3019 (handle_query): Update.
3020 * linux-low.cc (linux_target_ops): Update.
3021 (linux_process_target::supports_pid_to_exec_file): Define.
3022 (linux_process_target::pid_to_exec_file): Define.
3023 * linux-low.h (class linux_process_target): Update.
3024 * lynx-low.cc (lynx_target_ops): Update.
3025 * nto-low.cc (nto_target_ops): Update.
3026 * win32-low.cc (win32_target_ops): Update.
3028 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3030 Turn process_stratum_target's supports_range_stepping op into a
3031 method of process_target.
3033 * target.h (struct process_stratum_target): Remove the target op.
3034 (class process_target): Add the target op.
3035 (target_supports_range_stepping): Update the macro.
3036 * target.cc (process_target::supports_range_stepping): Define.
3038 Update the derived classes and callers below.
3040 * linux-low.cc (linux_target_ops): Update.
3041 (linux_supports_range_stepping): Turn into ...
3042 (linux_process_target::supports_range_stepping): ... this.
3043 * linux-low.h (class linux_process_target): Update.
3044 * lynx-low.cc (lynx_target_ops): Update.
3045 * nto-low.cc (nto_target_ops): Update.
3046 * win32-low.cc (win32_target_ops): Update.
3048 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3050 Turn process_stratum_target's btrace-related ops (enable_btrace,
3051 disable_btrace, read_btrace, read_btrace_conf) into methods of
3054 * target.h (struct process_stratum_target): Remove the target ops.
3055 (class process_target): Add the target ops.
3056 (target_enable_btrace): Update.
3057 (target_disable_btrace): Update.
3058 (target_read_btrace): Update.
3059 (target_read_btrace_conf): Update.
3060 * target.cc (process_target::enable_btrace): Define.
3061 (process_target::disable_btrace): Define.
3062 (process_target::read_btrace): Define.
3063 (process_target::read_btrace_conf): Define.
3065 Update the derived classes and callers below.
3067 * linux-low.cc (linux_target_ops): Update.
3068 (linux_process_target:enable_btrace): Define as a wrapper around
3069 linux_enable_btrace.
3070 (linux_low_disable_btrace): Turn into ...
3071 (linux_process_target::disable_btrace): ... this.
3072 (linux_low_read_btrace): Turn into ...
3073 (linux_process_target::read_btrace): ... this.
3074 (linux_low_btrace_conf): Turn into ...
3075 (linux_process_target::read_btrace_conf): ... this.
3076 * linux-low.h (class linux_process_target): Update.
3077 * lynx-low.cc (lynx_target_ops): Update.
3078 * nto-low.cc (nto_target_ops): Update.
3079 * win32-low.cc (win32_target_ops): Update.
3081 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3083 Turn process_stratum_target's supports_agent op into a method of
3086 * target.h (struct process_stratum_target): Remove the target op.
3087 (class process_target): Add the target op.
3088 (target_supports_agent): Update the macro.
3089 * target.cc (process_target::supports_agent): Define.
3091 Update the derived classes and callers below.
3093 * linux-low.cc (linux_target_ops): Update.
3094 (linux_supports_agent): Turn into ...
3095 (linux_process_target::supports_agent): ... this.
3096 * linux-low.h (class linux_process_target): Update.
3097 * lynx-low.cc (lynx_target_ops): Update.
3098 * nto-low.cc (nto_target_ops): Update.
3099 * win32-low.cc (win32_target_ops): Update.
3101 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3103 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3104 method of process_target.
3106 * target.h (struct process_stratum_target): Remove the target op.
3107 (class process_target): Add the target op. Also add
3108 'supports_qxfer_libraries_svr4'.
3109 * target.cc (process_target::qxfer_libraries_svr4): Define.
3110 (process_target::supports_qxfer_libraries_svr4): Define.
3112 Update the derived classes and callers below.
3114 * server.cc (handle_qxfer_libraries_svr4): Update.
3115 (handle_query): Update.
3116 * linux-low.cc (linux_target_ops): Update.
3117 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3118 (linux_qxfer_libraries_svr4): Turn into ...
3119 (linux_process_target::qxfer_libraries_svr4): ... this.
3120 * linux-low.h (class linux_process_target): Update.
3121 * lynx-low.cc (lynx_target_ops): Update.
3122 * nto-low.cc (nto_target_ops): Update.
3123 * win32-low.cc (win32_target_ops): Update.
3125 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3127 Turn process_stratum_target's supports_disable_randomization op
3128 into a method of process_target.
3130 * target.h (struct process_stratum_target): Remove the target op.
3131 (class process_target): Add the target op.
3132 (target_supports_disable_randomization): Update the macro.
3133 * target.cc (process_target::supports_disable_randomization): Define.
3135 Update the derived classes and callers below.
3137 * linux-low.cc (linux_target_ops): Update.
3138 (linux_supports_disable_randomization): Turn into ...
3139 (linux_process_target::supports_disable_randomization): ... this.
3140 * linux-low.h (class linux_process_target): Update.
3141 * lynx-low.cc (lynx_target_ops): Update.
3142 * nto-low.cc (nto_target_ops): Update.
3143 * win32-low.cc (win32_target_ops): Update.
3145 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3147 Turn process_stratum_target's emit_ops op into a method of
3150 * target.h (struct process_stratum_target): Remove the target op.
3151 (class process_target): Add the target op.
3152 (target_emit_ops): Update the macro.
3153 * target.cc (process_target::emit_ops): Define.
3155 Update the derived classes and callers below.
3157 * linux-low.cc (linux_target_ops): Update.
3158 (linux_emit_ops): Turn into ...
3159 (linux_process_target::emit_ops): ... this.
3160 * linux-low.h (class linux_process_target): Update.
3161 * lynx-low.cc (lynx_target_ops): Update.
3162 * nto-low.cc (nto_target_ops): Update.
3163 * win32-low.cc (win32_target_ops): Update.
3165 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3167 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3168 and get_min_fast_tracepoint_insn_len ops into methods of
3171 * target.h (struct process_stratum_target): Remove the target ops.
3172 (class process_target): Add the target ops. Also add
3173 'supports_fast_tracepoints'.
3174 (target_supports_fast_tracepoints): Update the macro.
3175 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3176 (install_fast_tracepoint_jump_pad): Update and rename the macro
3178 (target_install_fast_tracepoint_jump_pad): ... this.
3179 * target.cc (process_target::supports_fast_tracepoints): Define.
3180 (process_target::install_fast_tracepoint_jump_pad): Define.
3181 (process_target::get_min_fast_tracepoint_insn_len): Define.
3183 Update the derived classes and callers below.
3185 * tracepoint.cc (install_fast_tracepoint): Update.
3186 * linux-low.cc (linux_target_ops): Update.
3187 (linux_process_target::supports_fast_tracepoints): Define.
3188 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3189 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3190 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3191 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3192 * linux-low.h (class linux_process_target): Update.
3193 * lynx-low.cc (lynx_target_ops): Update.
3194 * nto-low.cc (nto_target_ops): Update.
3195 * win32-low.cc (win32_target_ops): Update.
3197 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3199 Turn process_stratum_target's stabilize_threads op into a
3200 method of process_target.
3202 * target.h (struct process_stratum_target): Remove the target op.
3203 (class process_target): Add the target op.
3204 (target_stabilize_threads): Update the macro.
3205 * target.cc (process_target::stabilize_threads): Define.
3207 Update the derived classes and callers below.
3209 * server.cc (handle_status): Update.
3210 * tracepoint.cc (cmd_qtdp): Update.
3211 (cmd_qtstart): Update.
3212 * linux-low.cc (linux_target_ops): Update.
3213 (linux_stabilize_threads): Turn into ...
3214 (linux_process_target::stabilize_threads): ... this.
3215 (linux_wait_1): Update.
3216 * linux-low.h (class linux_process_target): Update.
3217 * lynx-low.cc (lynx_target_ops): Update.
3218 * nto-low.cc (nto_target_ops): Update.
3219 * win32-low.cc (win32_target_ops): Update.
3221 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3223 Turn process_stratum_target's pause_all and unpause_all ops
3224 into methods of process_target.
3226 * target.h (struct process_stratum_target): Remove the target ops.
3227 (class process_target): Add the target ops.
3228 (pause_all): Update the macro and rename to...
3229 (target_pause_all): ... this.
3230 (unpause_all): Update the macro and rename to...
3231 (target_unpause_all): ... this.
3232 * target.cc (process_target::pause_all): Define.
3233 (process_target::unpause_all): Define.
3235 Update the derived classes and callers below.
3237 * server.cc (handle_status): Update.
3238 * tracepoint.cc (clear_installed_tracepoints): Update.
3240 (cmd_qtstart): Update.
3241 (stop_tracing): Update.
3242 (cmd_qtstatus): Update.
3243 (upload_fast_traceframes): Update.
3244 (run_inferior_command): Update.
3245 * linux-low.cc (linux_target_ops): Update.
3246 (linux_pause_all): Turn into ...
3247 (linux_process_target::pause_all): ... this.
3248 (linux_unpause_all): Turn into ...
3249 (linux_process_target::unpause_all): ... this.
3250 (linux_process_target::prepare_to_access_memory): Update.
3251 (linux_process_target::done_accessing_memory): Update.
3252 * linux-low.h (class linux_process_target): Update.
3253 * lynx-low.cc (lynx_target_ops): Update.
3254 * nto-low.cc (nto_target_ops): Update.
3255 * win32-low.cc (win32_target_ops): Update.
3257 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3259 Turn process_stratum_target's get_tib_address op into a method of
3262 * target.h (struct process_stratum_target): Remove the target op.
3263 (class process_target): Add the target op. Also add
3264 'supports_get_tib_address'.
3265 * target.cc (process_target::get_tib_address): Define.
3266 (process_target::supports_get_tib_address): Define.
3268 Update the derived classes and callers below.
3270 * server.cc (handle_query): Update.
3271 * linux-low.cc (win32_target_ops): Update.
3272 * lynx-low.cc (lynx_target_ops): Update.
3273 * nto-low.cc (nto_target_ops): Update.
3274 * win32-low.cc (win32_target_ops): Update.
3275 (win32_process_target::supports_get_tib_address): Define.
3276 (win32_get_tib_address): Turn into ...
3277 (win32_process_target::get_tib_address): ... this.
3278 * win32-low.h (class win32_process_target): Update.
3280 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3282 Turn process_stratum_target's thread_stopped op into a method of
3285 * target.h (struct process_stratum_target): Remove the target op.
3286 (class process_target): Add the target op. Also add
3287 'supports_thread_stopped'.
3288 (target_thread_stopped): Update the macro.
3289 * target.cc (process_target::thread_stopped): Define.
3290 (process_target::supports_thread_stopped): Define.
3291 (prepare_to_access_memory): Update.
3293 Update the derived classes and callers below.
3295 * server.cc (queue_stop_reply_callback): Update.
3296 * linux-low.cc (linux_target_ops): Update.
3297 (linux_process_target::supports_thread_stopped): Define.
3298 (linux_thread_stopped): Turn into ...
3299 (linux_process_target::thread_stopped): ... this.
3300 * linux-low.h (class linux_process_target): Update.
3301 * lynx-low.cc (lynx_target_ops): Update.
3302 * nto-low.cc (nto_target_ops): Update.
3303 * win32-low.cc (win32_target_ops): Update.
3305 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3307 Turn process_stratum_target's read_pc and write_pc ops into
3308 methods of process_target.
3310 * target.h (struct process_stratum_target): Remove the target ops.
3311 (class process_target): Add the target ops.
3312 * target.cc (process_target::read_pc): Define.
3313 (process_target::write_pc): Define.
3315 Update the derived classes and callers below.
3317 * regcache.cc (regcache_read_pc): Update.
3318 (regcache_write_pc): Update.
3319 * linux-low.cc (linux_target_ops): Update.
3320 (linux_read_pc): Turn into ...
3321 (linux_process_target::read_pc): ... this.
3322 (linux_write_pc): Turn into ...
3323 (linux_process_target::write_pc): ... this.
3324 * linux-low.h (class linux_process_target): Update.
3325 * lynx-low.cc (lynx_target_ops): Update.
3326 * nto-low.cc (nto_target_ops): Update.
3327 * win32-low.cc (win32_target_ops): Update.
3329 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3331 Turn process_stratum_target's supports_tracepoints op into a
3332 method of process_target.
3334 * target.h (struct process_stratum_target): Remove the target op.
3335 (class process_target): Add the target op.
3336 (target_supports_tracepoints): Update the macro.
3337 * target.cc (process_target::supports_tracepoints): Define.
3339 Update the derived classes and callers below.
3341 * linux-low.cc (linux_target_ops): Update.
3342 (linux_supports_tracepoints): Turn into ...
3343 (linux_process_target::supports_tracepoints): ... this.
3344 * linux-low.h (class linux_process_target): Update.
3345 * lynx-low.cc (lynx_target_ops): Update.
3346 * nto-low.cc (nto_target_ops): Update.
3347 * win32-low.cc (win32_target_ops): Update.
3349 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3351 Turn process_stratum_target's process_qsupported op into a method
3354 * target.h (struct process_stratum_target): Remove the target op.
3355 (class process_target): Add the target op.
3356 (target_process_qsupported): Update the macro.
3357 * target.cc (process_target::process_qsupported): Define.
3359 Update the derived classes and callers below.
3361 * linux-low.cc (linux_target_ops): Update.
3362 (linux_process_qsupported): Turn into ...
3363 (linux_process_target::process_qsupported): ... this.
3364 * linux-low.h (class linux_process_target): Update.
3365 * lynx-low.cc (lynx_target_ops): Update.
3366 * nto-low.cc (nto_target_ops): Update.
3367 * win32-low.cc (win32_target_ops): Update.
3369 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3371 Turn process_stratum_target's read_loadmap op into a method of
3374 * target.h (struct process_stratum_target): Remove the target op.
3375 (class process_target): Add the target op. Also add
3376 'supports_read_loadmap'.
3377 * target.cc (process_target::read_loadmap): Define.
3378 (process_target::supports_read_loadmap): Define.
3380 Update the derived classes and callers below.
3382 * server.cc (handle_qxfer_fdpic): Update.
3383 (handle_query): Update.
3384 * linux-low.cc (linux_target_ops): Update.
3385 (linux_process_target::supports_read_loadmap): Define.
3386 (linux_read_loadmap): Turn into ...
3387 (linux_process_target::read_loadmap): ... this.
3388 * linux-low.h (class linux_process_target): Update.
3389 * lynx-low.cc (lynx_target_ops): Update.
3390 * nto-low.cc (nto_target_ops): Update.
3391 * win32-low.cc (win32_target_ops): Update.
3393 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3395 Turn process_stratum_target's core_of_thread op into a method of
3398 * target.h (struct process_stratum_target): Remove the target op.
3399 (class process_target): Add the target op.
3400 (target_core_of_thread): Update the macro.
3401 * target.cc (process_target::core_of_thread): Define.
3403 Update the derived classes and callers below.
3405 * linux-low.cc (linux_target_ops): Update.
3406 (linux_process_target::core_of_thread): Define.
3407 * linux-low.h (class linux_process_target): Update.
3408 * lynx-low.cc (lynx_target_ops): Update.
3409 * nto-low.cc (nto_target_ops): Update.
3410 * win32-low.cc (win32_target_ops): Update.
3412 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3414 Turn process_stratum_target's handle_monitor_command op into a
3415 method of process_target.
3417 * target.h (struct process_stratum_target): Remove the target op.
3418 (class process_target): Add the target op.
3419 (target_handle_monitor_command): Update the macro.
3420 * target.cc (process_target::handle_monitor_command): Define.
3422 Update the derived classes and callers below.
3424 * server.cc (handle_query): Update.
3425 * linux-low.cc (linux_target_ops): Update.
3426 (linux_process_target::handle_monitor_command): Define.
3427 * linux-low.h (class linux_process_target): Update.
3428 * lynx-low.cc (lynx_target_ops): Update.
3429 * nto-low.cc (nto_target_ops): Update.
3430 * win32-low.cc (win32_target_ops): Update.
3432 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3434 Turn process_stratum_target's handle_new_gdb_connection op into a
3435 method of process_target.
3437 * target.h (struct process_stratum_target): Remove the target op.
3438 (class process_target): Add the target op.
3439 (target_handle_new_gdb_connection): Update the macro.
3440 * target.cc (process_target::handle_new_gdb_connection): Define.
3442 Update the derived classes and callers below.
3444 * linux-low.cc (linux_target_ops): Update.
3445 (linux_handle_new_gdb_connection): Turn into ...
3446 (linux_process_target::handle_new_gdb_connection): ... this.
3447 * linux-low.h (class linux_process_target): Update.
3448 * lynx-low.cc (lynx_target_ops): Update.
3449 * nto-low.cc (nto_target_ops): Update.
3450 * win32-low.cc (win32_target_ops): Update.
3452 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3454 Turn process_stratum_target's supports_fork_events,
3455 supports_vfork_events, and supports_exec_events ops into methods
3458 * target.h (struct process_stratum_target): Remove the target ops.
3459 (class process_target): Add the target ops.
3460 (target_supports_fork_events): Update the macro.
3461 (target_supports_vfork_events): Update the macro.
3462 (target_supports_exec_events): Update the macro.
3463 * target.cc (process_target::supports_fork_events): Define.
3464 (process_target::supports_vfork_events): Define.
3465 (process_target::supports_exec_events): Define.
3467 Update the derived classes and callers below.
3469 * linux-low.cc (linux_target_ops): Update.
3470 (linux_supports_fork_events): Turn into ...
3471 (linux_process_target::supports_fork_events): ... this.
3472 (linux_supports_vfork_events): Turn into ...
3473 (linux_process_target::supports_vfork_events): ... this.
3474 (linux_supports_exec_events): Turn into ...
3475 (linux_process_target::supports_exec_events): ... this.
3476 * linux-low.h (class linux_process_target): Update.
3477 * lynx-low.cc (lynx_target_ops): Update.
3478 * nto-low.cc (nto_target_ops): Update.
3479 * win32-low.cc (win32_target_ops): Update.
3481 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3483 Turn process_stratum_target's supports_multi_process op into a
3484 method of process_target.
3486 * target.h (struct process_stratum_target): Remove the target op.
3487 (class process_target): Add the target op.
3488 * target.cc (process_target::supports_multi_process): Define.
3489 (target_supports_multi_process): Update.
3491 Update the derived classes and callers below.
3493 * linux-low.cc (linux_target_ops): Update.
3494 (linux_supports_multi_process): Turn into ...
3495 (linux_process_target::supports_multi_process): ... this.
3496 * linux-low.h (class linux_process_target): Update.
3497 * lynx-low.cc (lynx_target_ops): Update.
3498 * nto-low.cc (nto_target_ops): Update.
3499 * win32-low.cc (win32_target_ops): Update.
3501 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3503 Turn process_stratum_target's supports_non_stop, async, and
3504 start_non_stop ops into methods of process_target.
3506 * target.h (struct process_stratum_target): Remove the target ops.
3507 (class process_target): Add the target ops.
3508 (target_supports_non_stop): Update the macro.
3509 (target_async): Update the macro.
3510 (start_non_stop): Remove declaration.
3511 * target.cc (process_target::supports_non_stop): Define.
3512 (process_target::async): Define.
3513 (process_target::start_non_stop): Define.
3514 (start_non_stop): Remove.
3516 Update the derived classes and callers below.
3518 * server.cc (handle_qxfer_siginfo): Update.
3519 (handle_query): Update.
3520 * linux-low.cc (linux_target_ops): Update.
3521 (linux_supports_non_stop): Turn into ...
3522 (linux_process_target::supports_non_stop): ... this.
3523 (linux_async): Turn into ...
3524 (linux_process_target::async): ... this.
3525 (linux_start_non_stop): Turn into ...
3526 (linux_process_target::start_non_stop): ... this.
3527 * linux-low.h (class linux_process_target): Update.
3528 * lynx-low.cc (lynx_target_ops): Update.
3529 * nto-low.cc (nto_target_ops): Update.
3530 (nto_supports_non_stop): Remove; rely on the default behavior
3532 * win32-low.cc (win32_target_ops): Update.
3534 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3536 Turn process_stratum_target's qxfer_siginfo op into a method of
3539 * target.h (struct process_stratum_target): Remove the target op.
3540 (class process_target): Add the target op. Also add
3541 'supports_qxfer_siginfo'.
3542 * target.cc (process_target::qxfer_siginfo): Define.
3543 (process_target::supports_qxfer_siginfo): Define.
3545 Update the derived classes and callers below.
3547 * server.cc (handle_qxfer_siginfo): Update.
3548 (handle_query): Update.
3549 * linux-low.cc (linux_target_ops): Update.
3550 (linux_process_target::supports_qxfer_siginfo): Define.
3551 (linux_xfer_siginfo): Turn into ...
3552 (linux_process_target::qxfer_siginfo): ... this.
3553 * linux-low.h (class linux_process_target): Update.
3554 * lynx-low.cc (lynx_target_ops): Update.
3555 * nto-low.cc (nto_target_ops): Update.
3556 * win32-low.cc (win32_target_ops): Update.
3558 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3560 Turn process_stratum_target's qxfer_osdata op into a method of
3563 * target.h (struct process_stratum_target): Remove the target op.
3564 (class process_target): Add the target op. Also add
3565 'supports_qxfer_osdata'.
3566 * target.cc (process_target::qxfer_osdata): Define.
3567 (process_target::supports_qxfer_osdata): Define.
3569 Update the derived classes and callers below.
3571 * server.cc (handle_qxfer_osdata): Update.
3572 (handle_query): Update.
3573 * linux-low.cc (linux_target_ops): Update.
3574 (linux_process_target::supports_qxfer_osdata): Define.
3575 (linux_qxfer_osdata): Turn into ...
3576 (linux_process_target::qxfer_osdata): ... this.
3577 * linux-low.h (class linux_process_target): Update.
3578 * lynx-low.cc (lynx_target_ops): Update.
3579 * nto-low.cc (nto_target_ops): Update.
3580 * win32-low.cc (win32_target_ops): Update.
3582 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3584 Turn process_stratum_target's hostio_last_error op into a
3585 method of process_target.
3587 * target.h (struct process_stratum_target): Remove the target op.
3588 (class process_target): Add the target op.
3589 * target.cc: Add "hostio.h" to includes.
3590 (process_target::hostio_last_error): Define.
3592 Update the derived classes and callers below.
3594 * hostio.cc (hostio_error): Update.
3595 * linux-low.cc: Remove "hostio.h" from includes.
3596 (linux_target_ops): Update.
3597 * lynx-low.cc (lynx_target_ops): Update.
3598 * nto-low.cc (nto_target_ops): Update.
3599 * win32-low.h (class win32_process_target): Update.
3600 * win32-low.cc (win32_target_ops): Update.
3601 (wince_hostio_last_error): Turn into ...
3602 (win32_process_target::hostio_last_error): ... this.
3604 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3606 Turn process_stratum_target's get_tls_address op into a method of
3609 * target.h (struct process_stratum_target): Remove the target op.
3610 (class process_target): Add the target op. Also add
3611 'supports_get_tls_address'.
3612 * target.cc (process_target::get_tls_address): Define.
3613 (process_target::supports_get_tls_address): Define.
3615 Update the derived classes and callers below.
3617 * server.cc (handle_query): Update.
3618 * linux-low.cc (linux_target_ops): Update.
3619 (linux_process_target::supports_get_tls_address): Define.
3620 (linux_process_target::get_tls_address): Define.
3621 * linux-low.h (class linux_process_target): Update.
3622 * lynx-low.cc (lynx_target_ops): Update.
3623 * nto-low.cc (nto_target_ops): Update.
3624 * win32-low.cc (win32_target_ops): Update.
3626 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3628 Turn process_stratum_target's read_offsets op into a method of
3631 * target.h (struct process_stratum_target): Remove the target op.
3632 (class process_target): Add the target op. Also add
3633 'supports_read_offsets'.
3634 * target.cc (process_target::read_offsets): Define.
3635 (process_target::supports_read_offsets): Define.
3637 Update the derived classes and callers below.
3639 * server.cc (handle_query): Update.
3640 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3641 (linux_target_ops): Update.
3642 (linux_process_target::supports_read_offsets): Define.
3643 (linux_read_offsets): Turn into ...
3644 (linux_process_target::read_offsets): ... this.
3645 * linux-low.h (class linux_process_target): Update.
3646 * lynx-low.cc (lynx_target_ops): Update.
3647 * nto-low.cc (nto_target_ops): Update.
3648 * win32-low.cc (win32_target_ops): Update.
3650 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3652 Turn process_stratum_target's stopped_by_watchpoint and
3653 stopped_data_address ops into methods of process_target.
3655 * target.h (struct process_stratum_target): Remove the target ops.
3656 (class process_target): Add the target ops.
3657 * target.cc (process_target::stopped_by_watchpoint): Define.
3658 (process_target::stopped_data_address): Define.
3660 Update the derived classes and callers below.
3662 * remote-utils.cc (prepare_resume_reply): Update.
3663 * linux-low.cc (linux_target_ops): Update.
3664 (linux_stopped_by_watchpoint): Turn into ...
3665 (linux_process_target::stopped_by_watchpoint): ... this.
3666 (linux_stopped_data_address): Turn into ...
3667 (linux_process_target::stopped_data_address): ... this.
3668 * linux-low.h (class linux_process_target): Update.
3669 * lynx-low.cc (lynx_target_ops): Update.
3670 * nto-low.cc (nto_target_ops): Update.
3671 (nto_stopped_by_watchpoint): Turn into ...
3672 (nto_process_target::stopped_by_watchpoint): ... this.
3673 (nto_stopped_data_address): Turn into ...
3674 (nto_process_target::stopped_data_address): ... this.
3675 * nto-low.h (class nto_process_target): Update.
3676 * win32-low.cc (win32_target_ops): Update.
3677 (win32_stopped_by_watchpoint): Turn into ...
3678 (win32_process_target::stopped_by_watchpoint): ... this.
3679 (win32_stopped_data_address): Turn into ...
3680 (win32_process_target::stopped_data_address): ... this.
3681 * win32-low.h (class win32_process_target): Update.
3683 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3685 Turn process_stratum_target's supports_hardware_single_step op into
3686 a method of process_target.
3688 * target.h (struct process_stratum_target): Remove the target op.
3689 (class process_target): Add the target op.
3690 (target_supports_hardware_single_step): Update the macro.
3691 (target_can_do_hardware_single_step): Remove declaration.
3692 * target.cc (process_target::supports_hardware_single_step): Define.
3693 (target_can_do_hardware_single_step): Remove.
3695 Update the derived classes and callers below.
3697 * linux-low.h (class linux_process_target): Update.
3698 * linux-low.cc (linux_target_ops): Update.
3699 (linux_supports_hardware_single_step): Turn into ...
3700 (linux_process_target::supports_hardware_single_step): ... this.
3701 * lynx-low.h (class lynx_process_target): Update.
3702 * lynx-low.cc (lynx_target_ops): Update.
3703 (lynx_process_target::supports_hardware_single_step): Define.
3704 * nto-low.h (class nto_process_target): Update.
3705 * nto-low.cc (nto_target_ops): Update.
3706 (nto_process_target::supports_hardware_single_step): Define.
3707 * win32-low.h (class win32_process_target): Update.
3708 * win32-low.cc (win32_target_ops): Update.
3709 (win32_process_target::supports_hardware_single_step): Define.
3711 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3713 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3714 ops into methods of process_target.
3716 * target.h (struct process_stratum_target): Remove the target ops.
3717 (class process_target): Add the target ops.
3718 (target_stopped_by_hw_breakpoint): Update the macro.
3719 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3720 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3721 (process_target::supports_stopped_by_hw_breakpoint): Define.
3723 Update the derived classes and callers below.
3725 * linux-low.cc (linux_target_ops): Update.
3726 (linux_stopped_by_hw_breakpoint): Turn into ...
3727 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3728 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3729 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3730 * linux-low.h (class linux_process_target): Update.
3731 * lynx-low.cc (lynx_target_ops): Update.
3732 * nto-low.cc (nto_target_ops): Update.
3733 * win32-low.cc (win32_target_ops): Update.
3735 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3737 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3738 ops into methods of process_target.
3740 * target.h (struct process_stratum_target): Remove the target ops.
3741 (class process_target): Add the target ops.
3742 (target_stopped_by_sw_breakpoint): Update the macro.
3743 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3744 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3745 (process_target::supports_stopped_by_sw_breakpoint): Define.
3747 Update the derived classes and callers below.
3749 * linux-low.cc (linux_target_ops): Update.
3750 (linux_stopped_by_sw_breakpoint): Turn into ...
3751 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3752 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3753 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3754 * linux-low.h (class linux_process_target): Update.
3755 * lynx-low.cc (lynx_target_ops): Update.
3756 * nto-low.cc (nto_target_ops): Update.
3757 * win32-low.cc (win32_target_ops): Update.
3759 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3761 Turn process_stratum_target's insert_point and remove_point ops
3762 into methods of process_target.
3764 * target.h (struct process_stratum_target): Remove the target ops.
3765 (class process_target): Add the target ops.
3766 * target.cc (process_target::insert_point): Define.
3767 (process_target::remove_point): Define.
3769 Update the derived classes and callers below.
3771 * mem-break.cc (set_raw_breakpoint_at): Update.
3772 (delete_raw_breakpoint): Update.
3773 (uninsert_raw_breakpoint): Update.
3774 (reinsert_raw_breakpoint): Update.
3775 * linux-low.cc (linux_target_ops): Update.
3776 (linux_insert_point): Turn into ...
3777 (linux_process_target::insert_point): ... this.
3778 (linux_remove_point): Turn into ...
3779 (linux_process_target::remove_point): ... this.
3780 * linux-low.h (class linux_process_target): Update.
3781 * lynx-low.cc (lynx_target_ops): Update.
3782 * nto-low.cc (nto_target_ops): Update.
3783 (nto_insert_point): Turn into ...
3784 (nto_process_target::insert_point): ... this.
3785 (nto_remove_point): Turn into ...
3786 (nto_process_target::remove_point): ... this.
3787 * nto-low.h (class nto_process_target): Update.
3788 * win32-low.cc (win32_target_ops): Update.
3789 (win32_insert_point): Turn into ...
3790 (win32_process_target::insert_point): ... this.
3791 (win32_remove_point): Turn into ...
3792 (win32_process_target::remove_point): ... this.
3793 * win32-low.h (class win32_process_target): Update.
3795 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3797 Turn process_stratum_target's supports_z_point_type op into a
3798 method of process_target.
3800 * target.h (struct process_stratum_target): Remove the target op.
3801 (class process_target): Add the target op.
3802 * target.cc (process_target::supports_z_point_type): Define.
3804 Update the derived classes and callers below.
3806 * mem-break.cc (z_type_supported): Update.
3807 * linux-low.cc (linux_target_ops): Update.
3808 (linux_supports_z_point_type): Turn into ...
3809 (linux_process_target::supports_z_point_type): ... this.
3810 * linux-low.h (class linux_process_target): Update.
3811 * lynx-low.cc (lynx_target_ops): Update.
3812 * nto-low.cc (nto_target_ops): Update.
3813 (nto_supports_z_point_type): Turn into ...
3814 (nto_process_target::supports_z_point_type): ... this.
3815 * nto-low.h (class nto_process_target): Update.
3816 * win32-low.cc (win32_target_ops): Update.
3817 (win32_supports_z_point_type): Turn into ...
3818 (win32_process_target::supports_z_point_type): ... this.
3819 * win32-low.h (class win32_process_target): Update.
3821 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3823 Turn process_stratum_target's read_auxv op into a method of
3826 * target.h (class process_stratum_target): Remove the target op.
3827 (struct process_target): Add the target op. Also add
3828 'supports_read_auxv'.
3829 * target.cc (process_target::read_auxv): Define.
3830 (process_target::supports_read_auxv): Define.
3832 Update the derived classes and callers below.
3834 * server.cc (handle_qxfer_auxv): Update.
3835 (handle_query): Update.
3836 * linux-low.cc (linux_target_ops): Update.
3837 (linux_process_target::supports_read_auxv): Define.
3838 (linux_read_auxv): Turn into ...
3839 (linux_process_target::read_auxv): ... this.
3840 * linux-low.h (class linux_process_target): Update.
3841 * lynx-low.cc (lynx_target_ops): Update.
3842 * nto-low.cc (nto_target_ops): Update.
3843 (nto_process_target::supports_read_auxv): Define.
3844 (nto_read_auxv): Turn into ...
3845 (nto_process_target::read_auxv): ... this.
3846 * nto-low.h (class nto_process_target): Update.
3847 * win32-low.cc (win32_target_ops): Update.
3849 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3851 Turn process_stratum_target's request_interrupt op into a method of
3854 * target.h (struct process_stratum_target): Remove the target op.
3855 (class process_target): Add the target op.
3857 Update the derived classes and callers below.
3859 * remote-utils.cc (putpkt_binary_1): Update.
3860 (input_interrupt): Update.
3862 * server.cc (handle_v_requests): Update.
3863 * linux-low.cc (linux_target_ops): Update.
3864 (linux_request_interrupt): Turn into ...
3865 (linux_process_target::request_interrupt): ... this.
3866 * linux-low.h (class linux_process_target): Update.
3867 * lynx-low.cc (lynx_target_ops): Update.
3868 (lynx_request_interrupt): Turn into ...
3869 (lynx_process_target::request_interrupt): ... this.
3870 * lynx-low.h (class lynx_process_target): Update.
3871 * nto-low.cc (nto_target_ops): Update.
3872 (nto_request_interrupt): Turn into ...
3873 (nto_process_target::request_interrupt): ... this.
3874 * nto-low.h (class nto_process_target): Update.
3875 * win32-low.cc (win32_target_ops): Update.
3876 (win32_request_interrupt): Turn into ...
3877 (win32_process_target::request_interrupt): ... this.
3878 * win32-low.h (class win32_process_target): Update.
3880 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3882 Turn process_stratum_target's look_up_symbols op into a method of
3885 * target.h (struct process_stratum_target): Remove the target op.
3886 (class process_target): Add the target op.
3887 * target.cc (process_target::look_up_symbols): Define.
3889 Update the derived classes and callers below.
3891 * server.cc (handle_query): Update.
3892 * linux-low.cc (linux_target_ops): Update.
3893 (linux_look_up_symbols): Turn into ...
3894 (linux_process_target::look_up_symbols): ... this.
3895 * linux-low.h (class linux_process_target): Update.
3896 * lynx-low.cc (lynx_target_ops): Update.
3897 * nto-low.cc (nto_target_ops): Update.
3898 * win32-low.cc (win32_target_ops): Update.
3900 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3902 Turn process_stratum_target's read_memory and write_memory
3903 ops into methods of process_target.
3905 * target.h (struct process_stratum_target): Remove the target ops.
3906 (class process_target): Add the target ops.
3908 Update the derived classes and callers below.
3910 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3911 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3912 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3913 (arm_get_syscall_trapinfo): Update.
3914 * linux-cris-low.cc (cris_breakpoint_at): Update.
3915 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3916 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3917 * linux-mips-low.cc (mips_breakpoint_at): Update.
3918 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3919 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3920 * linux-sh-low.cc (sh_breakpoint_at): Update.
3921 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3922 (sparc_store_gregset_from_stack): Update.
3923 (sparc_breakpoint_at): Update.
3924 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3925 * linux-tile-low.cc (tile_breakpoint_at): Update.
3926 * linux-x86-low.cc (x86_breakpoint_at): Update.
3927 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3928 * mem-brea.cc (insert_memory_breakpoint): Update.
3929 (validate_inserted_breakpoint): Update.
3930 * target.cc (read_inferior_memory): Update.
3931 (target_write_memory): Update.
3932 * linux-low.cc (linux_target_ops): Update.
3933 (linux_read_memory): Make a wrapper around the read_memory target
3935 (linux_process_target::read_memory): Rename from linux_read_memory.
3936 (linux_write_memory): Turn into ...
3937 (linux_process_target::write_memory): ... this.
3938 * linux-low.h (class linux_process_target): Update.
3939 * lynx-low.cc (lynx_target_ops): Update.
3940 (lynx_read_memory): Turn into ...
3941 (lynx_process_target::read_memory): ... this.
3942 (lynx_write_memory): Turn into ...
3943 (lynx_process_target::write_memory): ... this.
3944 * lynx-low.h (class lynx_process_target): Update.
3945 * nto-low.cc (nto_target_ops): Update.
3946 (nto_read_memory): Turn into ...
3947 (nto_process_target::read_memory): ... this.
3948 (nto_write_memory): Turn into ...
3949 (nto_process_target::write_memory): ... this.
3950 * nto-low.h (class nto_process_target): Update.
3951 * win32-low.cc (win32_target_ops): Update.
3952 (win32_read_inferior_memory): Turn into ...
3953 (win32_process_target::read_memory): ... this.
3954 (win32_write_inferior_memory): Turn into ...
3955 (win32_process_target::write_memory): ... this.
3956 * win32-low.h (class win32_process_target): Update.
3958 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3960 Turn process_stratum_target's prepare_to_access_memory and
3961 done_accessing_memory ops into methods of process_target.
3963 * target.h (struct process_stratum_target): Remove the target ops.
3964 (class process_target): Add the target ops.
3965 * target.cc (process_target::prepare_to_access_memory): Define.
3966 (process_target::done_accessing_memory): Define.
3967 (prepare_to_access_memory): Update.
3968 (done_accessing_memory): Update.
3970 Update the derived classes and callers below.
3972 * linux-low.cc (linux_target_ops): Update.
3973 (linux_prepare_to_access_memory): Turn into ...
3974 (linux_process_target::prepare_to_access_memory): ... this.
3975 (linux_done_accessing_memory): Turn into ...
3976 (linux_process_target::done_accessing_memory): ... this.
3977 * linux-low.h (class linux_process_target): Update.
3978 * lynx-low.cc (lynx_target_ops): Update.
3979 * nto-low.cc (nto_target_ops): Update.
3980 * win32-low.cc (win32_target_ops): Update.
3982 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3984 Turn process_stratum_target's fetch_registers and store_registers
3985 ops into methods of process_target.
3987 * target.h (struct process_stratum_target): Remove the target ops.
3988 (class process_target): Add the target ops.
3989 (fetch_inferior_registers): Update the macro.
3990 (store_inferior_registers): Update the macro.
3992 Update the derived classes and callers below.
3994 * linux-low.cc (linux_target_ops): Update.
3995 (linux_fetch_registers): Turn into ...
3996 (linux_process_target::fetch_registers): ... this.
3997 (linux_store_registers): Turn into ...
3998 (linux_process_target::store_registers): ... this.
3999 * linux-low.h (class linux_process_target): Update.
4000 * lynx-low.cc (lynx_target_ops): Update.
4001 (lynx_fetch_registers): Turn into ...
4002 (lynx_process_target::fetch_registers): ... this.
4003 (lynx_store_registers): Turn into ...
4004 (lynx_process_target::store_registers): ... this.
4005 * lynx-low.h (class lynx_process_target): Update.
4006 * nto-low.cc (nto_target_ops): Update.
4007 (nto_fetch_registers): Turn into ...
4008 (nto_process_target::fetch_registers): ... this.
4009 (nto_store_registers): Turn into ...
4010 (nto_process_target::store_registers): ... this.
4011 * nto-low.h (class nto_process_target): Update.
4012 * win32-low.cc (win32_target_ops): Update.
4013 (win32_fetch_inferior_registers): Turn into ...
4014 (win32_process_target::fetch_registers): ... this.
4015 (win32_store_inferior_registers): Turn into ...
4016 (win32_process_target::store_registers): ... this.
4017 * win32-low.h (class win32_process_target): Update.
4019 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4021 Turn process_stratum_target's wait op into a method of
4024 * target.h (struct process_stratum_target): Remove the target op.
4025 (class process_target): Add the target op.
4027 Update the derived classes and callers below.
4029 * target.cc (target_wait): Update.
4030 * linux-low.cc (linux_target_ops): Update.
4031 (linux_wait): Turn into ...
4032 (linux_process_target::wait): ... this.
4033 * linux-low.h (class linux_process_target): Update.
4034 * lynx-low.cc (lynx_target_ops): Update.
4035 (lynx_wait): Turn into ...
4036 (lynx_process_target::wait): ... this.
4037 * lynx-low.h (class lynx_process_target): Update.
4038 * nto-low.cc (nto_target_ops): Update.
4039 (nto_wait): Turn into ...
4040 (nto_process_target::wait): ... this.
4041 * nto-low.h (class nto_process_target): Update.
4042 * win32-low.cc (win32_target_ops): Update.
4043 (win32_wait): Turn into ...
4044 (win32_process_target::wait): ... this.
4045 (do_initial_child_stuff): Update.
4046 * win32-low.h (class win32_process_target): Update.
4048 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4050 Turn process_stratum_target's resume op into a method of
4053 * target.h (struct process_stratum_target): Remove the target op.
4054 (class process_target): Add the target op.
4056 Update the derived classes and callers below.
4058 * server.cc (resume): Update.
4059 * target.cc (target_stop_and_wait): Update.
4060 (target_continue_no_signal): Update.
4061 (target_continue): Update.
4062 * linux-low.cc (linux_target_ops): Update.
4063 (linux_resume): Turn into ...
4064 (linux_process_target::resume): ... this.
4065 * linux-low.h (class linux_process_target): Update.
4066 * lynx-low.cc (lynx_target_ops): Update.
4067 (lynx_resume): Turn into ...
4068 (lynx_process_target::resume): ... this.
4069 * lynx-low.h (class lynx_process_target): Update.
4070 * nto-low.cc (nto_target_ops): Update.
4071 (nto_resume): Turn into ...
4072 (nto_process_target::resume): ... this.
4073 * nto-low.h (class nto_process_target): Update.
4074 * win32-low.cc (win32_target_ops): Update.
4075 (win32_resume): Turn into ...
4076 (win32_process_target::resume): ... this.
4077 (win32_process_target::detach): Update.
4078 (do_initial_child_stuff): Update.
4079 * win32-low.h (class win32_process_target): Update.
4081 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4083 Turn process_stratum_target's thread_alive op into a method of
4086 * target.h (struct process_stratum_target): Remove the target op.
4087 (class process_target): Add the target op.
4088 (mythread_alive): Update the macro.
4090 Update the derived classes and callers below.
4092 * linux-low.cc (linux_target_ops): Update.
4093 (linux_thread_alive): Turn into ...
4094 (linux_process_target::thread_alive): ... this.
4095 (wait_for_sigstop): Update.
4096 * linux-low.h (class linux_process_target): Update.
4097 * lynx-low.cc (lynx_target_ops): Update.
4098 (lynx_thread_alive): Turn into ...
4099 (lynx_process_target::thread_alive): ... this.
4100 * lynx-low.h (class lynx_process_target): Update.
4101 * nto-low.cc (nto_target_ops): Update.
4102 (nto_thread_alive): Turn into ...
4103 (nto_process_target::thread_alive): ... this.
4104 * nto-low.h (class nto_process_target): Update.
4105 * win32-low.cc (win32_target_ops): Update.
4106 (win32_thread_alive): Turn into ...
4107 (win32_process_target::thread_alive): ... this.
4108 * win32-low.h (class win32_process_target): Update.
4110 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4112 Turn process_stratum_target's join op into a method of
4115 * target.h (struct process_stratum_target): Remove the target op.
4116 (class process_target): Add the target op.
4117 (join_inferior): Update the macro.
4119 Update the derived classes and callers below.
4121 * linux-low.cc (linux_target_ops): Update.
4122 (linux_join): Turn into ...
4123 (linux_process_target::join): ... this.
4124 * linux-low.h (class linux_process_target): Update.
4125 * lynx-low.cc (lynx_target_ops): Update.
4126 (lynx_join): Turn into ...
4127 (lynx_process_target::join): ... this.
4128 * lynx-low.h (class lynx_process_target): Update.
4129 * nto-low.cc (nto_target_ops): Update.
4130 (nto_process_target::join): Define.
4131 * nto-low.h (class nto_process_target): Update.
4132 * win32-low.cc (win32_target_ops): Update.
4133 (win32_join): Turn into ...
4134 (win32_process_target::join): ... this.
4135 * win32-low.h (class win32_process_target): Update.
4137 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4139 Turn process_stratum_target's mourn op into a method of
4142 * target.h (struct process_stratum_target): Remove the target op.
4143 (class process_target): Add the target op.
4145 Update the derived classes and callers below.
4147 * target.cc (target_mourn_inferior): Update.
4148 * linux-low.cc (linux_target_ops): Update.
4149 (linux_mourn): Turn into ...
4150 (linux_process_target::mourn): ... this.
4151 (handle_extended_wait): Update.
4152 (linux_process_target::kill): Update.
4153 (linux_process_target::detach): Update.
4154 * linux-low.h (class linux_process_target): Update.
4155 * lynx-low.cc (lynx_target_ops): Update.
4156 (lynx_mourn): Turn into ...
4157 (lynx_process_target::mourn): ... this.
4158 * lynx-low.h (class lynx_process_target): Update.
4159 * nto-low.cc (nto_target_ops): Update.
4160 (nto_mourn): Turn into ...
4161 (nto_process_target::mourn): ... this.
4162 * nto-low.h (class nto_process_target): Update.
4163 * win32-low.cc (win32_target_ops): Update.
4164 (win32_mourn): Turn into ...
4165 (win32_process_target::mourn): ... this.
4166 * win32-low.h (class win32_process_target): Update.
4168 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4170 Turn process_stratum_target's detach op into a method of
4173 * target.h (struct process_stratum_target): Remove the target op.
4174 (class process_target): Add the target op.
4175 (detach_inferior): Update the macro.
4177 Update the derived classes and callers below.
4179 * linux-low.cc (linux_target_ops): Update.
4180 (linux_detach): Turn into ...
4181 (linux_process_target::detach): ... this.
4182 * linux-low.h (class linux_process_target): Update.
4183 * lynx-low.cc (lynx_target_ops): Update.
4184 (lynx_detach): Turn into ...
4185 (lynx_process_target::detach): ... this.
4186 * lynx-low.h (class lynx_process_target): Update.
4187 * nto-low.cc (nto_target_ops): Update.
4188 (nto_detach): Turn into ...
4189 (nto_process_target::detach): ... this.
4190 * nto-low.h (class nto_process_target): Update.
4191 * win32-low.cc (win32_target_ops): Update.
4192 (win32_detach): Turn into ...
4193 (win32_process_target::detach): ... this.
4194 * win32-low.h (class win32_process_target): Update.
4196 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4198 Turn process_stratum_target's kill op into a method of
4201 * target.h (struct process_stratum_target): Remove the target op.
4202 (class process_target): Add the target op.
4204 Update the derived classes and callers below.
4206 * target.cc (kill_inferior): Update.
4207 * linux-low.cc (linux_target_ops): Update.
4208 (linux_kill): Turn into ...
4209 (linux_process_target::kill): ... this.
4210 * linux-low.h (class linux_process_target): Update.
4211 * lynx-low.cc (lynx_target_ops): Update.
4212 (lynx_kill): Turn into ...
4213 (lynx_process_target::kill): ... this.
4214 * lynx-low.h (class lynx_process_target): Update.
4215 * nto-low.cc (nto_target_ops): Update.
4216 (nto_kill): Turn into ...
4217 (nto_process_target::kill): ... this.
4218 * nto-low.h (class nto_process_target): Update.
4219 * win32-low.cc (win32_target_ops): Update.
4220 (win32_kill): Turn into ...
4221 (win32_process_target::kill): ... this.
4222 * win32-low.h (class win32_process_target): Update.
4224 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4226 Turn process_stratum_target's attach op into a method of
4229 * target.h (struct process_stratum_target): Remove the target op.
4230 (class process_target): Add the target op.
4231 (myattach): Update the macro.
4233 Update the derived classes and callers below.
4235 * linux-low.cc (linux_target_ops): Update.
4236 (linux_attach): Turn into ...
4237 (linux_process_target::attach): ... this.
4238 * linux-low.h (class linux_process_target): Update.
4239 * lynx-low.cc (lynx_target_ops): Update.
4240 (lynx_attach): Turn into ...
4241 (lynx_process_target::attach): ... this.
4242 * lynx-low.h (class lynx_process_target): Update.
4243 * nto-low.cc (nto_target_ops): Update.
4244 (nto_attach): Turn into ...
4245 (nto_process_target::attach): ... this.
4246 * nto-low.h (class nto_process_target): Update.
4247 * win32-low.cc (win32_target_ops): Update.
4248 (win32_attach): Turn into ...
4249 (win32_process_target::attach): ... this.
4250 * win32-low.h (class win32_process_target): Update.
4252 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4254 Turn process_stratum_target's post_create_inferior op into a method
4257 * target.h (struct process_stratum_target): Remove the target op.
4258 (class process_target): Add the target op.
4259 (target_post_create_inferior): Update the macro.
4260 * target.cc (process_target::post_create_inferior): Define.
4262 Update the derived classes and callers below.
4264 * linux-low.cc (linux_target_ops): Update.
4265 (linux_post_create_inferior): Turn into ...
4266 (linux_process_target::post_create_inferior): ... this.
4267 * linux-low.h (class linux_process_target): Update.
4268 * lynx-low.cc (lynx_target_ops): Update.
4269 * nto-low.cc (nto_target_ops): Update.
4270 * win32-low.cc (win32_target_ops): Update.
4272 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4274 Turn process_stratum_target's create_inferior op into a method of
4277 * target.h (struct process_stratum_target): Remove the target op.
4278 (class process_target): Add the target op.
4279 (create_inferior): Rename the macro to ...
4280 (target_create_inferior): ... this.
4282 Update the derived classes and callers below.
4284 * server.cc (handle_v_run): Update.
4285 (captured_main): Update.
4286 (process_serial_event): Update.
4287 * linux-low.cc (linux_target_ops): Update.
4288 (linux_create_inferior): Turn into ...
4289 (linux_process_target::create_inferior): ... this.
4290 * linux-low.h (class linux_process_target): Update.
4291 * lynx-low.cc (lynx_target_ops): Update.
4292 (lynx_create_inferior): Turn into ...
4293 (lynx_process_target::create_inferior): ... this.
4294 * lynx-low.h (class lynx_process_target): Update.
4295 * nto-low.cc (nto_target_ops): Update.
4296 (nto_create_inferior): Turn into ...
4297 (nto_process_target::create_inferior): ... this.
4298 * nto-low.h (class nto_process_target): Update.
4299 * win32-low.cc (win32_target_ops): Update.
4300 (win32_create_inferior): Turn into ...
4301 (win32_process_target::create_inferior): ... this.
4302 * win32-low.h (class win32_process_target): Update.
4304 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4306 * target.h (class process_target): New class definition.
4307 (struct process_stratum_target) <pt>: New field with type
4309 * linux-low.h (class linux_process_target): Define as a derived
4310 class of 'process_target'.
4311 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4313 * lynx-low.h (class lynx_process_target): Define as a derived
4314 class of 'process_target'.
4315 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4317 * nto-low.h (class nto_process_target): Define as a derived
4318 class of 'process_target'.
4319 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4321 * win32-low.h (class win32_process_target): Define as a derived
4322 class of 'process_target'.
4323 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4326 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4328 * configure: Regenerate.
4330 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4331 Andrew Burgess <andrew.burgess@embecosm.com>
4333 * linux-riscv-low.cc: New file.
4334 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4335 and nat/riscv-linux-tdesc.c.
4336 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4337 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4340 2020-02-14 Tom Tromey <tom@tromey.com>
4342 * acinclude.m4: Don't include acx_configure_dir.m4.
4343 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4344 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4345 (all, install-only, uninstall, clean-info, clean)
4346 (maintainer-clean): Don't recurse.
4347 (subdir_do, all-lib): Remove.
4348 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4350 (generated_files): Update.
4351 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4352 * configure: Rebuild.
4353 * configure.ac: Don't configure gnulib or libiberty.
4356 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4358 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4359 preparing the command line for CreateProcess.
4360 (win32_create_inferior): Reflect the program name in debugging
4361 output that shows the process and its command line.
4363 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4365 * Makefile.in: Rename source files from .c to .cc.
4366 * %.c: Rename to %.cc.
4367 * configure.ac: Rename server.c to server.cc.
4368 * configure: Re-generate.
4370 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4372 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4374 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4376 * win32-low.c (win32_create_inferior): Set signal_pid.
4378 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4379 Pedro Alves <palves@redhat.com>
4381 Skip building gdbserver in a cross-configuration.
4382 * configure.srv: Set $gdbserver_host depending on whether $target
4383 is $host. Use $gdbserver_host instead of $host.
4385 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4387 * configure: Re-generate.
4389 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4391 * configure: Re-generate.
4393 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4395 * acinclude.m4: Update warning.m4 path.
4397 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4399 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4400 (handle_exception): Set siginfo_er.
4401 (win32_xfer_siginfo): New function.
4403 2020-02-07 Tom Tromey <tom@tromey.com>
4404 Pedro Alves <palves@redhat.com>
4406 * README: Update build documentation.
4407 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4409 * configure.ac: Update paths.
4410 * configure: Rebuild.
4411 * acinclude.m4: Update paths.
4412 * Makefile.in: Update include paths.
4413 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4414 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4415 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4416 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4417 (%-generated.c): Update paths.
4418 * Move entire directory from ../gdb/gdbserver.
4420 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4422 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4424 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4426 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4427 assignment instead of srv_linux_obj.
4429 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4431 * server.c (handle_qxfer_libraries): Write segment-address with
4434 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4436 * Makefile.in (install-strip): New target.
4437 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4438 * aclocal.m4: Regenerate.
4439 * configure: Regenerate.
4440 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4442 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4444 * Makefile.in (SFILES): Adjust paths to point to real files.
4445 (OBS): Move waitstatus.o to target/waitstatus.o.
4446 (TAGS): Transform paths appropriately.
4448 (nat/%.o): ... this pattern rule.
4450 (target/%.o): ... this pattern rule.
4451 * configure.srv: Adjust paths throughout to include nat/ prefix
4452 with the revant files.
4453 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4454 * configure: Regenerate.
4456 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4458 * Makefile.in (TAGS): Remove config files from the recipe.
4460 2020-01-14 Tom Tromey <tom@tromey.com>
4462 * configure: Rebuild.
4463 * configure.ac: Remove any checks that were added to common.m4.
4464 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4467 2020-01-14 Tom Tromey <tom@tromey.com>
4469 * server.h: Include config.h.
4470 * gdbreplay.c: Include config.h.
4471 * configure: Rebuild.
4472 * configure.ac: Don't source common.host.
4473 * acinclude.m4: Update path.
4474 * Makefile.in (INCSUPPORT): New variable.
4475 (INCLUDE_CFLAGS): Add INCSUPPORT.
4476 (SFILES): Update paths.
4477 (version-generated.c): Update path to create-version.sh.
4478 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4480 2020-01-14 Tom Tromey <tom@tromey.com>
4482 * configure.ac (LIBS): Use WIN32APILIBS.
4483 (USE_WIN32API): Don't define.
4484 * configure: Rebuild.
4486 2020-01-14 Tom Tromey <tom@tromey.com>
4488 * configure: Rebuild.
4490 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4492 * Makefile.in (%-generated.c): Remove rule for files from
4495 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4497 * configure: Re-generate.
4499 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4501 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4503 * tracepoint.c (stop_tracing, flush_trace_buffer,
4504 about_to_request_buffer_space, get_trace_state_variable_value,
4505 set_trace_state_variable_value, gdb_collect): Add declaration.
4507 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4509 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4510 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4511 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4512 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4513 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4516 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4518 * inferiors.c: Include gdbsupport/common-inferior.h.
4520 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4522 * hostio-errno.c: Include hostio.h.
4524 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4526 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4529 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4531 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4532 * linux-arm-tdesc.h: Include arch/arm.h.
4534 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4536 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4538 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4540 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4541 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4543 2020-01-10 Pedro Alves <palves@redhat.com>
4545 * fork-child.c (post_fork_inferior): Pass target down to
4547 * inferiors.c (switch_to_thread): Add process_stratum_target
4549 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4550 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4551 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4552 * remote-utils.c (prepare_resume_reply): Pass the target to
4554 * target.c (the_target): Now a process_stratum_target.
4555 (done_accessing_memory): Pass the target to switch_to_thread.
4556 (set_target_ops): Ajust to use process_stratum_target.
4557 * target.h (struct target_ops): Rename to ...
4558 (struct process_stratum_target): ... this.
4559 (the_target, set_target_ops): Adjust.
4560 (prepare_to_access_memory): Adjust comment.
4561 * win32-low.c (child_xfer_memory): Adjust to use
4562 process_stratum_target.
4563 (win32_target_ops): Now a process_stratum_target.
4565 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4566 Pedro Alves <palves@redhat.com>
4568 * win32-low.c (get_child_debug_event): Extract the fatal exception
4569 from the exit status and convert to the equivalent Posix signal
4571 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4572 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4574 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4576 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4578 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4580 * server.c (gdbserver_version): Change copyright year to 2020.
4581 * gdbreplay.c (gdbreplay_version): Likewise.
4583 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4585 * configure: Regenerate.
4586 * configure.ac: Quote variable arguments of test.
4588 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4590 * Makefile.in: Fix build with GNU Make 3.81
4592 2019-12-16 Tom Tromey <tromey@adacore.com>
4594 * server.c (get_exec_file): Constify result.
4596 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4598 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4599 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4600 * config.in: Regenerate.
4601 * configure: Regenerate.
4602 * configure.ac: Don't check for strerror.
4603 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4604 Call safe_strerror instead of strerror.
4605 * server.h (strerror): Remove this now-unnecessary declaration.
4606 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4608 (gdb_agent_helper_thread): Likewise.
4609 * utils.c (perror_with_name): Likewise.
4611 2019-11-26 Tom Tromey <tom@tromey.com>
4613 * configure, config.in: Rebuild.
4615 2019-11-26 Tom Tromey <tom@tromey.com>
4617 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4618 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4620 * configure, config.in: Rebuild.
4622 2019-11-26 Tom Tromey <tom@tromey.com>
4624 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4625 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4626 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4627 * acinclude.m4: Include ax_pthread.m4.
4628 * config.in, configure: Rebuild.
4630 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4632 * debug.c (debug_set_output): Call safe_strerror instead of
4634 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4635 (linux_kill_one_lwp): Likewise.
4636 (linux_detach_one_lwp): Likewise.
4637 (linux_wait_for_event_filtered): Likewise.
4638 (store_register): Likewise.
4639 * lynx-low.c (lynx_attach): Likewise.
4640 * mem-break.c (insert_memory_breakpoint): Likewise.
4641 (remove_memory_breakpoint): Likewise.
4642 (delete_fast_tracepoint_jump): Likewise.
4643 (set_fast_tracepoint_jump): Likewise.
4644 (uninsert_fast_tracepoint_jumps_at): Likewise.
4645 (reinsert_fast_tracepoint_jumps_at): Likewise.
4646 * nto-low.c (nto_xfer_memory): Likewise.
4647 (nto_resume): Likewise.
4649 2019-11-20 Luis Machado <luis.machado@linaro.org>
4651 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4652 instead of register count.
4653 * tdesc.c (tdesc_contains_feature): New function.
4654 * tdesc.h (tdesc_contains_feature): New prototype.
4656 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4658 * Makefile.in: Add safe-strerror.c.
4659 * configure: Regenerate.
4660 * configure.ac: Don't source common.host.
4662 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4664 * config.in: Regenerate.
4665 * configure: Regenerate.
4667 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4669 * ax.c (ax_printf): Handle size_t_arg.
4671 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4673 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4674 * mi/mi-main.c (output_cores): Likewise.
4675 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4676 (linux_xfer_osdata_modules): Likewise.
4677 * remote.c (register_remote_support_xml): Likewise.
4678 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4679 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4681 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4683 * configure: Regenerate.
4684 * configure.ac: Remove check for strerror_r.
4686 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4688 * config.in: Regenerate.
4689 * configure: Regenerate.
4690 * configure.ac: Also check for strerror_r.
4692 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4694 * ax.h (debug_agent): Remove duplicate declaration.
4696 2019-10-26 Tom de Vries <tdevries@suse.de>
4698 * linux-aarch64-low.c: Fix typos in comments.
4699 * linux-arm-low.c: Same.
4700 * linux-low.c: Same.
4701 * linux-ppc-low.c: Same.
4702 * proc-service.c: Same.
4705 * tracepoint.c: Same.
4706 * win32-low.c: Same.
4708 2019-10-25 Tom Tromey <tromey@adacore.com>
4710 * utils.c (xstrdup): Remove.
4712 2019-10-23 Tom Tromey <tom@tromey.com>
4714 * configure, config.in: Rebuild.
4716 2019-10-23 Tom Tromey <tom@tromey.com>
4718 * configure: Rebuild.
4719 * acinclude.m4: Use m4_include, not sinclude.
4721 2019-10-17 Tom Tromey <tromey@adacore.com>
4723 * configure: Rebuild.
4724 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4725 in AC_CONFIG_FILES invocation.
4726 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4729 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4731 * server.c: Include xml-builtin.h.
4732 (get_xml_features): Don't declare xml_builtins here.
4734 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4736 * Makefile.in: Remove references to vec-ipa.o.
4738 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4740 * Makefile.in: Remove references to vec.c.
4742 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4744 * server.c (server_waiting): Change to bool.
4745 (extended_protocol): Likewise.
4746 (response_needed): Likewise.
4747 (exit_requested): Likewise.
4748 (run_once): Likewise.
4749 (report_no_resumed): Likewise.
4750 (non_stop): Likewise.
4751 (disable_packet_vCont): Likewise.
4752 (disable_packet_Tthread): Likewise.
4753 (disable_packet_qC): Likewise.
4754 (disable_packet_qfThreadInfo): Likewise.
4755 (handle_general_set): Update.
4756 (handle_detach): Update.
4757 (handle_monitor_command): Update.
4758 (handle_query): Update.
4759 (captured_main): Update.
4760 (process_serial_event): Update.
4761 * server.h (server_waiting): Change to bool.
4762 (disable_packet_vCont): Likewise.
4763 (disable_packet_Tthread): Likewise.
4764 (disable_packet_qC): Likewise.
4765 (disable_packet_qfThreadInfo): Likewise.
4766 (run_once): Likewise.
4767 (non_stop): Likewise.
4768 * target.c (target_stop_and_wait): Update.
4770 2019-10-02 Tom Tromey <tromey@adacore.com>
4772 * Makefile.in (SFILES): Add common-inferior.c.
4773 (OBS): Add common-inferior.o.
4774 * server.c (startup_with_shell): Don't define.
4776 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4778 * linux-low.c (linux_low_read_btrace): Update for change to
4781 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4783 * debug.c (debug_threads): Remove comment in favor of the header.
4784 * debug.h (using_threads): Add declaration.
4785 (debug_threads): Add comment.
4786 * linux-aarch64-low.c: Include debug.h and remove declaration of
4788 * nto-low.c: Likewise.
4789 * remote-utils.c: Likewise.
4790 * thread-db.c: Likewise.
4792 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4794 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4795 and powerpc-cell64l-ipa.o.
4796 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4797 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4798 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4801 * spu-low.c: Remove file.
4803 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4804 (parse_spufs_run): Remove.
4805 (ppc_get_pc): Remove Cell/B.E. support.
4806 (ppc_set_pc): Likewise.
4807 (ppc_breakpoint_at): Likewise.
4808 (ppc_arch_setup): Likewise.
4809 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4810 tdesc_powerpc_cell32l.
4811 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4812 or init_registers_powerpc_cell32l.
4813 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4814 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4815 or init_registers_powerpc_cell32l.
4816 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4817 (init_registers_powerpc_cell32l): Remove prototype.
4818 (init_registers_powerpc_cell64l): Likewise.
4820 * target.h (struct target_ops): Remove qxfer_spu member.
4821 * server.c (handle_qxfer_spu): Remove.
4822 (qxfer_packets): Remove entry for "spu".
4823 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4824 * linux-low.c (SPUFS_MAGIC): Remove.
4825 (spu_enumerate_spu_ids): Remove.
4826 (linux_qxfer_spu): Remove.
4827 (linux_target_ops): Remove qxfer_spu member.
4828 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4829 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4830 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4832 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4834 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4835 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4836 * config.in: Regenerate.
4837 * configure: Regenerate.
4839 2019-08-15 Tom Tromey <tromey@adacore.com>
4841 * target.c (target_write_memory): Use gdb::byte_vector.
4843 2019-08-15 Tom Tromey <tromey@adacore.com>
4845 * tracepoint.c (write_inferior_data_pointer)
4846 (write_inferior_integer, write_inferior_int8)
4847 (write_inferior_uinteger, m_tracepoint_action_download)
4848 (r_tracepoint_action_download, x_tracepoint_action_download)
4849 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4850 (download_agent_expr, download_tracepoint_1)
4851 (download_trace_state_variables, upload_fast_traceframes): Update.
4852 * server.c (gdb_write_memory): Update.
4853 * remote-utils.c (relocate_instruction): Update.
4854 * proc-service.c (ps_pdwrite): Update.
4855 * mem-break.c (remove_memory_breakpoint)
4856 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4857 (uninsert_fast_tracepoint_jumps_at)
4858 (reinsert_fast_tracepoint_jumps_at): Update.
4859 * linux-x86-low.c (append_insns)
4860 (i386_install_fast_tracepoint_jump_pad)
4861 (amd64_write_goto_address, i386_write_goto_address): Update.
4862 * linux-s390-low.c (append_insns, s390_write_goto_address):
4864 * linux-ppc-low.c (ppc_relocate_instruction)
4865 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4866 (ppc_write_goto_address): Update.
4867 * linux-aarch64-low.c (append_insns): Update.
4868 * target.h (struct target_ops): Update.
4869 (write_inferior_memory): Don't declare.
4870 * target.c (target_write_memory): Rename from
4871 write_inferior_memory. Remove old target_write_memory.
4873 2019-08-15 Tom Tromey <tromey@adacore.com>
4875 * target.c (write_inferior_memory): Use std::vector.
4877 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4880 * configure.ac: Drop enable-libmcheck support.
4881 * configure, config.in: Rebuild.
4882 * acinclude.m4: Don't include it.
4884 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4886 * configure.srv: Remove Arm xml files.
4888 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4890 * configure.srv: Add new files. Remove xml generated files.
4891 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4893 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4894 * linux-aarch32-tdesc.c: New file.
4895 * linux-aarch32-tdesc.h: New file.
4896 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4897 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4898 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4899 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4900 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4901 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4902 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4903 (arm_read_description): Call arm_linux_read_description.
4904 (initialize_low_arch): Don't init registers.
4905 * linux-arm-tdesc.c: New file.
4906 * linux-arm-tdesc.h: New file.
4908 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4910 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4911 Move counter inside for.
4912 (arm_read_description): Check ptrace earlier.
4913 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4915 2019-07-09 Tom Tromey <tom@tromey.com>
4917 * configure: Rebuild.
4918 * configure.ac: Change common to gdbsupport.
4919 * acinclude.m4: Change common to gdbsupport.
4920 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4921 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4922 common to gdbsupport.
4923 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4924 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4925 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4926 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4927 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4928 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4929 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4930 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4931 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4932 common to gdbsupport.
4934 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4936 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4938 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4940 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4942 * configure.srv: Remove legacy xml.
4943 * linux-aarch64-low.c (initialize_low_arch): Remove
4944 initialize_low_tdesc call.
4945 * linux-aarch64-tdesc-selftest.c: Remove file.
4946 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4947 * linux-x86-low.c (initialize_low_arch): Remove
4948 initialize_low_tdesc call.
4949 * linux-x86-tdesc-selftest.c: Remove file.
4950 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4952 2019-06-20 Tom de Vries <tdevries@suse.de>
4954 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4955 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4957 2019-06-19 Tom de Vries <tdevries@suse.de>
4959 * debug.h (debug_write): Change return type to ssize_t.
4960 * debug.c (debug_write): Same.
4962 2019-06-14 Tom Tromey <tom@tromey.com>
4964 * configure.ac: Use new path to gnulib.
4965 * configure: Rebuild.
4966 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4969 2019-06-11 Tom Tromey <tom@tromey.com>
4971 * Makefile.in (SFILES): Add alloc.c.
4973 (IPA_OBJS): Add alloc-ipa.o.
4974 (alloc-ipa.o): New target.
4975 (%.o: ../%.c): New pattern rule.
4977 2019-06-10 Tom Tromey <tromey@adacore.com>
4979 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4980 end warning with a newline.
4981 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4983 * thread-db.c (attach_thread): Don't end warning with a newline.
4984 (thread_db_notice_clone): Likewise.
4985 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4987 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4988 end warning with a newline.
4990 2019-06-04 Pedro Alves <palves@redhat.com>
4992 * server.c (captured_main): Use make_unique_xstrdup.
4994 2019-06-02 Tom Tromey <tom@tromey.com>
4996 * gdbreplay.c (fromhex): Remove.
4997 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4999 2019-05-29 Tom Tromey <tromey@adacore.com>
5001 * configure: Rebuild.
5003 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5005 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5006 sign extension code on 32-bit builds.
5008 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5011 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5013 2019-04-19 Tom Tromey <tom@tromey.com>
5015 * server.c (struct vstop_notif): Derive from notif_event.
5017 (queue_stop_reply): Update.
5018 (remove_all_on_match_ptid): Change type. Rewrite.
5019 (discard_queued_stop_replies): Rewrite.
5020 (in_queued_stop_replies_ptid): Change type.
5021 (in_queued_stop_replies): Rewrite.
5022 (notif_stop): Update.
5023 (queue_stop_reply_callback): Update.
5024 (captured_main): Don't call initialize_notif.
5025 (push_stop_notification): Update.
5026 * notif.c (notif_write_event, handle_notif_ack)
5027 (notif_event_enque, notif_push): Update.
5028 (notif_event_xfree, initialize_notif): Remove.
5029 * notif.h (struct notif_event): Include <list>, not
5031 (struct notif_server) <queue>: Now a std::list.
5032 (notif_event_p): Remove typedef.
5033 (initialize_notif): Don't declare.
5034 (struct notif_event): Add virtual destructor.
5036 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5038 * ax.c (ax_vdebug): Call debug_printf.
5039 * debug.c (debug_write): New function.
5040 * debug.h (debug_write): New declaration.
5041 * linux-low.c (sigchld_handler): Call debug_write.
5043 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5045 * debug.c (debug_set_output): New function.
5046 (debug_vprintf): Send output to debug_file.
5047 (debug_flush): Likewise.
5048 * debug.h (debug_set_output): New declaration.
5049 * server.c (handle_monitor_command): Add debug-file option.
5050 (captured_main): Likewise.
5052 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5054 * debug.c (remote_debug): Add definition.
5055 * debug.h (remote_debug): Add declaration.
5056 * hostio.c (remote_debug): Remove declaration.
5057 * remote-utils.c (struct ui_file): Likewise.
5058 (remote_debug): Likewise.
5059 * remote-utils.h (remote_debug): Likewise,
5060 * server.c (remote_debug): Remove definition.
5062 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5064 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5065 when using a 64-bit gdbserver.
5067 2019-04-09 Tom Tromey <tromey@adacore.com>
5069 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5071 2019-04-08 Tom Tromey <tom@tromey.com>
5073 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5075 (linux_resume_one_lwp): Likewise.
5077 2019-04-08 Tom Tromey <tom@tromey.com>
5079 * gdbreplay.c: Update.
5080 * linux-low.c: Update.
5083 2019-04-08 Tom Tromey <tom@tromey.com>
5085 * server.c: Use C++ exception handling.
5086 * linux-low.c: Use C++ exception handling.
5087 * gdbreplay.c: Use C++ exception handling.
5089 2019-04-08 Tom Tromey <tom@tromey.com>
5091 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5092 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5093 (captured_main, main): Update.
5094 * gdbreplay.c (main): Update.
5096 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5098 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5099 value in argument pointer, return 1 if the entry is found and 0
5100 otherwise. Move comment.
5101 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5102 * linux-low.h (linux_get_auxv): Declare.
5103 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5105 2019-04-05 Tom Tromey <tromey@adacore.com>
5107 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5110 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5112 * linux-low.c (AT_HWCAP2): Add define if not already included.
5114 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5116 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5117 (aarch64_arch_setup): Call linux_get_hwcap.
5118 * linux-arm-low.c (arm_get_hwcap): Remove function.
5119 (arm_read_description): Call linux_get_hwcap.
5120 * linux-low.c (linux_get_auxv): New function.
5121 (linux_get_hwcap): Likewise.
5122 (linux_get_hwcap2): Likewise.
5123 * linux-low.h (linux_get_hwcap): New declaration.
5124 (linux_get_hwcap2): Likewise.
5125 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5126 (ppc_arch_setup): Call linux_get_hwcap.
5127 * linux-s390-low.c (s390_get_hwcap): Remove function.
5128 (s390_arch_setup): Call linux_get_hwcap.
5130 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5131 Jiong Wang <jiong.wang@arm.com>
5133 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5134 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5136 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5138 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5139 Jiong Wang <jiong.wang@arm.com>
5141 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5142 (aarch64_get_hwcap): New function.
5143 (aarch64_arch_setup): Read APIA hwcap.
5145 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5146 Jiong Wang <jiong.wang@arm.com>
5148 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5149 (initialize_low_tracepoint): Likewise.
5150 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5151 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5152 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5153 (aarch64_linux_read_description): Likewise.
5154 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5156 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5158 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5159 i386_create_target_description for 'segments' parameter.
5160 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5161 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5162 * win32-i386-low.c (i386_arch_setup): Likewise.
5164 2019-03-12 Tom Tromey <tromey@adacore.com>
5166 * linux-low.c (iterate_over_lwps): Update.
5168 2019-03-06 Tom Tromey <tom@tromey.com>
5170 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5171 (captured_main): Use SCOPE_EXIT.
5173 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5175 * configure.srv: Use '$enable_unittest' instead of '$development'
5176 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5179 2019-02-27 Tom Tromey <tromey@adacore.com>
5181 * gdbreplay.c (logchar): Handle \r\n.
5183 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5185 * linux-low.c (linux_attach): Add process before lwp.
5186 * server.c (attach_inferior): Check if already attached.
5188 2019-02-07 Tom Tromey <tom@tromey.com>
5190 * x86-tdesc.h: Rename include guard.
5191 * x86-low.h: Add include guard.
5192 * wincecompat.h: Rename include guard.
5193 * win32-low.h: Add include guard.
5194 * utils.h: Rename include guard.
5195 * tracepoint.h: Rename include guard.
5196 * tdesc.h: Rename include guard.
5197 * target.h: Rename include guard.
5198 * server.h: Rename include guard.
5199 * remote-utils.h: Rename include guard.
5200 * regcache.h: Rename include guard.
5201 * nto-low.h: Rename include guard.
5202 * notif.h: Add include guard.
5203 * mem-break.h: Rename include guard.
5204 * lynx-low.h: Add include guard.
5205 * linux-x86-tdesc.h: Add include guard.
5206 * linux-s390-tdesc.h: Add include guard.
5207 * linux-ppc-tdesc-init.h: Add include guard.
5208 * linux-low.h: Add include guard.
5209 * linux-aarch64-tdesc.h: Add include guard.
5210 * linux-aarch32-low.h: Add include guard.
5211 * inferiors.h: Rename include guard.
5212 * i387-fp.h: Rename include guard.
5213 * hostio.h: Rename include guard.
5214 * gdbthread.h: Rename include guard.
5215 * gdb_proc_service.h: Rename include guard.
5216 * event-loop.h: Rename include guard.
5217 * dll.h: Rename include guard.
5218 * debug.h: Rename include guard.
5219 * ax.h: Rename include guard.
5221 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5224 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5225 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5227 2019-01-25 Tom Tromey <tom@tromey.com>
5229 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5231 2019-01-25 Tom Tromey <tom@tromey.com>
5233 * win32-low.c: Fix common/ includes.
5234 * win32-i386-low.c: Fix common/ includes.
5235 * tracepoint.c: Fix common/ includes.
5236 * thread-db.c: Fix common/ includes.
5237 * target.h: Fix common/ includes.
5238 * symbol.c: Fix common/ includes.
5239 * spu-low.c: Fix common/ includes.
5240 * server.h: Fix common/ includes.
5241 * server.c: Fix common/ includes.
5242 * remote-utils.c: Fix common/ includes.
5243 * regcache.h: Fix common/ includes.
5244 * regcache.c: Fix common/ includes.
5245 * nto-x86-low.c: Fix common/ includes.
5246 * notif.h: Fix common/ includes.
5247 * mem-break.h: Fix common/ includes.
5248 * lynx-low.c: Fix common/ includes.
5249 * lynx-i386-low.c: Fix common/ includes.
5250 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5251 * linux-x86-low.c: Fix common/ includes.
5252 * linux-low.c: Fix common/ includes.
5253 * inferiors.h: Fix common/ includes.
5254 * i387-fp.c: Fix common/ includes.
5255 * hostio.c: Fix common/ includes.
5256 * hostio-errno.c: Fix common/ includes.
5257 * gdbthread.h: Fix common/ includes.
5258 * gdbreplay.c: Fix common/ includes.
5259 * fork-child.c: Fix common/ includes.
5260 * event-loop.c: Fix common/ includes.
5262 (enum gdb_agent_op): Fix common/ includes.
5264 2019-01-21 Tom Tromey <tom@tromey.com>
5266 * tracepoint.c: Fix includes.
5267 * remote-utils.c: Fix includes.
5268 * linux-x86-low.c: Fix includes.
5270 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5272 * gdbreplay.c (gdbreplay_version): Update copyright year in
5274 * server.c (gdbserver_version): Likewise.
5276 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5278 * linux-low.c (add_lwp): Switch ordering.
5280 2018-11-29 Tom Tromey <tom@tromey.com>
5282 * win32-low.c (win32_join): Take pid, not process.
5283 * target.h (struct target_ops) <join>: Change argument type.
5284 (join_inferior): Change argument name.
5285 * spu-low.c (spu_join): Take pid, not process.
5286 * server.c (handle_detach): Preserve pid before destroying
5288 * lynx-low.c (lynx_join): Take pid, not process.
5289 * linux-low.c (linux_join): Take pid, not process.
5291 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5293 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5294 (aarch64_cannot_fetch_register): Likewise.
5295 (struct linux_target_ops): Update references.
5297 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5299 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5301 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5303 * configure.srv (ipa_ppc_linux_regobj): Add
5304 powerpc-isa207-htm-vsx32l-ipa.o and
5305 powerpc-isa207-htm-vsx64l-ipa.o.
5306 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5307 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5308 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5309 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5310 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5311 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5312 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5313 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5314 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5315 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5316 (init_registers_powerpc_isa207_htm_vsx32l)
5317 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5318 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5319 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5320 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5321 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5322 (ppc_store_tm_ctarregset): New functions.
5323 (ppc_regsets): Add entries for HTM regsets.
5324 (ppc_arch_setup): Set htm in features struct when needed. Set
5325 sizes for the HTM regsets.
5326 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5327 (initialize_low_arch): Call
5328 init_registers_powerpc_isa207_htm_vsx32l and
5329 init_registers_powerpc_isa207_htm_vsx64l.
5330 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5331 PPC_TDESC_ISA207_HTM_VSX.
5332 (initialize_low_tracepoint): Call
5333 init_registers_powerpc_isa207_htm_vsx32l and
5334 init_registers_powerpc_isa207_htm_vsx64l.
5336 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5338 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5339 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5340 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5341 (ppc_store_pmuregset): New functions.
5342 (ppc_regsets): Add entries for ebb and pmu regsets.
5343 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5344 pmu regsets are available. Set sizes for these regsets.
5346 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5348 * configure.srv (ipa_ppc_linux_regobj): Add
5349 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5350 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5351 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5352 rs6000/powerpc-isa207-vsx32l.xml, and
5353 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5354 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5355 <PPC_TDESC_ISA207_VSX>: New enum value.
5356 (init_registers_powerpc_isa207_vsx32l): Declare.
5357 (init_registers_powerpc_isa207_vsx64l): Declare.
5358 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5359 (ppc_store_tarregset): New function.
5360 (ppc_regsets): Add entry for the TAR regset.
5361 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5362 size for the TAR regsets.
5363 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5364 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5365 and init_registers_powerpc_isa207_vsx64l.
5366 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5367 (initialize_low_tracepoint): Call
5368 init_registers_powerpc_isa207_vsx32l and
5369 init_registers_powerpc_isa207_vsx64l.
5371 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5372 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5374 * configure.srv (ipa_ppc_linux_regobj): Add
5375 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5376 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5377 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5378 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5379 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5380 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5381 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5382 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5383 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5384 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5385 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5386 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5387 (ppc_hwcap): Add comment.
5388 (ppc_hwcap2): New global.
5389 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5390 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5391 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5392 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5393 when needed. Set sizes for the the DSCR and PPR regsets.
5394 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5395 (initialize_low_arch): Call
5396 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5397 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5398 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5399 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5400 (initialize_low_tracepoint): Call
5401 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5402 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5404 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5406 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5408 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5409 Simon Marchi <simark@simark.ca>
5411 * acinclude.m4: Include "../selftest.m4".
5412 * configure: Regenerate.
5413 * configure.ac: Use "GDB_AC_SELFTEST".
5414 * configure.srv: Use "$enable_unittests" instead of
5415 "$development" when checking whether unit tests have been
5417 * server.c (captured_main): Update message informing that
5418 selftests have been disabled.
5420 2018-10-04 Tom Tromey <tom@tromey.com>
5422 * configure: Rebuild.
5424 2018-10-04 Tom Tromey <tom@tromey.com>
5426 * server.c (handle_status): Rename inner "thread".
5427 (process_serial_event): Declare "res" in 'm' case.
5428 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5429 (iterate_over_lwps): Rename inner "thread".
5430 (linux_qxfer_libraries_svr4): Rename inner "len".
5431 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5433 2018-10-01 Gary Benson <gbenson@redhat.com>
5435 * gdb_proc_service.h: Moved common code to
5436 common/gdb_proc_service.h.
5438 2018-10-01 Gary Benson <gbenson@redhat.com>
5440 * gdb_proc_service.h: Synchronize comments and whitespace with
5441 GDB's version of this file.
5443 2018-09-25 Tom Tromey <tom@tromey.com>
5445 * configure: Rebuild.
5446 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5448 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5450 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5451 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5452 ($(IPA_LIB)): Sort IPA_OBJS.
5454 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5456 * Makefile.in: Remove references to $(ADD_DEPS).
5458 2018-09-16 Tom Tromey <tom@tromey.com>
5460 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5462 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5465 2018-09-05 Tom Tromey <tom@tromey.com>
5467 * configure: Rebuild.
5469 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5472 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5474 2018-08-27 Tom Tromey <tom@tromey.com>
5477 * configure: Rebuild.
5479 2018-08-27 Tom Tromey <tom@tromey.com>
5481 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5482 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5483 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5484 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5485 (s390x_emit_stack_adjust): Add casts to unsigned char.
5487 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5491 * server.h (struct client_state) <disable_randomization>:
5494 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5496 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5498 (mips_supply_ptrace_register): Likewise.
5500 2018-07-22 Tom Tromey <tom@tromey.com>
5502 * configure: Rebuild.
5504 2018-07-22 Tom Tromey <tom@tromey.com>
5506 * win32-low.c (win32_create_inferior): Remove unused variables.
5507 * gdbreplay.c (remote_open): Remove unused variable.
5508 * remote-utils.c (remote_prepare): Remove unused variable.
5509 * x86-tdesc.h (X86_TDESC_H): Define.
5510 (amd64_expedite_regs): Define conditionally.
5511 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5512 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5513 * remote-utils.c (readchar): Remove unused variable.
5515 2018-07-13 Pedro Alves <palves@redhat.com>
5517 * linux-low.c (linux_kill): Change parameter to process_info
5518 pointer instead of pid. Adjust.
5519 * lynx-low.c (lynx_kill): Likewise.
5520 * nto-low.c (nto_kill): Likewise.
5521 * spu-low.c (spu_kill): Likewise.
5522 * win32-low.c (win32_kill): Likewise.
5523 * server.c (handle_v_kill, kill_inferior_callback)
5524 (detach_or_kill_for_exit): Adjust.
5525 * target.c (kill_inferior): Change parameter to process_info
5526 pointer instead of pid. Adjust.
5527 * target.h (struct target_ops) <kill>: Change parameter to
5528 process_info pointer instead of pid. Adjust all implementations
5530 (kill_inferior): Likewise.
5532 2018-07-13 Pedro Alves <palves@redhat.com>
5534 * linux-low.c (linux_detach, linux_join): Change parameter to
5535 process_info pointer instead of pid. Adjust.
5536 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5537 * nto-low.c (nto_detach): Likewise.
5538 * spu-low.c (spu_detach, spu_join): Likewise.
5539 * win32-low.c (win32_detach, win32_join): Likewise.
5540 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5541 * target.h (struct target_ops) <detach, join>: Change parameter to
5542 process_info pointer instead of pid. Adjust all implementations
5544 (detach_inferior, join_inferior): Rename 'pid' parameter to
5547 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5548 Jan Kratochvil <jan.kratochvil@redhat.com>
5549 Paul Fertser <fercerpav@gmail.com>
5550 Tsutomu Seki <sekiriki@gmail.com>
5552 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5553 (OBS): Add 'common/netstuff.o'.
5554 (GDBREPLAY_OBS): Likewise.
5555 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5556 (remote_open): Implement support for IPv6
5558 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5560 (handle_accept_event): Accept connections from IPv6 sources.
5561 (remote_prepare): Handle IPv6-style hostnames; implement
5562 support for IPv6 connections.
5563 (remote_open): Implement support for printing connections from
5566 2018-07-11 Pedro Alves <palves@redhat.com>
5569 * mem-break.c (any_persistent_commands): Add process_info
5570 parameter and use it instead of relying on the current process.
5571 Change return type to bool.
5572 * mem-break.h (any_persistent_commands): Add process_info
5573 parameter and change return type to bool.
5574 * server.c (handle_detach): Remove require_running_or_return call.
5575 Look up the process_info for the process we're about to detach.
5576 If not found, return back error to GDB. Adjust
5577 any_persistent_commands call to pass down a process pointer.
5579 2018-07-11 Pedro Alves <palves@redhat.com>
5581 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5582 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5583 instead of collect_register_by_name.
5584 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5585 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5587 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5588 Pedro Alves <palves@redhat.com>
5590 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5592 2018-07-03 Tom Tromey <tom@tromey.com>
5594 * linux-low.c: Update.
5595 * lynx-low.c: Update.
5596 * mem-break.c: Update.
5597 * nto-low.c: Update.
5598 * remote-utils.c: Update.
5600 * spu-low.c: Update.
5602 * win32-low.c: Update.
5604 2018-07-03 Tom Tromey <tom@tromey.com>
5608 2018-07-03 Tom Tromey <tom@tromey.com>
5610 * linux-low.c: Update.
5612 2018-07-03 Tom Tromey <tom@tromey.com>
5616 2018-07-03 Tom Tromey <tom@tromey.com>
5618 * linux-low.c: Update.
5619 * linux-mips-low.c: Update.
5620 * lynx-low.c: Update.
5621 * nto-low.c: Update.
5622 * remote-utils.c: Update.
5624 * spu-low.c: Update.
5626 * thread-db.c: Update.
5628 2018-07-03 Tom Tromey <tom@tromey.com>
5630 * linux-low.c: Update.
5631 * linux-mips-low.c: Update.
5632 * lynx-low.c: Update.
5633 * mem-break.c: Update.
5634 * nto-low.c: Update.
5635 * remote-utils.c: Update.
5637 * spu-low.c: Update.
5639 * tracepoint.c: Update.
5641 2018-07-03 Tom Tromey <tom@tromey.com>
5643 * linux-low.c: Update.
5644 * linux-ppc-low.c: Update.
5645 * linux-x86-low.c: Update.
5646 * proc-service.c: Update.
5648 * spu-low.c: Update.
5649 * thread-db.c: Update.
5650 * win32-low.c: Update.
5652 2018-07-03 Tom Tromey <tom@tromey.com>
5654 * linux-low.c: Update.
5655 * lynx-low.c: Update.
5656 * nto-low.c: Update.
5657 * remote-utils.c: Update.
5658 * spu-low.c: Update.
5659 * thread-db.c: Update.
5660 * win32-low.c: Update.
5662 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5664 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5665 parameter in call to 'amd64_create_target_description'.
5667 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5669 * x86-tdesc.h: Remove executable permission flag.
5671 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5673 * configure.ac: Remove AC_PREREQ, add missing quoting.
5674 * configure: Re-generate.
5675 * config.in: Re-generate.
5676 * aclocal.m4: Re-generate.
5678 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5680 * tracepoint.h (current_traceframe): Remove declaration.
5682 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5684 * linux-aarch64-low.c (is_sve_tdesc): New function.
5685 (aarch64_sve_regs_copy_to_regcache): Likewise.
5686 (aarch64_sve_regs_copy_from_regcache): Likewise.
5687 (aarch64_regs_info): Add SVE checks.
5688 (initialize_low_arch): Initialize SVE.
5690 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5692 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5694 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5696 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5697 (initialize_low_tracepoint): Likewise
5698 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5699 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5701 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5703 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5705 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5707 * server.h (PBUFSIZ): Increase size
5709 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5711 * regcache.c (regcache::raw_compare): New function.
5712 * regcache.h (regcache::raw_compare): New declaration.
5714 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5716 * regcache.c (new_register_cache): Use new.
5717 (free_register_cache): Use delete.
5718 (register_data): Use const.
5719 (supply_register): Move body inside regcache.
5720 (regcache::raw_supply): New override function.
5721 (collect_register): Move body inside regcache.
5722 (regcache::raw_collect): New override function.
5723 (regcache::get_register_status): New override function.
5724 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5726 2018-06-09 Tom Tromey <tom@tromey.com>
5728 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5730 (event_queue): Use std::queue.
5731 (gdb_event_xfree): Remove.
5732 (initialize_event_loop, process_event, wait_for_event): Update.
5734 2018-06-08 Stan Cox <scox@redhat.com>
5736 * win32-low.c (win32_create_inferior): last_ptid and last_status
5737 moved to client_state.
5739 2018-06-08 Pedro Alves <palves@redhat.com>
5741 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5742 common/common-exceptions.o, common/common-utils.o,
5743 common/errors.o, common/print-utils.o and utils.o.
5744 * gdbreplay.c: Include "common-defs.h" instead of the two
5745 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5746 string.h or alloca.h.
5747 (perror_with_name): Delete.
5748 (remote_open): Use xstrdup instead of strdup.
5749 (main): Rename to ...
5750 (captured_main): ... this.
5753 2018-06-08 Tom Tromey <tom@tromey.com>
5755 * linux-low.c (linux_low_read_btrace): Update.
5757 2018-06-04 Stan Cox <scox@redhat.com>
5759 * server.h (struct client_state): New.
5760 * server.c (cont_thread, general_thread, multi_process)
5761 (report_fork_events, report_vfork_events, report_exec_events)
5762 (report_thread_events, swbreak_feature, hwbreak_feature)
5763 (vCont_supported, disable_randomization, pass_signals)
5764 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5765 Moved to client_state.
5766 * remote-utils.c (remote_debug, noack_mode)
5767 (transport_is_reliable): Moved to client_state.
5768 * tracepoint.c (current_traceframe): Moved to client_state.
5771 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5772 linux-low.c, remote-utils.h, target.c: Use client_state.
5774 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5776 * configure.srv: Add new c/h file.
5778 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5780 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5783 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5785 * gdb.arch/mips-fpregset-core.exp: New test.
5786 * gdb.arch/mips-fpregset-core.c: New test source.
5788 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5791 * hostio.c (require_int): Do not report overflow for integers
5792 between 0xfffffff and 0x7fffffff.
5794 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5796 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5797 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5798 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5800 (the_low_target): Wire them.
5802 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5804 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5805 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5806 mode. Call collect_register_by_name with vscr using
5807 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5808 (ppc_store_vrregset): Add and set vscr_offset variable as in
5809 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5812 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5814 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5815 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5816 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5818 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5820 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5821 (ppc_store_vsxregset): Likewise.
5822 (ppc_fill_vrregset): Likewise.
5823 (ppc_store_vrregset): Likewise.
5824 (ppc_fill_evrregset): Likewise.
5825 (ppc_store_evrregset): Likewise.
5826 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5827 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5830 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5832 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5833 wordsize of the inferior. Call ppc_linux_target_wordsize.
5835 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5837 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5838 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5839 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5840 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5841 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5842 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5843 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5844 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5845 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5846 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5847 (tdesc_powerpc_e500l): Remove.
5848 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5849 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5850 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5851 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5853 (ppc_arch_setup): Remove target description matching code. Fill a
5854 ppc_linux_features struct and call ppc_linux_match_description
5857 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5859 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5860 width of the requested register exceeds the width of the
5862 (mips_cannot_store_register): Likewise.
5864 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5866 * linux-mips-low.c (mips_fetch_register): New function. Update
5868 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5869 (the_low_target): Wire `mips_fetch_register'.
5871 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5873 * lynx-i386-low.c (LYNXOS_178): New macro.
5874 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5875 the layout on LynxOS-178.
5876 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5877 handle floating point registers that are not supported by
5880 2018-05-10 Tom Tromey <tom@tromey.com>
5882 * configure: Rebuild.
5884 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5887 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5888 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5889 Use it to set the expedite_regs field in the given tdesc.
5890 * x86-tdesc.h: New file.
5891 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5892 Adjust following the addition of the new expedite_regs parameter
5893 to init_target_desc.
5894 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5895 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5896 (i386_linux_read_description, amd64_linux_read_description):
5897 Adjust following the addition of the new expedite_regs parameter
5898 to init_target_desc.
5899 * lynx-i386-low.c: #include "x86-tdesc.h".
5900 (lynx_i386_arch_setup): Adjust following the addition of the new
5901 expedite_regs parameter to init_target_desc.
5902 * nto-x86-low.c: #include "x86-tdesc.h".
5903 (nto_x86_arch_setup): Adjust following the addition of the new
5904 expedite_regs parameter to init_target_desc.
5905 * win32-i386-low.c: #include "x86-tdesc.h".
5906 (i386_arch_setup): Adjust following the addition of the new
5907 expedite_regs parameter to init_target_desc.
5909 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5912 * win32-low.c (win32_create_inferior): Add call to my_wait
5913 setting last_status global.
5915 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5918 * win32-low.c (create_process): Only call gdb_tilde_expand if
5919 inferior_cwd is not NULL.
5921 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5923 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5924 registers to the cache if their values have changed.
5925 (i387_xsave_to_cache): Provide default values for x87 control
5926 registers when these features are available, but disabled.
5927 * regcache.c (supply_register_by_name_zeroed): New function.
5928 * regcache.h (supply_register_by_name_zeroed): Declare new
5931 2018-05-07 Tom Tromey <tom@tromey.com>
5933 * configure: Rebuild.
5935 2018-05-04 Tom Tromey <tom@tromey.com>
5937 * configure: Rebuild.
5939 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5940 Pedro Alves <palves@redhat.com>
5942 * linux-aarch64-low.c (aarch64_stopped_data_address):
5945 2018-04-27 Tom Tromey <tom@tromey.com>
5947 * configure: Rebuild.
5949 2018-04-23 Tom Tromey <tom@tromey.com>
5951 * configure: Rebuild.
5953 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5955 * Makefile.in (depcomp): Add "..".
5956 (all_deps_files): New and use it.
5958 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5960 * configure.srv (aarch64*-*-linux*): Don't include xml.
5961 (i[34567]86-*-cygwin*): Likewise.
5962 (i[34567]86-*-linux*): Likewise.
5963 (i[34567]86-*-lynxos*): Likewise.
5964 (i[34567]86-*-mingw32ce*): Likewise.
5965 (i[34567]86-*-mingw*): Likewise.
5966 (i[34567]86-*-nto*): Likewise.
5967 (tic6x-*-uclinux): Likewise.
5968 (x86_64-*-linux*): Likewise.
5969 (x86_64-*-mingw*): Likewise.
5970 (x86_64-*-cygwin*): Likewise.
5972 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5974 * tdesc.c: Remove xml parameter.
5976 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5978 * server.c (get_features_xml): Remove cast.
5979 * tdesc.c (void target_desc::accept): Fill in function.
5980 (tdesc_get_features_xml): Remove old xml creation.
5981 (print_xml_feature::visit_pre): Add xml vistor.
5982 * tdesc.h (struct target_desc): Make xmltarget mutable.
5983 (tdesc_get_features_xml): Remove declaration.
5985 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5987 * tdesc.c (tdesc_architecture_name): Add new function.
5988 (tdesc_osabi_name): Likewise.
5989 (tdesc_get_features_xml): Use new functions.
5991 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5993 * tdesc.c (tdesc_create_flags): Remove.
5994 (tdesc_add_flag): Likewise.
5995 (tdesc_named_type): Likewise.
5996 (tdesc_create_union): Likewise.
5997 (tdesc_create_struct): Likewise.
5998 (tdesc_create_vector): Likewise.
5999 (tdesc_add_bitfield): Likewise.
6000 (tdesc_add_field): Likewise.
6001 (tdesc_set_struct_size): Likewise.
6003 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6005 * tdesc.c (~target_desc): Remove implictly deleted items.
6006 (init_target_desc): Iterate all features.
6007 (tdesc_get_features_xml): Use vector.
6008 (tdesc_create_feature): Create feature.
6009 * tdesc.h (tdesc_feature) Remove
6010 (target_desc): Add features.
6012 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6014 * Makefile.in: Add common/tdesc.c
6015 * tdesc.c (init_target_desc): init all reg_defs from register
6017 (tdesc_create_reg): Create tdesc_reg.
6018 * tdesc.h (tdesc_feature): Add register vector.
6020 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6022 * tdesc.h (struct target_desc) <features>: Change type to
6023 std::vector<std::string>.
6024 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6026 (tdesc_get_features_xml): Likewise.
6027 (tdesc_create_feature): Likewise.
6029 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6031 * regcache.c (find_register_by_number): Return a ref.
6032 (find_regno): Use references.
6033 (register_size): Likewise.
6034 (register_data): Likewise.
6035 * tdesc.c (target_desc::~target_desc): Remove free calls.
6036 (target_desc::operator==): Use std::vector compare.
6037 (init_target_desc): Use reference.
6038 (tdesc_create_reg): Use reg constructors.
6039 * tdesc.h (struct target_desc): Replace pointer with object.
6041 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6043 * regcache.c (find_register_by_number): Make static.
6044 (find_regno): Use find_register_by_number
6045 * regcache.h (struct reg): Remove declaration.
6047 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6049 * tdesc.c (target_desc::~target_desc): Move to here.
6050 (target_desc::operator==): Likewise.
6051 * tdesc.h (target_desc::~target_desc): Move from here.
6052 (target_desc::operator==): Likewise.
6054 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6056 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6058 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6060 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6062 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6063 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6064 and init_registers_s390_gs_linux64.
6066 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6068 * linux-s390-low.c (s390_fill_gs): Remove function.
6069 (s390_fill_gsbc): Remove function.
6070 (s390_regsets): Set fill functions for the guarded storage regsets
6073 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6075 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6076 the word size. Add comment.
6077 (s390_get_wordsize): New function.
6078 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6079 pswm with it. Instead, use s390_get_wordsize to determine the
6080 word size first and derive the correct tdesc from that directly.
6082 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6084 * Makefile.in: Include silent-rules.mk.
6085 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6086 (COMPILE): Add ECHO_CXX.
6087 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6088 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6089 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6090 (version-generated.c): Add ECHO_GEN.
6091 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6092 (IPAGENT_COMPILE): Add ECHO_CXX.
6093 (%-generated.c): Add ECHO_REGDAT.
6095 2018-03-14 Tom Tromey <tom@tromey.com>
6098 * ax.c (ax_printf): Special case for NULL.
6100 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6102 * linux-low.c (linux_qxfer_libraries_svr4): Use
6103 xml_escape_text_append.
6105 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6107 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6109 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6111 * server.c (handle_general_set): Remove unnecessary xstrdup.
6113 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6115 * server.c (parse_debug_format_options): Adjust to
6116 delim_string_to_char_ptr_vec changes.
6117 * thread-db.c (thread_db_load_search): Adjust to
6118 dirnames_to_char_ptr_vec changes.
6120 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6122 * target.h (target_enable_btrace, target_disable_btrace)
6123 (target_read_btrace, target_read_btrace_conf): Turn macro into
6124 inline function. Throw error if target method is not defined.
6125 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6126 check for btrace target method. Be prepared to handle exceptions
6127 from btrace target methods.
6129 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6131 * server.c (captured_main): Change order of error message printed
6132 when the current working directory cannot be found.
6134 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6136 * server.c: Include "filenames.h" and "pathstuff.h".
6137 (program_name): Delete variable.
6138 (program_path): New anonymous class.
6139 (get_exec_wrapper): Use "program_path" instead of
6141 (handle_v_run): Likewise.
6142 (captured_main): Likewise.
6143 (process_serial_event): Likewise.
6145 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6147 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6148 (OBJS): Add "pathstuff.o".
6149 * server.c (current_directory): New global variable.
6150 (captured_main): Initialize "current_directory".
6152 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6154 * tdesc.c: Use common/tdesc.h.
6155 * tdesc.h: Likewise.
6157 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6158 Simon Marchi <simon.marchi@ericsson.com>
6160 * Makefile.in: Switch order of make rules.
6162 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6164 * Makefile.in: Add common directory in build.
6165 * configure.ac: Add common reference.
6166 * configure: Regenerate.
6168 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6170 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6171 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6172 * spu-low.c (spu_target_ops): Likewise.
6173 * win32-low.c (win32_target_ops): Likewise.
6174 * server.c (supported_btrace_packets): Report packets unconditionally.
6175 * target.h (target_ops) <supports_btrace>: Remove.
6176 (target_supports_btrace): Remove.
6178 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6180 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6181 (handle_btrace_disable): Change return type to void. Use exceptions
6183 (handle_btrace_general_set): Catch exception and copy message to
6186 2018-02-08 Tom Tromey <tom@tromey.com>
6188 * linux-low.c (install_software_single_step_breakpoints): Use
6189 make_scoped_restore.
6190 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6191 (do_restore_current_thread_cleanup): Remove.
6192 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6195 2018-02-08 Tom Tromey <tom@tromey.com>
6197 * mem-break.c (set_raw_breakpoint_at): Use
6198 gdb::unique_xmalloc_ptr.
6200 2018-01-30 Pedro Alves <palves@redhat.com>
6203 * target.c (target_terminal::terminal_state): Rename to ...
6204 (target_terminal::m_terminal_state): ... this.
6206 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6208 * linux-low.c (handle_extended_wait): Surround call to
6209 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6211 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6213 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6214 linux_ptrace_attach_fail_reason_string now returning an
6216 (linux_attach): Likewise.
6217 * thread-db.c (attach_thread): Likewise.
6219 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6222 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6223 checking for fs_base/gs_base fields in struct user_regs_struct.
6224 * configure: Regenerate.
6226 2018-01-16 Yao Qi <yao.qi@linaro.org>
6229 * linux-low.c (fetch_register): Call supply_register instead of
6232 2018-01-08 Yao Qi <yao.qi@linaro.org>
6233 Simon Marchi <simon.marchi@ericsson.com>
6235 * Makefile.in (OBS): Remove selftest.o.
6236 * configure.ac: Set srv_selftest_objs if $development is true.
6237 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6238 * configure: Re-generated.
6239 * server.c (captured_main): Wrap variable selftest_filter with
6242 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6244 * server.c (parse_debug_format_options): Return std::string.
6245 (handle_monitor_command, captured_main): Adjust.
6247 2018-01-05 Pedro Alves <palves@redhat.com>
6250 * server.c (captured_main): Pass quiet=false to
6251 save_original_signals_state.
6253 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6255 * gdbreplay.c (gdbreplay_version): Update copyright year in
6257 * server.c (gdbserver_version): Likewise.
6259 2017-12-08 Tom Tromey <tom@tromey.com>
6261 * ax.c (ax_printf): Update.
6263 2017-12-07 Yao Qi <yao.qi@linaro.org>
6265 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6266 aarch64_linux_read_description.
6267 * linux-amd64-ipa.c (idx2mask): New array.
6268 (get_ipa_tdesc): Move idx2mask out.
6269 (initialize_low_tracepoint): Initialize target descriptions.
6270 * linux-i386-ipa.c (idx2mask): New array.
6271 (get_ipa_tdesc): Move idx2mask out.
6272 (initialize_low_tracepoint): Initialize target descriptions.
6274 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6276 * tdesc.c (struct tdesc_type): Change return type.
6277 (tdesc_add_flag): Change parameter type.
6278 (tdesc_add_bitfield): Likewise.
6279 (tdesc_add_field): Likewise.
6280 (tdesc_set_struct_size): Likewise.
6282 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6284 * regcache.c (registers_to_string): Remove unused variable.
6286 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6288 * inferiors.c (for_each_inferior_with_data): Remove.
6289 * inferiors.h (for_each_inferior_with_data): Remove.
6290 * server.c (handle_qxfer_threads_worker): Change parameter type.
6291 (handle_qxfer_threads_proper): Use for_each_thread.
6293 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6295 * inferiors.c (for_each_inferior): Remove.
6296 (clear_inferiors): Use for_each_thread.
6297 * inferiors.h (for_each_inferior): Remove.
6298 * linux-low.c (linux_wait_for_event_filtered): Use
6300 (linux_stabilize_threads): Likewise.
6301 * regcache.c (regcache_release): Likewise.
6302 * server.c (gdb_wants_all_threads_stopped): Likewise.
6303 (clear_pending_status_callback): Remove.
6304 (handle_status): Use for_each_thread.
6305 (captured_main): Likewise.
6306 * win32-low.c (child_init_thread_list): Likewise.
6307 (win32_clear_inferiors): Likewise.
6308 (fake_breakpoint_event): Likewise.
6310 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6312 * inferiors.h (find_inferior): Remove.
6313 * inferiors.c (find_inferior): Remove.
6315 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6317 * linux-low.c (resume_status_pending_p): Update comment.
6318 (need_step_over_p): Update comment.
6320 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6322 * linux-low.c (proceed_one_lwp): Return void, change parameter
6324 (unsuspend_and_proceed_one_lwp): Likewise.
6325 (proceed_all_lwps): Use for_each_thread.
6326 (unstop_all_lwps): Likewise.
6328 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6330 * linux-low.c (linux_resume_one_thread): Return void, take
6332 (linux_resume): Use for_each_thread.
6334 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6336 * linux-low.c (send_sigstop_callback): Return void, change
6337 parameter type. Rename to...
6338 (send_sigstop): ... this.
6339 (suspend_and_send_sigstop_callback): Return void, change parameter
6341 (suspend_and_send_sigstop): ... this.
6342 (stop_all_lwps): Use for_each_thread.
6344 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6346 * linux-low.c (lwp_running): Return bool, remove unused
6348 (linux_stabilize_threads): Use find_thread.
6350 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6352 * linux-low.c (select_singlestep_lwp_callback): Remove.
6353 (count_events_callback): Remove.
6354 (select_event_lwp_callback): Remove.
6355 (select_event_lwp): Use find_thread/for_each_thread.
6357 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6359 * linux-low.c (not_stopped_callback): Return bool, take filter
6361 (linux_wait_for_event_filtered): Use find_thread.
6362 (linux_wait_1): Likewise.
6364 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6366 * linux-low.c (same_lwp): Remove.
6367 (find_lwp_pid): Use find_thread.
6369 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6371 * linux-low.c (delete_lwp_callback): Remove.
6372 (linux_mourn): Use for_each_thread.
6374 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6376 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6377 args parameter, don't check for pid.
6378 (linux_detach): Use for_each_thread.
6380 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6382 * linux-low.c (struct counter): Remove.
6383 (second_thread_of_pid_p): Remove.
6384 (last_thread_of_process_p): Use find_thread.
6386 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6388 * inferiors.c (find_inferior_in_random): Remove.
6389 * inferiors.h (find_inferior_in_random): Remove.
6390 * linux-low.c (status_pending_p_callback): Return bool, accept
6391 parameter ptid directly.
6392 (linux_wait_for_event_filtered): Use find_thread_in_random.
6393 (linux_wait_1): Likewise.
6395 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6397 * inferiors.c (find_inferior_id): Remove.
6398 (find_thread_ptid): Move implemention from find_inferior_id to
6400 * inferiors.h (find_inferior_id): Remove.
6401 * server.c (handle_status): Use find_thread_ptid.
6402 (process_serial_event): Likewise.
6403 * thread-db.c (find_one_thread): Likewise.
6404 (thread_db_thread_handle): Likewise.
6405 * win32-low.c (thread_rec): Likewise.
6406 (child_delete_thread): Likewise.
6407 (win32_thread_alive): Likewise.
6408 (get_child_debug_event): Likewise.
6410 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6412 * linux-mips-low.c (update_watch_registers_callback): Return
6413 void, remove pid_p parameter, don't check for pid.
6414 (mips_insert_point, mips_remove_point): Use for_each_thread.
6416 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6418 * lynx.low (lynx_delete_thread_callback): Remove.
6419 (lynx_mourn): Use for_each_thread.
6421 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6423 * regcache.c (regcache_invalidate_one): Remove.
6424 (regcache_invalidate_pid): use for_each_thread.
6426 2017-11-26 Tom Tromey <tom@tromey.com>
6428 * linux-low.c (linux_create_inferior): Update.
6430 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6432 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6434 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6436 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6437 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6438 * linux-aarch64-tdesc-selftest.c: New file.
6439 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6441 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6443 * configure.srv: Add new file.
6444 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6445 * linux-aarch64-tdesc-selftest.c: New file.
6446 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6448 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6450 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6451 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6452 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6454 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6456 * configure.srv: Add new files.
6457 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6458 aarch64_linux_read_description.
6459 * linux-aarch64-low.c (aarch64_linux_read_description):
6460 Merge with aarch64_arch_setup.
6461 (aarch64_arch_setup): Call aarch64_linux_read_description.
6462 * linux-aarch64-tdesc.c: New file.
6463 * linux-aarch64-tdesc.h: New file.
6465 2017-11-24 Yao Qi <yao.qi@linaro.org>
6467 * configure.srv: Set $srv_regobj for tic6x-linux.
6468 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6469 (tic6x_read_description): Move some code to tic6x_arch_setup.
6470 (tic6x_tdesc_test): New function.
6471 (initialize_low_arch): Call selftests::register_test.
6473 2017-11-22 Yao Qi <yao.qi@linaro.org>
6475 * remote-utils.c (prepare_resume_reply): Use memcpy.
6477 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6479 * linux-low.c (kill_one_lwp_callback): Return void, take
6480 argument directly, don't filter on pid.
6481 (linux_kill): Use for_each_thread.
6483 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6485 * linux-low.c (need_step_over_p): Return bool, remove dummy
6487 (linux_resume, proceed_all_lwps): Use find_thread.
6489 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6491 * linux-low.c (resume_status_pending_p): Return bool, remove
6493 (linux_resume): Use find_thread.
6495 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6497 * linux-low.c (struct thread_resume_array): Remove.
6498 (linux_set_resume_request): Return void, take arguments
6500 (linux_resume): Use for_each_thread.
6502 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6504 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6505 return bool, remove data argument.
6506 (linux_stabilize_threads): Use find_thread.
6508 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6510 * linux-low.c (unsuspend_one_lwp): Remove.
6511 (unsuspend_all_lwps): Use for_each_thread, inline code from
6514 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6516 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6517 * linux-low.c (struct iterate_over_lwps_args): Remove.
6518 (iterate_over_lwps_filter): Remove.
6519 (iterate_over_lwps): Use find_thread.
6521 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6523 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6524 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6525 code from reset_lwp_ptrace_options_callback.
6527 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6529 * linux-arm-low.c (struct update_registers_data): Remove.
6530 (update_registers_callback): Return void, take arguments
6531 directly, don't check thread's pid.
6532 (arm_insert_point, arm_remove_point): Use for_each_thread.
6534 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6536 * win32-low.c (continue_one_thread): Return void, take argument
6538 (child_continue): Use for_each_thread.
6540 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6542 * win32-i386-low.c (update_debug_registers_callback): Rename
6544 (update_debug_registers): ... this, return void, remove pid_p arg.
6545 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6547 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6549 * inferiors.h (struct process_info): Add constructor, initialize
6551 <syscalls_to_catch>: Change type to std::vector<int>.
6552 * inferiors.c (add_process): Allocate process_info with new.
6553 (remove_process): Free process_info with delete.
6554 * linux-low.c (handle_extended_wait): Adjust.
6555 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6556 * server.c (handle_general_set): Adjust.
6558 2017-11-16 Pedro Alves <palves@redhat.com>
6560 * remote-utils.c (remote_close): Block SIGIO signals instead of
6561 uninstalling the SIGIO handler.
6563 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6565 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6567 2017-11-16 Yao Qi <yao.qi@linaro.org>
6569 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6570 (tic6x_store_gregset): Likewise.
6571 (tic6x_usrregs_info): Move it up.
6573 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6575 * Makefile.in: Update arch rules.
6576 * configure.srv: Explicitly mark arch/ files.
6578 2017-11-13 Andreas Schwab <schwab@suse.de>
6580 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6582 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6584 2017-11-06 Pedro Alves <palves@redhat.com>
6586 * config.in, configure: Regenerate.
6588 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6590 * target.c (struct thread_search): Remove.
6591 (thread_search_callback): Remove.
6592 (prepare_to_access_memory): Use for_each_thread instead of
6593 find_inferior. Inline code from thread_search_callback.
6595 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6597 * server.c (struct visit_actioned_threads_data): Remove.
6598 (visit_actioned_threads): Change prototype to take arguments
6600 (resume): Use find_thread instead of find_inferior.
6602 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6604 * server.c (queue_stop_reply_callback): Change prototype, return
6606 (find_status_pending_thread_callback): Remove.
6607 (handle_status): Replace find_inferior with find_thread and
6610 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6612 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6614 (aarch64_store_gregset): Likewise.
6615 (aarch64_fill_fpregset): Likewise.
6616 (aarch64_store_fpregset): Likewise.
6618 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6620 * gdbthread.h (find_thread, for_each_thread): New functions.
6621 * inferiors.c (thread_of_pid): Remove.
6622 (find_any_thread_of_pid): Use find_thread.
6623 * linux-low.c (num_lwps): Use for_each_thread.
6625 2017-10-17 Yao Qi <yao.qi@linaro.org>
6627 * Makefile.in: Remove one rule.
6628 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6630 2017-10-17 Yao Qi <yao.qi@linaro.org>
6632 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6633 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6635 2017-10-17 Yao Qi <yao.qi@linaro.org>
6637 * configure.srv: Rename arm.o with arch/arm.o.
6639 2017-10-17 Yao Qi <yao.qi@linaro.org>
6641 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6642 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6643 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6644 (arch-i386.o, arch-amd64.o): Remove rules.
6645 (arch/%.o): New rule.
6646 Update POSTCOMPILE and COMPILE.pre.
6647 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6648 * configure: Re-generated.
6649 * configure.srv: Replace arch-i386.o with arch/i386.o.
6650 Replace arch-amd64.o with arch/amd64.o.
6652 2017-10-16 Yao Qi <yao.qi@linaro.org>
6654 * configure: Regenerated.
6656 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6658 * inferiors.h: (struct inferior_list): Remove.
6659 (struct inferior_list_entry); Remove.
6660 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6661 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6662 get_first_inferior): Remove.
6663 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6664 find_inferior_id, find_inferior_in_random): Change signature.
6665 * inferiors.c (all_threads): Change type to
6666 std::list<thread_info *>.
6667 (get_thread): Remove macro.
6668 (find_inferior, find_inferior_id): Change signature, implement
6670 (find_inferior_in_random): Change signature, implement using
6671 find_thread_in_random.
6672 (for_each_inferior, for_each_inferior_with_data): Change
6673 signature, implement using for_each_thread.
6674 (add_inferior_to_list, remove_inferior): Remove.
6675 (add_thread, get_first_thread, thread_of_pid,
6676 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6677 (get_first_inferior, one_inferior_p, clear_inferior_list):
6679 (clear_inferiors, get_thread_process): Update.
6680 * gdbthread.h: Include <list>.
6681 (struct thread_info) <entry>: Remove field.
6683 (all_threads): Change type to std::list<thread_info *>.
6684 (get_first_inferior): Add doc.
6685 (find_thread, for_each_thread, find_thread_in_random): New
6687 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6688 * linux-arm-low.c (update_registers_callback): Update.
6689 * linux-low.c (second_thread_of_pid_p): Update.
6690 (kill_one_lwp_callback, linux_detach_lwp_callback,
6691 delete_lwp_callback, status_pending_p_callback, same_lwp,
6692 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6693 iterate_over_lwps, not_stopped_callback,
6694 resume_stopped_resumed_lwps, count_events_callback,
6695 select_singlestep_lwp_callback, select_event_lwp_callback,
6696 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6697 suspend_and_send_sigstop_callback, wait_for_sigstop,
6698 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6699 lwp_running, linux_set_resume_request, resume_status_pending_p,
6700 need_step_over_p, start_step_over, linux_resume_one_thread,
6701 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6702 reset_lwp_ptrace_options_callback): Update.
6703 * linux-mips-low.c (update_watch_registers_callback): Update.
6704 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6706 (free_register_cache_thread_one): Remove.
6707 (regcache_release): Update.
6708 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6709 handle_qxfer_threads_worker): Update.
6710 (handle_query): Update, use list iterator.
6711 (visit_actioned_threads, handle_pending_status,
6712 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6713 clear_pending_status_callback, set_pending_status_callback,
6714 find_status_pending_thread_callback, handle_status,
6715 process_serial_event): Update.
6716 * target.c (thread_search_callback): Update.
6717 * thread-db.c (thread_db_get_tls_address): Update.
6718 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6720 * win32-i386-low.c (update_debug_registers_callback): Update.
6721 * win32-low.c (delete_thread_info, child_delete_thread,
6722 continue_one_thread, suspend_one_thread,
6723 get_child_debug_event): Adjust.
6725 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6727 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6728 * inferiors.h: Include <list>.
6729 (struct process_info) <entry>: Remove field.
6731 (pid_of): Change macro to function.
6732 (ptid_of, lwpid_of): Remove macro.
6733 (all_processes): Change type to std::list<process_info *>.
6734 (ALL_PROCESSES): Remove macro.
6735 (for_each_process, find_process): New function.
6736 * inferiors.c (all_processes): Change type to
6737 std::list<process_info *>.
6738 (find_thread_process): Adjust.
6739 (add_process): Likewise.
6740 (remove_process): Likewise.
6741 (find_process_pid): Likewise.
6742 (get_first_process): Likewise.
6743 (started_inferior_callback): Remove.
6744 (have_started_inferiors_p): Adjust.
6745 (attached_inferior_callback): Remove.
6746 (have_attached_inferiors_p): Adjust.
6747 * linux-low.c (check_zombie_leaders): Likewise.
6748 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6749 (x86_linux_update_xmltarget): Adjust.
6750 * server.c (handle_query): Likewise.
6751 (gdb_reattached_process): Remove.
6752 (handle_status): Adjust.
6753 (kill_inferior_callback): Likewise.
6754 (detach_or_kill_inferior): Remove.
6755 (print_started_pid): Likewise.
6756 (print_attached_pid): Likewise.
6757 (detach_or_kill_for_exit): Update.
6758 (process_serial_event): Likewise.
6759 * linux-arm-low.c (arm_new_fork): Likewise.
6761 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6763 * dll.h: Include <list>.
6764 (struct dll_info): Add constructor.
6765 <entry>: Remove field.
6766 (all_dlls): Change type to std::list<dll_info>.
6767 * dll.c: Include <algorithm>.
6768 (get_dll): Remove macro.
6769 (all_dlls): Change type to std::list<dll_info *>.
6770 (free_one_dll): Remove.
6771 (match_dll): Likewise.
6772 (loaded_dll): Adjust.
6773 (unloaded_dll): Adjust to all_dlls type change, use
6774 std::find_if. Inline code from match_dll.
6775 (clear_dlls): Adjust to all_dlls type change.
6776 * server.c (emit_dll_description): Remove.
6777 (handle_qxfer_libraries): Adjust to all_dlls type change,
6778 integrate emit_dll_description's functionality.
6780 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6782 * linux-low.h (struct linux_target_ops) <delete_process>: New
6784 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6785 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6786 (struct linux_target_ops): Add delete_process callback.
6787 * linux-arm-low.c (arm_delete_process): New.
6788 (struct linux_target_ops): Add delete_process callback.
6789 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6790 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6791 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6792 * linux-mips-low.c (mips_linux_delete_process): New.
6793 (struct linux_target_ops): Add delete_process callback.
6794 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6795 * linux-s390-low.c (struct linux_target_ops): Likewise.
6796 * linux-sh-low.c (struct linux_target_ops): Likewise.
6797 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6798 * linux-tile-low.c (struct linux_target_ops): Likewise.
6799 * linux-x86-low.c (x86_linux_delete_process): New.
6800 (struct linux_target_ops): Add delete_process callback.
6801 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6803 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6805 * linux-aarch64-low.c (the_low_target): Add thread delete
6807 * linux-arm-low.c (arm_delete_thread): New function.
6808 (the_low_target): Add thread delete callback.
6809 * linux-bfin-low.c (the_low_target): Likewise.
6810 * linux-crisv32-low.c (the_low_target): Likewise.
6811 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6813 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6815 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6816 * linux-mips-low.c (mips_linux_delete_thread): New function.
6817 (the_low_target): Add thread delete callback.
6818 * linux-ppc-low.c (the_low_target): Likewise.
6819 * linux-s390-low.c (the_low_target): Likewise.
6820 * linux-sh-low.c (the_low_target): Likewise.
6821 * linux-tic6x-low.c (the_low_target): Likewise.
6822 * linux-tile-low.c (the_low_target): Likewise.
6823 * linux-x86-low.c (the_low_target): Likewise.
6824 * linux-xtensa-low.c (the_low_target): Likewise.
6826 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6828 * win32-low.c: Include "common-inferior.h".
6830 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6832 * inferiors.c (set_inferior_cwd): New function.
6833 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6834 (handle_query): Inform that QSetWorkingDir is supported.
6835 * win32-low.c (create_process): Pass the inferior's cwd to
6838 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6840 * inferiors.c (current_inferior_cwd): New global variable.
6841 (get_inferior_cwd): New function.
6842 * inferiors.h (struct process_info) <cwd>: New field.
6844 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6846 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6847 (OBS): Add gdb_tilde_expand.o.
6849 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6851 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6852 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6854 2017-09-29 Pedro Alves <palves@redhat.com>
6856 * ax.c (gdb_parse_agent_expr): Constify.
6857 * ax.h (gdb_parse_agent_expr): Constify.
6858 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6860 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6861 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6862 * remote-utils.h (read_ptid): Constify.
6863 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6864 (process_point_options, process_serial_event): Constify.
6865 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6866 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6867 (cmd_qtbuffer): Constify.
6869 2017-09-29 Pedro Alves <palves@redhat.com>
6871 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6874 2017-09-29 Pedro Alves <palves@redhat.com>
6876 * linux-low.c (handle_extended_wait): Pass parent thread instead
6877 of process to thread_db_notice_clone.
6878 * linux-low.h (thread_db_notice_clone): Replace parent process
6879 parameter with parent thread parameter.
6880 * thread-db.c (find_one_thread): Add comment.
6881 (thread_db_notice_clone): Replace parent process parameter with
6882 parent thread parameter. Temporarily switch to the parent thread.
6884 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6886 * gdbthread.h: Include "common-gdbthread.h".
6887 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6888 "if" when validating the ptid.
6889 * remote-utils.c: Include "gdbthread.h".
6890 (prepare_resume_reply): Use "switch_to_thread".
6891 * target.c (done_accessing_memory): Likewise.
6893 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6895 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6896 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6897 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6898 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6899 s390x-gs-linux64-ipa.o to ipa_obj.
6900 * linux-s390-low.c (HWCAP_S390_GS): New define.
6901 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6903 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6904 (s390_arch_setup): Check for guarded-storage support and choose
6906 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6907 init_registers_s390x_gs_linux64.
6908 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6910 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6911 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6913 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6915 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6917 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6919 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6920 (thread_db_thread_handle): Declare.
6921 * linux-low.c (linux_target_ops): Initialize thread_handle.
6922 * server.c (handle_qxfer_threads_worker): Add support for
6924 * target.h (struct target_ops): Add new function pointer,
6926 (target_thread_handle): Define.
6927 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6929 (thread_db_thread_handle): New function.
6931 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6933 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6934 * linux-low.h (thread_db_notice_clone): Declare.
6935 * thread-db.c (thread_db_notice_clone): New function.
6937 2017-09-21 Pedro Alves <palves@redhat.com>
6939 * server.c (gdb_read_memory, handle_status, process_serial_event)
6940 (handle_serial_event, handle_target_event): Adjust to
6941 set_desired_thread prototype change.
6942 * target.c (set_desired_thread): Remove 'use_general' parameter
6944 * target.h (set_desired_thread): Remove 'use_general' parameter.
6946 2017-09-20 Tom Tromey <tom@tromey.com>
6948 * target.c (target_terminal::terminal_state): Define.
6949 (target_terminal::init): Rename from target_terminal_init.
6950 (target_terminal::inferior): Rename from
6951 target_terminal_inferior.
6952 (target_terminal::ours): Rename from target_terminal_ours.
6953 (target_terminal::ours_for_output, target_terminal::info): New.
6955 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6957 * server.c (accumulate_file_name_length): Remove.
6958 (emit_dll_description): Adjust to std::string change.
6959 (handle_qxfer_libraries): Use std::string to hold document.
6961 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6963 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6964 return type of xml_escape_text.
6965 * server.c (emit_dll_description): Likewise.
6967 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6969 * server.c (captured_main): Accept argument for --selftest.
6970 Update run_tests call.
6971 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6972 when registering selftests.
6974 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6976 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6977 instead of "VEC" for "target_desc.reg_defs".
6978 (regcache_cpy): Likewise.
6979 (registers_to_string): Likewise.
6980 (registers_from_string): Likewise.
6981 (find_regno): Likewise.
6982 (supply_regblock): Likewise.
6983 (regcache_raw_read_unsigned): Likewise.
6984 * tdesc.c (init_target_desc): Likewise.
6985 (tdesc_create_reg): Likewise.
6986 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6987 (struct target_desc) <reg_defs>: Convert to "std::vector".
6988 (target_desc): Do not initialize "reg_defs".
6989 (~target_desc): Update code to use "std::vector" instead of "VEC"
6990 for "target_desc.reg_defs".
6991 (operator==): Likewise.
6993 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6995 * inferiors.h (thread_to_gdb_id): Remove.
6996 * inferiors.c (thread_to_gdb_id): Remove.
6997 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6998 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6999 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7001 * nto-low.c (nto_fetch_registers, nto_store_registers,
7002 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7004 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7006 * inferiors.h (gdb_id_to_thread_id): Remove.
7007 * inferiors.c (gdb_id_to_thread_id): Remove.
7008 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7009 removal. Move pid declaration closer to where it's used.
7011 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7013 * server.c (handle_detach): New function.
7014 (process_serial_event): Move code out, call handle_detach.
7016 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7018 * server.c (require_running): Rename to ...
7019 (require_running_or_return): ... this ...
7020 (require_running_or_break): ... and this.
7021 (handle_query, process_serial_event): Adjust.
7023 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7025 * linux-low.c (linux_set_resume_request): Remove unused
7028 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7030 * server.c (first_thread_of): Remove.
7031 (process_serial_event): Replace usage of first_thread_of with
7032 find_any_thread_of_pid.
7033 * tracepoint.c (same_process_p): Remove.
7034 (gdb_agent_about_to_close): Replace usage of same_process_p with
7035 find_any_thread_of_pid.
7036 * linux-x86-low.c (same_process_callback): Remove.
7037 (x86_arch_setup_process_callback): Replace usage of
7038 same_process_callback with find_any_thread_of_pid.
7039 * thread-db.c (any_thread_of): Remove.
7040 (switch_to_process): Replace usage of any_thread_of with
7041 find_any_thread_of_pid.
7042 * inferiors.c (thread_pid_matches_callback): Remove.
7043 (find_thread_process): Adjust to use find_any_thread_of_pid.
7045 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7047 * regcache.c (get_thread_regcache): Guard calls to "memset"
7050 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7052 * linux-low.c (handle_extended_wait): Use
7053 "allocate_target_description" instead of "XNEW".
7054 * linux-x86-low.c (initialize_low_arch): Likewise.
7056 2017-09-05 Yao Qi <yao.qi@linaro.org>
7058 * configure.srv (srv_i386_regobj): Remove.
7059 (srv_amd64_regobj): Remove.
7060 (srv_regobj): Set it to "" for x86 non-linux targets.
7061 * linux-x86-tdesc.c (i386_linux_read_description):
7062 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7063 (init_registers_i386): Remove the declaration.
7064 (tdesc_i386): Remove the declaration.
7065 (lynx_i386_arch_setup): Call i386_create_target_description.
7066 * nto-x86-low.c: Likewise.
7067 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7068 [!__x86_64__]: include arch/i386.h.
7069 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7071 2017-09-05 Yao Qi <yao.qi@linaro.org>
7073 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7074 i386/amd64-XXX-linux from it.
7076 2017-09-05 Yao Qi <yao.qi@linaro.org>
7078 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7080 (ipa_amd64_linux_regobj): Remove.
7081 (ipa_x32_linux_regobj): Remove.
7083 2017-09-05 Yao Qi <yao.qi@linaro.org>
7085 * Makefile.in (arch-amd64.o): New rule.
7086 * configure.srv: Append arch-amd64.o.
7087 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7088 (get_ipa_tdesc): Call amd64_linux_read_description.
7089 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7090 and init_registers_amd64_XXX.
7091 * linux-x86-low.c (x86_linux_read_description): Call
7092 amd64_linux_read_description.
7093 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7094 (initialize_low_arch): Don't call init_registers_x32_XXX and
7095 init_registers_amd64_XXX.
7096 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7097 and tdesc_amd64_XXX.
7098 [__x86_64__] (amd64_tdesc_test): New function.
7099 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7100 and init_registers_amd64_XXX.
7101 * linux-x86-tdesc.c: Include arch/amd64.h.
7102 (xcr0_to_tdesc_idx): New function.
7103 (i386_linux_read_description): New function.
7104 (amd64_get_ipa_tdesc_idx): New function.
7105 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7106 (amd64_get_ipa_tdesc): Declare.
7108 2017-09-05 Yao Qi <yao.qi@linaro.org>
7110 * configure.srv (srv_i386_linux_xmlfiles): Remove
7111 i386/i386-XXX-linux.xml from it.
7113 2017-09-05 Yao Qi <yao.qi@linaro.org>
7115 * configure.srv: Set srv_i386_linux_regobj empty if $development
7117 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7118 initialize_low_tdesc.
7119 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7120 with #if initialize_low_tdesc.
7121 * linux-x86-tdesc-selftest.c: New file.
7122 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7124 2017-09-05 Yao Qi <yao.qi@linaro.org>
7126 * Makefile.in (arch-i386.o): New rule.
7127 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7128 (x86_64-*-linux*): Likewise.
7129 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7130 include arch/i386.h.
7131 (i386_linux_read_description): Remove code and call
7132 i386_create_target_description.
7133 * tdesc.c (allocate_target_description): New function.
7134 * tdesc.h (set_tdesc_architecture): Remove declaration.
7135 (set_tdesc_osabi): Likewise.
7137 2017-09-05 Yao Qi <yao.qi@linaro.org>
7139 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7140 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7141 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7143 * server.c (get_features_xml): Call tdesc_get_features_xml.
7144 * tdesc.c (set_tdesc_architecture): New function.
7145 (set_tdesc_osabi): New function.
7146 (tdesc_get_features_xml): New function.
7147 (tdesc_create_feature): Add an argument.
7148 * tdesc.h (struct target_desc) <features>: New field.
7149 <arch, osabi>: New field.
7150 (~target_desc): xfree features, arch, and osabi.
7151 (target_desc::oerator==): Don't compare .xmltarget.
7152 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7153 (set_tdesc_osabi): Likewise.
7154 (tdesc_get_features_xml): Likewise.
7156 2017-09-05 Yao Qi <yao.qi@linaro.org>
7158 * linux-x86-tdesc.c: Include selftest.h.
7159 (i386_tdesc_test): New function.
7160 (initialize_low_tdesc): Call selftests::register_test.
7161 * tdesc.h: Include regdef.h.
7162 (target_desc): Override operator == and !=.
7164 2017-09-05 Yao Qi <yao.qi@linaro.org>
7166 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7167 (ipa_obj): Likewise.
7168 * linux-i386-ipa.c: Include common/x86-xstate.h
7169 (get_ipa_tdesc): Call i386_linux_read_description.
7170 (initialize_low_tracepoint): Don't call init_registers_XXX
7171 functions, call initialize_low_tdesc instead.
7172 * linux-x86-low.c (x86_linux_read_description): Call
7173 i386_linux_read_description.
7174 (initialize_low_arch): Don't call init_registers_i386_XXX
7175 functions, call initialize_low_tdesc.
7176 * linux-x86-tdesc.c: New file.
7177 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7178 (i386_get_ipa_tdesc_idx): Declare.
7179 (i386_get_ipa_tdesc): Declare.
7180 (initialize_low_tdesc): Declare.
7182 2017-09-05 Yao Qi <yao.qi@linaro.org>
7184 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7187 2017-09-05 Yao Qi <yao.qi@linaro.org>
7189 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7190 * regcache.c (get_thread_regcache): Use VEC_length.
7191 (init_register_cache): Likewise.
7192 (regcache_cpy): Likewise.
7193 (registers_to_string): Iterate reg_defs via VEC_iterate.
7194 (find_regno): Likewise.
7195 (find_register_by_number): Use VEC_index.
7196 (register_size): Call find_register_by_number.
7197 (register_data): Call find_register_by_number.
7198 (supply_regblock): Use VEC_length.
7199 (regcache_raw_read_unsigned): Likewise.
7200 * tdesc.c (init_target_desc): Iterate reg_defs via
7202 (default_description): Update initializer.
7203 (copy_target_description): Don't update field num_registers.
7204 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7205 <num_registers>: Remove.
7207 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7209 * Makefile.in (.SECONDARY): Define target.
7211 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7213 * linux-low.c (linux_wait_1): Adjust.
7214 * server.c (queue_stop_reply_callback): Adjust.
7216 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7218 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7219 QEnvironmentUnset and QEnvironmentReset packets.
7220 (handle_query): Inform remote that QEnvironmentHexEncoded,
7221 QEnvironmentUnset and QEnvironmentReset are supported.
7223 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7225 * inferiors.h (inferior_target_data): Rename to ...
7226 (thread_target_data): ... this.
7227 (inferior_regcache_data): Rename to ...
7228 (thread_regcache_data): ... this.
7229 (set_inferior_regcache_data): Rename to ...
7230 (set_thread_regcache_data): ... this.
7231 * inferiors.c (inferior_target_data): Rename to ...
7232 (thread_target_data): ... this.
7233 (inferior_regcache_data): Rename to ...
7234 (thread_regcache_data): ... this.
7235 (set_inferior_regcache_data): Rename to ...
7236 (set_thread_regcache_data): ... this.
7237 (free_one_thread): Update.
7238 * linux-low.h (get_thread_lwp): Update.
7239 * regcache.c (get_thread_regcache): Update.
7240 (regcache_invalidate_thread): Update.
7241 (free_register_cache_thread): Update.
7242 * win32-i386-low.c (update_debug_registers_callback): Update.
7243 (win32_get_current_dr): Update.
7244 * win32-low.c (thread_rec): Update.
7245 (delete_thread_info): Update.
7246 (continue_one_thread): Update.
7247 (suspend_one_thread): Update.
7249 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7251 * inferiors.c (set_inferior_target_data): Remove.
7252 * inferiors.h (set_inferior_target_data): Remove.
7254 2017-08-18 Yao Qi <yao.qi@linaro.org>
7256 * Makefile.in (OBS): Add selftest.o.
7257 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7258 * configure, config.in: Re-generated.
7259 * server.c: Include common/sefltest.h.
7260 (captured_main): Handle option --selftest.
7262 2017-08-09 Yao Qi <yao.qi@linaro.org>
7264 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7265 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7266 i386-avx-mpx.o and i386-mmx.o.
7267 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7268 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7269 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7270 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7271 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7272 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7273 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7274 i386/amd64-avx-mpx.xml.
7276 2017-08-09 Yao Qi <yao.qi@linaro.org>
7278 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7279 and x32-avx-avx512.o.
7280 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7281 i386/x32-avx-avx512.xml.
7283 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7285 * tracepoint.h (enum class fast_tpoint_collect_result): New
7287 (fast_tracepoint_collecting): Change return type to
7288 fast_tpoint_collect_result.
7289 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7290 * linux-low.h: Include tracepoint.h.
7291 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7292 fast_tpoint_collect_result.
7293 * linux-low.c (handle_tracepoints): Adjust.
7294 (linux_fast_tracepoint_collecting): Change return type to
7295 fast_tpoint_collect_result.
7296 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7297 linux_wait_1, stuck_in_jump_pad_callback,
7298 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7299 proceed_one_lwp): Adjust to type change.
7301 2017-07-10 Yao Qi <yao.qi@linaro.org>
7303 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7305 2017-06-29 Yao Qi <yao.qi@linaro.org>
7307 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7309 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7311 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7313 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7315 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7317 * linux-low.c (linux_create_inferior): Adjust code to access the
7318 environment information via 'gdb_environ' class.
7319 * lynx-low.c (lynx_create_inferior): Likewise.
7320 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7321 (get_environ): Return a pointer to 'our_environ'.
7322 (captured_main): Initialize 'our_environ'.
7323 * server.h (get_environ): Adjust prototype.
7324 * spu-low.c (spu_create_inferior): Adjust code to access the
7325 environment information via 'gdb_environ' class.
7327 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7329 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7330 usage of "register" keyword.
7332 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7334 * configure: Re-generate.
7336 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7338 * configure: Re-generate.
7340 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7342 * Makefile.in (COMPILE.pre): Add "-x c++".
7344 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7346 * fork-child.c: Conditionally include <signal.h>.
7348 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7350 * server.c (handle_general_set): Handle new packet
7351 "QStartupWithShell".
7352 (handle_query): Add "QStartupWithShell" to the list of supported
7354 (gdbserver_usage): Add help text explaining the
7355 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7357 (captured_main): Recognize and act upon the presence of the new
7360 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7361 Pedro Alves <palves@redhat.com>
7363 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7364 * configure: Regenerate.
7365 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7367 (i[34567]86-*-lynxos*): Likewise.
7368 (spu*-*-*): Likewise.
7369 * fork-child.c: New file.
7370 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7372 (linux_ptrace_fun): New function.
7373 (linux_create_inferior): Adjust function prototype to reflect
7374 change on "target.h". Adjust function code to use
7376 (linux_request_interrupt): Delete "signal_pid".
7377 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7378 (lynx_ptrace_fun): New function.
7379 (lynx_create_inferior): Adjust function prototype to reflect
7380 change on "target.h". Adjust function code to use
7382 * nto-low.c (nto_create_inferior): Adjust function prototype and
7383 code to reflect change on "target.h". Update comments.
7384 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7385 "common-terminal.h" and "environ.h".
7386 (terminal_fd): Moved to fork-child.c.
7387 (old_foreground_pgrp): Likewise.
7388 (restore_old_foreground_pgrp): Likewise.
7389 (last_status): Make it global.
7390 (last_ptid): Likewise.
7391 (our_environ): New variable.
7392 (startup_with_shell): Likewise.
7393 (program_name): Likewise.
7394 (program_argv): Rename to...
7395 (program_args): ...this.
7396 (wrapper_argv): New variable.
7397 (start_inferior): Delete function.
7398 (get_exec_wrapper): New function.
7399 (get_exec_file): Likewise.
7400 (get_environ): Likewise.
7401 (prefork_hook): Likewise.
7402 (post_fork_inferior): Likewise.
7403 (postfork_hook): Likewise.
7404 (postfork_child_hook): Likewise.
7405 (handle_v_run): Update code to deal with arguments coming from the
7406 remote host. Update calls from "start_inferior" to
7408 (captured_main): Likewise. Initialize environment variable. Call
7410 * server.h (post_fork_inferior): New prototype.
7411 (get_environ): Likewise.
7412 (last_status): Declare.
7413 (last_ptid): Likewise.
7414 (signal_pid): Likewise.
7415 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7416 (spu_ptrace_fun): New function.
7417 (spu_create_inferior): Adjust function prototype to reflect change
7418 on "target.h". Adjust function code to use "fork_inferior".
7419 * target.c (target_terminal_init): New function.
7420 (target_terminal_inferior): Likewise.
7421 (target_terminal_ours): Likewise.
7422 * target.h: Include <vector>.
7423 (struct target_ops) <create_inferior>: Update prototype.
7424 (create_inferior): Update macro.
7425 * utils.c (gdb_flush_out_err): New function.
7426 * win32-low.c (win32_create_inferior): Adjust function prototype
7427 and code to reflect change on "target.h".
7429 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7431 * inferiors.c (switch_to_thread): New function.
7433 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7435 * Makefile.in (SFILE): Add "common/job-control.c".
7436 (OBS): Add "job-control.o".
7438 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7440 * Makefile: Remove "@host_makefile_frag@".
7442 2017-05-05 Pedro Alves <palves@redhat.com>
7444 * configure: Regenerate.
7446 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7448 * configure: Regenerate.
7450 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7452 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7453 software_single_step change of return type to
7454 std::vector<CORE_ADDR>.
7455 * linux-low.c (install_software_single_step_breakpoints):
7457 * linux-low.h (install_software_single_step_breakpoints):
7460 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7462 * remote-utils.c: Include "gdb_termios.h" instead of
7464 * terminal.h: Delete file.
7466 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7468 * server.c: Include <vector>.
7469 <program_argv, wrapper_argv>: Convert to std::vector.
7470 (start_inferior): Rewrite function to use C++.
7471 (handle_v_run): Likewise. Update code that calculates the argv
7472 based on the vRun packet; use C++.
7473 (captured_main): Likewise.
7475 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7477 * server.c (handle_v_cont): Initialize thread_resume::thread
7480 2017-04-05 Pedro Alves <palves@redhat.com>
7482 * configure: Regenerate.
7484 2017-04-05 Pedro Alves <palves@redhat.com>
7486 * gdbreplay.c (sync_error): Constify.
7487 * linux-x86-low.c (push_opcode): Constify.
7489 2017-04-05 Pedro Alves <palves@redhat.com>
7491 * win32-low.c (get_child_debug_event)
7492 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7493 Report TARGET_WAITKIND_SPURIOUS instead.
7495 2017-04-05 Pedro Alves <palves@redhat.com>
7497 * remote-utils.c (remote_prepare, remote_open): Constify.
7498 * remote-utils.h (remote_prepare, remote_open): Constify.
7499 * server.c (captured_main): Constify 'port' handling.
7501 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7503 * Makefile.in (clean): Clear .deps.
7505 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7507 * .gitignore: Remove generated files, replace with wildcard.
7508 * (clean): Replace removal of generated files with wildcard.
7509 (version.c): Replace with...
7510 (version-generated.c): ...this.
7511 (xml-builtin.c): Replace with...
7512 (xml-builtin-generated.c): ...this.
7513 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7514 (%.c: *regformats*): Replace with...
7515 (%-generated.c: *regformats*): ...this.
7517 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7519 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7520 (xtensa_fill_gregset): Call collect_register_by_name for
7522 (xtensa_store_gregset): Call supply_register_by_name for
7525 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7527 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7528 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7529 (xtensa_store_gregset): Call supply_register for all registers in
7530 a0_regnum..a0_regnum + C0_NREGS range.
7532 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7534 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7535 (ax-ipa.o: ax.c): Remove.
7536 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7537 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7538 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7539 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7540 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7542 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7544 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7545 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7546 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7547 (errors-ipa.o: ../common/errors.c): Remove.
7548 (format-ipa.o: ../common/format.c): Remove.
7549 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7551 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7553 * Makefile.in (%-ipa.o: %.c): New rule.
7554 (tracepoint-ipa.o: tracepoint.c): Remove.
7555 (utils-ipa.o: utils.c): Remove.
7556 (remote-utils-ipa.o: remote-utils.c): Remove.
7557 (regcache-ipa.o: regcache.c): Remove.
7558 (i386-linux-ipa.o: i386-linux.c): Remove.
7559 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7560 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7561 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7562 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7563 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7564 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7565 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7566 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7567 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7568 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7569 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7570 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7571 (aarch64-ipa.o: aarch64.c): Remove.
7572 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7573 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7574 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7575 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7576 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7577 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7578 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7579 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7580 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7581 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7582 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7583 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7584 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7585 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7586 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7587 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7588 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7589 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7590 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7591 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7592 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7593 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7594 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7595 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7596 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7597 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7598 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7599 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7600 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7601 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7602 (tdesc-ipa.o: tdesc.c): Remove.
7603 (x32-linux-ipa.o: x32-linux.c): Remove.
7604 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7605 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7607 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7609 * Makefile.in (%.o: ../arch/%.c): New rule.
7610 (arm.o: ../arch/arm.c): Remove.
7611 (arm-linux.o: ../arch/arm-linux.c): Remove.
7612 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7613 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7615 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7617 * Makefile.in (%.o: ../nat/%.c): New rule.
7618 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7619 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7620 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7621 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7622 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7623 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7624 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7625 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7626 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7627 (linux-personality.o: ../nat/linux-personality.c): Remove.
7628 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7629 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7630 (x86-linux.o: ../nat/x86-linux.c): Remove.
7631 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7632 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7634 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7636 * Makefile.in (%.o: ../common/%.c): New rule.
7637 (signals.o: ../common/signals.c): Remove.
7638 (print-utils.o: ../common/print-utils.c): Remove.
7639 (rsp-low.o: ../common/rsp-low.c): Remove.
7640 (common-utils.o: ../common/common-utils.c): Remove.
7641 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7642 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7643 (vec.o: ../common/vec.c): Remove.
7644 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7645 (xml-utils.o: ../common/xml-utils.c): Remove.
7646 (ptid.o: ../common/ptid.c): Remove.
7647 (buffer.o: ../common/buffer.c): Remove.
7648 (format.o: ../common/format.c): Remove.
7649 (filestuff.o: ../common/filestuff.c): Remove.
7650 (agent.o: ../common/agent.c): Remove.
7651 (errors.o: ../common/errors.c): Remove.
7652 (environ.o: ../common/environ.c): Remove.
7653 (common-debug.o: ../common/common-debug.c): Remove.
7654 (cleanups.o: ../common/cleanups.c): Remove.
7655 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7656 (fileio.o: ../common/fileio.c): Remove.
7657 (common-regcache.o: ../common/common-regcache.c): Remove.
7658 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7659 (new-op.o: ../common/new-op.c): Remove.
7660 (btrace-common.o: ../common/btrace-common.c): Remove.
7662 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7664 * Makefile.in (%.o: ../target/%.c): New rule.
7665 (waitstatus.o: ../target/waitstatus.c): Remove.
7667 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7670 (%.c: ../regformats/%.dat,
7671 (%.c: ../regformats/arm/%.dat,
7672 (%.c: ../regformats/i386/%.dat,
7673 (%.c: ../regformats/rs6000/%.dat): New rules.
7674 (aarch64.c): Remove.
7675 (reg-arm.c): Remove.
7676 (arm-with-iwmmxt.c): Remove.
7677 (arm-with-vfpv2.c): Remove.
7678 (arm-with-vfpv3.c): Remove.
7679 (arm-with-neon.c): Remove.
7680 (reg-bfin.c): Remove.
7681 (reg-cris.c): Remove.
7682 (reg-crisv32.c): Remove.
7684 (i386-linux.c): Remove.
7685 (i386-avx.c): Remove.
7686 (i386-avx-linux.c): Remove.
7687 (i386-avx-avx512.c): Remove.
7688 (i386-avx-avx512-linux.c): Remove.
7689 (i386-mpx.c): Remove.
7690 (i386-mpx-linux.c): Remove.
7691 (i386-avx-mpx-avx512-pku.c): Remove.
7692 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7693 (i386-avx-mpx.c): Remove.
7694 (i386-avx-mpx-linux.c): Remove.
7695 (i386-mmx.c): Remove.
7696 (i386-mmx-linux.c): Remove.
7697 (reg-ia64.c): Remove.
7698 (reg-m32r.c): Remove.
7699 (reg-m68k.c): Remove.
7701 (mips-linux.c): Remove.
7702 (mips-dsp-linux.c): Remove.
7703 (mips64-linux.c): Remove.
7704 (mips64-dsp-linux.c): Remove.
7705 (nios2-linux.c): Remove.
7706 (powerpc-32.c): Remove.
7707 (powerpc-32l.c): Remove.
7708 (powerpc-altivec32l.c): Remove.
7709 (powerpc-cell32l.c): Remove.
7710 (powerpc-vsx32l.c): Remove.
7711 (powerpc-isa205-32l.c): Remove.
7712 (powerpc-isa205-altivec32l.c): Remove.
7713 (powerpc-isa205-vsx32l.c): Remove.
7714 (powerpc-e500l.c): Remove.
7715 (powerpc-64l.c): Remove.
7716 (powerpc-altivec64l.c): Remove.
7717 (powerpc-cell64l.c): Remove.
7718 (powerpc-vsx64l.c): Remove.
7719 (powerpc-isa205-64l.c): Remove.
7720 (powerpc-isa205-altivec64l.c): Remove.
7721 (powerpc-isa205-vsx64l.c): Remove.
7722 (s390-linux32.c): Remove.
7723 (s390-linux32v1.c): Remove.
7724 (s390-linux32v2.c): Remove.
7725 (s390-linux64.c): Remove.
7726 (s390-linux64v1.c): Remove.
7727 (s390-linux64v2.c): Remove.
7728 (s390-te-linux64.c): Remove.
7729 (s390-vx-linux64.c): Remove.
7730 (s390-tevx-linux64.c): Remove.
7731 (s390x-linux64.c): Remove.
7732 (s390x-linux64v1.c): Remove.
7733 (s390x-linux64v2.c): Remove.
7734 (s390x-te-linux64.c): Remove.
7735 (s390x-vx-linux64.c): Remove.
7736 (s390x-tevx-linux64.c): Remove.
7737 (tic6x-c64xp-linux.c): Remove.
7738 (tic6x-c64x-linux.c): Remove.
7739 (tic6x-c62x-linux.c): Remove.
7741 (reg-sparc64.c): Remove.
7742 (reg-spu.c): Remove.
7744 (amd64-linux.c): Remove.
7745 (amd64-avx.c): Remove.
7746 (amd64-avx-linux.c): Remove.
7747 (amd64-avx-avx512.c): Remove.
7748 (amd64-avx-avx512-linux.c): Remove.
7749 (amd64-mpx.c): Remove.
7750 (amd64-mpx-linux.c): Remove.
7751 (amd64-avx-mpx-avx512-pku.c): Remove.
7752 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7753 (amd64-avx-mpx.c): Remove.
7754 (amd64-avx-mpx-linux.c): Remove.
7756 (x32-linux.c): Remove.
7757 (x32-avx.c): Remove.
7758 (x32-avx-linux.c): Remove.
7759 (x32-avx-avx512.c): Remove.
7760 (x32-avx-avx512-linux.c): Remove.
7761 (reg-xtensa.c): Remove.
7762 (reg-tilegx.c): Remove.
7763 (reg-tilegx32.c): Remove.
7765 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7767 * Makefile.in (SFILES): Add "common/environ.c".
7768 (OBJS): Add "common/environ.h".
7770 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7772 * configure.ac: Check if the fs_base and gs_base members of
7773 `struct user_regs_struct' exist.
7774 * config.in: Regenerated.
7775 * configure: Likewise.
7777 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7779 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7781 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7782 (get_next_pcs_syscall_next_pc): Likewise.
7784 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7786 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7787 * nto-x86-low.c: Likewise.
7789 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7791 * Makefile.in: Include disable-implicit-rules.mk.
7793 2016-11-23 Pedro Alves <palves@redhat.com>
7795 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7796 (debug_vprintf): Use std::chrono::steady_clock instead of
7797 gettimeofday. Use '.' instead of ':'.
7798 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7799 (get_timestamp): Use std::chrono::steady_clock instead of
7802 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7804 * Makefile.in: Fix whitespace formatting.
7806 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7808 * Makefile.in (SFILES, OBS): Flatten list and order
7811 2016-11-23 Pedro Alves <palves@redhat.com>
7813 * event-loop.c (handle_file_event): Use warning.
7814 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7815 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7818 2016-11-23 Pedro Alves <palves@redhat.com>
7820 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7822 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7823 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7824 debug_printf and debug_flush for debug output.
7825 * server.c (handle_general_set): Likewise.
7826 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7829 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7831 * Makefile.in (.c.o): Replace rule with ...
7832 (%.o: %.c): ... this one.
7834 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7836 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7837 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7839 * configure.ac: Remove checks for the make program.
7840 * configure: Re-generate.
7842 2016-10-28 Pedro Alves <palves@redhat.com>
7844 * Makefile.in (CXX_DIALECT): Get from configure.
7845 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7846 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7847 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7848 * config.in: Regenerate.
7849 * configure: Regenerate.
7851 2016-10-27 Yao Qi <yao.qi@linaro.org>
7853 * linux-low.c (linux_supports_range_stepping): Return true if
7854 can_software_single_step return true.
7856 2016-10-27 Yao Qi <yao.qi@linaro.org>
7858 * inferiors.c (find_inferior_in_random): New function.
7859 * inferiors.h (find_inferior_in_random): Declare.
7860 * linux-low.c (linux_wait_for_event_filtered): Call
7861 find_inferior_in_random instead of find_inferior.
7863 2016-10-27 Yao Qi <yao.qi@linaro.org>
7865 * linux-low.c (linux_wait_1): If single-step breakpoints are
7866 inserted, remove them.
7868 2016-10-26 Pedro Alves <palves@redhat.com>
7870 * linux-low.c (handle_extended_wait): Link parent/child fork
7872 (linux_wait_1): Unlink them.
7873 (linux_set_resume_request): Ignore resume requests for
7874 already-resumed and unhandled fork child threads.
7875 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7876 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7878 (handle_v_requests) <vCont>: Don't call require_running.
7879 * server.h (in_queued_stop_replies): New declaration.
7881 2016-10-24 Yao Qi <yao.qi@linaro.org>
7884 * linux-aarch64-low.c (append_insns): Cast the return value to
7887 2016-10-10 Yao Qi <yao.qi@linaro.org>
7889 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7891 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7893 * target.c (target_supports_multi_process): New function, moved
7895 * target.h (target_supports_multi_process): ... here. Remove
7898 2016-10-05 Tom Tromey <tom@tromey.com>
7901 * tracepoint.c (handle_tracepoint_bkpts): Check
7902 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7904 2016-10-05 Yao Qi <yao.qi@linaro.org>
7906 * configure.srv: Update the path of arm-*.xml files.
7908 2016-10-05 Terry Guo <terry.guo@arm.com>
7909 Yao Qi <yao.qi@linaro.org>
7911 * Makefile.in: Adjust the path of rules.
7912 * configure.srv: Update the path of xml files.
7913 * regformats/arm-with-iwmmxt.dat: Regenerated.
7914 * regformats/arm-with-neon.dat: Likewise.
7915 * regformats/arm-with-vfpv2.dat: Likewise.
7916 * regformats/arm-with-vfpv3.dat Likewise.
7918 2016-09-30 Yao Qi <yao.qi@linaro.org>
7921 * target.c (target_stop_and_wait): Don't call
7922 target_continue_no_signal, use resume_stop instead.
7924 2016-09-26 Yao Qi <yao.qi@linaro.org>
7926 * linux-low.c (linux_wait_1): Call debug_exit.
7928 2016-09-23 Pedro Alves <palves@redhat.com>
7930 * Makefile.in (SFILES): Add common/new-op.c.
7931 (OBS): Add common/new-op.o.
7932 (new-op.o): New rule.
7934 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7936 * .gitinore: Ignore more files.
7938 2016-09-21 Yao Qi <yao.qi@linaro.org>
7940 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7943 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7945 * server.c (start_inferior): Call target_mourn_inferior instead of
7946 mourn_inferior; pass ptid_t argument to it.
7948 (handle_target_event): Likewise.
7949 * target.c (target_mourn_inferior): New function.
7950 * target.h (mourn_inferior): Delete macro.
7952 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7954 * linux-low.c (lwp_is_stepping): New function.
7956 2016-09-06 Carl Love <cel@us.ibm.com>
7958 * server.c (start_inferior): Fixed comment, requested comment change
7959 didn't get updated correctly. Removed reference to ptrace () call as
7960 it is only true on Linux systems.
7962 2016-09-06 Carl Love <cel@us.ibm.com>
7964 * server.c (start_inferior): Do not call
7965 function target_post_create_inferior () if the
7966 inferior process has already exited.
7968 2016-09-05 Pedro Alves <palves@redhat.com>
7970 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7971 (COMPILE.pre, CC_LD): Use CXX directly.
7972 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7973 * acinclude.m4: Don't include build-with-cxx.m4.
7974 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7975 * configure: Regenerate.
7977 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7980 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7981 call writing data to own_buf.
7983 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7985 * target.c (mywait): Call target_wait instead of
7987 (target_wait): New function.
7989 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7991 * server.c (start_inferior): New variable 'ptid'. Replace calls
7992 to the_target->resume by target_continue{,_no_signal}, depending
7994 * target.c (target_stop_and_wait): Call target_continue_no_signal
7995 instead of the_target->resume.
7996 (target_continue): New function.
7998 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8000 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8002 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8005 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8007 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8008 * linux-arm-low.c (ps_get_thread_area): Likewise.
8009 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8010 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8011 * linux-mips-low.c (ps_get_thread_area): Likewise.
8012 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8013 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8014 * linux-x86-low.c (ps_get_thread_area): Likewise.
8015 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8017 2016-08-19 Pedro Alves <palves@redhat.com>
8019 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8021 2016-08-19 Pedro Alves <palves@redhat.com>
8023 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8024 comment. Use memcpy instead of casting through unsigned long.
8026 2016-08-19 Pedro Alves <palves@redhat.com>
8028 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8029 allocating around 0x80000000.
8031 2016-08-19 Pedro Alves <palves@redhat.com>
8034 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8035 (x32-avx512-linux-ipa.o): New rules.
8036 * configure.ac (x86_64-*-linux*): New x32 check.
8037 * configure.srv (ipa_x32_linux_regobj): New.
8038 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8039 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8041 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8043 * configure: Regenerate.
8045 2016-08-09 Pedro Alves <palves@redhat.com>
8048 * Makefile.in (OBS): Add signals-state-save-restore.o.
8049 (signals-state-save-restore.o): New rule.
8050 * config.in: Regenerate.
8051 * configure: Regenerate.
8052 * linux-low.c: Include "signals-state-save-restore.h".
8053 (linux_create_inferior): Call
8054 restore_original_signals_state.
8055 * server.c: Include "dispositions-save-restore.h".
8056 (captured_main): Call save_original_signals_state.
8058 2016-08-05 Pedro Alves <palves@redhat.com>
8060 * configure: Regenerate.
8062 2016-08-04 Yao Qi <yao.qi@linaro.org>
8064 * linux-low.c (regsets_fetch_inferior_registers): Check
8065 errno is ESRCH or not.
8067 2016-08-02 Yao Qi <yao.qi@linaro.org>
8069 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8070 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8071 (thread_db_load_search): Update.
8072 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8073 td_ta_set_event and td_ta_event_getmsg.
8075 2016-07-26 Pedro Alves <palves@redhat.com>
8078 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8079 of unsigned long for 64-bit registers and use uint32_t instead of
8080 unsigned int for 32-bit registers.
8082 2016-07-26 Pedro Alves <palves@redhat.com>
8084 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8087 2016-07-21 Tom Tromey <tom@tromey.com>
8089 * configure: Rebuild.
8091 2016-07-21 Yao Qi <yao.qi@linaro.org>
8093 * mem-break.c (find_gdb_breakpoint): Cast bp to
8094 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8096 2016-07-21 Yao Qi <yao.qi@linaro.org>
8098 * server.c (handle_v_requests): Support s and S actions
8099 if target_supports_software_single_step return true.
8101 2016-07-21 Yao Qi <yao.qi@linaro.org>
8103 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8104 is resume_step, call maybe_hw_step.
8105 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8107 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8109 (proceed_one_lwp): If resume request is resume_step, install
8110 reinsert breakpoints and call maybe_hw_step.
8112 2016-07-21 Yao Qi <yao.qi@linaro.org>
8114 * linux-low.c (proceed_one_lwp): Declare.
8115 (linux_resume_one_thread): Remove local variable 'step'.
8116 Lift code enqueue signal. Call proceed_one_lwp instead of
8117 linux_resume_one_lwp.
8119 2016-07-21 Yao Qi <yao.qi@linaro.org>
8121 * linux-low.c (linux_resume_one_thread): Call
8122 enqueue_pending_signal.
8124 2016-07-21 Yao Qi <yao.qi@linaro.org>
8126 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8127 * inferiors.c (do_restore_current_thread_cleanup): New function.
8128 (make_cleanup_restore_current_thread): Likewise.
8129 * linux-low.c (install_software_single_step_breakpoints): Call
8130 make_cleanup_restore_current_thread. Switch current_thread to
8133 2016-07-21 Yao Qi <yao.qi@linaro.org>
8135 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8136 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8137 (clone_one_breakpoint): Likewise.
8138 (delete_reinsert_breakpoints): Change parameter to thread.
8140 (has_reinsert_breakpoints): Likewise.
8141 (uninsert_reinsert_breakpoints): Likewise.
8142 (reinsert_reinsert_breakpoints): Likewise.
8143 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8144 (delete_reinsert_breakpoints): Likewise.
8145 (reinsert_reinsert_breakpoints): Likewise.
8146 (uninsert_reinsert_breakpoints): Likewise.
8147 (has_reinsert_breakpoints): Likewise.
8149 2016-07-21 Yao Qi <yao.qi@linaro.org>
8151 * inferiors.c (get_thread_process): Make parameter const.
8152 * inferiors.h (get_thread_process): Update declaration.
8153 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8154 Add new parameters child_thread and parent_thread. Callers
8156 * mem-break.h (clone_all_breakpoints): Update declaration.
8158 2016-07-21 Yao Qi <yao.qi@linaro.org>
8160 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8161 <command_list, handler>: Remove.
8162 (struct gdb_breakpoint): New.
8163 (struct other_breakpoint): New.
8164 (struct reinsert_breakpoint): New.
8165 (is_gdb_breakpoint): New function.
8166 (any_persistent_commands): Update command_list if
8167 is_gdb_breakpoint returns true.
8168 (set_breakpoint): Create breakpoints according to their types.
8169 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8170 (set_gdb_breakpoint_1): Likewise.
8171 (set_gdb_breakpoint): Likewise.
8172 (clear_breakpoint_conditions): Change parameter type to
8173 'struct gdb_breakpoint *'.
8174 (clear_breakpoint_commands): Likewise.
8175 (clear_breakpoint_conditions_and_commands): Likewise.
8176 (add_condition_to_breakpoint): Likewise.
8177 (add_breakpoint_condition): Likewise.
8178 (add_commands_to_breakpoint): Likewise.
8179 (check_breakpoints): Check other_breakpoint.
8180 (clone_one_breakpoint): Clone breakpopint according to its type.
8181 * mem-break.h (struct gdb_breakpoint): Declare.
8182 (set_gdb_breakpoint): Update declaration.
8183 (clear_breakpoint_conditions_and_commands): Likewise.
8184 (add_breakpoint_condition): Likewise.
8185 (add_breakpoint_commands): Likewise.
8186 * server.c (process_point_options): Change parameter type to
8187 'struct gdb_breakpoint *'.
8189 2016-07-21 Yao Qi <yao.qi@linaro.org>
8191 * mem-break.c (set_breakpoint_at): Rename it to ...
8192 (set_breakpoint_type_at): ... it.
8193 (set_breakpoint_at): Call set_breakpoint_type_at.
8194 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8195 * mem-break.h (set_breakpoint_at): Update comments.
8197 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8199 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8201 (nios2_store_gregset): Likewise.
8203 2016-07-01 Pedro Alves <palves@redhat.com>
8204 Antoine Tremblay <antoine.tremblay@ericsson.com>
8206 * linux-low.c: Change interface to take the target lwp_info
8207 pointer directly and return void. Handle detaching from a zombie
8209 (linux_detach_lwp_callback): New function.
8210 (linux_detach): Detach from the leader thread after detaching from
8213 2016-06-28 Yao Qi <yao.qi@linaro.org>
8215 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8216 for variable new_offset.
8217 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8218 (aarch64_ftrace_insn_reloc_cb): Likewise.
8219 (aarch64_ftrace_insn_reloc_tb): Likewise.
8220 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8221 PRIx64 instead of PRIx32.
8223 2016-06-28 Yao Qi <yao.qi@linaro.org>
8225 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8226 (the_low_target): Install arm_get_syscall_trapinfo.
8228 2016-06-28 Yao Qi <yao.qi@linaro.org>
8230 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8232 (the_low_target): Install aarch64_get_syscall_trapinfo.
8234 2016-06-28 Yao Qi <yao.qi@linaro.org>
8236 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8238 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8239 Remove parameter sysno.
8240 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8243 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8245 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8246 (s390_emit_ne_goto): Likewise.
8247 (s390_emit_lt_goto): Likewise.
8248 (s390_emit_le_goto): Likewise.
8249 (s390_emit_gt_goto): Likewise.
8250 (s390_emit_ge_goto): Likewise.
8251 (s390x_emit_eq_goto): Likewise.
8252 (s390x_emit_ne_goto): Likewise.
8253 (s390x_emit_lt_goto): Likewise.
8254 (s390x_emit_le_goto): Likewise.
8255 (s390x_emit_gt_goto): Likewise.
8256 (s390x_emit_ge_goto): Likewise.
8257 (s390_emit_ops_impl): Mark variable static.
8258 (s390x_emit_ops): Likewise.
8260 2016-06-17 Yao Qi <yao.qi@linaro.org>
8262 * linux-low.c (handle_extended_wait): Call
8263 uninsert_reinsert_breakpoints for the parent process. Remove
8264 reinsert breakpoints from the child process. Reinsert them to
8265 the parent process when vfork is done.
8266 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8267 (reinsert_reinsert_breakpoints): New function.
8268 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8269 (reinsert_reinsert_breakpoints): Declare.
8271 2016-06-17 Yao Qi <yao.qi@linaro.org>
8273 * linux-low.c (handle_extended_wait): If the parent is doing
8274 step-over, remove the reinsert breakpoints from the forked child.
8276 2016-06-17 Yao Qi <yao.qi@linaro.org>
8278 * linux-low.c (unsuspend_all_lwps): Declare.
8279 (linux_low_filter_event): If thread exited, call finish_step_over.
8280 If step-over is finished, unsuspend other threads.
8282 2016-06-17 Yao Qi <yao.qi@linaro.org>
8284 * linux-low.c (linux_resume_one_lwp_throw): Assert
8285 has_reinsert_breakpoints returns false.
8286 * mem-break.c (delete_disabled_breakpoints): Assert
8287 bp type isn't reinsert_breakpoint.
8289 2016-06-17 Yao Qi <yao.qi@linaro.org>
8291 * linux-low.c (maybe_hw_step): New function.
8292 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8293 (finish_step_over): Switch current_thread to lwp temporarily,
8294 and assert has_reinsert_breakpoints returns true.
8295 (proceed_one_lwp): Call maybe_hw_step.
8296 * mem-break.c (has_reinsert_breakpoints): New function.
8297 * mem-break.h (has_reinsert_breakpoints): Declare.
8299 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8301 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8303 2016-05-17 Yao Qi <yao.qi@linaro.org>
8305 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8306 instead of find_inferior.
8308 2016-05-05 Yao Qi <yao.qi@linaro.org>
8310 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8311 Initialize res to zero.
8313 2016-05-05 Yao Qi <yao.qi@linaro.org>
8315 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8318 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8320 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8321 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8322 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8324 2016-04-28 Par Olsson <par.olsson@windriver.com>
8325 Simon Marchi <simon.marchi@ericsson.com>
8327 * tracepoint.c (write_inferior_int8): New function.
8328 (cmd_qtenable_disable): Write enable flag using
8329 write_inferior_int8.
8331 2016-04-25 Yao Qi <yao.qi@linaro.org>
8333 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8334 (need_step_over_p): Return zero if the LWP has pending signals
8335 can be delivered on software single step target.
8337 2016-04-25 Yao Qi <yao.qi@linaro.org>
8339 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8340 return instead of error.
8342 2016-04-22 Yao Qi <yao.qi@linaro.org>
8344 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8347 2016-04-22 Yao Qi <yao.qi@linaro.org>
8349 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8350 signal when stepping over breakpoint with software single
8353 2016-04-21 Pedro Alves <palves@redhat.com>
8355 * linux-s390-low.c (s390_collect_ptrace_register)
8356 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8358 (s390_check_regset): Use void * instead of gdb_byte *.
8360 2016-04-20 Pedro Alves <palves@redhat.com>
8362 * configure: Renegerate.
8364 2016-04-20 Yao Qi <yao.qi@linaro.org>
8366 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8367 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8369 (arm_store_gregset): Likewise.
8371 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8373 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8374 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8375 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8376 (amd64-avx-mpx-linux.c): New rules.
8377 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8378 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8379 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8380 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8381 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8382 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8383 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8384 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8385 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8386 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8387 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8388 * linux-x86-low.c (x86_linux_read_description): Add case for
8389 X86_XSTATE_AVX_MPX_MASK.
8390 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8391 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8392 init_registers_i386_avx_mpx_linux.
8393 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8394 (initialize_low_tracepoint): Call
8395 init_registers_i386_avx_mpx_linux.
8396 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8397 (initialize_low_tracepoint): Call
8398 init_registers_amd64_avx_mpx_linux.
8399 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8400 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8401 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8404 2016-04-18 Pedro Alves <palves@redhat.com>
8406 * configure: Regenerate.
8408 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8410 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8411 (aarch64_emit_sub): Likewise.
8413 2016-04-12 Pedro Alves <palves@redhat.com>
8415 * utils.c (prepare_to_throw_exception): Delete.
8417 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8419 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8421 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8423 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8425 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8427 * linux-aarch64-ipa.c: Add <elf.h> include.
8428 * linux-ppc-ipa.c: Add <elf.h> include.
8429 * linux-s390-ipa.c: Add <elf.h> include.
8431 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8433 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8434 (get_raw_reg_ptr): Likewise.
8435 (get_trace_state_variable_value_ptr): Likewise.
8436 (set_trace_state_variable_value_ptr): Likewise.
8437 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8440 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8441 Marcin Kościelnicki <koriakin@0x04.net>
8444 * linux-ppc-low.c (emit_insns): New function.
8445 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8446 (ppc_emit_prologue): New function.
8447 (ppc_emit_epilogue): New function.
8448 (ppc_emit_add): New function.
8449 (ppc_emit_sub): New function.
8450 (ppc_emit_mul): New function.
8451 (ppc_emit_lsh): New function.
8452 (ppc_emit_rsh_signed): New function.
8453 (ppc_emit_rsh_unsigned): New function.
8454 (ppc_emit_ext): New function.
8455 (ppc_emit_zero_ext): New function.
8456 (ppc_emit_log_not): New function.
8457 (ppc_emit_bit_and): New function.
8458 (ppc_emit_bit_or): New function.
8459 (ppc_emit_bit_xor): New function.
8460 (ppc_emit_bit_not): New function.
8461 (ppc_emit_equal): New function.
8462 (ppc_emit_less_signed): New function.
8463 (ppc_emit_less_unsigned): New function.
8464 (ppc_emit_ref): New function.
8465 (ppc_emit_const): New function.
8466 (ppc_emit_reg): New function.
8467 (ppc_emit_pop): New function.
8468 (ppc_emit_stack_flush): New function.
8469 (ppc_emit_swap): New function.
8470 (ppc_emit_stack_adjust): New function.
8471 (ppc_emit_call): New function.
8472 (ppc_emit_int_call_1): New function.
8473 (ppc_emit_void_call_2): New function.
8474 (ppc_emit_if_goto): New function.
8475 (ppc_emit_goto): New function.
8476 (ppc_emit_eq_goto): New function.
8477 (ppc_emit_ne_goto): New function.
8478 (ppc_emit_lt_goto): New function.
8479 (ppc_emit_le_goto): New function.
8480 (ppc_emit_gt_goto): New function.
8481 (ppc_emit_ge_goto): New function.
8482 (ppc_write_goto_address): New function.
8483 (ppc_emit_ops_impl): New static variable.
8484 (ppc64v1_emit_prologue): New function.
8485 (ppc64v2_emit_prologue): New function.
8486 (ppc64_emit_epilogue): New function.
8487 (ppc64_emit_add): New function.
8488 (ppc64_emit_sub): New function.
8489 (ppc64_emit_mul): New function.
8490 (ppc64_emit_lsh): New function.
8491 (ppc64_emit_rsh_signed): New function.
8492 (ppc64_emit_rsh_unsigned): New function.
8493 (ppc64_emit_ext): New function.
8494 (ppc64_emit_zero_ext): New function.
8495 (ppc64_emit_log_not): New function.
8496 (ppc64_emit_bit_and): New function.
8497 (ppc64_emit_bit_or): New function.
8498 (ppc64_emit_bit_xor): New function.
8499 (ppc64_emit_bit_not): New function.
8500 (ppc64_emit_equal): New function.
8501 (ppc64_emit_less_signed): New function.
8502 (ppc64_emit_less_unsigned): New function.
8503 (ppc64_emit_ref): New function.
8504 (ppc64_emit_const): New function.
8505 (ppc64v1_emit_reg): New function.
8506 (ppc64v2_emit_reg): New function.
8507 (ppc64_emit_pop): New function.
8508 (ppc64_emit_stack_flush): New function.
8509 (ppc64_emit_swap): New function.
8510 (ppc64v1_emit_call): New function.
8511 (ppc64v2_emit_call): New function.
8512 (ppc64v1_emit_int_call_1): New function.
8513 (ppc64v2_emit_int_call_1): New function.
8514 (ppc64v1_emit_void_call_2): New function.
8515 (ppc64v2_emit_void_call_2): New function.
8516 (ppc64_emit_if_goto): New function.
8517 (ppc64_emit_eq_goto): New function.
8518 (ppc64_emit_ne_goto): New function.
8519 (ppc64_emit_lt_goto): New function.
8520 (ppc64_emit_le_goto): New function.
8521 (ppc64_emit_gt_goto): New function.
8522 (ppc64_emit_ge_goto): New function.
8523 (ppc64v1_emit_ops_impl): New static variable.
8524 (ppc64v2_emit_ops_impl): New static variable.
8525 (ppc_emit_ops): New function.
8526 (linux_low_target): Wire in ppc_emit_ops.
8528 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8529 Marcin Kościelnicki <koriakin@0x04.net>
8532 * Makefile.in: Add powerpc-*-ipa.o
8533 * configure.srv: Add ipa_obj for powerpc*-linux.
8534 * linux-ppc-ipa.c: New file.
8535 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8537 (PPC_FIELD): New macro.
8538 (PPC_SEXT): New macro.
8539 (PPC_OP6): New macro.
8540 (PPC_BO): New macro.
8541 (PPC_LI): New macro.
8542 (PPC_BD): New macro.
8543 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8544 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8545 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8546 (ppc_get_thread_area): New function.
8547 (is_elfv2_inferior): New function.
8548 (gen_ds_form): New function.
8549 (GEN_STD): New macro.
8550 (GEN_STDU): New macro.
8551 (GEN_LD): New macro.
8552 (GEN_LDU): New macro.
8553 (gen_d_form): New function.
8554 (GEN_ADDI): New macro.
8555 (GEN_ADDIS): New macro.
8556 (GEN_LI): New macro.
8557 (GEN_LIS): New macro.
8558 (GEN_ORI): New macro.
8559 (GEN_ORIS): New macro.
8560 (GEN_LWZ): New macro.
8561 (GEN_STW): New macro.
8562 (GEN_STWU): New macro.
8563 (gen_xfx_form): New function.
8564 (GEN_MFSPR): New macro.
8565 (GEN_MTSPR): New macro.
8566 (GEN_MFCR): New macro.
8567 (GEN_MTCR): New macro.
8568 (GEN_SYNC): New macro.
8569 (GEN_LWSYNC): New macro.
8570 (gen_x_form): New function.
8571 (GEN_OR): New macro.
8572 (GEN_MR): New macro.
8573 (GEN_LWARX): New macro.
8574 (GEN_STWCX): New macro.
8575 (GEN_CMPW): New macro.
8576 (gen_md_form): New function.
8577 (GEN_RLDICL): New macro.
8578 (GEN_RLDICR): New macro.
8579 (gen_i_form): New function.
8581 (GEN_BL): New macro.
8582 (gen_b_form): New function.
8583 (GEN_BNE): New macro.
8584 (GEN_LOAD): New macro.
8585 (GEN_STORE): New macro.
8586 (gen_limm): New function.
8587 (gen_atomic_xchg): New function.
8588 (gen_call): New function.
8589 (ppc_relocate_instruction): New function.
8590 (ppc_install_fast_tracepoint_jump_pad): New function.
8591 (ppc_get_min_fast_tracepoint_insn_len): New function.
8592 (ppc_get_ipa_tdesc_idx): New function.
8593 (the_low_target): Wire in the new functions.
8594 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8596 * linux-ppc-tdesc.h: New file.
8598 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8600 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8601 (alloc_jump_pad_buffer): New function.
8602 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8603 (alloc_jump_pad_buffer): New function.
8604 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8605 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8606 (alloc_jump_pad_buffer): New function.
8607 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8608 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8609 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8610 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8612 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8614 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8615 * linux-amd64-ipa.c: Likewise.
8616 * linux-i386-ipa.c: Likewise.
8617 * linux-s390-ipa.c: Likewise.
8618 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8619 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8620 set_trace_state_variable_value_ptr.
8621 (struct ipa_sym_addresses): Likewise.
8622 (symbol_list): Likewise.
8623 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8624 accessing gdb_collect directly.
8625 (gdb_collect_ptr_type): New typedef.
8626 (get_raw_reg_ptr_type): New typedef.
8627 (get_trace_state_variable_value_ptr_type): New typedef.
8628 (set_trace_state_variable_value_ptr_type): New typedef.
8629 (gdb_collect_ptr): New global.
8630 (get_raw_reg_ptr): New global.
8631 (get_trace_state_variable_value_ptr): New global.
8632 (set_trace_state_variable_value_ptr): New global.
8633 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8634 accessing get_raw_reg directly.
8635 (get_get_tsv_func_addr): Likewise for
8636 get_trace_state_variable_value_ptr.
8637 (get_set_tsv_func_addr): Likewise for
8638 set_trace_state_variable_value_ptr.
8639 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8641 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8643 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8645 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8647 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8649 (relocate_instruction): Remove own_buf.
8650 * server.c (own_buf): Make global.
8651 (handle_v_requests): Make global.
8652 * server.h (own_buf): New declaration.
8653 (handle_v_requests): New prototype.
8655 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8658 * linux-s390-low.c (add_insns): New function.
8659 (s390_emit_prologue): New function.
8660 (s390_emit_epilogue): New function.
8661 (s390_emit_add): New function.
8662 (s390_emit_sub): New function.
8663 (s390_emit_mul): New function.
8664 (s390_emit_lsh): New function.
8665 (s390_emit_rsh_signed): New function.
8666 (s390_emit_rsh_unsigned): New function.
8667 (s390_emit_ext): New function.
8668 (s390_emit_log_not): New function.
8669 (s390_emit_bit_and): New function.
8670 (s390_emit_bit_or): New function.
8671 (s390_emit_bit_xor): New function.
8672 (s390_emit_bit_not): New function.
8673 (s390_emit_equal): New function.
8674 (s390_emit_less_signed): New function.
8675 (s390_emit_less_unsigned): New function.
8676 (s390_emit_ref): New function.
8677 (s390_emit_if_goto): New function.
8678 (s390_emit_goto): New function.
8679 (s390_write_goto_address): New function.
8680 (s390_emit_litpool): New function.
8681 (s390_emit_const): New function.
8682 (s390_emit_call): New function.
8683 (s390_emit_reg): New function.
8684 (s390_emit_pop): New function.
8685 (s390_emit_stack_flush): New function.
8686 (s390_emit_zero_ext): New function.
8687 (s390_emit_swap): New function.
8688 (s390_emit_stack_adjust): New function.
8689 (s390_emit_set_r2): New function.
8690 (s390_emit_int_call_1): New function.
8691 (s390_emit_void_call_2): New function.
8692 (s390_emit_eq_goto): New function.
8693 (s390_emit_ne_goto): New function.
8694 (s390_emit_lt_goto): New function.
8695 (s390_emit_le_goto): New function.
8696 (s390_emit_gt_goto): New function.
8697 (s390_emit_ge_goto): New function.
8698 (s390x_emit_prologue): New function.
8699 (s390x_emit_epilogue): New function.
8700 (s390x_emit_add): New function.
8701 (s390x_emit_sub): New function.
8702 (s390x_emit_mul): New function.
8703 (s390x_emit_lsh): New function.
8704 (s390x_emit_rsh_signed): New function.
8705 (s390x_emit_rsh_unsigned): New function.
8706 (s390x_emit_ext): New function.
8707 (s390x_emit_log_not): New function.
8708 (s390x_emit_bit_and): New function.
8709 (s390x_emit_bit_or): New function.
8710 (s390x_emit_bit_xor): New function.
8711 (s390x_emit_bit_not): New function.
8712 (s390x_emit_equal): New function.
8713 (s390x_emit_less_signed): New function.
8714 (s390x_emit_less_unsigned): New function.
8715 (s390x_emit_ref): New function.
8716 (s390x_emit_if_goto): New function.
8717 (s390x_emit_const): New function.
8718 (s390x_emit_call): New function.
8719 (s390x_emit_reg): New function.
8720 (s390x_emit_pop): New function.
8721 (s390x_emit_stack_flush): New function.
8722 (s390x_emit_zero_ext): New function.
8723 (s390x_emit_swap): New function.
8724 (s390x_emit_stack_adjust): New function.
8725 (s390x_emit_int_call_1): New function.
8726 (s390x_emit_void_call_2): New function.
8727 (s390x_emit_eq_goto): New function.
8728 (s390x_emit_ne_goto): New function.
8729 (s390x_emit_lt_goto): New function.
8730 (s390x_emit_le_goto): New function.
8731 (s390x_emit_gt_goto): New function.
8732 (s390x_emit_ge_goto): New function.
8733 (s390_emit_ops): New function.
8734 (struct linux_target_ops): Fill in emit_ops hook.
8736 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8739 * Makefile.in: Add s390 IPA files.
8740 * configure.srv: Build IPA for s390.
8741 * linux-s390-ipa.c: New file.
8742 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8743 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8744 (tdesc_s390_linux32): Likewise.
8745 (init_registers_s390_linux32v1): Likewise.
8746 (tdesc_s390_linux32v1): Likewise.
8747 (init_registers_s390_linux32v2): Likewise.
8748 (tdesc_s390_linux32v2): Likewise.
8749 (init_registers_s390_linux64): Likewise.
8750 (tdesc_s390_linux64): Likewise.
8751 (init_registers_s390_linux64v1): Likewise.
8752 (tdesc_s390_linux64v1): Likewise.
8753 (init_registers_s390_linux64v2): Likewise.
8754 (tdesc_s390_linux64v2): Likewise.
8755 (init_registers_s390_te_linux64): Likewise.
8756 (tdesc_s390_te_linux64): Likewise.
8757 (init_registers_s390_vx_linux64): Likewise.
8758 (tdesc_s390_vx_linux64): Likewise.
8759 (init_registers_s390_tevx_linux64): Likewise.
8760 (tdesc_s390_tevx_linux64): Likewise.
8761 (init_registers_s390x_linux64): Likewise.
8762 (tdesc_s390x_linux64): Likewise.
8763 (init_registers_s390x_linux64v1): Likewise.
8764 (tdesc_s390x_linux64v1): Likewise.
8765 (init_registers_s390x_linux64v2): Likewise.
8766 (tdesc_s390x_linux64v2): Likewise.
8767 (init_registers_s390x_te_linux64): Likewise.
8768 (tdesc_s390x_te_linux64): Likewise.
8769 (init_registers_s390x_vx_linux64): Likewise.
8770 (tdesc_s390x_vx_linux64): Likewise.
8771 (init_registers_s390x_tevx_linux64): Likewise.
8772 (tdesc_s390x_tevx_linux64): Likewise.
8773 (have_hwcap_s390_vx): New static variable.
8774 (s390_arch_setup): Fill have_hwcap_s390_vx.
8775 (s390_get_thread_area): New function.
8776 (s390_ft_entry_gpr_esa): New const.
8777 (s390_ft_entry_gpr_zarch): New const.
8778 (s390_ft_entry_misc): New const.
8779 (s390_ft_entry_fr): New const.
8780 (s390_ft_entry_vr): New const.
8781 (s390_ft_main_31): New const.
8782 (s390_ft_main_64): New const.
8783 (s390_ft_exit_fr): New const.
8784 (s390_ft_exit_vr): New const.
8785 (s390_ft_exit_misc): New const.
8786 (s390_ft_exit_gpr_esa): New const.
8787 (s390_ft_exit_gpr_zarch): New const.
8788 (append_insns): New function.
8789 (s390_relocate_instruction): New function.
8790 (s390_install_fast_tracepoint_jump_pad): New function.
8791 (s390_get_min_fast_tracepoint_insn_len): New function.
8792 (s390_get_ipa_tdesc_idx): New function.
8793 (struct linux_target_ops): Wire in the above functions.
8794 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8795 * linux-s390-tdesc.h: New file.
8797 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8799 * linux-s390-low.c (s390_supports_tracepoints): New function.
8800 (struct linux_target_ops): Fill supports_tracepoints hook.
8802 2016-03-18 Yao Qi <yao.qi@linaro.org>
8804 * linux-low.c (lwp_signal_can_be_delivered): New function.
8805 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8807 2016-03-18 Yao Qi <yao.qi@linaro.org>
8809 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8810 0 if signal is enqueued. Remove 'signal' from one debugging
8811 message. Move one debugging message to some lines below.
8812 Remove code setting 'signal' to 0.
8814 2016-03-18 Yao Qi <yao.qi@linaro.org>
8816 * linux-low.c (linux_low_filter_event): Remove redundant
8817 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8819 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8821 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8822 (struct linux_target_ops): Wire in the above.
8824 2016-03-03 Yao Qi <yao.qi@linaro.org>
8826 * linux-low.c: Update comments to start_step_over.
8828 2016-03-03 Yao Qi <yao.qi@linaro.org>
8831 * linux-low.c (handle_extended_wait): Set child suspended
8832 if event_lwp->bp_reinsert isn't zero.
8834 2016-03-02 Yao Qi <yao.qi@linaro.org>
8836 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8837 enqueue_pending_signal.
8839 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8841 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8844 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8846 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8847 (s390_regmap_3264) [!__s390x__]: New global.
8848 (s390_collect_ptrace_register): Skip map entries containing -1.
8849 (s390_supply_ptrace_register): Ditto.
8850 (s390_fill_gprs_high): New function.
8851 (s390_store_gprs_high): New function.
8852 (s390_regsets): Add NT_S390_HIGH_GPRS.
8853 (s390_get_hwcap): Enable on 31-bit.
8854 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8855 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8856 Detect NT_S390_HIGH_GPRS.
8857 (s390_usrregs_info_3264): Enable on 31-bit.
8858 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8859 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8861 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8864 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8865 * configure.srv: Ditto.
8866 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8867 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8868 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8869 (init_registers_amd64_linux): Remove prototype.
8870 (tdesc_amd64_linux): Remove declaration.
8871 (get_ipa_tdesc): New function.
8872 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8873 initialize remaining tdescs.
8874 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8875 (init_registers_i386_linux): Remove prototype.
8876 (tdesc_i386_linux): Remove declaration.
8877 (get_ipa_tdesc): New function.
8878 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8879 initialize remaining tdescs.
8880 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8881 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8882 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8883 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8884 (x86_get_ipa_tdesc_idx): New function.
8885 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8886 * linux-x86-tdesc.h: New file.
8887 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8888 (target_get_ipa_tdesc_idx): New macro.
8889 * tracepoint.c (ipa_tdesc_idx): New macro.
8890 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8891 (symbol_list): Add ipa_tdesc_idx.
8892 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8893 (ipa_tdesc): Remove.
8894 (ipa_tdesc_idx): New variable.
8895 (get_context_regcache): Use get_ipa_tdesc.
8896 (gdb_collect): Ditto.
8898 * tracepoint.h (get_ipa_tdesc): New prototype.
8899 (ipa_tdesc): Remove.
8901 2016-02-24 Pedro Alves <palves@redhat.com>
8903 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8904 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8905 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8906 Factor out common code between the USE_SIGTRAP_SIGINFO and
8907 !USE_SIGTRAP_SIGINFO blocks.
8908 (linux_low_filter_event): Call save_stop_reason instead of
8909 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8911 (linux_wait_1): Update comments.
8913 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8915 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8916 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8917 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8918 ppc_insert_point, ppc_remove_point.
8920 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8922 * linux-s390-low.c (s390_supports_z_point_type): New function.
8923 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8925 2016-02-16 Yao Qi <yao.qi@linaro.org>
8927 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8928 PC. Get pc from regcache_read_pc.
8930 2016-02-12 Yao Qi <yao.qi@linaro.org>
8932 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8933 or linux_get_pc_32bit.
8934 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8936 2016-02-12 Yao Qi <yao.qi@linaro.org>
8938 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8939 arm_linux_get_next_pcs_fixup.
8941 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8943 * tracepoint.c (x_tracepoint_action_download): Change
8944 write_inferior_data_ptr to write_inferior_data_pointer.
8945 (cmd_qtstart): Likewise.
8946 (write_inferior_data_ptr): Remove.
8947 (download_agent_expr): Change write_inferior_data_ptr to
8948 write_inferior_data_pointer.
8949 (download_tracepoint_1): Likewise.
8950 (download_tracepoint): Likewise.
8951 (download_trace_state_variables): Likewise.
8953 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8954 Marcin Kościelnicki <koriakin@0x04.net>
8956 * tracepoint.c (struct tracepoint_action_ops): Remove.
8957 (struct tracepoint_action): Remove ops.
8958 (m_tracepoint_action_download, r_tracepoint_action_download)
8959 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8960 size and offset accordingly.
8961 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8962 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8963 (tracepoint_action_send, tracepoint_action_download): New functions.
8964 Helpers for trace action handlers.
8965 (add_tracepoint_action): Remove setup actions ops.
8966 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8968 2016-02-10 Yao Qi <yao.qi@linaro.org>
8970 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8972 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8974 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8976 * configure: Regenerate.
8978 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8980 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8981 void * to gdb_byte *.
8982 * linux-low.c (siginfo_fixup): Likewise.
8983 (linux_xfer_siginfo): Likewise.
8984 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8986 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8988 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8990 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8992 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8994 * linux-x86-low.c [__x86_64__]: Include
8995 "nat/amd64-linux-siginfo.h".
8996 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8997 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8998 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8999 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9000 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9001 (cpt_si_fd, si_timerid, si_overrun): Move from
9002 nat/amd64-linux-siginfo.c.
9003 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9005 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9007 * server.c (skip_to_semicolon): Remove.
9008 (process_point_options): Use strchrnul instead of
9011 2016-01-26 Yao Qi <yao.qi@linaro.org>
9013 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9014 * linux-low.c (install_software_single_step_breakpoints): Don't
9015 call regcache_read_pc.
9016 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9019 2016-01-26 Yao Qi <yao.qi@linaro.org>
9021 * linux-low.c (install_software_single_step_breakpoints): Call
9022 regcache_read_pc instead of get_pc.
9024 2016-01-26 Yao Qi <yao.qi@linaro.org>
9026 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9027 (unblock_async_io): Rename to ...
9028 (block_unblock_async_io): ... it. New function.
9029 (enable_async_io): Don't install SIGIO handler. Unblock it
9031 (disable_async_io): Don't ignore SIGIO. Block it instead.
9032 (initialize_async_io): Install SIGIO handler. Don't call
9035 2016-01-26 Yao Qi <yao.qi@linaro.org>
9037 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9038 first character is '\003', call *the_target->request_interrupt.
9040 2016-01-25 Yao Qi <yao.qi@linaro.org>
9042 * remote-utils.c (new_thread_notify): Remove.
9043 (dead_thread_notify): Likewise.
9044 * remote-utils.h (new_thread_notify): Remove declaration.
9045 (dead_thread_notify): Likewise.
9047 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9049 * gdb.trace/pending.exp: Fix expected message on continue.
9051 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9053 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9054 it works properly on big-endian machines where sizeof (CORE_ADDR)
9057 2016-01-21 Pedro Alves <palves@redhat.com>
9059 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9060 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9061 * configure: Regenerate.
9063 2016-01-21 Yao Qi <yao.qi@linaro.org>
9065 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9066 is_thumb and set it according to CPSR saved on the stack.
9067 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9068 arm_sigreturn_next_pc.
9070 2016-01-18 Yao Qi <yao.qi@linaro.org>
9072 * linux-low.c (linux_set_pc_64bit): New function.
9073 (linux_get_pc_64bit): New function.
9074 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9076 * linux-sparc-low.c (debug_threads): Remove declaration.
9077 (sparc_get_pc): Remove.
9078 (the_low_target): Use linux_get_pc_64bit instead of
9080 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9081 (the_low_target): Use linux_get_pc_64bit and
9084 2016-01-18 Yao Qi <yao.qi@linaro.org>
9086 * linux-arm-low.c (debug_threads): Remove declaration.
9087 (arm_get_pc, arm_set_pc): Remove.
9088 (the_low_target): Use linux_get_pc_32bit and
9090 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9091 (the_low_target): Use linux_get_pc_32bit and
9093 * linux-cris-low.c (debug_threads): Remove declaration.
9094 (cris_get_pc, cris_set_pc,): Remove.
9095 (the_low_target): Use linux_get_pc_32bit and
9097 * linux-crisv32-low.c (debug_threads): Remove declaration.
9098 (cris_get_pc, cris_set_pc): Remove.
9099 (the_low_target): Use linux_get_pc_32bit and
9101 * linux-low.c: Include inttypes.h.
9102 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9103 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9104 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9105 (the_low_target): Use linux_get_pc_32bit and
9107 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9108 (the_low_target): Use linux_get_pc_32bit and
9110 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9111 (the_low_target): Use linux_get_pc_32bit and
9113 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9114 (the_low_target): Use linux_get_pc_32bit and
9116 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9117 (the_low_target): Use linux_get_pc_32bit and
9120 2016-01-18 Gary Benson <gbenson@redhat.com>
9122 * configure.ac (AC_FUNC_FORK): New check.
9123 * config.in: Regenerate.
9124 * configure: Likewise.
9126 2016-01-14 Yao Qi <yao.qi@linaro.org>
9128 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9129 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9130 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9131 arm_get_next_pcs_ctor.
9133 2016-01-12 Josh Stone <jistone@redhat.com>
9134 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9136 * inferiors.h: Include "gdb_vecs.h".
9137 (struct process_info): Add syscalls_to_catch.
9138 * inferiors.c (remove_process): Free syscalls_to_catch.
9139 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9140 syscall_return stops.
9141 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9142 * server.c (handle_general_set): Handle QCatchSyscalls.
9143 (handle_query): Report support for QCatchSyscalls.
9144 * target.h (struct target_ops): Add supports_catch_syscall.
9145 (target_supports_catch_syscall): New macro.
9146 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9147 (struct lwp_info): Add syscall_state.
9148 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9149 Maintain syscall_state and syscalls_to_catch across exec.
9150 (get_syscall_trapinfo): New function, proxy to the_low_target.
9151 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9152 (linux_low_filter_event): Toggle syscall_state entry/return for
9153 syscall traps, and set it ignored for all others.
9154 (gdb_catching_syscalls_p): New function.
9155 (gdb_catch_this_syscall_p): New function.
9156 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9157 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9158 (linux_supports_catch_syscall): New function.
9159 (linux_target_ops): Install it.
9160 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9161 (the_low_target): Install it.
9163 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9165 * acinclude.m4: Include new ../warning.m4 file.
9166 * configure: Regenerated.
9167 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9169 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9171 * ax.c (is_goto_target): Mark static.
9172 * linux-low.c (register_addr): Likewise.
9173 (linux_fetch_registers, linux_store_registers): Likewise.
9174 * mem-break.c (any_persistent_commands): Fix old prototype.
9175 (add_commands_to_breakpoint): Mark static.
9176 * regcache.c (find_register_by_name): Delete unused func.
9177 * remote-utils.c (hex_or_minus_one): Mark static.
9178 * server.c (monitor_show_help): Mark static.
9179 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9180 handle_v_requests): Likewise.
9182 2016-01-12 Pedro Alves <palves@redhat.com>
9184 Remove use of the registered trademark symbol throughout.
9186 2016-01-08 Yao Qi <yao.qi@linaro.org>
9188 * remote-utils.c (getpkt): If c is '\003', call target hook
9191 2016-01-06 Yao Qi <yao.qi@linaro.org>
9193 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9194 linux-aarch32-low.c.
9195 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9196 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9197 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9198 (thumb2_breakpoint): Declare.
9199 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9200 linux-aarch32-low.h.
9201 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9202 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9203 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9205 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9207 * gdbreplay.c (gdbreplay_version): Change copyright year in
9209 * server.c (gdbserver_version): Likewise.
9211 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9213 * server.c (crc32_table): Delete.
9214 (crc32): Use libiberty's xcrc32 function.
9216 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9218 * lynx-low.c (lynx_delete_thread_callback): New function.
9219 (lynx_mourn): Properly delete our process and all of its
9220 threads. Remove call to clear_inferiors.
9222 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9224 * target.c (thread_search_callback): Add check that
9225 the thread_stopped target callback is not NULL before
9228 2015-12-21 Yao Qi <yao.qi@linaro.org>
9230 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9233 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9235 * server.c (handle_query): Call target_supports_software_single_step.
9237 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9239 * linux-low.c (single_step): New function.
9240 (linux_resume_one_lwp_throw): Call single_step.
9241 (start_step_over): Likewise.
9243 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9245 * Makefile.in (SFILES): Append arch/arm-linux.c,
9246 arch/arm-get-next-pcs.c.
9247 (arm-linux.o): New rule.
9248 (arm-get-next-pcs.o): New rule.
9249 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9251 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9252 to linux-aarch32-low.c.
9253 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9254 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9255 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9256 (thumb2_breakpoint_len): Likewise.
9257 (arm_is_thumb_mode): Make non-static.
9258 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9259 from linux-aarch32-low.c.
9260 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9261 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9262 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9263 (thumb2_breakpoint_len): Likewise.
9264 (arm_is_thumb_mode): New declaration.
9265 * linux-arm-low.c: Include arch/arm-linux.h
9266 aarch/arm-get-next-pcs.h, sys/syscall.h.
9267 (get_next_pcs_ops): New struct.
9268 (get_next_pcs_addr_bits_remove): New function.
9269 (get_next_pcs_is_thumb): New function.
9270 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9271 (arm_sigreturn_next_pc): Likewise.
9272 (get_next_pcs_syscall_next_pc): Likewise.
9273 (arm_gdbserver_get_next_pcs): Likewise.
9274 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9276 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9277 * server.h: Include gdb_vecs.h.
9279 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9281 * Makefile.in (SFILES): Append common/common-regcache.c.
9282 (OBS): Append common-regcache.o.
9283 (common-regcache.o): New rule.
9284 * regcache.c (init_register_cache): Initialize cache to
9286 (regcache_raw_read_unsigned): New function.
9287 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9288 register_status enum.
9290 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9292 * linux-aarch64-low.c (the_low_targets): Rename
9293 breakpoint_reinsert_addr to get_next_pcs.
9294 * linux-arm-low.c (the_low_targets): Likewise.
9295 * linux-bfin-low.c (the_low_targets): Likewise.
9296 * linux-cris-low.c (the_low_targets): Likewise.
9297 * linux-crisv32-low.c (the_low_targets): Likewise.
9298 * linux-low.c (can_software_single_step): Likewise.
9299 (install_software_single_step_breakpoints): New function.
9300 (start_step_over): Use install_software_single_step_breakpoints.
9301 * linux-low.h: New CORE_ADDR vector.
9302 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9304 * linux-mips-low.c (the_low_targets): Likewise.
9305 * linux-nios2-low.c (the_low_targets): Likewise.
9306 * linux-sparc-low.c (the_low_targets): Likewise.
9308 2015-12-17 Pedro Alves <palves@redhat.com>
9310 * linux-low.c (linux_kill_one_lwp): Remove references to
9312 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9314 (linux_init_signals): Delete.
9315 (initialize_low): Adjust.
9316 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9318 2015-12-16 Pedro Alves <palves@redhat.com>
9320 * configure.ac (compiler warning flags): When testing a
9321 -Wno-foo option, check whether -Wfoo works instead.
9322 * configure: Regenerate.
9324 2015-12-11 Don Breazeal <donb@codesourcery.com>
9326 * server.c (process_serial_event): Don't exit from gdbserver
9327 in remote mode if there are still active inferiors.
9329 2015-12-11 Yao Qi <yao.qi@linaro.org>
9331 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9332 arm_breakpoint_at if the process is 32-bit.
9334 2015-12-11 Yao Qi <yao.qi@linaro.org>
9336 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9339 2015-12-07 Yao Qi <yao.qi@linaro.org>
9341 * configure.srv: Append arm.o to srv_tgtobj for
9342 aarch64*-*-linux* target.
9343 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9344 from linux-arm-low.c.
9345 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9346 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9347 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9348 (thumb2_breakpoint_len): Likewise.
9349 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9350 (arm_breakpoint_kinds): Likewise.
9351 (arm_breakpoint_kind_from_pc): Likewise.
9352 (arm_sw_breakpoint_from_kind): Likewise.
9353 (arm_breakpoint_kind_from_current_state): Likewise.
9354 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9355 (arm_sw_breakpoint_from_kind): Declare.
9356 (arm_breakpoint_kind_from_current_state): Declare.
9357 (arm_breakpoint_at): Declare.
9358 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9359 arm_sw_breakpoint_from_kind if process is 32-bit.
9360 (aarch64_breakpoint_kind_from_pc): New function.
9361 (aarch64_breakpoint_kind_from_current_state): New function.
9362 (the_low_target): Initialize fields breakpoint_kind_from_pc
9363 and breakpoint_kind_from_current_state.
9364 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9365 linux-aarch32-low.c.
9366 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9367 (arm_breakpoint, arm_breakpoint_len): Likewise.
9368 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9369 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9370 (arm_is_thumb_mode): Likewise.
9371 (arm_breakpoint_at): Likewise.
9372 (arm_breakpoint_kind_from_pc): Likewise.
9373 (arm_sw_breakpoint_from_kind): Likewise.
9374 (arm_breakpoint_kind_from_current_state): Likewise.
9377 2015-08-04 Yao Qi <yao.qi@linaro.org>
9379 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9380 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9381 * server.c (extended_protocol): Remove "static".
9382 * server.h (extended_protocol): Declare it.
9384 2015-12-04 Josh Stone <jistone@redhat.com>
9386 * target.h (struct target_ops) <arch_setup>: Rename to ...
9387 (struct target_ops) <post_create_inferior>: ... this.
9388 (target_arch_setup): Rename to ...
9389 (target_post_create_inferior): ... this, calling post_create_inferior.
9390 * server.c (start_inferior): Update target_arch_setup calls to
9391 target_post_create_inferior.
9392 * linux-low.c (linux_low_ptrace_options): Forward declare.
9393 (linux_arch_setup): Update its comment for general use.
9394 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9395 (struct linux_target_ops): Use linux_post_create_inferior.
9396 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9397 to post_create_inferior.
9398 * nto-low.c (struct nto_target_ops): Likewise.
9399 * spu-low.c (struct spu_target_ops): Likewise.
9400 * win32-low.c (struct win32_target_ops): Likewise.
9402 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9404 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9406 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9408 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9409 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9410 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9411 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9412 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9413 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9414 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9415 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9416 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9417 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9418 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9419 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9421 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9423 * linux-low.c (linux_look_up_symbols): Don't call
9424 linux_supports_traceclone.
9425 * linux-low.h (thread_db_init): Remove use_events argument.
9426 * thread-db.c (thread_db_use_event): Remove global variable.
9427 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9428 (struct thread_db) <td_create_bp>: Remove field.
9429 (thread_db_create_event): Remove function.
9430 (thread_db_enable_reporting): Likewise.
9431 (find_one_thread): Don't check for thread_db_use_events.
9432 (attach_thread): Likewise.
9433 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9434 (try_thread_db_load_1): Don't check for thread_db_use_events.
9435 (thread_db_init): Remove use_events argument and thread events
9437 (remove_thread_event_breakpoints): Remove function.
9438 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9440 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9442 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9444 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9445 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9446 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9447 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9448 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9450 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9452 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9453 * linux-low.c (can_hardware_single_step): Use
9454 supports_hardware_single_step.
9455 (can_software_single_step): New function.
9456 (start_step_over): Call can_software_single_step.
9457 (linux_supports_hardware_single_step): New function.
9458 (struct target_ops) <supports_software_single_step>: Initialize.
9459 * linux-low.h (struct linux_target_ops)
9460 <supports_hardware_single_step>: Initialize.
9461 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9462 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9463 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9464 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9465 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9466 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9467 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9468 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9469 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9470 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9472 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9473 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9475 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9476 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9477 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9479 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9480 * target.h (struct target_ops): <supports_software_single_step>:
9482 (target_supports_software_single_step): New macro.
9484 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9486 * linux-low.c (linux_wait_1): Fix pc advance condition.
9487 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9488 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9490 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9492 * linux-arm-low.c (arm_is_thumb_mode): New function.
9493 (arm_breakpoint_at): Use arm_is_thumb_mode.
9494 (arm_breakpoint_kind_from_current_state): New function.
9495 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9497 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9498 (linux_breakpoint_kind_from_current_state): New function.
9499 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9500 * linux-low.h (struct linux_target_ops)
9501 <breakpoint_kind_from_current_state>: New field.
9502 * target.h (struct target_ops): Likewise.
9503 (target_breakpoint_kind_from_current_state): New macro.
9505 2015-11-30 Pedro Alves <palves@redhat.com>
9507 * linux-low.c (linux_resume): Wake up the event loop before
9510 2015-11-30 Pedro Alves <palves@redhat.com>
9512 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9514 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9516 * target.c (struct thread_search): New structure.
9517 (thread_search_callback): New function.
9518 (prev_general_thread): New global.
9519 (prepare_to_access_memory, done_accessing_memory): New functions.
9520 * target.h (prepare_to_access_memory, done_accessing_memory):
9521 Replace macros with function declarations.
9523 2015-11-30 Pedro Alves <palves@redhat.com>
9526 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9527 report TARGET_WAITKIND_NO_RESUMED.
9528 * remote-utils.c (prepare_resume_reply): Handle
9529 TARGET_WAITKIND_NO_RESUMED.
9530 * server.c (report_no_resumed): New global.
9531 (handle_query) <qSupported>: Handle "no-resumed+". Report
9532 "no-resumed+" support.
9533 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9534 return error if the client doesn't support no-resumed events.
9535 (push_stop_notification): New function.
9536 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9537 events if the client supports them.
9539 2015-11-30 Pedro Alves <palves@redhat.com>
9541 * linux-low.c (thread_still_has_status_pending_p): Don't check
9543 (lwp_resumed): New function.
9544 (status_pending_p_callback): Return early if the LWP is not
9545 supposed to be resumed.
9547 2015-11-30 Pedro Alves <palves@redhat.com>
9549 * linux-low.c (handle_extended_wait): Assert that the LWP's
9550 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9551 thread create events, leave the new child's status pending.
9552 (linux_low_filter_event): If GDB wants to hear about thread exit
9553 events, leave the LWP marked dead and don't delete it.
9554 (linux_wait_for_event_filtered): Don't check for thread exit.
9555 (filter_exit_event): New function.
9556 (linux_wait_1): Use it, when returning an exit event.
9557 (linux_resume_one_lwp_throw): Assert that the LWP's
9558 waitstatus is TARGET_WAITKIND_IGNORE.
9559 * remote-utils.c (prepare_resume_reply): Handle
9560 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9561 * server.c (report_thread_events): New global.
9562 (handle_general_set): Handle QThreadEvents.
9563 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9564 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9565 TARGET_WAITKIND_THREAD_EXITED.
9566 * server.h (report_thread_events): Declare.
9568 2015-11-30 Pedro Alves <palves@redhat.com>
9570 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9571 the thread's last_resume_kind was resume_stop.
9573 2015-11-30 Pedro Alves <palves@redhat.com>
9575 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9578 2015-11-30 Pedro Alves <palves@redhat.com>
9580 * server.c (handle_v_requests): Handle vCtrlC.
9582 2015-11-30 Pedro Alves <palves@redhat.com>
9584 * gdbthread.h (find_any_thread_of_pid): Declare.
9585 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9587 * server.c (handle_query): If current_thread is NULL, look for
9588 another thread of the selected process.
9590 2015-11-26 Daniel Colascione <dancol@dancol.org>
9591 Simon Marchi <simon.marchi@ericsson.com>
9593 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9594 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9596 * target.h (struct target_ops) <thread_name>: New field.
9597 (target_thread_name): New macro.
9599 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9601 * regcache.h (regcache_invalidate_pid): Add declaration.
9602 * regcache.c (regcache_invalidate_pid): New function, extracted
9603 from regcache_invalidate.
9604 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9605 Add trivial documentation comment.
9606 * lynx-low.c: Use regcache_invalidate_pid instead of
9607 regcache_invalidate.
9609 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9611 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9612 and Elf64_auxv_t if the target is Android.
9614 2015-11-22 Doug Evans <xdje42@gmail.com>
9616 * target.h: #include <sys/types.h>.
9618 2015-11-19 Pedro Alves <palves@redhat.com>
9620 * linux-low.c (linux_process_qsupported): Change prototype.
9622 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9624 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9625 and adjust to loop over all features.
9626 * server.c (handle_query) <qSupported>: Adjust to call
9627 target_process_qsupported once, passing it a vector of unprocessed
9629 * target.h (struct target_ops) <process_qsupported>: Change
9631 (target_process_qsupported): Adjust.
9633 2015-11-19 Pedro Alves <palves@redhat.com>
9635 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9637 * configure: Regenerate.
9639 2015-11-19 Pedro Alves <palves@redhat.com>
9641 * configure: Regenerate.
9643 2015-11-19 Yao Qi <yao.qi@linaro.org>
9645 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9648 2015-11-19 Yao Qi <yao.qi@linaro.org>
9650 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9651 (struct aarch64_operand): Move enum out.
9653 2015-11-19 Yao Qi <yao.qi@linaro.org>
9655 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9656 struct user_fpsimd_state *.
9657 (aarch64_store_fpregset): Likewise.
9659 2015-11-19 Yao Qi <yao.qi@linaro.org>
9661 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9662 struct user_pt_regs *.
9663 (aarch64_store_gregset): Likewise.
9665 2015-11-18 Pedro Alves <palves@redhat.com>
9667 * Makefile.in (all_object_files): Add $IPA_OBJS.
9669 2015-11-17 Pedro Alves <palves@redhat.com>
9671 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9672 GDB_SIGNAL_0 and gdb_signal_to_string.
9674 2015-11-17 Pedro Alves <palves@redhat.com>
9676 * win32-low.c (handle_output_debug_string): Remove parameter.
9677 (win32_kill): Remove our_status local and adjust call to
9678 handle_output_debug_string.
9679 (get_child_debug_event): Adjust call to
9680 handle_output_debug_string.
9682 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9684 * linux-mips-low.c (mips_fill_gregset): Add cast.
9685 (mips_store_gregset): Likewise.
9686 (mips_fill_fpregset): Likewise.
9687 (mips_store_fpregset): Likewise.
9689 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9691 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9694 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9696 * linux-mips-low.c (mips_linux_new_thread): Change type of
9697 watch_type to enum target_hw_bp_type.
9699 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9701 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9702 Change return type to arm_hwbp_type.
9704 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9706 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9707 (arm_store_gregset): Likewise.
9708 * linux-arm-low.c (arm_get_hwcap): Likewise.
9709 (arm_read_description): Likewise.
9711 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9713 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9715 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9717 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9718 (ppc_fill_vsxregset): Likewise.
9719 (ppc_store_vsxregset): Likewise.
9720 (ppc_fill_vrregset): Likewise.
9721 (ppc_store_vrregset): Likewise.
9722 (ppc_fill_evrregset): Likewise.
9723 (ppc_store_evrregset): Likewise.
9725 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9727 * linux-ppc-low.c (ppc_usrregs_info): Remove
9728 forward-declaration.
9729 (ppc_arch_setup): Move lower in file.
9731 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9733 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9734 (ps_pdwrite): Likewise.
9736 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9738 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9739 to after assert checks.
9741 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9743 * proc-service.c (ps_pdread): Add/adjust casts.
9744 (ps_pdwrite): Add/adjust casts.
9746 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9748 * server.c (handle_search_memory_1): Cast return value of
9751 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9753 * server.c (write_qxfer_response): Change type of data to
9756 2015-10-29 Pedro Alves <palves@redhat.com>
9758 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9760 2015-10-29 Pedro Alves <palves@redhat.com>
9762 * tracepoint.c (clear_installed_tracepoints): Add casts.
9764 2015-10-29 Pedro Alves <palves@redhat.com>
9766 * server.c (handle_v_cont, process_serial_event): Add enum
9767 gdb_signal casts to signal parsing code.
9769 2015-10-29 Pedro Alves <palves@redhat.com>
9771 * linux-low.h (NULL_REGSET): Define.
9772 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9773 * linux-arm-low.c (arm_regsets): Likewise.
9774 * linux-crisv32-low.c (cris_regsets): Likewise.
9775 * linux-m68k-low.c (m68k_regsets): Likewise.
9776 * linux-mips-low.c (mips_regsets): Likewise.
9777 * linux-nios2-low.c (nios2_regsets): Likewise.
9778 * linux-ppc-low.c (ppc_regsets): Likewise.
9779 * linux-s390-low.c (s390_regsets): Likewise.
9780 * linux-sh-low.c (sh_regsets): Likewise.
9781 * linux-sparc-low.c (sparc_regsets): Likewise.
9782 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9783 * linux-tile-low.c (tile_regsets): Likewise.
9784 * linux-x86-low.c (x86_regsets): Likewise.
9785 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9787 2015-10-29 Pedro Alves <palves@redhat.com>
9789 * linux-low.h (NULL_REGSET): Define.
9790 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9791 * linux-arm-low.c (arm_regsets): Likewise.
9792 * linux-crisv32-low.c (cris_regsets): Likewise.
9793 * linux-m68k-low.c (m68k_regsets): Likewise.
9794 * linux-mips-low.c (mips_regsets): Likewise.
9795 * linux-nios2-low.c (nios2_regsets): Likewise.
9796 * linux-ppc-low.c (ppc_regsets): Likewise.
9797 * linux-s390-low.c (s390_regsets): Likewise.
9798 * linux-sh-low.c (sh_regsets): Likewise.
9799 * linux-sparc-low.c (sparc_regsets): Likewise.
9800 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9801 * linux-tile-low.c (tile_regsets): Likewise.
9802 * linux-x86-low.c (x86_regsets): Likewise.
9803 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9805 2015-10-26 Doug Evans <dje@google.com>
9807 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9809 2015-10-26 Doug Evans <dje@google.com>
9811 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9813 2015-10-26 Doug Evans <dje@google.com>
9815 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9817 (attach_thread, find_new_threads_callback): Ditto.
9819 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9821 * mem-break.h (set_breakpoint_data): Remove.
9823 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9825 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9826 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9827 (initialize_low): Remove set_breakpoint_data call.
9828 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9829 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9830 (initialize_low): Remove set_breakpoint_data call.
9831 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9832 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9833 (initialize_low): Remove set_breakpoint_data call.
9835 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9837 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9838 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9839 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9840 * target.h (target_breakpoint_kind_from_pc): New macro.
9842 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9844 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9845 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9846 the default breakpoint kind.
9848 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9850 * linux-arm-low.c (arm_supports_z_point_type): Add software
9853 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9855 * linux-arm-low.c: Refactor breakpoint definitions.
9856 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9857 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9859 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9861 * Makefile.in: Add arm.c/o.
9862 * configure.srv: Likewise.
9863 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9864 (arm_breakpoint_kind_from_pc): New function.
9865 (arm_sw_breakpoint_from_kind): Return proper kind.
9866 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9868 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9870 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9872 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9873 (struct raw_breakpoint) <size>: Remove.
9874 (struct raw_breakpoint) <kind>: Add.
9875 (bp_size): New function.
9876 (bp_opcode): Likewise.
9877 (find_raw_breakpoint_at): Adjust for kind.
9878 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9879 (remove_memory_breakpoint): Adjust for kind call bp_size.
9880 (set_raw_breakpoint_at): Adjust for kind.
9881 (set_breakpoint): Likewise.
9882 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9883 (delete_raw_breakpoint): Adjust for kind.
9884 (delete_breakpoint): Likewise.
9885 (find_gdb_breakpoint): Likewise.
9886 (set_gdb_breakpoint_1): Likewise.
9887 (set_gdb_breakpoint): Likewise.
9888 (delete_gdb_breakpoint_1): Likewise.
9889 (delete_gdb_breakpoint): Likewise.
9890 (uninsert_raw_breakpoint): Likewise.
9891 (reinsert_raw_breakpoint): Likewise.
9892 (set_breakpoint_data): Remove.
9893 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9894 (check_mem_read): Adjust for kind call bp_size.
9895 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9896 (clone_one_breakpoint): Adjust for kind.
9897 * mem-break.h (set_gdb_breakpoint): Likewise.
9898 (delete_gdb_breakpoint): Likewise.
9899 * server.c (process_serial_event): Likewise.
9901 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9903 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9904 (struct linux_target_ops) <breakpoint>: Remove.
9905 (struct linux_target_ops) <breakpoint_len>: Remove.
9906 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9907 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9908 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9909 (arm_sw_breakpoint_from_kind): New function.
9910 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9911 (struct linux_target_ops) <breakpoint>: Remove.
9912 (struct linux_target_ops) <breakpoint_len>: Remove.
9913 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9914 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9915 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9916 (struct linux_target_ops) <breakpoint>: Remove.
9917 (struct linux_target_ops) <breakpoint_len>: Remove.
9918 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9919 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9920 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9921 (struct linux_target_ops) <breakpoint>: Remove.
9922 (struct linux_target_ops) <breakpoint_len>: Remove.
9923 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9924 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9925 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9926 and sw_breakpoint_from_kind to increment the pc.
9927 (linux_breakpoint_kind_from_pc): New function.
9928 (linux_sw_breakpoint_from_kind): New function.
9929 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9930 (initialize_low): Call breakpoint_kind_from_pc and
9931 sw_breakpoint_from_kind to replace breakpoint_data/len.
9932 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9934 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9935 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9936 (struct linux_target_ops) <breakpoint>: Remove.
9937 (struct linux_target_ops) <breakpoint_len>: Remove.
9938 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9939 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9940 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9941 (struct linux_target_ops) <breakpoint>: Remove.
9942 (struct linux_target_ops) <breakpoint_len>: Remove.
9943 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9944 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9945 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9946 (struct linux_target_ops) <breakpoint>: Remove.
9947 (struct linux_target_ops) <breakpoint_len>: Remove.
9948 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9949 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9950 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9951 (struct linux_target_ops) <breakpoint>: Remove.
9952 (struct linux_target_ops) <breakpoint_len>: Remove.
9953 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9954 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9955 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9956 (struct linux_target_ops) <breakpoint>: Remove.
9957 (struct linux_target_ops) <breakpoint_len>: Remove.
9958 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9959 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9960 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9961 (struct linux_target_ops) <breakpoint>: Remove.
9962 (struct linux_target_ops) <breakpoint_len>: Remove.
9963 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9964 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9965 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9966 (struct linux_target_ops) <breakpoint>: Remove.
9967 (struct linux_target_ops) <breakpoint_len>: Remove.
9968 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9969 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9970 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9971 (struct linux_target_ops) <breakpoint>: Remove.
9972 (struct linux_target_ops) <breakpoint_len>: Remove.
9973 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9974 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9975 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9976 (struct linux_target_ops) <breakpoint>: Remove.
9977 (struct linux_target_ops) <breakpoint_len>: Remove.
9978 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9979 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9980 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9981 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9982 (struct linux_target_ops) <breakpoint>: Remove.
9983 (struct linux_target_ops) <breakpoint_len>: Remove.
9984 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9985 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9986 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9987 (struct linux_target_ops) <breakpoint>: Remove.
9988 (struct linux_target_ops) <breakpoint_len>: Remove.
9989 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9990 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9992 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9994 * linux-cris-low.c (cris_get_pc): Remove void arg.
9996 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9998 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10001 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10003 * inferiors.c (thread_pid_matches_callback): New function.
10004 (find_thread_process): New function.
10005 (remove_thread): Reset current_thread.
10006 (remove_process): Assert threads have been removed first.
10008 2015-10-15 Yao Qi <yao.qi@linaro.org>
10010 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10012 (aarch64_remove_point): Likewise.
10013 * regcache.c (regcache_register_size): New function.
10015 2015-10-12 Yao Qi <yao.qi@linaro.org>
10017 * linux-aarch64-low.c: Update all callers as emit_load_store
10018 is renamed to aarch64_emit_load_store.
10020 2015-10-12 Yao Qi <yao.qi@linaro.org>
10022 * linux-aarch64-low.c: Update all callers of function renaming
10023 from emit_insn to aarch64_emit_insn.
10025 2015-10-12 Yao Qi <yao.qi@linaro.org>
10027 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10028 arch/aarch64-insn.h.
10029 (struct aarch64_memory_operand): Likewise.
10030 (ENCODE): Likewise.
10031 (emit_insn): Move to arch/aarch64-insn.c.
10032 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10033 (emit_load_store): Move to arch/aarch64-insn.c.
10034 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10035 (can_encode_int32): Remove.
10037 2015-10-12 Yao Qi <yao.qi@linaro.org>
10039 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10040 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10041 (aarch64_relocate_instruction): Likewise.
10042 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10043 (struct aarch64_insn_visitor): Likewise.
10045 2015-10-12 Yao Qi <yao.qi@linaro.org>
10047 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10048 (struct aarch64_insn_visitor): New.
10049 (struct aarch64_insn_relocation_data): New.
10050 (aarch64_ftrace_insn_reloc_b): New function.
10051 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10052 (aarch64_ftrace_insn_reloc_cb): Likewise.
10053 (aarch64_ftrace_insn_reloc_tb): Likewise.
10054 (aarch64_ftrace_insn_reloc_adr): Likewise.
10055 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10056 (aarch64_ftrace_insn_reloc_others): Likewise.
10058 (aarch64_relocate_instruction): Use visitor.
10060 2015-10-12 Yao Qi <yao.qi@linaro.org>
10062 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10063 int. Add argument buf.
10064 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10065 aarch64_relocate_instruction.
10067 2015-10-12 Yao Qi <yao.qi@linaro.org>
10069 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10070 argument insn. Remove local variable insn. Don't call
10071 target_read_uint32.
10072 (aarch64_install_fast_tracepoint_jump_pad): Call
10073 target_read_uint32.
10075 2015-09-30 Yao Qi <yao.qi@linaro.org>
10077 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10078 (emit_load_store_pair): Likewise.
10080 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10082 * dll.c (match_dll): Add cast(s).
10083 (unloaded_dll): Likewise.
10084 * linux-low.c (second_thread_of_pid_p): Likewise.
10085 (delete_lwp_callback): Likewise.
10086 (count_events_callback): Likewise.
10087 (select_event_lwp_callback): Likewise.
10088 (linux_set_resume_request): Likewise.
10089 * server.c (accumulate_file_name_length): Likewise.
10090 (emit_dll_description): Likewise.
10091 (handle_qxfer_threads_worker): Likewise.
10092 (visit_actioned_threads): Likewise.
10093 * thread-db.c (any_thread_of): Likewise.
10094 * tracepoint.c (same_process_p): Likewise.
10095 (match_blocktype): Likewise.
10096 (build_traceframe_info_xml): Likewise.
10098 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10100 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10102 (gdb_unparse_agent_expr): Likewise.
10103 * hostio.c (require_data): Likewise.
10104 (handle_pread): Likewise.
10105 * linux-low.c (disable_regset): Likewise.
10106 (fetch_register): Likewise.
10107 (store_register): Likewise.
10108 (get_dynamic): Likewise.
10109 (linux_qxfer_libraries_svr4): Likewise.
10110 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10111 (set_fast_tracepoint_jump): Likewise.
10112 (uninsert_fast_tracepoint_jumps_at): Likewise.
10113 (reinsert_fast_tracepoint_jumps_at): Likewise.
10114 (validate_inserted_breakpoint): Likewise.
10115 (clone_agent_expr): Likewise.
10116 * regcache.c (init_register_cache): Likewise.
10117 * remote-utils.c (putpkt_binary_1): Likewise.
10118 (decode_M_packet): Likewise.
10119 (decode_X_packet): Likewise.
10120 (look_up_one_symbol): Likewise.
10121 (relocate_instruction): Likewise.
10122 (monitor_output): Likewise.
10123 * server.c (handle_search_memory): Likewise.
10124 (handle_qxfer_exec_file): Likewise.
10125 (handle_qxfer_libraries): Likewise.
10126 (handle_qxfer): Likewise.
10127 (handle_query): Likewise.
10128 (handle_v_cont): Likewise.
10129 (handle_v_run): Likewise.
10130 (captured_main): Likewise.
10131 * target.c (write_inferior_memory): Likewise.
10132 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10133 * tracepoint.c (init_trace_buffer): Likewise.
10134 (add_tracepoint_action): Likewise.
10135 (add_traceframe): Likewise.
10136 (add_traceframe_block): Likewise.
10137 (cmd_qtdpsrc): Likewise.
10138 (cmd_qtdv): Likewise.
10139 (cmd_qtstatus): Likewise.
10140 (response_source): Likewise.
10141 (response_tsv): Likewise.
10142 (cmd_qtnotes): Likewise.
10143 (gdb_collect): Likewise.
10144 (initialize_tracepoint): Likewise.
10146 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10148 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10149 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10150 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10152 (enum aarch64_condition_codes): New enum.
10153 (w0): New static global.
10156 (struct aarch64_memory_operand) <type>: New
10157 MEMORY_OPERAND_POSTINDEX type.
10158 (postindex_memory_operand): New helper function.
10159 (emit_ret): New function.
10160 (emit_load_store_pair): New function, factored out of emit_stp
10161 with support for MEMORY_OPERAND_POSTINDEX.
10162 (emit_stp): Rewrite using emit_load_store_pair.
10163 (emit_ldp): New function.
10164 (emit_load_store): Likewise.
10165 (emit_ldr): Mention post-index instruction in comment.
10166 (emit_ldrh): New function.
10167 (emit_ldrb): New function.
10168 (emit_ldrsw): Mention post-index instruction in comment.
10169 (emit_str): Likewise.
10170 (emit_subs): New function.
10171 (emit_cmp): Likewise.
10172 (emit_and): Likewise.
10173 (emit_orr): Likewise.
10174 (emit_orn): Likewise.
10175 (emit_eor): Likewise.
10176 (emit_mvn): Likewise.
10177 (emit_lslv): Likewise.
10178 (emit_lsrv): Likewise.
10179 (emit_asrv): Likewise.
10180 (emit_mul): Likewise.
10181 (emit_sbfm): Likewise.
10182 (emit_sbfx): Likewise.
10183 (emit_ubfm): Likewise.
10184 (emit_ubfx): Likewise.
10185 (emit_csinc): Likewise.
10186 (emit_cset): Likewise.
10187 (emit_nop): Likewise.
10188 (emit_ops_insns): New helper function.
10189 (emit_pop): Likewise.
10190 (emit_push): Likewise.
10191 (aarch64_emit_prologue): New function.
10192 (aarch64_emit_epilogue): Likewise.
10193 (aarch64_emit_add): Likewise.
10194 (aarch64_emit_sub): Likewise.
10195 (aarch64_emit_mul): Likewise.
10196 (aarch64_emit_lsh): Likewise.
10197 (aarch64_emit_rsh_signed): Likewise.
10198 (aarch64_emit_rsh_unsigned): Likewise.
10199 (aarch64_emit_ext): Likewise.
10200 (aarch64_emit_log_not): Likewise.
10201 (aarch64_emit_bit_and): Likewise.
10202 (aarch64_emit_bit_or): Likewise.
10203 (aarch64_emit_bit_xor): Likewise.
10204 (aarch64_emit_bit_not): Likewise.
10205 (aarch64_emit_equal): Likewise.
10206 (aarch64_emit_less_signed): Likewise.
10207 (aarch64_emit_less_unsigned): Likewise.
10208 (aarch64_emit_ref): Likewise.
10209 (aarch64_emit_if_goto): Likewise.
10210 (aarch64_emit_goto): Likewise.
10211 (aarch64_write_goto_address): Likewise.
10212 (aarch64_emit_const): Likewise.
10213 (aarch64_emit_call): Likewise.
10214 (aarch64_emit_reg): Likewise.
10215 (aarch64_emit_pop): Likewise.
10216 (aarch64_emit_stack_flush): Likewise.
10217 (aarch64_emit_zero_ext): Likewise.
10218 (aarch64_emit_swap): Likewise.
10219 (aarch64_emit_stack_adjust): Likewise.
10220 (aarch64_emit_int_call_1): Likewise.
10221 (aarch64_emit_void_call_2): Likewise.
10222 (aarch64_emit_eq_goto): Likewise.
10223 (aarch64_emit_ne_goto): Likewise.
10224 (aarch64_emit_lt_goto): Likewise.
10225 (aarch64_emit_le_goto): Likewise.
10226 (aarch64_emit_gt_goto): Likewise.
10227 (aarch64_emit_ge_got): Likewise.
10228 (aarch64_emit_ops_impl): New static global variable.
10229 (aarch64_emit_ops): New target function, return
10230 &aarch64_emit_ops_impl.
10231 (struct linux_target_ops): Install it.
10233 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10235 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10236 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10238 * linux-aarch64-ipa.c: New file.
10239 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10241 (aarch64_get_thread_area): New target method.
10242 (extract_signed_bitfield): New helper function.
10243 (aarch64_decode_ldr_literal): New function.
10244 (enum aarch64_opcodes): New enum.
10245 (struct aarch64_register): New struct.
10246 (struct aarch64_operand): New struct.
10247 (x0): New static global.
10256 (aarch64_register): New helper function.
10257 (register_operand): Likewise.
10258 (immediate_operand): Likewise.
10259 (struct aarch64_memory_operand): New struct.
10260 (offset_memory_operand): New helper function.
10261 (preindex_memory_operand): Likewise.
10262 (enum aarch64_system_control_registers): New enum.
10263 (ENCODE): New macro.
10264 (emit_insn): New helper function.
10265 (emit_b): New function.
10266 (emit_bcond): Likewise.
10267 (emit_cb): Likewise.
10268 (emit_tb): Likewise.
10269 (emit_blr): Likewise.
10270 (emit_stp): Likewise.
10271 (emit_ldp_q_offset): Likewise.
10272 (emit_stp_q_offset): Likewise.
10273 (emit_load_store): Likewise.
10274 (emit_ldr): Likewise.
10275 (emit_ldrsw): Likewise.
10276 (emit_str): Likewise.
10277 (emit_ldaxr): Likewise.
10278 (emit_stxr): Likewise.
10279 (emit_stlr): Likewise.
10280 (emit_data_processing_reg): Likewise.
10281 (emit_data_processing): Likewise.
10282 (emit_add): Likewise.
10283 (emit_sub): Likewise.
10284 (emit_mov): Likewise.
10285 (emit_movk): Likewise.
10286 (emit_mov_addr): Likewise.
10287 (emit_mrs): Likewise.
10288 (emit_msr): Likewise.
10289 (emit_sevl): Likewise.
10290 (emit_wfe): Likewise.
10291 (append_insns): Likewise.
10292 (can_encode_int32_in): New helper function.
10293 (aarch64_relocate_instruction): New function.
10294 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10295 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10296 (struct linux_target_ops): Install aarch64_get_thread_area,
10297 aarch64_install_fast_tracepoint_jump_pad and
10298 aarch64_get_min_fast_tracepoint_insn_len.
10300 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10302 * Makefile.in (aarch64-insn.o): New rule.
10303 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10305 2015-09-21 Yao Qi <yao.qi@linaro.org>
10307 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10309 2015-09-21 Yao Qi <yao.qi@linaro.org>
10311 * tracepoint.c (max_jump_pad_size): Remove.
10313 2015-09-18 Yao Qi <yao.qi@linaro.org>
10315 * linux-aarch64-low.c: Don't include sys/uio.h.
10316 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10318 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10320 * tracepoint.c (eval_result_type): Change prototype.
10321 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10323 2015-09-15 Pedro Alves <palves@redhat.com>
10325 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10326 Check whether to report exec events instead of checking whether
10327 multiprocess is enabled.
10329 2015-09-15 Pedro Alves <palves@redhat.com>
10332 * remote-utils.c (prepare_resume_reply): Merge
10333 TARGET_WAITKIND_VFORK_DONE switch case with the
10334 TARGET_WAITKIND_FORKED case.
10336 2015-09-15 Yao Qi <yao.qi@linaro.org>
10338 * server.c (handle_query): Check string comparison using
10339 "else if" instead of "if".
10341 2015-09-15 Yao Qi <yao.qi@linaro.org>
10343 * server.c (vCont_supported): New global variable.
10344 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10345 matches. Append ";vContSupported+" to own_buf.
10346 (handle_v_requests): Append ";s;S" to own_buf if target supports
10347 hardware single step or vCont_supported is false.
10348 (capture_main): Set vCont_supported to zero.
10350 2015-09-15 Yao Qi <yao.qi@linaro.org>
10352 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10354 (linux_supports_hardware_single_step): ... New function.
10355 (linux_target_ops): Update.
10356 * lynx-low.c (lynx_target_ops): Set field
10357 supports_hardware_single_step to target_can_do_hardware_single_step.
10358 * nto-low.c (nto_target_ops): Likewise.
10359 * spu-low.c (spu_target_ops): Likewise.
10360 * win32-low.c (win32_target_ops): Likewise.
10361 * target.c (target_can_do_hardware_single_step): New function.
10362 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10363 Remove. <supports_hardware_single_step>: New field.
10364 (target_supports_conditional_breakpoints): Remove.
10365 (target_supports_hardware_single_step): New macro.
10366 (target_can_do_hardware_single_step): Declare.
10367 * server.c (handle_query): Use target_supports_hardware_single_step
10368 instead of target_supports_conditional_breakpoints.
10370 2015-09-15 Yao Qi <yao.qi@linaro.org>
10372 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10374 (struct linux_target_ops the_low_target): Install
10375 aarch64_linux_siginfo_fixup.
10377 2015-09-11 Don Breazeal <donb@codesourcery.com>
10378 Luis Machado <lgustavo@codesourcery.com>
10380 * linux-low.c (linux_mourn): Static declaration.
10381 (linux_arch_setup): Move in front of
10382 handle_extended_wait.
10383 (linux_arch_setup_thread): New function.
10384 (handle_extended_wait): Handle exec events. Call
10385 linux_arch_setup_thread. Make event_lwp argument a
10386 pointer-to-a-pointer.
10387 (check_zombie_leaders): Do not check stopped threads.
10388 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10389 (linux_low_filter_event): Add lwp and thread for exec'ing
10390 non-leader thread if leader thread has been deleted.
10391 Refactor code into linux_arch_setup_thread and call it.
10392 Pass child lwp pointer by reference to handle_extended_wait.
10393 (linux_wait_for_event_filtered): Update comment.
10394 (linux_wait_1): Prevent clobbering exec event status.
10395 (linux_supports_exec_events): New function.
10396 (linux_target_ops) <supports_exec_events>: Initialize new member.
10397 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10399 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10400 * server.c (report_exec_events): New global variable.
10401 (handle_query): Handle qSupported query for exec-events feature.
10402 (captured_main): Initialize report_exec_events.
10403 * server.h (report_exec_events): Declare new global variable.
10404 * target.h (struct target_ops) <supports_exec_events>: New
10406 (target_supports_exec_events): New macro.
10407 * win32-low.c (win32_target_ops) <supports_exec_events>:
10408 Initialize new member.
10410 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10412 * linux-low.c (linux_low_enable_btrace): Remove.
10413 (linux_target_ops): Replace linux_low_enable_btrace with
10414 linux_enable_btrace.
10416 2015-09-03 Yao Qi <yao.qi@linaro.org>
10418 * linux-aarch64-low.c (aarch64_insert_point): Call
10419 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10422 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10424 * linux-low.c (check_stopped_by_breakpoint): Use
10425 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10427 2015-08-27 Pedro Alves <palves@redhat.com>
10429 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10431 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10433 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10434 the XNEW-family equivalent.
10435 (compile_bytecodes): Likewise.
10436 * dll.c (loaded_dll): Likewise.
10437 * event-loop.c (append_callback_event): Likewise.
10438 (create_file_handler): Likewise.
10439 (create_file_event): Likewise.
10440 * hostio.c (handle_open): Likewise.
10441 * inferiors.c (add_thread): Likewise.
10442 (add_process): Likewise.
10443 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10444 * linux-arm-low.c (arm_new_process): Likewise.
10445 (arm_new_thread): Likewise.
10446 * linux-low.c (add_to_pid_list): Likewise.
10447 (linux_add_process): Likewise.
10448 (handle_extended_wait): Likewise.
10449 (add_lwp): Likewise.
10450 (enqueue_one_deferred_signal): Likewise.
10451 (enqueue_pending_signal): Likewise.
10452 (linux_resume_one_lwp_throw): Likewise.
10453 (linux_resume_one_thread): Likewise.
10454 (linux_read_memory): Likewise.
10455 (linux_write_memory): Likewise.
10456 * linux-mips-low.c (mips_linux_new_process): Likewise.
10457 (mips_linux_new_thread): Likewise.
10458 (mips_add_watchpoint): Likewise.
10459 * linux-x86-low.c (initialize_low_arch): Likewise.
10460 * lynx-low.c (lynx_add_process): Likewise.
10461 * mem-break.c (set_raw_breakpoint_at): Likewise.
10462 (set_breakpoint): Likewise.
10463 (add_condition_to_breakpoint): Likewise.
10464 (add_commands_to_breakpoint): Likewise.
10465 (clone_agent_expr): Likewise.
10466 (clone_one_breakpoint): Likewise.
10467 * regcache.c (new_register_cache): Likewise.
10468 * remote-utils.c (look_up_one_symbol): Likewise.
10469 * server.c (queue_stop_reply): Likewise.
10470 (start_inferior): Likewise.
10471 (queue_stop_reply_callback): Likewise.
10472 (handle_target_event): Likewise.
10473 * spu-low.c (fetch_ppc_memory): Likewise.
10474 (store_ppc_memory): Likewise.
10475 * target.c (set_target_ops): Likewise.
10476 * thread-db.c (thread_db_load_search): Likewise.
10477 (try_thread_db_load_1): Likewise.
10478 * tracepoint.c (add_tracepoint): Likewise.
10479 (add_tracepoint_action): Likewise.
10480 (create_trace_state_variable): Likewise.
10481 (cmd_qtdpsrc): Likewise.
10482 (cmd_qtro): Likewise.
10483 (add_while_stepping_state): Likewise.
10484 * win32-low.c (child_add_thread): Likewise.
10485 (get_image_name): Likewise.
10487 2015-08-25 Yao Qi <yao.qi@linaro.org>
10489 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10491 2015-08-25 Yao Qi <yao.qi@linaro.org>
10493 * Makefile.in (aarch64-linux.o): New rule.
10494 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10496 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10497 (aarch64_init_debug_reg_state): Make it extern.
10498 (aarch64_linux_prepare_to_resume): Remove.
10500 2015-08-25 Yao Qi <yao.qi@linaro.org>
10502 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10503 lwp_arch_private_info and ptid_of_lwp.
10505 2015-08-25 Yao Qi <yao.qi@linaro.org>
10507 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10508 Find proc_info by find_process_pid. All callers updated.
10510 2015-08-25 Yao Qi <yao.qi@linaro.org>
10512 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10514 (debug_reg_change_callback): Remove.
10515 (aarch64_notify_debug_reg_change): Remove.
10517 2015-08-25 Yao Qi <yao.qi@linaro.org>
10519 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10520 Call current_lwp_ptid.
10522 2015-08-25 Yao Qi <yao.qi@linaro.org>
10524 * linux-aarch64-low.c (debug_reg_change_callback): Use
10527 2015-08-25 Yao Qi <yao.qi@linaro.org>
10529 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10531 2015-08-25 Yao Qi <yao.qi@linaro.org>
10533 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10535 2015-08-25 Yao Qi <yao.qi@linaro.org>
10537 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10540 2015-08-25 Yao Qi <yao.qi@linaro.org>
10542 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10544 (debug_reg_change_callback): Remove argument entry and add argument
10545 lwp. Remove local variable thread. Don't print thread id in the
10546 debugging output. Don't check whether pid of thread equals to pid.
10547 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10548 iterate_over_lwps instead find_inferior.
10550 2015-08-24 Pedro Alves <palves@redhat.com>
10552 * inferiors.c (get_first_process): New function.
10553 * inferiors.h (get_first_process): New declaration.
10554 * remote-utils.c (read_ptid): Default to the first process in the
10555 list, instead of to the current thread's process.
10557 2015-08-24 Pedro Alves <palves@redhat.com>
10559 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10560 * event-loop.c: Likewise.
10561 * remote-utils.c: Likewise.
10562 * tracepoint.c: Likewise.
10564 2015-08-24 Pedro Alves <palves@redhat.com>
10566 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10569 2015-08-21 Pedro Alves <palves@redhat.com>
10571 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10572 instead of literal 1.
10574 2015-08-21 Pedro Alves <palves@redhat.com>
10576 * tdesc.c (default_description): Explicitly zero-initialize.
10578 2015-08-21 Pedro Alves <palves@redhat.com>
10581 * inferiors.c (remove_thread): Discard any pending stop reply for
10583 * server.c (remove_all_on_match_pid): Rename to ...
10584 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10586 (discard_queued_stop_replies): Change parameter to a ptid. Now
10588 (handle_v_kill, kill_inferior_callback, captured_main)
10589 (process_serial_event): Adjust.
10590 * server.h (discard_queued_stop_replies): Declare.
10592 2015-08-21 Pedro Alves <palves@redhat.com>
10594 * linux-low.c (wait_for_sigstop): Always switch to no thread
10595 selected if the previously current thread dies.
10596 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10597 process instead of the current thread's.
10598 * remote-utils.c (input_interrupt): Don't check if there's no
10600 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10601 current thread to the general thread fails, error out.
10602 (handle_qxfer_auxv, handle_qxfer_libraries)
10603 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10604 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10605 (handle_query): Check if there's a thread selected instead of
10606 checking whether there's any thread in the thread list.
10607 (handle_qxfer_threads, handle_qxfer_btrace)
10608 (handle_qxfer_btrace_conf): Don't error out early if there's no
10609 thread in the thread list.
10610 (handle_v_cont, myresume): Don't set the current thread to the
10612 (process_serial_event) <Hg handling>: Also set thread_id if the
10613 previous general thread is still alive.
10614 (process_serial_event) <g/G handling>: If setting the current
10615 thread to the general thread fails, error out.
10616 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10617 thread's lwp instead of the current thread's.
10618 * target.c (set_desired_thread): If the desired thread was not
10619 found, leave the current thread pointing to NULL. Return an int
10620 (boolean) indicating success.
10621 * target.h (set_desired_thread): Change return type to int.
10623 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10625 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10626 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10628 (ps_get_thread_area): New function.
10630 2015-08-19 Gary Benson <gbenson@redhat.com>
10632 * hostio.c (handle_pread): Do not attempt to read more data
10633 than hostio_reply_with_data can fit in a packet.
10635 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10637 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10639 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10641 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10643 2015-08-06 Pedro Alves <palves@redhat.com>
10645 * tracepoint.c (expr_eval_result): Now an int.
10647 2015-08-06 Pedro Alves <palves@redhat.com>
10649 * gdbthread.h (struct regcache): Forward declare.
10650 (struct thread_info) <regcache_data>: Now a struct regcache
10652 * inferiors.c (inferior_regcache_data)
10653 (set_inferior_regcache_data): Now work with struct regcache
10655 * inferiors.h (struct regcache): Forward declare.
10656 (inferior_regcache_data, set_inferior_regcache_data): Now work
10657 with struct regcache pointers.
10658 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10659 (free_register_cache_thread): Remove struct regcache pointer
10662 2015-08-06 Pedro Alves <palves@redhat.com>
10664 * server.c (captured_main): On error, print the exception message
10665 to stderr, and if run_once is set, throw a quit.
10667 2015-08-06 Pedro Alves <palves@redhat.com>
10669 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10670 the current thread.
10672 2015-08-06 Pedro Alves <palves@redhat.com>
10674 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10675 reading beyond the passed in buffer length.
10677 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10679 * tracepoint.c (symbol_list) <required>: Remove.
10681 2015-08-06 Pedro Alves <palves@redhat.com>
10683 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10684 count if stopping and suspending threads.
10685 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10686 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10687 (linux_detach): Complete an ongoing step-over.
10688 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10690 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10691 (linux_wait_1): If passing a signal to the inferior after
10692 finishing a step-over, unsuspend and re-resume all lwps. If we
10693 see a single-step event but the thread should be continuing, don't
10694 pass the trap to gdb.
10695 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10696 internal_error instead of gdb_assert.
10697 (enqueue_pending_signal): New function.
10698 (check_ptrace_stopped_lwp_gone): Add debug output.
10699 (start_step_over): Use internal_error instead of gdb_assert.
10700 (complete_ongoing_step_over): New function.
10701 (linux_resume_one_thread): Don't resume a suspended thread.
10702 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10705 2015-08-06 Pedro Alves <palves@redhat.com>
10707 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10708 (linux_thread_alive): Use lwp_is_marked_dead.
10709 (extended_event_reported): Delete.
10710 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10711 instead of extended_event_reported.
10712 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10714 (lwp_is_marked_dead): New function.
10715 (lwp_running): Use lwp_is_marked_dead.
10716 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10719 2015-08-06 Pedro Alves <palves@redhat.com>
10721 * linux-low.c (linux_wait_1): Move fork event output out of the
10722 !report_to_gdb check. Pass event_child->waitstatus to
10723 target_waitstatus_to_string instead of ourstatus.
10725 2015-08-04 Yao Qi <yao.qi@linaro.org>
10727 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10728 if current_thread is 32 bit.
10730 2015-08-04 Yao Qi <yao.qi@linaro.org>
10732 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10733 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10734 * server.c (extended_protocol): Remove "static".
10735 * server.h (extended_protocol): Declare it.
10737 2015-08-04 Yao Qi <yao.qi@linaro.org>
10739 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10740 both aarch64 and aarch32.
10741 (aarch64_set_pc): Likewise.
10743 2015-08-04 Yao Qi <yao.qi@linaro.org>
10745 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10746 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10747 arm-with-neon.xml to srv_xmlfiles.
10748 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10749 (is_64bit_tdesc): New function.
10750 (aarch64_linux_read_description): New function.
10751 (aarch64_arch_setup): Call aarch64_linux_read_description.
10752 (regs_info): Rename to regs_info_aarch64.
10753 (aarch64_regs_info): Return right regs_info.
10754 (initialize_low_arch): Call initialize_low_arch_aarch32.
10756 2015-08-04 Yao Qi <yao.qi@linaro.org>
10758 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10759 * linux-aarch32-low.c: New file.
10760 * linux-aarch32-low.h: New file.
10761 * linux-arm-low.c (arm_fill_gregset): Move it to
10762 linux-aarch32-low.c.
10763 (arm_store_gregset): Likewise.
10764 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10765 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10766 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10767 (regs_info): Rename to regs_info_arm.
10768 (arm_regs_info): Return regs_info_aarch32 if
10769 have_ptrace_getregset is 1 and target description is
10770 arm_with_neon or arm_with_vfpv3.
10771 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10772 Call initialize_low_arch_aarch32 instead.
10774 2015-08-04 Yao Qi <yao.qi@linaro.org>
10776 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10777 * linux-low.c: ... here.
10778 * linux-low.h (have_ptrace_getregset): Declare it.
10780 2015-08-04 Pedro Alves <palves@redhat.com>
10782 * thread-db.c (struct thread_db): Use new typedefs.
10783 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10785 (disable_thread_event_reporting): Cast result of dlsym to
10786 destination function pointer type.
10787 (thread_db_mourn): Use td_ta_delete_ftype.
10789 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10791 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10793 (CDX_BREAKPOINT): Define for R2.
10794 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10795 (the_low_target): Add comments.
10797 2015-07-30 Yao Qi <yao.qi@linaro.org>
10799 * linux-arm-low.c (arm_hwcap): Remove it.
10800 (arm_read_description): New local variable arm_hwcap. Don't
10801 set arm_hwcap to zero.
10803 2015-07-30 Yao Qi <yao.qi@linaro.org>
10805 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10806 Use regcache->tdesc instead.
10807 (arm_store_wmmxregset): Likewise.
10808 (arm_fill_vfpregset): Likewise.
10809 (arm_store_vfpregset): Likewise.
10811 2015-07-30 Yao Qi <yao.qi@linaro.org>
10813 * linux-arm-low.c: Include arch/arm.h.
10814 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10815 (arm_store_gregset): Likewise.
10817 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10819 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10820 ptrace's 4th parameter.
10822 2015-07-27 Yao Qi <yao.qi@linaro.org>
10824 * configure.srv (case aarch64*-*-linux*): Don't set
10827 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10829 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10831 * linux-arm-low.c: Likewise.
10832 * linux-cris-low.c: Likewise.
10833 * linux-crisv32-low.c: Likewise.
10834 * linux-low.c: Likewise.
10835 * linux-m68k-low.c: Likewise.
10836 * linux-mips-low.c: Likewise.
10837 * linux-nios2-low.c: Likewise.
10838 * linux-s390-low.c: Likewise.
10839 * linux-sparc-low.c: Likewise.
10840 * linux-tic6x-low.c: Likewise.
10841 * linux-tile-low.c: Likewise.
10842 * linux-x86-low.c: Likewise.
10844 2015-07-24 Pedro Alves <palves@redhat.com>
10846 * config.in: Regenerate.
10847 * configure: Regenerate.
10849 2015-07-24 Pedro Alves <palves@redhat.com>
10851 * acinclude.m4: Include ../ptrace.m4.
10852 * configure.ac: Call GDB_AC_PTRACE.
10853 * config.in, configure: Regenerate.
10855 2015-07-24 Yao Qi <yao.qi@linaro.org>
10857 * linux-low.c (linux_create_inferior): Remove setting to
10858 proc->priv->new_inferior.
10859 (linux_attach): Likewise.
10860 (linux_low_filter_event): Likewise.
10861 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10863 2015-07-24 Yao Qi <yao.qi@linaro.org>
10865 * linux-low.c (linux_arch_setup): New function.
10866 (linux_low_filter_event): If proc->tdesc is NULL and
10867 proc->attached is true, call the_low_target.arch_setup.
10868 Otherwise, keep status pending, and return.
10869 (linux_resume_one_lwp_throw): Don't call get_pc if
10870 thread->while_stepping isn't NULL. Don't call
10871 get_thread_regcache if proc->tdesc is NULL.
10872 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10873 (linux_target_ops): Install arch_setup.
10874 * server.c (start_inferior): Call the_target->arch_setup.
10875 * target.h (struct target_ops) <arch_setup>: New field.
10876 (target_arch_setup): New marco.
10877 * lynx-low.c (lynx_target_ops): Update.
10878 * nto-low.c (nto_target_ops): Update.
10879 * spu-low.c (spu_target_ops): Update.
10880 * win32-low.c (win32_target_ops): Update.
10882 2015-07-24 Yao Qi <yao.qi@linaro.org>
10884 * linux-low.c (linux_add_process): Don't set
10885 proc->priv->new_inferior.
10886 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10887 (linux_attach): Likewise.
10889 2015-07-24 Yao Qi <yao.qi@linaro.org>
10891 * server.c (start_inferior): Code refactor.
10893 2015-07-24 Yao Qi <yao.qi@linaro.org>
10895 * server.c (process_serial_event): Set general_thread.
10897 2015-07-21 Yao Qi <yao.qi@linaro.org>
10899 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10900 aarch64_linux_get_debug_reg_capacity.
10902 2015-07-17 Yao Qi <yao.qi@linaro.org>
10904 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10905 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10906 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10907 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10908 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10909 (AARCH64_HWP_ALIGNMENT): Likewise.
10910 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10911 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10912 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10913 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10914 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10915 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10916 (struct aarch64_debug_reg_state): Likewise.
10917 (struct arch_lwp_info): Likewise.
10918 (aarch64_align_watchpoint): Likewise.
10919 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10920 (aarch64_watchpoint_length): Likewise.
10921 (aarch64_point_encode_ctrl_reg): Likewise
10922 (aarch64_point_is_aligned): Likewise.
10923 (aarch64_align_watchpoint): Likewise.
10924 (aarch64_linux_set_debug_regs):
10925 (aarch64_dr_state_insert_one_point): Likewise.
10926 (aarch64_dr_state_remove_one_point): Likewise.
10927 (aarch64_handle_breakpoint): Likewise.
10928 (aarch64_handle_aligned_watchpoint): Likewise.
10929 (aarch64_handle_unaligned_watchpoint): Likewise.
10930 (aarch64_handle_watchpoint): Likewise.
10932 2015-07-17 Yao Qi <yao.qi@linaro.org>
10934 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10935 and don't aarch64_get_debug_reg_state. All callers update.
10936 (aarch64_handle_aligned_watchpoint): Likewise.
10937 (aarch64_handle_unaligned_watchpoint): Likewise.
10938 (aarch64_handle_watchpoint): Likewise.
10939 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10940 (aarch64_remove_point): Likewise.
10942 2015-07-17 Yao Qi <yao.qi@linaro.org>
10944 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10946 (aarch64_handle_unaligned_watchpoint): Likewise.
10948 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10950 Revert the previous 3 commits:
10951 Move gdb_regex* to common/
10952 Move linux_find_memory_regions_full & co.
10953 gdbserver build-id attribute generator
10955 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10956 Jan Kratochvil <jan.kratochvil@redhat.com>
10958 gdbserver build-id attribute generator.
10959 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10960 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10961 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10963 (get_dynamic): Use find_pdhr to traverse program headers.
10964 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10965 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10966 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10967 (get_hex_build_id): New.
10968 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10969 to reply XML document.
10971 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10972 Jan Kratochvil <jan.kratochvil@redhat.com>
10974 * target.c: Include target/target-utils.h and fcntl.h.
10975 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10976 (target_fileio_read_stralloc): New functions.
10978 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10980 * Makefile.in (OBS): Add gdb_regex.o.
10981 (gdb_regex.o): New.
10982 * config.in: Rebuilt.
10983 * configure: Rebuilt.
10985 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10986 Jan Kratochvil <jan.kratochvil@redhat.com>
10988 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10989 * Makefile.in (OBS): Add target-utils.o.
10990 (linux-maps.o, target-utils.o): New.
10991 * configure.srv (srv_linux_obj): Add linux-maps.o.
10993 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10995 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10996 function, return 1.
10997 (the_low_target): Install it.
10999 2015-07-14 Pedro Alves <palves@redhat.com>
11001 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11002 Instead, ignore ECHILD, and throw an error for other errnos.
11004 2015-07-10 Pedro Alves <palves@redhat.com>
11006 * event-loop.c (struct callback_event) <data>: Change type to
11007 gdb_client_data instance instead of gdb_client_data pointer.
11008 (append_callback_event): Adjust.
11010 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11012 * linux-aarch64-low.c: Add comments for each linux_target_ops
11013 method. Remove comments already covered in target_ops and
11014 linux_target_ops definitions.
11015 (the_low_target): Add comments for each unimplemented method.
11017 2015-07-09 Yao Qi <yao.qi@linaro.org>
11019 * linux-aarch64-low.c (aarch64_regmap): Remove.
11020 (aarch64_usrregs_info): Remove.
11021 (regs_info): Set field usrregs to NULL.
11023 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11025 * linux-low.c: Include "rsp-low.h"
11026 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11027 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11028 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11029 (handle_btrace_enable_pt): New.
11030 (handle_btrace_general_set): Support "pt".
11031 (handle_btrace_conf_general_set): Support "pt:size".
11033 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11035 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11038 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11040 * linux-aarch64-low.c: Remove comment about endianness.
11041 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11042 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11045 2015-06-24 Gary Benson <gbenson@redhat.com>
11047 * linux-i386-ipa.c (stdint.h): Do not include.
11048 * lynx-i386-low.c (stdint.h): Likewise.
11049 * lynx-ppc-low.c (stdint.h): Likewise.
11050 * mem-break.c (stdint.h): Likewise.
11051 * thread-db.c (stdint.h): Likewise.
11052 * tracepoint.c (stdint.h): Likewise.
11053 * win32-low.c (stdint.h): Likewise.
11055 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11057 * server.c (write_qxfer_response): Update call to
11058 remote_escape_output.
11060 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11061 Jan Kratochvil <jan.kratochvil@redhat.com>
11063 Merge multiple hex conversions.
11064 * gdbreplay.c (tohex): Rename to 'fromhex'.
11065 (logchar): Use fromhex.
11067 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11069 * server.c (handle_qxfer_libraries): Set `version' attribute for
11072 2015-06-10 Gary Benson <gbenson@redhat.com>
11074 * target.h (struct target_ops) <multifs_open>: New field.
11075 <multifs_unlink>: Likewise.
11076 <multifs_readlink>: Likewise.
11077 * linux-low.c (nat/linux-namespaces.h): New include.
11078 (linux_target_ops): Initialize the_target->multifs_open,
11079 the_target->multifs_unlink and the_target->multifs_readlink.
11080 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11081 * hostio.c (hostio_fs_pid): New static variable.
11082 (hostio_handle_new_gdb_connection): New function.
11083 (handle_setfs): Likewise.
11084 (handle_open): Use the_target->multifs_open as appropriate.
11085 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11086 (handle_readlink): Use the_target->multifs_readlink as
11088 (handle_vFile): Handle vFile:setfs packets.
11089 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11090 after target_handle_new_gdb_connection.
11092 2015-06-10 Gary Benson <gbenson@redhat.com>
11094 * configure.ac (AC_CHECK_FUNCS): Add setns.
11095 * config.in: Regenerate.
11096 * configure: Likewise.
11097 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11098 (linux-namespaces.o): New rule.
11099 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11101 2015-06-09 Gary Benson <gbenson@redhat.com>
11103 * hostio.c (handle_open): Process mode argument with
11104 fileio_to_host_mode.
11106 2015-06-01 Yao Qi <yao.qi@linaro.org>
11108 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11109 * linux-x86-low.c: Likewise.
11111 2015-05-28 Don Breazeal <donb@codesourcery.com>
11113 * linux-low.c (handle_extended_wait): Initialize
11114 thread_info.last_resume_kind for new fork children.
11116 2015-05-15 Pedro Alves <palves@redhat.com>
11118 * target.h (target_handle_new_gdb_connection): Rewrite using if
11119 wrapped in do/while.
11121 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11123 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11124 * configure, config.in: Regenerate.
11125 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11128 2015-05-12 Don Breazeal <donb@codesourcery.com>
11130 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11131 PTRACE_EVENT_VFORK_DONE.
11132 (linux_low_ptrace_options, extended_event_reported): Add vfork
11134 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11135 and "vforkdone" for RSP 'T' Stop Reply Packet.
11136 * server.h (report_vfork_events): Declare
11139 2015-05-12 Don Breazeal <donb@codesourcery.com>
11141 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11142 (the_low_target) <new_fork>: Initialize new member.
11143 * linux-arm-low.c (arm_new_fork): New function.
11144 (the_low_target) <new_fork>: Initialize new member.
11145 * linux-low.c (handle_extended_wait): Call new target function
11147 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11148 * linux-mips-low.c (mips_add_watchpoint): New function
11149 extracted from mips_insert_point.
11150 (the_low_target) <new_fork>: Initialize new member.
11151 (mips_linux_new_fork): New function.
11152 (mips_insert_point): Call mips_add_watchpoint.
11153 * linux-x86-low.c (x86_linux_new_fork): New function.
11154 (the_low_target) <new_fork>: Initialize new member.
11156 2015-05-12 Don Breazeal <donb@codesourcery.com>
11158 * linux-low.c (handle_extended_wait): Implement return value,
11159 rename argument 'event_child' to 'event_lwp', handle
11160 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11161 (linux_low_ptrace_options): New function.
11162 (linux_low_filter_event): Call linux_low_ptrace_options,
11163 use different argument fo linux_enable_event_reporting,
11164 use return value from handle_extended_wait.
11165 (extended_event_reported): New function.
11166 (linux_wait_1): Call extended_event_reported and set
11167 status to report fork events.
11168 (linux_write_memory): Add pid to debug message.
11169 (reset_lwp_ptrace_options_callback): New function.
11170 (linux_handle_new_gdb_connection): New function.
11171 (linux_target_ops): Initialize new structure member.
11172 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11173 * lynx-low.c: Initialize new structure member.
11174 * remote-utils.c (prepare_resume_reply): Implement stop reason
11175 "fork" for "T" stop message.
11176 * server.c (handle_query): Call handle_new_gdb_connection.
11177 * server.h (report_fork_events): Declare global flag.
11178 * target.h (struct target_ops) <handle_new_gdb_connection>:
11180 (target_handle_new_gdb_connection): New macro.
11181 * win32-low.c: Initialize new structure member.
11183 2015-05-12 Don Breazeal <donb@codesourcery.com>
11185 * mem-break.c (APPEND_TO_LIST): Define macro.
11186 (clone_agent_expr): New function.
11187 (clone_one_breakpoint): New function.
11188 (clone_all_breakpoints): New function.
11189 * mem-break.h: Declare new functions.
11191 2015-05-12 Don Breazeal <donb@codesourcery.com>
11193 * linux-low.c (linux_supports_fork_events): New function.
11194 (linux_supports_vfork_events): New function.
11195 (linux_target_ops): Initialize new structure members.
11196 (initialize_low): Call linux_check_ptrace_features.
11197 * lynx-low.c (lynx_target_ops): Initialize new structure
11199 * server.c (report_fork_events, report_vfork_events):
11201 (handle_query): Add new features to qSupported packet and
11203 (captured_main): Initialize new global variables.
11204 * target.h (struct target_ops) <supports_fork_events>:
11206 <supports_vfork_events>: New member.
11207 (target_supports_fork_events): New macro.
11208 (target_supports_vfork_events): New macro.
11209 * win32-low.c (win32_target_ops): Initialize new structure
11212 2015-05-12 Gary Benson <gbenson@redhat.com>
11214 * server.c (handle_qxfer_exec_file): Use current process
11217 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11219 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11220 Remove HAVE_PTRACE_GETREGS conditionals.
11221 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11222 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11224 2015-05-08 Yao Qi <yao.qi@linaro.org>
11226 * linux-low.c (linux_supports_conditional_breakpoints): New
11228 (linux_target_ops): Install new target method.
11229 * lynx-low.c (lynx_target_ops): Install NULL hook for
11230 supports_conditional_breakpoints.
11231 * nto-low.c (nto_target_ops): Likewise.
11232 * spu-low.c (spu_target_ops): Likewise.
11233 * win32-low.c (win32_target_ops): Likewise.
11234 * server.c (handle_query): Check
11235 target_supports_conditional_breakpoints.
11236 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11238 (target_supports_conditional_breakpoints): New macro.
11240 2015-05-06 Pedro Alves <palves@redhat.com>
11243 * server.c (start_inferior): If the process exits, mourn it.
11245 2015-04-21 Gary Benson <gbenson@redhat.com>
11247 * hostio.c (fileio_open_flags_to_host): Factored out to
11248 fileio_to_host_openflags in common/fileio.c. Single use
11251 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11253 * linux-xtensa-low.c (xtensa_fill_gregset)
11254 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11257 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11259 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11260 (regs_info): Replace usrregs pointer with NULL.
11262 2015-04-17 Gary Benson <gbenson@redhat.com>
11264 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11265 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11266 * server.c (handle_qxfer_exec_file): New function.
11267 (qxfer_packets): Add exec-file entry.
11268 (handle_query): Report qXfer:exec-file:read as supported packet.
11270 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11272 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11274 2015-04-09 Gary Benson <gbenson@redhat.com>
11276 * hostio-errno.c (errno_to_fileio_error): Remove function.
11277 Update caller to use remote_fileio_to_fio_error.
11279 2015-04-09 Yao Qi <yao.qi@linaro.org>
11281 * linux-low.c (linux_insert_point): Call
11282 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11283 (linux_remove_point): Call remove_memory_breakpoint if type is
11285 * linux-x86-low.c (x86_insert_point): Don't call
11286 insert_memory_breakpoint.
11287 (x86_remove_point): Don't call remove_memory_breakpoint.
11289 2015-04-01 Pedro Alves <palves@redhat.com>
11290 Cleber Rosa <crosa@redhat.com>
11292 * server.c (gdbserver_usage): Reorganize and extend the usage
11295 2015-03-24 Pedro Alves <palves@redhat.com>
11297 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11298 output. Also dump TRAP_TRACE.
11299 (linux_low_filter_event): In debug output, distinguish a
11300 resume_stop SIGSTOP from a delayed SIGSTOP.
11302 2015-03-24 Gary Benson <gbenson@redhat.com>
11304 * linux-x86-low.c (x86_linux_new_thread): Moved to
11306 (x86_linux_prepare_to_resume): Likewise.
11308 2015-03-24 Gary Benson <gbenson@redhat.com>
11310 * Makefile.in (x86-linux-dregs.o): New rule.
11311 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11312 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11313 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11314 (x86_linux_dr_get): Likewise.
11315 (x86_linux_dr_set): Likewise.
11316 (update_debug_registers_callback): Likewise.
11317 (x86_linux_dr_set_addr): Likewise.
11318 (x86_linux_dr_get_addr): Likewise.
11319 (x86_linux_dr_set_control): Likewise.
11320 (x86_linux_dr_get_control): Likewise.
11321 (x86_linux_dr_get_status): Likewise.
11322 (x86_linux_update_debug_registers): Likewise.
11324 2015-03-24 Gary Benson <gbenson@redhat.com>
11326 * linux-x86-low.c (x86_linux_update_debug_registers):
11327 New function, factored out from...
11328 (x86_linux_prepare_to_resume): ...this.
11330 2015-03-24 Gary Benson <gbenson@redhat.com>
11332 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11333 (x86_linux_dr_set): Likewise.
11334 (update_debug_registers_callback): Likewise.
11335 (x86_linux_dr_set_addr): Likewise.
11336 (x86_linux_dr_get_addr): Likewise.
11337 (x86_linux_dr_set_control): Likewise.
11338 (x86_linux_dr_get_control): Likewise.
11339 (x86_linux_dr_get_status): Likewise.
11340 (x86_linux_prepare_to_resume): Likewise.
11342 2015-03-24 Gary Benson <gbenson@redhat.com>
11344 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11345 Use perror_with_name. Pass string through gettext.
11346 (x86_linux_dr_set): Likewise.
11348 2015-03-24 Gary Benson <gbenson@redhat.com>
11350 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11351 (x86_linux_dr_set_addr): ...this.
11352 (x86_dr_low_get_addr): Rename to...
11353 (x86_linux_dr_get_addr): ...this.
11354 (x86_dr_low_set_control): Rename to...
11355 (x86_linux_dr_set_control): ...this.
11356 (x86_dr_low_get_control): Rename to...
11357 (x86_linux_dr_get_control): ...this.
11358 (x86_dr_low_get_status): Rename to...
11359 (x86_linux_dr_get_status): ...this.
11360 (x86_dr_low): Update with new function names.
11362 2015-03-24 Gary Benson <gbenson@redhat.com>
11364 * Makefile.in (x86-linux.o): New rule.
11365 * configure.srv: Add x86-linux.o to relevant targets.
11366 * linux-low.c (lwp_set_arch_private_info): New function.
11367 (lwp_arch_private_info): Likewise.
11368 * linux-x86-low.c: Include nat/x86-linux.h.
11369 (arch_lwp_info): Removed structure.
11370 (update_debug_registers_callback):
11371 Use lwp_set_debug_registers_changed.
11372 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11373 and lwp_set_debug_registers_changed.
11374 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11376 2015-03-24 Gary Benson <gbenson@redhat.com>
11378 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11379 * linux-arm-low.c (arm_new_thread): Likewise.
11380 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11381 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11382 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11383 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11385 2015-03-24 Gary Benson <gbenson@redhat.com>
11387 * linux-low.c (ptid_of_lwp): New function.
11388 (lwp_is_stopped): Likewise.
11389 (lwp_stop_reason): Likewise.
11390 * linux-x86-low.c (update_debug_registers_callback):
11391 Use lwp_is_stopped.
11392 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11395 2015-03-24 Gary Benson <gbenson@redhat.com>
11397 * linux-low.h (linux_stop_lwp): Remove declaration.
11399 2015-03-24 Gary Benson <gbenson@redhat.com>
11401 * linux-low.h: Include nat/linux-nat.h.
11402 * linux-low.c (iterate_over_lwps_args): New structure.
11403 (iterate_over_lwps_filter): New function.
11404 (iterate_over_lwps): Likewise.
11405 * linux-x86-low.c (update_debug_registers_callback):
11406 Update signature to what iterate_over_lwps expects.
11407 Remove PID check that iterate_over_lwps now performs.
11408 (x86_dr_low_set_addr): Use iterate_over_lwps.
11409 (x86_dr_low_set_control): Likewise.
11411 2015-03-24 Gary Benson <gbenson@redhat.com>
11413 * linux-x86-low.c (x86_debug_reg_state): New function.
11414 (x86_linux_prepare_to_resume): Use the above.
11416 2015-03-24 Gary Benson <gbenson@redhat.com>
11418 * linux-low.c (current_lwp_ptid): New function.
11419 * linux-x86-low.c: Include nat/linux-nat.h.
11420 (x86_dr_low_get_addr): Use current_lwp_ptid.
11421 (x86_dr_low_get_control): Likewise.
11422 (x86_dr_low_get_status): Likewise.
11424 2015-03-20 Pedro Alves <palves@redhat.com>
11426 * tracepoint.c (cmd_qtstatus): Make "str" const.
11428 2015-03-20 Pedro Alves <palves@redhat.com>
11430 * server.c (handle_general_set): Make "req_str" const.
11432 2015-03-19 Pedro Alves <palves@redhat.com>
11434 * linux-low.c (linux_resume_one_lwp): Rename to ...
11435 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11436 instead call perror_with_name.
11437 (check_ptrace_stopped_lwp_gone): New function.
11438 (linux_resume_one_lwp): Reimplement as wrapper around
11439 linux_resume_one_lwp_throw that swallows errors if the LWP is
11442 2015-03-19 Pedro Alves <palves@redhat.com>
11444 * linux-low.c (count_events_callback, select_event_lwp_callback):
11445 No longer check whether the thread has resume_stop as last resume
11448 2015-03-19 Pedro Alves <palves@redhat.com>
11450 * linux-low.c (count_events_callback, select_event_lwp_callback):
11451 Use the lwp's status_pending_p field, not the thread's.
11453 2015-03-19 Pedro Alves <palves@redhat.com>
11455 * linux-low.c (select_event_lwp_callback): Update comments to
11456 no longer mention SIGTRAP.
11458 2015-03-18 Gary Benson <gbenson@redhat.com>
11460 * server.c (handle_query): Do not report vFile:fstat as supported.
11462 2015-03-11 Gary Benson <gbenson@redhat.com>
11464 * hostio.c (sys/types.h): New include.
11465 (sys/stat.h): Likewise.
11466 (common-remote-fileio.h): Likewise.
11467 (handle_fstat): New function.
11468 (handle_vFile): Handle vFile:fstat packets.
11470 2015-03-11 Gary Benson <gbenson@redhat.com>
11472 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11473 struct stat.st_blocks and struct stat.st_blksize.
11474 * configure: Regenerate.
11475 * config.in: Likewise.
11476 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11477 (OBS): Add common-remote-fileio.o.
11478 (common-remote-fileio.o): New rule.
11480 2015-03-09 Pedro Alves <palves@redhat.com>
11482 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11483 'struct sockaddr' pointer in 'accept' call.
11485 2015-03-09 Pedro Alves <palves@redhat.com>
11488 2015-03-07 Pedro Alves <palves@redhat.com>
11489 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11490 or <winsock2.h> here. Instead include "gdb_socket.h".
11491 (remote_open): Use union gdb_sockaddr_u.
11492 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11493 or <winsock2.h> here. Instead include "gdb_socket.h".
11494 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11495 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11497 (init_named_socket, gdb_agent_helper_thread): Use union
11500 2015-03-07 Pedro Alves <palves@redhat.com>
11502 * configure.ac (build_warnings): Move
11503 -Wdeclaration-after-statement to the C-specific set.
11504 * configure: Regenerate.
11506 2015-03-07 Pedro Alves <palves@redhat.com>
11508 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11509 or <winsock2.h> here. Instead include "gdb_socket.h".
11510 (remote_open): Use union gdb_sockaddr_u.
11511 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11512 or <winsock2.h> here. Instead include "gdb_socket.h".
11513 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11514 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11516 (init_named_socket, gdb_agent_helper_thread): Use union
11519 2015-03-07 Pedro Alves <palves@redhat.com>
11521 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11524 2015-03-06 Yao Qi <yao.qi@linaro.org>
11526 * linux-aarch64-low.c (aarch64_insert_point): Use
11527 show_debug_regs as a boolean.
11528 (aarch64_remove_point): Likewise.
11530 2015-03-05 Pedro Alves <palves@redhat.com>
11532 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11533 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11534 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11535 * nto-low.c (nto_target_ops): Likewise.
11536 * spu-low.c (spu_target_ops): Likewise.
11537 * win32-low.c (win32_target_ops): Likewise.
11539 2015-03-04 Pedro Alves <palves@redhat.com>
11541 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11542 Decide whether a breakpoint triggered based on the SIGTRAP's
11544 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11545 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11546 (linux_low_filter_event): Check for breakpoints before checking
11548 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11550 (linux_stopped_by_sw_breakpoint)
11551 (linux_supports_stopped_by_sw_breakpoint)
11552 (linux_stopped_by_hw_breakpoint)
11553 (linux_supports_stopped_by_hw_breakpoint): New functions.
11554 (linux_target_ops): Install new target methods.
11556 2015-03-04 Pedro Alves <palves@redhat.com>
11558 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11559 * server.c (swbreak_feature, hwbreak_feature): New globals.
11560 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11561 (captured_main): Clear swbreak_feature and hwbreak_feature.
11562 * server.h (swbreak_feature, hwbreak_feature): Declare.
11563 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11564 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11565 supports_stopped_by_hw_breakpoint>: New fields.
11566 (target_supports_stopped_by_sw_breakpoint)
11567 (target_stopped_by_sw_breakpoint)
11568 (target_supports_stopped_by_hw_breakpoint)
11569 (target_stopped_by_hw_breakpoint): Declare.
11571 2015-03-04 Pedro Alves <palves@redhat.com>
11573 enum lwp_stop_reason -> enum target_stop_reason
11574 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11575 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11576 (linux_wait_1, stuck_in_jump_pad_callback)
11577 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11578 (linux_stopped_by_watchpoint):
11579 * linux-low.h (enum lwp_stop_reason): Delete.
11580 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11581 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11583 2015-03-04 Yao Qi <yao.qi@linaro.org>
11585 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11587 2015-03-03 Gary Benson <gbenson@redhat.com>
11589 * hostio.c (handle_vFile): Fix prefix lengths.
11591 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11593 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11596 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11598 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11599 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11600 (clean): Add "rm -f" for above C files.
11601 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11602 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11603 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11604 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11605 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11606 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11607 (init_registers_s390x_vx_linux64)
11608 (init_registers_s390x_tevx_linux64)
11609 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11610 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11612 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11613 (s390_store_vxrs_high): New functions.
11614 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11616 (s390_arch_setup): Add logic for selecting one of the new target
11617 descriptions. Activate the new vector regsets if applicable.
11618 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11619 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11620 and init_registers_s390x_tevx_linux64.
11622 2015-03-01 Pedro Alves <palves@redhat.com>
11624 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11627 2015-02-27 Pedro Alves <palves@redhat.com>
11629 * linux-x86-low.c (u_debugreg_offset): New function.
11630 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11632 2015-02-27 Pedro Alves <palves@redhat.com>
11634 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11635 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11636 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11637 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11638 (ps_lsetfpregs, ps_getpid)
11639 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11640 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11641 (ps_lsetxregs, ps_plog): Declare.
11643 2015-02-27 Pedro Alves <palves@redhat.com>
11645 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11646 IP_AGENT_EXPORT_FUNC.
11647 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11648 IP_AGENT_EXPORT_FUNC.
11649 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11650 (IP_AGENT_EXPORT): Delete.
11651 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11652 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11653 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11654 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11655 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11656 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11657 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11658 (traceframe_read_count, traceframe_write_count)
11659 (traceframes_created, trace_state_variables, get_raw_reg)
11660 (get_trace_state_variable_value, set_trace_state_variable_value)
11661 (ust_loaded, helper_thread_id, cmd_buf): Use
11662 IPA_SYM_EXPORTED_NAME.
11663 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11664 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11665 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11666 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11667 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11668 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11669 EXTERN_C_PUSH/EXTERN_C_POP.
11670 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11671 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11672 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11673 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11674 (traceframe_write_count, traceframe_read_count)
11675 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11676 (about_to_request_buffer_space, get_trace_state_variable_value)
11677 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11678 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11679 EXTERN_C_PUSH/EXTERN_C_POP.
11680 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11681 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11682 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11683 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11684 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11685 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11686 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11687 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11689 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11690 (IP_AGENT_EXPORT_VAR_DECL): Define.
11691 (tracing): Declare.
11692 (gdb_agent_get_raw_reg): Declare.
11694 2015-02-27 Tom Tromey <tromey@redhat.com>
11695 Pedro Alves <palves@redhat.com>
11697 Rename symbols whose names are reserved C++ keywords throughout.
11699 2015-02-27 Pedro Alves <palves@redhat.com>
11701 * Makefile.in (COMPILER): New, get it from autoconf.
11702 (CXX): Get from autoconf instead.
11703 (COMPILE.pre): Use COMPILER.
11704 (CC-LD): Rename to ...
11705 (CC_LD): ... this. Use COMPILER.
11706 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11707 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11708 * acinclude.m4: Include build-with-cxx.m4.
11709 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11710 Disable -Werror by default if building in C++ mode.
11711 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11712 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11713 the C++ compiler. Save/restore CXXFLAGS too.
11714 * configure: Regenerate.
11716 2015-02-27 Pedro Alves <palves@redhat.com>
11718 * acinclude.m4: Include libiberty.m4.
11719 * configure.ac: Call libiberty_INIT.
11720 * config.in, configure: Regenerate.
11722 2015-02-26 Pedro Alves <palves@redhat.com>
11724 * linux-low.c (linux_wait_1): When incrementing the PC past a
11725 program breakpoint always use the_low_target.breakpoint_len as
11726 increment, rather than the maximum between that and
11727 the_low_target.decr_pc_after_break.
11729 2015-02-23 Pedro Alves <palves@redhat.com>
11731 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11732 thread was doing a step-over; always adjust the PC if
11733 we stepped over a permanent breakpoint.
11734 (linux_wait_1): If we stepped over breakpoint that was on top of a
11735 permanent breakpoint, manually advance the PC past it.
11737 2015-02-23 Pedro Alves <palves@redhat.com>
11739 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11741 (x86_fill_gregset, x86_store_gregset): Use it when handling
11744 2015-02-20 Pedro Alves <palves@redhat.com>
11746 * thread-db.c: Include "nat/linux-procfs.h".
11747 (thread_db_init): Skip listing new threads if the kernel supports
11748 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11750 2015-02-20 Pedro Alves <palves@redhat.com>
11752 * linux-low.c (status_pending_p_callback): Use ptid_match.
11754 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11756 PR breakpoints/16812
11757 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11758 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11759 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11761 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11763 PR breakpoints/15956
11764 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11766 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11768 * linux-low.c (linux_low_btrace_conf): Print size.
11769 * server.c (handle_btrace_conf_general_set): New.
11770 (hanle_general_set): Call handle_btrace_conf_general_set.
11771 (handle_query): Report Qbtrace-conf:bts:size as supported.
11773 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11775 * linux-low.c (linux_low_enable_btrace): Update parameters.
11776 (linux_low_btrace_conf): New.
11777 (linux_target_ops)<to_btrace_conf>: Initialize.
11778 * server.c (current_btrace_conf): New.
11779 (handle_btrace_enable): Rename to ...
11780 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11781 to target_enable_btrace. Update comment. Update users.
11782 (handle_qxfer_btrace_conf): New.
11783 (qxfer_packets): Add btrace-conf entry.
11784 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11785 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11786 (target_ops)<read_btrace_conf>: New.
11787 (target_enable_btrace): Update parameters.
11788 (target_read_btrace_conf): New.
11790 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11792 * server.c (handle_btrace_general_set): Remove call to
11793 target_supports_btrace.
11794 (supported_btrace_packets): New.
11795 (handle_query): Call supported_btrace_packets.
11796 * target.h: include btrace-common.h.
11797 (btrace_target_info): Removed.
11798 (supports_btrace, target_supports_btrace): Update parameters.
11800 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11802 * Makefile.in (SFILES): Add common/btrace-common.c.
11803 (OBS): Add common/btrace-common.o.
11804 (btrace-common.o): Add build rules.
11805 * linux-low: Include btrace-common.h.
11806 (linux_low_read_btrace): Use struct btrace_data. Call
11807 btrace_data_init and btrace_data_fini.
11809 2015-02-06 Pedro Alves <palves@redhat.com>
11811 * thread-db.c (find_new_threads_callback): Add debug output.
11813 2015-02-04 Pedro Alves <palves@redhat.com>
11815 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11816 (resume_stopped_resumed_lwps): New function.
11817 (linux_wait_for_event_filtered): Use it.
11819 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11821 * Makefile.in (SFILES): Add linux-personality.c.
11822 (linux-personality.o): New rule.
11823 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11824 list of objects to be built.
11825 * linux-low.c: Include nat/linux-personality.h.
11826 (linux_create_inferior): Remove code to disable address space
11827 randomization (moved to ../nat/linux-personality.c). Create
11828 cleanup to disable address space randomization.
11830 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11832 * Makefile.in (posix-strerror.o): New rule.
11833 (mingw-strerror.o): Likewise.
11834 * configure: Regenerated.
11835 * configure.ac: Source file ../common/common.host. Initialize new
11836 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11838 2015-01-14 Yao Qi <yao@codesourcery.com>
11840 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11841 (ppc-linux.o): New rule.
11842 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11843 * configure.ac: AC_CHECK_FUNCS(getauxval).
11844 * config.in: Re-generated.
11845 * configure: Re-generated.
11846 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11847 ppc64_64bit_inferior_p
11849 2015-01-14 Yao Qi <yao@codesourcery.com>
11851 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11852 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11853 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11854 (PT_ORIG_R3, PT_TRAP): Likewise.
11855 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11856 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11857 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11859 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11861 * i387-fp.c (i387_cache_to_xsave): In look over
11862 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11863 zmmh_low_space field by use of zmmh_high_space.
11865 2015-01-09 Pedro Alves <palves@redhat.com>
11867 * linux-low.c (step_over_bkpt): Move higher up in the file.
11868 (handle_extended_wait): Don't store the stop_pc here.
11869 (get_stop_pc): Adjust comments and rename to ...
11870 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11871 stopped for a software breakpoint or hardware breakpoint.
11872 (thread_still_has_status_pending_p): New function.
11873 (status_pending_p_callback): Use
11874 thread_still_has_status_pending_p. If the event is no longer
11875 interesting, resume the LWP.
11876 (handle_tracepoints): Add assert.
11877 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11878 (wstatus_maybe_breakpoint): New function.
11879 (cancel_breakpoint): Delete function.
11880 (check_stopped_by_watchpoint): New function, factored out from
11881 linux_low_filter_event.
11882 (lp_status_maybe_breakpoint): Delete function.
11883 (linux_low_filter_event): Remove filter_ptid argument.
11884 Leave thread group exits pending here. Store the LWP's stop PC.
11885 Always leave events pending.
11886 (linux_wait_for_event_filtered): Pull all events out of the
11887 kernel, and leave them all pending.
11888 (count_events_callback, select_event_lwp_callback): Consider all
11890 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11891 (select_event_lwp): Only give preference to the stepping LWP in
11892 all-stop mode. Adjust comments.
11893 (ignore_event): New function.
11894 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11895 references to cancel_breakpoints. Adjust to renames. Also give
11896 equal priority to all LWPs that have had events in non-stop mode.
11897 If reporting a software breakpoint event, unadjust the LWP's PC.
11898 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11899 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11901 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11902 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11903 (linux_stopped_by_watchpoint): Adjust.
11904 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11905 * linux-low.h (enum lwp_stop_reason): New.
11906 (struct lwp_info) <stop_pc>: Adjust comment.
11907 <stopped_by_watchpoint>: Delete field.
11908 <stop_reason>: New field.
11909 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11910 * mem-break.c (software_breakpoint_inserted_here)
11911 (hardware_breakpoint_inserted_here): New function.
11912 * mem-break.h (software_breakpoint_inserted_here)
11913 (hardware_breakpoint_inserted_here): Declare.
11914 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11915 (cancel_breakpoints): Delete.
11916 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11917 (upload_fast_traceframes): Remove references to
11918 cancel_breakpoints.
11920 2015-01-09 Pedro Alves <palves@redhat.com>
11922 * thread-db.c (find_new_threads_callback): Ignore thread if the
11923 kernel thread ID is -1.
11925 2015-01-09 Pedro Alves <palves@redhat.com>
11927 * linux-low.c (linux_attach_fail_reason_string): Move to
11928 nat/linux-ptrace.c, and rename.
11929 (linux_attach_lwp): Update comment.
11930 (attach_proc_task_lwp_callback): New function.
11931 (linux_attach): Adjust to rename and use
11932 linux_proc_attach_tgid_threads.
11933 (linux_attach_fail_reason_string): Delete declaration.
11935 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11937 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11938 * server.c (gdbserver_version): Likewise.
11940 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11942 * remote-utils.c: Include ctype.h.
11943 (input_interrupt): Explicitly handle the case when the char
11944 received is the NUL byte. Improve the printing of non-ASCII
11947 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11949 * linux-low.c (linux_low_filter_event): Update call to
11950 linux_enable_event_reporting following the addition of
11951 a new parameter to that function.
11953 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11956 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11957 (AARCH64_FPCR_REGNO): Likewise.
11958 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11959 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11960 (aarch64_store_fpregset): Likewise.
11962 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11964 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11965 Remove FIXME comment about assumption about N.
11967 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11969 * configure.ac: If large-file support is disabled in GDBserver,
11970 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11971 * configure: Regenerate.
11973 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11975 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11976 warning upon ENODATA from ptrace.
11977 * linux-s390-low.c (s390_store_tdb): New.
11978 (s390_regsets): Add regset for NT_S390_TDB.
11980 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11982 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11983 without a fill_function.
11984 * linux-s390-low.c (s390_fill_last_break): Remove.
11985 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11986 (s390_arch_setup): Use regset's size instead of fill_function for
11987 loop end condition.
11989 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11991 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11992 the regset's store function when ptrace returned an error.
11993 * regcache.c (get_thread_regcache): Invalidate register cache
11994 before fetching inferior's registers.
11996 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11998 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11999 while-loop as for-loop.
12000 (regsets_store_inferior_registers): Likewise.
12002 2014-11-28 Yao Qi <yao@codesourcery.com>
12004 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12005 * config.in, configure: Re-generate.
12006 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12009 2014-11-21 Yao Qi <yao@codesourcery.com>
12011 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12012 (AC_CHECK_HEADERS): Remove malloc.h.
12013 * configure: Re-generated.
12014 * config.in: Re-generated.
12015 * server.h: Don't include alloca.h and malloc.h.
12016 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12017 Don't include malloc.h.
12019 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12021 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12022 corresponding ERRNO check in same block.
12024 2014-11-12 Pedro Alves <palves@redhat.com>
12026 * server.c (cont_thread): Update comment.
12027 (start_inferior, attach_inferior): No longer clear cont_thread.
12028 (handle_v_cont): No longer set cont_thread.
12029 (captured_main): Clear cont_thread each time a GDB connects.
12031 2014-11-12 Pedro Alves <palves@redhat.com>
12033 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12034 thread, and don't resume all threads if the Hc thread has exited.
12036 2014-11-12 Pedro Alves <palves@redhat.com>
12038 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12039 the process group instead of to a specific LWP.
12041 2014-10-15 Pedro Alves <palves@redhat.com>
12044 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12046 (arm_set_thread_context): Delete.
12047 (the_low_target): Adjust.
12048 * win32-i386-low.c (debug_registers_changed)
12049 (debug_registers_used): Delete.
12050 (update_debug_registers_callback): New function.
12051 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12052 needing to update their debug registers.
12053 (win32_get_current_dr): New function.
12054 (x86_dr_low_get_addr, x86_dr_low_get_control)
12055 (x86_dr_low_get_status): Fetch the debug register from the thread
12057 (i386_initial_stuff): Adjust.
12058 (i386_get_thread_context): Remove current_event parameter. Don't
12059 clear debug_registers_changed nor copy DR values to
12061 (i386_set_thread_context): Delete.
12062 (i386_prepare_to_resume): New function.
12063 (i386_thread_added): Mark the thread as needing to update irs
12065 (the_low_target): Remove i386_set_thread_context and install
12066 i386_prepare_to_resume.
12067 * win32-low.c (win32_get_thread_context): Adjust.
12068 (win32_set_thread_context): Use SetThreadContext
12070 (win32_prepare_to_resume): New function.
12071 (win32_require_context): New function, factored out from ...
12072 (thread_rec): ... this.
12073 (continue_one_thread): Call win32_prepare_to_resume on each thread
12074 we're about to continue.
12075 (win32_resume): Call win32_prepare_to_resume on the event thread.
12076 * win32-low.h (struct win32_thread_info)
12077 <debug_registers_changed>: New field.
12078 (struct win32_target_ops): Change prototype of set_thread_context,
12079 delete set_thread_context and add prepare_to_resume.
12080 (win32_require_context): New declaration.
12082 2014-10-08 Gary Benson <gbenson@redhat.com>
12084 * server.h: Do not include common-exceptions.h.
12086 2014-10-08 Gary Benson <gbenson@redhat.com>
12088 * server.h: Do not include cleanups.h.
12090 2014-09-30 James Hogan <james.hogan@imgtec.com>
12092 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12093 mips64-dsp-linux.c.
12095 2014-09-23 Yao Qi <yao@codesourcery.com>
12097 * linux-low.c (lp_status_maybe_breakpoint): New function.
12098 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12099 (count_events_callback): Likewise.
12100 (select_event_lwp_callback): Likewise.
12101 (cancel_breakpoints_callback): Likewise.
12103 2014-09-19 Don Breazeal <donb@codesourcery.com>
12105 * linux-low.c (handle_extended_wait): Call
12106 linux_ptrace_get_extended_event.
12107 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12108 linux_is_extended_waitstatus.
12110 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12112 * Makefile.in (CPPFLAGS): Define.
12113 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12114 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12116 2014-09-16 Gary Benson <gbenson@redhat.com>
12118 * inferiors.h (current_inferior): Renamed as...
12119 (current_thread): New variable. All uses updated.
12120 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12121 (maybe_move_out_of_jump_pad): Likewise.
12122 (cancel_breakpoint): Likewise.
12123 (linux_low_filter_event): Likewise.
12124 (wait_for_sigstop): Likewise.
12125 (linux_resume_one_lwp): Likewise.
12126 (need_step_over_p): Likewise.
12127 (start_step_over): Likewise.
12128 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12129 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12130 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12131 and save_inferior as saved_thread.
12132 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12134 (regcache_invalidate_thread): Likewise.
12135 * remote-utils.c (prepare_resume_reply): Likewise.
12136 * thread-db.c (thread_db_get_tls_address): Likewise.
12137 (disable_thread_event_reporting): Likewise.
12138 (remove_thread_event_breakpoints): Likewise.
12139 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12141 * target.h (set_desired_inferior): Renamed as...
12142 (set_desired_thread): New declaration. All uses updated.
12143 * server.c (myresume): Updated comment to reference thread instead
12145 (handle_serial_event): Likewise.
12146 (handle_target_event): Likewise.
12148 2014-09-12 Tom Tromey <tromey@redhat.com>
12149 Gary Benson <gbenson@redhat.com>
12151 * regcache.h: Include common-regcache.h.
12152 (regcache_read_pc): Don't declare.
12153 * regcache.c (get_thread_regcache_for_ptid): New function.
12155 2014-09-11 Tom Tromey <tromey@redhat.com>
12156 Gary Benson <gbenson@redhat.com>
12158 * symbol.c: New file.
12159 * Makefile.in (SFILES): Add symbol.c.
12160 (OBS): Add symbol.o.
12162 2014-09-11 Gary Benson <gbenson@redhat.com>
12164 * target.c (target_stop_ptid, target_continue_ptid): New
12167 2014-09-11 Tom Tromey <tromey@redhat.com>
12168 Gary Benson <gbenson@redhat.com>
12170 * target.h: Include target/target.h.
12171 * target.c (target_read_memory, target_read_uint32)
12172 (target_write_memory): New functions.
12174 2014-09-11 Gary Benson <gbenson@redhat.com>
12176 * server.h (debug_hw_points): Don't declare.
12177 * server.c (debug_hw_points): Don't define. Replace all uses
12178 with show_debug_regs.
12179 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12180 all uses with show_debug_regs.
12182 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12184 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12185 endianness into account.
12186 (ppc_supply_ptrace_register): Likewise.
12188 2014-09-03 James Hogan <james.hogan@imgtec.com>
12190 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12191 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12193 2014-09-03 Gary Benson <gbenson@redhat.com>
12195 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12196 ALL_DEBUG_ADDRESS_REGISTERS.
12198 2014-09-02 Gary Benson <gbenson@redhat.com>
12200 * i386-low.h: Renamed as...
12201 * x86-low.h: New file. All type, function and variable name
12202 prefixes changed from "i386_" to "x86_". All references updated.
12203 * i386-low.c: Renamed as...
12204 * x86-low.c: New file. All type, function and variable name
12205 prefixes changed from "i386_" to "x86_". All references updated.
12207 2014-09-02 Gary Benson <gbenson@redhat.com>
12209 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12210 (x86_linux_new_thread): Likewise.
12212 2014-08-29 Gary Benson <gbenson@redhat.com>
12214 * server.h (setjmp.h): Do not include.
12215 (toplevel): Do not declare.
12216 (common-exceptions.h): Include.
12217 (cleanups.h): Likewise.
12218 * server.c (toplevel): Do not define.
12219 (exit_code): New static global.
12220 (detach_or_kill_for_exit_cleanup): New function.
12221 (main): New function. Original main renamed to...
12222 (captured_main): New function.
12223 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12225 2014-08-29 Gary Benson <gbenson@redhat.com>
12227 * Makefile.in (SFILES): Add common/common-exceptions.c.
12228 (OBS): Add common-exceptions.o.
12229 (common-exceptions.o): New rule.
12230 * utils.c (prepare_to_throw_exception): New function.
12232 2014-08-29 Gary Benson <gbenson@redhat.com>
12234 * config.in: Regenerate.
12235 * configure: Likewise.
12237 2014-08-29 Gary Benson <gbenson@redhat.com>
12239 * Makefile.in (SFILES): Add common/cleanups.c.
12241 (cleanups.o): New rule.
12243 2014-08-29 Gary Benson <gbenson@redhat.com>
12245 * utils.c (internal_vwarning): New function.
12247 2014-08-28 Gary Benson <gbenson@redhat.com>
12249 * utils.h (fatal): Remove declaration.
12250 * utils.c (fatal): Remove function.
12252 2014-08-28 Gary Benson <gbenson@redhat.com>
12254 * tracepoint.c (gdb_agent_init): Replace fatal with
12256 (initialize_tracepoint): Likewise.
12258 2014-08-28 Gary Benson <gbenson@redhat.com>
12260 * remote-utils.c (remote_prepare): Replace fatal with error.
12262 2014-08-28 Gary Benson <gbenson@redhat.com>
12264 * linux-low.c (linux_async): Replace fatal with warning.
12265 Tidy up and return.
12266 (linux_start_non_stop): Return -1 if linux_async failed.
12268 2014-08-28 Gary Benson <gbenson@redhat.com>
12270 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12272 (i386_dr_low_get_addr): Remove vague comment.
12273 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12276 2014-08-28 Gary Benson <gbenson@redhat.com>
12278 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12279 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12281 (linux_resume_one_lwp): Likewise.
12282 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12284 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12285 with internal_error.
12286 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12287 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12288 (find_register_by_name): Replace fatal with internal_error.
12289 (find_regno): Likewise.
12290 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12291 * thread-db.c (thread_db_create_event): Likewise.
12292 (thread_db_load_search): Likewise.
12293 (try_thread_db_load_1): Likewise.
12294 * tracepoint.c (get_jump_space_head): Replace fatal with
12296 (claim_trampoline_space): Likewise.
12297 (have_fast_tracepoint_trampoline_buffer): Likewise.
12298 (cmd_qtstart): Likewise.
12299 (stop_tracing): Likewise.
12300 (fast_tracepoint_collecting): Likewise.
12301 (target_malloc): Likewise.
12302 (download_tracepoint): Likewise.
12303 (download_trace_state_variables): Replace check with gdb_assert.
12304 (upload_fast_traceframes): Replace fatal with internal_error.
12306 2014-08-19 Tom Tromey <tromey@redhat.com>
12307 Gary Benson <gbenson@redhat.com>
12309 * Makefile.in (SFILES): Add common/common-debug.c.
12310 (OBS): Add common-debug.o.
12311 (common-debug.o): New rule.
12312 * debug.h (debug_printf): Don't declare.
12313 * debug.c (debug_printf): Renamed and rewritten as...
12314 (debug_vprintf): New function.
12316 2014-08-19 Gary Benson <gbenson@redhat.com>
12318 * utils.h: Do not include print-utils.h.
12320 2014-08-19 Tom Tromey <tromey@redhat.com>
12321 Gary Benson <gbenson@redhat.com>
12323 * server.h: Add static assertion.
12324 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12326 2014-08-19 Tom Tromey <tromey@redhat.com>
12327 Gary Benson <gbenson@redhat.com>
12329 * Makefile.in (SFILES): Add common/errors.c.
12330 (OBS): Add errors.o.
12331 (IPA_OBS): Add errors-ipa.o.
12332 (errors.o): New rule.
12333 (errors-ipa.o): Likewise.
12334 * utils.h (perror_with_name, error, warning): Don't declare.
12335 * utils.c (warning): Renamed and rewritten as...
12336 (vwarning): New function.
12337 (error): Renamed and rewritten as...
12338 (verror): New function.
12339 (internal_error): Renamed and rewritten as...
12340 (internal_verror): New function.
12342 2014-08-07 Gary Benson <gbenson@redhat.com>
12344 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12345 * configure: Regenerate.
12346 * config.in: Likewise.
12347 * server.h: Do not include errno.h.
12348 * event-loop.c: Likewise.
12349 * hostio-errno.c: Likewise.
12350 * linux-low.c: Likewise.
12351 * remote-utils.c: Likewise.
12352 * spu-low.c: Likewise.
12353 * utils.c: Likewise.
12354 * gdbreplay.c: Unconditionally include errno.h.
12356 2014-08-07 Gary Benson <gbenson@redhat.com>
12358 * server.h: Do not include string.h.
12359 * event-loop.c: Likewise.
12360 * linux-low.c: Likewise.
12361 * regcache.c: Likewise.
12362 * remote-utils.c: Likewise.
12363 * spu-low.c: Likewise.
12364 * utils.c: Likewise.
12366 2014-08-07 Gary Benson <gbenson@redhat.com>
12368 * server.h: Do not include gdb_assert.h.
12370 2014-08-07 Gary Benson <gbenson@redhat.com>
12372 * server.h: Do not include common-utils.h.
12374 2014-08-07 Gary Benson <gbenson@redhat.com>
12376 * server.h: Do not include ptid.h.
12377 * notif.h: Likewise.
12379 2014-08-07 Gary Benson <gbenson@redhat.com>
12381 * server.h: Do not include gdb_locale.h.
12383 2014-08-07 Gary Benson <gbenson@redhat.com>
12385 * server.h: Do not include gdb/signals.h.
12386 * win32-low.c: Likewise.
12388 2014-08-07 Gary Benson <gbenson@redhat.com>
12390 * server.h: Do not include pathmax.h.
12392 2014-08-07 Gary Benson <gbenson@redhat.com>
12394 * server.h: Do not include libiberty.h.
12395 * linux-bfin-low.c: Likewise.
12397 2014-08-07 Gary Benson <gbenson@redhat.com>
12399 * server.h: Do not include ansidecl.h.
12401 2014-08-07 Gary Benson <gbenson@redhat.com>
12403 * linux-x86-low.c: Do not include stddef.h.
12404 * lynx-ppc-low.c: Likewise.
12405 * tracepoint.c: Likewise.
12407 2014-08-07 Gary Benson <gbenson@redhat.com>
12409 * server.h: Do not include stdarg.h.
12410 * nto-low.c: Likewise.
12412 2014-08-07 Gary Benson <gbenson@redhat.com>
12414 * server.h: Do not include stdlib.h.
12415 * inferiors.c: Likewise.
12416 * linux-low.c: Likewise.
12417 * regcache.c: Likewise.
12418 * spu-low.c: Likewise.
12419 * tracepoint.c: Likewise.
12420 * utils.c: Likewise.
12422 2014-08-07 Gary Benson <gbenson@redhat.com>
12424 * server.h: Do not include stdio.h.
12425 * linux-low.c: Likewise.
12426 * remote-utils.c: Likewise.
12427 * spu-low.c: Likewise.
12428 * utils.c: Likewise.
12429 * wincecompat.c: Likewise.
12431 2014-08-06 Gary Benson <gbenson@redhat.com>
12433 * regcache.c (init_register_cache): Move conditionals inside if.
12435 2014-08-06 Gary Benson <gbenson@redhat.com>
12437 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12439 2014-07-31 Gary Benson <gbenson@redhat.com>
12441 * ax.h: Do not include server.h.
12442 * gdbthread.h: Likewise.
12443 * lynx-low.h: Likewise.
12444 * notif.h: Likewise.
12446 2014-07-30 Gary Benson <gbenson@redhat.com>
12448 * server.h: Include common-defs.h.
12449 Do not include config.h or build-gnulib-gdbserver/config.h.
12451 2014-07-30 Gary Benson <gbenson@redhat.com>
12453 * hostio-errno.c: Move server.h to top of includes list.
12454 * inferiors.c: Likewise.
12455 * linux-x86-low.c: Likewise.
12456 * notif.c: Include server.h.
12458 2014-07-24 Tom Tromey <tromey@redhat.com>
12459 Gary Benson <gbenson@redhat.com>
12461 * server.h (CORE_ADDR): Now unsigned.
12463 2014-07-16 Pedro Alves <palves@redhat.com>
12465 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12467 2014-07-15 Pedro Alves <palves@redhat.com>
12469 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12472 2014-07-11 Pedro Alves <palves@redhat.com>
12474 * linux-low.c (kill_wait_lwp): New function, based on
12475 kill_one_lwp_callback, but use my_waitpid directly.
12476 (kill_one_lwp_callback, linux_kill): Use it.
12478 2014-06-23 Pedro Alves <palves@redhat.com>
12480 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12481 before setting DR0..DR3.
12483 2014-06-20 Gary Benson <gbenson@redhat.com>
12485 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12486 * configure: Regenerated.
12487 * config.in: Likewise.
12489 2014-06-20 Gary Benson <gbenson@redhat.com>
12491 * Makefile.in (SFILES): Update locations for files moved
12492 from common to nat.
12493 (object file files): Reordered.
12495 2014-06-20 Gary Benson <gbenson@redhat.com>
12497 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12498 (i386_dr_low_set_addr): Likewise.
12499 (i386_dr_low_get_addr): Likewise.
12500 (i386_dr_low_can_set_control): Likewise.
12501 (i386_dr_low_set_control): Likewise.
12502 (i386_dr_low_get_control): Likewise.
12503 (i386_dr_low_get_status): Likewise.
12504 (i386_get_debug_register_length): Likewise.
12505 * linux-x86-low.c (i386_dr_low_set_addr):
12506 Changed signature. Made static.
12507 (i386_dr_low_get_addr): Likewise.
12508 (i386_dr_low_set_control): Likewise.
12509 (i386_dr_low_get_control): Likewise.
12510 (i386_dr_low_get_status): Likewise.
12511 (i386_dr_low): New global variable.
12512 * win32-i386-low.c (i386_dr_low_set_addr):
12513 Changed signature. Made static.
12514 (i386_dr_low_get_addr): Likewise.
12515 (i386_dr_low_set_control): Likewise.
12516 (i386_dr_low_get_control): Likewise.
12517 (i386_dr_low_get_status): Likewise.
12518 (i386_dr_low): New global variable.
12520 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12522 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12523 * Makefile.in (AR, AR_FLAGS): Define.
12524 * configure: Regenerate.
12526 2014-06-19 Gary Benson <gbenson@redhat.com>
12528 * Makefile.in (i386-dregs.o): New rule.
12529 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12530 * i386-low.c (target.h): Remove include.
12531 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12532 (DR_CONTROL_SHIFT): Likewise.
12533 (DR_CONTROL_SIZE): Likewise.
12534 (DR_RW_EXECUTE): Likewise.
12535 (DR_RW_WRITE): Likewise.
12536 (DR_RW_READ): Likewise.
12537 (DR_RW_IORW): Likewise.
12538 (DR_LEN_1): Likewise.
12539 (DR_LEN_2): Likewise.
12540 (DR_LEN_4): Likewise.
12541 (DR_LEN_8): Likewise.
12542 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12543 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12544 (DR_ENABLE_SIZE): Likewise.
12545 (DR_LOCAL_SLOWDOWN): Likewise.
12546 (DR_GLOBAL_SLOWDOWN): Likewise.
12547 (DR_CONTROL_RESERVED): Likewise.
12548 (I386_DR_CONTROL_MASK): Likewise.
12549 (I386_DR_VACANT): Likewise.
12550 (I386_DR_LOCAL_ENABLE): Likewise.
12551 (I386_DR_GLOBAL_ENABLE): Likewise.
12552 (I386_DR_DISABLE): Likewise.
12553 (I386_DR_SET_RW_LEN): Likewise.
12554 (I386_DR_GET_RW_LEN): Likewise.
12555 (I386_DR_WATCH_HIT): Likewise.
12556 (i386_wp_op_t): Likewise.
12557 (i386_show_dr): Likewise.
12558 (i386_length_and_rw_bits): Likewise.
12559 (i386_insert_aligned_watchpoint): Likewise.
12560 (i386_remove_aligned_watchpoint): Likewise.
12561 (i386_handle_nonaligned_watchpoint): Likewise.
12562 i386_update_inferior_debug_regs(): Likewise.
12563 (i386_dr_insert_watchpoint): Likewise.
12564 (i386_dr_remove_watchpoint): Likewise.
12565 (i386_dr_region_ok_for_watchpoint): Likewise.
12566 (i386_dr_stopped_data_address): Likewise.
12567 (i386_dr_stopped_by_watchpoint): Likewise.
12569 2014-06-19 Gary Benson <gbenson@redhat.com>
12571 * i386-low.c (i386_dr_show): Renamed to
12572 i386_show_dr and made static. All uses updated.
12573 (i386_dr_length_and_rw_bits): Renamed to
12574 i386_length_and_rw_bits and made static.
12576 (i386_dr_insert_aligned_watchpoint): Renamed to
12577 i386_insert_aligned_watchpoint and made static.
12579 (i386_dr_remove_aligned_watchpoint): Renamed to
12580 i386_remove_aligned_watchpoint and made static.
12582 (i386_dr_update_inferior_debug_regs): Renamed to
12583 i386_update_inferior_debug_regs and made static.
12586 2014-06-18 Gary Benson <gbenson@redhat.com>
12588 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12589 (i386_dr_low_can_set_control): Likewise.
12590 (i386_get_debug_register_length): Likewise.
12591 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12592 (i386_dr_low_can_set_control): Likewise.
12593 (i386_get_debug_register_length): Likewise.
12595 2014-06-17 Gary Benson <gbenson@redhat.com>
12597 * i386-low.h (i386-dregs.h): New include.
12598 (DR_FIRSTADDR): Now in i386-dregs.h.
12599 (DR_LASTADDR): Likewise.
12600 (DR_NADDR): Likewise.
12601 (DR_STATUS): Likewise.
12602 (DR_CONTROL): Likewise.
12603 (i386_debug_reg_state): Likewise.
12604 (i386_dr_insert_watchpoint): Likewise.
12605 (i386_dr_remove_watchpoint): Likewise.
12606 (i386_dr_region_ok_for_watchpoint): Likewise.
12607 (i386_dr_stopped_data_address): Likewise.
12608 (i386_dr_stopped_by_watchpoint): Likewise.
12609 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12611 2014-06-18 Gary Benson <gbenson@redhat.com>
12613 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12614 i386_dr_insert_watchpoint.
12615 (i386_low_remove_watchpoint): Renamed to
12616 i386_dr_remove_watchpoint.
12617 (i386_low_region_ok_for_watchpoint): Renamed to
12618 i386_dr_region_ok_for_watchpoint.
12619 (i386_low_stopped_data_address): Renamed to
12620 i386_dr_stopped_data_address.
12621 (i386_low_stopped_by_watchpoint): Renamed to
12622 i386_dr_stopped_by_watchpoint.
12623 * i386-low.c (i386_show_dr): Renamed to
12624 i386_dr_show and made nonstatic. All uses updated.
12625 (i386_length_and_rw_bits): Renamed to
12626 i386_dr_length_and_rw_bits and made nonstatic.
12628 (i386_insert_aligned_watchpoint): Renamed to
12629 i386_dr_insert_aligned_watchpoint and made nonstatic.
12631 (i386_remove_aligned_watchpoint): Renamed to
12632 i386_dr_remove_aligned_watchpoint and made nonstatic.
12634 (i386_update_inferior_debug_regs): Renamed to
12635 i386_dr_update_inferior_debug_regs and made nonstatic.
12637 (i386_low_insert_watchpoint): Renamed to
12638 i386_dr_insert_watchpoint. All uses updated.
12639 (i386_low_remove_watchpoint): Renamed to
12640 i386_dr_remove_watchpoint. All uses updated.
12641 (i386_low_region_ok_for_watchpoint): Renamed to
12642 i386_dr_region_ok_for_watchpoint. All uses updated.
12643 (i386_low_stopped_data_address): Renamed to
12644 i386_dr_stopped_data_address. All uses updated.
12645 (i386_low_stopped_by_watchpoint): Renamed to
12646 i386_dr_stopped_by_watchpoint. All uses updated.
12648 2014-06-18 Gary Benson <gbenson@redhat.com>
12650 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12651 (i386_dr_low_can_set_control): Likewise.
12652 (i386_insert_aligned_watchpoint): New check.
12654 2014-06-18 Gary Benson <gbenson@redhat.com>
12656 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12659 2014-06-18 Gary Benson <gbenson@redhat.com>
12661 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12662 instead of fatal and error.
12663 (i386_handle_nonaligned_watchpoint): Likewise.
12665 2014-06-18 Gary Benson <gbenson@redhat.com>
12667 * i386-low.c (i386_get_debug_register_length): New macro.
12668 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12669 (i386_show_dr): Use debug_printf instead of fprintf. Use
12670 phex to format values.
12672 2014-06-18 Gary Benson <gbenson@redhat.com>
12674 * i386-low.h: Comment changes.
12675 * i386-low.c: Likewise.
12677 2014-06-18 Gary Benson <gbenson@redhat.com>
12679 * i386-low.c: Whitespace changes.
12681 2014-06-12 Tom Tromey <tromey@redhat.com>
12683 * utils.c (freeargv): Remove.
12685 2014-06-12 Tom Tromey <tromey@redhat.com>
12687 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12688 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12689 (parse_debug_format_options): Likewise.
12690 (gdbserver_usage): Likewise.
12691 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12692 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12693 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12695 ($(LIBGNU)): Depend on libiberty.
12696 (all-lib): Recurse into all subdirs.
12697 (install-only): Invoke "install" target in subdirs.
12698 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12700 * configure: Rebuild.
12701 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12702 for vasprintf, vsnprintf, or gettimeofday.
12703 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12706 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12708 * development.sh: Delete.
12709 * Makefile.in (config.status): Adjust dependency on development.sh.
12710 * configure.ac: Adjust development.sh source call.
12711 * configure: Regenerate.
12713 2014-06-02 Pedro Alves <palves@redhat.com>
12715 * ax.c (gdb_free_agent_expr): New function.
12716 * ax.h (gdb_free_agent_expr): New declaration.
12717 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12719 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12721 (clear_breakpoint_conditions_and_commands): New function.
12722 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12723 (clear_breakpoint_conditions_and_commands): New declaration.
12725 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12727 * linux-aarch64-low.c (asm/ptrace.h): Include.
12729 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12731 Fix TLS access for -static -pthread.
12732 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12733 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12734 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12736 2014-05-20 Pedro Alves <palves@redhat.com>
12738 * linux-aarch64-low.c (aarch64_insert_point)
12739 (aarch64_remove_point): No longer check whether the type is
12740 supported here. Adjust to new interface.
12741 (the_low_target): Install aarch64_supports_z_point_type as
12742 supports_z_point_type method.
12743 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12744 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12745 instead of a Z packet char. Adjust.
12746 (arm_supports_z_point_type): New function.
12747 (arm_insert_point, arm_remove_point): Adjust to new interface.
12748 (the_low_target): Install arm_supports_z_point_type.
12749 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12750 (cris_insert_point, cris_remove_point): Adjust to new interface.
12751 Don't check whether the type is supported here.
12752 (the_low_target): Install cris_supports_z_point_type.
12753 * linux-low.c (linux_supports_z_point_type): New function.
12754 (linux_insert_point, linux_remove_point): Adjust to new interface.
12755 * linux-low.h (struct linux_target_ops) <insert_point,
12756 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12757 raw_breakpoint pointer parameter.
12758 <supports_z_point_type>: New method.
12759 * linux-mips-low.c (mips_supports_z_point_type): New function.
12760 (mips_insert_point, mips_remove_point): Adjust to new interface.
12761 Use mips_supports_z_point_type.
12762 (the_low_target): Install mips_supports_z_point_type.
12763 * linux-ppc-low.c (the_low_target): Install NULL as
12764 supports_z_point_type method.
12765 * linux-s390-low.c (the_low_target): Install NULL as
12766 supports_z_point_type method.
12767 * linux-sparc-low.c (the_low_target): Install NULL as
12768 supports_z_point_type method.
12769 * linux-x86-low.c (x86_supports_z_point_type): New function.
12770 (x86_insert_point): Adjust to new insert_point interface. Use
12771 insert_memory_breakpoint. Adjust to new
12772 i386_low_insert_watchpoint interface.
12773 (x86_remove_point): Adjust to remove_point interface. Use
12774 remove_memory_breakpoint. Adjust to new
12775 i386_low_remove_watchpoint interface.
12776 (the_low_target): Install x86_supports_z_point_type.
12777 * lynx-low.c (lynx_target_ops): Install NULL as
12778 supports_z_point_type callback.
12779 * nto-low.c (nto_supports_z_point_type): New.
12780 (nto_insert_point, nto_remove_point): Adjust to new interface.
12781 (nto_target_ops): Install nto_supports_z_point_type.
12782 * mem-break.c: Adjust intro comment.
12783 (struct raw_breakpoint) <raw_type, size>: New fields.
12784 <inserted>: Update comment.
12785 <shlib_disabled>: Delete field.
12786 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12787 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12788 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12789 (raw_bkpt_type_to_target_hw_bp_type): New function.
12790 (find_enabled_raw_code_breakpoint_at): New function.
12791 (find_raw_breakpoint_at): New type and size parameters. Use them.
12792 (insert_memory_breakpoint): New function, based off
12793 set_raw_breakpoint_at.
12794 (remove_memory_breakpoint): New function.
12795 (set_raw_breakpoint_at): Reimplement.
12796 (set_breakpoint): New, based on set_breakpoint_at.
12797 (set_breakpoint_at): Reimplement.
12798 (delete_raw_breakpoint): Go through the_target->remove_point
12799 instead of assuming memory breakpoints.
12800 (find_gdb_breakpoint_at): Delete.
12801 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12802 (find_gdb_breakpoint): New function.
12803 (set_gdb_breakpoint_at): Delete.
12804 (z_type_supported): New function.
12805 (set_gdb_breakpoint_1): New function, loosely based off
12806 set_gdb_breakpoint_at.
12807 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12808 (delete_gdb_breakpoint_at): Delete.
12809 (delete_gdb_breakpoint_1): New function, loosely based off
12810 delete_gdb_breakpoint_at.
12811 (delete_gdb_breakpoint): New function.
12812 (clear_gdb_breakpoint_conditions): Rename to ...
12813 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12815 (add_condition_to_breakpoint): Make static.
12816 (add_breakpoint_condition): Take a struct breakpoint pointer
12817 instead of an address. Adjust.
12818 (gdb_condition_true_at_breakpoint): Rename to ...
12819 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12821 (gdb_condition_true_at_breakpoint): Reimplement.
12822 (add_breakpoint_commands): Take a struct breakpoint pointer
12823 instead of an address. Adjust.
12824 (gdb_no_commands_at_breakpoint): Rename to ...
12825 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12826 parameter. Return true if no breakpoint was found. Change debug
12828 (gdb_no_commands_at_breakpoint): Reimplement.
12829 (run_breakpoint_commands): Rename to ...
12830 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12831 and change return type to boolean.
12832 (run_breakpoint_commands): New function.
12833 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12834 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12835 breakpoint. Go through the_target->remove_point instead of
12836 assuming memory breakpoint.
12837 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12838 software and hardware breakpoints.
12839 (reinsert_raw_breakpoint): Go through the_target->insert_point
12840 instead of assuming memory breakpoint.
12841 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12842 software and hardware breakpoints.
12843 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12844 Check both software and hardware breakpoints.
12845 (validate_inserted_breakpoint): Assert the breakpoint is a
12846 software breakpoint. Set the inserted flag to -1 instead of
12847 setting shlib_disabled.
12848 (delete_disabled_breakpoints): Adjust.
12849 (validate_breakpoints): Only validate software breakpoints.
12850 Adjust to inserted flag change.
12851 (check_mem_read, check_mem_write): Skip breakpoint types other
12852 than software breakpoints. Adjust to inserted flag change.
12853 * mem-break.h (enum raw_bkpt_type): New enum.
12854 (raw_breakpoint, struct process_info): Forward declare.
12855 (Z_packet_to_target_hw_bp_type): Delete declaration.
12856 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12857 (set_gdb_breakpoint, delete_gdb_breakpoint)
12858 (clear_breakpoint_conditions): New declarations.
12859 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12860 (breakpoint_inserted_here): Update comment.
12861 (add_breakpoint_condition, add_breakpoint_commands): Replace
12862 address parameter with a breakpoint pointer parameter.
12863 (gdb_breakpoint_here): Update comment.
12864 (delete_gdb_breakpoint_at): Delete.
12865 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12866 * server.c (process_point_options): Take a struct breakpoint
12867 pointer instead of an address. Adjust.
12868 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12869 delete_gdb_breakpoint.
12870 * spu-low.c (spu_target_ops): Install NULL as
12871 supports_z_point_type method.
12872 * target.h: Include mem-break.h.
12873 (struct target_ops) <prepare_to_access_memory>: Update comment.
12874 <supports_z_point_type>: New field.
12875 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12876 instead of a char. Also take a raw breakpoint pointer.
12877 * win32-arm-low.c (the_low_target): Install NULL as
12878 supports_z_point_type.
12879 * win32-i386-low.c (i386_supports_z_point_type): New function.
12880 (i386_insert_point, i386_remove_point): Adjust to new interface.
12881 (the_low_target): Install i386_supports_z_point_type.
12882 * win32-low.c (win32_supports_z_point_type): New function.
12883 (win32_insert_point, win32_remove_point): Adjust to new interface.
12884 (win32_target_ops): Install win32_supports_z_point_type.
12885 * win32-low.h (struct win32_target_ops):
12886 <supports_z_point_type>: New method.
12887 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12888 instead of a char. Also take a raw breakpoint pointer.
12890 2014-05-20 Pedro Alves <palves@redhat.com>
12892 * mem-break.h: Include break-common.h.
12893 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12894 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12895 (Z_packet_to_target_hw_bp_type): New declaration.
12896 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12897 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12898 (Z_PACKET_ACCESS_WP): Delete macros.
12899 (Z_packet_to_hw_type): Delete function.
12900 * i386-low.h: Don't include break-common.h here.
12901 (Z_packet_to_hw_type): Delete declaration.
12902 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12903 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12904 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12905 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12906 * linux-aarch64-low.c: Don't include break-common.h here.
12907 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12908 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12909 (Z_packet_to_target_hw_bp_type): Delete function.
12910 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12912 (mips_insert_point, mips_remove_point): Use
12913 Z_packet_to_target_hw_bp_type.
12915 2014-05-20 Pedro Alves <palves@redhat.com>
12917 * linux-aarch64-low.c: Include break-common.h.
12918 (enum target_point_type): Delete.
12919 (Z_packet_to_point_type): Rename to ...
12920 (Z_packet_to_target_hw_bp_type): ... this, and return a
12921 target_hw_bp_type instead.
12922 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12923 instead of an enum target_point_type.
12924 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12926 (aarch64_dr_state_insert_one_point)
12927 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12928 (aarch64_handle_aligned_watchpoint)
12929 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12930 Take an enum target_hw_bp_type instead of an enum
12932 (aarch64_supports_z_point_type): New function.
12933 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12934 use Z_packet_to_target_hw_bp_type.
12936 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12938 * configure.ac: Only use -Werror by default when DEVELOPMENT
12940 * configure: Regenerate.
12942 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12944 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12945 * linux-x86-low.c (X86_64_USER_REGS): New.
12946 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12948 2014-04-28 Yao Qi <yao@codesourcery.com>
12950 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12953 2014-04-25 Pedro Alves <palves@redhat.com>
12956 * linux-low.c (linux_attach_fail_reason_string): New function.
12957 (linux_attach_lwp): Delete.
12958 (linux_attach_lwp_1): Rename to ...
12959 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12960 argument. Remove "initial" parameter. Return int instead of
12961 void. Don't error or warn here.
12962 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12963 failure to attach to the tgid. Call warning when failing to
12965 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12966 argument. Remove "initial" parameter. Return int instead of
12967 void. Don't error or warn here.
12968 (linux_attach_fail_reason_string): New declaration.
12969 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12970 interface change. Use linux_attach_fail_reason_string.
12972 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12973 Walfred Tedeschi <walfred.tedeschi@intel.com>
12975 * Makefile.in: Added rules to handle new files
12976 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12977 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12978 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12979 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12980 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12981 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12982 x32-avx512-linux.o.
12983 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12984 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12985 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12986 i386/x32-avx512.xml.
12987 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12988 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12989 i386/x32-avx512-linux.xml.
12990 * i387-fp.c (num_avx512_k_registers): New constant for number
12992 (num_avx512_zmmh_low_registers): New constant for number of
12993 lower ZMM registers (0-15).
12994 (num_avx512_zmmh_high_registers): New constant for number of
12995 higher ZMM registers (16-31).
12996 (num_avx512_ymmh_registers): New contant for number of higher
12997 YMM registers (ymm16-31 added by avx521 on x86_64).
12998 (num_avx512_xmm_registers): New constant for number of higher
12999 XMM registers (xmm16-31 added by AVX512 on x86_64).
13000 (struct i387_xsave): Add space for AVX512 registers.
13001 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13002 Add code to handle AVX512 registers.
13003 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13004 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13005 prototypei from generated file.
13006 (tdesc_amd64_avx512_linux): Likewise.
13007 (init_registers_x32_avx512_linux): Likewise.
13008 (tdesc_x32_avx512_linux): Likewise.
13009 (init_registers_i386_avx512_linux): Likewise.
13010 (tdesc_i386_avx512_linux): Likewise.
13011 (x86_64_regmap): Add AVX512 registers.
13012 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13014 (initialize_low_arch): Add code to initialize AVX512 registers.
13016 2014-04-23 Pedro Alves <palves@redhat.com>
13018 * mem-break.c (find_gdb_breakpoint_at): Make static.
13019 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13021 2014-04-23 Pedro Alves <palves@redhat.com>
13023 * i386-low.c: Don't include break-common.h here.
13024 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13025 prototype to take target_hw_bp_type as argument instead of a Z
13027 * i386-low.h: Include break-common.h here.
13028 (Z_packet_to_hw_type): Declare.
13029 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13031 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13032 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13033 (x86_remove_point): Convert the packet number to a
13034 target_hw_bp_type before calling i386_low_remove_watchpoint.
13035 * win32-i386-low.c (i386_insert_point): Convert the packet number
13036 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13037 (i386_remove_point): Convert the packet number to a
13038 target_hw_bp_type before calling i386_low_remove_watchpoint.
13040 2014-04-23 Pedro Alves <palves@redhat.com>
13042 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13044 2014-04-10 Pedro Alves <palves@redhat.com>
13046 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13047 Check if the condition or command is NULL before checking if the
13048 breakpoint is known. On success, return true.
13049 * mem-break.h (add_breakpoint_condition): Document return.
13050 (add_breakpoint_commands): Add describing comment.
13051 * server.c (skip_to_semicolon): New function.
13052 (process_point_options): Use it.
13054 2014-04-09 Pedro Alves <palves@redhat.com>
13056 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13059 2014-02-27 Pedro Alves <palves@redhat.com>
13062 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13064 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13066 (last_thread_of_process_p): Take a PID argument instead of a
13068 (linux_wait_for_lwp): Delete.
13069 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13071 (linux_low_filter_event): New function, party factored out from
13072 linux_wait_for_event.
13073 (linux_wait_for_event): Rename to ...
13074 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13075 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13076 sigsuspend. Check for zombie leaders.
13077 (linux_wait_for_event): Reimplement as wrapper around
13078 linux_wait_for_event_filtered.
13079 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13080 a normal or signal exit is seen, it's the whole process exiting.
13081 (wait_for_sigstop): No longer a for_each_inferior callback.
13082 Rewrite on top of linux_wait_for_event_filtered.
13083 (stop_all_lwps): Call wait_for_sigstop directly.
13084 * server.c (resume, handle_target_event): Handle
13085 TARGET_WAITKIND_NO_RESUMED.
13087 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13089 * win32-low.c (psapi_get_dll_name,
13090 * win32_CreateToolhelp32Snapshot): Delete.
13091 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13092 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13094 (handle_load_dll): Add function description.
13095 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13097 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13099 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13101 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13102 base address when calling win32_add_one_solib.
13103 (handle_load_dll): Delete local variable load_addr.
13104 Remove 0x1000 offset applied to DLL base address when calling
13105 win32_add_one_solib.
13106 (handle_unload_dll): Add comment.
13108 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13110 * win32-low.c (win32_add_all_dlls): Renames
13111 win32_ensure_ntdll_loaded. Rewrite function documentation.
13112 Adjust implementation to always load all DLLs.
13113 Add 0x1000 offset to DLL base address when calling
13114 win32_add_one_solib.
13115 (child_initialization_done): New static global.
13116 (do_initial_child_stuff): Set child_initialization_done to
13117 zero during child initialization, and 1 after. Replace call
13118 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13120 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13121 (handle_unload_dll): Add function documentation.
13122 (get_child_debug_event): Ignore load and unload DLL events
13123 during child initialization.
13125 2014-02-20 Doug Evans <dje@google.com>
13127 Remove global all_lwps.
13128 * inferiors.h (ptid_of): Move here from linux-low.h.
13129 (pid_of, lwpid_of): Ditto.
13130 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13131 parameter is a struct thread_info * now.
13132 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13133 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13134 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13136 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13137 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13138 * linux-arm-low.c (update_registers_callback): Update, "entry"
13139 parameter is a struct thread_info * now.
13140 Fetch lwpid from current_inferior directly.
13141 (arm_insert_point): Pass &all_threads to find_inferior instead of
13143 (arm_remove_point): Ditto.
13144 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13145 (arm_prepare_to_resume): Fetch pid from thread.
13146 (arm_read_description): Fetch lwpid from current_inferior directly.
13147 * linux-low.c (all_lwps): Delete.
13148 (delete_lwp): Delete call to remove_inferior.
13149 (handle_extended_wait): Fetch lwpid from thread.
13150 (add_lwp): Don't set lwp->entry.id. Remove call to
13151 add_inferior_to_list.
13152 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13153 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13154 (kill_one_lwp_callback): Ditto.
13155 (linux_kill): Don't dereference NULL pointer.
13156 Fetch ptid,lwpid from thread.
13157 (get_detach_signal): Fetch ptid from thread.
13158 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13159 Simplify call to regcache_invalidate_thread.
13160 (delete_lwp_callback): Update, "entry" parameter is a
13161 struct thread_info * now. Fetch pid from thread.
13162 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13163 (status_pending_p_callback): Update, "entry" parameter is a
13164 struct thread_info * now. Fetch ptid from thread.
13165 (find_lwp_pid): Update, "entry" parameter is a
13166 struct thread_info * now.
13167 (linux_wait_for_lwp): Fetch pid from thread.
13168 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13169 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13170 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13171 (dequeue_one_deferred_signal): Ditto.
13172 (cancel_breakpoint): Fetch ptid from current_inferior.
13173 (linux_wait_for_event): Pass &all_threads to find_inferior,
13174 not &all_lwps. Fetch ptid, lwpid from thread.
13175 (count_events_callback): Update, "entry" parameter is a
13176 struct thread_info * now.
13177 (select_singlestep_lwp_callback): Ditto.
13178 (select_event_lwp_callback): Ditto.
13179 (cancel_breakpoints_callback): Ditto.
13180 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13182 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13183 (unsuspend_one_lwp): Update, "entry" parameter is a
13184 struct thread_info * now.
13185 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13187 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13188 Fetch lwpid from thread, not lwp.
13189 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13190 Pass &all_threads to find_inferior, not &all_lwps.
13191 (send_sigstop): Fetch lwpid from thread, not lwp.
13192 (send_sigstop_callback): Update, "entry" parameter is a
13193 struct thread_info * now.
13194 (suspend_and_send_sigstop_callback): Ditto.
13195 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13196 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13197 struct thread_info * now.
13198 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13200 (lwp_running): Update, "entry" parameter is a
13201 struct thread_info * now.
13202 (stop_all_lwps): Fetch ptid from thread.
13203 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13204 (linux_resume_one_lwp): Fetch lwpid from thread.
13205 (linux_set_resume_request): Update, "entry" parameter is a
13206 struct thread_info * now. Fetch pid, lwpid from thread.
13207 (resume_status_pending_p): Update, "entry" parameter is a
13208 struct thread_info * now.
13209 (need_step_over_p): Ditto. Fetch lwpid from thread.
13210 (start_step_over): Fetch lwpid from thread.
13211 (linux_resume_one_thread): Update, "entry" parameter is a
13212 struct thread_info * now. Fetch lwpid from thread.
13213 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13214 (proceed_one_lwp): Update, "entry" parameter is a
13215 struct thread_info * now. Fetch lwpid from thread.
13216 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13217 struct thread_info * now.
13218 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13219 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13220 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13222 (regsets_store_inferior_registers): Ditto.
13223 (fetch_register, store_register): Ditto.
13224 (linux_read_memory, linux_write_memory): Ditto.
13225 (linux_request_interrupt): Ditto.
13226 (linux_read_auxv): Ditto.
13227 (linux_xfer_siginfo): Ditto.
13228 (linux_qxfer_spu): Ditto.
13229 (linux_qxfer_libraries_svr4): Ditto.
13230 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13231 moved to inferiors.h.
13233 (get_thread_lwp): Update.
13234 (struct lwp_info): Delete member "entry". Simplify comment for
13236 (all_lwps): Delete.
13237 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13238 current_inferior directly.
13239 (update_watch_registers_callback): Update, "entry" parameter is a
13240 struct thread_info * now. Fetch pid from thread.
13241 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13242 (mips_insert_point): Fetch lwpid from current_inferior.
13243 Pass &all_threads to find_inferior, not &all_lwps.
13244 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13245 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13247 (mips_stopped_data_address): Ditto.
13248 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13250 * linux-tile-low.c (tile_arch_setup): Ditto.
13251 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13252 (update_debug_registers_callback): Update, "entry" parameter is a
13253 struct thread_info * now. Fetch pid from thread.
13254 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13255 Pass &all_threads to find_inferior, not &all_lwps.
13256 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13257 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13258 Pass &all_threads to find_inferior, not &all_lwps.
13259 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13260 (i386_dr_low_get_status): Ditto.
13261 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13262 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13263 (x86_linux_read_description): Ditto.
13264 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13266 2014-02-20 Doug Evans <dje@google.com>
13268 * inferiors.c (get_first_inferior): Fix buglet.
13270 2014-02-19 Doug Evans <dje@google.com>
13272 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13273 * inferiors.c (add_thread): Change result type to struct thread_info *.
13274 All callers updated.
13275 (add_lwp): Call add_thread here instead of in callers.
13276 All callers updated.
13277 * linux-low.h (get_lwp_thread): Rewrite.
13278 (struct lwp_info): New member "thread".
13280 2014-02-19 Doug Evans <dje@google.com>
13282 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13283 All callers updated.
13285 2014-02-19 Doug Evans <dje@google.com>
13287 * inferiors.c (add_thread): Fix whitespace.
13289 2014-02-19 Doug Evans <dje@google.com>
13291 * dll.c (clear_dlls): Replace accessing list implemention details
13293 * gdbthread.h (get_first_thread): Declare.
13294 * inferiors.c (for_each_inferior_with_data): New function.
13295 (get_first_thread): New function.
13296 (find_thread_ptid): Simplify.
13297 (get_first_inferior): New function.
13298 (clear_list): Delete.
13299 (one_inferior_p): New function.
13300 (clear_inferior_list): New function.
13301 (clear_inferiors): Update.
13302 * inferiors.h (for_each_inferior_with_data): Declare.
13303 (clear_inferior_list): Declare.
13304 (one_inferior_p): Declare.
13305 (get_first_inferior): Declare.
13306 * linux-low.c (linux_wait_for_event): Replace accessing list
13307 implemention details with API function.
13308 * server.c (target_running): Ditto.
13309 (accumulate_file_name_length): New function.
13310 (emit_dll_description): New function.
13311 (handle_qxfer_libraries): Replace accessing list implemention
13312 details with API function.
13313 (handle_qxfer_threads_worker): New function.
13314 (handle_qxfer_threads_proper): Replace accessing list implemention
13315 details with API function.
13316 (handle_query): Ditto.
13317 (visit_actioned_threads_callback_ftype): New typedef.
13318 (visit_actioned_threads_data): New struct.
13319 (visit_actioned_threads): Rewrite to be find_inferior callback.
13320 (resume): Call find_inferior.
13321 (handle_status): Replace accessing list implemention
13322 details with API function.
13323 (process_serial_event): Replace accessing list implemention details
13325 * target.c (set_desired_inferior): Replace accessing list implemention
13326 details with API function.
13327 * tracepoint.c (same_process_p): New function.
13328 (gdb_agent_about_to_close): Replace accessing list implemention
13329 details with API function.
13330 * win32-low.c (child_delete_thread): Replace accessing list
13331 implemention details with API function.
13332 (match_dll_by_basename): New function.
13333 (dll_is_loaded_by_basename): New function.
13334 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13335 details call to dll_is_loaded_by_basename.
13337 2014-02-19 Doug Evans <dje@google.com>
13339 * dll.h (struct dll_info): Add comment.
13340 * gdbthread.h (struct thread_info): Add comment.
13341 (current_ptid): Simplify.
13342 * inferiors.c (add_process): Update.
13343 (remove_process): Update.
13344 * inferiors.h (struct process_info): Rename member "head" to "entry".
13345 * linux-low.c (delete_lwp): Update.
13347 (last_thread_of_process_p): Update.
13348 (kill_one_lwp_callback, linux_kill): Update.
13349 (status_pending_p_callback): Update.
13350 (wait_for_sigstop): Update. Simplify read of ptid.
13351 (start_step_over): Update.
13352 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13353 (get_lwp_thread): Update.
13354 (struct lwp_info): Rename member "head" to "entry".
13355 * regcache.h (inferior_list_entry): Delete.
13356 * server.c (kill_inferior_callback): Update.
13357 (detach_or_kill_inferior_callback): Update.
13358 (print_started_pid): Update.
13359 (print_attached_pid): Update.
13360 (process_serial_event): Simplify read of ptid.
13361 * thread-db.c (thread_db_create_event): Update.
13362 (thread_db_get_tls_address): Update.
13363 * win32-low.c (current_inferior_ptid): Simplify.
13365 2014-02-19 Tom Tromey <tromey@redhat.com>
13367 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13369 (target_supports_btrace): Update.
13371 2014-02-14 Yao Qi <yao@codesourcery.com>
13373 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13374 (rsp-low-ipa.o): New target.
13376 2014-02-12 Tom Tromey <tromey@redhat.com>
13378 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13379 convert_ascii_to_int.
13380 * regcache.c (registers_to_string): Likewise.
13381 * remote-utils.c (decode_M_packet): Likewise.
13382 * server.c (process_serial_event): Likewise.
13384 2014-02-12 Tom Tromey <tromey@redhat.com>
13386 * server.c (handle_query, handle_v_run): Use hex2bin, not
13388 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13390 2014-02-12 Tom Tromey <tromey@redhat.com>
13392 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13393 convert_int_to_ascii.
13394 * regcache.c (registers_to_string, collect_register_as_string):
13396 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13398 * server.c (process_serial_event): Likewise.
13399 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13400 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13402 2014-02-12 Tom Tromey <tromey@redhat.com>
13404 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13405 bin2hex, not hexify.
13406 * tracepoint.c (cmd_qtstatus): Likewise.
13408 2014-02-12 Tom Tromey <tromey@redhat.com>
13410 * remote-utils.c (monitor_output): Pass explicit length to
13413 2014-02-12 Tom Tromey <tromey@redhat.com>
13415 * tracepoint.c: Include rsp-low.h.
13416 * server.c: Include rsp-low.h.
13417 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13418 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13420 * remote-utils.c: Include rsp-low.h.
13421 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13422 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13423 (convert_int_to_ascii, convert_ascii_to_int): Move to
13425 * regcache.c: Include rsp-low.h.
13426 * ax.c: Include rsp-low.h.
13427 * Makefile.in (SFILES): Add common/rsp-low.c.
13428 (OBS): Add rsp-low.o.
13429 (rsp-low.o): New target.
13431 2014-02-12 Tom Tromey <tromey@redhat.com>
13433 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13434 Include print-utils.h.
13435 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13436 (plongest, thirty_two, phex_nz): Remove.
13437 * Makefile.in (SFILES): Add common/print-utils.c.
13438 (OBS): Add print-utils.o.
13439 (print-utils-ipa.o): New target.
13440 (print-utils.o): New target.
13441 (IPA_OBJS): Add print-utils-ipa.o.
13443 2014-02-06 Tom Tromey <tromey@redhat.com>
13445 * Makefile.in (SFILES): Fix indentation.
13447 2014-02-05 Doug Evans <dje@google.com>
13449 * linux-low.c (linux_wait_for_event): Improve comment.
13450 (linux_wait_1): Keep current_inferior in sync with event_child.
13452 2014-01-22 Doug Evans <dje@google.com>
13454 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13456 2014-01-22 Doug Evans <dje@google.com>
13458 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13459 * configure: Regenerate.
13460 * config.in: Regenerate.
13461 * Makefile.in (SFILES): Add debug.c.
13462 (OBS): Add debug.o.
13463 * debug.c: New file.
13464 * debug.h: New file.
13465 * linux-aarch64-low.c (*): Update all debugging printfs to use
13466 debug_printf instead of fprintf.
13467 * linux-arm-low.c (*): Ditto.
13468 * linux-cris-low.c (*): Ditto.
13469 * linux-crisv32-low.c (*): Ditto.
13470 * linux-m32r-low.c (*): Ditto.
13471 * linux-sparc-low.c (*): Ditto.
13472 * linux-x86.c (*): Ditto.
13473 * linux-low.c (*): Ditto.
13474 (linux_wait_1): Add calls to debug_enter, debug_exit.
13475 (linux_wait): Remove redundant debugging printf.
13476 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13477 (linux_resume, unstop_all_lwps): Ditto.
13478 * mem-break.c (*): Update all debugging printfs to use
13479 debug_printf instead of fprintf.
13480 * remote-utils.c (*): Ditto.
13481 * thread-db.c (*): Ditto.
13482 * server.c #include <ctype.h>, "gdb_vecs.h".
13483 (debug_threads): Moved to debug.c.
13484 (*): Update all debugging printfs to use debug_printf instead of
13486 (start_inferior): Replace call to fflush with call to debug_flush.
13487 (monitor_show_help): Mention set debug-format.
13488 (parse_debug_format_options): New function.
13489 (handle_monitor_command): Handle "monitor set debug-format".
13490 (gdbserver_usage): Mention --debug-format.
13491 (main): Parse --debug-format.
13492 * server.h (debug_threads): Declaration moved to debug.h.
13493 #include "debug.h".
13494 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13495 trace_debug_1 that uses debug_printf.
13496 (tracepoint_look_up_symbols): Update all debugging printfs to use
13497 debug_printf instead of fprintf.
13499 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13501 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13504 2014-01-17 Pedro Alves <palves@redhat.com>
13507 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13508 defined after including gdb_proc_service.h.
13510 2014-01-16 Doug Evans <dje@google.com>
13512 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13513 (match_dll): Use it.
13515 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13517 * target.h (target_ops) <read_btrace>: Change parameters and
13518 return type to allow error reporting.
13519 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13520 trace reading errors on.
13521 * linux-low.c (linux_low_read_btrace): Pass trace reading
13523 (linux_low_disable_btrace): New.
13525 2014-01-15 Doug Evans <dje@google.com>
13527 * inferiors.c (thread_id_to_gdb_id): Delete.
13528 * inferiors.h (thread_id_to_gdb_id): Delete.
13530 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13532 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13533 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13536 2014-01-08 Pedro Alves <palves@redhat.com>
13538 * server.c (handle_status): Don't discard previous queued stop
13539 replies or thread's pending status here.
13540 (main) <disconnection>: Do it here instead.
13542 2014-01-08 Pedro Alves <palves@redhat.com>
13544 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13545 * server.c (visit_actioned_threads, handle_pending_status): New
13547 (handle_v_cont): Factor out parts to ...
13548 (resume): ... this new function. If in all-stop, and a thread
13549 being resumed has a pending status, report it without actually
13551 (myresume): Adjust to use the new 'resume' function.
13552 (clear_pending_status_callback, set_pending_status_callback)
13553 (find_status_pending_thread_callback): New functions.
13554 (handle_status): Handle the case of multiple threads having
13555 interesting statuses to report. Report threads' real last signal
13556 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13557 with an interesting thread to report the status for, instead of
13558 always reporting the status of the first thread.
13560 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13562 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13563 * gdbreplay.c (gdbreplay_version): Likewise.
13565 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13567 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13568 iov.iov_len with the real length in use.
13570 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13572 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13573 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13574 for all targets that use win32-low.c.
13575 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13576 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13578 2013-12-13 Pedro Alves <palves@redhat.com>
13580 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13581 if equal to TARGET_WAITKIND_LOADED.
13582 * win32-low.c (cached_status): New static global.
13583 (win32_wait): Add declaration.
13584 (do_initial_child_stuff): Flush all initial pending debug events
13585 up to the initial breakpoint.
13586 (win32_wait): If CACHED_STATUS was set, return that instead
13587 of doing a real wait. Remove the code resuming the execution
13588 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13589 during the initial phase. Also remove the code changing
13590 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13591 TARGET_WAITKIND_STOPPED.
13593 2013-12-11 Yao Qi <yao@codesourcery.com>
13595 * notif.c (handle_notif_ack): Return 0 if no notification
13598 2013-11-20 Doug Evans <dje@google.com>
13600 * linux-low.c (linux_set_resume_request): Fix comment.
13602 2013-11-20 Doug Evans <dje@google.com>
13604 * linux-low.c (resume_status_pending_p): Tweak comment.
13606 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13608 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13609 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13610 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13611 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13612 (srv_amd64_regobj): Add amd64-mpx.o.
13613 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13614 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13615 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13616 * i387-fp.c (num_pl_bnd_register) Added constant.
13617 (num_pl_bnd_cfg_registers) Added constant.
13618 (struct i387_xsave) Added reserved area and MPX fields.
13619 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13620 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13622 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13623 (init_registers_amd64_mpx_linux): Declare new function.
13624 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13625 (x86_64_regmap): Add MPX registers.
13626 (x86_linux_read_description): Add MPX case.
13627 (initialize_low_arch): Initialize MPX targets.
13629 2013-11-18 Tom Tromey <tromey@redhat.com>
13631 * configure: Rebuild.
13632 * configure.ac: Don't check for stdlib.h.
13633 * gdbreplay.c: Unconditionally include stdlib.h.
13635 2013-11-18 Tom Tromey <tromey@redhat.com>
13637 * config.in: Rebuild.
13638 * configure: Rebuild.
13639 * configure.ac: Don't use AC_HEADER_DIRENT.
13641 2013-11-18 Tom Tromey <tromey@redhat.com>
13643 * server.h: Don't check HAVE_STRING_H.
13644 * gdbreplay.c: Don't check HAVE_STRING_H.
13645 * configure: Rebuild.
13647 2013-11-18 Tom Tromey <tromey@redhat.com>
13649 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13652 2013-11-08 Tom Tromey <tromey@redhat.com>
13654 * configure, config.in: Rebuild.
13655 * configure.ac: Remove unused configury.
13657 2013-11-08 Tom Tromey <tromey@redhat.com>
13659 * acinclude.m4: Include common.m4, codeset.m4.
13660 * configure, config.in: Rebuild.
13661 * configure.ac: Use GDB_AC_COMMON.
13663 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13665 * linux-s390-low.c (HWCAP_S390_TE): New define.
13666 (s390_arch_setup): Consider the TE field in the HWCAP for
13667 determining 'have_regset_tdb'.
13669 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13672 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13675 2013-10-02 Pedro Alves <palves@redhat.com>
13677 * server.c (process_serial_event): Don't output "GDBserver
13678 exiting" if GDB is connected through stdio.
13679 * target.c (mywait): Likewise, be silent if GDB is connected
13682 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13684 * lynx-low.c (lynx_add_threads_after_attach): New function.
13685 (lynx_attach): Remove call to add_thread. Add call to
13686 lynx_add_threads_after_attach instead.
13688 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13690 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13691 * config.in, configure: Regenerated.
13693 2013-09-18 Yao Qi <yao@codesourcery.com>
13696 * server.c (start_inferior): Clear 'resume_info'.
13698 2013-09-16 Jiong Wang <jiwang@tilera.com>
13700 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13703 2013-09-16 Jiong Wang <jiwang@tilera.com>
13705 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13706 linux-tile-low.o to srv_tgtobj.
13708 2013-09-16 Will Newton <will.newton@linaro.org>
13710 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13713 2013-09-06 Pedro Alves <palves@redhat.com>
13715 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13716 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13717 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13718 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13719 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13720 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13722 2013-09-06 Pedro Alves <palves@redhat.com>
13724 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13725 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13727 2013-09-06 Pedro Alves <palves@redhat.com>
13729 * linux-amd64-ipa.c: Include tracepoint.h.
13730 * linux-i386-ipa.c: Include tracepoint.h.
13732 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13734 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13735 (ps_get_thread_area): New function.
13737 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13739 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13740 (initialize_low_arch): Call init_registers_crisv32 rather than
13741 init_register_crisv32.
13743 2013-09-05 Pedro Alves <palves@redhat.com>
13745 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13747 * hostio.h: ... this new file.
13748 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13749 win32-low.c: Include hostio.h.
13751 2013-09-05 Pedro Alves <palves@redhat.com>
13753 * server.h (gdb_client_data, handler_func, callback_handler_func)
13754 (delete_file_handler, add_file_handler, append_callback_event)
13755 (delete_callback_event, start_event_loop, initialize_event_loop):
13756 Move to event-loop.h and include it.
13757 * event-loop.h: New file.
13759 2013-09-05 Pedro Alves <palves@redhat.com>
13761 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13762 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13763 (loaded_dll, unloaded_dll): Move to ...
13764 * dll.h: ... this new file.
13765 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13767 2013-09-05 Pedro Alves <palves@redhat.com>
13769 * server.h (current_process, get_thread_process, all_processes)
13770 (add_inferior_to_list, for_each_inferior, current_inferior)
13771 (remove_inferior, add_process, remove_process, find_process_pid)
13772 (have_started_inferiors_p, have_attached_inferiors_p)
13773 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13774 (clear_inferiors, find_inferior, find_inferior_id)
13775 (inferior_target_data, set_inferior_target_data)
13776 (inferior_regcache_data, set_inferior_regcache_data): Move to
13777 inferiors.h, and include it.
13778 * inferiors.h: New file.
13780 2013-09-05 Pedro Alves <palves@redhat.com>
13782 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13786 2013-09-05 Pedro Alves <palves@redhat.com>
13788 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13790 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13791 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13792 (handle_tracepoint_general_set, handle_tracepoint_query)
13793 (tracepoint_finished_step, tracepoint_was_hit)
13794 (release_while_stepping_state_list, current_traceframe)
13795 (in_readonly_region, traceframe_read_mem)
13796 (fetch_traceframe_registers, traceframe_read_sdata)
13797 (traceframe_read_info, struct fast_tpoint_collect_status)
13798 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13799 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13800 (supply_fast_tracepoint_registers)
13801 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13802 (ipa_tdesc, claim_trampoline_space)
13803 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13804 (agent_mem_read, agent_get_trace_state_variable_value)
13805 (agent_set_trace_state_variable_value, agent_tsv_read)
13806 (agent_mem_read_string, get_raw_reg_func_addr)
13807 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13808 * tracepoint.h: ... this new file.
13810 2013-09-05 Pedro Alves <palves@redhat.com>
13812 * server.h (perror_with_name, error, fatal, warning, paddress)
13813 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13815 * utils.h: New file.
13817 2013-09-05 Pedro Alves <palves@redhat.com>
13819 * server.h (remote_debug, noack_mode, transport_is_reliable)
13820 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13821 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13822 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13823 (write_enn, initialize_async_io, enable_async_io)
13824 (disable_async_io, check_remote_input_interrupt_request)
13825 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13826 (dead_thread_notify, prepare_resume_reply)
13827 (decode_address_to_semicolon, decode_address, decode_m_packet)
13828 (decode_M_packet, decode_X_packet, decode_xfer_write)
13829 (decode_search_memory_packet, unhexify, hexify)
13830 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13831 (look_up_one_symbol, relocate_instruction)
13832 (monitor_output): Move to remote-utils.h, and include it.
13833 * remote-utils.h: New file.
13835 2013-09-05 Pedro Alves <palves@redhat.com>
13837 * server.h (_): Delete.
13839 2013-09-02 Pedro Alves <palves@redhat.com>
13841 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13842 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13844 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13846 2013-09-02 Pierre Muller <muller@sourceware.org>
13848 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13849 or WriteProcessMemory complete successfully and handle
13850 ERROR_PARTIAL_COPY error.
13852 2013-09-02 Pedro Alves <palves@redhat.com>
13854 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13855 error instead of EIO.
13857 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13860 * linux-low.c: Include filestuff.h.
13861 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13862 * lynx-low.c: Include filestuff.h.
13863 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13864 * server.c: Include filestuff.h.
13865 (main): Call notice_open_fds.
13866 * spu-low.c: Include filestuff.h.
13867 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13869 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13871 * Makefile.in: Explain why ../target and ../nat are not
13872 listed as include file search paths.
13873 (linux-waitpid.o): New object file rule.
13874 * configure.srv (srv_native_linux_obj): New variable.
13875 Replace all occurrences of linux native object files with
13876 $srv_native_linux_obj.
13877 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13878 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13879 (linux_enable_event_reporting): Remove declaration.
13880 (my_waitpid): Moved to common/linux-waitpid.c.
13881 (linux_wait_for_event): Pass ptid when calling
13882 linux_enable_event_reporting.
13883 (linux_supports_tracefork_flag): Remove.
13884 (linux_enable_event_reporting): Likewise.
13885 (linux_tracefork_grandchild): Remove.
13886 (STACK_SIZE): Moved to common/linux-ptrace.c.
13887 (linux_tracefork_child): Remove.
13888 (linux_test_for_tracefork): Remove.
13889 (linux_look_up_symbols): Call linux_supports_traceclone.
13890 (initialize_low): Remove call to linux_test_for_tracefork.
13891 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13892 common/linux-ptrace.h.
13893 (PTRACE_TYPE_ARG4): Likewise.
13894 Include linux-ptrace.h.
13896 2013-08-21 Pedro Alves <palves@redhat.com>
13898 * config.in: Renegerate.
13900 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13902 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13903 (SFILES): Remove $(srcdir)/common/target-common.c and
13904 add $(srcdir)/target/waitstatus.c.
13905 (OBS): Remove target-common.o and add waitstatus.o.
13906 (server_h): Remove $(srcdir)/../common/target-common.h and
13907 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13908 and $(srcdir)/../target/waitstatus.h.
13909 (target-common.o): Remove.
13910 (waitstatus.o): New target object file.
13911 * target.h: Do not include target-common.h and
13912 include target/resume.h, target/wait.h and
13913 target/waitstatus.h.
13915 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13917 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13918 to PTRACE_TYPE_ARG3.
13919 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13920 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13922 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13923 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13925 2013-07-27 Jie Zhang <jie@codesourcery.com>
13926 Daniel Jacobowitz <dan@codesourcery.com>
13927 Yao Qi <yao@codesourcery.com>
13929 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13930 (mips-linux-watch.o): New rule.
13931 (mips_linux_watch_h): New variable.
13932 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13934 * linux-mips-low.c: Include mips-linux-watch.h.
13935 (struct arch_process_info, struct arch_lwp_info): New.
13936 (update_watch_registers_callback): New function.
13937 (mips_linux_new_process, mips_linux_new_thread) New functions.
13938 (mips_linux_prepare_to_resume, mips_insert_point): New
13940 (mips_remove_point, mips_stopped_by_watchpoint): New
13942 (rsp_bp_type_to_target_hw_bp_type): New function.
13943 (mips_stopped_data_address): New function.
13944 (the_low_target): Add watchpoint support functions.
13946 2013-07-27 Yao Qi <yao@codesourcery.com>
13948 * i386-low.c: Include break-common.h.
13949 (enum target_hw_bp_type): Remove.
13951 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13953 * Makefile.in (SFILES): /common/target-common.c.
13954 (OBS): Add target-common.o.
13955 (server_h): Add $(srcdir)/../common/target-common.h.
13956 (target-common.o): New target.
13957 * server.c (queue_stop_reply_callback): Free
13958 status string after use.
13959 * target.c (target_waitstatus_to_string): Remove.
13960 * target.h: Include target-common.h.
13961 (resume_kind): Likewise.
13962 (target_waitkind): Likewise.
13963 (target_waitstatus): Likewise.
13964 (TARGET_WNOHANG): Likewise.
13966 2013-07-04 Yao Qi <yao@codesourcery.com>
13968 * Makefile.in (host_alias): Use @host_noncanonical@.
13969 (target_alias): Use @target_noncanonical@.
13970 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13971 ACX_NONCANONICAL_HOST.
13972 * configure: Regenerated.
13975 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13977 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13978 * configure: Rebuild.
13979 * Makefile.in (version_host, version_target): Get from configure.
13980 (version.c): Use $(version_host) and $(version_target).
13982 2013-07-03 Pedro Alves <palves@redhat.com>
13984 * Makefile.in (config.status): Depend on development.sh.
13985 * acinclude.m4: Include libmcheck.m4.
13986 * configure: Regenerate.
13988 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13990 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13991 attribute inside the parentheses.
13992 (winapi_DebugSetProcessKillOnExit): Ditto.
13993 (winapi_DebugBreakProcess): Ditto.
13994 (winapi_GenerateConsoleCtrlEvent): Ditto.
13996 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13998 * notif.h (notif_event): Add a dummy member to avoid compiler
14001 2013-07-01 Pedro Alves <palves@redhat.com>
14003 * hostio.c (HOSTIO_PATH_MAX): Define.
14004 (require_filename, handle_open, handle_unlink, handle_readlink):
14007 2013-07-01 Pedro Alves <palves@redhat.com>
14009 * server.h: Include "pathmax.h".
14010 * linux-low.c: Don't include sys/param.h.
14011 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14013 * win32-low.c: Don't include sys/param.h.
14014 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14016 2013-07-01 Pedro Alves <palves@redhat.com>
14018 * event-loop.c: Don't check HAVE_UNISTD_H before including
14020 * gdbreplay.c: Likewise.
14021 * remote-utils.c: Likewise.
14022 * server.c: Likewise.
14023 * configure.ac: Don't check for unistd.h.
14024 * configure: Regenerate.
14026 2013-06-28 Tom Tromey <tromey@redhat.com>
14028 * Makefile.in (version.c): Use version.in, not
14031 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14033 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14034 * configure: Rebuild.
14035 * Makefile.in (version_host, version_target): Get from configure.
14036 (version.c): Use $(version_host) and $(version_target).
14038 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14040 Fix trace-status to output user name without trailing colon.
14041 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14043 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14045 Fix trace-status to output proper start-time and stop-time.
14046 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14047 output start time and stop time in hex as gdb expects.
14049 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14051 * tracepoint.c (build_traceframe_info_xml): Output trace state
14052 variables present in the trace buffer.
14054 2013-06-24 Tom Tromey <tromey@redhat.com>
14056 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14058 (version.o): Remove.
14059 * gdbreplay.c: Include version.h.
14060 (version, host_name): Don't declare.
14061 * server.h: Include version.h.
14062 (version, host_name): Don't declare.
14064 2013-06-12 Pedro Alves <palves@redhat.com>
14066 * linux-x86-low.c (linux_is_elf64): Delete global.
14067 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14068 with local linux_pid_exe_is_elf_64_file use.
14070 2013-06-11 Pedro Alves <palves@redhat.com>
14072 * linux-low.c (regset_disabled, disable_regset): New functions.
14073 (regsets_fetch_inferior_registers)
14074 (regsets_store_inferior_registers): Use them.
14075 (initialize_regsets_info); Don't allocate the disabled_regsets
14077 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14080 2013-06-11 Pedro Alves <palves@redhat.com>
14082 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14085 2013-06-11 Pedro Alves <palves@redhat.com>
14087 * linux-x86-low.c (initialize_low_arch): Call
14088 init_registers_x32_avx_linux.
14090 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14092 Fix compatibility with Android Bionic.
14093 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14096 2013-06-07 Pedro Alves <palves@redhat.com>
14099 * Makefile.in (OBS): Add tdesc.o.
14100 (IPA_OBJS): Add tdesc-ipa.o.
14101 (tdesc-ipa.o): New rule.
14102 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14104 * linux-low.c (new_inferior): Delete.
14105 (disabled_regsets, num_regsets): Delete.
14106 (linux_add_process): Adjust to set the new per-process
14108 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14109 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14110 was a stop. When calling arch_setup, switch the current inferior
14111 to the thread that got an event.
14112 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14113 (regsets_fetch_inferior_registers)
14114 (regsets_store_inferior_registers): New regsets_info parameter.
14116 (linux_register_in_regsets): New regs_info parameter. Adjust to
14118 (register_addr, fetch_register, store_register): New usrregs_info
14119 parameter. Adjust to use it.
14120 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14121 parameter regs_info. Adjust to use it.
14122 (linux_fetch_registers): Get the current inferior's regs_info, and
14124 (linux_store_registers): Ditto.
14125 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14126 (initialize_low): Don't initialize the target_regsets here. Call
14127 initialize_low_arch.
14128 * linux-low.h (target_regsets): Delete declaration.
14129 (struct regsets_info): New.
14130 (struct usrregs_info): New.
14131 (struct regs_info): New.
14132 (struct process_info_private) <new_inferior>: New field.
14133 (struct linux_target_ops): Delete the num_regs, regmap, and
14134 regset_bitmap fields. New field regs_info.
14135 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14136 * i387-fp.c (num_xmm_registers): Delete.
14137 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14138 calls to new interface.
14139 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14140 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14141 Infer the number of xmm registers from the regcache's target
14143 * i387-fp.h (num_xmm_registers): Delete.
14144 * inferiors.c (add_thread): Don't install the thread's regcache
14146 * proc-service.c (gregset_info): Fetch the current inferior's
14147 regs_info. Adjust to use it.
14148 * regcache.c: Include tdesc.h.
14149 (register_bytes, reg_defs, num_registers)
14150 (gdbserver_expedite_regs): Delete.
14151 (get_thread_regcache): If the thread doesn't have a regcache yet,
14152 create one, instead of aborting gdbserver.
14153 (regcache_invalidate_one): Rename to ...
14154 (regcache_invalidate_thread): ... this.
14155 (regcache_invalidate_one): New.
14156 (regcache_invalidate): Only invalidate registers of the current
14158 (init_register_cache): Add target_desc parameter, and use it.
14159 (new_register_cache): Ditto. Assert the target description has a
14160 non zero registers_size.
14161 (regcache_cpy): Add assertions. Adjust.
14162 (realloc_register_cache, set_register_cache): Delete.
14163 (registers_to_string, registers_from_string): Adjust.
14164 (find_register_by_name, find_regno, find_register_by_number)
14165 (register_cache_size): Add target_desc parameter, and use it.
14166 (free_register_cache_thread, free_register_cache_thread_one)
14167 (regcache_release, register_cache_size): New.
14168 (register_size): Add target_desc parameter, and use it.
14169 (register_data, supply_register, supply_register_zeroed)
14170 (supply_regblock, supply_register_by_name, collect_register)
14171 (collect_register_as_string, collect_register_by_name): Adjust.
14172 * regcache.h (struct target_desc): Forward declare.
14173 (struct regcache) <tdesc>: New field.
14174 (init_register_cache, new_register_cache): Add target_desc
14176 (regcache_invalidate_thread): Declare.
14177 (regcache_invalidate_one): Delete declaration.
14178 (regcache_release): Declare.
14179 (find_register_by_number, register_cache_size, register_size)
14180 (find_regno): Add target_desc parameter.
14181 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14183 * remote-utils.c: Include tdesc.h.
14184 (outreg, prepare_resume_reply): Adjust.
14185 * server.c: Include tdesc.h.
14186 (gdbserver_xmltarget): Delete declaration.
14187 (get_features_xml, process_serial_event): Adjust.
14188 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14190 (struct process_info) <tdesc>: New field.
14191 (ipa_tdesc): Declare.
14192 * tdesc.c: New file.
14193 * tdesc.h: New file.
14194 * tracepoint.c: Include tdesc.h.
14195 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14196 (get_context_regcache): Adjust to pass ipa_tdesc down.
14197 (do_action_at_tracepoint): Adjust to get the register cache size
14198 from the context regcache's description.
14199 (traceframe_walk_blocks): Adjust to get the register cache size
14200 from the current trace frame's description.
14201 (traceframe_get_pc): Adjust to get current trace frame's
14202 description and pass it down.
14203 (gdb_collect): Adjust to get the register cache size from the
14205 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14206 (gdbserver_xmltarget): Delete.
14207 (initialize_low_tracepoint): Set the ipa's target description.
14208 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14209 (initialize_low_tracepoint): Set the ipa's target description.
14210 * linux-x86-low.c: Include tdesc.h.
14211 [__x86_64__] (is_64bit_tdesc): New.
14212 (ps_get_thread_area, x86_get_thread_area): Use it.
14213 (i386_cannot_store_register): Rename to ...
14214 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14215 (i386_cannot_fetch_register): Rename to ...
14216 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14217 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14219 (target_regsets): Rename to ...
14220 (x86_regsets): ... this.
14221 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14223 (x86_siginfo_fixup): Use is_64bit_tdesc.
14224 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14225 (tdesc_x32_avx_linux, tdesc_x32_linux)
14226 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14228 (x86_linux_update_xmltarget): Delete.
14229 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14230 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14231 (AMD64_LINUX_USER64_CS): New.
14232 (x86_linux_read_description): New, based on
14233 x86_linux_update_xmltarget.
14234 (same_process_callback): New.
14235 (x86_arch_setup_process_callback): New.
14236 (x86_linux_update_xmltarget): New.
14237 (x86_regsets_info): New.
14238 (amd64_linux_regs_info): New.
14239 (i386_linux_usrregs_info): New.
14240 (i386_linux_regs_info): New.
14241 (x86_linux_regs_info): New.
14242 (x86_arch_setup): Reimplement.
14243 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14244 (x86_emit_ops): Ditto.
14245 (the_low_target): Adjust. Install x86_linux_regs_info,
14246 x86_cannot_fetch_register, and x86_cannot_store_register.
14247 (initialize_low_arch): New.
14248 * linux-ia64-low.c (tdesc_ia64): Declare.
14249 (ia64_fetch_register): Adjust.
14250 (ia64_usrregs_info, regs_info): New globals.
14251 (ia64_regs_info): New function.
14252 (the_low_target): Adjust.
14253 (initialize_low_arch): New function.
14254 * linux-sparc-low.c (tdesc_sparc64): Declare.
14255 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14257 (sparc_arch_setup): New function.
14258 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14259 (the_low_target): Adjust.
14260 (initialize_low_arch): New function.
14261 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14262 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14263 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14264 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14265 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14266 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14267 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14268 (tdesc_powerpc_isa205_vsx64l): Declare.
14269 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14270 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14271 (ppc_set_pc, ppc_get_hwcap): Adjust.
14272 (ppc_usrregs_info): Forward declare.
14273 (!__powerpc64__) ppc_regmap_adjusted: New global.
14274 (ppc_arch_setup): Adjust to the current process'es target
14276 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14277 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14278 (ppc_store_evrregset): Adjust.
14279 (target_regsets): Rename to ...
14280 (ppc_regsets): ... this, and make static.
14281 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14282 (ppc_regs_info): New function.
14283 (the_low_target): Adjust.
14284 (initialize_low_arch): New function.
14285 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14286 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14287 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14288 (tdesc_s390x_linux64v2): Declare.
14289 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14290 (s390_fill_gregset, s390_store_last_break): Adjust.
14291 (target_regsets): Rename to ...
14292 (s390_regsets): ... this, and make static.
14293 (s390_get_pc, s390_set_pc): Adjust.
14294 (s390_get_hwcap): New target_desc parameter, and use it.
14295 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14296 (s390_arch_setup): Adjust to set the current process'es target
14297 description. Don't adjust the regmap.
14298 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14299 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14300 (regs_info_3264): New globals.
14301 (s390_regs_info): New function.
14302 (the_low_target): Adjust.
14303 (initialize_low_arch): New function.
14304 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14305 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14306 [__mips64] (init_registers_mips_linux)
14307 (init_registers_mips_dsp_linux): Delete defines.
14308 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14309 (have_dsp): New global.
14310 (mips_read_description): New, based on mips_arch_setup.
14311 (mips_arch_setup): Reimplement.
14312 (get_usrregs_info): New function.
14313 (mips_cannot_fetch_register, mips_cannot_store_register)
14314 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14315 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14316 (target_regsets): Rename to ...
14317 (mips_regsets): ... this, and make static.
14318 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14319 (dsp_regs_info, regs_info): New globals.
14320 (mips_regs_info): New function.
14321 (the_low_target): Adjust.
14322 (initialize_low_arch): New function.
14323 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14324 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14326 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14327 (arm_read_description): New, with bits factored from
14329 (arm_arch_setup): Reimplement.
14330 (target_regsets): Rename to ...
14331 (arm_regsets): ... this, and make static.
14332 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14333 (arm_regs_info): New function.
14334 (the_low_target): Adjust.
14335 (initialize_low_arch): New function.
14336 * linux-m68k-low.c (tdesc_m68k): Declare.
14337 (target_regsets): Rename to ...
14338 (m68k_regsets): ... this, and make static.
14339 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14340 (m68k_regs_info): New function.
14341 (m68k_arch_setup): New function.
14342 (the_low_target): Adjust.
14343 (initialize_low_arch): New function.
14344 * linux-sh-low.c (tdesc_sharch): Declare.
14345 (target_regsets): Rename to ...
14346 (sh_regsets): ... this, and make static.
14347 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14348 (sh_regs_info, sh_arch_setup): New functions.
14349 (the_low_target): Adjust.
14350 (initialize_low_arch): New function.
14351 * linux-bfin-low.c (tdesc_bfin): Declare.
14352 (bfin_arch_setup): New function.
14353 (bfin_usrregs_info, regs_info): New globals.
14354 (bfin_regs_info): New function.
14355 (the_low_target): Adjust.
14356 (initialize_low_arch): New function.
14357 * linux-cris-low.c (tdesc_cris): Declare.
14358 (cris_arch_setup): New function.
14359 (cris_usrregs_info, regs_info): New globals.
14360 (cris_regs_info): New function.
14361 (the_low_target): Adjust.
14362 (initialize_low_arch): New function.
14363 * linux-cris-low.c (tdesc_crisv32): Declare.
14364 (cris_arch_setup): New function.
14365 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14366 (cris_regs_info): New function.
14367 (the_low_target): Adjust.
14368 (initialize_low_arch): New function.
14369 * linux-m32r-low.c (tdesc_m32r): Declare.
14370 (m32r_arch_setup): New function.
14371 (m32r_usrregs_info, regs_info): New globals.
14372 (m32r_regs_info): Adjust.
14373 (initialize_low_arch): New function.
14374 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14375 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14376 (tic6x_usrregs_info): Forward declare.
14377 (tic6x_read_description): New function, based on ...
14378 (tic6x_arch_setup): ... this. Reimplement.
14379 (target_regsets): Rename to ...
14380 (tic6x_regsets): ... this, and make static.
14381 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14382 (tic6x_regs_info): New function.
14383 (the_low_target): Adjust.
14384 (initialize_low_arch): New function.
14385 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14386 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14387 (target_regsets): Rename to ...
14388 (xtensa_regsets): ... this, and make static.
14389 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14391 (xtensa_arch_setup, xtensa_regs_info): New functions.
14392 (the_low_target): Adjust.
14393 (initialize_low_arch): New function.
14394 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14395 (nios2_arch_setup): Set the current process'es tdesc.
14396 (target_regsets): Rename to ...
14397 (nios2_regsets): ... this.
14398 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14399 (nios2_regs_info): New function.
14400 (the_low_target): Adjust.
14401 (initialize_low_arch): New function.
14402 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14403 (aarch64_arch_setup): Set the current process'es tdesc.
14404 (target_regsets): Rename to ...
14405 (aarch64_regsets): ... this.
14406 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14407 (aarch64_regs_info): New function.
14408 (the_low_target): Adjust.
14409 (initialize_low_arch): New function.
14410 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14412 (target_regsets): Rename to ...
14413 (tile_regsets): ... this.
14414 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14415 (tile_regs_info): New function.
14416 (tile_arch_setup): Set the current process'es tdesc.
14417 (the_low_target): Adjust.
14418 (initialize_low_arch): New function.
14419 * spu-low.c (tdesc_spu): Declare.
14420 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14421 * win32-arm-low.c (tdesc_arm): Declare.
14422 (arm_arch_setup): New function.
14423 (the_low_target): Install arm_arch_setup instead of
14424 init_registers_arm.
14425 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14426 (init_windows_x86): Rename to ...
14427 (i386_arch_setup): ... this. Set `win32_tdesc'.
14428 (the_low_target): Adjust.
14429 * win32-low.c (win32_tdesc): New global.
14430 (child_add_thread): Don't create the thread cache here.
14431 (do_initial_child_stuff): Set the new process'es tdesc.
14432 * win32-low.h (struct target_desc): Forward declare.
14433 (win32_tdesc): Declare.
14434 * lynx-i386-low.c (tdesc_i386): Declare global.
14435 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14436 * lynx-low.c (lynx_tdesc): New global.
14437 (lynx_add_process): Set the new process'es tdesc.
14438 * lynx-low.h (struct target_desc): Forward declare.
14439 (lynx_tdesc): Declare global.
14440 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14441 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14442 * nto-low.c (nto_tdesc): New global.
14443 (do_attach): Set the new process'es tdesc.
14444 * nto-low.h (struct target_desc): Forward declare.
14445 (nto_tdesc): Declare.
14446 * nto-x86-low.c (tdesc_i386): Declare.
14447 (nto_x86_arch_setup): Set `nto_tdesc'.
14449 2013-06-04 Gary Benson <gbenson@redhat.com>
14451 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14452 to qSupported response when appropriate.
14453 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14454 with nonzero-length annex.
14455 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14456 arguments supplied in annex.
14458 2013-05-31 Doug Evans <dje@google.com>
14461 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14462 64 bits in 64-cross-32 environment.
14464 2013-05-28 Pedro Alves <palves@redhat.com>
14466 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14467 (aarch64-without-fpu.c): Delete rule.
14468 * configure.srv (aarch64*-*-linux*): Remove references to
14469 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14470 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14473 2013-05-24 Pedro Alves <palves@redhat.com>
14475 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14476 instead of strchr/decode_address. Error if the range isn't split
14477 with a ','. Don't assume there's be a ':' in the action.
14479 2013-05-23 Yao Qi <yao@codesourcery.com>
14480 Pedro Alves <palves@redhat.com>
14482 * linux-low.c (lwp_in_step_range): New function.
14483 (linux_wait_1): If the thread was range stepping and stopped
14484 outside the stepping range, report the stop to GDB. Otherwise,
14485 continue stepping. Add range stepping debug output.
14486 (linux_set_resume_request): Copy the step range from the resume
14487 request to the lwp.
14488 (linux_supports_range_stepping): New.
14489 (linux_target_ops) <supports_range_stepping>: Set to
14490 linux_supports_range_stepping.
14491 * linux-low.h (struct linux_target_ops)
14492 <supports_range_stepping>: New field.
14493 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14494 * linux-x86-low.c (x86_supports_range_stepping): New.
14495 (the_low_target) <supports_range_stepping>: Set to
14496 x86_supports_range_stepping.
14497 * server.c (handle_v_cont): Handle 'r' action.
14498 (handle_v_requests): Append ";r" if the target supports range
14500 * target.h (struct thread_resume) <step_range_start,
14501 step_range_end>: New fields.
14502 (struct target_ops) <supports_range_stepping>:
14504 (target_supports_range_stepping): New macro.
14506 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14508 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14509 confusion in comment.
14511 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14513 * lynx-low.c (struct process_info_private): New type.
14514 (lynx_add_process): New function.
14515 (lynx_create_inferior, lynx_attach): Replace calls to
14516 add_process by calls to lynx_add_process.
14517 (lynx_resume): If PTID is null, then try using
14518 current_process()->private->last_wait_event_ptid.
14520 (lynx_clear_inferiors): Delete. The contents of that function
14521 has been inlined in lynx_mourn;
14522 (lynx_wait_1): Save the ptid in the process's private data.
14523 (lynx_mourn): Free the process' private data. Replace call
14524 to lynx_clear_inferiors by call to clear_inferiors.
14526 2013-05-17 Yao Qi <yao@codesourcery.com>
14528 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14531 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14533 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14534 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14535 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14536 PT_TEXT_END_ADDR guards. Update comments.
14537 (linux_target_op) <read_offsets>: Conditionally define to
14538 linux_read_offsets if the target is UCLIBC and if it defines
14539 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14541 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14542 Andrew Jenner <andrew@codesourcery.com>
14544 * Makefile.in (SFILES): Add linux-nios2-low.c.
14545 (clean): Add action to delete nios2-linux.c.
14546 (nios2-linux.c): New rule.
14547 * configure.srv: Add nios2*-*-linux*.
14548 * linux-nios2-low.c: New.
14550 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14552 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14554 2013-04-25 Hui Zhu <hui@codesourcery.com>
14557 * ax.c (ax_printf): Add fflush.
14559 2013-04-22 Tom Tromey <tromey@redhat.com>
14561 * Makefile.in (SFILES): Add filestuff.c.
14562 (OBS): Add filestuff.o.
14563 (filestuff.o): New target.
14564 * config.in, configure: Rebuild.
14565 * configure.ac: Check for fdwalk, pipe2.
14567 2013-04-17 Pedro Alves <palves@redhat.com>
14569 * configure.ac (USE_THREAD_DB): Delete variable.
14570 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14571 Don't AC_SUBST USE_THREAD_DB.
14572 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14573 * config.in, configure: Regenerate.
14575 2013-04-16 Pedro Alves <palves@redhat.com>
14577 * linux-low.h (struct lwp_info) <thread_known>: Move under
14578 the USE_THREAD_DB #ifdef.
14580 2013-04-16 Pedro Alves <palves@redhat.com>
14582 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14583 (linux-low.o): Delete rule.
14584 * linux-low.h: Always include "gdb_thread_db.h" instead of
14585 conditionally including thread_db.h.
14586 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14589 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14591 * Makefile.in (install-only): Fix make install regression.
14593 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14595 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14596 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14598 * gdbserver.1: Remove.
14600 2013-03-22 Pedro Alves <palves@redhat.com>
14602 * linux-low.c (handle_extended_wait): Don't call
14603 linux_enable_event_reporting.
14605 2013-03-15 Tony Theodore <tonyt@logyst.com>
14608 * Makefile.in (SHELL): Use @SHELL@.
14610 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14612 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14615 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14617 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14618 Remove extraneous NULL element.
14620 2013-03-13 Yao Qi <yao@codesourcery.com>
14622 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14623 'V' block in trace frame.
14625 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14627 * target.h (struct target_ops): Add btrace ops.
14628 (target_supports_btrace): New macro.
14629 (target_enable_btrace): New macro.
14630 (target_disable_btrace): New macro.
14631 (target_read_btrace): New macro.
14632 * gdbthread.h (struct thread_info): Add btrace field.
14633 * server.c: Include btrace-common.h.
14634 (handle_btrace_general_set): New function.
14635 (handle_btrace_enable): New function.
14636 (handle_btrace_disable): New function.
14637 (handle_general_set): Call handle_btrace_general_set.
14638 (handle_qxfer_btrace): New function.
14639 (struct qxfer qxfer_packets[]): Add btrace entry.
14640 * inferiors.c (remove_thread): Disable btrace.
14641 * linux-low: Include linux-btrace.h.
14642 (linux_low_enable_btrace): New function.
14643 (linux_low_read_btrace): New function.
14644 (linux_target_ops): Add btrace ops.
14645 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14646 Add srv_linux_btrace=yes.
14647 (x86_64-*-linux*): Add linux-btrace.o.
14648 Add srv_linux_btrace=yes.
14649 * configure.ac: Define HAVE_LINUX_BTRACE.
14650 * config.in: Regenerated.
14651 * configure: Regenerated.
14653 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14655 * server.c (handle_qxfer): Preserve error message if -3 is
14657 (qxfer): Document the -3 return value.
14659 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14661 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14662 (linux_btrace_h): New variable.
14663 (linux-btrace.o): New rule.
14665 2013-03-08 Stan Shebs <stan@codesourcery.com>
14666 Hafiz Abid Qadeer <abidh@codesourcery.com>
14668 * tracepoint.c (trace_buffer_size): New global.
14669 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14670 (init_trace_buffer): Change to one-argument function. Allocate
14671 trace buffer memory.
14672 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14673 handle QTBuffer:size packet.
14674 (cmd_bigqtbuffer_size): New function.
14675 (initialize_tracepoint): Call init_trace_buffer with
14676 DEFAULT_TRACE_BUFFER_SIZE.
14677 * server.c (handle_query): Add QTBuffer:size in the
14680 2013-03-07 Yao Qi <yao@codesourcery.com>
14682 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14683 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14685 (cmd_qtsp): Adjust condition. Do post increment.
14686 Set cur_action and cur_step_action back to 0.
14688 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14691 * linux-low.c (linux_write_memory): Return early success if LEN is
14694 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14696 * configure.srv: Add x86_64-*-cygwin* as target.
14698 2013-02-28 Tom Tromey <tromey@redhat.com>
14700 * configure.ac: Invoke AC_SYS_LARGEFILE.
14701 * configure, config.in: Rebuild.
14703 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14705 * win32-low.c: Throughout, fix format strings and casts of
14706 printf-like functions to avoid type related warnings on all
14708 (get_child_debug_event): Print dwDebugEventCode as hex since
14709 that's how it's usually documented.
14711 2013-02-28 Yao Qi <yao@codesourcery.com>
14713 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14716 2013-02-27 Jiong Wang <jiwang@tilera.com>
14718 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14719 (reg-tilegx32.c): New rule.
14720 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14721 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14722 different register info initializer according to elf class.
14723 (init_registers_tilgx32): New function. The tilegx32 register info
14725 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14726 (tile_store_gregset): Likewise.
14728 2013-02-27 Yao Qi <yao@codesourcery.com>
14730 * server.c (process_point_options): Print debug message when
14731 debug_threads is true.
14733 2013-02-26 Yao Qi <yao@codesourcery.com>
14735 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14737 2013-02-19 Pedro Alves <palves@redhat.com>
14738 Kai Tietz <ktietz@redhat.com>
14742 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14743 instead of strtoul to extract address from packet.
14744 (process_serial_event) <'z'>: Likewise.
14746 2013-02-18 Yao Qi <yao@codesourcery.com>
14748 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14750 2013-02-14 Pedro Alves <palves@redhat.com>
14754 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14755 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14757 2013-02-14 Pedro Alves <palves@redhat.com>
14759 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14761 2013-02-14 Pedro Alves <palves@redhat.com>
14763 * tracepoint.c (save_string): Delete.
14764 (add_tracepoint_action): Use savestring instead of save_string.
14766 2013-02-12 Pedro Alves <palves@redhat.com>
14768 * linux-xtensa-low.c: Ditto.
14769 * xtensa-xtregs.c: Ditto.
14771 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14773 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14776 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14778 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14779 aarch64_num_wp_regs and aarch64_num_bp_regs to
14780 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14782 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14784 * linux-aarch64-low.c (ps_get_thread_area): Replace
14785 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14787 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14788 Marcus Shawcroft <marcus.shawcroft@arm.com>
14789 Nigel Stephens <nigel.stephens@arm.com>
14790 Yufeng Zhang <yufeng.zhang@arm.com>
14792 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14793 (aarch64.c, aarch64-without-fpu.c): New targets.
14794 * configure.srv (aarch64*-*-linux*): New.
14795 * linux-aarch64-low.c: New file.
14797 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14799 * linux-low.c (handle_extended_wait, linux_create_inferior)
14800 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14801 (dequeue_one_deferred_signal, linux_resume_one_thread)
14802 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14803 (linux_tracefork_grandchild, linux_test_for_tracefork)
14804 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14805 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14806 where the argument is 0.
14808 2013-01-25 Yao Qi <yao@codesourcery.com>
14810 * event-loop.c: Include "queue.h".
14811 (gdb_event_p): New typedef.
14812 (struct gdb_event) <next_event>: Remove.
14813 (event_queue): Change to QUEUE(gdb_event_p).
14814 (async_queue_event): Remove.
14815 (gdb_event_xfree): New.
14816 (initialize_event_loop): New.
14817 (process_event): Use API from QUEUE.
14818 (wait_for_event): Likewise.
14819 * server.c (main): Call initialize_event_loop.
14820 * server.h (initialize_event_loop): Declare.
14822 2013-01-18 Yao Qi <yao@codesourcery.com>
14824 * ax.h (struct eval_agent_expr_context): New.
14825 (gdb_eval_agent_expr): Update declaration.
14826 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14827 TFRAME. Add new argument CTX.
14828 * server.h (struct eval_agent_expr_context): Declare.
14829 (agent_mem_read, agent_tsv_read): Update declaration.
14830 (agent_mem_read_string): Likewise.
14831 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14832 (add_traceframe_block): Add new argument TPOINT.
14833 Increase TPOINT->traceframe_usage.
14834 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14835 eval_tracepoint_agent_expr.
14836 (condition_true_at_tracepoint): Likewise.
14837 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14838 (agent_mem_read_string, agent_tsv_read): Likewise.
14840 2013-01-16 Yao Qi <yao@codesourcery.com>
14842 * linux-low.c (linux_resume_one_lwp): Don't check
14843 'lwp->bp_reinsert != 0'.
14845 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14846 Pedro Alves <palves@redhat.com>
14848 * lynx-low.c (ptrace_request_to_str): Define a temporary
14849 macro and use it to simplify this function's implementation.
14851 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14853 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14856 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14858 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14860 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14862 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14864 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14866 * lynx-low.c (lynx_resume): Use the resume_info parameter
14867 to determine the ptid for the lynx_ptrace call, unless
14868 it is equal to minus_one_ptid, in which case we use the
14869 ptid of the current_inferior.
14870 (lynx_wait_1): After having received a thread create/exit
14871 event, resume the inferior's execution using the signaling
14872 thread's ptid, rather than the old ptid.
14874 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14876 * lynx-low.c (lynx_resume): Delete variable ret.
14878 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14880 * gdbreplay.c (gdbreplay_version): Update copyright year.
14881 * server.c (gdbserver_version): Likewise.
14883 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14885 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14888 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14890 * lynx-low.c (ptrace_request_to_str): Add handling for
14891 PTRACE_GETTRACESIG.
14893 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14895 * lynx-low.c (lynx_attach): Delete variable new_process.
14897 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14899 * lynx-low.c (lynx_create_inferior): Delete variable
14902 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14904 * lynx-low.c (ptrace_request_to_str): Do not handle
14905 PTRACE_GETTHREADLIST if this macro does not exist.
14907 2012-12-15 Yao Qi <yao@codesourcery.com>
14909 * Makefile.in (OBS): Add notif.o.
14910 * notif.c, notif.h: New.
14911 * server.c: Include "notif.h".
14912 (struct vstop_notif) <next>: Remove.
14914 (queue_stop_reply): Update.
14915 (push_event, send_next_stop_reply): Remove.
14916 (discard_queued_stop_replies): Update.
14917 (notif_stop): New variable.
14918 (handle_v_stopped): Remove.
14919 (handle_v_requests): Don't call handle_v_stopped. Call
14920 handle_ack_notif instead.
14921 (queue_stop_reply_callback): Call notif_event_enque instead
14922 of queue_stop_reply.
14923 (handle_status): Don't call send_next_stop_reply, call
14924 notif_write_event instead.
14925 (kill_inferior_callback): Likewise.
14926 (detach_or_kill_inferior_callback): Likewise.
14927 (main): Call initialize_notif.
14928 (process_serial_event): Call QUEUE_is_empty.
14929 (handle_target_event): Call notif_push instead of push event.
14930 * server.h (push_event): Remove declaration.
14932 2012-12-10 Tom Tromey <tromey@redhat.com>
14934 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14935 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14938 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14939 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14940 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14941 (amd64-linux-ipa.o, ax.o): Rewrite.
14942 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14943 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14944 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14945 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14946 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14947 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14948 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14949 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14950 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14951 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14952 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14953 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14954 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14955 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14956 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14957 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14958 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14959 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14960 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14961 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14962 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14963 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14964 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14965 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14966 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14967 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14968 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14969 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14970 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14971 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14972 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14973 (reg-tilegx.o): Remove.
14974 (all_object_files): New macro.
14975 Include .deps files.
14976 * aclocal.m4, configure: Rebuild.
14977 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14978 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14979 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14981 2012-12-05 Tom Tromey <tromey@redhat.com>
14984 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14986 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14988 * configure.ac: Check for linux/perf_event.h.
14989 * config.in: Regenerated.
14990 * configure: Regenerated.
14992 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14994 * hostio.c (handle_readlink): Decrease buffer size
14995 parameter passed to readlink by one byte.
14997 2012-11-26 Yao Qi <yao@codesourcery.com>
14999 * configure.ac (build_warnings): Append '-Wempty-body'.
15000 * configure: Regenerated.
15001 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15004 2012-11-15 Pierre Muller <muller@sourceware.org>
15006 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15007 * config.in: Regenerate.
15008 * configure: Regenerate.
15009 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15010 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15011 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15012 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15014 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15015 instead of <sys/wait.h> header.
15016 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15018 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15020 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15021 (various make rules): Remove -DGDBSERVER
15023 2012-11-09 Yao Qi <yao@codesourcery.com>
15025 * spu-low.c (current_ptid): Move it to ..
15026 * gdbthread.h: ... here. New.
15027 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15028 * server.c (myresume, process_serial_event): Likewise.
15029 * thread-db.c (thread_db_find_new_threads): Likewise.
15030 * tracepoint.c (run_inferior_command): Likewise.
15032 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15034 * server.c (handle_search_memory_1): Include access length in
15037 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15039 * linux-crisv32-low.c: Fix compile errors.
15041 2012-09-04 Yao Qi <yao@codesourcery.com>
15043 * tracepoint.c (cmd_qtsv): Adjust debug message.
15044 Don't check CUR_TPOINT.
15046 2012-08-28 Yao Qi <yao@codesourcery.com>
15048 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15049 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15050 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15051 Remove declarations of xmalloc, xreallloc, xstrdup and
15053 * Makefile.in (libiberty_h): New.
15054 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15055 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15057 2012-08-23 Yao Qi <yao@codesourcery.com>
15059 * server.h: Remove declaration of 'xsnprintf'.
15061 2012-08-22 Keith Seitz <keiths@redhat.com>
15063 * server.h: Include build-gnulib-gbserver/config.h.
15064 * gdbreplay.c: Likewise.
15066 2012-08-08 Doug Evans <dje@google.com>
15068 * Makefile.in (SFILES): Add gdb_vecs.c.
15069 (OBS): Add gdb_vecs.o.
15070 (gdb_vecs_h, host_defs_h): New variables.
15071 (thread-db.o): Add $(gdb_vecs_h) dependency.
15072 (gdb_vecs.o): New rule.
15073 * thread-db.c: #include "gdb_vecs.h".
15074 (thread_db_load_search): Use a vector to iterate over path elements.
15075 Handle text appearing after "$pdir".
15077 * configure.ac: Add check for strstr.
15078 * config.in: Regenerate.
15079 * configure: Regenerate.
15081 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15083 * hostio.c (handle_pread): If pread fails, fall back to attempting
15085 (handle_pwrite): Likewise for pwrite.
15087 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15089 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15090 between unsupported TYPE and unimplementable ADDR/LEN combination.
15091 (arm_insert_point): Act on new return value.
15093 2012-07-31 Pedro Alves <palves@redhat.com>
15095 * server.c (process_point_options): Only skip tokens if we find
15096 one that is unrecognized. Don't treat 'X' specially while
15097 skipping unrecognized tokens.
15099 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15101 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15102 to 4-byte-align HW breakpoint addresses for Thumb.
15104 2012-07-27 Yao Qi <yao@codesourcery.com>
15108 * server.h: Declare gdb_agent_about_to_close.
15109 * target.c (kill_inferior): Include "agent.h".
15110 New. Send command 'kill'.
15111 * target.h (kill_inferior): Removed macro.
15112 * tracepoint.c (gdb_agent_about_to_close): New.
15113 (gdb_agent_helper_thread): Handle command 'close'.
15114 Wait endlessly until the inferior stops.
15115 Install gdb_agent_remove_socket to atexit hook.
15116 (agent_socket_name): New static variable.
15117 (gdb_agent_socket_init): Replace local variable 'name' with
15118 'agent_socket_name'.
15119 (gdb_agent_remove_socket): New.
15121 2012-07-27 Yao Qi <yao@codesourcery.com>
15123 * server.c (process_point_options): Stop at 'X' when parsing.
15125 2012-07-19 Michael Eager <eager@eagercon.com>
15127 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15129 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15130 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15131 hardware breakpoint.
15133 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15135 * gdbserver/linux-low.c (initialize_low): Call
15136 linux_ptrace_init_warnings.
15138 2012-07-02 Doug Evans <dje@google.com>
15140 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15143 2012-07-02 Stan Shebs <stan@codesourcery.com>
15145 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15146 (ax.o): Add it to build rule.
15148 (OBS): Add format.o.
15149 (IPA_OBS): Add format.o.
15150 * server.c (handle_query): Claim support for breakpoint commands.
15151 (process_point_options): Add command case.
15152 (process_serial_event): Leave running if there are printfs in
15154 * mem-break.h (any_persistent_commands): Declare.
15155 (add_breakpoint_commands): Declare.
15156 (gdb_no_commands_at_breakpoint): Declare.
15157 (run_breakpoint_commands): Declare.
15158 * mem-break.c (struct point_command_list): New struct.
15159 (struct breakpoint): New field command_list.
15160 (any_persistent_commands): New function.
15161 (add_commands_to_breakpoint): New function.
15162 (add_breakpoint_commands): New function.
15163 (gdb_no_commands_at_breakpoint): New function.
15164 (run_breakpoint_commands): New function.
15165 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15167 * ax.c: Include format.h.
15168 (ax_printf): New function.
15169 (gdb_eval_agent_expr): Add printf opcode.
15171 2012-06-13 Yao Qi <yao@codesourcery.com>
15173 * server.c (start_inferior): Remove duplicated writes to fields
15174 'last_resume_kind' and 'last_status' of 'current_inferior'.
15176 2012-06-12 Yao Qi <yao@codesourcery.com>
15177 Pedro Alves <palves@redhat.com>
15179 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15181 * server.c (handle_v_cont): Extend comment.
15183 2012-06-11 Yao Qi <yao@codesourcery.com>
15185 * linux-low.c (linux_attach): Add 'static'.
15187 2012-06-06 Yao Qi <yao@codesourcery.com>
15189 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15191 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15193 Fix gcc -flto compilation warning.
15194 * server.c (main): Make variable multi_mode and attach volatile.
15196 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15198 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15199 if the platform doesn't know about it.
15201 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15203 * Makefile.in (SFILES): Add linux-tile-low.c.
15204 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15205 * configure.srv: Handle tilegx-*-linux*.
15206 * linux-tile-low.c: New file.
15208 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15210 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15212 2012-05-24 Pedro Alves <palves@redhat.com>
15216 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15218 2012-05-24 Pedro Alves <palves@redhat.com>
15222 Replace target_signal with gdb_signal throughout.
15224 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15226 * linux-low.c (linux_store_registers): Avoid the copying sequence
15227 when no data has been retrieved by ptrace.
15229 2012-05-22 Will Deacon <will.deacon@arm.com>
15231 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15232 Include asm/ptrace.h.
15233 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15236 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15238 * linux-low.c (linux_store_registers): Don't re-retrieve data
15239 with ptrace that has already been obtained from /proc. Always
15240 copy any data retrieved with ptrace to the buffer supplied.
15242 2012-05-11 Yao Qi <yao@codesourcery.com>
15243 Pedro Alves <palves@redhat.com>
15245 * linux-low.c (enum stopping_threads_kind): New.
15246 (stopping_threads): Change type to `enum stopping_threads_kind'.
15247 (handle_extended_wait): If stopping and suspending threads, leave
15248 the new_lwp suspended too.
15249 (linux_wait_for_event): Adjust.
15250 (stop_all_lwps): Set `stopping_threads' to
15251 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15252 whether we're suspending threads or just stopping them. Assert no
15255 2012-04-29 Yao Qi <yao@codesourcery.com>
15257 * server.h: Move some code to ...
15258 * gdbthread.h: ... here. New.
15259 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15260 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15261 (nto-low.o, win32-low.o): Likewise.
15262 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15263 * regcache.c, remote-utils.c, server.c: Likewise.
15264 * target.c, tracepoint.c, win32-low.c: Likewise.
15266 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15268 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15269 (PTRACE_ARG4_TYPE): Likewise.
15270 (PTRACE_XFER_TYPE): Likewise.
15271 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15272 ptrace to PTRACE_ARG3_TYPE.
15273 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15274 (PTRACE_ARG4_TYPE): Likewise.
15275 (PTRACE_XFER_TYPE): Likewise.
15276 (linux_detach_one_lwp): Cast fourth argument of
15277 ptrace to long then PTRACE_ARG4_TYPE.
15278 (regsets_fetch_inferior_registers): Cast third argument of
15279 ptrace to long then PTRACE_ARG3_TYPE.
15280 (regsets_store_inferior_registers): Likewise.
15282 2012-04-20 Pedro Alves <palves@redhat.com>
15284 * configure: Regenerate.
15286 2012-04-19 Pedro Alves <palves@redhat.com>
15288 * Makefile.in (GNULIB_BUILDDIR): New.
15289 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15290 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15291 (all, install-only, uninstall, clean-info, all-lib, clean): No
15292 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15293 (maintainer-clean realclean distclean): Use subdir_do.
15295 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15296 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15297 * acinclude.m4: Include acx_configure_dir.m4.
15298 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15299 calls. Call AC_PROG_RANLIB. Configure gnulib using
15302 (GNULIB_STDINT_H): Adjust.
15303 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15304 * gdbreplay.c: Include build-gnulib/config.h.
15305 * server.h: Likewise.
15306 * aclocal.m4: Regenerate.
15307 * config.in: Regenerate.
15308 * configure: Regenerate.
15310 2012-04-19 Pedro Alves <palves@redhat.com>
15312 * Makefile.in (LIBGNU, INCGNU): Adjust.
15313 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15314 (all, install-only, uninstall, clean-info, all-lib, clean)
15315 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15316 * configure.ac: Adjust AC_OUTPUT output.
15317 * aclocal.m4: Regenerate.
15318 * configure: Regenerate.
15320 2012-04-19 Pedro Alves <palves@redhat.com>
15322 * Makefile.in (generated_files): New.
15323 (server_h): Remove the explicit dependency on config.h, and depend
15324 on $generated_files.
15326 2012-04-19 Pedro Alves <palves@redhat.com>
15328 * Makefile.in (INCGNU): Add -Ignulib.
15330 2012-04-19 Pedro Alves <palves@redhat.com>
15332 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15333 (INCGNU): ... this, and spell out -I here.
15334 (GNULIB_LIB): Rename to ...
15335 (LIBGNU): ... this.
15336 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15338 2012-04-19 Pedro Alves <palves@redhat.com>
15340 * config.in: Regenerate.
15342 2012-04-19 Pedro Alves <palves@redhat.com>
15344 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15345 * server.h (memmem): Remove declaration.
15346 * config.in: Regenerate.
15347 * configure: Regenerate.
15349 2012-04-19 Yao Qi <yao@codesourcery.com>
15351 * Makefile.in (SFILES): Add common/vec.c.
15355 2012-04-19 Yao Qi <yao@codesourcery.com>
15357 * remote-utils.c (prepare_resume_reply): Replace with macro
15358 target_core_of_thread.
15359 * server.c (handle_qxfer_threads_proper): Likewise.
15360 * target.h (traget_core_of_thread): New macro.
15362 2012-04-18 Pedro Alves <palves@redhat.com>
15364 * aclocal.m4: Regenerate.
15365 * configure: Regenerate.
15367 2012-04-16 Yao Qi <yao@codesourcery.com>
15369 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15370 duplicated on address.
15372 2012-04-16 Yao Qi <yao@codesourcery.com>
15374 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15375 (struct tracepoint_action_ops) <send>: New field.
15376 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15377 (agent_expr_send, x_tracepoint_action_send): New.
15378 (l_tracepoint_action_send): New.
15379 (cmd_qtdp): Download and install tracepoint
15380 according to `use_agent'.
15381 (run_inferior_command): Add one more parameter `len'.
15383 (tracepoint_send_agent): New.
15384 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15386 2012-04-16 Yao Qi <yao@codesourcery.com>
15388 * tracepoint.c (download_tracepoints): Moved to ...
15389 (cmd_qtstart): ... here.
15391 2012-04-14 Yao Qi <yao@codesourcery.com>
15393 * tracepoint.c: Include inttypes.h.
15394 (struct collect_memory_action): Use sized types.
15395 (struct tracepoint): Likewise.
15396 (cmd_qtdp, stop_tracing): Update print specifiers.
15397 (cmd_qtp, response_tracepoint): Likewise.
15398 (collect_data_at_tracepoint): Likewise.
15399 (collect_data_at_step): Likewise.
15401 2012-04-14 Yao Qi <yao@codesourcery.com>
15403 Import gnulib module inttypes.
15404 * aclocal.m4, config.in, configure: Regenerated.
15406 2012-04-14 Yao Qi <yao@codesourcery.com>
15408 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15409 Makefile and config.status at last.
15411 2012-04-13 Yao Qi <yao@codesourcery.com>
15413 * tracepoint.c: Include stdint.h unconditionally.
15415 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15417 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15418 on BFD_HAVE_SYS_PROCFS_TYPE.
15419 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15420 * configure: Regenerate.
15421 * config.in: Likewise.
15423 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15425 * Makefile.in (clean): Also remove x32.c x32-linux.c
15426 x32-avx.c x32-avx-linux.c.
15427 (x32.o): New target.
15429 (x32-linux.o): Likewise.
15430 (x32-linux.c): Likewise.
15431 (x32-avx.o): Likewise.
15432 (x32-avx.c): Likewise.
15433 (x32-avx-linux.o): Likewise.
15434 (x32-avx-linux.c): Likewise.
15436 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15437 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15438 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15439 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15440 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15441 i386/x32-avx-linux.xml.
15443 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15444 (init_registers_x32_avx_linux): Likwise.
15445 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15446 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15448 2012-04-13 Pedro Alves <palves@redhat.com>
15450 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15451 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15452 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15453 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15456 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15458 * linux-x86-low.c (compat_x32_clock_t): New.
15459 (compat_x32_siginfo_t): Likewise.
15460 (compat_x32_siginfo_from_siginfo): Likewise.
15461 (siginfo_from_compat_x32_siginfo): Likewise.
15462 (linux_is_elf64): Likewise.
15463 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15464 and siginfo_from_compat_x32_siginfo for x32.
15465 (x86_arch_setup): Set linux_is_elf64.
15467 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15470 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15472 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15473 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15474 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15475 compatible with process.
15477 2012-04-12 Yao Qi <yao@codesourcery.com>
15479 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15480 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15481 (install-only, install-info, clean): Handle sub dir gnulib.
15482 (all-lib, am--refresh): New targets.
15483 (memmem.o): Remove target.
15484 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15485 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15486 (AC_REPLACE_FUNCS): Remove memmem.
15487 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15488 (AC_OUTPUT): Generate Makefile in gnulib/.
15489 * aclocal.m4, config.in, configure: Regenerated.
15491 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15493 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15495 2012-04-05 Pedro Alves <palves@redhat.com>
15497 -Werror=strict-aliasing
15499 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15502 2012-04-04 Pedro Alves <palves@redhat.com>
15504 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15505 (sparc_store_gregset_from_stack, sparc_store_gregset)
15506 (sparc_breakpoint_at): Fix formatting.
15508 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15510 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15512 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15513 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15514 * config.in: Regenerate.
15515 * configure: Likewise.
15517 2012-03-29 Pedro Alves <palves@redhat.com>
15519 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15520 Correct ptrace arguments.
15522 2012-03-28 Pedro Alves <palves@redhat.com>
15524 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15525 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15526 (IA64_FR1_REGNUM): New defines.
15527 (ia64_fetch_register): New.
15528 (the_low_target): Install it.
15529 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15531 * linux-low.c (linux_fetch_registers): Try the
15532 the_low_target.fetch_register hook first.
15534 * linux-arm-low.c (the_low_target): Adjust.
15535 * linux-bfin-low.c (the_low_target): Adjust.
15536 * linux-cris-low.c (the_low_target): Adjust.
15537 * linux-crisv32-low.c (the_low_target): Adjust.
15538 * linux-m32r-low.c (the_low_target): Adjust.
15539 * linux-m68k-low.c (the_low_target): Adjust.
15540 * linux-mips-low.c (the_low_target): Adjust.
15541 * linux-ppc-low.c (the_low_target): Adjust.
15542 * linux-s390-low.c (the_low_target): Adjust.
15543 * linux-sh-low.c (the_low_target): Adjust.
15544 * linux-sparc-low.c (the_low_target): Adjust.
15545 * linux-tic6x-low.c (the_low_target): Adjust.
15546 * linux-x86-low.c (the_low_target): Adjust.
15547 * linux-xtensa-low.c (the_low_target): Adjust.
15549 2012-03-26 Pedro Alves <palves@redhat.com>
15551 * server.c (handle_qxfer_libraries): Don't bail early if
15552 the_target->qxfer_libraries_svr4 is not NULL.
15554 2012-03-26 Pedro Alves <palves@redhat.com>
15556 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15558 2012-03-23 Pedro Alves <palves@redhat.com>
15560 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15561 "library-list-svr4" element's start tag when the the DSO list is
15564 2012-03-23 Pedro Alves <palves@redhat.com>
15566 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15567 a variable whose type size is the same as the inferior's pointer
15570 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15572 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15574 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15575 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15576 * linux-low.h: Include <signal.h>.
15577 (struct siginfo): Remove forward declaration.
15578 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15581 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15583 * .gitignore: Ignore more files.
15585 2012-03-19 Pedro Alves <palves@redhat.com>
15586 Jan Kratochvil <jan.kratochvil@redhat.com>
15588 * server.c (cont_thread, general_thread): Add describing comments.
15589 (start_inferior): Clear `cont_thread'.
15590 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15593 2012-03-15 Yao Qi <yao@codesourcery.com>
15595 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15597 (cmd_qtdp): ... here.
15599 2012-03-15 Yao Qi <yao@codesourcery.com>
15601 * tracepoint.c (struct tracepoint_action_ops): New.
15602 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15603 (m_tracepoint_action_download): New.
15604 (r_tracepoint_action_download): New.
15605 (x_tracepoint_action_download): New.
15606 (l_tracepoint_action_download): New.
15607 (add_tracepoint_action): Install `action->ops' according type.
15608 (download_tracepoint_1): Move code `download' function pointer
15609 of various tracepoint_action_ops.
15611 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15613 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15614 linux_ptrace_attach_warnings.
15616 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15618 * Makefile.in (linux-ptrace.o): New.
15619 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15620 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15621 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15622 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15623 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15625 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15627 2012-03-08 Yao Qi <yao@codesourcery.com>
15628 Pedro Alves <palves@redhat.com>
15630 Fix PR server/13392.
15631 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15632 offset of JMP insn.
15633 * tracepoint.c (remove_tracepoint): New.
15634 (cmd_qtdp): Call remove_tracepoint when failed to install.
15636 2012-03-07 Pedro Alves <palves@redhat.com>
15638 * linux-low.c (get_detach_signal): New.
15639 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15640 Pass on pending signals to PTRACE_DETACH. Check the result of the
15642 * server.c (program_signals, program_signals_p): New.
15643 (handle_general_set): Handle QProgramSignals.
15644 * server.h (program_signals, program_signals_p): Declare.
15646 2012-03-05 Pedro Alves <palves@redhat.com>
15647 Jan Kratochvil <jan.kratochvil@redhat.com>
15649 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15652 2012-03-03 Yao Qi <yao@codesourcery.com>
15654 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15655 agent_look_up_symbols.
15657 2012-03-03 Yao Qi <yao@codesourcery.com>
15659 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15660 (linux-x86-low.o): Likewise.
15661 * server.h: Remove in_process_agent_loaded.
15662 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15666 2012-03-03 Yao Qi <yao@codesourcery.com>
15668 * tracepoint.c (gdb_agent_capability): New global.
15669 (in_process_agent_loaded_ust): Renamed to
15670 `in_process_agent_supports_ust'.
15672 (in_process_agent_supports_ust): Call agent_capability_check.
15673 (clear_installed_tracepoints): Assert that agent supports
15676 2012-03-03 Yao Qi <yao@codesourcery.com>
15678 * linux-low.c (linux_supports_agent): New.
15679 (linux_target_ops): Initialize field `supports_agent' with
15680 linux_supports_agent.
15681 * target.h (struct target_ops) <supports_agent>: New.
15682 (target_supports_agent): New macro.
15683 * server.c (handle_general_set): Handle packet 'QAgent'.
15684 (handle_query): Send `QAgent+'.
15685 * Makefile.in (server.o): Depends on agent.h.
15687 2012-03-03 Yao Qi <yao@codesourcery.com>
15689 * Makefile.in (OBS): Add agent.o.
15690 Add new rule for agent.o.
15691 Track dependence of tracepoint.c on agent.h.
15692 * tracepoint.c (run_inferior_command_1):
15693 (run_inferior_command): Call agent_run_command.
15694 (gdb_ust_connect_sync_socket): Deleted. Move it to
15696 (resume_thread, stop_thread): Likewise.
15697 (gdb_ust_socket_init): Renamed to ...
15698 (gdb_agent_socket_init): ... New.
15699 (gdb_ust_thread): Renamed to ...
15700 (gdb_agent_helper_thread): ... New.
15701 (gdb_ust_init): Move some code to ...
15702 (gdb_agent_init): ... here. New.
15703 [HAVE_UST]: Call gdb_ust_init.
15704 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15705 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15706 * config.in, configure: Regenerated.
15708 2012-03-02 Pedro Alves <palves@redhat.com>
15710 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15711 * linux-low.c (struct simple_pid_list): New.
15712 (stopped_pids): New a struct simple_pid_list pointer.
15713 (add_to_pid_list, pull_pid_from_list): New.
15714 (handle_extended_wait): Don't assume the first signal new children
15715 report is SIGSTOP. Adjust call to pull_pid_from_list.
15716 (linux_wait_for_lwp): Adjust.
15718 2012-03-02 Yao Qi <yao@codesourcery.com>
15720 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15723 2012-03-02 Yao Qi <yao@codesourcery.com>
15725 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15726 `stop_pc' and `tpoint'. Update caller.
15728 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15730 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15731 * linux-low.c (use_linux_regsets): New macro.
15732 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15733 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15734 (linux_register_in_regsets): New function.
15735 (usr_fetch_inferior_registers): Skip registers covered by
15737 (usr_store_inferior_registers): Likewise.
15738 (usr_fetch_inferior_registers): New macro.
15739 (usr_store_inferior_registers): Likewise.
15740 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15741 (linux_store_registers): Likewise.
15742 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15744 (init_registers_mips64_dsp_linux): Likewise.
15745 (init_registers_mips_linux): New macro.
15746 (init_registers_mips_dsp_linux): Likewise.
15747 (mips_dsp_num_regs): Likewise.
15748 (DSP_BASE, DSP_CONTROL): New fallback macros.
15749 (mips_base_regs): New macro.
15750 (mips_regmap): Use it. Fix the size.
15751 (mips_dsp_regmap): New variable.
15752 (mips_dsp_regset_bitmap): Likewise.
15753 (mips_arch_setup): New function.
15754 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15756 (mips_cannot_store_register): Likewise.
15757 (the_low_target): Update .arch_setup, .num_regs and .regmap
15758 initializers. Add .regset_bitmap initializer.
15759 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15761 * linux-bfin-low.c (the_low_target): Likewise.
15762 * linux-cris-low.c (the_low_target): Likewise.
15763 * linux-crisv32-low.c (the_low_target): Likewise.
15764 * linux-ia64-low.c (the_low_target): Likewise.
15765 * linux-m32r-low.c (the_low_target): Likewise.
15766 * linux-m68k-low.c (the_low_target): Likewise.
15767 * linux-ppc-low.c (the_low_target): Likewise.
15768 * linux-s390-low.c (the_low_target): Likewise.
15769 * linux-sh-low.c (the_low_target): Likewise.
15770 * linux-sparc-low.c (the_low_target): Likewise.
15771 * linux-tic6x-low.c (the_low_target): Likewise.
15772 * linux-x86-low.c (the_low_target): Likewise.
15773 * linux-xtensa-low.c (the_low_target): Likewise.
15774 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15775 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15776 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15778 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15779 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15781 2012-02-29 Yao Qi <yao@codesourcery.com>
15782 Pedro Alves <palves@redhat.com>
15784 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15785 `step_over_finished' is true.
15787 2012-02-27 Pedro Alves <palves@redhat.com>
15789 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15790 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15792 2012-02-27 Pedro Alves <palves@redhat.com>
15795 * linux-low.c (pid_is_stopped): New.
15796 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15798 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15800 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15803 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15805 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15807 2012-02-24 Luis Machado <lgustavo@codesourcery>
15809 * server.c (handle_query): Advertise support for target-side
15810 breakpoint condition evaluation.
15811 (process_point_options): New function.
15812 (process_serial_event): When inserting a breakpoint, check for
15813 a target-side condition that should be evaluated.
15815 * mem-break.c: Include regcache.h and ax.h.
15816 (point_cond_list_t): New data structure.
15817 (breakpoint) <cond_list>: New field.
15818 (find_gdb_breakpoint_at): Make non-static.
15819 (delete_gdb_breakpoint_at): Clear any target-side
15821 (clear_gdb_breakpoint_conditions): New function.
15822 (add_condition_to_breakpoint): Likewise.
15823 (add_breakpoint_condition): Likewise.
15824 (gdb_condition_true_at_breakpoint): Likewise.
15825 (gdb_breakpoint_here): Return result directly instead
15826 of going through a local variable.
15828 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15829 (clear_gdb_breakpoint_conditions): Likewise.
15830 (add_breakpoint_condition): Likewise.
15831 (gdb_condition_true_at_breakpoint): Likewise.
15833 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15834 (need_step_over_p): Take target-side breakpoint condition into
15837 2012-02-24 Luis Machado <lgustavo@codesourcery>
15839 * server.h: Include tracepoint.h.
15840 (agent_mem_read, agent_get_trace_state_variable_value,
15841 agent_set_trace_state_variable_value,
15842 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15843 get_set_tsv_func_addr): New prototypes.
15845 * ax.h: New include file.
15846 * ax.c: New source file.
15848 * tracepoint.c: Include ax.h.
15849 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15850 agent_expr, eval_result_type): Move to ax.h.
15851 (parse_agent_expr): Rename to ...
15852 (gdb_parse_agent_expr): ... this, make it non-static and move
15854 (unparse_agent_expr) Rename to ...
15855 (gdb_unparse_agent_expr): ... this, make it non-static and move
15857 (eval_agent_expr): Rename to ...
15858 (eval_tracepoint_agent_expr): ... this.
15859 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15860 forward declarations.
15861 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15862 (agent_get_trace_state_variable_value): New function.
15863 (agent_set_trace_state_variable_value): New function.
15864 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15865 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15866 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15867 (condition_true_at_tracepoint): Likewise.
15868 (parse_agent_expr): Rename to ...
15869 (gdb_parse_agent_expr): ... this and move to ax.c.
15870 (unparse_agent_expr): Rename to ...
15871 (gdb_unparse_agent_expr): ... this and move to ax.c.
15872 (gdb_agent_op_name): Move to ax.c.
15873 (eval_agent_expr): Rename to ...
15874 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15876 (eval_tracepoint_agent_expr): New function.
15877 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15879 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15881 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15882 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15883 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15884 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15885 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15886 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15887 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15888 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15889 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15890 (compile_bytecodes): Remove forward declaration.
15891 (is_goto_target): Move to ax.c.
15892 (compile_bytecodes): Move to ax.c and call
15893 agent_get_trace_state_variable_value (...) and
15894 agent_set_trace_state_variable_value (...).
15896 * Makefile.in: Update ax.c and IPA dependencies.
15898 2012-02-24 Pedro Alves <palves@redhat.com>
15900 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15901 (cmd_bigqtbuffer_circular): ... this. Only handle
15902 'QTBuffer:circular:'.
15903 (handle_tracepoint_general_set): Adjust.
15905 2012-02-16 Yao Qi <yao@codesourcery.com>
15907 * inferiors.c: Move code to ...
15908 * dll.c: .... here. New.
15909 * server.h: Declare clear_dlls.
15910 * Makefile.in (SFILES): Add dll.c.
15914 2012-02-11 Yao Qi <yao@codesourcery.com>
15916 * server.c: (handle_monitor_command): Add a new parameter
15918 (handle_query): Update caller.
15920 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15922 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15923 * configure, config.in: Regenerate.
15924 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15927 2012-02-02 Pedro Alves <palves@redhat.com>
15929 Try SIGKILL first, then PTRACE_KILL.
15930 * linux-low.c (linux_kill_one_lwp): New.
15931 (linux_kill_one_lwp): Rename to ...
15932 (kill_one_lwp_callback): ... this. Use the new
15933 linux_kill_one_lwp.
15935 2012-02-02 Pedro Alves <palves@redhat.com>
15937 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15940 2012-01-27 Pedro Alves <palves@redhat.com>
15942 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15943 (elf_64_file_p): Make static.
15944 (linux_pid_exe_is_elf_64_file): New.
15945 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15946 Delete declarations.
15947 (linux_pid_exe_is_elf_64_file): Declare.
15948 * linux-x86-low.c (x86_arch_setup): Use
15949 linux_pid_exe_is_elf_64_file.
15951 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15953 * linux-low.c (linux_wait_for_event_1): Rename to ...
15954 (linux_wait_for_event): ... here and merge it with former
15955 linux_wait_for_event - new variable wait_ptid, use it.
15956 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15958 2012-01-23 Pedro Alves <palves@redhat.com>
15960 * server.c (main): Avoid yet another case of infinite loop while
15961 detaching/killing after a longjmp.
15963 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15966 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15968 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15970 * hostio.c (handle_readlink): New function.
15971 (handle_vFile): Call it to handle "vFile:readlink" packets.
15973 2012-01-20 Pedro Alves <palves@redhat.com>
15974 Ulrich Weigand <ulrich.weigand@linaro.org>
15976 * server.c (handle_v_requests): Only support vAttach and vRun to
15977 start multiple processes when in extended protocol mode.
15979 2012-01-17 Pedro Alves <palves@redhat.com>
15981 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15982 memalign plus mprotect to allocate the scratch buffer.
15984 2012-01-13 Pedro Alves <palves@redhat.com>
15986 * server.c (attach_inferior): Clear `cont_thread'.
15988 2012-01-13 Pedro Alves <palves@redhat.com>
15990 * server.c (main): Avoid infinite loop while detaching/killing
15993 2012-01-09 Doug Evans <dje@google.com>
15995 * server.c (start_inferior): Set last_ptid in --wrapper case.
15997 2012-01-06 Yao Qi <yao@codesourcery.com>
15999 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16001 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16003 2012-01-04 Yao Qi <yao@codesourcery.com>
16005 * tracepoint.c (cmd_qtdp): Print debug message
16006 for static tracepoint.
16008 2012-01-04 Yao Qi <yao@codesourcery.com>
16010 * tracepoint.c (trace_vdebug): Differentiate debug message
16011 between gdbserver and IPA.
16013 2012-01-03 Yao Qi <yao@codesourcery.com>
16015 * tracepoint.c (tracepoint_was_hit): Don't collect for
16018 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16020 * terminal.h: Reformat copyright header.
16022 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16024 * server.c (gdbserver_version): Update copyright year.
16025 * gdbreplay.c (gdbreplay_version): Likewise.
16027 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16029 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16032 2011-12-18 Hui Zhu <teawater@gmail.com>
16033 * linux-low.c (linux_create_inferior): Save return value to ret.
16035 2011-12-18 Hui Zhu <teawater@gmail.com>
16037 * linux-low.c (linux_create_inferior): Save return value to ret.
16039 2011-12-16 Doug Evans <dje@google.com>
16041 * linux-low.c (linux_create_inferior): If stdio connection,
16042 redirect stdin from /dev/null, stdout to stderr.
16043 * remote-utils.c (remote_is_stdio): New static global.
16044 (remote_connection_is_stdio): New function.
16045 (remote_prepare): Handle stdio connection.
16046 (remote_open): Ditto.
16047 (remote_close): Don't close stdin for stdio connections.
16048 (read_prim,write_prim): New functions. Replace all calls to
16049 read/write to these.
16050 * server.c (main): Watch for "-" argument. Move call to
16051 remote_prepare before start_inferior.
16052 * server.h (STDIO_CONNECTION_NAME): New macro.
16053 (remote_connection_is_stdio): Declare.
16055 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16056 in debugging output.
16058 2011-12-15 Yao Qi <yao@codesourcery.com>
16060 * tracepoint.c: Include sys/syscall.h.
16061 (gdb_ust_thread): Remove preprocessor conditional.
16063 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16065 * linux-low.c (linux_detach_one_lwp): Call
16066 the_low_target.prepare_to_resume before detaching.
16068 2011-12-14 Yao Qi <yao@codesourcery.com>
16070 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16073 2011-12-14 Yao Qi <yao@codesourcery.com>
16075 * i386-low.c (i386_low_stopped_data_address): Initialize local
16076 variable `control'.
16078 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16082 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16083 DR_CONTROL unless necessary. Extend comments.
16084 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16085 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16087 2011-12-13 Yao Qi <yao@codesourcery.com>
16089 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16091 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16093 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16095 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16096 Print new debug message for such case.
16098 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16100 Fix overlapping memcpy.
16101 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16102 the read_inferior_memory transfer.
16103 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16104 write_inferior_memory transfer.
16105 (set_fast_tracepoint_jump): New variable buf. Use it for the
16106 read_inferior_memory and write_inferior_memory transfers.
16107 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16108 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16109 Use it for the write_inferior_memory transfer.
16110 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16113 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16115 * linux-low.c (fetch_register, store_register): Make code
16116 consistent, fix formatting.
16118 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16120 * linux-low.c (usr_store_inferior_registers): Factor out code
16121 to handle individual registers into...
16122 (store_register): ... this new function.
16124 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16126 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16127 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16128 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16129 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16130 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16131 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16132 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16133 (srv_xmlfiles): Add new XML files.
16135 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16137 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16138 (init_registers_s390_linux32v1): Add prototype.
16139 (init_registers_s390_linux32v2): Likewise.
16140 (init_registers_s390_linux64v1): Likewise.
16141 (init_registers_s390_linux64v2): Likewise.
16142 (init_registers_s390x_linux64v1): Likewise.
16143 (init_registers_s390x_linux64v2): Likewise.
16144 (s390_num_regs): Increment to 52.
16145 (s390_regmap): Add orig_r2 register.
16146 (s390_num_regs_3264): Increment to 68.
16147 (s390_regmap_3264): Add orig_r2 register.
16148 (s390_collect_ptrace_register): Handle orig_r2 register.
16149 (s390_supply_ptrace_register): Likewise.
16150 (s390_fill_last_break): New function.
16151 (s390_store_last_break): Likewise.
16152 (s390_fill_system_call): New function.
16153 (s390_store_system_call): Likewise.
16154 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16156 (s390_check_regset): New function.
16157 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16158 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16159 Update target_regsets for available register sets.
16161 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16162 Jan Kratochvil <jan.kratochvil@redhat.com>
16164 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16165 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16167 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16168 * linux-low.h (struct process_info_private): New member r_debug.
16169 * server.c (handle_qxfer_libraries): Call
16170 the_target->qxfer_libraries_svr4.
16171 (handle_qxfer_libraries_svr4): New function.
16172 (qxfer_packets): New entry "libraries-svr4".
16173 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16174 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16175 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16176 PACKET_qXfer_libraries_svr4.
16178 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16180 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16181 PSW address/mask between 8-byte and 16-byte formats.
16182 (s390_supply_ptrace_register): Likewise.
16183 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16184 basic addressing mode bit.
16186 2011-11-24 Stan Shebs <stan@codesourcery.com>
16188 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16190 2011-11-17 Stan Shebs <stan@codesourcery.com>
16192 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16193 (tracing_start_time): New global.
16194 (tracing_stop_time): New global.
16195 (tracing_user_name): New global.
16196 (tracing_notes): New global.
16197 (tracing_stop_note): New global.
16198 (cmd_qtstart): Set traceframe_usage, start_time.
16199 (stop_tracing): Set stop_time.
16200 (cmd_qtstatus): Report additional status.
16201 (cmd_qtp): New function.
16202 (handle_tracepoint_query): Call it.
16203 (cmd_qtnotes): New function.
16204 (handle_tracepoint_general_set): Call it.
16205 (get_timestamp): Rename from tsv_get_timestamp.
16207 2011-11-14 Stan Shebs <stan@codesourcery.com>
16208 Kwok Cheung Yeung <kcy@codesourcery.com>
16210 * linux-x86-low.c (small_jump_insn): New.
16211 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16212 trampoline and error message, build a trampoline and issue a small
16213 jump instruction to it.
16214 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16215 trampoline and error message.
16216 (x86_get_min_fast_tracepoint_insn_len): New.
16217 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16218 * linux-low.h (struct linux_target_ops): Add arguments to
16219 install_fast_tracepoint_jump_pad operation, add new operation.
16220 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16222 (linux_get_min_fast_tracepoint_insn_len): New function.
16223 (linux_target_op): Add new operation.
16224 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16225 (gdb_trampoline_buffer_end): Ditto.
16226 (gdb_trampoline_buffer_error): Ditto.
16227 (struct ipa_sym_addresses): Add fields for new IPA variables.
16228 (symbol_list): Add entries for new IPA variables.
16229 (struct tracepoint): Add fields to hold the address range of the
16230 trampoline used by the tracepoint.
16231 (trampoline_buffer_head): New static variable.
16232 (trampoline_buffer_tail): Ditto.
16233 (claim_trampoline_space): New function.
16234 (have_fast_tracepoint_trampoline_buffer): New function.
16235 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16237 (install_fast_tracepoint): Ditto, also add error buffer argument.
16238 (cmd_qtminftpilen): New function.
16239 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16240 (fast_tracepoint_from_trampoline_address): New function.
16241 (fast_tracepoint_collecting): Handle trampoline as part of jump
16243 (set_trampoline_buffer_space): New function.
16244 (initialize_tracepoint): Initialize new IPA variables.
16245 * target.h (struct target_ops): Add arguments to
16246 install_fast_tracepoint_jump_pad operation, add new
16247 get_min_fast_tracepoint_insn_len operation.
16248 (target_get_min_fast_tracepoint_insn_len): New.
16249 (install_fast_tracepoint_jump_pad): Add arguments.
16250 * server.h (IPA_BUFSIZ): Define.
16251 * linux-i386-ipa.c: Include extra header files.
16252 (initialize_fast_tracepoint_trampoline_buffer): New function.
16253 (initialize_low_tracepoint): Call it.
16254 * server.h (set_trampoline_buffer_space): Declare.
16255 (claim_trampoline_space): Ditto.
16256 (have_fast_tracepoint_trampoline_buffer): Ditto.
16258 2011-11-14 Yao Qi <yao@codesourcery.com>
16260 * server.c (handle_query): Handle InstallInTrace for qSupported.
16261 * tracepoint.c (add_tracepoint): Sort list.
16262 (install_tracepoint, download_tracepoint): New.
16263 (cmd_qtdp): Call them to install and download tracepoints.
16264 (sort_tracepoints): Removed.
16265 (cmd_qtstart): Update.
16267 2011-11-14 Yao Qi <yao@codesourcery.com>
16269 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16270 * mem-break.h: Declare.
16271 * tracepoint.c (cmd_qtstart): Move some code to ...
16272 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16274 (download_tracepoints): Move some code to ...
16275 (download_tracepoint_1): ... here. New.
16277 2011-11-08 Yao Qi <yao@codesourcery.com>
16279 * remote-utils.c (relocate_instruction): A comment fix.
16281 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16283 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16284 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16285 dr_status_mirror and dr_control_mirror from debug_reg_state.
16286 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16287 (i386_initial_stuff): Remove use of deleted globals.
16288 (i386_get_thread_context, i386_set_thread_context,
16289 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16290 from debug_reg_state.
16292 2011-11-05 Yao Qi <yao@codesourcery.com>
16294 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16295 address as TPOINT's.
16297 2011-11-02 Stan Shebs <stan@codesourcery.com>
16299 * tracepoint.c (agent_mem_read_string): New function.
16300 (eval_agent_expr): Call it for tracenz.
16301 * server.c (handle_query): Report support for tracenz.
16303 2011-11-02 Yao Qi <yao@codesourcery.com>
16305 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16307 2011-11-02 Yao Qi <yao@codesourcery.com>
16309 * target.h: Fix a typo in comment.
16311 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16313 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16314 clobber the breakpoints' shadows with fast tracepoint jumps.
16315 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16316 * target.c (write_inferior_memory): Also pass MYADDR down to
16319 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16321 * configure.ac: Check support for personality routine.
16322 * configure: Regenerate.
16323 * config.in: Likewise.
16324 * linux-low.c: Include <sys/personality.h>.
16325 Define ADDR_NO_RANDOMIZE if necessary.
16326 (linux_create_inferior): Disable address space randomization when
16327 forking inferior, if requested.
16328 (linux_supports_disable_randomization): New function.
16329 (linux_target_ops): Install it.
16330 * server.h (disable_randomization): Declare.
16331 * server.c (disable_randomization): New global variable.
16332 (handle_general_set): Handle QDisableRandomization.
16333 (handle_query): Likewise for qSupported.
16334 (main): Support --disable-randomization and --no-disable-randomization
16335 command line arguments.
16336 * target.h (struct target_ops): Add supports_disable_randomization.
16337 (target_supports_disable_randomization): New macro.
16339 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16341 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16343 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16344 [!PT_GETDSBT] (target_loadmap): New definition.
16345 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16346 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16347 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16348 and PT_GETDSBT to LINUX_LOADMAP.
16349 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16350 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16352 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16354 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16355 (arm_linux_hwbp_cap): New static variable.
16356 (arm_linux_get_hwbp_cap): Replace by ...
16357 (arm_linux_init_hwbp_cap): ... this new function.
16358 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16359 (arm_linux_get_hw_watchpoint_count): Likewise.
16360 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16361 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16362 (arm_prepare_to_resume): Use perror_with_name instead of error.
16364 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16366 * linux-arm-low.c: Include <signal.h>.
16367 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16368 (struct arm_linux_hwbp_cap): New data type.
16369 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16370 (struct arm_linux_hw_breakpoint): New data type.
16371 (MAX_BPTS, MAX_WPTS): Define.
16372 (struct arch_process_info, struct arch_lwp_info): New data types.
16373 (arm_linux_get_hwbp_cap): New function.
16374 (arm_linux_get_hw_breakpoint_count): Likewise.
16375 (arm_linux_get_hw_watchpoint_count): Likewise.
16376 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16377 (arm_hwbp_control_initialize): Likewise.
16378 (arm_hwbp_control_is_enabled): Likewise.
16379 (arm_hwbp_control_is_initialized): Likewise.
16380 (arm_hwbp_control_disable): Likewise.
16381 (arm_linux_hw_breakpoint_equal): Likewise.
16382 (arm_linux_hw_point_initialize): Likewise.
16383 (struct update_registers_data): New data structure.
16384 (update_registers_callback: New function.
16385 (arm_insert_point): Likewise.
16386 (arm_remove_point): Likewise.
16387 (arm_stopped_by_watchpoint): Likewise.
16388 (arm_stopped_data_address): Likewise.
16389 (arm_new_process): Likewise.
16390 (arm_new_thread): Likewise.
16391 (arm_prepare_to_resume): Likewise.
16392 (the_low_target): Register arm_insert_point, arm_remove_point,
16393 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16394 arm_new_thread, and arm_prepare_to_resume.
16396 2011-09-15 Stan Shebs <stan@codesourcery.com>
16398 * server.h (struct emit_ops): Add compare-goto fields.
16399 * tracepoint.c (gdb_agent_op_sizes): New table.
16400 (emit_eq_goto): New function.
16401 (emit_ne_goto): New function.
16402 (emit_lt_goto): New function.
16403 (emit_le_goto): New function.
16404 (emit_gt_goto): New function.
16405 (emit_ge_goto): New function.
16406 (is_goto_target): New function.
16407 (compile_bytecodes): Recognize special cases of compare-goto
16408 combinations and call specialized emitters for them.
16409 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16410 (amd64_emit_ne_goto): New function.
16411 (amd64_emit_lt_goto): New function.
16412 (amd64_emit_le_goto): New function.
16413 (amd64_emit_gt_goto): New function.
16414 (amd64_emit_ge_goto): New function.
16415 (amd64_emit_ops): Add the new functions.
16416 (i386_emit_eq_goto): New function.
16417 (i386_emit_ne_goto): New function.
16418 (i386_emit_lt_goto): New function.
16419 (i386_emit_le_goto): New function.
16420 (i386_emit_gt_goto): New function.
16421 (i386_emit_ge_goto): New function.
16422 (i386_emit_ops): Add the new functions.
16424 2011-09-08 Stan Shebs <stan@codesourcery.com>
16426 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16427 (i386_emit_epilogue): Restore %ebx.
16429 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16431 * server.c (step_thread): Remove definition.
16432 (process_serial_event): Don't handle Hs.
16433 * server.h (step_thread): Remove declaration.
16434 * target.c (set_desired_inferior): Remove use of step_thread.
16436 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16438 * linux-low.c: Include linux-procfs.h.
16439 (linux_attach_lwp_1): Update comments.
16440 (linux_attach): Scan for existing threads when attaching to a
16441 process that is the tgid.
16442 * Makefile.in: Update dependencies.
16444 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16446 * configure.srv: Add linux-procfs.o dependencies.
16448 2011-08-14 Yao Qi <yao@codesourcery.com>
16450 * target.h (struct target_ops): Fix indent.
16451 * win32-low.c (win32_target_ops): Fix comment.
16453 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16454 Yao Qi <yao@codesourcery.com>
16456 * Makefile.in (clean): Remove tic6x-*.c files.
16457 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16458 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16459 (tic6x-c64xp-linux.c): Likewise.
16460 * configure.srv: Add support for tic6x-*-uclinux.
16461 * linux-tic6x-low.c: New.
16462 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16464 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16465 Yao Qi <yao@codesourcery.com>
16467 * target.h (struct target_ops): Add read_loadmap.
16468 * linux-low.c (struct target_loadseg): New type.
16469 (struct target_loadmap): New type.
16470 (linux_read_loadmap): New function.
16471 (linux_target_ops): Add linux_read_loadmap.
16472 * server.c (handle_query): Support qXfer:fdpic:read packet.
16473 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16476 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16478 * win32-low.c: Include <stdint.h>.
16480 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16482 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16483 to the inferior here.
16484 (i386_remove_aligned_watchpoint): Ditto.
16485 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16486 fit part of the watchpoint in the debug registers.
16487 (i386_update_inferior_debug_regs): New.
16488 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16489 registers, and only update the inferior on success.
16490 (i386_low_remove_watchpoint): Ditto.
16492 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16494 * linux-low.c (compare_ints, unique, list_threads, show_process,
16495 linux_core_of_thread): Delete.
16496 (linux_target_ops): Change linux_core_of_thread to
16497 linux_common_core_of_thread.
16498 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16499 * utils.c (malloc_failure): Change type of argument.
16500 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16501 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16502 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16503 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16504 (IPA_OBJS): Add common-utils-ipa.o.
16505 (ptid_h, linux_osdata_h): New macros.
16506 (server_h): Add common/common-utils.h, common/xml-utils.h,
16507 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16509 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16510 ptid.o, buffer.o): New rules.
16511 (linux-low.o): Add common/linux-osdata.h as a dependency.
16512 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16513 * configure.ac: Add AC_HEADER_DIRENT check.
16514 * config.in: Regenerate.
16515 * configure: Regenerate.
16516 * remote-utils.c (xml_escape_text): Delete.
16517 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16518 buffer_xml_printf): Move to common/buffer.c.
16519 * server.c (main): Remove call to initialize_inferiors.
16520 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16521 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16522 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16523 internal_error, gdb_assert, gdb_assert_fail): Delete.
16524 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16525 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16527 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16528 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16529 initialize_inferiors): Delete.
16531 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16533 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16536 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16538 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16540 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16542 2011-05-26 Yao Qi <yao@codesourcery.com>
16544 * Makefile.in (thread-db.o): Track dependence to
16545 common/gdb_thread_db.h.
16546 * thread-db.c: include gdb_thread_db.h from right place.
16548 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16550 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16551 __FILE__ and __LINE__ to internal_error.
16553 2011-05-13 Doug Evans <dje@google.com>
16555 * thread-db.c (try_thread_db_load_from_sdir): New function.
16556 (try_thread_db_load_from_dir): New function.
16557 (thread_db_load_search): Handle $sdir, ignore $pdir.
16558 Remove trying of system directories if search of
16559 libthread-db-search-path fails, that is now done via $sdir.
16561 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16563 * server.c (handle_query): Add EnableDisableTracepoints to the list
16564 of supported features.
16565 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16567 (cmd_qtenable_disable): New.
16568 (cmd_qtstart): Install tracepoints even if disabled.
16569 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16570 receiving a QTEnable or QTDisable packet.
16571 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16572 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16574 (gdb_probe): Skip data collection if static tracepoint is disabled.
16576 2011-05-10 Doug Evans <dje@google.com>
16578 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16580 2011-05-04 Doug Evans <dje@google.com>
16582 * linux-low.c (linux_join): Skip process lookup.
16583 * spu-low.c (spu_join): Ditto.
16584 * server.c (join_inferiors_callback): Delete.
16585 (process_serial_event): For 'D' packet (detach) call join_inferior
16588 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16590 * README: Don't mention xscale*-*-linux*.
16591 * configure.srv (xscale*-*-linux*): Don't handle target.
16593 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16595 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16597 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16598 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16599 (i386_emit_void_call_2): Likewise.
16601 2011-04-26 Yao Qi <yao@codesourcery.com>
16603 * linux-low.c: Move common macros to linux-ptrace.h.
16604 Include linux-ptrace.h.
16605 * Makefile.in (linux_ptrace_h): New.
16606 (linux-low.o): Depends on linux-ptrace.h.
16608 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16610 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16611 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16612 (remote_prepare): New function with most of the TCP code from ...
16613 (remote_open): ... here. Detect PORT here unconditionally. Move also
16614 setting transport_is_reliable.
16615 * server.c (run_once): New variable.
16616 (gdbserver_usage): Document it.
16617 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16618 the first run if RUN_ONCE.
16619 * server.h (run_once, remote_prepare): New declarations.
16621 2011-04-19 Tom Tromey <tromey@redhat.com>
16623 * win32-low.c (handle_load_dll): Remove duplicate "the".
16625 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16627 Remove support for old Cygwin 1.5 versions.
16628 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16629 function to avoid warning.
16630 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16633 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16635 * gdbserver/server.h (Macro _): Define it if not available.
16637 2011-03-14 Michael Snyder <msnyder@vmware.com>
16639 * hostio.c (handle_close): Remove unnecessary null test.
16641 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16643 * Makefile.in (maintainer-clean realclean distclean): Remove
16644 "make ... subdir_do" command.
16646 2011-03-10 Michael Snyder <msnyder@vmware.com>
16648 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16650 * server.c (handle_v_run): Free alloced buffer on early return.
16652 2011-03-09 Yao Qi <yao@codesourcery.com>
16655 2011-03-04 Yao Qi <yao@codesourcery.com>
16657 * Makefile.in: Remove GNU make feature --directory.
16659 2011-03-05 Yao Qi <yao@codesourcery.com>
16661 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16662 (subdir_do): New make target. Copied from gdb/Makefile.
16663 (maintainer-clean, realclean, distclean, clean): Call corresponding
16664 make targets in common/Makefile.
16666 2011-02-11 Yao Qi <yao@codesourcery.com>
16668 * configure.ac: Call AC_PROG_RANLIB.
16669 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16670 * configure: Regenerate.
16672 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16674 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16676 2011-03-06 Yao Qi <yao@codesourcery.com>
16678 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16680 2011-03-05 Yao Qi <yao@codesourcery.com>
16682 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16683 (subdir_do): New make target. Copied from gdb/Makefile.
16684 (maintainer-clean, realclean, distclean, clean): Call corresponding
16685 make targets in common/Makefile.
16687 2011-03-04 Yao Qi <yao@codesourcery.com>
16689 * Makefile.in: Remove GNU make feature --directory.
16691 2011-03-04 Michael Snyder <msnyder@vmware.com>
16693 * server.c (queue_stop_reply): Call xmalloc not malloc.
16695 2011-03-02 Michael Snyder <msnyder@vmware.com>
16697 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16699 2011-02-28 Michael Snyder <msnyder@vmware.com>
16701 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16702 (cmd_qtframe): Ditto.
16703 (cmd_qtbuffer): Ditto.
16704 (cmd_bigqtbuffer): Ditto.
16706 * utils.c (decimal2str): Initialize 'width' to nine, then
16707 don't mess with it.
16709 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16711 * hostio.c (require_data): Free *data, not data.
16713 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16715 * hostio.c (require_data): Use free, not xfree.
16717 2011-02-27 Michael Snyder <msnyder@vmware.com>
16719 * server.c (handle_query): Discard unused value.
16721 * hostio.c (require_data): Free malloc memory before returning
16724 2011-02-26 Michael Snyder <msnyder@vmware.com>
16726 * linux-low.c (list_threads): Call closedir for dirent.
16728 2011-02-27 Michael Snyder <msnyder@vmware.com>
16730 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16731 a case statement falls through.
16733 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16735 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16738 2011-02-26 Michael Snyder <msnyder@vmware.com>
16740 * utils.c (decimal2str): Eliminate dead code and dead param.
16741 (pulongest): Drop dead param from call to decimal2str.
16744 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16746 Revert the following patch (not approved yet):
16747 2011-02-21 Hui Zhu <teawater@gmail.com>
16748 * tracepoint.c (tp_printf): New function.
16749 (eval_agent_expr): Handle gdb_agent_op_printf.
16751 2011-02-21 Hui Zhu <teawater@gmail.com>
16753 * tracepoint.c (tp_printf): New function.
16754 (eval_agent_expr): Handle gdb_agent_op_printf.
16756 2011-02-18 Tom Tromey <tromey@redhat.com>
16758 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16759 (tracepoint.o): Likewise.
16760 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16761 (gdb_agent_op_names): Likewise.
16763 2011-02-18 Tom Tromey <tromey@redhat.com>
16765 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16766 gdb_agent_op_rot>: New constants.
16767 (gdb_agent_op_names): Add pick and roll.
16768 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16771 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16773 * aclocal.m4: Regenerated with aclocal-1.11.1.
16775 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16777 * server.c (handle_qxfer_traceframe_info): New.
16778 (qxfer_packets): Register "traceframe-info".
16779 (handle_query): Report support for qXfer:traceframe-info:read+.
16780 * tracepoint.c (match_blocktype): New.
16781 (traceframe_find_block_type): Rename to ...
16782 (traceframe_walk_blocks): ... this. Add callback filter argument,
16784 (traceframe_find_block_type): New, reimplemented on top of
16785 traceframe_walk_blocks.
16786 (build_traceframe_info_xml): New.
16787 (traceframe_read_info): New.
16788 * server.h (traceframe_read_info): Declare.
16790 2011-02-11 Yao Qi <yao@codesourcery.com>
16792 * configure.ac: Call AC_PROG_RANLIB.
16793 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16794 * configure: Regenerate.
16796 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16798 * server.c (gdb_read_memory): Change return semantics to allow
16800 (handle_search_memory_1): Adjust.
16801 (process_serial_event) <'m' packet>: Handle partial transfers.
16802 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16804 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16806 * regcache.c (init_register_cache): Initialize
16807 regcache->register_status.
16808 (free_register_cache): Release regcache->register_status.
16809 (regcache_cpy): Copy register_status.
16810 (registers_to_string): Print 'x's for unavailable registers.
16811 (supply_register): Mark the register's status valid or
16812 unavailable, depending on whether a buffer was passed in or not.
16813 (supply_register_zeroed): New.
16814 (supply_regblock): Mark the registers' status valid or
16815 unavailable, depending on whether a buffer was passed in or not.
16816 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16817 (struct regcache): New `register_status' field.
16818 (supply_register_zeroed): Declare.
16819 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16820 supply_register_zeroed, rather than passing a NULL buffer to
16822 * tracepoint.c (fetch_traceframe_registers): Update comment.
16824 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16826 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16829 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16831 * server.h (decode_xfer_write): Change prototype.
16832 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16833 and don't extract the annex here.
16834 * server.c (decode_xfer_read): Remove `annex' parameter,
16835 and don't extract the annex here.
16836 (decode_xfer): New.
16837 (struct qxfer): New.
16838 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16839 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16840 (handle_qxfer_statictrace): New functions, abstracted out from
16841 handle_query, and made to use the struct qxfer interface.
16842 (handle_threads_qxfer_proper): Rename to ...
16843 (handle_qxfer_threads_proper): ... this.
16844 (handle_threads_qxfer): Rename to ...
16845 (handle_qxfer_threads): ... this. Adjust.
16846 (qxfer_packets): New array.
16847 (handle_qxfer): New function.
16848 (handle_query): Use handle_qxfer.
16850 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16852 * gdbreplay.c: Shorten lines of >= 80 columns.
16853 * linux-low.c: Ditto.
16854 * linux-ppc-low.c: Ditto.
16855 * linux-s390-low.c: Ditto.
16856 * linux-sparc-low.c: Ditto.
16857 * linux-x86-low.c: Ditto.
16858 * linux-xtensa-low.c: Ditto.
16859 * mem-break.c: Ditto.
16860 * nto-low.c: Ditto.
16861 * regcache.h: Ditto.
16862 * remote-utils.c: Ditto.
16865 * thread-db.c: Ditto.
16866 * tracepoint.c: Ditto.
16868 * win32-low.h: Ditto.
16870 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16872 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16875 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16877 * server.c (gdbserver_version): Update copyright year in version
16879 * gdbreplay.c (gdbreplay_version): Ditto.
16881 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16883 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16884 * linux-bfin-low.c: New file.
16885 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16886 PT_DATA_ADDR for BFIN targets.
16887 * Makefile.in (SFILES): Add linux-bfin-low.c.
16888 (clean): Remove reg-bfin.c.
16889 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16890 * README: Mention supported Blackfin targets.
16892 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16894 * .gitignore: New file.
16896 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16898 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16900 2010-10-22 Jie Zhang <jie@codesourcery.com>
16902 * Makefile.in: Add FLAGS_TO_PASS variable.
16903 (install): Remove dependency of install-only and recursively
16904 invoke make for install-only.
16906 2010-10-04 Doug Evans <dje@google.com>
16908 * Makefile.in (uninstall): Use $(DESTDIR).
16910 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16914 * linux-x86-low.c (compat_siginfo_from_siginfo)
16915 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16916 si_code is < 0. Check for si_code == SI_TIMER before checking for
16919 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16921 * lynx-i386-low.c: New file.
16922 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16924 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16926 * lynx-low.c (ptrace_request_to_str): Remove handling for
16927 request values that have been removed in LynxOS 5.x.
16929 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16931 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16934 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16936 * configure.ac: Add --enable-inprocess-agent option.
16937 * configure: Rebuilt.
16939 2010-09-06 Yao Qi <yao@codesourcery.com>
16941 * linux-low.c (linux_kill): Remove unused variable.
16942 (linux_stabilize_threads): Likewise.
16943 * server.c (start_inferior): Likewise.
16944 (queue_stop_reply_callback): Likewise.
16945 * tracepoint.c (do_action_at_tracepoint): Likewise.
16947 2010-09-06 Yao Qi <yao@codesourcery.com>
16949 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16952 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16954 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16956 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16958 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16961 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16963 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16964 gdbserver/lynx-ppc-low.c: New files.
16965 * Makefile.in (lynx_low_h): New variable.
16966 (lynx-low.o, lynx-ppc-low.o): New rules.
16967 * configure.ac: On LynxOS, link with -lnetinet.
16968 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16969 * configure: regenerate.
16971 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16973 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16974 * configure.ac: Add check for vasprintf and vsnprintf.
16975 * configure, config.in: Regenerate.
16976 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16978 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16980 * gdbreplay.c: Move include of alloca.h up, next to include of
16982 * server.h: Add include of malloc.h.
16983 * mem-break.c: Remove include of malloc.h.
16984 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16986 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16988 * Makefile.in (memmem.o): Build with -Wno-error.
16990 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16992 * utils.c (xsnprintf): Make non-static.
16993 * server.h: Add xsnprintf declaration.
16994 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16995 replace calls to snprintf by calls to xsnprintf throughout.
16997 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16999 * configure.ac: Add configure check for alloca.
17000 * configure, config.in: Regenerate.
17001 * server.h: Include alloca.h if it exists.
17002 * gdbreplay.c: Include alloca.h if it exists.
17004 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17006 * linux-low.c (__SIGRTMIN): Define if not already defined.
17007 (linux_create_inferior): Check for __ANDROID__ rather than
17009 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17010 are already deferred.
17011 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17012 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17013 stopped and already has a pending signal to report.
17014 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17015 a pending signal to report or is moving out of a jump pad.
17016 (linux_init_signals): Check for __ANDROID__ rather than
17019 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17021 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17022 debug_threads check. Avoid a linear search when not doing debug
17025 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17027 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17028 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17029 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17030 (process_event): Change local fd's type to gdb_fildes_t.
17031 (create_file_handler): Adjust prototype.
17032 (delete_file_handler): Adjust prototype.
17033 (handle_file_event): Adjust prototype. Use pfildes.
17034 (create_file_event): Adjsut prototype.
17035 * remote-utils.c (remote_desc, listen_desc): Change type to
17037 * server.h: New gdb_fildes_t typedef.
17038 [USE_WIN32API]: Include winsock2.h.
17039 (delete_file_handler, add_file_handler): Adjust prototypes.
17040 (pfildes): Declare.
17041 * utils.c (pfildes): New.
17043 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17045 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17046 * configure: Regenerate.
17048 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17050 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17051 (linux_done_accessing_memory): ... this.
17052 (linux_target_ops): Adjust.
17053 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17054 * nto-low.c (nto_target_ops): Adjust comment.
17055 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17056 * spu-low.c (spu_target_ops): Adjust comment.
17057 * target.h (target_ops): Rename unprepare_to_access_memory field
17058 to done_accessing_memory.
17059 (unprepare_to_access_memory): Rename to ...
17060 (done_accessing_memory): ... this.
17062 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17064 * linux-low.c (linux_prepare_to_access_memory): New.
17065 (linux_unprepare_to_access_memory): New.
17066 (linux_target_ops): Install them.
17067 * server.c (read_memory): Rename to ...
17068 (gdb_read_memory): ... this. Use
17069 prepare_to_access_memory/prepare_to_access_memory.
17070 (write_memory): Rename to ...
17071 (gdb_write_memory): ... this. Use
17072 prepare_to_access_memory/prepare_to_access_memory.
17073 (handle_search_memory_1): Adjust.
17074 (process_serial_event): Adjust.
17075 * target.h (struct target_ops): New fields
17076 prepare_to_access_memory and unprepare_to_access_memory.
17077 (prepare_to_access_memory, unprepare_to_access_memory): New.
17078 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17079 prepare_to_access_memory/prepare_to_access_memory.
17080 * nto-low.c (nto_target_ops): Adjust.
17081 * spu-low.c (spu_target_ops): Adjust.
17082 * win32-low.c (win32_target_ops): Adjust.
17084 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17086 * Makefile.in (WARN_CFLAGS): Get it from configure.
17087 (WERROR_CFLAGS): New.
17088 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17089 * configure.ac: Introduce --enable-werror, which adds -Werror to
17090 the compiler command line. Enabled by default. Disable with
17091 --disable-werror. Add -Wdeclaration-after-statement
17092 Wpointer-arith and -Wformat-nonliteral to warning flags.
17093 * configure: Regenerate.
17095 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17097 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17099 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17101 * gdbreplay.c (remote_error): New.
17103 (expect): Use gdbchar. Check for error reading from GDB.
17104 Clarify sync error output.
17105 (play): Check for errors writing to GDB.
17106 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17107 * remote-utils.c (getpkt): Check for errors writing to the remote
17110 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17112 * linux-low.c (linux_wait_1): Move non-debugging code out of
17113 `debug_threads' control.
17115 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17117 * linux-low.c (linux_wait_1): Don't set last_status here.
17118 * server.c (push_event, queue_stop_reply_callback): Assert we're
17119 not pushing a TARGET_WAITKIND_IGNORE event.
17120 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17121 (myresume, handle_target_event): Set the thread's last_resume_kind
17122 and last_status from the target returned status.
17124 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17128 * linux-x86-low.c (update_debug_registers_callback): New.
17129 (i386_dr_low_set_addr): Use it.
17130 (i386_dr_low_get_addr): New.
17131 (i386_dr_low_set_control): Use update_debug_registers_callback.
17132 (i386_dr_low_get_control): New.
17133 (i386_dr_low_get_status): Adjust.
17134 * linux-low.c (linux_stop_lwp): New.
17135 * linux-low.h (linux_stop_lwp): Declare.
17137 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17138 argument instead of a i386_debug_reg_state.
17139 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17140 a i386_debug_reg_state.
17141 (i386_insert_aligned_watchpoint): Adjust.
17142 (i386_remove_aligned_watchpoint): Adjust.
17143 (i386_low_stopped_data_address): Read the debug registers from the
17144 inferior instead of from the mirrors.
17145 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17146 (i386_dr_low_get_addr): Declare.
17147 (i386_dr_low_get_control): Declare.
17148 (i386_dr_low_get_status): Change prototype.
17150 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17151 (i386_dr_low_get_addr): New.
17152 (i386_dr_low_get_control): New.
17153 (i386_dr_low_get_status): Adjust prototype. Return
17155 (i386_initial_stuff): Clear dr_status_mirror and
17157 (i386_get_thread_context): Adjust.
17158 (i386_set_thread_context): Adjust.
17159 (i386_thread_added): Adjust.
17161 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17163 * linux-low.h (linux_thread_area): Delete declaration.
17165 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17167 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17168 after its termination.
17170 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17172 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17173 (gdb_wants_all_stopped): Delete.
17174 (linux_wait_1): Don't call them.
17175 * server.c (handle_v_cont): Tag all threads as want-stopped.
17176 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17177 stopped as "client-wants-stopped".
17179 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17181 * Makefile.in (signals_h): New.
17182 (server_h): Depend on it.
17183 (server.o): Don't depend on $(signals_def).
17184 (signals.o): Depend on $(signals_def).
17186 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17188 * Makefile.in (signals_def): New.
17189 (server_h): Append include/gdb/signals.h and signals_def.
17190 (server.o): Append signals_def.
17192 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17194 * server.c (handle_target_event): Use target_signal_to_host for
17195 resume_info.sig initialization.
17196 * target.h (struct thread_resume) <sig>: New comment.
17198 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17200 * server.c (handle_query): strcpy() the returned string from paddress()
17201 instead of sprintf().
17202 * utils.c (paddress): Return phex_nz().
17204 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17206 * server.c (handle_v_cont): Call mourn_inferior if process
17208 (myresume): Likewise.
17210 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17212 Static tracepoints, and integration with UST.
17214 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17215 * mem-break.c (uninsert_all_breakpoints)
17216 (reinsert_all_breakpoints): New.
17217 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17218 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17219 (gdb_agent_ust_loaded, helper_thread_id)
17220 (gdb_agent_helper_thread_id): New macros.
17221 (struct ipa_sym_addresses): Add addr_ust_loaded,
17222 addr_helper_thread_id, addr_cmd_buf.
17223 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17224 (in_process_agent_loaded_ust): New.
17225 (write_e_ust_not_loaded): New.
17226 (maybe_write_ipa_ust_not_loaded): New.
17227 (struct collect_static_trace_data_action): New.
17228 (enum tracepoint_type) <static_tracepoint>: New.
17229 (struct tracepoint) <handle>: Mention static tracepoints.
17230 (struct static_tracepoint_ctx): New.
17231 (CMD_BUF_SIZE): New.
17232 (add_tracepoint_action): Handle static tracepoint actions.
17233 (unprobe_marker_at): New.
17234 (clear_installed_tracepoints): Handle static tracepoints.
17235 (cmd_qtdp): Handle static tracepoints.
17236 (probe_marker_at): New.
17237 (cmd_qtstart): Handle static tracepoints.
17238 (response_tracepoint): Handle static tracepoints.
17239 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17240 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17241 (get_context_regcache): Handle static tracepoints.
17242 (do_action_at_tracepoint): Handle static tracepoint actions.
17243 (traceframe_find_block_type): Handle static trace data blocks.
17244 (traceframe_read_sdata): New.
17245 (download_tracepoints): Download static tracepoint actions.
17246 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17247 (GDB_PROBE_NAME): New.
17249 (GET_UST_SYM): New.
17252 (ust_marker_to_static_tracepoint): New.
17254 (collect_ust_data_at_tracepoint): New.
17255 (gdb_ust_probe): New.
17256 (UNIX_PATH_MAX, SOCK_DIR): New.
17257 (gdb_ust_connect_sync_socket): New.
17258 (resume_thread, stop_thread): New.
17259 (run_inferior_command): New.
17260 (init_named_socket): New.
17261 (gdb_ust_socket_init): New.
17262 (cstr_to_hexstr): New.
17264 (first_marker, next_marker): New.
17265 (response_ust_marker): New.
17266 (cmd_qtfstm, cmd_qtsstm): New.
17267 (unprobe_marker_at, probe_marker_at): New.
17268 (cmd_qtstmat, gdb_ust_thread): New.
17269 (gdb_ust_init): New.
17270 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17271 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17272 (ST_REGENTRY): New.
17273 (x86_64_st_collect_regmap): New.
17274 (X86_64_NUM_ST_COLLECT_GREGS): New.
17275 (AMD64_RIP_REGNUM): New.
17276 (supply_static_tracepoint_registers): New.
17277 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17278 (ST_REGENTRY): New.
17279 (i386_st_collect_regmap): New.
17280 (i386_NUM_ST_COLLECT_GREGS): New.
17281 (supply_static_tracepoint_registers): New.
17282 * server.c (handle_query): Handle qXfer:statictrace:read.
17283 <qSupported>: Report support for StaticTracepoints, and
17284 qXfer:statictrace:read features.
17285 * server.h (traceframe_read_sdata)
17286 (supply_static_tracepoint_registers): Declare.
17287 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17288 (unpack_varlen_hex): Include in IPA build.
17289 * Makefile.in (ustlibs, ustinc): New.
17290 (IPA_OBJS): Add remote-utils-ipa.o.
17291 ($(IPA_LIB)): Link -ldl and -lpthread.
17293 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17294 * config.in, configure: Regenerate.
17296 2010-06-20 Ian Lance Taylor <iant@google.com>
17297 Pedro Alves <pedro@codesourcery.com>
17299 * linux-x86-low.c (always_true): Delete.
17300 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17301 trying to fool the compiler with always_true.
17303 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17305 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17306 conditions in gdbserver.
17308 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17310 * spu-low.c (spu_read_memory): Wrap around local store limit.
17311 (spu_write_memory): Likewise.
17313 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17315 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17316 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17318 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17320 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17321 uses with LONGEST uses.
17323 2010-06-14 Stan Shebs <stan@codesourcery.com>
17324 Pedro Alves <pedro@codesourcery.com>
17328 * linux-x86-low.c: Include limits.h.
17330 (always_true): New.
17333 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17334 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17335 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17336 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17337 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17338 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17339 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17340 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17341 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17342 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17343 (amd64_emit_void_call_2): New.
17344 (amd64_emit_ops): New.
17345 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17346 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17347 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17348 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17349 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17350 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17351 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17352 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17353 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17354 (i386_emit_stack_adjust, i386_emit_int_call_1)
17355 (i386_emit_void_call_2): New.
17356 (i386_emit_ops): New.
17357 (x86_emit_ops): New.
17358 (the_low_target): Install x86_emit_ops.
17359 * server.h (struct emit_ops): New.
17360 (get_raw_reg_func_addr): Declare.
17361 (current_insn_ptr, emit_error): Declare.
17362 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17363 (set_trace_state_variable_value): New defines.
17364 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17365 addr_get_trace_state_variable_value and
17366 addr_set_trace_state_variable_value.
17367 (symbol_list): New fields for get_raw_reg,
17368 get_trace_state_variable_value and set_trace_state_variable_value.
17369 (condfn): New typedef.
17370 (struct tracepoint): New field `compiled_cond'.
17371 (do_action_at_tracepoint): Clear compiled_cond.
17372 (get_trace_state_variable_value, set_trace_state_variable_value):
17374 (condition_true_at_tracepoint): If there's a compiled condition,
17376 (current_insn_ptr, emit_error): New globals.
17377 (struct bytecode_address): New.
17378 (get_raw_reg_func_addr): New.
17379 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17380 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17381 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17382 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17383 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17384 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17385 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17386 (compile_tracepoint_condition, compile_bytecodes): New.
17387 * target.h (emit_ops): Forward declare.
17388 (struct target_ops): New field emit_ops.
17389 (target_emit_ops): New.
17390 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17391 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17392 * linux-low.c (linux_emit_ops): New.
17393 (linux_target_ops): Install it.
17394 * linux-low.h (struct linux_target_ops): New field emit_ops.
17396 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17398 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17399 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17401 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17402 Stan Shebs <stan@codesourcery.com>
17404 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17405 (all): Depend on $(extra_libraries).
17406 (install-only): Install the IPA.
17407 (IPA_OBJS, IPA_LIB): New.
17408 (clean): Remove the IPA lib.
17409 (IPAGENT_CFLAGS): New.
17410 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17411 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17412 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17413 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17414 * configure.ac: Check for atomic builtins support in the compiler.
17415 (IPA_DEPFILES, extra_libraries): Define.
17416 * configure.srv (ipa_obj): Add description.
17417 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17418 (i[34567]86-*-linux*): Set ipa_obj.
17419 (x86_64-*-linux*): Set ipa_obj.
17420 * linux-low.c (stabilizing_threads): New.
17421 (supports_fast_tracepoints): New.
17422 (linux_detach): Stabilize threads before detaching.
17423 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17424 the lwp is either not stabilizing, or is moving out of a jump pad.
17425 (linux_fast_tracepoint_collecting): New.
17426 (maybe_move_out_of_jump_pad): New.
17427 (enqueue_one_deferred_signal): New.
17428 (dequeue_one_deferred_signal): New.
17429 (linux_wait_for_event_1): If moving out of a jump pad, defer
17430 pending signals to later.
17431 (linux_stabilize_threads): New.
17432 (linux_wait_1): Check if threads need moving out of jump pads, and
17434 (stuck_in_jump_pad_callback): New.
17435 (move_out_of_jump_pad_callback): New.
17436 (lwp_running): New.
17437 (linux_resume_one_lwp): Handle moving out of jump pads.
17438 (linux_set_resume_request): Dequeue deferred signals.
17439 (need_step_over_p): Also step over fast tracepoint jumps.
17440 (start_step_over): Also uninsert fast tracepoint jumps.
17441 (finish_step_over): Also reinsert fast tracepoint jumps.
17442 (linux_install_fast_tracepoint_jump): New.
17443 (linux_target_ops): Install linux_stabilize_threads and
17444 linux_install_fast_tracepoint_jump_pad.
17445 * linux-low.h (linux_target_ops) <get_thread_area,
17446 install_fast_tracepoint_jump_pad>: New fields.
17447 (struct lwp_info) <collecting_fast_tracepoint,
17448 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17449 (linux_get_thread_area): Declare.
17450 * linux-x86-low.c (jump_insn): New.
17451 (x86_get_thread_area): New.
17452 (append_insns): New.
17453 (push_opcode): New.
17454 (amd64_install_fast_tracepoint_jump_pad): New.
17455 (i386_install_fast_tracepoint_jump_pad): New.
17456 (x86_install_fast_tracepoint_jump_pad): New.
17457 (the_low_target): Install x86_get_thread_area and
17458 x86_install_fast_tracepoint_jump_pad.
17459 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17460 (struct fast_tracepoint_jump): New.
17461 (fast_tracepoint_jump_insn): New.
17462 (fast_tracepoint_jump_shadow): New.
17463 (find_fast_tracepoint_jump_at): New.
17464 (fast_tracepoint_jump_here): New.
17465 (delete_fast_tracepoint_jump): New.
17466 (set_fast_tracepoint_jump): New.
17467 (uninsert_fast_tracepoint_jumps_at): New.
17468 (reinsert_fast_tracepoint_jumps_at): New.
17469 (set_breakpoint_at): Use write_inferior_memory.
17470 (uninsert_raw_breakpoint): Use write_inferior_memory.
17471 (check_mem_read): Mask out fast tracepoint jumps.
17472 (check_mem_write): Mask out fast tracepoint jumps.
17473 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17474 (set_fast_tracepoint_jump): Declare.
17475 (delete_fast_tracepoint_jump)
17476 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17477 (reinsert_fast_tracepoint_jumps_at): Declare.
17478 * regcache.c: Don't compile many functions when building the
17479 in-process agent library.
17480 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17481 the register buffer in the heap.
17482 (free_register_cache): If the register buffer isn't owned by the
17483 regcache, don't free it.
17484 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17485 pre-existing register caches.
17486 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17488 (convert_ascii_to_int): : Constify `from' parameter type.
17489 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17490 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17491 the needed buffer in-place.
17492 (relocate_instruction): New.
17493 * server.c (handle_query) <qSymbols>: If the target supports
17494 tracepoints, give it a chance of looking up symbols. Report
17495 support for fast tracepoints.
17496 (handle_status): Stabilize threads.
17497 (process_serial_event): Adjust.
17498 * server.h (struct fast_tracepoint_jump): Forward declare.
17499 (struct process_info) <fast_tracepoint_jumps>: New field.
17500 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17501 (decode_X_packet, decode_M_packet): Adjust.
17502 (relocate_instruction): Declare.
17503 (in_process_agent_loaded): Declare.
17504 (tracepoint_look_up_symbols): Declare.
17505 (struct fast_tpoint_collect_status): Declare.
17506 (fast_tracepoint_collecting): Declare.
17507 (force_unlock_trace_buffer): Declare.
17508 (handle_tracepoint_bkpts): Declare.
17509 (initialize_low_tracepoint)
17510 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17511 * target.h (struct target_ops) <stabilize_threads,
17512 install_fast_tracepoint_jump_pad>: New fields.
17513 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17514 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17515 [HAVE_STDINT_H]: Include stdint.h.
17516 (trace_debug_1): Rename to ...
17517 (trace_vdebug): ... this.
17518 (trace_debug): Rename to ...
17519 (trace_debug_1): ... this. Add `level' parameter.
17520 (trace_debug): New.
17521 (ATTR_USED, ATTR_NOINLINE): New.
17522 (IP_AGENT_EXPORT): New.
17523 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17524 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17525 (about_to_request_buffer_space, trace_buffer_is_full)
17526 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17527 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17528 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17529 (traceframe_write_count, traceframes_created)
17530 (trace_state_variables)
17531 New renaming defines.
17532 (struct ipa_sym_addresses): New.
17533 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17534 (symbol_list): New.
17535 (ipa_sym_addrs): New.
17536 (all_tracepoint_symbols_looked_up): New.
17537 (in_process_agent_loaded): New.
17538 (write_e_ipa_not_loaded): New.
17539 (maybe_write_ipa_not_loaded): New.
17540 (tracepoint_look_up_symbols): New.
17541 (debug_threads) [IN_PROCESS_AGENT]: New.
17542 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17543 (UNKNOWN_SIDE_EFFECTS): New.
17544 (stop_tracing): New.
17545 (flush_trace_buffer): New.
17546 (stop_tracing_bkpt): New.
17547 (flush_trace_buffer_bkpt): New.
17548 (read_inferior_integer): New.
17549 (read_inferior_uinteger): New.
17550 (read_inferior_data_pointer): New.
17551 (write_inferior_data_pointer): New.
17552 (write_inferior_integer): New.
17553 (write_inferior_uinteger): New.
17554 (struct collect_static_trace_data_action): Delete.
17555 (enum tracepoint_type): New.
17556 (struct tracepoint) <type>: New field `type'.
17557 <actions_str, step_actions, step_actions_str>: Only include in
17559 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17560 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17561 (tracepoints): Use IP_AGENT_EXPORT.
17562 (last_tracepoint): Don't include in the IPA.
17563 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17564 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17565 (alloced_trace_state_variables): New.
17566 (trace_state_variables): Use IP_AGENT_EXPORT.
17567 (traceframe_t): Delete unused variable.
17568 (circular_trace_buffer): Don't include in the IPA.
17569 (trace_buffer_start): Delete.
17570 (struct trace_buffer_control): New.
17571 (trace_buffer_free): Delete.
17572 (struct ipa_trace_buffer_control): New.
17573 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17574 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17576 (trace_buffer_ctrl): New.
17577 (TRACE_BUFFER_CTRL_CURR): New.
17578 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17579 Reimplement as macros.
17580 (trace_buffer_wrap): Delete.
17581 (traceframe_write_count, traceframe_read_count)
17582 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17583 (struct tracepoint_hit_ctx) <type>: New field.
17584 (struct fast_tracepoint_ctx): New.
17585 (memory_barrier): New.
17587 (record_tracepoint_error): Update atomically in the IPA.
17588 (clear_inferior_trace_buffer): New.
17589 (about_to_request_buffer_space): New.
17590 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17591 updating the same buffer.
17592 (add_tracepoint): Default the tracepoint's type to trap
17593 tracepoint, and orig_size to -1.
17594 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17595 internal variables.
17596 (create_trace_state_variable): New parameter `gdb'. Handle it.
17597 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17598 (cmd_qtdp): Handle fast tracepoints.
17599 (cmd_qtdv): Adjust.
17600 (max_jump_pad_size): New.
17601 (gdb_jump_pad_head): New.
17602 (get_jump_space_head): New.
17603 (claim_jump_space): New.
17604 (sort_tracepoints): New.
17605 (MAX_JUMP_SIZE): New.
17606 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17608 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17609 support. Upload fast traceframes, and delete internal IPA
17611 (stop_tracing_handler): New.
17612 (flush_trace_buffer_handler): New.
17613 (cmd_qtstop): Upload fast tracepoints.
17614 (response_tracepoint): Handle fast tracepoints.
17615 (tracepoint_finished_step): Upload fast traceframes. Set the
17616 tracepoint hit context's tracepoint type.
17617 (handle_tracepoint_bkpts): New.
17618 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17619 type. Add comment about fast tracepoints.
17620 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17621 non-existing action_str field.
17622 (get_context_regcache): Handle fast tracepoints.
17623 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17625 (fast_tracepoint_from_jump_pad_address): New.
17626 (fast_tracepoint_from_ipa_tpoint_address): New.
17627 (collecting_t): New.
17628 (force_unlock_trace_buffer): New.
17629 (fast_tracepoint_collecting): New.
17631 (gdb_collect): New.
17632 (write_inferior_data_ptr): New.
17633 (target_tp_heap): New.
17634 (target_malloc): New.
17635 (download_agent_expr): New.
17637 (download_tracepoints): New.
17638 (download_trace_state_variables): New.
17639 (upload_fast_traceframes): New.
17640 (IPA_FIRST_TRACEFRAME): New.
17641 (IPA_NEXT_TRACEFRAME_1): New.
17642 (IPA_NEXT_TRACEFRAME): New.
17643 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17644 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17645 (gdb_jump_pad_buffer_end): New.
17646 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17647 (initialize_tracepoint): Adjust.
17648 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17649 buffer. Initialize the low module.
17650 * utils.c (PREFIX, TOOLNAME): New.
17651 (malloc_failure): Use PREFIX.
17652 (error): In the IPA, an error causes an exit.
17653 (fatal, warning): Use PREFIX.
17654 (internal_error): Use TOOLNAME.
17655 (NUMCELLS): Increase to 10.
17656 * configure, config.in: Regenerate.
17658 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17660 * server.c (handle_query) <qSupported>: Do two passes over the
17661 qSupported string to avoid nesting strtok.
17663 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17665 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17667 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17668 -Wl,--dynamic-list.
17669 * configure: Regenerate.
17670 * proc-service.list: New.
17672 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17674 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17677 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17679 * gdbreplay.c (remote_open): Check error return from socket() call by
17680 its equality to -1 not by it being negative.
17681 * remote-utils.c (remote_open): Likewise.
17683 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17685 * config.h: Regenerate.
17687 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17689 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17690 doesn't provide PTRACE_GET_THREAD_AREA.
17692 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17694 * linux-m68k-low.c: Include <asm/ptrace.h>
17695 (ps_get_thread_area): Implement.
17697 2010-05-03 Doug Evans <dje@google.com>
17699 * event-loop.c (struct callback_event): New struct.
17700 (callback_list): New global.
17701 (append_callback_event, delete_callback_event): New functions.
17702 (process_callback): New function.
17703 (start_event_loop): Call it.
17704 * remote-utils.c (NOT_SCHEDULED): Define.
17705 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17706 moved out of readchar.
17707 (readchar): Rewrite. Call reschedule before returning.
17708 (reset_readchar): New function.
17709 (remote_close): Call it.
17710 (process_remaining, reschedule): New functions.
17711 * server.h (callback_handler_func): New typedef.
17712 (append_callback_event, delete_callback_event): Declare.
17714 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17716 * proc-service.c (ps_pglobal_lookup): Use
17717 thread_db_look_up_one_symbol.
17718 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17719 parameter. Use it instead of all_symbols_looked_up.
17720 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17722 (all_symbols_looked_up): Don't declare.
17723 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17724 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17726 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17727 Set all_symbols_looked_up here.
17728 (thread_db_look_up_one_symbol): New.
17729 (thread_db_get_tls_address): Adjust.
17730 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17731 thread_db object on the heap, and tentatively set it in the
17733 (thread_db_init): Don't set all_symbols_looked_up here.
17734 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17736 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17738 * linux-low.c (linux_kill, linux_detach): Adjust.
17739 (status_pending_p_callback): Remove redundant statement. Check
17740 for !TARGET_WAITIKIND_IGNORE, instead of
17741 TARGET_WAITKIND_STOPPED.
17742 (handle_tracepoints): Make sure LWP is locked. Adjust.
17743 (linux_wait_for_event_1): Adjust.
17744 (linux_cancel_breakpoints): New.
17745 (unsuspend_one_lwp): New.
17746 (unsuspend_all_lwps): New.
17747 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17748 (send_sigstop_callback): Change return type to int, add new
17749 `except' parameter and handle it.
17750 (suspend_and_send_sigstop_callback): New.
17751 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17752 pass them down. If SUSPEND, also increment the lwp's suspend
17754 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17755 (need_step_over_p): Don't consider suspended LWPs.
17756 (start_step_over): Adjust.
17757 (proceed_one_lwp): Change return type to int, add new `except'
17758 parameter and handle it.
17759 (unsuspend_and_proceed_one_lwp): New.
17760 (proceed_all_lwps): Use find_inferior instead of
17762 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17763 also decrement the suspend count of LWPs. Pass `except' down,
17764 instead of hacking its suspend count.
17765 (linux_pause_all): Add `freeze' parameter. Adjust.
17766 (linux_unpause_all): New.
17767 (linux_target_ops): Install linux_unpause_all.
17768 * server.c (handle_status): Adjust.
17769 * target.h (struct target_ops): New fields `unpause_all' and
17770 `cancel_breakpoints'. Add new parameter to `pause_all'.
17771 (pause_all): Add new `freeze' parameter.
17772 (unpause_all): New.
17773 (cancel_breakpoints): New.
17774 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17775 cancel breakpoints.
17776 (cmd_qtstart): Pause threads.
17777 (stop_tracing): Pause threads, and cancel breakpoints.
17778 * win32-low.c (win32_target_ops): Adjust.
17780 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17782 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17783 the inferior right away from here...
17784 (linux_wait_1): ... to here, and adjust to check the thread's
17785 last_resume_kind instead of the lwp's step or stop_expected flags.
17787 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17789 * README: Use consistent `GDB' and `GDBserver' spellings.
17791 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17793 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17794 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17795 (linux_detach_one_lwp): Assume the lwp is stopped.
17796 (any_thread_of): Delete.
17797 (linux_detach): Stop all lwps here. Don't blindly delete all
17799 (delete_lwp_callback): New.
17800 (linux_mourn): Delete all lwps of the process that is gone.
17801 (linux_wait_1): Don't delete the last lwp of the process here.
17802 * mem-break.h (mark_breakpoints_out): Declare.
17803 * mem-break.c (mark_breakpoints_out): New.
17804 (free_all_breakpoints): Use it.
17805 * server.c (handle_target_event): If the process is gone, mark
17807 * thread-db.c (struct thread_db) <create_bp>: New field.
17808 (thread_db_enable_reporting): Fix prototype. Store a thread event
17809 breakpoint reference in the thread_db struct.
17810 (thread_db_load_search): Clear the thread_db object.
17811 (try_thread_db_load_1): Ditto.
17812 (switch_to_process): New.
17813 (disable_thread_event_reporting): Use it.
17814 (remove_thread_event_breakpoints): New.
17815 (thread_db_detach, thread_db_mourn): Use it.
17817 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17819 * linux-low.c (linux_enable_event_reporting): New.
17820 (linux_wait_for_event_1, handle_extended_wait): Use it.
17822 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17824 * linux-low.c (linux_kill_one_lwp, linux_kill)
17825 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17826 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17827 SIGSTOP even if the LWP is stopped.
17828 (send_sigstop_callback): New.
17829 (stop_all_lwps): Use send_sigstop_callback instead.
17830 (linux_resume_one_thread): Adjust.
17831 (proceed_one_lwp): Still proceed an LWP that the client has
17832 requested to stop, if we haven't reported it as stopped yet. Make
17833 sure that LWPs the client want stopped, have a pending SIGSTOP.
17835 2010-04-26 Doug Evans <dje@google.com>
17837 * server.c (handle_general_set): Make static.
17839 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17840 Print received char after testing for error/eof instead of before.
17841 (input_interrupt): Tweak comment.
17843 2010-04-23 Doug Evans <dje@google.com>
17845 * server.c (start_inferior): Print inferior argv if --debug.
17847 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17849 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17850 * nto-x86-low.c: Include server.h
17852 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17854 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17855 be consistent with other sources of this directory.
17856 (init_registers_amd64): Correct name of source file of this function
17859 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17861 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17862 64-bit executables.
17864 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17866 * win32-i386-low.c: Add 64-bit support.
17867 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17868 (init_registers_amd64): Declare.
17869 (mappings): Add 64-bit version of array.
17870 (init_windows_x86): New function.
17871 (the_low_target): Change init_arch field to init_windows_x86.
17873 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17875 * win32-low.c: Adapt to support also 64-bit architecture.
17876 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17877 (get_image_name): Use SIZE_T type for local variable `done'.
17878 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17879 (toolhelp_get_dll_name): Idem.
17880 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17881 Use uintptr_t typecast to avoid warning.
17882 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17883 (handle_exception): Use phex_nz to avoid warning.
17884 (win32_wait): Remove unused local variable `process'.
17886 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17888 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17891 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17893 * configure.ac: Use `ws2_32' library for srv_mingw.
17894 * configure: Regenerate.
17895 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17896 * remote-utils.c: Likewise.
17898 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17900 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17901 if __x86_64__ is defined.
17903 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17905 * configure: Regenerate.
17907 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17909 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17910 * target.h (target_ops): New get_tib_address field.
17911 * win32-low.h (win32_thread_info): Add thread_local_base field.
17912 * win32-low.c (child_add_thread): Add tlb argument.
17913 Set thread_local_base field to TLB.
17914 (get_child_debug_event): Adapt to child_add_thread change.
17915 (win32_get_tib_address): New function.
17916 (win32_target_ops): Set get_tib_address field to
17917 win32_get_tib_address.
17918 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17920 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17922 * linux-low.c (linux_mourn): Also remove the process.
17923 * server.c (handle_target_event): Don't remove the process here.
17924 * nto-low.c (nto_mourn): New.
17925 (nto_target_ops): Install it.
17926 * spu-low.c (spu_mourn): New.
17927 (spu_target_ops): Install it.
17928 * win32-low.c (win32_mourn): New.
17929 (win32_target_ops): Install it.
17931 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17933 * server.h (buffer_xml_printf): Remove redundant `;'.
17935 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17937 * regcache.c (set_register_cache): Invalidate regcaches before
17938 changing the register cache layout.
17939 (regcache_invalidate_one): Allow a NULL regcache.
17940 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17941 regcaches before changing the register cache layout or the target
17944 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17946 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17947 variable warning on Linux/x86-64.
17949 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17951 GDBserver disconnected tracing support.
17953 * linux-low.c (linux_remove_process): Delete.
17954 (add_lwp): Don't set last_resume_kind here.
17955 (linux_kill): Use `mourn'.
17956 (linux_detach): Use `thread_db_detach', and `mourn'.
17957 (linux_mourn): New.
17958 (linux_attach_lwp_1): Adjust comment.
17959 (linux_attach): last_resume_kind moved the thread_info; adjust.
17960 (status_pending_p_callback): Adjust.
17961 (linux_wait_for_event_1): Adjust.
17962 (count_events_callback, select_singlestep_lwp_callback)
17963 (select_event_lwp_callback, cancel_breakpoints_callback)
17964 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17965 (proceed_one_lwp): Adjust.
17966 (linux_async): Add debug output.
17967 (linux_thread_stopped): New.
17968 (linux_pause_all): New.
17969 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17971 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17972 (thread_db_free): Delete declaration.
17973 (thread_db_detach, thread_db_mourn): Declare.
17974 * thread-db.c (thread_db_init): Use thread_db_mourn.
17975 (thread_db_free): Delete, split in two.
17976 (disable_thread_event_reporting): New.
17977 (thread_db_detach): New.
17978 (thread_db_mourn): New.
17980 * server.h (struct thread_info) <last_resume_kind>: New field.
17981 <attached>: Add comment.
17982 <gdb_detached>: New field.
17983 (handler_func): Change return type to int.
17984 (handle_serial_event, handle_target_event): Ditto.
17985 (gdb_connected): Declare.
17987 (disconnected_tracing): Declare.
17988 (stop_tracing): Declare.
17990 * server.c (handle_query) <qSupported>: Report support for
17991 disconnected tracing.
17992 (queue_stop_reply_callback): Account for running threads.
17993 (gdb_wants_thread_stopped): New.
17994 (gdb_wants_all_threads_stopped): New.
17995 (gdb_reattached_process): New.
17996 (handle_status): Clear the `gdb_detached' flag of all processes.
17997 In all-stop, stop all threads.
17998 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17999 (process_serial_event): If the remote connection breaks, or if an
18000 exit was forced with "monitor exit", force an event loop exit.
18001 Handle disconnected tracing on detach.
18002 (handle_serial_event): Adjust.
18003 (handle_target_event): If GDB isn't connected, forward events back
18004 to the inferior, unless the last process exited, in which case,
18005 exit gdbserver. Adjust interface.
18007 * remote-utils.c (remote_open): Don't block in accept. Instead
18008 register an event loop source on the listen socket file
18009 descriptor. Refactor bits into ...
18010 (listen_desc): ... this new global.
18011 (gdb_connected): ... this new function.
18012 (enable_async_notification): ... this new function.
18013 (handle_accept_event): ... this new function.
18014 (remote_close): Clear remote_desc.
18016 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18018 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18020 (mourn_inferior): Define.
18021 (target_process_qsupported): Avoid the dangling else problem.
18022 (thread_stopped): Define.
18023 (pause_all): Define.
18024 (target_waitstatus_to_string): Declare.
18025 * target.c (target_waitstatus_to_string): New.
18027 * tracepoint.c (tracing): Make extern.
18028 (disconnected_tracing): New.
18029 (stop_tracing): Make extern. Handle tracing stops due to GDB
18031 (cmd_qtdisconnected): New.
18032 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18033 (handle_tracepoint_general_set): Handle QTDisconnected.
18035 * event-loop.c (event_handler_func): Change return type to int.
18036 (process_event): Bail out if the event handler wants the event
18038 (handle_file_event): Ditto.
18039 (start_event_loop): Bail out if the event handler wants the event
18042 * nto-low.c (nto_target_ops): Adjust.
18043 * spu-low.c (spu_wait): Don't remove the process here.
18044 (spu_target_ops): Adjust.
18045 * win32-low.c (win32_wait): Don't remove the process here.
18046 (win32_target_ops): Adjust.
18048 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18050 * regcache.c (realloc_register_cache): Invalidate inferior's
18051 regcache before recreating it.
18053 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18055 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18057 2010-04-09 Stan Shebs <stan@codesourcery.com>
18058 Pedro Alves <pedro@codesourcery.com>
18060 * server.h (LONGEST): New.
18061 (struct thread_info) <while_stepping>: New field.
18062 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18064 (initialize_tracepoint, handle_tracepoint_general_set)
18065 (handle_tracepoint_query, tracepoint_finished_step)
18066 (tracepoint_was_hit, release_while_stepping_state_list):
18067 (current_traceframe): Declare.
18068 * server.c (handle_general_set): Handle tracepoint packets.
18069 (read_memory): New.
18070 (write_memory): New.
18071 (handle_search_memory_1): Use read_memory.
18072 (handle_query): Report support for conditional tracepoints, trace
18073 state variables, and tracepoint sources. Handle tracepoint
18075 (main): Initialize the tracepoints module.
18076 (process_serial_event): Handle traceframe reads/writes.
18078 * linux-low.c (handle_tracepoints): New.
18079 (linux_wait_1): Call it.
18080 (linux_resume_one_lwp): Handle while-stepping.
18081 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18082 (linux_target_ops): Install them.
18083 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18085 * linux-x86-low.c (x86_supports_tracepoints): New.
18086 (the_low_target). Install it.
18088 * mem-break.h (delete_breakpoint): Declare.
18089 * mem-break.c (delete_breakpoint): Make external.
18091 * target.h (struct target_ops): Add `supports_tracepoints',
18092 `read_pc', and `write_pc' fields.
18093 (target_supports_tracepoints): Define.
18094 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18097 * regcache.h (struct regcache) <registers_owned>: New field.
18098 (init_register_cache, regcache_cpy): Declare.
18099 (regcache_read_pc, regcache_write_pc): Declare.
18100 (register_cache_size): Declare.
18101 (supply_regblock): Declare.
18102 * regcache.c (init_register_cache): New.
18103 (new_register_cache): Use it.
18104 (regcache_cpy): New.
18105 (register_cache_size): New.
18106 (supply_regblock): New.
18107 (regcache_read_pc, regcache_write_pc): New.
18109 * tracepoint.c: New.
18111 * Makefile.in (OBS): Add tracepoint.o.
18112 (tracepoint.o): New rule.
18114 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18116 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18118 (i386-mmx.c): Likewise.
18119 (i386-mmx-linux.o): Likewise.
18120 (i386-mmx-linux.c): Likewise.
18122 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18123 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18124 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18125 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18127 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18128 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18129 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18131 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18133 * Makefile.in (clean): Updated.
18135 (i386-avx.c): Likewise.
18136 (i386-avx-linux.o): Likewise.
18137 (i386-avx-linux.c): Likewise.
18138 (amd64-avx.o): Likewise.
18139 (amd64-avx.c): Likewise.
18140 (amd64-avx-linux.o): Likewise.
18141 (amd64-avx-linux.c): Likewise.
18143 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18144 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18145 (srv_amd64_regobj): Add amd64-avx.o.
18146 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18147 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18148 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18149 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18150 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18151 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18152 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18154 * i387-fp.c: Include "i386-xstate.h".
18156 (i387_cache_to_xsave): Likewise.
18157 (i387_xsave_to_cache): Likewise.
18158 (x86_xcr0): Likewise.
18160 * i387-fp.h (i387_cache_to_xsave): Likewise.
18161 (i387_xsave_to_cache): Likewise.
18162 (x86_xcr0): Likewise.
18164 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18165 * linux-crisv32-low.c (target_regsets): Likewise.
18166 * linux-m68k-low.c (target_regsets): Likewise.
18167 * linux-mips-low.c (target_regsets): Likewise.
18168 * linux-ppc-low.c (target_regsets): Likewise.
18169 * linux-s390-low.c (target_regsets): Likewise.
18170 * linux-sh-low.c (target_regsets): Likewise.
18171 * linux-sparc-low.c (target_regsets): Likewise.
18172 * linux-xtensa-low.c (target_regsets): Likewise.
18174 * linux-low.c: Include <sys/uio.h>.
18175 (regsets_fetch_inferior_registers): Support nt_type.
18176 (regsets_store_inferior_registers): Likewise.
18177 (linux_process_qsupported): New.
18178 (linux_target_ops): Add linux_process_qsupported.
18180 * linux-low.h (regset_info): Add nt_type.
18181 (linux_target_ops): Add process_qsupported.
18183 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18185 (init_registers_i386_avx_linux): New.
18186 (init_registers_amd64_avx_linux): Likewise.
18187 (xmltarget_i386_linux_no_xml): Likewise.
18188 (xmltarget_amd64_linux_no_xml): Likewise.
18189 (PTRACE_GETREGSET): Likewise.
18190 (PTRACE_SETREGSET): Likewise.
18191 (x86_fill_xstateregset): Likewise.
18192 (x86_store_xstateregset): Likewise.
18193 (use_xml): Likewise.
18194 (x86_linux_update_xmltarget): Likewise.
18195 (x86_linux_process_qsupported): Likewise.
18196 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18197 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18198 init_registers_i386_linux here. Call
18199 x86_linux_update_xmltarget.
18200 (the_low_target): Add x86_linux_process_qsupported.
18202 * server.c (handle_query): Call target_process_qsupported.
18204 * target.h (target_ops): Add process_qsupported.
18205 (target_process_qsupported): New.
18207 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18209 * inferiors.c (add_thread): Set last_status kind to
18210 TARGET_WAITKIND_IGNORE.
18211 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18212 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18213 (linux_wait_1): Move `thread' local definition to block that uses
18214 it. Don't NULL initialize `event_child'.
18215 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18216 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18217 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18219 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18221 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18222 an extended waitstatus, or by a watchpoint.
18223 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18224 thread was stepping or has been stopped by a watchpoint.
18226 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18228 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18229 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18230 of another, then delete the previous, and validate all
18232 (validate_inserted_breakpoint): New.
18233 (delete_disabled_breakpoints): New.
18234 (validate_breakpoints): New.
18235 (check_mem_read): Validate breakpoints before trusting their
18236 shadow. Delete disabled breakpoints.
18237 (check_mem_write): Validate breakpoints before trusting they
18238 should be inserted. Delete disabled breakpoints.
18239 * mem-break.h (validate_breakpoints):
18240 * server.c (handle_query): Validate breakpoints when we see a
18243 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18245 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18246 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18247 if we could tell there's a GDB breakpoint at stop_pc.
18248 (need_step_over_p): Don't do a step over if we find a GDB
18249 breakpoint at the resume PC.
18251 * mem-break.c (struct raw_breakpoint): New.
18252 (enum bkpt_type): New type `gdb_breakpoint'.
18253 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18254 fields. New field `raw'.
18255 (find_raw_breakpoint_at): New.
18256 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18257 breakpoint instead.
18258 (set_breakpoint_at): Adjust.
18259 (delete_raw_breakpoint): New.
18260 (release_breakpoint): New.
18261 (delete_breakpoint): Rename to...
18262 (delete_breakpoint_1): ... this. Add proc parameter. Use
18263 release_breakpoint. Return ENOENT.
18264 (delete_breakpoint): Reimplement.
18265 (find_breakpoint_at): Delete.
18266 (find_gdb_breakpoint_at): New.
18267 (delete_breakpoint_at): Delete.
18268 (set_gdb_breakpoint_at): New.
18269 (delete_gdb_breakpoint_at): New.
18270 (gdb_breakpoint_here): New.
18271 (set_reinsert_breakpoint): Use release_breakpoint.
18272 (uninsert_breakpoint): Rename to ...
18273 (uninsert_raw_breakpoint): ... this.
18274 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18275 (reinsert_raw_breakpoint): Change parameter type to
18277 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18279 (check_breakpoints): Adjust. Use release_breakpoint.
18280 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18281 (breakpoint_inserted_here): Ditto.
18282 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18283 Don't trust the breakpoint's shadow if it is not inserted.
18284 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18285 (delete_all_breakpoints): Adjust.
18286 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18287 use delete_breakpoint_1.
18289 * mem-break.h (breakpoints_supported): Delete declaration.
18290 (set_gdb_breakpoint_at): Declare.
18291 (gdb_breakpoint_here): Declare.
18292 (delete_breakpoint_at): Delete.
18293 (delete_gdb_breakpoint_at): Declare.
18295 * server.h (struct raw_breakpoint): Forward declare.
18296 (struct process_info): New field `raw_breakpoints'.
18298 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18301 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18303 * linux-low.c (status_pending_p_callback): Fix comment.
18304 (linux_wait_for_event_1): Move most of the internal breakpoint
18305 handling from here...
18306 (linux_wait_1): ... to here.
18307 (count_events_callback): New.
18308 (select_singlestep_lwp_callback): New.
18309 (select_event_lwp_callback): New.
18310 (cancel_breakpoints_callback): New.
18311 (select_event_lwp): New.
18312 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18313 priority to all LWPs that have had events that should be reported
18314 to the client. Cancel breakpoints when about to reporting the
18315 event to the client, not while stopping lwps. No longer cancel
18316 finished single-steps here.
18317 (cancel_finished_single_step): Delete.
18318 (cancel_finished_single_steps): Delete.
18320 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18322 * mem-break.c (enum bkpt_type): New.
18323 (struct breakpoint): New field `type'.
18324 (set_breakpoint_at): Change return type to struct breakpoint
18325 pointer. Set type to `other_breakpoint' by default.
18326 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18327 in the breakpoint list.
18328 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18329 (reinsert_breakpoint): Rename to ...
18330 (reinsert_raw_breakpoint): ... this.
18331 (reinsert_breakpoints_at): Adjust.
18332 * mem-break.h (struct breakpoint): Declare.
18333 (set_breakpoint_at): Change return type to struct breakpoint
18336 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18338 * server.c (handle_query): Assign, not compare.
18340 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18342 Teach linux gdbserver to step-over-breakpoints.
18344 * linux-low.c (can_hardware_single_step): New.
18345 (supports_breakpoints): New.
18346 (handle_extended_wait): If stopping threads, read the stop pc of
18347 the new cloned LWP.
18349 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18350 low target doesn't support retrieving the PC.
18351 (add_lwp): Set last_resume_kind to resume_continue.
18352 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18353 (linux_attach): Don't clear stop_expected. Set the lwp's
18354 last_resume_kind to resume_stop.
18355 (linux_detach_one_lwp): Don't check for removed breakpoints.
18356 (check_removed_breakpoint): Delete.
18357 (status_pending_p): Rename to ...
18358 (status_pending_p_callback): ... this. Don't check for removed
18359 breakpoints. Don't consider threads that are stopped from GDB's
18361 (linux_wait_for_lwp): Always read the stop_pc here.
18362 (cancel_breakpoint): New.
18363 (step_over_bkpt): New global.
18364 (linux_wait_for_event_1): Implement stepping over breakpoints.
18365 (gdb_wants_lwp_stopped): New.
18366 (gdb_wants_all_stopped): New.
18367 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18368 single-step traps here. Store the thread's last reported target
18370 (send_sigstop): Don't clear stop_expected. Always set it,
18372 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18373 (cancel_finished_single_step): New.
18374 (cancel_finished_single_steps): New.
18375 (wait_for_sigstop): Don't cancel finished single-step traps here.
18376 (linux_resume_one_lwp): Don't check for removed breakpoints.
18377 Don't set `step' on non-hardware step archs.
18378 (linux_set_resume_request): Ignore resume_stop requests if already
18379 stopping or stopped. Set the lwp's last_resume_kind.
18380 (resume_status_pending_p): Don't check for removed breakpoints.
18381 (need_step_over_p): New.
18382 (start_step_over): New.
18383 (finish_step_over): New.
18384 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18385 requests. Clear the thread's last reported target waitstatus.
18386 Don't use the `suspended' flag. Don't consider pending breakpoints.
18387 (linux_resume): Start a step-over if necessary.
18388 (proceed_one_lwp): New.
18389 (proceed_all_lwps): New.
18390 (unstop_all_lwps): New.
18391 * linux-low.h (struct lwp_info): Rewrite comment for the
18392 `suspended' flag. Add the `stop_pc' field. Delete the
18393 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18394 Add `'last_resume_kind' and `need_step_over' fields.
18395 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18396 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18397 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18398 (set_raw_breakpoint_at): New.
18399 (set_breakpoint_at): Rewrite to use it.
18400 (reinsert_breakpoint_handler): Delete.
18401 (set_reinsert_breakpoint): New.
18402 (reinsert_breakpoint_by_bp): Delete.
18403 (delete_reinsert_breakpoints): New.
18404 (uninsert_breakpoint): Rewrite.
18405 (uninsert_breakpoints_at): New.
18406 (reinsert_breakpoint): Rewrite.
18407 (reinsert_breakpoints_at): New.
18408 (check_breakpoints): Rewrite.
18409 (breakpoint_here): New.
18410 (breakpoint_inserted_here): New.
18411 (check_mem_read): Adjust.
18412 * mem-break.h (breakpoints_supported, breakpoint_here)
18413 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18414 (reinsert_breakpoint_by_bp): Delete declaration.
18415 (delete_reinsert_breakpoints): Declare.
18416 (reinsert_breakpoint): Delete declaration.
18417 (reinsert_breakpoints_at): Declare.
18418 (uninsert_breakpoint): Delete declaration.
18419 (uninsert_breakpoints_at): Declare.
18420 (check_breakpoints): Adjust prototype.
18421 * server.h: Adjust include order.
18422 (struct thread_info): Declare here. Add a `last_status' field.
18424 2010-03-23 Michael Snyder <msnyder@vmware.com>
18426 * server.c (crc32): New function.
18427 (handle_query): Add handling for 'qCRC:' request.
18429 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18431 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18432 lwp had been stopped by a watchpoint.
18434 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18436 * server.h (internal_error): Declare.
18437 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18438 * utils.c (internal_error): New function.
18440 2010-03-15 Andreas Schwab <schwab@redhat.com>
18442 * configure.srv: Fix typo setting srv_regobj.
18444 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18446 * linux-low.c (fetch_register): Avoid passing a non string literal
18448 (usr_store_inferior_registers): Ditto.
18450 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18452 * linux-low.c (linux_write_memory): Bail out early if peeking
18455 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18457 * linux-low.h (struct lwp_info): New fields
18458 `stopped_by_watchpoint' and `stopped_data_address'.
18459 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18460 here, and cache them in the lwp object.
18461 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18463 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18465 (linux_stopped_by_watchpoint): Rewrite.
18466 (linux_stopped_data_address): Rewrite.
18468 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18470 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18471 switching the current inferior, not before.
18473 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18475 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18476 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18477 i386-linux.c and amd64-linux.c.
18478 (reg-i386.o): Removed.
18479 (reg-i386.c): Likewise.
18480 (reg-i386-linux.o): Likewise.
18481 (reg-i386-linux.c): Likewise.
18482 (reg-x86-64.o): Likewise.
18483 (reg-x86-64.c): Likewise.
18484 (reg-x86-64-linux.o): Likewise.
18485 (reg-x86-64-linux.c): Likewise.
18487 (i386.c): Likewise.
18488 (i386-linux.o): Likewise.
18489 (i386-linux.c): Likewise.
18490 (amd64.o): Likewise.
18491 (amd64.c): Likewise.
18492 (amd64-linux.o): Likewise.
18493 (amd64-linux.c): Likewise.
18495 * configure.srv (srv_i386_regobj): New.
18496 (srv_i386_linux_regobj): Likewise.
18497 (srv_amd64_regobj): Likewise.
18498 (srv_amd64_linux_regobj): Likewise.
18499 (srv_i386_32bit_xmlfiles): Likewise.
18500 (srv_i386_64bit_xmlfiles): Likewise.
18501 (srv_i386_xmlfiles): Likewise.
18502 (srv_amd64_xmlfiles): Likewise.
18503 (srv_i386_linux_xmlfiles): Likewise.
18504 (srv_amd64_linux_xmlfiles): Likewise.
18505 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18506 srv_xmlfiles to $srv_i386_xmlfiles.
18507 (i[34567]86-*-mingw32ce*): Likewise.
18508 (i[34567]86-*-mingw*): Likewise.
18509 (i[34567]86-*-nto*): Likewise.
18510 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18511 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18512 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18513 (x86_64-*-linux*): Likewise.
18515 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18516 (init_registers_amd64_linux): New.
18517 (x86_arch_setup): Replace init_registers_x86_64_linux with
18518 init_registers_amd64_linux.
18520 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18522 * configure.ac: Check for libdl. If it is not available link against
18523 static libthread_db.
18524 * configure: Regenerate.
18526 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18530 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18531 handing a read watchpoint.
18532 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18534 2010-02-12 Doug Evans <dje@google.com>
18536 * linux-low.c (linux_supports_tracefork_flag): Document.
18537 (linux_look_up_symbols): Add comment.
18539 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18541 * regcache.c (supply_register): Clear regcache if buf is NULL.
18543 2010-02-02 Nicolas Roche <roche@sourceware.org>
18544 Joel Brobecker <brobecker@adacore.com>
18546 * inferiors.c (find_inferior): Add function documentation.
18547 (unloaded_dll): Handle the case where the unloaded dll has not
18548 been previously registered in the dll list.
18550 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18552 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18553 (thumb2_breakpoint): New.
18554 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18556 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18558 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18559 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18562 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18564 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18566 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18568 * linux-s390-low.c (s390_collect_ptrace_register)
18569 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18571 2010-01-21 Doug Evans <dje@google.com>
18573 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18574 (PTRACE_ARG4_TYPE): New macro.
18575 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18576 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18577 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18578 (usr_store_inferior_registers): Ditto.
18579 (linux_read_memory, linux_write_memory): Ditto.
18580 (linux_test_for_tracefork): Ditto.
18582 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18583 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18585 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18587 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18590 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18592 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18593 prototype to take a regcache. Adjust.
18595 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18597 * regcache.h (struct thread_info): Forward declare.
18598 (struct regcache): New.
18599 (new_register_cache): Adjust prototype.
18600 (get_thread_regcache): Declare.
18601 (free_register_cache): Adjust prototype.
18602 (registers_to_string, registers_from_string): Ditto.
18603 (supply_register, supply_register_by_name, collect_register)
18604 (collect_register_as_string, collect_register_by_name): Ditto.
18605 * regcache.c (struct inferior_regcache_data): Delete.
18606 (get_regcache): Rename to ...
18607 (get_thread_regcache): ... this. Adjust. Switch inferior before
18608 fetching registers.
18609 (regcache_invalidate_one): Adjust.
18610 (regcache_invalidate): Fix prototype.
18611 (new_register_cache): Return the new register cache.
18612 (free_register_cache): Change prototype.
18613 (realloc_register_cache): Adjust.
18614 (registers_to_string): Change prototype to take a regcache. Adjust.
18615 (registers_from_string): Ditto.
18616 (register_data): Ditto.
18617 (supply_register): Ditto.
18618 (supply_register_by_name): Ditto.
18619 (collect_register): Ditto.
18620 (collect_register_as_string): Ditto.
18621 (collect_register_by_name): Ditto.
18622 * server.c (process_serial_event): Adjust.
18623 * linux-low.h (regset_fill_func, regset_store_func): Change
18625 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18627 * linux-low.c (get_stop_pc): Adjust.
18628 (check_removed_breakpoint): Adjust.
18629 (linux_wait_for_event): Adjust.
18630 (linux_resume_one_lwp): Adjust.
18631 (fetch_register): Add regcache parameter. Adjust.
18632 (usr_store_inferior_registers): Ditto.
18633 (regsets_fetch_inferior_registers): Ditto.
18634 (regsets_store_inferior_registers): Ditto.
18635 (linux_fetch_registers, linux_store_registers): Ditto.
18636 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18638 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18640 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18641 prototype to take a regcache.
18642 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18643 * remote-utils.c (convert_ascii_to_int, outreg)
18644 (prepare_resume_reply): Change prototype to take a regcache.
18646 * target.h (struct target_ops) <fetch_registers, store_registers>:
18647 Change prototype to take a regcache.
18648 (fetch_inferior_registers, store_inferior_registers): Change
18649 prototype to take a regcache. Adjust.
18650 * proc-service.c (ps_lgetregs): Adjust.
18651 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18652 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18653 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18654 take a regcache. Adjust.
18655 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18656 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18657 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18658 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18659 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18660 (cris_cannot_fetch_register):
18661 (cris_breakpoint_at): Change prototype to take a regcache.
18663 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18664 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18665 to take a regcache. Adjust.
18666 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18668 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18669 take a regcache. Adjust.
18670 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18671 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18672 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18673 * linux-mips-low.c (mips_get_pc):
18674 (mips_set_pc): Change prototype to take a regcache. Adjust.
18675 (mips_reinsert_addr): Adjust.
18676 (mips_collect_register): Change prototype to take a regcache.
18678 (mips_supply_register):
18679 (mips_collect_register_32bit, mips_supply_register_32bit)
18680 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18681 (mips_store_fpregset): Ditto.
18682 * linux-ppc-low.c (ppc_supply_ptrace_register)
18683 (ppc_supply_ptrace_register): Ditto.
18684 (parse_spufs_run): Adjust.
18685 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18686 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18687 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18688 take a regcache. Adjust.
18689 * linux-s390-low.c (s390_collect_ptrace_register)
18690 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18691 (s390_set_pc): Change prototype to take a regcache. Adjust.
18692 (s390_arch_setup): Adjust.
18693 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18694 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18695 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18696 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18697 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18699 (sparc_breakpoint_at): Adjust.
18700 * linux-xtensa-low.c (xtensa_fill_gregset):
18701 (xtensa_store_gregset):
18702 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18703 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18704 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18705 prototype to take a regcache. Adjust.
18706 * win32-arm-low.c (arm_fetch_inferior_register)
18707 (arm_store_inferior_register): Change prototype to take a
18709 * win32-i386-low.c (i386_fetch_inferior_register)
18710 (i386_store_inferior_register): Change prototype to take a
18712 * win32-low.c (child_fetch_inferior_registers)
18713 (child_store_inferior_registers): Change prototype to take a
18715 (win32_wait): Adjust.
18716 (win32_fetch_inferior_registers): Change prototype to take a
18718 (win32_store_inferior_registers): Adjust.
18719 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18720 store_inferior_register>: Change prototype to take a regcache.
18722 2010-01-20 Doug Evans <dje@google.com>
18724 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18726 (linux_wait_for_event1, linux_init_signals): Ditto.
18727 (W_STOPCODE): Provide definition if missing.
18729 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18731 * linux-low.c (linux_core_of_thread): New.
18732 (compare_ints, show_process, list_threads): New.
18733 (linux_qxfer_osdata): Report threads and cores.
18734 (linux_target_op): Register linux_core_of_thread.
18735 * remote-utils.c (prepare_resume_reply): Report the core.
18736 (buffer_xml_printf): Support %d specifier.
18737 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18739 (handle_query): Handle qXfer:threads. Announce availability
18741 * target.h (struct target_ops): New field core_of_thread.
18743 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18745 * Makefile.in (clean): Remove new generated files.
18746 (reg-s390.o, reg-s390.c): Remove rules.
18747 (reg-s390x.o, reg-s390x.c): Likewise.
18748 (s390-linux32.o, s390-linux32.c): Add rules.
18749 (s390-linux64.o, s390-linux64.c): Likewise.
18750 (s390x-linux64.o, s390x-linux64.c): Likewise.
18751 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18752 * linux-s390-low.c: Include <elf.h>.
18753 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18754 (init_registers_s390): Remove prototype.
18755 (init_registers_s390x): Likewise.
18756 (init_registers_s390_linux32): Add prototype.
18757 (init_registers_s390_linux64): Likewise.
18758 (init_registers_s390x_linux64): Likewise.
18759 (s390_num_regs_3264): New define.
18760 (s390_regmap_3264): New global variable.
18761 (s390_cannot_fetch_register): Remove obsolete check.
18762 (s390_cannot_store_register): Likewise.
18763 (s390_collect_ptrace_register): Handle upper/lower register halves.
18764 (s390_supply_ptrace_register): Likewise.
18765 (s390_fill_gregset): Update to register number changes.
18766 (s390_get_hwcap): New routine.
18767 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18768 Install appropriate regmap and register set.
18770 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18772 * server.c (gdbserver_version): Update copyright year to 2010.
18773 * gdbreplay.c (gdbreplay_version): Likewise.
18775 2009-12-28 Doug Evans <dje@google.com>
18777 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18778 elf/external.h. Include <elf.h> instead but only if necessary.
18780 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18782 * linux-low.c (linux_remove_process): Remove `detaching'
18783 parameter. Don't release/detach from thread_db here.
18784 (linux_kill): Release/detach from thread_db here, ...
18785 (linux_detach): ... and here, before actually detaching.
18786 (linux_wait_1): ... and here, when a process exits.
18787 * thread-db.c (any_thread_of): New.
18788 (thread_db_free): Switch the current inferior to a thread of the
18791 2009-12-21 Doug Evans <dje@google.com>
18793 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18795 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18796 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18797 warning ifndef __NR_tkill. Move setting of errno there too.
18798 Delete unnecessary resetting of errno after syscall.
18799 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18801 * configure.ac: Check for dladdr.
18802 * config.in: Regenerate.
18803 * configure: Regenerate.
18804 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18805 (try_thread_db_load): Update.
18807 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18809 2009-12-18 Doug Evans <dje@google.com>
18811 * event-loop.c: Include unistd.h if it exists.
18813 * linux-low.c (my_waitpid): Move definition away from being in
18814 between linux_tracefork_child/linux_test_for_tracefork.
18816 * gdb_proc_service.h (psaddr_t): Fix type.
18817 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18818 signature to match glibc.
18820 2009-12-16 Doug Evans <dje@google.com>
18822 * linux-low.c (linux_read_memory): Fix argument to read.
18824 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18826 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18827 events, don't leave current_inferior pointing at null.
18829 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18831 * win32-low.c (LOG): Delete.
18832 (OUTMSG): Output to stderr.
18833 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18834 on compile time LOG macro.
18835 (win32_wait): Fix debug output.
18837 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18839 * win32-low.c (win32_add_one_solib): If the dll name is
18840 "ntdll.dll", prepend the system directory to the dll path.
18842 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18844 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18846 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18847 Vladimir Prus <vladimir@codesourcery.com>
18849 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18850 * configure.ac: Check for __mcoldfire__ and set
18851 gdb_cv_m68k_is_coldfire.
18852 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18853 reg-cf.o and reg-m68k.o.
18854 * configure: Regenerated.
18856 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18858 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18859 Pass it to thread_db_free.
18860 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18861 proper `detaching' argument to linux_remove_process.
18862 * linux-low.h (thread_db_free): Add `detaching' parameter.
18863 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18865 (thread_db_free): Add `detaching' parameter. Only
18866 call td_ta_clear_event if detaching from process.
18868 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18870 * thread-db.c (thread_db_free): Fix typo.
18872 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18875 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18877 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18879 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18880 with an i686 compiler.
18881 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18883 * configure: Rebuilt.
18885 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18889 * server.c (handle_search_memory_1): Correct read_addr initialization
18890 in loop for searching subsequent chunks.
18892 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18894 * configure.ac: New --with-libthread-db option.
18895 * thread-db.c: Allow direct dependence on libthread_db.
18896 (thread_db_free): Adjust.
18897 * config.in: Regenerate.
18898 * configure: Likewise.
18900 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18903 * thread-db.c (attach_thread): New function.
18904 (maybe_attach_thread): Return success/failure.
18905 (find_new_threads_callback): Adjust.
18906 (thread_db_find_new_threads): Loop until no new threads.
18908 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18910 * proc-service.c (ps_lgetregs): Formatting.
18912 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18914 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18915 * configure.ac: Adjust.
18916 * linux-low.h (struct process_info_private): Move members to struct
18918 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18919 * linux-low.c (linux_remove_process): Adjust.
18920 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18921 * server.c (handle_query): Move code ...
18922 (handle_monitor_command): ... here. New function.
18923 * target.h (struct target_ops): New member.
18924 * thread-db.c (struct thread_db): New.
18925 (libthread_db_search_path): New variable.
18926 (thread_db_create_event, thread_db_enable_reporting)
18927 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18928 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18929 (try_thread_db_load_1, dladdr_to_soname): New functions.
18930 (try_thread_db_load, thread_db_load_search): New functions.
18931 (thread_db_init): Search for libthread_db.
18932 (thread_db_free): New function.
18933 (thread_db_handle_monitor_command): Likewise.
18934 * config.in: Regenerate.
18935 * configure: Regenerate.
18937 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18939 * spu-low.c (spu_kill): Wait for inferior to terminate.
18940 Call clear_inferiors.
18941 (spu_detach): Call clear_inferiors.
18943 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18945 * aclocal.m4: Regenerate.
18946 * config.in: Likewise.
18947 * configure: Likewise.
18949 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18951 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18952 (parse_spufs_run): New function.
18953 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18954 (ppc_breakpoint_at): Handle SPU breakpoints.
18956 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18958 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18959 (SPUFS_MAGIC): Define.
18960 (spu_enumerate_spu_ids): New function.
18961 (linux_qxfer_spu): New function.
18962 (linux_target_ops): Install linux_qxfer_spu.
18964 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18966 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18967 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18968 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18969 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18970 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18971 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18972 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18973 (init_registers_powerpc_cell32l): Add prototype.
18974 (init_registers_powerpc_cell64l): Likewise.
18975 (ppc_arch_setup): Detect Cell/B.E. architecture.
18977 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18979 * Makefile.in (datarootdir): New variable.
18981 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18983 * linux-low.c (linux_write_memory): Update debugging output.
18984 * Makefile.in (clean): Add new descriptions.
18985 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18986 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18987 * configure.srv: Add new files for arm*-*-linux*.
18988 * linux-arm-low.c: Add new declarations.
18989 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18990 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18991 (HWCAP_VFPv3D16): New.
18992 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18993 instead of __IWMMXT__.
18994 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18995 (arm_arch_setup): New.
18996 (target_regsets): Remove #ifdef. Add VFP regset.
18997 (the_low_target): Use arm_arch_setup.
18999 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19001 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19002 the main thread again.
19004 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19006 Adding Neutrino gdbserver.
19007 * configure: Regenerated.
19008 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19009 * configure.srv (i[34567]86-*-nto*): New target.
19010 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19011 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19012 (nto_comctrl) [__QNX__]: New function.
19013 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19015 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19017 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19020 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19021 Pedro Alves <pedro@codesourcery.com>
19023 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19024 don't support CONTEXT_EXTENDED_REGISTERS.
19025 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19026 (the_low_target): Install them.
19027 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19028 failing with ERROR_PIPE_NOT_CONNECTED.
19030 2009-06-30 Doug Evans <dje@google.com>
19031 Pierre Muller <muller@ics.u-strasbg.fr>
19033 Add h/w watchpoint support to x86-linux, win32-i386.
19034 * Makefile.in (SFILES): Add i386-low.c
19035 (i386_low_h): Define.
19036 (i386-low.o): Add dependencies.
19037 (linux-x86-low.o): Add i386-low.h dependency.
19038 (win32-i386-low.o): Ditto.
19039 * i386-low.c: New file.
19040 * i386-low.h: New file.
19041 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19042 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19043 * linux-low.c (linux_add_process): Initialize arch_private.
19044 (linux_remove_process): Free arch_private.
19045 (add_lwp): Initialize arch_private.
19046 (delete_lwp): Free arch_private.
19047 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19049 * linux-low.h (process_info_private): New member arch_private.
19050 (lwp_info): New member arch_private.
19051 (linux_target_ops): New members new_process, new_thread,
19053 (ptid_of): New macro.
19054 * linux-x86-low.c: Include stddef.h, i386-low.h.
19055 (arch_process_info): New struct.
19056 (arch_lwp_info): New struct.
19057 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19058 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19059 (i386_dr_low_get_status): New function.
19060 (x86_insert_point, x86_remove_point): New functions.
19061 (x86_stopped_by_watchpoint): New function.
19062 (x86_stopped_data_address): New function.
19063 (x86_linux_new_process, x86_linux_new_thread): New functions.
19064 (x86_linux_prepare_to_resume): New function.
19065 (the_low_target): Add entries for insert_point, remove_point,
19066 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19068 * server.c (debug_hw_points): New global.
19069 (monitor_show_help): Document set debug-hw-points.
19070 (handle_query): Process "set debug-hw-points".
19071 * server.h (debug_hw_points): Declare.
19072 (paddress): Declare.
19073 * utils.c (NUMCELLS, CELLSIZE): New macros.
19074 (get_sell, xsnprintf, paddress): New functions.
19075 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19076 remove_point, stopped_by_watchpoint, stopped_data_address.
19077 * win32-i386-low.c: Include i386-low.h.
19078 (debug_reg_state): Replaces dr.
19079 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19080 (i386_dr_low_get_status): New function.
19081 (i386_insert_point, i386_remove_point): New functions.
19082 (i386_stopped_by_watchpoint): New function.
19083 (i386_stopped_data_address): New function.
19084 (i386_initial_stuff): Update.
19085 (get_thread_context,set_thread_context,i386_thread_added): Update.
19086 (the_low_target): Add entries for insert_point,
19087 remove_point, stopped_by_watchpoint, stopped_data_address.
19088 * win32-low.c (win32_insert_watchpoint): New function.
19089 (win32_remove_watchpoint): New function.
19090 (win32_stopped_by_watchpoint): New function.
19091 (win32_stopped_data_address): New function.
19092 (win32_target_ops): Add entries for insert_watchpoint,
19093 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19094 * win32-low.h (win32_target_ops): New members insert_point,
19095 remove_point, stopped_by_watchpoint, stopped_data_address.
19097 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19099 * server.c (process_serial_event): Re-return unsupported, not
19100 error, if the type isn't recognized. Re-allow supporting only
19101 insert or remove packets. Also call require_running for
19102 breakpoints. Add missing break statement to default case. Tidy.
19103 * target.h (struct target_ops): Rename insert_watchpoint to
19104 insert_point, and remove_watchpoint to remove_point.
19106 * linux-low.h (struct linux_target_ops): Likewise.
19107 * linux-low.c (linux_insert_watchpoint): Rename to ...
19108 (linux_insert_point): ... this. Adjust.
19109 (linux_remove_watchpoint): Rename to ...
19110 (linux_remove_point): ... this. Adjust.
19111 (linux_target_ops): Adjust.
19112 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19113 (cris_insert_point): ... this.
19114 (cris_remove_watchpoint): Rename to ...
19115 (cris_remove_point): ... this.
19116 (the_low_target): Adjust.
19118 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19120 * server.c (handle_v_kill): Pass signal_pid to
19121 kill_inferior if multi_process is zero.
19123 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19125 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19126 * target.h (target_ops): Comment for *_watchpoint to make it clear
19127 the functions can get types '0' and '1'.
19129 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19131 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19132 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19133 * regcache.c (get_regcache): Likewise.
19134 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19135 * win32-low.c (child_fetch_inferior_registers): Remove check for
19138 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19139 Pedro Alves <pedro@codesourcery.com>
19141 * target.h (struct target_ops) <supports_multi_process>: New
19143 (target_supports_multi_process): New.
19144 * server.c (handle_query): Even if GDB reports support, only
19145 enable multi-process if the target also supports it. Report
19146 multi-process support only if the target backend supports it.
19147 * linux-low.c (linux_supports_multi_process): New function.
19148 (linux_target_ops): Install it as target_supports_multi_process
19151 2009-05-24 Doug Evans <dje@google.com>
19153 Global renaming of find_thread_pid to find_thread_ptid.
19154 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19155 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19156 All callers updated.
19158 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19159 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19162 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19163 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19164 (linux_resume_one_lwp): Ditto.
19166 2009-05-23 Doug Evans <dje@google.com>
19168 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19169 from struct inferior_list_entry * to struct lwp_info *.
19170 All callers updated.
19172 2009-05-13 Doug Evans <dje@google.com>
19174 * linux-x86-low.c: Don't include assert.h.
19175 (x86_siginfo_fixup): Use fatal, not assert.
19176 (x86_arch_setup): Fix comment.
19178 2009-05-12 Doug Evans <dje@google.com>
19180 Biarch support for i386/amd64 gdbserver.
19181 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19182 Add linux-x86-low.c.
19183 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19184 (linux-x86-low.o): Add.
19185 * linux-x86-64-low.c: Delete.
19186 * linux-i386-low.c: Delete.
19187 * linux-x86-low.c: New file.
19188 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19190 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19192 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19193 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19194 (linux_child_pid_to_exec_file): New function.
19195 (elf_64_header_p, elf_64_file_p): New functions.
19196 (siginfo_fixup): New function.
19197 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19198 give target a chance to convert layout.
19199 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19200 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19202 2009-05-07 Doug Evans <dje@google.com>
19204 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19205 (regsets_store_inferior_registers): Ditto.
19207 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19211 * linux-low.c (must_set_ptrace_flags): Delete.
19212 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19214 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19215 `lwp->must_set_ptrace_flags' instead.
19216 (linux_wait_for_event_1): Set ptrace options here.
19217 (linux_wait_1): ... not here.
19219 2009-04-30 Doug Evans <dje@google.com>
19221 * inferiors.c (started_inferior_callback): New function.
19222 (attached_inferior_callback): New function.
19223 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19224 * server.c (print_started_pid, print_attached_pid): New functions.
19225 (detach_or_kill_for_exit): New function.
19226 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19227 * server.h (have_started_inferiors_p): Declare.
19228 (have_attached_inferiors_p): Declare.
19230 * inferiors.c (remove_process): Fix memory leak, free process.
19231 * linux-low.c (linux_remove_process): New function.
19232 (linux_kill): Call it instead of remove_process.
19233 (linux_detach, linux_wait_1): Ditto.
19235 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19237 * configure.srv: Add x86 Windows CE target.
19239 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19241 * inferiors.c (get_thread_process): Make global.
19242 * server.h (get_thread_process): Add prototype.
19243 * thread-db.c (find_one_thread): Use get_thread_process
19244 instead of current_process.
19245 (thread_db_get_tls_address): Do not crash if called when
19246 thread layer is not yet initialized.
19248 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19250 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19251 * spu-low.c (current_tid): Rename to ...
19252 (current_ptid): ... this.
19253 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19254 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19255 ptid_get_lwp (current_ptid) instead of current_tid.
19256 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19257 instead of current_tid. Use find_process_pid to verify pid
19258 argument is valid. Pass proper argument to remove_process.
19259 (spu_thread_alive): Compare current_ptid instead of current_tid.
19260 (spu_resume): Likewise.
19262 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19264 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19267 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19269 Implement the multiprocess extensions, and add linux multiprocess
19272 * server.h (ULONGEST): Declare.
19273 (struct ptid, ptid_t): New.
19274 (minus_one_ptid, null_ptid): Declare.
19275 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19276 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19277 (struct inferior_list_entry): Change `id' type from unsigned from
19279 (struct sym_cache, struct breakpoint, struct
19280 process_info_private): Forward declare.
19281 (struct process_info): Declare.
19282 (current_process): Declare.
19283 (all_processes): Declare.
19284 (initialize_inferiors): Declare.
19285 (add_thread): Adjust to use ptid_t.
19286 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19287 (add_process, remove_process, find_thread_pid): Declare.
19288 (find_inferior_id): Adjust to use ptid_t.
19289 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19290 (multi_process): Declare.
19291 (push_event): Adjust to use ptid_t.
19292 (read_ptid, write_ptid): Declare.
19293 (prepare_resume_reply): Adjust to use ptid_t.
19294 (clear_symbol_cache): Declare.
19295 * inferiors.c (all_processes): New.
19296 (null_ptid, minus_one_ptid): New.
19297 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19298 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19299 (add_thread): Change unsigned long to ptid. Remove gdb_id
19301 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19302 (gdb_id_to_thread): Rename to ...
19303 (find_thread_pid): ... this. Change unsigned long to ptid.
19304 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19305 (loaded_dll, pull_pid_from_list): Adjust.
19306 (add_process, remove_process, find_process_pid)
19307 (get_thread_process, current_process, initialize_inferiors): New.
19308 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19309 (struct target_waitstatus) <related_pid>: Ditto.
19310 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19311 return type to int.
19312 (struct target_ops) <join>: Add `pid' argument.
19313 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19314 (struct target_ops) <wait>: Add `ptid' field. Change return type
19316 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19317 (mywait): Add `ptid' argument. Change return type to ptid_t.
19318 (target_pid_to_str): Declare.
19319 * target.c (set_desired_inferior): Adjust to use ptids.
19320 (mywait): Add new `ptid' argument. Adjust.
19321 (target_pid_to_str): New.
19322 * mem-break.h (free_all_breakpoints): Declare.
19323 * mem-break.c (breakpoints): Delelete.
19324 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19325 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19326 to use per-process breakpoint list.
19327 (free_all_breakpoints): New.
19328 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19329 (symbol_cache, all_symbols_looked_up): Delete.
19331 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19333 (prepare_resume_reply): Change ptid argument's type from unsigned
19334 long to ptid_t. Adjust. Implement W;process and X;process.
19335 (free_sym_cache, clear_symbol_cache): New.
19336 (look_up_one_symbol): Adjust to per-process symbol cache. *
19337 * server.c (cont_thread, general_thread, step_thread): Change type
19339 (attached): Delete.
19340 (multi_process): New.
19341 (last_ptid): Change type to ptid_t.
19342 (struct vstop_notif) <ptid>: Change type to ptid_t.
19343 (queue_stop_reply, push_event): Change `ptid' argument's type to
19345 (discard_queued_stop_replies): Add `pid' argument.
19346 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19347 changes. Don't reference the `attached' global.
19348 (attach_inferior): Adjust to mywait interface changes.
19349 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19350 features. Handle and report "multiprocess+". Handle
19352 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19354 (handle_v_kill): New.
19355 (handle_v_stopped): Adjust to use target_pid_to_str.
19356 (handle_v_requests): Allow multiple attaches and runs when
19357 multiprocess extensions are in effect. Handle "vKill".
19358 (myresume): Adjust to use ptids.
19359 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19360 (handle_status): Adjust to discard_queued_stop_replies interface
19362 (first_thread_of, kill_inferior_callback)
19363 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19364 (main): Call initialize_inferiors. Adjust to use ptids, killing
19365 and detaching from all inferiors. Handle multiprocess packet
19367 * linux-low.h: Include gdb_proc_service.h.
19368 (struct process_info_private): New.
19369 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19370 <lwpid_of>: Use ptid_get_lwp.
19371 (get_lwp_thread): Adjust.
19372 (struct lwp_info): Add `dead' member.
19373 (find_lwp_pid): Declare.
19374 * linux-low.c (thread_db_active): Delete.
19375 (new_inferior): Adjust comment.
19376 (inferior_pid): Delete.
19377 (linux_add_process): New.
19378 (handle_extended_wait): Adjust.
19379 (add_lwp): Change unsigned long to ptid.
19380 (linux_create_inferior): Add process to processes table. Adjust
19381 to use ptids. Don't set new_inferior here.
19382 (linux_attach_lwp): Rename to ...
19383 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19384 it. Adjust to use ptids.
19385 (linux_attach_lwp): New.
19386 (linux_attach): Add process to processes table. Don't set
19388 (struct counter): New.
19389 (second_thread_of_pid_p, last_thread_of_process_p): New.
19390 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19391 multiple processes.
19392 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19393 processes. Remove process from process table.
19394 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19395 to multiple processes.
19396 (any_thread_of): New.
19397 (linux_detach): Add `pid' argument, and handle it. Remove process
19398 from processes table.
19399 (linux_join): Add `pid' argument. Handle it.
19400 (linux_thread_alive): Change unsighed long argument to ptid_t.
19401 Consider dead lwps as not being alive.
19402 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19403 threads we're not interested in.
19404 (same_lwp, find_lwp_pid): New.
19405 (linux_wait_for_lwp): Change `pid' argument's type from int to
19407 (linux_wait_for_event): Rename to ...
19408 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19409 from int to ptid_t. Adjust.
19410 (linux_wait_for_event): New.
19411 (linux_wait_1): Add `ptid' argument. Change return type to
19412 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19413 that exit from the process table.
19414 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19416 (mark_lwp_dead): New.
19417 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19418 stopping all threads, mark its main lwp as dead.
19419 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19421 (fetch_register, usr_store_inferior_registers)
19422 (regsets_fetch_inferior_registers)
19423 (regsets_store_inferior_registers, linux_read_memory)
19424 (linux_write_memory): Inline `inferior_pid'.
19425 (linux_look_up_symbols): Adjust to use per-process
19426 `thread_db_active'.
19427 (linux_request_interrupt): Adjust to use ptids.
19428 (linux_read_auxv): Inline `inferior_pid'.
19429 (initialize_low): Don't reference thread_db_active.
19430 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19431 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19432 (ps_getpid): Return the pid of the current inferior.
19433 * thread-db.c (proc_handle, thread_agent): Delete.
19434 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19436 (find_one_thread): Change argument type to ptid_t. Adjust to
19438 (maybe_attach_thread): Adjust to per-process data and ptids.
19439 (thread_db_find_new_threads): Ditto.
19440 (thread_db_init): Ditto.
19441 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19442 processes table. Adjust to use ptids.
19443 (spu_kill, spu_detach): Adjust interface. Remove process from
19445 (spu_join, spu_thread_alive): Adjust interface.
19446 (spu_wait): Adjust interface. Remove process from processes
19447 table. Adjust to use ptids.
19448 * win32-low.c (current_inferior_tid): Delete.
19449 (current_inferior_ptid): New.
19450 (debug_event_ptid): New.
19451 (thread_rec): Take a ptid. Adjust.
19452 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19453 (child_delete_thread): Ditto.
19454 (do_initial_child_stuff): Add `attached' argument. Add process to
19456 (child_fetch_inferior_registers, child_store_inferior_registers):
19458 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19459 (win32_attach): Pass 1 to do_initial_child_stuff.
19460 (win32_kill): Adjust interface. Remove process from processes
19462 (win32_detach): Ditto.
19463 (win32_join): Adjust interface.
19464 (win32_thread_alive): Take a ptid.
19465 (win32_resume): Adjust to use ptids.
19466 (get_child_debug_event): Ditto.
19467 (win32_wait): Adjust interface. Remove exiting process from
19470 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19472 Non-stop mode support.
19474 * server.h (non_stop): Declare.
19475 (gdb_client_data, handler_func): Declare.
19476 (delete_file_handler, add_file_handler, start_event_loop):
19478 (handle_serial_event, handle_target_event, push_event)
19479 (putpkt_notif): Declare.
19480 * target.h (enum resume_kind): New.
19481 (struct thread_resume): Replace `step' field by `kind' field.
19482 (TARGET_WNOHANG): Define.
19483 (struct target_ops) <wait>: Add `options' argument.
19484 <supports_non_stop, async, start_non_stop>: New fields.
19485 (target_supports_non_stop, target_async): New.
19486 (start_non_stop): Declare.
19487 (mywait): Add `options' argument.
19488 * target.c (mywait): Add `options' argument. Print child exit
19489 notifications here.
19490 (start_non_stop): New.
19491 * server.c (non_stop, own_buf, mem_buf): New globals.
19492 (struct vstop_notif): New.
19493 (notif_queue): New global.
19494 (queue_stop_reply, push_event, discard_queued_stop_replies)
19495 (send_next_stop_reply): New.
19496 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19498 (attach_inferior): In non-stop mode, don't wait for the target
19500 (handle_general_set): Handle QNonStop.
19501 (handle_query): When handling qC, return the current general
19502 thread, instead of the first thread of the list.
19503 (handle_query): If the backend supports non-stop mode, include
19504 QNonStop+ in the qSupported query response.
19505 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19507 (handle_v_attach, handle_v_run): Handle non-stop mode.
19508 (handle_v_stopped): New.
19509 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19510 (myresume): Adjust to use resume_kind. Handle non-stop.
19511 (queue_stop_reply_callback): New.
19512 (handle_status): Handle non-stop mode.
19513 (main): Clear non_stop flag on reconnection. Use the event-loop.
19514 Refactor serial protocol handling from here ...
19515 (process_serial_event): ... to this new function. When GDB
19516 selects any thread, select one here. In non-stop mode, wait until
19517 GDB acks all pending events before exiting.
19518 (handle_serial_event, handle_target_event): New.
19519 * remote-utils.c (remote_open): Install remote_desc in the event
19521 (remote_close): Remove remote_desc from the event loop.
19522 (putpkt_binary): Rename to...
19523 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19524 (putpkt_binary): New as wrapper around putpkt_binary_1.
19525 (putpkt_notif): New.
19526 (prepare_resume_reply): In non-stop mode, don't change the
19528 * event-loop.c: New.
19529 * Makefile.in (OBJ): Add event-loop.o.
19530 (event-loop.o): New rule.
19532 * linux-low.h (pid_of): Moved here.
19534 (get_lwp_thread): Use lwpid_of.
19535 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19536 * linux-low.c (pid_of): Delete.
19537 (inferior_pid): Use lwpid_of.
19538 (linux_event_pipe): New.
19539 (target_is_async_p): New.
19541 (handle_extended_wait): Use lwpid_of.
19542 (add_lwp): Don't set lwpid field.
19543 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19544 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19545 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19546 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19547 first. Adjust to linux_wait_for_event interface changes. Use
19549 (linux_detach): Don't delete the main lwp here.
19550 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19551 (status_pending_p): Don't consider explicitly suspended lwps.
19552 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19553 pointer. Add OPTIONS argument. Change return type to int. Use
19554 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19555 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19556 pointer. Add status pointer argument. Return a pid instead of a
19557 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19558 changes. In non-stop mode, don't switch to a random thread.
19559 (linux_wait): Rename to...
19560 (linux_wait_1): ... this. Add target_options argument, and handle
19561 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19562 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19563 clean exit and signal exit code. Don't stop all threads in
19564 non-stop mode. In all-stop mode, only stop all threads when
19565 reporting a stop to GDB. Handle explicit thread stop requests.
19566 (async_file_flush, async_file_mark): New.
19568 (send_sigstop): Use lwpid_of.
19569 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19570 interface changes. In non-stop mode, don't switch to a random
19572 (linux_resume_one_lwp): Use lwpid_of.
19573 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19574 (linux_resume_one_thread): ... this. Handle resume_stop. In
19575 non-stop mode, don't look for pending flag in all threads.
19576 (resume_status_pending_p): Don't consider explicitly suspended
19578 (my_waitpid): Reimplement. Emulate __WALL.
19579 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19581 (sigchld_handler, linux_supports_non_stop, linux_async)
19582 (linux_start_non_stop): New.
19583 (linux_target_ops): Register linux_supports_non_stop, linux_async
19584 and linux_start_non_stop.
19585 (initialize_low): Install SIGCHLD handler.
19586 * thread-db.c (thread_db_create_event, find_one_thread)
19587 (thread_db_get_tls_address): Use lwpid_of.
19588 * win32-low.c (win32_detach): Adjust to use resume_kind.
19589 (win32_wait): Add `options' argument.
19590 * spu-low.c (spu_resume): Adjust to use resume_kind.
19591 (spu_wait): Add `options' argument.
19593 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19595 Decouple target code from remote protocol.
19597 * target.h (enum target_waitkind): New.
19598 (struct target_waitstatus): New.
19599 (struct target_ops) <wait>: Return an unsigned long. Take a
19600 target_waitstatus pointer instead of a char pointer.
19601 (mywait): Likewise.
19602 * target.c (mywait): Change prototype to return an unsigned long.
19603 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19604 * server.h (thread_from_wait, old_thread_from_wait): Delete
19606 (prepare_resume_reply): Change prototype to take a
19608 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19609 (last_status, last_ptid): New.
19610 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19611 pid instead of a signal.
19612 (attach_inferior): Remove "status" and "signal" parameters.
19614 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19616 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19617 (handle_v_requests, myresume): Remove "status" and "signal"
19618 parameters. Adjust.
19619 (handle_status): New.
19620 (main): Delete local `status'. Adjust.
19621 * remote-utils.c: Include target.h.
19622 (prepare_resume_reply): Change prototype to take a
19623 target_waitstatus. Adjust.
19625 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19627 * spu-low.c (spu_wait): Adjust.
19628 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19630 (win32_wait): Adjust.
19632 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19634 * target.h (struct thread_resume): Delete leave_stopped member.
19635 (struct target_ops): Add a `n' argument to the `resume' callback.
19636 * server.c (start_inferior): Adjust.
19637 (handle_v_cont, myresume): Adjust.
19638 * linux-low.c (check_removed_breakpoint): Adjust to resume
19639 interface change, and to removed leave_stopped field.
19640 (resume_ptr): Delete.
19641 (struct thread_resume_array): New.
19642 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19643 resume interface change.
19644 (linux_continue_one_thread, linux_queue_one_thread)
19645 (resume_status_pending_p): Check if the resume field is NULL
19646 instead of checking the leave_stopped member.
19647 (linux_resume): Adjust to the target resume interface change.
19648 * spu-low.c (spu_resume): Adjust to the target resume interface
19650 * win32-low.c (win32_detach, win32_resume): Ditto.
19652 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19654 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19656 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19658 (linux_continue_one_thread): Only preserve the stepping flag if
19659 there's a pending breakpoint.
19661 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19663 * server.c (main): After the inferior having exited, call
19664 remote_close before exiting gdbserver.
19666 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19668 Fix size of FPSCR in Power 7 processors.
19669 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19670 (PPC_FEATURE_HAS_DFP): New #define.
19671 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19674 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19676 * server.c (handle_query) Whitespace and formatting.
19678 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19680 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19681 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19682 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19683 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19684 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19685 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19686 Makefile.in, configure.ac: Fix whitespace throughout.
19687 * configure: Regenerate.
19689 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19691 * inferiors.c (find_inferior): Make it safe for the callback
19692 function to delete the currently iterated inferior.
19694 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19696 * Makefile.in (linuw_low_h): Move higher.
19697 (thread-db.o): Depend on $(linux_low_h).
19699 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19701 Rename "process" to "lwp" throughout.
19703 * linux-low.c (all_processes): Rename to...
19704 (all_lwps): ... this.
19705 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19706 (add_process): Rename to ...
19707 (add_lwp): ... this. Adjust.
19708 (linux_create_inferior): Adjust.
19709 (linux_attach_lwp): Adjust.
19710 (linux_attach): Adjust.
19711 (linux_kill_one_process): Rename to ...
19712 (linux_kill_one_lwp): ... this. Adjust.
19713 (linux_kill): Adjust.
19714 (linux_detach_one_process): Rename to ...
19715 (linux_detach_one_lwp): ... this. Adjust.
19716 (linux_detach): Adjust.
19717 (check_removed_breakpoint): Adjust.
19718 (status_pending_p): Adjust.
19719 (linux_wait_for_process): Rename to ...
19720 (linux_wait_for_lwp): ... this. Adjust.
19721 (linux_wait_for_event): Adjust.
19722 (send_sigstop): Adjust.
19723 (wait_for_sigstop): Adjust.
19724 (stop_all_processes): Rename to ...
19725 (stop_all_lwps): ... this.
19726 (linux_resume_one_process): Rename to ...
19727 (linux_resume_one_lwp): ... this. Adjust.
19728 (linux_set_resume_request, linux_continue_one_thread)
19729 (linux_queue_one_thread, resume_status_pending_p)
19730 (usr_store_inferior_registers, regsets_store_inferior_registers)
19731 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19733 * linux-low.h (get_process): Rename to ...
19734 (get_lwp): ... this. Adjust.
19735 (get_thread_process): Rename to ...
19736 (get_thread_lwp): ... this. Adjust.
19737 (get_process_thread): Rename to ...
19738 (get_lwp_thread): ... this. Adjust.
19739 (struct process_info): Rename to ...
19740 (struct lwp_info): ... this.
19741 (all_processes): Rename to ...
19742 (all_lwps): ... this.
19743 * proc-service.c (ps_lgetregs): Adjust.
19744 * thread-db.c (thread_db_create_event, find_one_thread)
19745 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19747 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19749 * server.c (handle_query): Handle "qAttached".
19751 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19753 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19754 GPLv3, update license URL.
19756 2009-03-01 Doug Evans <dje@google.com>
19758 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19759 (server_h): Add gdb_signals.h.
19760 (signals.o): Update.
19761 * server.h (target_signal_from_host,target_signal_to_host_p)
19762 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19764 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19766 * remote-utils.c (getpkt): Also generate remote-debug
19767 information if noack_mode is set.
19769 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19771 * server.c (handle_query): Report qXfer:siginfo:read and
19772 qXfer:siginfo:write as supported and handle them.
19773 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19774 * linux-low.c (linux_xfer_siginfo): New.
19775 (linux_target_ops): Set it.
19777 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19779 * server.c (gdbserver_usage): Mention --remote-debug.
19780 (main): Accept '--remote-debug' switch.
19782 2009-01-18 Doug Evans <dje@google.com>
19784 * regcache.c (new_register_cache): No need to check result of xcalloc.
19785 * server.c (handle_search_memory): Back out calls to xmalloc,
19786 result is checked and error is returned to user upon failure.
19787 (handle_query): Ditto. Add more checks for result of malloc.
19788 (handle_v_cont): Check result of malloc, report error back to
19790 (handle_v_run): Ditto. Call freeargv.
19791 * server.h (freeargv): Declare.
19792 * utils.c (freeargv): New fn.
19794 2009-01-15 Doug Evans <dje@google.com>
19796 * gdbreplay.c (perror_with_name): Make arg const char *.
19797 * server.h (target_signal_to_name): Make return type const char *.
19798 * thread-db.c (thread_db_err_str): Make return type const char *.
19799 * utils.c (perror_with_name): Make arg const char *.
19801 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19803 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19804 when handling a EXIT_PROCESS_DEBUG_EVENT.
19806 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19808 * gdbreplay.c (gdbreplay_version): Update copyright year.
19809 * server.c (gdbserver_version): Likewise.
19811 2009-01-05 Doug Evans <dje@google.com>
19813 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19814 (handle_extended_wait): Improve comment.
19816 2008-12-13 Doug Evans <dje@google.com>
19818 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19819 * server.h (ATTR_MALLOC): New macro.
19820 (xmalloc,xcalloc,xstrdup): Declare.
19821 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19822 * inferiors.c: Ditto.
19823 * linux-low.c: Ditto.
19824 * mem-break.c: Ditto.
19825 * regcache.c: Ditto.
19826 * remote-utils.c: Ditto.
19829 * win32-low.c: Ditto.
19831 2008-12-12 Doug Evans <dje@google.com>
19833 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19834 in debugging printf.
19836 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19838 2008-12-09 Doug Evans <dje@google.com>
19840 * linux-low.h (struct process_info): Delete member tid, unused.
19841 * thread-db.c (find_one_thread): Update.
19842 (maybe_attach_thread): Update.
19844 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19846 * target.h (struct target_ops): Add qxfer_osdata member.
19847 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19849 (linux_qxfer_osdata): New functions.
19850 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19852 * server.c (handle_query): Handle "qXfer:osdata:read:".
19853 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19854 (buffer_xml_printf): New functions.
19855 * server.h (struct buffer): New.
19856 (buffer_grow_str, buffer_grow_str0): New macros.
19857 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19858 (buffer_xml_printf): Declare.
19860 2008-11-24 Doug Evans <dje@google.com>
19862 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19864 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19866 * server.c (handle_v_run): Always use the supplied argument list.
19868 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19870 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19871 (xtensa_regmap_table): Add entry for scompare1.
19873 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19875 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19876 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19877 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19878 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19879 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19880 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19881 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19882 XML target descriptions.
19883 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19884 when inferior is running on an ISA 2.05 or later processor. Add
19885 special case to return offset for full 64-bit slot of FPSCR when
19888 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19890 * Makefile.in (SFILES, clean): Added sparc64 files.
19891 (reg-sparc64.o, reg-sparc64.c): New.
19892 * configure.srv (sparc*-*-linux*): New configuration.
19893 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19894 syscall arguments for SPARC.
19895 (regsets_store_inferior_registers): Likewise.
19896 * linux-sparc-low.c: New file.
19898 2008-10-21 Doug Evans <dje@google.com>
19900 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19901 (READLINE_DIR,READLINE_DEP): Delete.
19902 (INTERNAL_CFLAGS): Update.
19903 (LINTFLAGS): Update.
19905 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19907 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19908 whole argv from the last run, not just argv[0].
19910 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19912 * regcache.c (new_register_cache): Return NULL if the register
19913 cache size isn't known yet.
19914 (free_register_cache): Avoid dereferencing a NULL regcache.
19916 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19918 * configure.srv: Merge MIPS and MIPS64.
19920 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19922 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19924 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19926 * Makefile.in: Add required vsx dependencies.
19928 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19929 Declare init_registers_powerpc_vsx32l.
19930 Declare init_registers_powerpc_vsx64l.
19931 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19932 (ppc_arch_setup): Check for VSX in hwcap.
19933 (ppc_fill_vsxregset): New function.
19934 (ppc_store_vsxregset): New function.
19935 Add new VSX entry in regset_info target_regsets.
19937 * configure.srv: Add new VSX dependencies.
19939 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19941 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19942 (remote_open): Set or clear transport_is_reliable.
19943 (putpkt_binary): Don't expect acks in noack mode.
19944 (getpkt): Don't send ack/nac in noack mode.
19945 * server.c (handle_general_set): Handle QStartNoAckMode.
19946 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19948 (main): Reset noack_mode on every connection.
19949 * server.h (noack_mode): Declare.
19951 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19953 * Makefile.in (GDBREPLAY_OBS): New variable.
19954 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19956 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19957 Daniel Jacobowitz <dan@codesourcery.com>
19959 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19960 (usr_store_inferior_registers): Likewise.
19961 (regsets_store_inferior_registers): Likewise.
19963 2008-07-31 Rolf Jansen <rj@surtec.com>
19964 Pedro Alves <pedro@codesourcery.com>
19966 * configure.ac: Check for memmem declaration.
19967 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19968 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19969 (disable_packet_qfThreadInfo): Unconditionally compile.
19970 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19971 * configure, config.in: Regenerate.
19973 2008-07-28 Doug Kwan <dougkwan@google.com>
19975 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19976 (linux_write_memory): Remove declaration of errno.
19978 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19980 * linux-low.c (handle_extended_wait): Do not use "status"
19981 variable uninitialized.
19983 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19985 * server.c (handle_v_attach): Inhibit reporting dll changes.
19987 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19989 * remote-utils.c (prepare_resume_reply): If requested, don't
19990 output "thread:TID" in the T stop reply.
19992 * server.c (disable_packet_vCont, disable_packet_Tthread)
19993 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19994 (handle_query): If requested, disable support for qC, qfThreadInfo
19996 (handle_v_requests): If requested, disable support for vCont.
19997 (gdbserver_show_disableable): New.
19998 (main): Handle --disable-packet and --disable-packet=LIST.
20000 * server.h (disable_packet_vCont, disable_packet_Tthread)
20001 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20003 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20005 * server.c (gdbserver_usage): Mention --version.
20007 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20009 * Makefile.in (gdbreplay.o): New rule.
20011 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20013 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20014 message, not gdbserver.
20016 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20017 Nathan Sidwell <nathan@codesourcery.com>
20018 Joseph Myers <joseph@codesourcery.com>
20020 * acinclude.m4: Include ../../config/acx.m4.
20021 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20022 * configure, config.in: Regenerate.
20023 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20024 * server.c (gdbserver_version): Print PKGVERSION.
20025 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20026 (main): Adjust gdbserver_usage calls.
20027 * gdbreplay.c (version, host_name): Add declarations.
20028 (gdbreplay_version, gdbreplay_usage): New.
20029 (main): Accept --version and --help options.
20031 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20033 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20034 (arm_breakpoint_at): Handle Thumb.
20035 (the_low_target): Add comment.
20037 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20039 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20041 2008-05-09 Doug Evans <dje@google.com>
20043 * server.h (decode_search_memory_packet): Declare.
20044 * remote-utils.c (decode_search_memory_packet): New fn.
20045 * server.c (handle_search_memory_1): New fn.
20046 (handle_search_memory): New fn.
20047 (handle_query): Process qSearch:memory packets.
20049 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20051 * regcache.c (registers_length): Remove.
20052 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20053 full register packet.
20054 * regcache.h (registers_length): Remove prototype.
20055 * server.h (PBUFSIZ): Define to 16384.
20057 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20059 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20060 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20061 powerpc-64l.o, and powerpc-altivec64l.o.
20062 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20063 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20064 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20065 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20066 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20069 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20070 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20071 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20072 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20073 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20074 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20075 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20076 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20077 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20078 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20081 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20082 (init_registers_powerpc_32l): ... this new prototype.
20083 (init_registers_powerpc_32): Remove, replace by ...
20084 (init_registers_powerpc_altivec32l): ... this new prototype.
20085 (init_registers_powerpc_e500): Remove, replace by ...
20086 (init_registers_powerpc_e500l): ... this new prototype.
20087 (init_registers_ppc64): Remove, replace by ...
20088 (init_registers_powerpc_64l): ... this new prototype.
20089 (init_registers_powerpc_64): Remove, replace by ...
20090 (init_registers_powerpc_altivec64l): ... this new prototype.
20091 (ppc_num_regs): Set to 73.
20092 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20093 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20094 (ppc_cannot_store_register): Handle orig_r3 and trap.
20095 (ppc_arch_setup): Update init_registers_... calls.
20096 (ppc_fill_gregset): Handle orig_r3 and trap.
20098 * inferiors.c (clear_inferiors): Reset current_inferior.
20100 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20102 * acinclude.m4: Add override.m4.
20103 * configure: Regenerate.
20105 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20107 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20108 initial call to init_register_ppc64.
20110 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20112 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20113 single powerpc*-*-linux* case.
20114 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20116 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20118 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20119 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20121 * linux-ppc-low.c: Include <elf.h>.
20122 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20123 (ppc_hwcap): New global variable.
20124 (ppc_regmap): Remove __SPE__ #ifdef sections.
20125 (ppc_regmap_e500): New global variable.
20126 (ppc_cannot_store_register): Update __SPE__ special case.
20127 (ppc_get_hwcap): New function.
20128 (ppc_arch_setup): Use it to determine whether inferior supports
20129 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20130 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20131 Do not access registers if target does not support AltiVec.
20132 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20133 Do not access registers if target does not support SPE.
20134 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20136 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20138 * linux-low.c (disabled_regsets, num_regsets): New.
20139 (use_regsets_p): Delete.
20140 (linux_wait_for_process): Clear disabled_regsets.
20141 (regsets_fetch_inferior_registers): Check and set it.
20142 (regsets_store_inferior_registers): Likewise.
20143 (linux_fetch_registers, linux_store_registers): Do not use
20145 (initialize_low): Allocate disabled_regsets.
20147 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20149 * Makefile.in (LIBOBJS): New.
20150 (OBS): Use LIBOBJS.
20151 (memmem.o): New rule.
20152 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20153 * configure: Regenerated.
20155 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20157 * server.c (handle_query): Never return "unsupported" for
20158 qXfer:features:read queries.
20160 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20162 * server.c (get_features_xml): Fix inverted condition.
20163 (handle_query): Always support qXfer:feature:read.
20165 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20167 * server.c (wrapper_argv): New.
20168 (start_inferior): Handle wrapper_argv. If set, expect an extra
20170 (gdbserver_usage): Document --wrapper.
20171 (main): Parse --wrapper.
20173 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20175 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20176 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20177 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20178 (ppc_set_pc): Likewise.
20179 (ppc_arch_setup): New function.
20180 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20181 of collect_register.
20182 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20184 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20186 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20187 instead of linux-ppc64-low.o.
20188 * linux-ppc64-low.c: Remove file.
20189 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20190 (linux-ppc64-low.o): Remove rule.
20192 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20193 (init_registers_powerpc_64): Likewise.
20194 (ppc_regmap): Conditionally define depending on __powerpc64__.
20195 (ppc_cannot_store_register): Do not special-case "fpscr" when
20196 compiled on __powerpc64__.
20197 (ppc_collect_ptrace_register): New function.
20198 (ppc_supply_ptrace_register): New function.
20199 (ppc_breakpoint): Change type to "unsigned int".
20200 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20201 (the_low_target): Conditionally provide initializers for the
20202 arch_setup member depending on __powerpc64__. Install
20203 collect_ptrace_register and supply_ptrace_register members.
20205 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20207 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20208 * server.c (gdbserver_xmltarget): Define.
20209 (get_features_xml): Use it to replace "target.xml" and arch_string.
20211 * configure.srv: Remove srv_xmltarget. Add XML files that were
20212 mentioned there to srv_xmlfiles instead. Remove conditional tests
20213 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20214 srv_xmlfiles and srv_regobj to include all possible choices.
20215 * configure.ac (srv_xmltarget): Remove.
20216 (srv_xmlfiles): Do not add "target.xml".
20217 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20218 checks for supplementary target information.
20219 * configure: Regenerate.
20220 * Makefile.in (XML_TARGET): Remove.
20221 (target.xml): Remove rule.
20222 (clean): Do not clean up target.xml.
20223 (.PRECIOUS): Do not mention target.xml.
20225 * target.h (struct target_ops): Remove arch_string member.
20226 * linux-low.c (linux_arch_string): Remove.
20227 (linux_target_ops): Remove arch_string initializer.
20228 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20229 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20230 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20231 * spu-low.c (spu_arch_string): Remove.
20232 (spu_target_ops): Remove arch_string initializer.
20233 * win32-low.c (win32_arch_string): Remove.
20234 (win32_target_ops): Remove arch_string initializer.
20235 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20236 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20237 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20239 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20241 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20242 by collect_ptrace_register and supply_ptrace_register hooks.
20243 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20244 instead of checking for the_low_target.left_pad_xfer.
20245 (usr_store_inferior_registers): Use collect_ptrace_register callback
20246 instead of checking for the_low_target.left_pad_xfer.
20248 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20249 (s390_supply_ptrace_register): Likewise.
20250 (s390_fill_gregset): Call s390_collect_ptrace_register.
20251 (the_low_target): Update.
20253 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20254 (ppc_supply_ptrace_register): Likewise.
20255 (the_low_target): Update.
20257 * linux-i386-low.c (the_low_target): Update.
20258 * linux-x86-64-low.c (the_low_target): Update.
20260 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20262 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20263 reg-s390.o and reg-s390x.o.
20265 * linux-low.c (new_inferior): New global variable.
20266 (linux_create_inferior, linux_attach): Set it.
20267 (linux_wait_for_process): Call the_low_target.arch_setup after the
20268 target has stopped for the first time.
20269 (initialize_low): Do not call the_low_target.arch_setup.
20271 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20272 (s390_set_pc): Likewise.
20273 (s390_arch_setup): New function.
20274 (the_low_target): Use s390_arch_setup as arch_setup routine.
20276 * regcache.c (realloc_register_cache): New function.
20277 (set_register_cache): Call it for each existing regcache.
20279 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20281 * server.h (init_registers): Remove prototype.
20283 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20284 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20285 instead of init_registers ().
20286 * linux-arm-low.c (init_registers_arm): Add prototype.
20287 (init_registers_arm_with_iwmmxt): Likewise.
20288 (the_low_target): Add initializer for arch_setup field.
20289 * linux-cris-low.c (init_registers_cris): Add prototype.
20290 (the_low_target): Add initializer for arch_setup field.
20291 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20292 (the_low_target): Add initializer for arch_setup field.
20293 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20294 (the_low_target): Add initializer for arch_setup field.
20295 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20296 (the_low_target): Add initializer for arch_setup field.
20297 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20298 (the_low_target): Add initializer for arch_setup field.
20299 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20300 (the_low_target): Add initializer for arch_setup field.
20301 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20302 (init_registers_mips64_linux): Likewise.
20303 (the_low_target): Add initializer for arch_setup field.
20304 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20305 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20306 (the_low_target): Add initializer for arch_setup field.
20307 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20308 (init_registers_powerpc_64): Likewise.
20309 (the_low_target): Add initializer for arch_setup field.
20310 * linux-s390-low.c (init_registers_s390): Add prototype.
20311 (init_registers_s390x): Likewise.
20312 (the_low_target): Add initializer for arch_setup field.
20313 * linux-sh-low.c (init_registers_sh): Add prototype.
20314 (the_low_target): Add initializer for arch_setup field.
20315 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20316 (the_low_target): Add initializer for arch_setup field.
20317 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20318 (the_low_target): Add initializer for arch_setup field.
20320 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20321 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20322 instead of init_registers ().
20323 * win32-arm-low.c (init_registers_arm): Add prototype.
20324 (the_low_target): Add initializer for arch_setup field.
20325 * win32-i386-low.c (init_registers_i386): Add prototype.
20326 (the_low_target): Add initializer for arch_setup field.
20328 * spu-low.c (init_registers_spu): Add prototype.
20329 (initialize_low): Call initialie_registers_spu () instead of
20330 initialize_registers ().
20332 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20334 * server.c (handle_v_requests): When handling the vRun and vAttach
20335 packets, if already debugging a process, don't kill it. Return an
20338 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20340 * server.c (handle_query): Correct length check.
20342 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20344 * win32-low.c (do_initial_child_stuff): Add process handle
20345 parameter. Set current_process_handle and current_process_id from the
20346 parameters. Clear globals.
20347 (win32_create_inferior): Don't set current_process_handle and
20348 current_process_id here. Instead pass them on the call to
20349 do_initial_child_stuff.
20350 (win32_attach): Likewise.
20351 (win32_clear_inferiors): New.
20352 (win32_kill): Don't close the current process handle or the
20353 current thread handle here. Instead call win32_clear_inferiors.
20354 (win32_detach): Don't open a new handle to the process. Call
20355 win32_clear_inferiors.
20356 (win32_join): Don't rely on current_process_handle; open a new
20357 handle using the process id.
20358 (win32_wait): Call win32_clear_inferiors when the inferior process
20361 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20363 * server.c (monitor_show_help): Add "exit".
20365 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20367 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20368 (clean): Add reg-xtensa.c.
20369 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20370 * configure.srv (xtensa*-*-linux*) New target.
20371 * linux-xtensa-low.c: New.
20372 * xtensa-xtregs.c: New.
20374 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20376 * hostio.c: Don't include errno.h.
20377 (errno_to_fileio_errno): Move to hostio-errno.
20378 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20379 error number outputting to the target->hostio_last_error callback.
20380 (hostio_packet_error): Use FILEIO_EINVAL directly.
20381 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20382 calls to hostio_error.
20383 * hostio-errno.c: New.
20384 * server.h (hostio_last_error_from_errno): Declare.
20385 * target.h (target_ops): Add hostio_last_error member.
20386 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20387 as hostio_last_error handler.
20388 * spu-low.c (spu_target_ops): Likewise.
20389 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20390 (wince_hostio_last_error): New functions.
20391 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20392 as hostio_last_error handler.
20393 (win32_target_ops) [!_WIN32_WCE]: Register
20394 hostio_last_error_from_errno as hostio_last_error handler.
20395 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20396 (hostio-errno.o): New rule.
20397 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20398 * configure.srv (srv_hostio_err_objs): New variable. Default to
20400 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20401 * configure: Regenerate.
20403 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20405 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20406 (linux_kill, linux_detach): Clean up the process list.
20407 * remote-utils.c (remote_open): Improve port number parsing.
20408 (putpkt_binary, input_interrupt): Only send interrupts if the target
20410 * server.c (extended_protocol): Make static.
20411 (attached): Define earlier.
20412 (exit_requested, response_needed, program_argv): New variables.
20413 (target_running): New.
20414 (start_inferior): Clear attached here.
20415 (attach_inferior): Set attached here.
20416 (require_running): Define.
20417 (handle_query): Use require_running and target_running. Implement
20419 (handle_v_attach, handle_v_run): New.
20420 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20421 (gdbserver_usage): Update.
20422 (main): Redo argument parsing. Handle --debug and --multi. Handle
20423 --attach along with other options or after the port. Save
20424 program_argv. Support no initial program. Resynchronize
20425 communication with GDB after an error. Handle "monitor exit".
20426 Use require_running and target_running. Always allow the extended
20427 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20428 restart in extended mode.
20429 * README: Refer to the GDB manual. Update --attach usage.
20431 2007-12-20 Andreas Schwab <schwab@suse.de>
20433 * linux-low.c (STACK_SIZE): Define.
20434 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20435 (linux_test_for_tracefork): Likewise.
20437 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20439 * linux-low.c (linux_wait_for_event): Update messages. Do not
20440 reinsert auto-delete breakpoints.
20441 * mem-break.c (struct breakpoint): Change return type of handler to
20443 (set_breakpoint_at): Update handler type.
20444 (reinsert_breakpoint_handler): Return 1 instead of calling
20446 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20448 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20449 * mem-break.h (set_breakpoint_at): Update handler type.
20450 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20451 * win32-low.c (auto_delete_breakpoint): New.
20452 (get_child_debug_event): Use it.
20454 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20456 * configure.ac: Check for pread and pwrite.
20457 * hostio.c (handle_pread): Fall back to lseek and read.
20458 (handle_pwrite): Fall back to lseek and write.
20459 * config.in, configure: Regenerated.
20461 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20463 * server.c (myresume): Add own_buf argument.
20464 (main): Update calls.
20466 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20468 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20469 * remote-utils.c (remote_open): Do not call disable_async_io.
20470 (block_async_io): Delete.
20471 (unblock_async_io): Make static.
20472 (initialize_async_io): New.
20473 * server.c (handle_v_cont): Handle async I/O here.
20474 (myresume): Likewise. Move other common resume tasks here...
20475 (main): ... from here. Call initialize_async_io. Disable async
20476 I/O before the main loop.
20477 * server.h (initialize_async_io): Declare.
20478 (block_async_io, unblock_async_io): Delete prototypes.
20479 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20481 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20483 * remote-utils.c (readchar): Allow binary data in received messages.
20485 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20487 * win32-low.c (attaching): New global.
20488 (win32_create_inferior): Clear the `attaching' global.
20489 (win32_attach): Set the `attaching' global.
20490 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20491 attaching. Only set a breakpoint at the entry point if not
20494 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20496 * server.c (main): Don't report dll events on the initial
20497 connection on attaches.
20499 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20501 * server.c (main): Relax numerical bases supported for the pid of
20502 the --attach command line argument.
20504 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20506 * win32-low.c (win32_attach): Call OpenProcess before
20507 DebugActiveProcess, not after. Add last error output to error
20510 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20512 * win32-low.c (win32_get_thread_context)
20513 (win32_set_thread_context): New functions.
20514 (thread_rec): Use win32_get_thread_context.
20515 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20516 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20519 2007-12-03 Leo Zayas
20520 Pedro Alves <pedro_alves@portugalmail.pt>
20522 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20524 (child_add_thread): Minor cleanup.
20525 (child_continue): Resume artificially suspended threads before
20526 calling ContinueDebugEvent.
20527 (suspend_one_thread): New.
20528 (fake_breakpoint_event): New.
20529 (get_child_debug_event): Change return type to int. Check here if
20530 gdb sent an interrupt request. If a soft interrupt was requested,
20531 fake a breakpoint event. Return 0 if there is no event to handle,
20533 (win32_wait): Don't check here if gdb sent an interrupt request.
20534 Ensure there is a valid event to handle.
20535 (win32_request_interrupt): Add soft interruption method as last
20538 2007-12-03 Leo Zayas
20539 Pedro Alves <pedro_alves@portugalmail.pt>
20541 * win32-low.h (win32_thread_info): Add descriptions to the
20542 structure members. Replace `suspend_count' counter by a
20544 * win32-low.c (thread_rec): Update condition of when to get the
20545 context from the inferior. Rely on ContextFlags being set if it
20546 has already been retrieved. Only suspend the inferior thread if
20547 we haven't already. Warn if that fails.
20548 (continue_one_thread): s/suspend_count/suspended/. Only call
20549 ResumeThread once. Warn if that fails.
20551 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20553 * win32-low.c (win32_wait): Don't read from the inferior when it
20554 has already exited.
20556 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20558 * Makefile.in (win32_low_h): New variable.
20559 (win32-low.o): Add dependency on $(win32_low_h).
20560 (win32-arm-low.o, win32-i386-low.o): New rules.
20562 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20564 * hostio.c: Correct copyright year.
20566 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20568 * Makefile.in (OBS): Add hostio.o.
20569 (hostio.o): New rule.
20570 * server.h (handle_vFile): Declare.
20571 * hostio.c: New file.
20572 * server.c (handle_v_requests): Take packet_len and new_packet_len
20573 for binary packets. Call handle_vFile.
20574 (main): Update call to handle_v_requests.
20576 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20578 * linux-low.c: Include <sched.h>.
20580 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20582 * linux-low.c (linux_tracefork_grandchild): New.
20583 (linux_tracefork_child): Use clone.
20584 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20586 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20588 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20590 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20592 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20594 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20596 * inferiors.c (change_inferior_id): Delete.
20597 (add_pid_to_list, pull_pid_from_list): New.
20598 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20599 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20600 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20601 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20602 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20603 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20604 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20605 (using_threads): Always set to 1.
20606 (handle_extended_wait): New.
20607 (add_process): Do not set TID.
20608 (linux_create_inferior): Set must_set_ptrace_flags.
20609 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20610 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20611 (linux_thread_alive): Rename TID argument to LWPID.
20612 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20613 (linux_wait_for_event): Do not use TID or check using_threads. Update
20614 call to dead_thread_notify. Call handle_extended_wait.
20615 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20616 (send_sigstop): Delete sigstop_sent.
20617 (wait_for_sigstop): Avoid TID.
20618 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20619 (linux_test_for_tracefork): New.
20620 (linux_lookup_signals): Use thread_db_active and
20621 linux_supports_tracefork_flag.
20622 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20623 * linux-low.h (get_process_thread): Avoid TID.
20624 (struct process_ifo): Move thread_known and tid to the end. Remove
20626 (linux_attach_lwp, thread_db_init): Update prototypes.
20627 * server.h (change_inferior_id): Delete prototype.
20628 (add_pid_to_list, pull_pid_from_list): New prototypes.
20629 * thread-db.c (thread_db_use_events): New.
20630 (find_first_thread): Rename to...
20631 (find_one_thread): ...this. Update callers and messages. Do not
20632 call fatal. Check thread_db_use_events. Do not call
20633 change_inferior_id or new_thread_notify.
20634 (maybe_attach_thread): Update. Do not call new_thread_notify.
20635 (thread_db_init): Set thread_db_use_events. Check use_events.
20636 * utils.c (fatal, warning): Correct message prefix.
20638 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20640 * Makefile.in (clean): Remove new files.
20641 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20642 (powerpc-64.o, powerpc-64.c): New rules.
20643 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20644 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20646 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20648 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20649 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20650 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20651 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20652 (target_regsets): Add AltiVec and SPE register sets.
20653 * configure.ac: Check for AltiVec and SPE.
20654 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20655 (ppc_fill_vrregset, ppc_store_vrregset): New.
20656 (target_regsets): Add AltiVec register set.
20657 * configure: Regenerated.
20659 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20661 * linux-low.c (O_LARGEFILE): Define.
20662 (linux_read_memory): Use /proc/PID/mem.
20663 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20664 * configure, config.in: Regenerated.
20666 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20668 * linux-low.c (linux_wait_for_event): Do not pass signals while
20671 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20673 * win32-low.c (create_process): New.
20674 (win32_create_inferior): Use create_process instead of
20675 CreateProcess. If create_process failed retry appending an ".exe"
20676 suffix. Store the GetLastError result immediatelly after
20677 create_process calls and use it on the call to error.
20679 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20681 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20683 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20685 * configure.ac: Switch license to GPLv3.
20687 2007-08-01 Michael Snyder <msnyder@access-company.com>
20689 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20691 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20693 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20695 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20696 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20697 CloseToolhelp32Snapshot.
20698 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20699 CloseToolhelp32Snapshot.
20701 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20703 * server.c (main): Check for inferior exit before main loop.
20705 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20707 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20708 instead of on tmp_desc.
20710 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20711 Daniel Jacobowitz <dan@codesourcery.com>
20713 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20714 (add_thread): Minor cleanups.
20715 (clear_inferiors): Move lower in the file. Clear the DLL
20717 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20718 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20719 (xml_escape_text): New.
20720 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20722 (handle_v_cont): Report errors.
20723 (gdbserver_version): Update.
20724 (main): Correct size of own_buf. Do not report initial DLL events.
20725 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20726 (unloaded_dll, xml_escape_text): New.
20727 * win32-low.c (enum target_waitkind): Update comments.
20728 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20729 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20730 (win32_EnumProcessModules, win32_GetModuleInformation)
20731 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20732 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20733 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20734 (win32_Module32First, win32_Module32Next, load_toolhelp)
20735 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20736 (get_child_debug_event): Handle DLL events.
20737 (win32_wait): Likewise.
20739 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20741 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20742 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20744 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20746 * win32-low.c (handle_output_debug_string): Ignore event if not
20749 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20751 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20753 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20755 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20757 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20759 * inferiors.c (change_inferior_id): Add comment.
20760 * linux-low.c (check_removed_breakpoint): Add an early
20761 prototype. Improve debug output.
20762 (linux_attach): Doc update.
20763 (linux_detach_one_process, linux_detach): Clean up before releasing
20765 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20766 * linux-low.h (struct process_info): Doc improvement.
20767 * mem-break.c (delete_all_breakpoints): New.
20768 * mem-break.h (delete_all_breakpoints): New prototype.
20769 * thread-db.c (find_first_thread): New.
20770 (thread_db_create_event): Call it instead of
20771 thread_db_find_new_threads. Clean up unused variables.
20772 (maybe_attach_thread): Remove first thread handling.
20773 (thread_db_find_new_threads): Use find_first_thread.
20774 (thread_db_get_tls_address): Likewise.
20776 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20778 * thread-db.c (thread_db_find_new_threads): Add prototype.
20779 (thread_db_create_event): Check for the main thread before adding
20781 (maybe_attach_thread): Only enable event reporting if TID == 0.
20782 (thread_db_get_tls_address): Check for new threads.
20784 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20786 * linux-low.c (linux_create_inferior): Try execv before execvp.
20787 * spu-low.c (spu_create_inferior): Likewise.
20789 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20791 * linux-low.c (linux_create_inferior): Change execv to execvp.
20792 * spu-low.c (spu_create_inferior): Likewies.
20794 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20796 * Makefile.in (clean): Clean new files instead of deleted ones.
20797 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20798 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20800 * configure.srv: Specify XML files and new regformats for MIPS and
20802 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20803 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20804 an entry for the restart register.
20805 (mips_cannot_fetch_register, mips_cannot_store_register)
20806 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20807 register names to match the XML descriptions.
20808 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20809 restart register instead of $0.
20811 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20812 Markus Deuling <deuling@de.ibm.com>
20814 * remote-utils.c (decode_xfer_write): New function.
20815 * server.h (decode_xfer_write): Add prototype.
20816 * server.c (handle_query): Add PACKET_LEN argument. Support
20817 qXfer:spu:read and qXfer:spu:write packets.
20818 (main): Pass packet_len to handle_query.
20819 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20820 * target.h (target_ops): Add qxfer_spu.
20822 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20824 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20825 accessing non-seekable spufs files.
20827 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20829 * server.c (handle_query): Add reply for qC packet.
20831 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20832 Leo Zayas <lerele@champenstudios@com>
20834 * server.h (check_remote_input_interrupt_request): New function.
20835 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20836 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20837 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20838 (check_remote_input_interrupt_request): New function.
20839 * server.h (check_remote_input_interrupt_request): Declare.
20840 * win32-low.c (winapi_DebugBreakProcess,
20841 winapi_GenerateConsoleCtrlEvent): New typedefs.
20842 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20844 (win32_wait): Check for remote interrupt request
20845 with check_remote_input_interrupt_request.
20846 (win32_request_interrupt): New function.
20847 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20849 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20851 * win32-low.c (debug_registers_changed,
20852 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20853 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20854 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20855 (thread_rec): Get context using the low target.
20856 (child_add_thread): Call thread_added on the low target,
20857 which does the same thing.
20859 (do_initial_child_stuff): Remove debug registers references.
20860 Set context using the low target. Resume threads after
20861 setting the contexts.
20862 (child_continue): Remove dead variable. Remove debug
20863 registers references.
20864 (child_fetch_inferior_registers): Go through the low target.
20865 (do_child_store_inferior_registers): Remove.
20866 (child_store_inferior_registers): Go through the low target.
20867 (win32_resume): Remove debug registers references.
20868 Set context using the low target.
20869 (handle_exception): Change return type to void. Don't record
20870 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20871 first chance exception.
20872 (get_child_debug_event): Change return type to void. Remove
20873 goto loop. Always return after waiting for debug event.
20874 (win32_wait): Convert to switch statement. Handle spurious
20877 * win32-i386-low.c (debug_registers_changed,
20878 debug_registers_used): New.
20879 (initial_stuff): Rename to ...
20880 (i386_initial_stuff): ... this. Clear debug registers
20882 (store_debug_registers): Delete.
20883 (i386_get_thread_context): New.
20884 (load_debug_registers): Delete.
20885 (i386_set_thread_context): New.
20886 (i386_thread_added): New.
20887 (single_step): Rename to ...
20888 (i386_single_step): ... this.
20889 (do_fetch_inferior_registers): Rename to ...
20890 (i386_fetch_inferior_register): ... this.
20891 (i386_store_inferior_register): New.
20892 (the_low_target): Adapt to new interface.
20894 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20895 (arm_get_thread_context): New.
20896 (arm_set_thread_context): New.
20898 (do_fetch_inferior_registers): Rename to ...
20899 (arm_fetch_inferior_register): ... this.
20900 (arm_store_inferior_register): New.
20901 (arm_wince_breakpoint): Reimplement as unsigned long.
20902 (arm_wince_breakpoint_len): Define.
20903 (the_low_target): Adapt to new interface.
20905 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20906 load_debug_registers. Add get_thread_context, set_thread_context,
20907 thread_added and store_inferior_register. Rename
20908 fetch_inferior_registers to fetch_inferior_register.
20909 (regptr): Remove declaration.
20911 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20913 * linux-low.c (linux_detach): Change return type to int. Return 0.
20914 * spu-low.c (spu_detach): Likewise.
20916 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20918 * target.h (target_ops): Change return type of detach to int.
20920 (join_inferior): New.
20921 * server.c (main): Don't skip detach support on mingw32.
20922 If the inferior doesn't support detaching return error.
20923 Call join_inferior instead of using waitpid.
20924 * linux-low.c (linux_join): New.
20925 (linux_target_op): Add linux_join.
20926 * spu-low.c (spu_join): New.
20927 (spu_target_ops): Add spu_join.
20928 * win32-low.c (win32_detach): Adapt to new interface.
20929 Reopen current_process_handle before detaching. Issue a child
20930 resume before detaching.
20932 (win32_target_op): Add win32_join.
20934 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20936 * win32-low.c (win32-attach): Fix return value.
20937 * target.h (target_ops): Describe ATTACH return values.
20939 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20941 * win32-low.c (GETPROCADDRESS): Define.
20942 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20943 (winapi_DebugSetProcessKillOnExit): Likewise.
20944 (win32_create_inferior): Force usage of ansi CreateProcessA.
20945 (win32_attach): Use GETPROCADDRESS.
20946 (win32_detach): Likewise.
20948 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20950 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20952 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20954 * win32-low.c: Commit leftover changes from 2007-03-29.
20956 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20958 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20959 fields short instead of int. Add explicit padding.
20960 (i387_cache_to_fsave): Remove unnecessary casts.
20961 (i387_fsave_to_cache): Doc fix.
20962 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20964 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20966 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20967 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20969 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20971 * configure.srv (arm*-*-mingw32ce*): Move near the other
20974 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20976 * configure.ac: Add errno checking.
20977 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20978 sys/file.h and malloc.h.
20979 (AC_CHECK_DECLS): Add perror.
20980 (srv_mingwce): Handle.
20981 * configure.srv (i[34567]86-*-cygwin*): Add
20982 win32-i386-low.o to srv_tgtobj.
20983 (i[34567]86-*-mingw*): Likewise.
20984 (arm*-*-mingw32ce*): Add case.
20985 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20986 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20987 [__MINGW32CE__] (strerror): New function.
20988 [__MINGW32CE__] (errno): Define to GetLastError.
20989 [__MINGW32CE__] (COUNTOF): New macro.
20990 (remote_open): Remove extra close call.
20991 * mem-break.c (delete_breakpoint_at): New function.
20992 * mem-break.h (delete_breakpoint_at): Declare.
20993 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20994 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20995 [USE_WIN32API] (read, write): Add char* casts.
20996 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20997 * server.h: Include wincecompat.h on Windows CE.
20998 [HAVE_ERRNO_H]: Check.
20999 (perror): Declare if not declared.
21000 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21001 (perror_with_name): Remove errno declaration.
21002 * wincecompat.h: New.
21003 * wincecompat.c: New.
21004 * win32-low.h: New.
21005 * win32-arm-low.c: New.
21006 * win32-i386-low.c: New.
21007 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21008 (OUTMSG2): Make it safe.
21010 (COUNTOF): New macro.
21011 (NUM_REGS): Get it from the low target.
21012 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21013 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21014 (thread_rec): Let low target handle debug registers.
21015 (child_add_thread): Likewise.
21016 (child_init_thread_list): Likewise.
21017 (continue_one_thread): Likewise.
21019 (do_child_fetch_inferior_registers): Move to ...
21020 * win32-i386-low.c: ... here, and rename to ...
21021 (do_fetch_inferior_registers): ... this.
21022 * win32-low.c (child_fetch_inferior_registers):
21023 Go through the low target.
21024 (do_child_store_inferior_registers): Use regptr.
21025 (strwinerror): New function.
21026 (win32_create_inferior): Handle Windows CE.
21027 Use strwinerror instead of strerror on Windows error
21028 codes. Add program to the error output.
21029 Don't close the main thread handle on Windows CE.
21030 (win32_attach): Use coredll.dll on Windows CE.
21031 (win32_kill): Close current process and current
21033 (win32_detach): Use coredll.dll on Windows CE.
21034 (win32_resume): Let low target handle debug registers, and
21036 (handle_exception): Add/Remove initial breakpoint. Avoid
21037 non-existant WSTOPSIG on Windows CE.
21038 (win32_read_inferior_memory): Cast to remove warning.
21039 (win32_arch_string): Go through the low target.
21040 (initialize_low): Call set_breakpoint_data with the low
21041 target's breakpoint.
21042 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21043 FOP_REGNUM, mappings): Move to ...
21044 * win32-i386-low.c: ... here.
21045 * win32-low.c (win32_thread_info): Move to ...
21046 * win32-low.h: ... here.
21047 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21048 win32-arm-low.c and wincecompat.c.
21049 (all:): Add $EXEEXT.
21050 (install-only:): Likewise.
21051 (gdbserver:): Likewise.
21052 (gdbreplay:): Likewise.
21053 * config.in: Regenerate.
21054 * configure: Regenerate.
21056 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21058 * win32-low.c: Rename typedef thread_info to
21059 win32_thread_info throughout.
21061 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21063 * win32-i386-low.c: Rename to ...
21064 * win32-low.c: ... this.
21065 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21066 * Makefile.in: Likewise.
21068 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21070 * remote-utils.c (monitor_output): Constify msg parameter.
21071 * server.h (monitor_output): Likewise.
21072 * win32-i386-low.c (handle_output_debug_string): New.
21073 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21074 handle_output_debug_string.
21075 (get_child_debug_event): Likewise.
21077 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21079 * server.c (main): Correct strtoul check.
21081 2007-03-27 Jon Ringle <jon@ringle.org>
21083 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21085 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21087 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21089 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21091 * terminal.h: Check HAVE_SGTTY_H.
21093 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21095 * remote-utils.c (remote_open): Print out the assigned port number.
21097 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21099 * remote-utils.c (monitor_output): New function.
21100 * server.c (debug_threads): Define here.
21101 (monitor_show_help): New function.
21102 (handle_query): Handle qRcmd.
21103 (main): Do not handle 'd' packet.
21104 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21105 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21108 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21110 * Makefile.in (EXEEXT): New.
21111 (clean): Use $(EXEEXT).
21113 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21115 * target.h (target_ops): Rename send_signal to request_interrupt,
21116 and remove enum target_signal parameter.
21117 * linux-low.c (linux_request_interrupt): Rename from
21118 linux_send_signal, and always send SIGINT.
21119 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21120 and always send SIGINT.
21121 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21123 (input_interrupt): Likewise.
21125 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21127 * server.c (get_features_xml): Check if target implemented
21129 * win32-i386-low.c (win32_arch_string): New.
21130 (win32_target_ops): Add win32_arch_string as arch_string member.
21132 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21134 * spu-low.c (spu_arch_string): New.
21135 (spu_target_ops): Add spu_arch_string.
21137 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21139 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21140 * configure.ac: Do not check for terminal.h.
21141 * configure, config.in: Regenerated.
21143 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21145 * Makefile.in (OBS): Add $(XML_BUILTIN).
21146 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21148 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21149 (arm-with-iwmmxt.c): New.
21150 * config.in, configure: Regenerate.
21151 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21152 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21153 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21154 (arm*-*-linux*): Add iWMMXt and regset support.
21155 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21156 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21157 (arm_store_wmmxregset, target_regsets): New.
21158 * server.c (get_features_xml): Take annex argument. Check builtin
21160 (handle_query): Handle multiple annexes.
21162 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21164 * remote-utils.c [USE_WIN32API] (read, write): Define.
21165 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21168 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21170 * linux-i386-low.c (the_low_target): Set arch_string.
21171 * linux-x86-64-low.c (the_low_target): Likewise.
21172 * linux-low.c (linux_arch_string): New.
21173 (linux_target_ops): Add it.
21174 * linux-low.h (struct linux_target_ops): Add arch_string.
21175 * server.c (write_qxfer_response): Use const void * for DATA.
21176 (get_features_xml): New.
21177 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21178 * target.h (struct target_ops): Add arch_string method.
21180 2007-01-03 Denis Pilat <denis.pilat@st.com>
21181 Daniel Jacobowitz <dan@codesourcery.com>
21183 * linux-low.c (linux_kill): Handle being called with no threads.
21184 * win32-i386-low.c (win32_kill): Likewise.
21185 (get_child_debug_event): Clear current_process_handle.
21187 2006-12-30 Denis PILAT <denis.pilat@st.com>
21188 Daniel Jacobowitz <dan@codesourcery.com>
21190 * remote-utils.c (remote_open): Check the type of specified
21191 serial port devices before opening them.
21192 * server.c (main): Kill the inferior if an error occurs during
21193 the first remote_open.
21195 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21197 * README: Update supported targets.
21199 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21201 * Makefile.in (clean): Remove reg-mips64.c.
21202 (reg-mips64.c, reg-mips64.o): New rules.
21203 * configure.srv: Handle mips64. Include regset support for mips.
21204 * linux-mips-low.c (union mips_register): New.
21205 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21206 (mips_breakpoint, mips_breakpoint_at): Use int.
21207 (mips_collect_register, mips_supply_register)
21208 (mips_collect_register_32bit, mips_supply_register_32bit)
21209 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21210 (mips_store_fpregset, target_regsets): New.
21211 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21213 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21215 * configure.srv: Add target "spu*-*-*".
21216 * Makefile.in (clean): Remove reg-spu.c.
21217 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21218 * spu-low.c: New file.
21220 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21222 * configure.ac: Correct td_thr_tls_get_addr test.
21223 * configure: Regenerated.
21225 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21227 * linux-low.c (linux_wait_for_event): Reformat. Use the
21228 pass_signals array.
21229 * remote-utils.c (decode_address_to_semicolon): New.
21230 * server.c (pass_signals, handle_general_set): New.
21231 (handle_query): Mention QPassSignals for qSupported.
21232 (main): Call handle_general_set.
21233 * server.h (pass_signals, decode_address_to_semicolon): New.
21235 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21237 * server.c (handle_query): Correct error handling for read_auxv.
21239 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21241 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21242 and srv_linux_thread_db to yes.
21243 * linux-s390-low.c (s390_fill_gregset): New function.
21244 (target_regsets): Define data structure.
21246 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21248 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21249 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21250 * config.in, configure: Regenerated.
21251 * inferiors.c (gdb_id_to_thread): New function.
21252 (gdb_id_to_thread_id): Use it.
21253 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21254 * linux-low.h (struct process_info): Add th member.
21255 (thread_db_get_tls_address): New prototype.
21256 * remote-utils.c (decode_address): Make non-static.
21257 * server.c (handle_query): Handle qGetTLSAddr.
21258 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21259 * target.h (struct target_ops): Add get_tls_address.
21260 * thread-db.c (maybe_attach_thread): Save the thread handle.
21261 (thread_db_get_tls_address): New.
21263 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21265 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21266 (linux_resume_one_process): Take a siginfo_t *. Update all
21267 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21268 (struct pending_signals): Add a siginfo_t.
21269 (linux_wait_for_process): Always set last_status.
21270 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21271 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21272 * linux-low.h (struct process_info): Add last_status.
21274 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21276 * remote-utils.c (try_rle): New function.
21277 (putpkt_binary): Use it.
21279 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21281 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21282 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21283 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21284 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21285 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21288 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21290 * server.c (terminal_fd): New variable.
21291 (old_foreground_pgrp): Likewise.
21292 (restore_old_foreground_pgrp): New function.
21293 (start_inferior): Record the terminal file descriptor in terminal_fd
21294 and its original foreground group in old_foreground_pgrp. Register
21295 restore_old_foreground_pgrp with atexit().
21297 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21299 * server.c (handle_query): Correct qPart to qXfer.
21301 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21303 * configure.ac: Check for more headers which are missing on
21304 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21305 * configure.srv: Add Cygwin and mingw32.
21306 * remote-utils.c: Don't include headers unconditionally which
21307 are missing on mingw32. Include <winsock.h> for mingw32.
21308 (remote_open): Adjust for mingw32 support. Flush
21309 standard error after writing to it.
21310 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21311 (unblock_async_io, enable_async_io, disable_async_io)
21312 (readchar, getpkt): Update for Winsock support.
21313 (prepare_resume_reply): Expect a protocol signal number.
21314 * server.c: Disable <sys/wait.h> on mingw32.
21315 (start_inferior): Adjust for mingw32 support. Flush
21316 standard error after writing to it.
21317 (attach_inferior): Likewise. Use protocol signal
21319 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21321 * win32-i386-low.c: New file.
21322 * Makefile.in (XM_CLIBS): Set.
21323 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21324 (win32-i386-low.o): New dependency rule.
21325 * linux-low.c (linux_wait): Use target signal numbers.
21326 * target.h (struct target_ops): Doc fix.
21327 * server.h (target_signal_to_name): New prototype.
21328 * gdbreplay.c: Don't include headers unconditionally which
21329 are missing on mingw32. Include <winsock.h> for mingw32.
21330 (remote_close, remote_open): Adjust for Winsock support.
21331 * configure, config.in: Regenerated.
21333 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21335 * server.c (decode_xfer_read, write_qxfer_response): New.
21336 (handle_query): Take a packet length argument. Handle
21337 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21338 the qSupported response.
21339 (main): Update call to handle_query.
21341 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21343 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21344 (putpkt_binary): Renamed from putpkt and adjusted for binary
21346 (putpkt): New wrapper for putpkt_binary.
21347 (readchar): Don't mask off the high bit.
21348 (decode_X_packet): New function.
21349 * server.c (main): Call putpkt_binary if a handler sets the packet
21350 length. Save the length of the incoming packet. Handle 'X'.
21351 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21353 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21355 * server.c (handle_query): Handle qSupported.
21357 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21359 * remote-utils.c (all_symbols_looked_up): New variable.
21360 (look_up_one_symbol): Check it.
21361 * server.h (look_up_one_symbol): New declaration.
21362 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21364 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21366 * Makefile.in (linux-arm-low.o): Update dependencies.
21367 * linux-arm-low.c: Include "gdb_proc_service.h".
21368 (PTRACE_GET_THREAD_AREA): Define.
21369 (ps_get_thread_area): New function.
21371 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21373 * configure.srv (m68k*-*-uclinux*): New target.
21374 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21375 (linux_resume_one_process): Remove extraneous cast.
21376 (linux_read_offsets): New.
21377 (linux_target_op): Add linux_read_offsets on mmuless systems.
21378 * server.c (handle_query): Add qOffsets logic.
21379 * target.h (struct target_ops): Add read_offsets.
21381 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21383 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21384 (PTRACE_GET_THREAD_AREA): Define.
21385 (ps_get_thread_area): New function.
21386 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21387 (linux-x86-64-low.o): Update.
21389 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21391 * configure.ac: Remove checks for prfpregset_t.
21392 * gdb_proc_service.h: New file.
21393 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21394 new "gdb_proc_service.h".
21395 * proc-service.c: Likewise.
21396 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21397 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21398 * Makefile.in (gdb_proc_service_h): Updated.
21399 * configure, config.in: Regenerated.
21401 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21403 * remote-utils.c (prepare_resume_reply): Move declaration
21404 of gdb_id_from_wait to the top of the block.
21406 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21408 * linux-low.c (regsets_store_inferior_registers): Read the regset
21409 from the target before filling it.
21411 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21413 * server.c (attach_inferior): Return SIGTRAP for a successful
21416 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21418 * Makefile.in (OBS): Add version.o.
21419 (STAGESTUFF): Delete.
21420 (version.o): Add dependencies.
21421 (version.c): Replace rule.
21422 (clean): Remove version.c.
21423 * server.c (gdbserver_version): New.
21424 (gdbserver_usage): Use printf.
21425 (main): Handle --version and --help.
21426 * server.h (version, host_name): Add declarations.
21428 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21440 * linux-x86-64-low.c:
21442 * linux-s390-low.c:
21443 * linux-ppc64-low.c:
21445 * linux-mips-low.c:
21446 * linux-m68k-low.c:
21447 * linux-m32r-low.c:
21450 * linux-ia64-low.c:
21451 * linux-i386-low.c:
21452 * linux-crisv32-low.c:
21464 * gdbserver.1: Add (C) after Copyright. Update the FSF
21467 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21469 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21470 (arm_breakpoint_at): Recognize both breakpoints.
21471 (the_low_target): Use the correct breakpoint instruction.
21473 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21475 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21476 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21477 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21478 (the_low_target): Update.
21480 2005-10-25 Andreas Schwab <schwab@suse.de>
21482 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21484 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21485 (ia64_num_regs): Reduce to 462.
21487 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21489 * acinclude.m4: Correct quoting.
21490 * aclocal.m4: Regenerated.
21492 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21493 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21494 (thread_db_init): Call thread_db_err_str.
21495 * configure.ac: Check for TD_VERSION.
21496 * config.in, configure: Regenerated.
21498 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21500 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21502 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21504 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21505 is not available. Define HAVE_PTRACE_GETREGS if it is.
21506 * config.in, configure: Regenerated.
21507 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21508 * linux-i386-low.c, linux-m68k-low.c: Update to use
21509 HAVE_PTRACE_GETREGS.
21510 * linux-low.c (regsets_fetch_inferior_registers)
21511 (regsets_store_inferior_registers): Only return 0 if we processed
21513 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21514 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21516 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21518 * inferiors.c (struct thread_info): Add gdb_id.
21519 (add_thread): Add gdb_id argument.
21520 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21521 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21522 calls to add_thread.
21523 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21524 * server.c (handle_query): Use thread_to_gdb_id.
21525 (handle_v_cont, main): Use gdb_id_to_thread_id.
21526 * server.h (add_thread): Update prototype.
21527 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21530 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21532 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21533 left-padded registers.
21534 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21535 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21537 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21539 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21540 * configure: Regenerate.
21541 * config.in: Regenerate.
21542 * server.h (NEED_DECLARATION_STRERROR):
21543 Replace with !HAVE_DECL_STRERROR.
21545 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21547 * linux-low.c (linux_wait, linux_send_signal): Don't test
21548 an unsigned long variable for > 0 if it could be MAX_ULONG.
21549 * server.c (myresume): Likewise.
21550 * target.c (set_desired_inferior): Likewise.
21552 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21554 * configure.ac: Simplify and improve check for socklen_t.
21555 * configure, config.in: Regenerate.
21557 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21559 * acconfig.h: Remove.
21560 * configure.ac: Add a test for socklen_t. Use three-argument
21561 AC_DEFINE throughout.
21562 * config.in: Regenerated using autoheader 2.59.
21563 * configure: Regenerated.
21565 * gdbreplay.c (socklen_t): Provide a default.
21566 (remote_open): Use socklen_t.
21567 * remote-utils.c (socklen_t): Provide a default.
21568 (remote_open): Use socklen_t.
21569 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21572 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21574 * linux-low.c (linux_read_memory, linux_write_memory)
21575 (linux_read_auxv): Likewise.
21576 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21577 (check_mem_write): Likewise.
21578 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21580 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21581 (registers_from_string, register_data): Likewise.
21582 * server.c (handle_query, main): Likewise.
21583 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21584 (decode_M_packet): Likewise.
21585 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21586 * target.h (struct target_ops): Update read_memory, write_memory,
21588 (read_inferior_memory, write_inferior_memory): Update.
21589 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21590 to unsigned char *.
21591 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21592 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21593 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21594 linux-s390-low.c, linux-sh-low.c: Update for changes in
21595 read_inferior_memory and the_low_target->breakpoint.
21597 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21599 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21600 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21601 * configure.srv: Add powerpc64-*-linux*.
21602 * linux-ppc64-low.c: New file.
21604 2005-05-23 Orjan Friberg <orjanf@axis.com>
21606 * linux-cris-low.c: New file with support for CRIS.
21607 * linux-crisv32-low.c: Ditto for CRISv32.
21608 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21609 (clean): Add reg-cris.c and reg-crisv32.c.
21610 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21611 reg-crisv32.o, and reg-crisv32.c to make rules.
21612 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21613 recognized targets.
21615 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21617 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21618 of sizeof (PTRACE_XFER_TYPE).
21619 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21621 2005-05-12 Orjan Friberg <orjanf@axis.com>
21623 * target.h (struct target_ops): Add insert_watchpoint,
21624 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21625 pointers for hardware watchpoint support.
21626 * linux-low.h (struct linux_target_ops): Ditto.
21627 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21628 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21629 to linux_target_ops.
21630 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21632 * server.c (main): Recognize 'Z' and 'z' packets.
21634 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21636 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21637 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21638 (the_low_target): Add new members.
21640 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21642 * proc-service.c (ps_lgetregs): Search all_processes instead of
21645 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21647 * server.c (start_inferior): Change return type to int.
21648 (attach_inferior): Change sigptr to int *.
21649 (handle_v_cont, handle_v_requests): Change signal to int *.
21650 (main): Change signal to int.
21652 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21654 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21655 * configure.srv: Add m32r*-*-linux*.
21656 * linux-m32r-low.c: New file.
21658 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21660 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21662 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21664 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21665 Take unsigned long arguments for PIDs.
21666 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21667 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21668 (wait_for_sigstop, linux_resume_one_process)
21669 (regsets_fetch_inferior_registers, linux_send_signal)
21670 (linux_read_auxv): Likewise. Update the types of variables holding
21671 PIDs. Update format string specifiers.
21672 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21673 * remote-utils.c (prepare_resume_reply): Likewise.
21674 * server.c (cont_thread, general_thread, step_thread)
21675 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21677 (handle_query): Update format specifiers.
21678 (handle_v_cont, main): Use strtoul for thread IDs.
21679 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21680 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21681 (general_thread, step_thread, thread_from_wait)
21682 (old_thread_from_wait): Update.
21683 * target.h (struct thread_resume): Use unsigned long for THREAD.
21684 (struct target_ops): Use unsigned long for arguments to attach and
21687 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21689 * acinclude.m4: Include bfd/bfd.m4 directly.
21690 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21691 <agriffis@toolchain.org>.
21692 * aclocal.m4, configure: Regenerated.
21694 2005-01-07 Andrew Cagney <cagney@gnu.org>
21696 * configure.ac: Rename configure.in, require autoconf 2.59.
21697 * configure: Re-generate.
21699 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21701 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21702 LIBS when finished.
21703 * aclocal.m4: Regenerated.
21704 * configure: Regenerated.
21706 2004-11-21 Andreas Schwab <schwab@suse.de>
21708 * linux-m68k-low.c (m68k_num_gregs): Define.
21709 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21710 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21711 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21712 (m68k_breakpoint_at): New. Add to the_low_target.
21714 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21715 srv_linux_thread_db to yes.
21717 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21719 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21720 (ARCH_SET_FS): Likewise.
21721 (ARCH_GET_FS): Likewise.
21722 (ARCH_GET_GS): Likewise.
21724 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21726 * linux-i386-low.c (ps_get_thread_area): New.
21727 * linux-x86-64-low.c (ps_get_thread_area): New.
21728 * linux-low.c: Include <sys/syscall.h>.
21729 (linux_kill_one_process): Don't kill the first thread here.
21730 (linux_kill): Kill the first thread here.
21731 (kill_lwp): New function.
21732 (send_sigstop, linux_send_signal): Use it.
21733 * proc-service.c: Clean up #ifdefs.
21734 (fpregset_info): Delete.
21735 (ps_lgetregs): Update and enable implementation.
21736 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21738 * remote-utils.c (struct sym_cache, symbol_cache): New.
21739 (input_interrupt): Print a clearer message.
21740 (async_io_enabled): New variable.
21741 (enable_async_io, disable_async_io): Use it. Update comments.
21742 (look_up_one_symbol): Use the symbol cache.
21743 * thread-db.c (thread_db_look_up_symbols): New function.
21744 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21746 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21748 * configure.in: Test for -rdynamic.
21749 * configure: Regenerated.
21750 * Makefile (INTERNAL_LDFLAGS): New.
21751 (gdbserver, gdbreplay): Use it.
21753 2004-09-02 Andrew Cagney <cagney@gnu.org>
21755 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21757 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21759 * linux-low.c (linux_wait): Clear all_processes list also.
21761 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21763 * linux-low.c: Include <errno.h>. Remove extern declaration of
21766 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21768 * gdbreplay.c, server.h, utils.c: Update copyright years.
21770 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21772 * server.c (main): Print child status or termination signal from
21773 variable 'signal', not 'sig'.
21775 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21777 * linux-low.c (linux_read_memory): Change return type to
21778 int. Check for and return error from ptrace().
21779 * target.c (read_inferior_memory): Change return type to int. Pass
21780 back return status from the_target->read_memory().
21781 * target.h (struct target_ops): Adapt *read_memory() prototype.
21783 (read_inferior_memory): Adapt prototype.
21784 * server.c (main): Return an error packet if
21785 read_inferior_memory() returns an error.
21787 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21789 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21790 Unify with other clean targets.
21792 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21794 * server.c (handle_v_cont): Call set_desired_inferior.
21796 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21798 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21800 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21802 * linux-low.c (linux_wait): Unblock async I/O.
21803 (linux_resume): Block and enable async I/O.
21804 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21805 * server.h (block_async_io, unblock_async_io): Add prototypes.
21807 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21809 * remote-utils.c (remote_open): Print a status notice after
21810 opening a TCP port.
21811 * server.c (attach_inferior): Print a status notice after
21814 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21816 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21818 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21820 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21822 * server.c, target.h: Update copyright years.
21824 2004-02-25 Roland McGrath <roland@redhat.com>
21826 * target.h (struct target_ops): New member `read_auxv'.
21827 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21828 * linux-low.c (linux_read_auxv): New function.
21829 (linux_target_ops): Initialize `read_auxv' member to that.
21831 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21833 Committed by Jim Blandy <jimb@redhat.com>.
21835 * linux-s390-low.c (s390_num_regs): Update.
21836 (s390_regmap): Remove control registers. Use __s390x__ predefine
21837 instead of GPR_SIZE to distiguish s390 and s390x targets.
21839 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21841 * linux-low.c: Update copyright year.
21842 (check_removed_breakpoint): Clear pending_is_breakpoint.
21843 (linux_set_resume_request, linux_queue_one_thread)
21844 (resume_status_pending_p): New functions.
21845 (linux_continue_one_thread): Use process->resume.
21846 (linux_resume): Only resume threads if there are no pending events.
21847 * linux-low.h (struct process_info): Add resume request
21850 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21852 * regcache.c (new_register_cache): Clear the allocated register
21853 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21855 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21857 * linux-low.c (linux_resume): Take a struct thread_resume *
21859 (linux_wait): Update call.
21860 (resume_ptr): New static variable.
21861 (linux_continue_one_thread): Renamed from
21862 linux_continue_one_process. Use resume_ptr.
21863 (linux_resume): Use linux_continue_one_thread.
21864 * server.c (handle_v_cont, handle_v_requests): New functions.
21865 (myresume): New function.
21866 (main): Handle 'v' case.
21867 * target.h (struct thread_resume): New type.
21868 (struct target_ops): Change argument of "resume" to struct
21870 (myresume): Delete macro.
21872 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21874 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21875 (uninstall): Support DESTDIR.
21877 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21879 * configure.srv: Add xscale*linux copy of arm*linux entry.
21881 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21883 * linux-arm-low.c (arm_reinsert_addr): New function.
21884 (the_low_target): Add arm_reinsert_addr.
21886 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21888 * mem-break.c: Remove whitespace at end of file.
21890 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21892 * configure.in: Check whether we need to prototype strerror.
21893 * server.h: Optionally prototype strerror.
21894 * gdbreplay.c (perror_with_name): Use strerror.
21895 * linux-low.c (linux_attach_lwp): Use strerror.
21896 * utils.c (perror_with_name): Use strerror.
21897 * config.in, configure: Regenerated.
21899 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21901 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21902 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21904 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21906 * Makefile.in (SFILES): Update.
21907 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21908 low-sun3.c: Remove files.
21910 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21912 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21913 (linux_detach_one_process, linux_detach): New functions.
21914 (linux_target_ops): Add linux_detach.
21915 * server.c (main): Handle 'D' packet.
21916 * target.h (struct target_ops): Add "detach" member.
21917 (detach_inferior): Define.
21919 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21921 From Kelley Cook <kelleycook@wideopenwest.com>:
21922 * configure.srv: Accept i[34567]86 variants.
21924 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21926 * linux-low.c (linux_wait_for_event): Correct comment typos.
21927 (linux_resume_one_process): Call check_removed_breakpoint.
21928 (linux_send_signal): New function.
21929 (linux_target_ops): Add linux_send_signal.
21930 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21932 * target.h (struct target_ops): Add send_signal.
21934 2003-05-29 Jim Blandy <jimb@redhat.com>
21936 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21937 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21938 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21939 away part of the register's value.
21941 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21943 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21944 (linux_wait_for_event, linux_init_signals): Likewise.
21946 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21948 * configure.in: Check for stdlib.h.
21949 * configure: Regenerated.
21950 * config.in: Regenerated.
21952 2003-01-04 Andreas Schwab <schwab@suse.de>
21954 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21956 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21958 * Makefile.in: Remove obsolete code.
21960 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21962 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21963 defined(PT_FPR0_HI).
21965 2002-11-17 Stuart Hughes <seh@zee2.com>
21967 * linux-arm-low.c (arm_num_regs): Increase.
21968 (arm_regmap): Include status register.
21970 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21972 * linux-low.c (register_addr): Remove incorrect -1 check.
21974 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21976 * linux-low.c (linux_create_inferior): Call setpgid. Return
21978 (unstopped_p, linux_signal_pid): Remove.
21979 (linux_target_ops): Remove linux_signal_pid.
21980 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21981 global instead of target method.
21982 * target.h (struct target_ops): Remove signal_pid. Update comment
21983 for create_inferior.
21984 * server.c (signal_pid): New variable.
21985 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21986 gdbserver. Set the child to be the foreground process group.
21987 (attach_inferior): Set signal_pid.
21989 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21991 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21993 2002-08-20 Jim Blandy <jimb@redhat.com>
21995 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21998 2002-08-01 Andrew Cagney <cagney@redhat.com>
22000 * Makefile.in: Make chill references obsolete.
22002 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22004 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22005 * configure: Regenerate.
22006 * config.in: Regenerate.
22008 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22010 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22011 (perror_with_name, remote_close, remote_open, expect, play): Static.
22013 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22015 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22016 byte offsets instead of an array of indexes.
22017 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22019 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22021 * regcache.c: Add comment.
22023 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22025 * thread-db.c: New file.
22026 * proc-service.c: New file.
22027 * acinclude.m4: New file.
22028 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22029 proc-service.o, and thread-db.o.
22030 (linux-low.o): Add USE_THREAD_DB.
22031 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22032 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22033 * aclocal.m4: Regenerated.
22034 * config.in: Regenerated.
22035 * configure: Regenerated.
22036 * configure.in: Check for proc_service.h, sys/procfs.h,
22037 thread_db.h, and linux/elf.h headrs.
22038 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22039 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22040 Check for -lthread_db and thread support.
22041 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22042 PowerPC, and SuperH.
22043 * i387-fp.c: Constify arguments.
22044 * i387-fp.h: Likewise.
22045 * inferiors.c: (struct thread_info): Renamed from
22046 `struct inferior_info'. Remove PID member. Use generic inferior
22047 list header. All uses updated.
22048 (inferiors, signal_pid): Removed.
22049 (all_threads): New variable.
22050 (get_thread): Define.
22051 (add_inferior_to_list): New function.
22052 (for_each_inferior): New function.
22053 (change_inferior_id): New function.
22054 (add_inferior): Removed.
22055 (remove_inferior): New function.
22056 (add_thread): New function.
22057 (free_one_thread): New function.
22058 (remove_thread): New function.
22059 (clear_inferiors): Use for_each_inferior and free_one_thread.
22060 (find_inferior): New function.
22061 (find_inferior_id): New function.
22062 (inferior_target_data): Update argument type.
22063 (set_inferior_target_data): Likewise.
22064 (inferior_regcache_data): Likewise.
22065 (set_inferior_regcache_data): Likewise.
22066 * linux-low.c (linux_bp_reinsert): Remove.
22067 (all_processes, stopping_threads, using_thrads)
22068 (struct pending_signals, debug_threads, pid_of): New.
22069 (inferior_pid): Replace with macro.
22070 (struct inferior_linux_data): Remove.
22071 (get_stop_pc, add_process): New functions.
22072 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22073 Use add_process and add_thread.
22074 (linux_attach_lwp): New function, based on old linux_attach. Use
22075 add_process and add_thread. Set stop_expected for new threads.
22076 (linux_attach): New function.
22077 (linux_kill_one_process): New function.
22078 (linux_kill): Kill all LWPs.
22079 (linux_thread_alive): Use find_inferior_id.
22080 (check_removed_breakpoints, status_pending_p): New functions.
22081 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22082 Update. Use WNOHANG. Wait for cloned processes also. Update process
22083 struct for the found process.
22084 (linux_wait_for_event): New function.
22085 (linux_wait): Use it. Support LWPs.
22086 (send_sigstop, wait_for_sigstop, stop_all_processes)
22087 (linux_resume_one_process, linux_continue_one_process): New functions.
22088 (linux_resume): Support LWPs.
22089 (REGISTER_RAW_SIZE): Remove.
22090 (fetch_register): Use register_size instead. Call supply_register.
22091 (usr_store_inferior_registers): Likewise. Call collect_register.
22092 Fix recursive case.
22093 (regsets_fetch_inferior_registers): Improve error message.
22094 (regsets_store_inferior_registers): Add debugging.
22095 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22096 (unstopped_p, linux_signal_pid): New functions.
22097 (linux_target_ops): Add linux_signal_pid.
22098 (linux_init_signals): New function.
22099 (initialize_low): Call it. Initialize using_threads.
22100 * regcache.c (inferior_regcache_data): Add valid
22102 (get_regcache): Fetch registers lazily. Add fetch argument
22103 and update all callers.
22104 (regcache_invalidate_one, regcache_invalidate): New
22106 (new_register_cache): Renamed from create_register_cache.
22107 Return the new regcache.
22108 (free_register_cache): Change argument to a void *.
22109 (registers_to_string, registers_from_string): Call get_regcache
22110 with fetch flag set.
22111 (register_data): Make static. Pass fetch flag to get_regcache.
22112 (supply_register): Call get_regcache with fetch flag clear.
22113 (collect_register): Call get_regcache with fetch flag set.
22114 (collect_register_as_string): New function.
22115 * regcache.h: Update.
22116 * remote-utils.c (putpkt): Flush after debug output and use
22118 Handle input interrupts while waiting for an ACK.
22119 (input_interrupt): Use signal_pid method.
22120 (getpkt): Flush after debug output and use stderr.
22121 (outreg): Use collect_register_as_string.
22122 (new_thread_notify, dead_thread_notify): New functions.
22123 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22124 and general_thread.
22125 (look_up_one_symbol): Flush after debug output.
22126 * server.c (step_thread, server_waiting): New variables.
22127 (start_inferior): Don't use signal_pid. Update call to mywait.
22128 (attach_inferior): Update call to mywait.
22129 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22130 (main): Don't fetch/store registers explicitly. Use
22131 set_desired_inferior. Support proposed ``Hs'' packet. Update
22133 * server.h: Update.
22134 (struct inferior_list, struct_inferior_list_entry): New.
22135 * target.c (set_desired_inferior): New.
22136 (write_inferior_memory): Constify.
22137 (mywait): New function.
22138 * target.h: Update.
22139 (struct target_ops): New signal_pid method.
22140 (mywait): Removed macro, added prototype.
22142 * linux-low.h (regset_func): Removed.
22143 (regset_fill_func, regset_store_func): New.
22144 (enum regset_type): New.
22145 (struct regset_info): Add type field. Use new operation types.
22146 (struct linux_target_ops): stop_pc renamed to get_pc.
22147 Add decr_pc_after_break and breakpoint_at.
22148 (get_process, get_thread_proess, get_process_thread)
22149 (strut process_info, all_processes, linux_attach_lwp)
22150 (thread_db_init): New.
22152 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22153 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22154 (the_low_target): Add new members.
22155 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22156 (i386_store_fpxregset): Constify.
22157 (target_regsets): Add new kind identifier.
22158 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22159 (i386_set_pc): Add debugging.
22160 (i386_breakpoint_at): New function.
22161 (the_low_target): Add new members.
22162 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22163 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22164 (mips_breakpoint_at): New.
22165 (the_low_target): Add new members.
22166 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22167 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22168 (the_low_target): Add new members.
22169 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22170 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22171 (the_low_target): Add new members.
22172 * linux-x86-64-low.c (target_regsets): Add new kind
22175 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22177 From Martin Pool <mbp@samba.org>:
22178 * server.c (gdbserver_usage): New function.
22181 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22183 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22184 stop_at -> stop_pc.
22186 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22188 * Makefile.in: Remove obsolete code.
22190 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22192 * linux-low.c (regsets_fetch_inferior_registers),
22193 (regsets_store_inferior_registers): Removed cast to int from
22195 * regcache.h: Added declaration of struct inferior_info.
22197 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22199 * inferiors.c (struct inferior_info): Add regcache_data.
22200 (add_inferior): Call create_register_cache.
22201 (clear_inferiors): Call free_register_cache.
22202 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22203 * regcache.c (struct inferior_regcache_data): New.
22204 (registers): Remove.
22205 (get_regcache): New function.
22206 (create_register_cache, free_register_cache): New functions.
22207 (set_register_cache): Don't initialize the register cache here.
22208 (registers_to_string, registers_from_string, register_data): Call
22210 * regcache.h: Add prototypes.
22211 * server.h: Likewise.
22213 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22215 * mem-break.c: New file.
22216 * mem-break.h: New file.
22217 * Makefile.in: Add mem-break.o rule; update server.h
22219 * inferiors.c (struct inferior_info): Add target_data
22221 (clear_inferiors): Free target_data member if set.
22222 (inferior_target_data, set_inferior_target_data): New functions.
22223 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22224 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22225 * linux-low.c (linux_bp_reinsert): New variable.
22226 (struct inferior_linux_data): New.
22227 (linux_create_inferior): Use set_inferior_target_data.
22228 (linux_attach): Likewise. Call add_inferior.
22229 (linux_wait_for_one_inferior): New function.
22230 (linux_wait): Call it.
22231 (linux_write_memory): Add const.
22232 (initialize_low): Call set_breakpoint_data.
22233 * linux-low.h (struct linux_target_ops): Add breakpoint
22235 * server.c (attach_inferior): Remove extra add_inferior
22237 * server.h: Include mem-break.h. Update inferior.c
22239 * target.c (read_inferior_memory)
22240 (write_inferior_memory): New functions.
22241 * target.h (read_inferior_memory)
22242 (write_inferior_memory): Change macros to prototypes.
22243 (struct target_ops): Update comments. Add const to write_memory
22246 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22248 * linux-low.c (usr_store_inferior_registers): Support
22249 registers which are allowed to fail to store.
22250 * linux-low.h (linux_target_ops): Likewise.
22251 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22252 (ppc_cannot_store_register): FPSCR may not be storable.
22254 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22256 * server.h: Include <string.h> if HAVE_STRING_H.
22257 * ChangeLog: Correct paths in last ChangeLog entry.
22259 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22261 * linux-low.h: Remove obsolete prototypes.
22262 (struct linux_target_ops): New.
22263 (extern the_low_target): New.
22264 * linux-low.c (num_regs, regmap): Remove declarations.
22265 (register_addr): Use the_low_target explicitly.
22266 (fetch_register): Likewise.
22267 (usr_fetch_inferior_registers): Likewise.
22268 (usr_store_inferior_registers): Likewise.
22269 * linux-arm-low.c (num_regs): Remove.
22270 (arm_num_regs): Define.
22271 (arm_regmap): Renamed from regmap, made static.
22272 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22274 (arm_cannot_store_register): Renamed from cannot_store_register,
22276 (the_low_target): New.
22277 * linux-i386-low.c (num_regs): Remove.
22278 (i386_num_regs): Define.
22279 (i386_regmap): Renamed from regmap, made static.
22280 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22282 (i386_cannot_store_register): Renamed from cannot_store_register,
22284 (the_low_target): New.
22285 * linux-ia64-low.c (num_regs): Remove.
22286 (ia64_num_regs): Define.
22287 (ia64_regmap): Renamed from regmap, made static.
22288 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22290 (ia64_cannot_store_register): Renamed from cannot_store_register,
22292 (the_low_target): New.
22293 * linux-m68k-low.c (num_regs): Remove.
22294 (m68k_num_regs): Define.
22295 (m68k_regmap): Renamed from regmap, made static.
22296 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22298 (m68k_cannot_store_register): Renamed from cannot_store_register,
22300 (the_low_target): New.
22301 * linux-mips-low.c (num_regs): Remove.
22302 (mips_num_regs): Define.
22303 (mips_regmap): Renamed from regmap, made static.
22304 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22306 (mips_cannot_store_register): Renamed from cannot_store_register,
22308 (the_low_target): New.
22309 * linux-ppc-low.c (num_regs): Remove.
22310 (ppc_num_regs): Define.
22311 (ppc_regmap): Renamed from regmap, made static.
22312 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22314 (ppc_cannot_store_register): Renamed from cannot_store_register,
22316 (the_low_target): New.
22317 * linux-s390-low.c (num_regs): Remove.
22318 (s390_num_regs): Define.
22319 (s390_regmap): Renamed from regmap, made static.
22320 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22322 (s390_cannot_store_register): Renamed from cannot_store_register,
22324 (the_low_target): New.
22325 * linux-sh-low.c (num_regs): Remove.
22326 (sh_num_regs): Define.
22327 (sh_regmap): Renamed from regmap, made static.
22328 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22330 (sh_cannot_store_register): Renamed from cannot_store_register,
22332 (the_low_target): New.
22333 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22334 (the_low_target): New.
22336 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22338 * Makefile.in: Add stamp-h target.
22339 * configure.in: Create stamp-h.
22340 * configure: Regenerated.
22342 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22344 * inferiors.c: New file.
22345 * target.c: New file.
22346 * target.h: New file.
22347 * Makefile.in: Add target.o and inferiors.o. Update
22349 * linux-low.c (inferior_pid): New static variable,
22350 moved from server.c.
22351 (linux_create_inferior): Renamed from create_inferior.
22352 Call add_inferior. Return 0 on success instead of a PID.
22353 (linux_attach): Renamed from myattach.
22354 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22355 (linux_thread_alive): Renamed from mythread_alive.
22356 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22358 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22359 (regsets_store_inferior_registers): Correct error message.
22360 Add missing ``return 0''.
22361 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22362 (linux_store_registers): Renamed from store_inferior_registers.
22363 (linux_read_memory): Renamed from read_inferior_memory.
22364 (linux_write_memory): Renamed from write_inferior_memory.
22365 (linux_target_ops): New structure.
22366 (initialize_low): Call set_target_ops ().
22367 * remote-utils.c (unhexify): New function.
22368 (hexify): New function.
22369 (input_interrupt): Send signals to ``signal_pid''.
22370 * server.c (inferior_pid): Remove.
22371 (start_inferior): Update create_inferior call.
22372 (attach_inferior): Call add_inferior.
22373 (handle_query): New function.
22374 (main): Call handle_query for `q' packets.
22375 * server.h: Include "target.h". Remove obsolete prototypes.
22376 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22378 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22380 * Makefile.in: Add WARN_CFLAGS. Update configury
22382 * configure.in: Check for <string.h>
22383 * configure: Regenerate.
22384 * config.in: Regenerate.
22385 * gdbreplay.c: Include needed system headers.
22386 (remote_open): Remove strchr prototype.
22387 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22388 * regcache.c (supply_register): Change buf argument to const void *.
22389 (supply_register_by_name): Likewise.
22390 (collect_register): Change buf argument to void *.
22391 (collect_register_by_name): Likewise.
22392 * regcache.h: Add missing prototypes.
22393 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22394 * server.c (handle_query): New function.
22395 (attached): New static variable, moved out of main.
22396 (main): Quiet longjmp clobber warnings.
22397 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22398 * utils.c (error): Remove NORETURN.