1 2020-10-01 Kamil Rytarowski <n54@gmx.com>
3 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
4 (netbsd_target_regsets): Now const.
5 (the_low_target): Remove.
6 (class netbsd_amd64_target, the_netbsd_amd64_target)
7 (the_netbsd_target): Add.
8 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
10 (netbsd_process_target::fetch_registers)
11 (netbsd_process_target::store_registers, initialize_low): Update.
12 (the_netbsd_target): Remove.
13 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
14 (the_low_target, netbsd_tdesc): Remove.
15 (netbsd_process_target::get_regs_info)
16 (netbsd_process_target::low_arch_setup): Add.
18 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
20 * win32-low.cc: Remove local wow64_process variable.
21 * win32-low.h: Remove local wow64_process variable.
23 2020-09-18 Tom Tromey <tromey@adacore.com>
25 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
26 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
27 (netbsd_process_target::wait): Change type of target_options.
28 * win32-low.h (class win32_process_target) <wait>: Update.
29 * win32-low.cc (win32_process_target::wait): Update.
30 * target.h (class process_stratum_target) <wait>: Update.
32 * target.cc (mywait, target_wait): Change type of "options".
33 * linux-low.h (class linux_process_target) <wait, wait_1>:
35 * linux-low.cc (linux_process_target::wait)
36 (linux_process_target::wait_1): Update.
38 2020-09-15 Tom Tromey <tromey@adacore.com>
40 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
41 (xmltarget_amd64_linux_no_xml): Now arrays.
43 2020-09-14 Tom Tromey <tromey@adacore.com>
45 * tracepoint.cc (eval_result_names): Now const.
46 * ax.cc (gdb_agent_op_names): Now const.
48 2020-09-10 Kamil Rytarowski <n54@gmx.com>
51 * netbsd-low.h: Likewise.
52 * netbsd-amd64-low.cc: Likewise.
53 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
54 "netbsd-amd64-low.cc".
55 * configure.srv: Add x86_64-*-netbsd*.
57 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
59 * server.cc (captured_main): Accept multiple `--selftest=`
60 options. Pass all `--selftest=` arguments to run_tests.
62 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
64 * configure, config.in: Regenerate.
66 2020-07-26 Eli Zaretskii <eliz@gnu.org>
68 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
69 When checking whether socklen_t type is defined, use ws2tcpip.h if
70 it is available and sys/socket.h isn't.
71 * configure: Regenerate.
72 * config.in: Regenerate.
74 2020-07-22 Pedro Alves <pedro@palves.net>
76 * inferiors.cc (switch_to_process): New, moved here from
77 thread-db.cc, and made extern.
78 * inferiors.h (switch_to_process): Declare.
79 * server.cc: Include "gdbsupport/scoped_restore.h".
80 (handle_qxfer_threads_proper): Now returns bool. Prepare to
81 access memory around target calls.
82 (handle_qxfer_threads): Handle errors.
83 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
85 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
87 * linux-low.cc (stopped_pids): Make static.
89 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
91 * tdesc.cc (allocate_target_description): Add header comment.
92 (target_desc_deleter::operator()): New function.
93 * tdesc.h (struct target_desc): Declare as final.
95 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
97 * server.cc (handle_query): Use std::vector of
98 std::string for `qsupported` vector. Use separate
100 * target.h (class process_stratum_target) <process_qsupported>:
101 Change parameters to array_view of const char *.
102 (target_process_qsupported): Remove `count` parameter.
103 * target.cc (process_stratum_target::process_qsupported): Change
104 parameters to array_view of const char *.
105 * linux-x86-low.cc (class x86_target) <process_qsupported>:
108 2020-06-29 Tom de Vries <tdevries@suse.de>
110 * ax.h: Include gdbsupport/debug_agent.h.
112 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
114 * tdesc.cc (struct tdesc_compatible_info): New struct.
115 (tdesc_compatible_info_list): New function.
116 (tdesc_compatible_info_arch_name): New function.
118 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
120 Use std::list to stop pending signal instead of manually-created
122 * linux-low.h: Include <list>.
123 (struct pending_signal): Move here from linux-low.cc.
124 (struct lwp_info) <pending_signals>
125 <pending_signals_to_report>: Update the type.
126 * linux-low.cc (struct pending_signals): Remove.
127 (linux_process_target::delete_lwp)
128 (linux_process_target::add_lwp)
129 (enqueue_one_deferred_signal)
130 (dequeue_one_deferred_signal)
131 (enqueue_pending_signal)
132 (linux_process_target::resume_one_lwp_throw)
133 (linux_process_target::thread_needs_step_over)
134 (linux_process_target::resume_one_thread)
135 (linux_process_target::proceed_one_lwp): Update the use of pending
138 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
140 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
143 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
145 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
146 * configure.srv: Remove mingw32ce cases.
147 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
148 * win32-low.h (to_back_slashes): Remove.
149 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
151 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
153 * Makefile.in (SFILES): linux-tile-low.cc.
154 * configure.srv: Remove tilegx case.
155 * linux-tile-low.cc: Remove.
157 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
159 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
160 * configure.srv: Remove m32r case.
161 * linux-m32r-low.cc: Remove.
163 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
165 * Makefile.in (SFILES): Remove linux-cris-low.c.
166 * configure.srv: Remove cris cases.
167 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
169 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
171 * Makefile.in (SFILES): Remove linux-bfin-low.c.
172 * configure.srv: Remove bfin case.
173 * linux-bfin-low.cc: Remove.
174 * linux-low.cc: Remove BFIN-conditional code.
176 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
178 * configure: Re-generate.
179 * configure.ac: Remove srv_qnx test.
180 * configure.srv: Remove nto case.
181 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
182 * remote-utils.c: Remove __QNX__-guarded code.
184 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
186 * configure: Re-generate.
187 * configure.ac: Remove srv_lynxos test.
188 * configure.srv: Remove lynxos cases.
189 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
192 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
194 * README: Fix a few outdated or incoherent things.
196 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
198 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
199 (win32_clear_inferiors): Use open_process_used.
200 (get_child_debug_event): Likewise.
202 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
205 * linux-low.cc (linux_process_target::create_inferior),
206 lynx-low.cc (lynx_process_target::create_inferior),
207 win32-low.cc (win32_process_target::create_inferior): Use
208 construct_inferior_arguments instead of stringify_argv
209 to get string representation which properly escapes
211 * server.cc (handle_v_run): Just pass empty program arg
212 as such, since any further processing is now handled via
213 construct_inferior_arguments.
215 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
217 * nto-low.cc (nto_process_target::create_inferior): Pass
218 argv to spawnp function as char **.
220 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
222 * server.cc (captured_main), (handle_v_run): No longer
223 insert extra NULL element to args vector.
225 2020-05-23 Pedro Alves <palves@redhat.com>
227 * gdb-safe-ctype.h: New.
229 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
231 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
232 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
233 (ia64_target::low_breakpoint_at): Ditto.
235 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
237 * win32-i386-low.cc (i386_supports_z_point_type): Handle
238 Z_PACKET_HW_BP z_type.
239 (i386_insert_point): Handle raw_bkpt_type type.
240 (i386_remove_point): Likewise.
242 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
244 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
246 * win32-arm-low.cc (arm_num_regs): New function.
247 (struct win32_target_ops): Use arm_num_regs.
248 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
250 (i386_get_thread_context): Likewise.
251 (i386_prepare_to_resume): Likewise.
252 (i386_thread_added): Likewise.
253 (i386_single_step): Likewise.
254 (i386_fetch_inferior_register): Likewise.
255 (i386_store_inferior_register): Likewise.
256 (i386_arch_setup): Likewise.
257 (i386_win32_num_regs): New function.
258 (struct win32_target_ops): Use i386_win32_num_regs.
259 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
261 (win32_require_context): Likewise.
262 (child_add_thread): Likewise.
263 (do_initial_child_stuff): Likewise.
264 (continue_one_thread): Likewise.
265 (win32_process_target::resume): Likewise.
266 (load_psapi): Likewise.
267 (win32_add_all_dlls): Likewise.
268 (maybe_adjust_pc): Likewise.
269 (win32_process_target::qxfer_siginfo): Likewise.
270 (initialize_low): Likewise.
271 * win32-low.h (struct win32_target_ops): Change num_regs to
274 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
276 * configure.ac: Remove check for fs_base/gs_base in
278 * configure: Re-generate.
279 * config.in: Re-generate.
280 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
281 x86_store_gregset): Adjust.
283 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
285 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
288 2020-04-16 Tom Tromey <tromey@adacore.com>
290 * win32-low.cc (windows_nat::handle_access_violation): New
293 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
295 * win32-low.cc (get_child_debug_event): Fix format string warning.
297 2020-04-13 Tom Tromey <tom@tromey.com>
299 * server.h (gdb_fildes_t): Remove typedef.
300 * remote-utils.c (remote_desc, list_desc): Now int.
301 (INVALID_DESCRIPTOR): Remove.
302 (gdb_connected, remote_close)
303 (check_remote_input_interrupt_request): Update.
304 * utils.h (pfildes): Don't declare.
305 * utils.c (pfildes): Remove.
307 2020-04-13 Tom Tromey <tom@tromey.com>
309 * server.h (handle_serial_event, handle_target_event): Update.
310 * server.c: Don't call initialize_event_loop.
311 (keep_processing_events): New global.
312 (handle_serial_event): Return void. Set keep_processing_events.
313 (handle_target_event): Return void.
314 (start_event_loop): Move from event-loop.c. Rewrite.
315 * remote-utils.c (handle_accept_event): Return void.
316 (reset_readchar): Use delete_timer.
317 (process_remaining): Return void.
318 (reschedule): Use create_timer.
319 * event-loop.h: Remove.
320 * event-loop.cc: Remove.
321 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
323 2020-04-13 Tom Tromey <tom@tromey.com>
325 * server.c (invoke_async_signal_handlers)
326 (check_async_event_handlers, flush_streams, gdb_select): New
329 2020-04-13 Tom Tromey <tom@tromey.com>
331 * configure: Rebuild.
332 * config.in: Rebuild.
334 2020-04-08 Tom Tromey <tromey@adacore.com>
337 * win32-low.c (child_continue): Call matching_pending_stop.
338 (get_child_debug_event): Call fetch_pending_stop. Push pending
341 2020-04-08 Tom Tromey <tromey@adacore.com>
343 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
344 (win32_process_target::supports_stopped_by_sw_breakpoint):
346 * win32-low.c (win32_supports_z_point_type): Always handle
348 (win32_insert_point): Call insert_memory_breakpoint when needed.
349 (win32_remove_point): Call remove_memory_breakpoint when needed.
350 (win32_process_target::stopped_by_sw_breakpoint)
351 (win32_process_target::supports_stopped_by_sw_breakpoint): New
353 (win32_target_ops): Update.
354 (maybe_adjust_pc): New function.
355 (win32_wait): Call maybe_adjust_pc.
357 2020-04-08 Tom Tromey <tromey@adacore.com>
359 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
361 * win32-i386-low.c (the_low_target): Update.
362 * win32-arm-low.c (the_low_target): Update.
364 2020-04-08 Tom Tromey <tromey@adacore.com>
366 * win32-low.h (win32_process_target::read_pc)
367 (win32_process_target::write_pc): Declare.
368 * win32-low.c (win32_process_target::read_pc)
369 (win32_process_target::write_pc): New methods.
370 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
372 (the_low_target): Update.
373 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
375 (the_low_target): Update.
377 2020-04-08 Tom Tromey <tromey@adacore.com>
379 * win32-low.c (win32_kill, get_child_debug_event): Use
380 wait_for_debug_event.
382 2020-04-08 Tom Tromey <tromey@adacore.com>
384 * win32-low.c (child_continue): Call continue_last_debug_event.
386 2020-04-08 Tom Tromey <tromey@adacore.com>
388 * win32-low.c (handle_exception): Remove.
389 (windows_nat::handle_ms_vc_exception): New function.
390 (get_child_debug_event): Add "continue_status" parameter.
392 (win32_wait): Update.
394 2020-04-08 Tom Tromey <tromey@adacore.com>
396 * win32-low.c (windows_nat::handle_load_dll): Rename from
397 handle_load_dll. No longer static.
398 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
401 2020-04-08 Tom Tromey <tromey@adacore.com>
403 * win32-low.c (handle_output_debug_string): Add parameter. Change
405 (win32_kill, get_child_debug_event): Update.
407 2020-04-08 Tom Tromey <tromey@adacore.com>
409 * win32-low.c (current_process_handle, current_process_id)
410 (main_thread_id, last_sig, current_event, siginfo_er): Move to
413 2020-04-08 Tom Tromey <tromey@adacore.com>
415 * win32-low.c (get_image_name): Remove.
416 (handle_load_dll): Update.
418 2020-04-08 Tom Tromey <tromey@adacore.com>
420 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
421 No longer static. Change parameters.
422 (child_add_thread, child_fetch_inferior_registers)
423 (child_store_inferior_registers, win32_resume)
424 (win32_get_tib_address): Update.
426 2020-04-08 Tom Tromey <tromey@adacore.com>
428 * win32-low.h (struct win32_target_ops): Use qualified names where
430 * win32-i386-low.c: Add "using namespace".
431 * win32-low.c: Add "using namespace".
432 * win32-arm-low.c: Add "using namespace".
434 2020-04-08 Tom Tromey <tromey@adacore.com>
436 * win32-low.c (delete_thread_info): Don't call CloseHandle.
438 2020-04-08 Tom Tromey <tromey@adacore.com>
440 * win32-low.c (win32_require_context, suspend_one_thread): Use
441 windows_thread_info::suspend.
442 (continue_one_thread): Use windows_thread_info::resume.
443 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
445 2020-04-08 Tom Tromey <tromey@adacore.com>
447 * win32-i386-low.c (update_debug_registers)
448 (i386_prepare_to_resume, i386_thread_added): Update.
450 2020-04-08 Tom Tromey <tromey@adacore.com>
452 * win32-low.c (child_add_thread): Use new.
453 (delete_thread_info): Use delete.
455 2020-04-08 Tom Tromey <tromey@adacore.com>
457 * win32-low.h (struct windows_thread_info): Remove.
459 2020-04-08 Tom Tromey <tromey@adacore.com>
461 * win32-low.h (struct windows_thread_info): Rename from
462 win32_thread_info. Remove typedef.
463 (struct win32_target_ops, win32_require_context): Update.
464 * win32-low.c (win32_get_thread_context)
465 (win32_set_thread_context, win32_prepare_to_resume)
466 (win32_require_context, thread_rec, child_add_thread)
467 (delete_thread_info, continue_one_thread)
468 (child_fetch_inferior_registers, child_store_inferior_registers)
469 (win32_resume, suspend_one_thread, win32_get_tib_address):
471 * win32-i386-low.c (update_debug_registers)
472 (win32_get_current_dr, i386_get_thread_context)
473 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
474 (i386_fetch_inferior_register, i386_store_inferior_register):
476 * win32-arm-low.c (arm_get_thread_context)
477 (arm_fetch_inferior_register, arm_store_inferior_register):
480 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
482 * linux-low.h (struct linux_target_ops): Remove.
483 (the_low_target): Remove.
484 * linux-x86-low.cc (the_low_target): Remove.
485 * linux-aarch64-low.cc (the_low_target): Ditto.
486 * linux-arm-low.cc (the_low_target): Ditto.
487 * linux-bfin-low.cc (the_low_target): Ditto.
488 * linux-cris-low.cc (the_low_target): Ditto.
489 * linux-crisv32-low.cc (the_low_target): Ditto.
490 * linux-ia64-low.cc (the_low_target): Ditto.
491 * linux-m32r-low.cc (the_low_target): Ditto.
492 * linux-m68k-low.cc (the_low_target): Ditto.
493 * linux-mips-low.cc (the_low_target): Ditto.
494 * linux-nios2-low.cc (the_low_target): Ditto.
495 * linux-ppc-low.cc (the_low_target): Ditto.
496 * linux-riscv-low.cc (the_low_target): Ditto.
497 * linux-s390-low.cc (the_low_target): Ditto.
498 * linux-sh-low.cc (the_low_target): Ditto.
499 * linux-sparc-low.cc (the_low_target): Ditto.
500 * linux-tic6x-low.cc (the_low_target): Ditto.
501 * linux-tile-low.cc (the_low_target): Ditto.
502 * linux-xtensa-low.cc (the_low_target): Ditto.
504 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
506 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
507 linux target define the op by overriding the declaration in
508 process_stratum_target.
510 * linux-low.h (struct linux_target_ops): Remove the op.
511 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
512 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
513 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
514 (x86_get_ipa_tdesc_idx): Turn into...
515 (x86_target::get_ipa_tdesc_idx): ...this.
516 (the_low_target): Remove the op field.
517 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
518 (ppc_get_ipa_tdesc_idx): Turn into...
519 (ppc_target::get_ipa_tdesc_idx): ...this.
520 (the_low_target): Remove the op field.
521 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
522 (s390_get_ipa_tdesc_idx): Turn into...
523 (s390_target::get_ipa_tdesc_idx): ...this.
524 (the_low_target): Remove the op field.
526 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
528 Turn the 'get_syscall_trapinfo' linux target op into a method
529 of process_stratum_target.
531 * linux-low.h (struct linux_target_ops): Remove the op.
532 (class linux_process_target) <get_syscall_trapinfo>
533 <gdb_catch_this_syscall>
534 <low_supports_catch_syscall>
535 <low_get_syscall_trapinfo>: Declare.
536 * linux-low.cc (get_syscall_trapinfo): Turn into...
537 (linux_process_target::get_syscall_trapinfo): ...this.
538 (linux_process_target::low_get_syscall_trapinfo): Define.
539 (gdb_catch_this_syscall_p): Turn into...
540 (linux_process_target::gdb_catch_this_syscall): ...this.
541 (linux_process_target::low_supports_catch_syscall): Define.
543 Update the callers below.
545 (linux_process_target::wait_1)
546 (linux_process_target::supports_catch_syscall)
548 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
549 <low_get_syscall_trapinfo>: Declare.
550 (x86_target::low_supports_catch_syscall): Define.
551 (x86_get_syscall_trapinfo): Turn into...
552 (x86_target::low_get_syscall_trapinfo): ...this.
553 (the_low_target): Remove the op field.
554 * linux-aarch64-low.cc (class aarch64_target)
555 <low_supports_catch_syscall>
556 <low_get_syscall_trapinfo>: Declare.
557 (aarch64_target::low_supports_catch_syscall): Define.
558 (aarch64_get_syscall_trapinfo): Turn into...
559 (aarch64_target::low_get_syscall_trapinfo): ...this.
560 (the_low_target): Remove the op field.
561 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
562 <low_get_syscall_trapinfo>: Declare.
563 (arm_target::low_supports_catch_syscall): Define.
564 (arm_get_syscall_trapinfo): Turn into...
565 (arm_target::low_get_syscall_trapinfo): ...this.
566 (the_low_target): Remove the op field.
567 * linux-ppc-low.cc (the_low_target): Remove the op field.
568 * linux-s390-low.cc (the_low_target): Remove the op field.
570 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
572 Remove the 'supports_hardware_single_step' linux target op and
573 override the process_stratum_target's op definition in
574 linux_process_target to return true.
576 * linux-low.h (struct linux_target_ops): Remove the op.
577 (class linux_process_target) <finish_step_over>
578 <maybe_hw_step>: Declare.
579 * linux-low.cc (can_hardware_single_step): Remove.
580 (maybe_hw_step): Turn into...
581 (linux_process_target::maybe_hw_step): ...this.
582 (finish_step_over): Turn into...
583 (linux_process_target::finish_step_over): ...this.
584 (linux_process_target::supports_hardware_single_step): Update
587 Update the callers below.
589 (linux_process_target::single_step)
590 (linux_process_target::resume_one_lwp_throw)
592 * linux-arm-low.cc (class arm_target)
593 <supports_hardware_single_step>: Declare.
594 (arm_supports_hardware_single_step): Turn into...
595 (arm_target::supports_hardware_single_step): ...this.
596 (the_low_target): Remove the op field.
597 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
598 (the_low_target): Remove the op field.
599 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
601 (the_low_target): Remove the op field.
602 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
603 (the_low_target): Remove the op field.
604 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
605 (the_low_target): Remove the op field.
606 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
607 (the_low_target): Remove the op field.
608 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
609 (the_low_target): Remove the op field.
610 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
611 (the_low_target): Remove the op field.
612 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
613 (the_low_target): Remove the op field.
614 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
615 (the_low_target): Remove the op field.
616 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
617 (the_low_target): Remove the op field.
618 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
619 (the_low_target): Remove the op field.
620 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
622 (the_low_target): Remove the op field.
624 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
626 Turn the 'supports_range_stepping' linux target op into a method
627 of linux_process_target.
629 * linux-low.h (struct linux_target_ops): Remove the op.
630 (class linux_process_target) <low_supports_range_stepping>: Declare.
631 * linux-low.cc (linux_process_target::low_supports_range_stepping):
633 (linux_process_target::supports_range_stepping): Update the call
635 * linux-x86-low.cc (class x86_target)
636 <low_supports_range_stepping>: Declare.
637 (x86_supports_range_stepping): Turn into...
638 (x86_target::low_supports_range_stepping): ...this.
639 (the_low_target): Remove the op field.
640 * linux-aarch64-low.cc (class aarch64_target)
641 <low_supports_range_stepping>: Declare.
642 (aarch64_supports_range_stepping): Turn into...
643 (aarch64_target::low_supports_range_stepping): ...this.
644 (the_low_target): Remove the op field.
645 * linux-arm-low.cc (the_low_target): Remove the op field.
646 * linux-bfin-low.cc (the_low_target): Ditto.
647 * linux-crisv32-low.cc (the_low_target): Ditto.
648 * linux-m32r-low.cc (the_low_target): Ditto.
649 * linux-m68k-low.cc (the_low_target): Ditto.
650 * linux-ppc-low.cc (the_low_target): Ditto.
651 * linux-s390-low.cc (the_low_target): Ditto.
652 * linux-sh-low.cc (the_low_target): Ditto.
653 * linux-tic6x-low.cc (the_low_target): Ditto.
654 * linux-tile-low.cc (the_low_target): Ditto.
655 * linux-xtensa-low.cc (the_low_target): Ditto.
657 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
659 Remove the 'emit_ops' linux target ops and let the concrete
660 linux target define the op by overriding the declaration of
661 process_stratum_target.
663 * linux-low.h (struct linux_target_ops): Remove the op.
664 (class linux_process_target) <emit_ops>: Remove.
665 * linux-low.cc (linux_process_target::emit_ops): Remove.
666 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
667 (x86_emit_ops): Turn into...
668 (x86_target::emit_ops): ...this.
669 (the_low_target): Remove the op field.
670 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
671 (aarch64_emit_ops): Turn into...
672 (aarch64_target::emit_ops): ...this.
673 (the_low_target): Remove the op field.
674 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
675 (ppc_emit_ops): Turn into...
676 (ppc_target::emit_ops): ...this.
677 (the_low_target): Remove the op field.
678 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
679 (s390_emit_ops): Turn into...
680 (s390_target::emit_ops): ...this.
681 (the_low_target): Remove the op field.
682 * linux-arm-low.cc (the_low_target): Remove the op field.
683 * linux-bfin-low.cc (the_low_target): Ditto.
684 * linux-crisv32-low.cc (the_low_target): Ditto.
685 * linux-m32r-low.cc (the_low_target): Ditto.
686 * linux-m68k-low.cc (the_low_target): Ditto.
687 * linux-sh-low.cc (the_low_target): Ditto.
688 * linux-tic6x-low.cc (the_low_target): Ditto.
689 * linux-tile-low.cc (the_low_target): Ditto.
690 * linux-xtensa-low.cc (the_low_target): Ditto.
692 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
694 Remove the 'install_fast_tracepoint_jump_pad' and
695 'get_min_fast_tracepoint_insn_len' linux target ops to let the
696 concrete linux target define the ops by overriding the declarations
697 of process_stratum_target.
699 * linux-low.h (struct linux_target_ops): Remove the ops.
700 (class linux_process_target) <supports_fast_tracepoints>
701 <install_fast_tracepoint_jump_pad>
702 <get_min_fast_tracepoint_insn_len>: Remove.
703 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
704 (linux_process_target::install_fast_tracepoint_jump_pad)
705 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
706 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
707 <install_fast_tracepoint_jump_pad>
708 <get_min_fast_tracepoint_insn_len>: Declare.
709 (x86_target::supports_fast_tracepoints): Define.
710 (x86_install_fast_tracepoint_jump_pad): Turn into...
711 (x86_target::install_fast_tracepoint_jump_pad): ...this.
712 (x86_get_min_fast_tracepoint_insn_len): Turn into...
713 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
714 (the_low_target): Remove the op fields.
715 * linux-aarch64-low.cc (class aarch64_target)
716 <supports_fast_tracepoints>
717 <install_fast_tracepoint_jump_pad>
718 <get_min_fast_tracepoint_insn_len>: Declare.
719 (aarch64_target::supports_fast_tracepoints): Define.
720 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
721 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
722 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
723 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
724 (the_low_target): Remove the op fields.
725 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
726 <install_fast_tracepoint_jump_pad>
727 <get_min_fast_tracepoint_insn_len>: Declare.
728 (ppc_target::supports_fast_tracepoints): Define.
729 (ppc_install_fast_tracepoint_jump_pad): Turn into...
730 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
731 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
732 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
733 (the_low_target): Remove the op fields.
734 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
735 <install_fast_tracepoint_jump_pad>
736 <get_min_fast_tracepoint_insn_len>: Declare.
737 (s390_target::supports_fast_tracepoints): Define.
738 (s390_install_fast_tracepoint_jump_pad): Turn into...
739 (s390_target::install_fast_tracepoint_jump_pad): ...this.
740 (s390_get_min_fast_tracepoint_insn_len): Turn into...
741 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
742 (the_low_target): Remove the op fields.
743 * linux-arm-low.cc (the_low_target): Remove the op fields.
744 * linux-bfin-low.cc (the_low_target): Ditto.
745 * linux-crisv32-low.cc (the_low_target): Ditto.
746 * linux-m32r-low.cc (the_low_target): Ditto.
747 * linux-m68k-low.cc (the_low_target): Ditto.
748 * linux-sh-low.cc (the_low_target): Ditto.
749 * linux-tic6x-low.cc (the_low_target): Ditto.
750 * linux-tile-low.cc (the_low_target): Ditto.
751 * linux-xtensa-low.cc (the_low_target): Ditto.
753 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
755 Turn the 'get_thread_area' linux target op into a method of
756 process_stratum_target.
758 * linux-low.h (struct linux_target_ops): Remove the op.
759 (class linux_process_target) <stuck_in_jump_pad>
760 <linux_fast_tracepoint_collecting>
761 <low_get_thread_area>: Declare.
762 * linux-low.cc (supports_fast_tracepoints): Remove.
763 (linux_fast_tracepoint_collecting): Turn into...
764 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
765 (linux_process_target::low_get_thread_area): Define.
766 (stuck_in_jump_pad_callback): Turn into...
767 (linux_process_target::stuck_in_jump_pad): ...this.
769 Update the caller below.
771 (linux_process_target::stabilize_threads)
773 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
775 (x86_get_thread_area): Turn into...
776 (x86_target::low_get_thread_area): ...this.
777 (the_low_target): Remove the op field.
778 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
780 (aarch64_get_thread_area): Turn into...
781 (aarch64_target::low_get_thread_area): ...this.
782 (the_low_target): Remove the op field.
783 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
785 (ppc_get_thread_area): Turn into...
786 (ppc_target::low_get_thread_area): ...this.
787 (the_low_target): Remove the op field.
788 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
790 (s390_get_thread_area): Turn into...
791 (s390_target::low_get_thread_area): ...this.
792 (the_low_target): Remove the op field.
793 * linux-arm-low.cc (the_low_target): Remove the op field.
794 * linux-bfin-low.cc (the_low_target): Ditto.
795 * linux-crisv32-low.cc (the_low_target): Ditto.
796 * linux-m32r-low.cc (the_low_target): Ditto.
797 * linux-m68k-low.cc (the_low_target): Ditto.
798 * linux-sh-low.cc (the_low_target): Ditto.
799 * linux-tic6x-low.cc (the_low_target): Ditto.
800 * linux-tile-low.cc (the_low_target): Ditto.
801 * linux-xtensa-low.cc (the_low_target): Ditto.
803 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
805 Remote the 'supports_tracepoints' linux target op and let the
806 concrete linux target define it by overriding the op declared in
807 process_stratum_target.
809 * linux-low.h (struct linux_target_ops): Remove the op.
810 (class linux_process_target) <supports_tracepoints>: Remove.
811 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
812 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
814 (x86_supports_tracepoints): Turn into...
815 (x86_target::supports_tracepoints): ...this.
816 (the_low_target): Remove the op field.
817 * linux-aarch64-low.cc (class aarch64_target)
818 <supports_tracepoints>: Declare.
819 (aarch64_supports_tracepoints): Turn into...
820 (aarch64_target::supports_tracepoints): ...this.
821 (the_low_target): Remove the op field.
822 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
824 (ppc_supports_tracepoints): Turn into...
825 (ppc_target::supports_tracepoints): ...this.
826 (the_low_target): Remove the op field.
827 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
829 (s390_supports_tracepoints): Turn into...
830 (s390_target::supports_tracepoints): ...this.
831 (the_low_target): Remove the op field.
832 * linux-arm-low.cc (the_low_target): Remove the op field.
833 * linux-bfin-low.cc (the_low_target): Ditto.
834 * linux-crisv32-low.cc (the_low_target): Ditto.
835 * linux-m32r-low.cc (the_low_target): Ditto.
836 * linux-m68k-low.cc (the_low_target): Ditto.
837 * linux-sh-low.cc (the_low_target): Ditto.
838 * linux-tic6x-low.cc (the_low_target): Ditto.
839 * linux-tile-low.cc (the_low_target): Ditto.
840 * linux-xtensa-low.cc (the_low_target): Ditto.
842 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
844 Remove the 'process_qsupported' linux target op and let a concrete
845 linux target define the op by overriding the op declaration in
846 process_stratum_target.
848 * linux-low.h (struct linux_target_ops): Remove the op.
849 (class linux_process_target) <process_qsupported>: Remove.
850 * linux-low.cc (linux_process_target::process_qsupported): Remove.
851 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
852 (x86_linux_process_qsupported): Turn into...
853 (x86_target::process_qsupported): ...this.
854 (the_low_target): Remove the op field.
855 * linux-aarch64-low.cc (the_low_target): Remove the op
857 * linux-arm-low.cc (the_low_target): Ditto.
858 * linux-bfin-low.cc (the_low_target): Ditto.
859 * linux-crisv32-low.cc (the_low_target): Ditto.
860 * linux-m32r-low.cc (the_low_target): Ditto.
861 * linux-m68k-low.cc (the_low_target): Ditto.
862 * linux-ppc-low.cc (the_low_target): Ditto.
863 * linux-s390-low.cc (the_low_target): Ditto.
864 * linux-sh-low.cc (the_low_target): Ditto.
865 * linux-tic6x-low.cc (the_low_target): Ditto.
866 * linux-tile-low.cc (the_low_target): Ditto.
867 * linux-xtensa-low.cc (the_low_target): Ditto.
869 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
871 Turn the 'prepare_to_resume' linux target op into a method of
872 linux_process_target.
874 * linux-low.h (struct linux_target_ops): Remove the op.
875 (class linux_process_target) <low_prepare_to_resume>: Declare.
876 * linux-low.cc (linux_process_target::low_prepare_to_resume):
879 Update the callers below:
881 (linux_process_target::resume_one_lwp_throw)
882 (linux_process_target::low_prepare_to_resume)
884 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
886 (x86_target::low_prepare_to_resume): Define.
887 (the_low_target): Remove the op field.
888 * linux-aarch64-low.cc (class aarch64_target)
889 <low_prepare_to_resume>: Declare.
890 (aarch64_target::low_prepare_to_resume): Define.
891 (the_low_target): Remove the op field.
892 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
894 (arm_prepare_to_resume): Turn into...
895 (arm_target::low_prepare_to_resume): ...this.
896 (the_low_target): Remove the op field.
897 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
899 (mips_linux_prepare_to_resume): Turn into...
900 (mips_target::low_prepare_to_resume): ...this.
901 (the_low_target): Remove the op field.
902 * linux-bfin-low.cc (the_low_target): Remove the op field.
903 * linux-crisv32-low.cc (the_low_target): Ditto.
904 * linux-m32r-low.cc (the_low_target): Ditto.
905 * linux-m68k-low.cc (the_low_target): Ditto.
906 * linux-ppc-low.cc (the_low_target): Ditto.
907 * linux-s390-low.cc (the_low_target): Ditto.
908 * linux-sh-low.cc (the_low_target): Ditto.
909 * linux-tic6x-low.cc (the_low_target): Ditto.
910 * linux-tile-low.cc (the_low_target): Ditto.
911 * linux-xtensa-low.cc (the_low_target): Ditto.
913 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
915 Turn the 'new_process', 'delete_process', 'new_thread',
916 'delete_thread', and 'new_fork' linux target ops into methods
917 of linux_process_target.
919 * linux-low.h (struct linux_target_ops): Remove the ops.
920 (class linux_process_target) <add_linux_process>
925 <check_zombie_leaders>
931 <low_new_fork>: Declare.
932 * linux-low.cc (delete_lwp): Turn into...
933 (linux_process_target::delete_lwp): ...this.
934 (linux_process_target::low_delete_thread): Define.
935 (linux_add_process): Turn into...
936 (linux_process_target::add_linux_process): ...this.
937 (linux_process_target::low_new_process): Define.
938 (linux_process_target::low_delete_process): Define.
939 (linux_process_target::low_new_fork): Define.
940 (add_lwp): Turn into...
941 (linux_process_target::add_lwp): ...this.
942 (linux_process_target::low_new_thread): Define.
943 (linux_attach_lwp): Turn into...
944 (linux_process_target::attach_lwp): ...this.
945 (linux_detach_one_lwp): Turn into...
946 (linux_process_target::detach_one_lwp): ...this.
947 (linux_detach_lwp_callback): Remove and inline...
948 (linux_process_target::detach): ...here.
949 (check_zombie_leaders): Turn into...
950 (linux_process_target::check_zombie_leaders): ...this.
951 (filter_exit_event): Turn into...
952 (linux_process_target::filter_exit_event): ...this.
954 Update the callers below.
956 (linux_process_target::handle_extended_wait)
957 (linux_process_target::create_inferior)
958 (attach_proc_task_lwp_callback)
959 (linux_process_target::attach)
960 (linux_process_target::detach)
961 (linux_process_target::mourn)
962 * thread-db.cc (attach_thread)
964 * linux-x86-low.cc (class x86_target) <low_new_process>
968 <low_new_fork>: Declare.
969 (x86_linux_new_process): Turn into...
970 (x86_target::low_new_process): ...this.
971 (x86_linux_delete_process): Turn into...
972 (x86_target::low_delete_process): ...this.
973 (x86_target::low_new_thread): Define.
974 (x86_target::low_delete_thread): Define.
975 (x86_linux_new_fork): Turn into...
976 (x86_target::low_new_fork): ...this.
977 (the_low_target): Remove the op fields.
978 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
982 <low_new_fork>: Declare.
983 (aarch64_linux_new_process): Turn into...
984 (aarch64_target::low_new_process): ...this.
985 (aarch64_linux_delete_process): Turn into...
986 (aarch64_target::low_delete_process): ...this.
987 (aarch64_target::low_new_thread): Define.
988 (aarch64_target::low_delete_thread): Define.
989 (aarch64_linux_new_fork): Turn into...
990 (aarch64_target::low_new_fork): ...this.
991 (the_low_target): Remove the op fields.
992 * linux-arm-low.cc (class arm_target) <low_new_process>
996 <low_new_fork>: Declare.
997 (arm_new_process): Turn into...
998 (arm_target::low_new_process): ...this.
999 (arm_delete_process): Turn into...
1000 (arm_target::low_delete_process): ...this.
1001 (arm_new_thread): Turn into...
1002 (arm_target::low_new_thread): ...this.
1003 (arm_delete_thread): Turn into...
1004 (arm_target::low_delete_thread): ...this.
1005 (arm_new_fork): Turn into...
1006 (arm_target::low_new_fork): ...this.
1007 (the_low_target): Remove the op fields.
1008 * linux-mips-low.cc (class mips_target) <low_new_process>
1009 <low_delete_process>
1012 <low_new_fork>: Declare.
1013 (mips_linux_new_process): Turn into...
1014 (mips_target::low_new_process): ...this.
1015 (mips_linux_delete_process): Turn into...
1016 (mips_target::low_delete_process): ...this.
1017 (mips_linux_new_thread): Turn into...
1018 (mips_target::low_new_thread): ...this.
1019 (mips_linux_delete_thread): Turn into...
1020 (mips_target::low_delete_thread): ...this.
1021 (mips_linux_new_fork): Turn into...
1022 (mips_target::low_new_fork): ...this.
1023 (the_low_target): Remove the op fields.
1024 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1025 * linux-crisv32-low.cc (the_low_target): Ditto.
1026 * linux-m32r-low.cc (the_low_target): Ditto.
1027 * linux-m68k-low.cc (the_low_target): Ditto.
1028 * linux-ppc-low.cc (the_low_target): Ditto.
1029 * linux-s390-low.cc (the_low_target): Ditto.
1030 * linux-sh-low.cc (the_low_target): Ditto.
1031 * linux-tic6x-low.cc (the_low_target): Ditto.
1032 * linux-tile-low.cc (the_low_target): Ditto.
1033 * linux-xtensa-low.cc (the_low_target): Ditto.
1035 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1037 Turn the 'siginfo_fixup' linux target op into a method of
1038 linux_process_target.
1040 * linux-low.h (struct linux_target_ops): Remove the op.
1041 (class linux_process_target) <siginfo_fixup>
1042 <low_siginfo_fixup>: Declare.
1043 * linux-low.cc (siginfo_fixup): Turn into...
1044 (linux_process_target::siginfo_fixup): ...this.
1045 (linux_process_target::low_siginfo_fixup): Define.
1046 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1047 (x86_siginfo_fixup): Turn into...
1048 (x86_target::low_siginfo_fixup): ...this.
1049 (the_low_target): Remove the op field.
1050 * linux-aarch64-low.cc (class aarch64_target):
1051 <low_siginfo_fixup>: Declare.
1052 (aarch64_linux_siginfo_fixup): Turn into...
1053 (aarch64_target::low_siginfo_fixup): ...this.
1054 (the_low_target): Remove the op field.
1055 * linux-arm-low.cc (the_low_target): Remove the op field.
1056 * linux-bfin-low.cc (the_low_target): Ditto.
1057 * linux-crisv32-low.cc (the_low_target): Ditto.
1058 * linux-m32r-low.cc (the_low_target): Ditto.
1059 * linux-m68k-low.cc (the_low_target): Ditto.
1060 * linux-mips-low.cc (the_low_target): Ditto.
1061 * linux-ppc-low.cc (the_low_target): Ditto.
1062 * linux-s390-low.cc (the_low_target): Ditto.
1063 * linux-sh-low.cc (the_low_target): Ditto.
1064 * linux-tic6x-low.cc (the_low_target): Ditto.
1065 * linux-tile-low.cc (the_low_target): Ditto.
1066 * linux-xtensa-low.cc (the_low_target): Ditto.
1068 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1070 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1071 linux target ops into methods of linux_process_target.
1073 * linux-low.h (struct linux_target_ops): Remove the ops.
1074 (class linux_process_target) <low_collect_ptrace_register>
1075 <low_store_ptrace_register>: Declare.
1076 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1077 (linux_process_target::low_supply_ptrace_register): Define.
1079 Update the callers below.
1081 (linux_process_target::fetch_register)
1082 (linux_process_target::store_register)
1084 * linux-x86-low.cc (the_low_target): Remove the op fields.
1085 * linux-aarch64-low.cc (the_low_target): Ditto.
1086 * linux-arm-low.cc (the_low_target): Ditto.
1087 * linux-bfin-low.cc (the_low_target): Ditto.
1088 * linux-crisv32-low.cc (the_low_target): Ditto.
1089 * linux-m32r-low.cc (the_low_target): Ditto.
1090 * linux-m68k-low.cc (the_low_target): Ditto.
1091 * linux-sh-low.cc (the_low_target): Ditto.
1092 * linux-sparc-low.cc (the_low_target): Ditto.
1093 * linux-tic6x-low.cc (the_low_target): Ditto.
1094 * linux-tile-low.cc (the_low_target): Ditto.
1095 * linux-xtensa-low.cc (the_low_target): Ditto.
1096 * linux-mips-low.cc (class mips_target)
1097 <low_collect_ptrace_register>
1098 <low_supply_ptrace_register>: Declare.
1099 (mips_collect_ptrace_register): Turn into ...
1100 (mips_target::low_collect_ptrace_register): ...this.
1101 (mips_supply_ptrace_register): Turn into...
1102 (mips_target::low_supply_ptrace_register): ...this.
1103 (the_low_target): Remove the op fields.
1104 * linux-ppc-low.cc (class ppc_target)
1105 <low_collect_ptrace_register>
1106 <low_supply_ptrace_register>: Declare.
1107 (ppc_collect_ptrace_register): Turn into ...
1108 (ppc_target::low_collect_ptrace_register): ...this.
1109 (ppc_supply_ptrace_register): Turn into ...
1110 (ppc_target::low_supply_ptrace_register): ...this.
1111 (ppc_fill_gregset): Update for the calls to
1112 low_collect_ptrace_register.
1113 (the_low_target): Remove the op fields.
1114 * linux-s390-low.cc (class s390_target)
1115 <low_collect_ptrace_register>
1116 <low_supply_ptrace_register>: Declare.
1117 (s390_collect_ptrace_register): Turn into ...
1118 (s390_target::low_collect_ptrace_register): ...this.
1119 (s390_supply_ptrace_register): Turn into ...
1120 (s390_target::low_supply_ptrace_register): ...this.
1121 (s390_fill_gregset): Update for the calls to
1122 low_collect_ptrace_register.
1123 (the_low_target): Remove the op fields.
1125 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1127 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1128 target ops into methods of linux_process_target.
1130 * linux-low.h (struct linux_target_ops): Remove the ops.
1131 (class linux_process_target) <check_stopped_by_watchpoint>
1132 <low_stopped_by_watchpoint>
1133 <low_stopped_data_address>: Declare.
1134 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1135 (linux_process_target::check_stopped_by_watchpoint): ...this.
1136 (linux_process_target::low_stopped_by_watchpoint): Define.
1137 (linux_process_target::low_stopped_data_address): Define.
1138 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1139 <low_stopped_data_address>: Declare.
1140 (x86_stopped_by_watchpoint): Turn into...
1141 (x86_target::low_stopped_by_watchpoint): ...this.
1142 (x86_stopped_data_address): Turn into...
1143 (x86_target::low_stopped_data_address): ...this.
1144 (the_low_target): Remove the op fields.
1145 * linux-aarch64-low.cc (class aarch64_target)
1146 <low_stopped_by_watchpoint>
1147 <low_stopped_data_address>: Declare.
1148 (aarch64_stopped_by_watchpoint): Turn into...
1149 (aarch64_target::low_stopped_by_watchpoint): ...this.
1150 (aarch64_stopped_data_address): Turn into...
1151 (aarch64_target::low_stopped_data_address): ...this.
1152 (the_low_target): Remove the op fields.
1153 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1154 <low_stopped_data_address>: Declare.
1155 (arm_stopped_by_watchpoint): Turn into...
1156 (arm_target::low_stopped_by_watchpoint): ...this.
1157 (arm_stopped_data_address): Turn into...
1158 (arm_target::low_stopped_data_address): ...this.
1159 (the_low_target): Remove the op fields.
1160 * linux-crisv32-low.cc (class crisv32_target)
1161 <low_stopped_by_watchpoint>
1162 <low_stopped_data_address>: Declare.
1163 (cris_stopped_by_watchpoint): Turn into...
1164 (crisv32_target::low_stopped_by_watchpoint): ...this.
1165 (cris_stopped_data_address): Turn into...
1166 (crisv32_target::low_stopped_data_address): ...this.
1167 (the_low_target): Remove the op fields.
1168 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1169 <low_stopped_data_address>: Declare.
1170 (mips_stopped_by_watchpoint): Turn into...
1171 (mips_target::low_stopped_by_watchpoint): ...this.
1172 (mips_stopped_data_address): Turn into...
1173 (mips_target::low_stopped_data_address): ...this.
1174 (the_low_target): Remove the op fields.
1175 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1176 * linux-m32r-low.cc (the_low_target): Ditto.
1177 * linux-m68k-low.cc (the_low_target): Ditto.
1178 * linux-ppc-low.cc (the_low_target): Ditto.
1179 * linux-s390-low.cc (the_low_target): Ditto.
1180 * linux-sh-low.cc (the_low_target): Ditto.
1181 * linux-sparc-low.cc (the_low_target): Ditto.
1182 * linux-tic6x-low.cc (the_low_target): Ditto.
1183 * linux-tile-low.cc (the_low_target): Ditto.
1184 * linux-xtensa-low.cc (the_low_target): Ditto.
1186 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1188 Turn the 'insert_point' and 'remove_point' linux target ops into
1189 methods of linux_process_target.
1191 * linux-low.h (struct linux_target_ops): Remove the ops.
1192 (class linux_process_target) <low_insert_point>
1193 <low_remove_point>: Declare.
1194 * linux-low.cc (linux_process_target::low_insert_point)
1195 (linux_process_target::low_remove_point): Define.
1196 (linux_process_target::insert_point)
1197 (linux_process_target::remove_point): Update for calls to
1198 low_insert_point and low_remove_point.
1199 * linux-x86-low.cc (class x86_target) <low_insert_point>
1200 <low_remove_point>: Declare.
1201 (x86_insert_point): Turn into...
1202 (x86_target::low_insert_point): ...this.
1203 (x86_remove_point): Turn into...
1204 (x86_target::low_remove_point): ...this.
1205 (the_low_target): Remove the op fields.
1206 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1207 <low_remove_point>: Declare.
1208 (aarch64_insert_point): Turn into...
1209 (aarch64_target::low_insert_point): ...this.
1210 (aarch64_remove_point): Turn into...
1211 (aarch64_target::low_remove_point): ...this.
1212 (the_low_target): Remove the op fields.
1213 * linux-arm-low.cc (class arm_target) <low_insert_point>
1214 <low_remove_point>: Declare.
1215 (arm_insert_point): Turn into...
1216 (arm_target::low_insert_point): ...this.
1217 (arm_remove_point): Turn into...
1218 (arm_target::low_remove_point): ...this.
1219 (the_low_target): Remove the op fields.
1220 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1221 <low_remove_point>: Declare.
1222 (crisv32_insert_point): Turn into...
1223 (crisv32_target::low_insert_point): ...this.
1224 (crisv32_remove_point): Turn into...
1225 (crisv32_target::low_remove_point): ...this.
1226 (the_low_target): Remove the op fields.
1227 * linux-mips-low.cc (class mips_target) <low_insert_point>
1228 <low_remove_point>: Declare.
1229 (mips_insert_point): Turn into...
1230 (mips_target::low_insert_point): ...this.
1231 (mips_remove_point): Turn into...
1232 (mips_target::low_remove_point): ...this.
1233 (the_low_target): Remove the op fields.
1234 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1235 <low_remove_point>: Declare.
1236 (ppc_insert_point): Turn into...
1237 (ppc_target::low_insert_point): ...this.
1238 (ppc_remove_point): Turn into...
1239 (ppc_target::low_remove_point): ...this.
1240 (the_low_target): Remove the op fields.
1241 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1242 * linux-m32r-low.cc (the_low_target): Ditto.
1243 * linux-m68k-low.cc (the_low_target): Ditto.
1244 * linux-s390-low.cc (the_low_target): Ditto.
1245 * linux-sh-low.cc (the_low_target): Ditto.
1246 * linux-sparc-low.cc (the_low_target): Ditto.
1247 * linux-tic6x-low.cc (the_low_target): Ditto.
1248 * linux-tile-low.cc (the_low_target): Ditto.
1249 * linux-xtensa-low.cc (the_low_target): Ditto.
1251 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1253 Remove the 'supports_z_point_type' linux target op and let the
1254 concrete linux target define it by overriding the op declared in
1255 process_stratum_target.
1257 * linux-low.cc (linux_process_target::supports_z_point_type):
1259 * linux-low.h (struct linux_target_ops): Remove the op.
1260 (class linux_process_target) <supports_z_point_type>: Remove.
1261 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1263 (x86_supports_z_point_type): Turn into...
1264 (x86_target::supports_z_point_type): ...this.
1265 (the_low_target): Remove the op field.
1266 * linux-aarch64-low.cc (class aarch64_target)
1267 <supports_z_point_type>: Declare.
1268 (aarch64_supports_z_point_type): Turn into...
1269 (aarch64_target::supports_z_point_type): ...this.
1270 (the_low_target): Remove the op field.
1271 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1273 (arm_supports_z_point_type): Turn into...
1274 (arm_target::supports_z_point_type): ...this.
1275 (the_low_target): Remove the op field.
1276 * linux-crisv32-low.cc (class crisv32_target)
1277 <supports_z_point_type>: Declare.
1278 (cris_supports_z_point_type): Turn into...
1279 (crisv32_target::supports_z_point_type): ...this.
1280 (the_low_target): Remove the op field.
1281 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1283 (mips_supports_z_point_type): Turn into...
1284 (mips_target::supports_z_point_type): ...this.
1285 (the_low_target): Remove the op field.
1286 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1288 (ppc_supports_z_point_type): Turn into...
1289 (ppc_target::supports_z_point_type): ...this.
1290 (the_low_target): Remove the op field.
1291 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1293 (s390_supports_z_point_type): Turn into...
1294 (s390_target::supports_z_point_type): ...this.
1295 (the_low_target): Remove the op field.
1296 * linux-bfin-low.cc (the_low_target): Remove the op field.
1297 * linux-m32r-low.cc (the_low_target): Ditto.
1298 * linux-m68k-low.cc (the_low_target): Ditto.
1299 * linux-sh-low.cc (the_low_target): Ditto.
1300 * linux-sparc-low.cc (the_low_target): Ditto.
1301 * linux-tic6x-low.cc (the_low_target): Ditto.
1302 * linux-tile-low.cc (the_low_target): Ditto.
1303 * linux-xtensa-low.cc (the_low_target): Ditto.
1305 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1307 Turn the 'breakpoint_at' linux target op into a method of
1308 linux_process_target.
1310 * linux-low.h (struct linux_target_ops): Remove the op.
1311 (class linux_process_target) <low_breakpoint_at>: Declare.
1313 Update the callers below:
1315 * linux-low.cc (linux_process_target::save_stop_reason)
1316 (linux_process_target::thread_still_has_status_pending)
1317 (linux_process_target::wait_1)
1319 * linux-x86-low.cc (class x86_target)
1320 <low_breakpoint_at>: Declare.
1321 (x86_breakpoint_at): Turn into...
1322 (x86_target::low_breakpoint_at): ...this.
1323 (the_low_target): Remove the op field.
1324 * linux-aarch64-low.cc (class aarch64_target)
1325 <low_breakpoint_at>: Declare.
1326 (aarch64_breakpoint_at): Turn into...
1327 (aarch64_target::low_breakpoint_at): ...this.
1328 (the_low_target): Remove the op field.
1329 * linux-arm-low.cc (class arm_target)
1330 <low_breakpoint_at>: Declare.
1331 (arm_target::low_breakpoint_at): Define.
1332 (the_low_target): Remove the op field.
1333 * linux-bfin-low.cc (class bfin_target)
1334 <low_breakpoint_at>: Declare.
1335 (bfin_breakpoint_at): Turn into...
1336 (bfin_target::low_breakpoint_at): ...this.
1337 (the_low_target): Remove the op field.
1338 * linux-cris-low.cc (class cris_target)
1339 <low_breakpoint_at>: Declare.
1340 (cris_breakpoint_at): Turn into...
1341 (cris_target::low_breakpoint_at): ...this.
1342 (the_low_target): Remove the op field.
1343 * linux-crisv32-low.cc (class crisv32_target)
1344 <low_breakpoint_at>: Declare.
1345 (crisv32_breakpoint_at): Turn into...
1346 (crisv32_target::low_breakpoint_at): ...this.
1347 (the_low_target): Remove the op field.
1348 * linux-ia64-low.cc (class ia64_target)
1349 <low_breakpoint_at>: Declare.
1350 (ia64_target::low_breakpoint_at): Define.
1351 * linux-m32r-low.cc (class m32r_target)
1352 <low_breakpoint_at>: Declare.
1353 (m32r_breakpoint_at): Turn into...
1354 (m32r_target::low_breakpoint_at): ...this.
1355 (the_low_target): Remove the op field.
1356 * linux-m68k-low.cc (class m68k_target)
1357 <low_breakpoint_at>: Declare.
1358 (m68k_breakpoint_at): Turn into...
1359 (m68k_target::low_breakpoint_at): ...this.
1360 (the_low_target): Remove the op field.
1361 * linux-mips-low.cc (class mips_target)
1362 <low_breakpoint_at>: Declare.
1363 (mips_breakpoint_at): Turn into...
1364 (mips_target::low_breakpoint_at): ...this.
1365 (the_low_target): Remove the op field.
1366 * linux-nios2-low.cc (class nios2_target)
1367 <low_breakpoint_at>: Declare.
1368 (nios2_breakpoint_at): Turn into...
1369 (nios2_target::low_breakpoint_at): ...this.
1370 (the_low_target): Remove the op field.
1371 * linux-ppc-low.cc (class ppc_target)
1372 <low_breakpoint_at>: Declare.
1373 (ppc_breakpoint_at): Turn into...
1374 (ppc_target::low_breakpoint_at): ...this.
1375 (the_low_target): Remove the op field.
1376 * linux-riscv-low.cc (class riscv_target)
1377 <low_breakpoint_at>: Declare.
1378 (riscv_breakpoint_at): Turn into...
1379 (riscv_target::low_breakpoint_at): ...this.
1380 (the_low_target): Remove the op field.
1381 * linux-s390-low.cc (class s390_target)
1382 <low_breakpoint_at>: Declare.
1383 (s390_breakpoint_at): Turn into...
1384 (s390_target::low_breakpoint_at): ...this.
1385 (the_low_target): Remove the op field.
1386 * linux-sh-low.cc (class sh_target)
1387 <low_breakpoint_at>: Declare.
1388 (sh_breakpoint_at): Turn into...
1389 (sh_target::low_breakpoint_at): ...this.
1390 (the_low_target): Remove the op field.
1391 * linux-sparc-low.cc (class sparc_target)
1392 <low_breakpoint_at>: Declare.
1393 (sparc_breakpoint_at): Turn into...
1394 (sparc_target::low_breakpoint_at): ...this.
1395 (the_low_target): Remove the op field.
1396 * linux-tic6x-low.cc (class tic6x_target)
1397 <low_breakpoint_at>: Declare.
1398 (tic6x_breakpoint_at): Turn into...
1399 (tic6x_target::low_breakpoint_at): ...this.
1400 (the_low_target): Remove the op field.
1401 * linux-tile-low.cc (class tile_target)
1402 <low_breakpoint_at>: Declare.
1403 (tile_breakpoint_at): Turn into...
1404 (tile_target::low_breakpoint_at): ...this.
1405 (the_low_target): Remove the op field.
1406 * linux-xtensa-low.cc (class xtensa_target)
1407 <low_breakpoint_at>: Declare.
1408 (xtensa_breakpoint_at): Turn into...
1409 (xtensa_target::low_breakpoint_at): ...this.
1410 (the_low_target): Remove the op field.
1412 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1414 Turn the 'decr_pc_after_break' linux_target_ops field into
1415 a method of linux_process_target.
1417 * linux-low.h (struct linux_target_ops)
1418 <decr_pc_after_break>: Remove.
1419 (class linux_process_target) <low_decr_pc_after_break>: New method
1421 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1422 New method implementation.
1424 Update the users below.
1426 (linux_process_target::save_stop_reason)
1427 (linux_process_target::wait_1)
1428 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1430 (x86_target::low_decr_pc_after_break): New method implementation.
1431 (the_low_target): Remove the field.
1432 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1434 (bfin_target::low_decr_pc_after_break): New method implementation.
1435 (the_low_target): Remove the field.
1436 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1438 (m68k_target::low_decr_pc_after_break): New method implementation.
1439 (the_low_target): Remove the field.
1440 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1442 (s390_target::low_decr_pc_after_break): New method implementation.
1443 (the_low_target): Remove the field.
1444 * linux-aarch64-low.cc (the_low_target): Remove the field.
1445 * linux-arm-low.cc (the_low_target): Remove the field.
1446 * linux-cris-low.cc (the_low_target): Remove the field.
1447 * linux-crisv32-low.cc (the_low_target): Remove the field.
1448 * linux-m32r-low.cc (the_low_target): Remove the field.
1449 * linux-mips-low.cc (the_low_target): Remove the field.
1450 * linux-nios2-low.cc (the_low_target): Remove the field.
1451 * linux-ppc-low.cc (the_low_target): Remove the field.
1452 * linux-riscv-low.cc (the_low_target): Remove the field.
1453 * linux-sh-low.cc (the_low_target): Remove the field.
1454 * linux-sparc-low.cc (the_low_target): Remove the field.
1455 * linux-tic6x-low.cc (the_low_target): Remove the field.
1456 * linux-tile-low.cc (the_low_target): Remove the field.
1457 * linux-xtensa-low.cc (the_low_target): Remove the field.
1459 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1461 Remove the 'supports_software_single_step' linux target op and let
1462 the concrete linux target define it by overriding the op in
1463 process_stratum_target.
1464 Turn the 'get_next_pcs' linux target op into a method of
1465 linux_process_target.
1467 * linux-low.h (struct linux_target_ops): Remove the ops.
1468 (class linux_process_target) <supports_software_single_step>:
1470 <low_get_next_pcs>: Declare.
1471 * linux-low.cc (can_software_single_step): Remove.
1472 (linux_process_target::low_get_next_pcs): Define.
1473 (linux_process_target::supports_software_single_step): Remove.
1475 Update the callers below.
1477 (linux_process_target::handle_extended_wait)
1478 (linux_process_target::wait_1)
1479 (linux_process_target::install_software_single_step_breakpoints)
1480 (linux_process_target::single_step)
1481 (linux_process_target::thread_needs_step_over)
1482 (linux_process_target::proceed_one_lwp)
1483 (linux_process_target::supports_range_stepping)
1485 * linux-x86-low.cc (the_low_target): Remove the op field.
1486 * linux-aarch64-low.cc (the_low_target): Ditto.
1487 * linux-bfin-low.cc (the_low_target): Ditto.
1488 * linux-cris-low.cc (the_low_target): Ditto.
1489 * linux-crisv32-low.cc (the_low_target): Ditto.
1490 * linux-m32r-low.cc (the_low_target): Ditto.
1491 * linux-m68k-low.cc (the_low_target): Ditto.
1492 * linux-mips-low.cc (the_low_target): Ditto.
1493 * linux-nios2-low.cc (the_low_target): Ditto.
1494 * linux-ppc-low.cc (the_low_target): Ditto.
1495 * linux-riscv-low.cc (the_low_target): Ditto.
1496 * linux-s390-low.cc (the_low_target): Ditto.
1497 * linux-sh-low.cc (the_low_target): Ditto.
1498 * linux-sparc-low.cc (the_low_target): Ditto.
1499 * linux-tic6x-low.cc (the_low_target): Ditto.
1500 * linux-tile-low.cc (the_low_target): Ditto.
1501 * linux-xtensa-low.cc (the_low_target): Ditto.
1502 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1503 <supports_software_single_step>: Declare.
1504 (arm_target::supports_software_single_step): Define.
1505 (arm_gdbserver_get_next_pcs): Turn into...
1506 (arm_target::low_get_next_pcs): ...this.
1507 (the_low_target): Remove the op field.
1509 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1511 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1512 the concrete linux target define it by overriding the op
1513 in process_stratum_target.
1515 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1517 * linux-low.h (struct linux_target_ops): Remove the op.
1518 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1519 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1521 (x86_sw_breakpoint_from_kind): Turn into...
1522 (x86_target::sw_breakpoint_from_kind): ...this.
1523 (the_low_target): Remove the op field.
1524 * linux-aarch64-low.cc (class aarch64_target)
1525 <sw_breakpoint_from_kind>: Declare.
1526 (aarch64_sw_breakpoint_from_kind): Turn into...
1527 (aarch64_target::sw_breakpoint_from_kind): ...this.
1528 (the_low_target): Remove the op field.
1529 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1531 (arm_target::sw_breakpoint_from_kind): Define.
1532 (the_low_target): Remove the op field.
1533 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1535 (bfin_sw_breakpoint_from_kind): Turn into...
1536 (bfin_target::sw_breakpoint_from_kind): ...this.
1537 (the_low_target): Remove the op field.
1538 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1540 (cris_sw_breakpoint_from_kind): Turn into...
1541 (cris_target::sw_breakpoint_from_kind): ...this.
1542 (the_low_target): Remove the op field.
1543 * linux-crisv32-low.cc (class crisv32_target)
1544 <sw_breakpoint_from_kind>: Declare.
1545 (cris_sw_breakpoint_from_kind): Turn into...
1546 (crisv32_target::sw_breakpoint_from_kind): ...this.
1547 (the_low_target): Remove the op field.
1548 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1550 (ia64_target::sw_breakpoint_from_kind): Define.
1551 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1553 (m32r_sw_breakpoint_from_kind): Turn into...
1554 (m32r_target::sw_breakpoint_from_kind): ...this.
1555 (the_low_target): Remove the op field.
1556 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1558 (m68k_sw_breakpoint_from_kind): Turn into...
1559 (m68k_target::sw_breakpoint_from_kind): ...this.
1560 (the_low_target): Remove the op field.
1561 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1563 (mips_sw_breakpoint_from_kind): Turn into...
1564 (mips_target::sw_breakpoint_from_kind): ...this.
1565 (the_low_target): Remove the op field.
1566 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1568 (nios2_sw_breakpoint_from_kind): Turn into...
1569 (nios2_target::sw_breakpoint_from_kind): ...this.
1570 (the_low_target): Remove the op field.
1571 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1573 (ppc_sw_breakpoint_from_kind): Turn into...
1574 (ppc_target::sw_breakpoint_from_kind): ...this.
1575 (the_low_target): Remove the op field.
1576 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1578 (riscv_sw_breakpoint_from_kind): Turn into...
1579 (riscv_target::sw_breakpoint_from_kind): ...this.
1580 (the_low_target): Remove the op field.
1581 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1583 (s390_sw_breakpoint_from_kind): Turn into...
1584 (s390_target::sw_breakpoint_from_kind): ...this.
1585 (the_low_target): Remove the op field.
1586 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1588 (sh_sw_breakpoint_from_kind): Turn into...
1589 (sh_target::sw_breakpoint_from_kind): ...this.
1590 (the_low_target): Remove the op field.
1591 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1593 (sparc_sw_breakpoint_from_kind): Turn into...
1594 (sparc_target::sw_breakpoint_from_kind): ...this.
1595 (the_low_target): Remove the op field.
1596 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1598 (tic6x_sw_breakpoint_from_kind): Turn into...
1599 (tic6x_target::sw_breakpoint_from_kind): ...this.
1600 (the_low_target): Remove the op field.
1601 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1603 (tile_sw_breakpoint_from_kind): Turn into...
1604 (tile_target::sw_breakpoint_from_kind): ...this.
1605 (the_low_target): Remove the op field.
1606 * linux-xtensa-low.cc (class xtensa_target)
1607 <sw_breakpoint_from_kind>: Declare.
1608 (xtensa_sw_breakpoint_from_kind): Turn into...
1609 (xtensa_target::sw_breakpoint_from_kind): ...this.
1610 (the_low_target): Remove the op field.
1612 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1614 Remove the 'breakpoint_kind_from_pc' and
1615 'breakpoint_kind_from_current_state' linux target ops, and let the
1616 concrete linux target define them by overriding the ops of
1617 process_stratum_target.
1619 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1621 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1622 * linux-low.h (struct linux_target_ops): Remove ops.
1623 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1624 <breakpoint_kind_from_current_state>: Remove.
1625 * linux-x86-low.cc (the_low_target): Remove the op fields.
1626 * linux-bfin-low.cc (the_low_target): Ditto.
1627 * linux-cris-low.cc (the_low_target): Ditto.
1628 * linux-crisv32-low.cc (the_low_target): Ditto.
1629 * linux-m32r-low.cc (the_low_target): Ditto.
1630 * linux-m68k-low.cc (the_low_target): Ditto.
1631 * linux-mips-low.cc (the_low_target): Ditto.
1632 * linux-nios2-low.cc (the_low_target): Ditto.
1633 * linux-ppc-low.cc (the_low_target): Ditto.
1634 * linux-s390-low.cc (the_low_target): Ditto.
1635 * linux-sh-low.cc (the_low_target): Ditto.
1636 * linux-sparc-low.cc (the_low_target): Ditto.
1637 * linux-tic6x-low.cc (the_low_target): Ditto.
1638 * linux-tile-low.cc (the_low_target): Ditto.
1639 * linux-xtensa-low.cc (the_low_target): Ditto.
1640 * linux-aarch64-low.cc (class aarch64_target)
1641 <breakpoint_kind_from_pc>
1642 <breakpoint_kind_from_current_state>: Declare.
1643 (aarch64_breakpoint_kind_from_pc): Turn into...
1644 (aarch64_target::breakpoint_kind_from_pc): ...this.
1645 (aarch64_breakpoint_kind_from_current_state): Turn into...
1646 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1647 (the_low_target): Remove the op fields.
1648 * linux-arm-low.cc (class arm_target):
1649 <breakpoint_kind_from_pc>
1650 <breakpoint_kind_from_current_state>: Declare.
1651 (arm_target::breakpoint_kind_from_pc): Define.
1652 (arm_target::breakpoint_kind_from_current_state): Define.
1653 (the_low_target): Remove the op fields.
1654 * linux-riscv-low.cc (class riscv_target):
1655 <breakpoint_kind_from_pc>: Declare.
1656 (riscv_breakpoint_kind_from_pc): Turn into...
1657 (riscv_target::breakpoint_kind_from_pc): ...this.
1658 (the_low_target): Remove the op fields.
1660 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1662 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1663 of linux_process_target.
1665 * linux-low.h (struct linux_target_ops): Remove the ops.
1666 (class linux_process_target) <low_supports_breakpoints>
1668 <low_set_pc>: Declare.
1669 * linux-low.cc (supports_breakpoints): Turn into...
1670 (linux_process_target::low_supports_breakpoints): ...this.
1671 (linux_process_target::low_get_pc): Define.
1672 (linux_process_target::low_set_pc): Define.
1674 Update the callers below.
1676 (linux_process_target::get_pc)
1677 (linux_process_target::save_stop_reason)
1678 (linux_process_target::maybe_move_out_of_jump_pad)
1679 (linux_process_target::wait_1)
1680 (linux_process_target::resume_one_lwp_throw)
1681 (linux_process_target::resume)
1682 (linux_process_target::proceed_all_lwps)
1683 (linux_process_target::read_pc)
1684 (linux_process_target::write_pc)
1686 * linux-x86-low.cc (class linux_process_target)
1687 <low_supports_breakpoints>
1689 <low_set_pc>: Declare.
1690 (x86_target::low_supports_breakpoints): Define.
1691 (x86_get_pc): Turn into...
1692 (x86_target::low_get_pc): ...this.
1693 (x86_set_pc): Turn into...
1694 (x86_target::low_set_pc): ...this.
1695 (the_low_target): Remove the op fields.
1696 * linux-arm-low.cc (class arm_target)
1697 <low_supports_breakpoints>
1699 <low_set_pc>: Declare.
1700 (arm_target::low_supports_breakpoints)
1701 (arm_target::low_get_pc)
1702 (arm_target::low_set_pc): Define.
1703 (the_low_target): Remove the op fields.
1704 * linux-bfin-low.cc (class bfin_target)
1705 <low_supports_breakpoints>
1707 <low_set_pc>: Declare.
1708 (bfin_target::low_supports_breakpoints)
1709 (bfin_target::low_get_pc)
1710 (bfin_target::low_set_pc): Define.
1711 (the_low_target): Remove the op fields.
1712 * linux-cris-low.cc (class cris_target)
1713 <low_supports_breakpoints>
1715 <low_set_pc>: Declare.
1716 (cris_target::low_supports_breakpoints)
1717 (cris_target::low_get_pc)
1718 (cris_target::low_set_pc): Define.
1719 (the_low_target): Remove the op fields.
1720 * linux-crisv32-low.cc (class crisv32_target)
1721 <low_supports_breakpoints>
1723 <low_set_pc>: Declare.
1724 (crisv32_target::low_supports_breakpoints)
1725 (crisv32_target::low_get_pc)
1726 (crisv32_target::low_set_pc): Define.
1727 (the_low_target): Remove the op fields.
1728 * linux-m32r-low.cc (class m32r_target)
1729 <low_supports_breakpoints>
1731 <low_set_pc>: Declare.
1732 (m32r_target::low_supports_breakpoints)
1733 (m32r_target::low_get_pc)
1734 (m32r_target::low_set_pc): Define.
1735 (the_low_target): Remove the op fields.
1736 * linux-m68k-low.cc (class m68k_target)
1737 <low_supports_breakpoints>
1739 <low_set_pc>: Declare.
1740 (m68k_target::low_supports_breakpoints)
1741 (m68k_target::low_get_pc)
1742 (m68k_target::low_set_pc): Define.
1743 (the_low_target): Remove the op fields.
1744 * linux-nios2-low.cc (class nios2_target)
1745 <low_supports_breakpoints>
1747 <low_set_pc>: Declare.
1748 (nios2_target::low_supports_breakpoints)
1749 (nios2_target::low_get_pc)
1750 (nios2_target::low_set_pc): Define.
1751 (the_low_target): Remove the op fields.
1752 * linux-sh-low.cc (class sh_target)
1753 <low_supports_breakpoints>
1755 <low_set_pc>: Declare.
1756 (sh_target::low_supports_breakpoints)
1757 (sh_target::low_get_pc)
1758 (sh_target::low_set_pc): Define.
1759 (the_low_target): Remove the op fields.
1760 * linux-xtensa-low.cc (class xtensa_target)
1761 <low_supports_breakpoints>
1763 <low_set_pc>: Declare.
1764 (xtensa_target::low_supports_breakpoints)
1765 (xtensa_target::low_get_pc)
1766 (xtensa_target::low_set_pc): Define.
1767 (the_low_target): Remove the op fields.
1768 * linux-sparc-low.cc (class sparc_target)
1769 <low_supports_breakpoints>
1770 <low_get_pc>: Declare.
1771 (sparc_target::low_supports_breakpoints)
1772 (sparc_target::low_get_pc): Define.
1773 (the_low_target): Remove the op fields.
1774 * linux-tile-low.cc (class tile_target)
1775 <low_supports_breakpoints>
1777 <low_set_pc>: Declare.
1778 (tile_target::low_supports_breakpoints)
1779 (tile_target::low_get_pc)
1780 (tile_target::low_set_pc): Define.
1781 (the_low_target): Remove the op fields.
1782 * linux-aarch64-low.cc (class aarch64_target)
1783 <low_supports_breakpoints>
1785 <low_set_pc>: Declare.
1786 (aarch64_target::low_supports_breakpoints): Define.
1787 (aarch64_get_pc): Turn into...
1788 (aarch64_target::low_get_pc): ...this.
1789 (aarch64_set_pc): Turn into...
1790 (aarch64_target::low_set_pc): ...this.
1791 (the_low_target): Remove the op fields.
1792 * linux-mips-low.cc (class mips_target)
1793 <low_supports_breakpoints>
1795 <low_set_pc>: Declare.
1796 (mips_target::low_supports_breakpoints): Define.
1797 (mips_get_pc): Turn into...
1798 (mips_target::low_get_pc): ...this.
1799 (mips_set_pc): Turn into...
1800 (mips_target::low_set_pc): ...this.
1801 (the_low_target): Remove the op fields.
1802 * linux-ppc-low.cc (class ppc_target)
1803 <low_supports_breakpoints>
1805 <low_set_pc>: Declare.
1806 (ppc_target::low_supports_breakpoints): Define.
1807 (ppc_get_pc): Turn into...
1808 (ppc_target::low_get_pc): ...this.
1809 (ppc_set_pc): Turn into...
1810 (ppc_target::low_set_pc): ...this.
1811 (the_low_target): Remove the op fields.
1812 * linux-riscv-low.cc (class riscv_target)
1813 <low_supports_breakpoints>
1815 <low_set_pc>: Declare.
1816 (riscv_target::low_supports_breakpoints): Define.
1817 (riscv_get_pc): Turn into...
1818 (riscv_target::low_get_pc): ...this.
1819 (riscv_set_pc): Turn into...
1820 (riscv_target::low_set_pc): ...this.
1821 (the_low_target): Remove the op fields.
1822 * linux-s390-low.cc (class s390_target)
1823 <low_supports_breakpoints>
1825 <low_set_pc>: Declare.
1826 (s390_target::low_supports_breakpoints): Define.
1827 (s390_get_pc): Turn into...
1828 (s390_target::low_get_pc): ...this.
1829 (s390_set_pc): Turn into...
1830 (s390_target::low_set_pc): ...this.
1831 (the_low_target): Remove the op fields.
1832 * linux-tic6x-low.cc (class tic6x_target)
1833 <low_supports_breakpoints>
1835 <low_set_pc>: Declare.
1836 (tic6x_target::low_supports_breakpoints): Define.
1837 (tic6x_get_pc): Turn into...
1838 (tic6x_target::low_get_pc): ...this.
1839 (tic6x_set_pc): Turn into...
1840 (tic6x_target::low_set_pc): ...this.
1841 (the_low_target): Remove the op fields.
1843 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1845 Turn some more static methods in linux-low into private methods
1846 of linux_process_target.
1848 * linux-low.cc (get_pc): Turn into...
1849 (linux_process_target::get_pc): ...this.
1850 (save_stop_reason): Turn into...
1851 (linux_process_target::save_stop_reason): ...this.
1852 (thread_still_has_status_pending_p): Turn into...
1853 (linux_process_target::thread_still_has_status_pending): ...this.
1854 (status_pending_p_callback): Turn into...
1855 (linux_process_target::status_pending_p_callback): ...this.
1856 (resume_stopped_resumed_lwps): Turn into...
1857 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1858 (install_software_single_step_breakpoints): Turn into...
1859 (linux_process_target::install_software_single_step_breakpoints):
1861 (single_step): Turn into...
1862 (linux_process_target::single_step): ...this.
1863 (linux_resume_one_lwp_throw): Turn into...
1864 (linux_process_target::resume_one_lwp_throw): ...this.
1865 (linux_resume_one_lwp): Turn into...
1866 (linux_process_target::resume_one_lwp): ...this.
1867 (resume_status_pending_p): Turn into...
1868 (linux_process_target::resume_status_pending): ...this.
1869 (need_step_over_p): Turn into...
1870 (linux_process_target::thread_needs_step_over): ...this.
1871 (linux_resume_one_thread): Turn into...
1872 (linux_process_target::resume_one_thread): ...this.
1873 (proceed_one_lwp): Turn into...
1874 (linux_process_target::proceed_one_lwp): ...this.
1875 (unsuspend_and_proceed_one_lwp): Turn into...
1876 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1878 Update the calls/references to the above functions below.
1880 (linux_process_target::handle_extended_wait)
1881 (linux_process_target::filter_event)
1882 (linux_process_target::wait_for_event_filtered)
1883 (linux_process_target::wait_1)
1884 (linux_process_target::move_out_of_jump_pad)
1885 (linux_process_target::start_step_over)
1886 (linux_process_target::resume)
1887 (linux_process_target::proceed_all_lwps)
1888 (regsets_store_inferior_registers)
1889 (linux_process_target::store_register)
1891 * linux-low.h (class linux_process_target)
1894 <thread_still_has_status_pending>
1895 <status_pending_p_callback>
1896 <resume_stopped_resumed_lwps>
1897 <install_software_single_step_breakpoints>
1899 <resume_one_lwp_throw>
1901 <resume_status_pending>
1902 <thread_needs_step_over>
1905 <unsuspend_and_proceed_one_lwp>: Declare.
1907 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1909 Turn the 'fetch_register' linux target op into a method of
1910 linux_process_target.
1912 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1913 (class linux_process_target) <low_fetch_register>: Declare.
1914 * linux-x86-low.cc (the_low_target)
1915 * linux-aarch64-low.cc (the_low_target)
1916 * linux-arm-low.cc (the_low_target)
1917 * linux-bfin-low.cc (the_low_target)
1918 * linux-cris-low.cc (the_low_target)
1919 * linux-crisv32-low.cc (the_low_target)
1920 * linux-m32r-low.cc (the_low_target)
1921 * linux-m68k-low.cc (the_low_target)
1922 * linux-nios2-low.cc (the_low_target)
1923 * linux-ppc-low.cc (the_low_target)
1924 * linux-s390-low.cc (the_low_target)
1925 * linux-sh-low.cc (the_low_target)
1926 * linux-sparc-low.cc (the_low_target)
1927 * linux-tic6x-low.cc (the_low_target)
1928 * linux-tile-low.cc (the_low_target)
1929 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1930 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1932 (ia64_fetch_register): Turn into...
1933 (ia64_target::low_fetch_register): ...this.
1934 (the_low_target): Remove the op field.
1935 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1937 (mips_fetch_register): Turn into...
1938 (mips_target::low_fetch_register): ...this.
1939 (the_low_target): Remove the op field.
1940 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1942 (riscv_fetch_register): Turn into...
1943 (riscv_target::low_fetch_register): ...this.
1944 (the_low_target): Remove the op field.
1946 Update the callers below.
1948 * linux-low.cc (linux_process_target::fetch_registers)
1949 (linux_process_target::low_fetch_register)
1951 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1953 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1954 linux target ops into methods of linux_process_target.
1956 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1957 (class linux_process_target) <fetch_register>
1959 <usr_fetch_inferior_registers>
1960 <usr_store_inferior_registers>
1961 <low_cannot_fetch_register>
1962 <low_cannot_fetch_register> Declare.
1963 * linux-low.cc (fetch_register): Turn into...
1964 (linux_process_target::fetch_register): ...this.
1965 (store_register): Turn into ...
1966 (linux_process_target::store_register): ...this.
1967 (usr_fetch_inferior_registers): Turn into...
1968 (linux_process_target::usr_fetch_inferior_registers): ...this.
1969 (usr_store_inferior_registers): Turn into...
1970 (linux_process_target::usr_store_inferior_registers): ...this.
1971 * linux-x86-low.cc (class x86_target)
1972 <low_cannot_fetch_register>
1973 <low_cannot_store_register>: Declare.
1974 (x86_cannot_store_register): Turn into...
1975 (x86_target::low_cannot_store_register): ...this.
1976 (x86_cannot_fetch_register): Turn into...
1977 (x86_target::low_cannot_fetch_register): ...this.
1978 (the_low_target): Remove the target op fields.
1979 * linux-aarch64-low.cc (class aarch64_target)
1980 <low_cannot_fetch_register>
1981 <low_cannot_store_register>: Declare.
1982 (aarch64_target::low_cannot_fetch_register)
1983 (aarch64_target::low_cannot_store_register): Define.
1984 (the_low_target): Remove the op fields.
1985 * linux-arm-low.cc (class arm_target)
1986 <low_cannot_fetch_register>
1987 <low_cannot_store_register>: Declare.
1988 (arm_cannot_fetch_register): Turn into...
1989 (arm_target::low_cannot_fetch_register): ...this.
1990 (arm_cannot_store_register): Turn into...
1991 (arm_target::low_cannot_store_register): ...this.
1992 (the_low_target): Remove the op fields.
1993 * linux-bfin-low.cc (class bfin_target)
1994 <low_cannot_fetch_register>
1995 <low_cannot_store_register>: Declare.
1996 (bfin_cannot_fetch_register): Turn into...
1997 (bfin_target::low_cannot_fetch_register): ...this.
1998 (bfin_cannot_store_register): Turn into...
1999 (bfin_target::low_cannot_store_register): ...this.
2000 (the_low_target): Remove the op fields.
2001 * linux-cris-low.cc (class cris_target)
2002 <low_cannot_fetch_register>
2003 <low_cannot_store_register>: Declare.
2004 (cris_cannot_fetch_register): Turn into...
2005 (cris_target::low_cannot_fetch_register): ...this.
2006 (cris_cannot_store_register): Turn into...
2007 (cris_target::low_cannot_store_register): ...this.
2008 (the_low_target): Remove the op fields.
2009 * linux-crisv32-low.cc (class crisv32_target)
2010 <low_cannot_fetch_register>
2011 <low_cannot_store_register>: Declare.
2012 (crisv32_target::low_cannot_fetch_register)
2013 (crisv32_target::low_cannot_store_register): Define.
2014 (the_low_target): Remove the op fields.
2015 * linux-ia64-low.cc (class ia64_target)
2016 <low_cannot_fetch_register>
2017 <low_cannot_store_register>: Declare.
2018 (ia64_cannot_fetch_register): Turn into...
2019 (ia64_target::low_cannot_fetch_register): ...this.
2020 (ia64_cannot_store_register): Turn into...
2021 (ia64_target::low_cannot_store_register): ...this.
2022 (the_low_target): Remove the op fields.
2023 * linux-m32r-low.cc (class m32r_target)
2024 <low_cannot_fetch_register>
2025 <low_cannot_store_register>: Declare.
2026 (m32r_cannot_fetch_register): Turn into...
2027 (m32r_target::low_cannot_fetch_register): ...this.
2028 (m32r_cannot_store_register): Turn into...
2029 (m32r_target::low_cannot_store_register): ...this.
2030 (the_low_target): Remove the op fields.
2031 * linux-m68k-low.cc (class m68k_target)
2032 <low_cannot_fetch_register>
2033 <low_cannot_store_register>: Declare.
2034 (m68k_cannot_fetch_register): Turn into...
2035 (m68k_target::low_cannot_fetch_register): ...this.
2036 (m68k_cannot_store_register): Turn into...
2037 (m68k_target::low_cannot_store_register): ...this.
2038 (the_low_target): Remove the op fields.
2039 * linux-mips-low.cc (class mips_target)
2040 <low_cannot_fetch_register>
2041 <low_cannot_store_register>: Declare.
2042 (mips_cannot_fetch_register): Turn into...
2043 (mips_target::low_cannot_fetch_register): ...this.
2044 (mips_cannot_store_register): Turn into...
2045 (mips_target::low_cannot_store_register): ...this.
2046 (get_usrregs_info): Inline at the call sites in
2047 low_cannot_fetch_register and low_cannot_store_register,
2049 (the_low_target): Remove the op fields.
2050 * linux-nios2-low.cc (class nios2_target)
2051 <low_cannot_fetch_register>
2052 <low_cannot_store_register>: Declare.
2053 (nios2_cannot_fetch_register): Turn into...
2054 (nios2_target::low_cannot_fetch_register): ...this.
2055 (nios2_cannot_store_register): Turn into...
2056 (nios2_target::low_cannot_store_register): ...this.
2057 (the_low_target): Remove the op fields.
2058 * linux-ppc-low.cc (class ppc_target)
2059 <low_cannot_fetch_register>
2060 <low_cannot_store_register>: Declare.
2061 (ppc_cannot_fetch_register): Turn into...
2062 (ppc_target::low_cannot_fetch_register): ...this.
2063 (ppc_cannot_store_register): Turn into...
2064 (ppc_target::low_cannot_store_register): ...this.
2065 (the_low_target): Remove the op fields.
2066 * linux-riscv-low.cc (class riscv_target)
2067 <low_cannot_fetch_register>
2068 <low_cannot_store_register>: Declare.
2069 (riscv_target::low_cannot_fetch_register)
2070 (riscv_target::low_cannot_store_register): Define.
2071 (the_low_target): Remove the op fields.
2072 * linux-s390-low.cc (class s390_target)
2073 <low_cannot_fetch_register>
2074 <low_cannot_store_register>: Declare.
2075 (s390_cannot_fetch_register): Turn into...
2076 (s390_target::low_cannot_fetch_register): ...this.
2077 (s390_cannot_store_register): Turn into...
2078 (s390_target::low_cannot_store_register): ...this.
2079 (the_low_target): Remove the op fields.
2080 * linux-sh-low.cc (class sh_target)
2081 <low_cannot_fetch_register>
2082 <low_cannot_store_register>: Declare.
2083 (sh_cannot_fetch_register): Turn into...
2084 (sh_target::low_cannot_fetch_register): ...this.
2085 (sh_cannot_store_register): Turn into...
2086 (sh_target::low_cannot_store_register): ...this.
2087 (the_low_target): Remove the op fields.
2088 * linux-sparc-low.cc (class sparc_target)
2089 <low_cannot_fetch_register>
2090 <low_cannot_store_register>: Declare.
2091 (sparc_cannot_fetch_register): Turn into...
2092 (sparc_target::low_cannot_fetch_register): ...this.
2093 (sparc_cannot_store_register): Turn into...
2094 (sparc_target::low_cannot_store_register): ...this.
2095 (the_low_target): Remove the op fields.
2096 * linux-tic6x-low.cc (class tic6x_target)
2097 <low_cannot_fetch_register>
2098 <low_cannot_store_register>: Declare.
2099 (tic6x_cannot_fetch_register): Turn into...
2100 (tic6x_target::low_cannot_fetch_register): ...this.
2101 (tic6x_cannot_store_register): Turn into...
2102 (tic6x_target::low_cannot_store_register): ...this.
2103 (the_low_target): Remove the op fields.
2104 * linux-tile-low.cc (class tile_target)
2105 <low_cannot_fetch_register>
2106 <low_cannot_store_register>: Declare.
2107 (tile_cannot_fetch_register): Turn into...
2108 (tile_target::low_cannot_fetch_register): ...this.
2109 (tile_cannot_store_register): Turn into...
2110 (tile_target::low_cannot_store_register): ...this.
2111 (the_low_target): Remove the op fields.
2112 * linux-xtensa-low.cc (class xtensa_target)
2113 <low_cannot_fetch_register>
2114 <low_cannot_store_register>: Declare.
2115 (xtensa_target::low_cannot_fetch_register)
2116 (xtensa_target::low_cannot_store_register): Define.
2117 (the_low_target): Remove the op fields.
2119 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2121 Turn the 'regs_info' linux target op into a method of
2122 linux_process_target.
2124 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2125 (class linux_process_target) <get_regs_info>: Define.
2127 Update the callers below.
2129 * linux-low.cc (linux_process_target::fetch_registers)
2130 (linux_process_target::store_registers)
2131 * proc-service.cc (gregset_info)
2133 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2134 (x86_linux_regs_info): Turn into ...
2135 (x86_target::get_regs_info): ...this.
2136 (the_low_target): Remove the op field.
2137 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2139 (aarch64_regs_info): Turn into ...
2140 (aarch64_target::get_regs_info): ...this.
2141 (the_low_target): Remove the op field.
2142 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2143 (arm_regs_info): Turn into ...
2144 (arm_target::get_regs_info): ...this.
2145 (the_low_target): Remove the op field.
2146 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2147 (bfin_regs_info): Turn into ...
2148 (bfin_target::get_regs_info): ...this.
2149 (the_low_target): Remove the op field.
2150 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2151 (cris_regs_info): Turn into ...
2152 (cris_target::get_regs_info): ...this.
2153 (the_low_target): Remove the op field.
2154 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2156 (crisv32_regs_info): Turn into ...
2157 (crisv32_target::get_regs_info): ...this.
2158 (the_low_target): Remove the op field.
2159 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2160 (ia64_regs_info): Turn into ...
2161 (ia64_target::get_regs_info): ...this.
2162 (the_low_target): Remove the op field.
2163 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2164 (m32r_regs_info): Turn into ...
2165 (m32r_target::get_regs_info): ...this.
2166 (the_low_target): Remove the op field.
2167 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2168 (m68k_regs_info): Turn into ...
2169 (m68k_target::get_regs_info): ...this.
2170 (the_low_target): Remove the op field.
2171 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2172 (mips_regs_info): Turn into ...
2173 (mips_target::get_regs_info): ...this.
2174 (the_low_target): Remove the op field.
2175 (get_usrregs_info): Update the call to the op.
2176 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2177 (nios2_regs_info): Turn into ...
2178 (nios2_target::get_regs_info): ...this.
2179 (the_low_target): Remove the op field.
2180 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2181 (ppc_regs_info): Turn into ...
2182 (ppc_target::get_regs_info): ...this.
2183 (the_low_target): Remove the op field.
2184 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2185 (riscv_regs_info): Turn into ...
2186 (riscv_target::get_regs_info): ...this.
2187 (the_low_target): Remove the op field.
2188 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2189 (s390_regs_info): Turn into ...
2190 (s390_target::get_regs_info): ...this.
2191 (the_low_target): Remove the op field.
2192 (s390_collect_ptrace_register)
2193 (s390_supply_ptrace_register)
2194 (s390_fill_gregset): Update the call to the op.
2195 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2196 (sh_regs_info): Turn into ...
2197 (sh_target::get_regs_info): ...this.
2198 (the_low_target): Remove the op field.
2199 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2200 (sparc_regs_info): Turn into ...
2201 (sparc_target::get_regs_info): ...this.
2202 (the_low_target): Remove the op field.
2203 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2204 (tic6x_regs_info): Turn into ...
2205 (tic6x_target::get_regs_info): ...this.
2206 (the_low_target): Remove the op field.
2207 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2208 (tile_regs_info): Turn into ...
2209 (tile_target::get_regs_info): ...this.
2210 (the_low_target): Remove the op field.
2211 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2213 (xtensa_regs_info): Turn into ...
2214 (xtensa_target::get_regs_info): ...this.
2215 (the_low_target): Remove the op field.
2217 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2219 Turn the 'arch_setup' linux target op into a method of
2220 linux_process_target.
2222 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2223 (class linux_process_target) <arch_setup_thread>
2224 <low_arch_setup>: New declarations.
2225 * linux-low.cc (linux_arch_setup): Delete.
2226 (linux_arch_setup_thread): Turn into...
2227 (linux_process_target::arch_setup_thread): ... this.
2229 Update the callers below.
2231 (linux_process_target::handle_extended_wait)
2232 (linux_process_target::post_create_inferior)
2233 (linux_process_target::filter_event)
2235 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2237 (x86_linux_update_xmltarget): Turn into...
2238 (x86_target::update_xmltarget): ...this.
2239 (x86_linux_process_qsupported): Update the call to
2240 x86_linux_update_xmltarget.
2241 (x86_arch_setup): Turn into ...
2242 (x86_target::low_arch_setup): ...this.
2243 (the_low_target): Remove the op field.
2244 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2246 (aarch64_arch_setup): Turn into ...
2247 (aarch64_target::low_arch_setup): ...this.
2248 (the_low_target): Remove the op field.
2249 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2251 (arm_arch_setup): Turn into ...
2252 (arm_target::low_arch_setup): ...this.
2253 (the_low_target): Remove the op field.
2254 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2256 (bfin_arch_setup): Turn into ...
2257 (bfin_target::low_arch_setup): ...this.
2258 (the_low_target): Remove the op field.
2259 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2261 (cris_arch_setup): Turn into ...
2262 (cris_target::low_arch_setup): ...this.
2263 (the_low_target): Remove the op field.
2264 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2266 (crisv32_arch_setup): Turn into ...
2267 (crisv32_target::low_arch_setup): ...this.
2268 (the_low_target): Remove the op field.
2269 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2271 (ia64_arch_setup): Turn into ...
2272 (ia64_target::low_arch_setup): ...this.
2273 (the_low_target): Remove the op field.
2274 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2276 (m32r_arch_setup): Turn into ...
2277 (m32r_target::low_arch_setup): ...this.
2278 (the_low_target): Remove the op field.
2279 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2281 (m68k_arch_setup): Turn into ...
2282 (m68k_target::low_arch_setup): ...this.
2283 (the_low_target): Remove the op field.
2284 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2286 (mips_arch_setup): Turn into ...
2287 (mips_target::low_arch_setup): ...this.
2288 (the_low_target): Remove the op field.
2289 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2291 (nios2_arch_setup): Turn into ...
2292 (nios2_target::low_arch_setup): ...this.
2293 (the_low_target): Remove the op field.
2294 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2296 (ppc_arch_setup): Turn into ...
2297 (ppc_target::low_arch_setup): ...this.
2298 (the_low_target): Remove the op field.
2299 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2301 (riscv_arch_setup): Turn into ...
2302 (riscv_target::low_arch_setup): ...this.
2303 (the_low_target): Remove the op field.
2304 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2306 (s390_arch_setup): Turn into ...
2307 (s390_target::low_arch_setup): ...this.
2308 (the_low_target): Remove the op field.
2309 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2311 (sh_arch_setup): Turn into ...
2312 (sh_target::low_arch_setup): ...this.
2313 (the_low_target): Remove the op field.
2314 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2316 (sparc_arch_setup): Turn into ...
2317 (sparc_target::low_arch_setup): ...this.
2318 (the_low_target): Remove the op field.
2319 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2321 (tic6x_arch_setup): Turn into ...
2322 (tic6x_target::low_arch_setup): ...this.
2323 (the_low_target): Remove the op field.
2324 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2326 (tile_arch_setup): Turn into ...
2327 (tile_target::low_arch_setup): ...this.
2328 (the_low_target): Remove the op field.
2329 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2331 (xtensa_arch_setup): Turn into ...
2332 (xtensa_target::low_arch_setup): ...this.
2333 (the_low_target): Remove the op field.
2335 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2337 * linux-low.h (the_linux_target): New extern declaration.
2338 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2340 (the_linux_target): Remove.
2341 * linux-x86-low.cc (class x86_target): New class.
2342 (the_x86_target): New static object.
2343 (the_linux_target): Define as pointer to the_x86_target.
2344 * linux-aarch64-low.cc (class aarch64_target): New class.
2345 (the_aarch64_target): New static object.
2346 (the_linux_target): Define as pointer to the_aarch64_target.
2347 * linux-arm-low.cc (class arm_target): New class.
2348 (the_arm_target): New static object.
2349 (the_linux_target): Define as pointer to the_arm_target.
2350 * linux-bfin-low.cc (class bfin_target): New class.
2351 (the_bfin_target): New static object.
2352 (the_linux_target): Define as pointer to the_bfin_target.
2353 * linux-cris-low.cc (class cris_target): New class.
2354 (the_cris_target): New static object.
2355 (the_linux_target): Define as pointer to the_cris_target.
2356 * linux-crisv32-low.cc (class crisv32_target): New class.
2357 (the_crisv32_target): New static object.
2358 (the_linux_target): Define as pointer to the_crisv32_target.
2359 * linux-ia64-low.cc (class ia64_target): New class.
2360 (the_ia64_target): New static object.
2361 (the_linux_target): Define as pointer to the_ia64_target.
2362 * linux-m32r-low.cc (class m32r_target): New class.
2363 (the_m32r_target): New static object.
2364 (the_linux_target): Define as pointer to the_m32r_target.
2365 * linux-m68k-low.cc (class m68k_target): New class.
2366 (the_m68k_target): New static object.
2367 (the_linux_target): Define as pointer to the_m68k_target.
2368 * linux-mips-low.cc (class mips_target): New class.
2369 (the_mips_target): New static object.
2370 (the_linux_target): Define as pointer to the_mips_target.
2371 * linux-nios2-low.cc (class nios2_target): New class.
2372 (the_nios2_target): New static object.
2373 (the_linux_target): Define as pointer to the_nios2_target.
2374 * linux-ppc-low.cc (class ppc_target): New class.
2375 (the_ppc_target): New static object.
2376 (the_linux_target): Define as pointer to the_ppc_target.
2377 * linux-riscv-low.cc (class riscv_target): New class.
2378 (the_riscv_target): New static object.
2379 (the_linux_target): Define as pointer to the_riscv_target.
2380 * linux-s390-low.cc (class s390_target): New class.
2381 (the_s390_target): New static object.
2382 (the_linux_target): Define as pointer to the_s390_target.
2383 * linux-sh-low.cc (class sh_target): New class.
2384 (the_sh_target): New static object.
2385 (the_linux_target): Define as pointer to the_sh_target.
2386 * linux-sparc-low.cc (class sparc_target): New class.
2387 (the_sparc_target): New static object.
2388 (the_linux_target): Define as pointer to the_sparc_target.
2389 * linux-tic6x-low.cc (class tic6x_target): New class.
2390 (the_tic6x_target): New static object.
2391 (the_linux_target): Define as pointer to the_tic6x_target.
2392 * linux-tile-low.cc (class tile_target): New class.
2393 (the_tile_target): New static object.
2394 (the_linux_target): Define as pointer to the_tile_target.
2395 * linux-xtensa-low.cc (class xtensa_target): New class.
2396 (the_xtensa_target): New static object.
2397 (the_linux_target): Define as pointer to the_xtensa_target.
2399 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2401 Turn some static functions in linux-low.cc into private methods of
2402 linux_process_target.
2404 * linux-low.cc (handle_extended_wait): Turn into ...
2405 (linux_process_target::handle_extended_wait): ...this. Call
2406 'mourn' on 'this' object instead of 'the_target'.
2407 (maybe_move_out_of_jump_pad): Turn into...
2408 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2409 (linux_low_filter_event): Turn into...
2410 (linux_process_target::filter_event): ...this.
2411 (linux_wait_for_event_filtered): Turn into...
2412 (linux_process_target::wait_for_event_filtered): ...this.
2413 (linux_wait_for_event): Turn into...
2414 (linux_process_target::wait_for_event): ...this.
2415 (linux_wait_1): Turn into...
2416 (linux_process_target::wait_1): ...this.
2417 (wait_for_sigstop): Turn into...
2418 (linux_process_target::wait_for_sigstop): ...this.
2419 (move_out_of_jump_pad_callback): Turn into...
2420 (linux_process_target::move_out_of_jump_pad): ...this.
2421 (stop_all_lwps): Turn into...
2422 (linux_process_target::stop_all_lwps): ...this.
2423 (start_step_over): Turn into...
2424 (linux_process_target::start_step_over): ...this.
2425 (complete_ongoing_step_over): Turn into...
2426 (linux_process_target::complete_ongoing_step_over): ...this.
2427 (proceed_all_lwps): Turn into...
2428 (linux_process_target::proceed_all_lwps): ...this.
2429 (unstop_all_lwps): Turn into...
2430 (linux_process_target::unstop_all_lwps): ...this.
2432 * linux-low.h (class linux_process_target)
2433 <handle_extended_wait>
2434 <maybe_move_out_of_jump_pad>
2436 <wait_for_event_filtered>
2440 <move_out_of_jump_pad>
2443 <complete_ongoing_step_over>
2445 <unstop_all_lwps>: Declare.
2447 Update the callers below.
2449 * linux-low.cc (linux_process_target::attach): Update.
2450 (linux_process_target::stabilize_threads): Ditto.
2451 (linux_process_target::wait): Ditto.
2453 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2455 * linux-low.h (struct linux_target_ops): Update the comment for
2456 'cannot_store_register' to return 0 or 1.
2457 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2460 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2462 * config.in: Re-generate.
2463 * configure: Re-generate.
2465 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2467 * regcache.cc (find_register_by_number): Update.
2468 * tdesc.cc (init_target_desc): Likewise.
2469 * tdesc.h (target_desc::reg_defs): Likewise.
2471 2020-03-12 Tom Tromey <tom@tromey.com>
2473 * configure: Rebuild.
2474 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2475 (WIN32APILIBS): New subst.
2476 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2478 (gdbsupport/%.o): Remove target.
2479 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2480 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2481 (WIN32APILIBS): New variable.
2482 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2483 (gdbreplay$(EXEEXT)): Likewise.
2485 2020-03-12 Tom Tromey <tom@tromey.com>
2487 * config.in, configure: Rebuild.
2488 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2489 * acinclude.m4: Include gettext-sister.m4.
2490 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2492 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2493 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2495 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2497 * acinclude.m4: Update path to selftest.m4.
2499 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2501 * configure.ac: Don't source bfd/development.sh, move
2502 GDB_AC_COMMON higher.
2503 * configure: Re-generate.
2505 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2507 * configure: Re-generate.
2509 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2511 * configure: Re-generate.
2513 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2515 * .dir-locals.el: New file.
2517 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2519 * .gitattributes: New file.
2521 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2523 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2524 reply into an S reply.
2525 * server.cc (disable_packet_T): New global.
2526 (captured_main): Set new global when appropriate.
2527 * server.h (disable_packet_T): Declare.
2529 2020-02-21 Tom Tromey <tom@tromey.com>
2531 * Makefile.in (mostlyclean): New target.
2533 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2535 * target.h (struct process_stratum_target): Remove.
2536 (class process_target): Rename to ...
2537 (class process_stratum_target): ... this.
2538 * linux-low.h (class linux_process_target): Derive from
2539 'process_stratum_target'.
2540 * linux-low.cc (linux_target_ops): Remove.
2541 (initialize_low): Set the_target to the singleton instance of
2542 linux_process_target.
2543 * lynx-low.h (class lynx_process_target): Derive from
2544 'process_stratum_target'.
2545 * lynx-low.cc (lynx_target_ops): Remove.
2546 (initialize_low): Set the_target to the singleton instance of
2547 lynx_process_target.
2548 * nto-low.h (class nto_process_target): Derive from
2549 'process_stratum_target'.
2550 * nto-low.cc (nto_target_ops): Remove.
2551 (initialize_low): Set the_target to the singleton instance of
2553 * win32-low.h (class win32_process_target): Derive from
2554 'process_stratum_target'.
2555 * win32-low.cc (win32_target_ops): Remove.
2556 (initialize_low): Set the_target to the singleton instance of
2557 win32_process_target.
2559 Replace 'the_target->pt' with 'the_target' in the uses below.
2561 * hostio.cc (hostio_error)
2566 * linux-aarch32-low.cc (arm_breakpoint_at)
2567 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2568 * linux-arm-low.cc (arm_sigreturn_next_pc)
2570 (arm_get_syscall_trapinfo)
2571 * linux-cris-low.cc (cris_breakpoint_at)
2572 * linux-crisv32-low.cc (cris_breakpoint_at)
2573 * linux-low.cc (handle_extended_wait)
2576 (linux_process_target::breakpoint_kind_from_pc)
2578 * linux-m32r-low.cc (m32r_breakpoint_at)
2579 * linux-mips-low.cc (mips_breakpoint_at)
2580 * linux-nios2-low.cc (nios2_breakpoint_at)
2581 * linux-ppc-low.cc (ppc_breakpoint_at)
2582 * linux-s390-low.cc (s390_get_hwcap)
2583 * linux-sh-low.cc (sh_breakpoint_at)
2584 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2585 (sparc_store_gregset_from_stack)
2586 (sparc_breakpoint_at)
2587 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2588 * linux-tile-low.cc (tile_breakpoint_at)
2589 * linux-x86-low.cc (x86_breakpoint_at)
2590 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2591 * mem-break.cc (bp_size)
2593 (insert_memory_breakpoint)
2594 (set_raw_breakpoint_at)
2595 (delete_raw_breakpoint)
2597 (uninsert_raw_breakpoint)
2598 (reinsert_raw_breakpoint)
2599 (validate_inserted_breakpoint)
2600 * regcache.cc (regcache_read_pc)
2602 * remote-utils.cc (putpkt_binary_1)
2605 (prepare_resume_reply)
2606 * server.cc (handle_general_set)
2609 (handle_qxfer_exec_file)
2610 (handle_qxfer_libraries_svr4)
2611 (handle_qxfer_osdata)
2612 (handle_qxfer_siginfo)
2613 (handle_qxfer_fdpic)
2617 (queue_stop_reply_callback)
2619 * target.cc (prepare_to_access_memory)
2620 (done_accessing_memory)
2621 (read_inferior_memory)
2622 (target_write_memory)
2623 (target_stop_and_wait)
2625 (target_mourn_inferior)
2626 (target_continue_no_signal)
2628 (target_supports_multi_process)
2631 (target_create_inferior)
2632 (target_post_create_inferior)
2634 (target_supports_fork_events)
2635 (target_supports_vfork_events)
2636 (target_supports_exec_events)
2637 (target_handle_new_gdb_connection)
2640 (fetch_inferior_registers)
2641 (store_inferior_registers)
2643 (target_supports_non_stop)
2645 (target_process_qsupported)
2646 (target_supports_catch_syscall)
2647 (target_get_ipa_tdesc_idx)
2648 (target_supports_tracepoints)
2649 (target_supports_fast_tracepoints)
2650 (target_get_min_fast_tracepoint_insn_len)
2651 (target_thread_stopped)
2653 (target_unpause_all)
2654 (target_stabilize_threads)
2655 (target_install_fast_tracepoint_jump_pad)
2657 (target_supports_disable_randomization)
2658 (target_supports_agent)
2659 (target_enable_btrace)
2660 (target_disable_btrace)
2661 (target_read_btrace)
2662 (target_read_btrace_conf)
2663 (target_supports_range_stepping)
2664 (target_supports_stopped_by_sw_breakpoint)
2665 (target_stopped_by_sw_breakpoint)
2666 (target_supports_stopped_by_hw_breakpoint)
2667 (target_supports_hardware_single_step)
2668 (target_stopped_by_hw_breakpoint)
2669 (target_breakpoint_kind_from_pc)
2670 (target_breakpoint_kind_from_current_state)
2671 (target_supports_software_single_step)
2672 (target_core_of_thread)
2673 (target_thread_name)
2674 (target_thread_handle)
2675 * win32-low.cc (do_initial_child_stuff)
2677 Rename target op default definitions listed below.
2679 * target.cc (process_target::post_create_inferior): Rename as ...
2680 (process_stratum_target::post_create_inferior): ... this.
2681 (process_target::prepare_to_access_memory): Rename as ...
2682 (process_stratum_target::prepare_to_access_memory): ... this.
2683 (process_target::done_accessing_memory): Rename as ...
2684 (process_stratum_target::done_accessing_memory): ... this.
2685 (process_target::look_up_symbols): Rename as ...
2686 (process_stratum_target::look_up_symbols): ... this.
2687 (process_target::supports_read_auxv): Rename as ...
2688 (process_stratum_target::supports_read_auxv): ... this.
2689 (process_target::read_auxv): Rename as ...
2690 (process_stratum_target::read_auxv): ... this.
2691 (process_target::supports_z_point_type): Rename as ...
2692 (process_stratum_target::supports_z_point_type): ... this.
2693 (process_target::insert_point): Rename as ...
2694 (process_stratum_target::insert_point): ... this.
2695 (process_target::remove_point): Rename as ...
2696 (process_stratum_target::remove_point): ... this.
2697 (process_target::stopped_by_sw_breakpoint): Rename as ...
2698 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2699 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2700 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2701 (process_target::stopped_by_hw_breakpoint): Rename as ...
2702 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2703 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2704 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2705 (process_target::supports_hardware_single_step): Rename as ...
2706 (process_stratum_target::supports_hardware_single_step): ... this.
2707 (process_target::stopped_by_watchpoint): Rename as ...
2708 (process_stratum_target::stopped_by_watchpoint): ... this.
2709 (process_target::stopped_data_address): Rename as ...
2710 (process_stratum_target::stopped_data_address): ... this.
2711 (process_target::supports_read_offsets): Rename as ...
2712 (process_stratum_target::supports_read_offsets): ... this.
2713 (process_target::read_offsets): Rename as ...
2714 (process_stratum_target::read_offsets): ... this.
2715 (process_target::supports_get_tls_address): Rename as ...
2716 (process_stratum_target::supports_get_tls_address): ... this.
2717 (process_target::get_tls_address): Rename as ...
2718 (process_stratum_target::get_tls_address): ... this.
2719 (process_target::hostio_last_error): Rename as ...
2720 (process_stratum_target::hostio_last_error): ... this.
2721 (process_target::supports_qxfer_osdata): Rename as ...
2722 (process_stratum_target::supports_qxfer_osdata): ... this.
2723 (process_target::qxfer_osdata): Rename as ...
2724 (process_stratum_target::qxfer_osdata): ... this.
2725 (process_target::supports_qxfer_siginfo): Rename as ...
2726 (process_stratum_target::supports_qxfer_siginfo): ... this.
2727 (process_target::qxfer_siginfo): Rename as ...
2728 (process_stratum_target::qxfer_siginfo): ... this.
2729 (process_target::supports_non_stop): Rename as ...
2730 (process_stratum_target::supports_non_stop): ... this.
2731 (process_target::async): Rename as ...
2732 (process_stratum_target::async): ... this.
2733 (process_target::start_non_stop): Rename as ...
2734 (process_stratum_target::start_non_stop): ... this.
2735 (process_target::supports_multi_process): Rename as ...
2736 (process_stratum_target::supports_multi_process): ... this.
2737 (process_target::supports_fork_events): Rename as ...
2738 (process_stratum_target::supports_fork_events): ... this.
2739 (process_target::supports_vfork_events): Rename as ...
2740 (process_stratum_target::supports_vfork_events): ... this.
2741 (process_target::supports_exec_events): Rename as ...
2742 (process_stratum_target::supports_exec_events): ... this.
2743 (process_target::handle_new_gdb_connection): Rename as ...
2744 (process_stratum_target::handle_new_gdb_connection): ... this.
2745 (process_target::handle_monitor_command): Rename as ...
2746 (process_stratum_target::handle_monitor_command): ... this.
2747 (process_target::core_of_thread): Rename as ...
2748 (process_stratum_target::core_of_thread): ... this.
2749 (process_target::supports_read_loadmap): Rename as ...
2750 (process_stratum_target::supports_read_loadmap): ... this.
2751 (process_target::read_loadmap): Rename as ...
2752 (process_stratum_target::read_loadmap): ... this.
2753 (process_target::process_qsupported): Rename as ...
2754 (process_stratum_target::process_qsupported): ... this.
2755 (process_target::supports_tracepoints): Rename as ...
2756 (process_stratum_target::supports_tracepoints): ... this.
2757 (process_target::read_pc): Rename as ...
2758 (process_stratum_target::read_pc): ... this.
2759 (process_target::write_pc): Rename as ...
2760 (process_stratum_target::write_pc): ... this.
2761 (process_target::supports_thread_stopped): Rename as ...
2762 (process_stratum_target::supports_thread_stopped): ... this.
2763 (process_target::thread_stopped): Rename as ...
2764 (process_stratum_target::thread_stopped): ... this.
2765 (process_target::supports_get_tib_address): Rename as ...
2766 (process_stratum_target::supports_get_tib_address): ... this.
2767 (process_target::get_tib_address): Rename as ...
2768 (process_stratum_target::get_tib_address): ... this.
2769 (process_target::pause_all): Rename as ...
2770 (process_stratum_target::pause_all): ... this.
2771 (process_target::unpause_all): Rename as ...
2772 (process_stratum_target::unpause_all): ... this.
2773 (process_target::stabilize_threads): Rename as ...
2774 (process_stratum_target::stabilize_threads): ... this.
2775 (process_target::supports_fast_tracepoints): Rename as ...
2776 (process_stratum_target::supports_fast_tracepoints): ... this.
2777 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2778 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2779 (process_target::emit_ops): Rename as ...
2780 (process_stratum_target::emit_ops): ... this.
2781 (process_target::supports_disable_randomization): Rename as ...
2782 (process_stratum_target::supports_disable_randomization): ... this.
2783 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2784 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2785 (process_target::qxfer_libraries_svr4): Rename as ...
2786 (process_stratum_target::qxfer_libraries_svr4): ... this.
2787 (process_target::supports_agent): Rename as ...
2788 (process_stratum_target::supports_agent): ... this.
2789 (process_target::enable_btrace): Rename as ...
2790 (process_stratum_target::enable_btrace): ... this.
2791 (process_target::disable_btrace): Rename as ...
2792 (process_stratum_target::disable_btrace): ... this.
2793 (process_target::read_btrace): Rename as ...
2794 (process_stratum_target::read_btrace): ... this.
2795 (process_target::read_btrace_conf): Rename as ...
2796 (process_stratum_target::read_btrace_conf): ... this.
2797 (process_target::supports_range_stepping): Rename as ...
2798 (process_stratum_target::supports_range_stepping): ... this.
2799 (process_target::supports_pid_to_exec_file): Rename as ...
2800 (process_stratum_target::supports_pid_to_exec_file): ... this.
2801 (process_target::pid_to_exec_file): Rename as ...
2802 (process_stratum_target::pid_to_exec_file): ... this.
2803 (process_target::supports_multifs): Rename as ...
2804 (process_stratum_target::supports_multifs): ... this.
2805 (process_target::multifs_open): Rename as ...
2806 (process_stratum_target::multifs_open): ... this.
2807 (process_target::multifs_unlink): Rename as ...
2808 (process_stratum_target::multifs_unlink): ... this.
2809 (process_target::multifs_readlink): Rename as ...
2810 (process_stratum_target::multifs_readlink): ... this.
2811 (process_target::breakpoint_kind_from_pc): Rename as ...
2812 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2813 (process_target::breakpoint_kind_from_current_state): Rename as ...
2814 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2815 (process_target::thread_name): Rename as ...
2816 (process_stratum_target::thread_name): ... this.
2817 (process_target::thread_handle): Rename as ...
2818 (process_stratum_target::thread_handle): ... this.
2819 (process_target::supports_software_single_step): Rename as ...
2820 (process_stratum_target::supports_software_single_step): ... this.
2821 (process_target::supports_catch_syscall): Rename as ...
2822 (process_stratum_target::supports_catch_syscall): ... this.
2823 (process_target::get_ipa_tdesc_idx): Rename as ...
2824 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2826 2020-02-20 Pedro Alves <palves@redhat.com>
2828 * target.cc (set_target_ops): Simply copy the given target pointer
2829 instead of creating a copy of the pointed object.
2831 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2833 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2836 * target.h (struct process_stratum_target): Remove the target op.
2837 (class process_target): Add the target op.
2838 (target_get_ipa_tdesc_idx): Update the macro.
2839 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2841 Update the derived classes and callers below.
2843 * linux-low.cc (linux_target_ops): Update.
2844 (linux_get_ipa_tdesc_idx): Turn into ...
2845 (linux_process_target::get_ipa_tdesc_idx): ... this.
2846 * linux-low.h (class linux_process_target): Update.
2847 * lynx-low.cc (lynx_target_ops): Update.
2848 * nto-low.cc (nto_target_ops): Update.
2849 * win32-low.cc (win32_target_ops): Update.
2851 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2853 Turn process_stratum_target's supports_catch_syscall op into a
2854 method of process_target.
2856 * target.h (struct process_stratum_target): Remove the target op.
2857 (class process_target): Add the target op.
2858 (target_supports_catch_syscall): Update the macro.
2859 * target.cc (process_target::supports_catch_syscall): Define.
2861 Update the derived classes and callers below.
2863 * linux-low.cc (linux_target_ops): Update.
2864 (linux_supports_catch_syscall): Turn into ...
2865 (linux_process_target::supports_catch_syscall): ... this.
2866 * linux-low.h (class linux_process_target): Update.
2867 * lynx-low.cc (lynx_target_ops): Update.
2868 * nto-low.cc (nto_target_ops): Update.
2869 * win32-low.cc (win32_target_ops): Update.
2871 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2873 Turn process_stratum_target's supports_software_single_step op
2874 into a method of process_target.
2876 * target.h (struct process_stratum_target): Remove the target op.
2877 (class process_target): Add the target op.
2878 (target_supports_software_single_step): Update the macro.
2879 * target.cc (process_target::supports_software_single_step): Define.
2881 Update the derived classes and callers below.
2883 * linux-low.cc (linux_target_ops): Update.
2884 (linux_supports_software_single_step): Turn into ...
2885 (linux_process_target::supports_software_single_step): ... this.
2886 * linux-low.h (class linux_process_target): Update.
2887 * lynx-low.cc (lynx_target_ops): Update.
2888 * nto-low.cc (nto_target_ops): Update.
2889 * win32-low.cc (win32_target_ops): Update.
2891 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2893 Turn process_stratum_target's thread_name and thread_handle ops
2894 into methods of process_target.
2896 * target.h (struct process_stratum_target): Remove the target ops.
2897 (class process_target): Add the target ops.
2898 (target_thread_name): Update the macro.
2899 (target_thread_handle): Update the macro.
2900 * target.cc (process_target::thread_name): Define.
2901 (process_target::thread_handle): Define.
2903 Update the derived classes and callers below.
2905 * linux-low.cc (linux_target_ops): Update.
2906 (linux_process_target::thread_name): Define.
2907 (linux_process_target::thread_handle): Define.
2908 * linux-low.h (class linux_process_target): Update.
2909 * lynx-low.cc (lynx_target_ops): Update.
2910 * nto-low.cc (nto_target_ops): Update.
2911 * win32-low.cc (win32_target_ops): Update.
2913 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2915 Turn process_stratum_target's breakpoint_kind_from_pc,
2916 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2917 ops into methods of process_target.
2919 * target.h (struct process_stratum_target): Remove the target op.
2920 (class process_target): Add the target op.
2921 (target_breakpoint_kind_from_pc): Update the macro.
2922 (target_breakpoint_kind_from_current_state): Update the macro.
2923 (default_breakpoint_kind_from_pc): Remove declaration.
2924 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2925 (process_target::breakpoint_kind_from_pc): ... this.
2926 (process_target::breakpoint_kind_from_current_state): Define.
2928 Update the derived classes and callers below.
2930 * mem-break.cc (bp_size): Update.
2931 (bp_opcode): Update.
2932 * linux-low.cc (linux_target_ops): Update.
2933 (linux_wait_1): Update.
2934 (linux_breakpoint_kind_from_pc): Turn into ...
2935 (linux_process_target::breakpoint_kind_from_pc): ... this.
2936 (linux_sw_breakpoint_from_kind): Turn into ...
2937 (linux_process_target::sw_breakpoint_from_kind): ... this.
2938 (linux_breakpoint_kind_from_current_state): Turn into ...
2939 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2940 * linux-low.h (class linux_process_target): Update.
2941 * lynx-low.cc (lynx_target_ops): Update.
2942 (lynx_process_target::sw_breakpoint_from_kind): Define.
2943 * lynx-low.h (class lynx_process_target): Update.
2944 * nto-low.cc (nto_target_ops): Update.
2945 (nto_sw_breakpoint_from_kind): Turn into ...
2946 (nto_process_target::sw_breakpoint_from_kind): ... this.
2947 * nto-low.h (class nto_process_target): Update.
2948 * win32-low.cc (win32_target_ops): Update.
2949 (win32_sw_breakpoint_from_kind): Turn into ...
2950 (win32_process_target::sw_breakpoint_from_kind): ... this.
2951 * win32-low.h (class win32_process_target): Update.
2953 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2955 Turn process_stratum_target's multifs_open, multifs_readlink,
2956 multifs_unlink ops into methods of process_target.
2958 * target.h (struct process_stratum_target): Remove the target ops.
2959 (class process_target): Add the target ops. Also add
2961 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2963 (process_target::supports_multifs): Define.
2964 (process_target::multifs_open): Define.
2965 (process_target::multifs_readlink): Define.
2966 (process_target::multifs_unlink): Define.
2968 Update the derived classes and callers below.
2970 * hostio.cc (handle_setfs): Update.
2971 (handle_open): Update.
2972 (handle_unlink): Update.
2973 (handle_readlink): Update.
2974 * linux-low.cc (linux_target_ops): Update.
2975 (linux_process_target::supports_multifs): Define.
2976 (linux_process_target::multifs_open): Define.
2977 (linux_process_target::multifs_readlink): Define.
2978 (linux_process_target::multifs_unlink): Define.
2979 * linux-low.h (class linux_process_target): Update.
2980 * lynx-low.cc (lynx_target_ops): Update.
2981 * nto-low.cc (nto_target_ops): Update.
2982 * win32-low.cc (win32_target_ops): Update.
2984 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2986 Turn process_stratum_target's pid_to_exec_file op into a method
2989 * target.h (struct process_stratum_target): Remove the target op.
2990 (class process_target): Add the target op. Also add
2991 'supports_pid_to_exec_file'.
2992 * target.cc (process_target::pid_to_exec_file): Define.
2993 (process_target::supports_pid_to_exec_file): Define.
2995 Update the derived classes and callers below.
2997 * server.cc (handle_qxfer_exec_file): Update.
2998 (handle_query): Update.
2999 * linux-low.cc (linux_target_ops): Update.
3000 (linux_process_target::supports_pid_to_exec_file): Define.
3001 (linux_process_target::pid_to_exec_file): Define.
3002 * linux-low.h (class linux_process_target): Update.
3003 * lynx-low.cc (lynx_target_ops): Update.
3004 * nto-low.cc (nto_target_ops): Update.
3005 * win32-low.cc (win32_target_ops): Update.
3007 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3009 Turn process_stratum_target's supports_range_stepping op into a
3010 method of process_target.
3012 * target.h (struct process_stratum_target): Remove the target op.
3013 (class process_target): Add the target op.
3014 (target_supports_range_stepping): Update the macro.
3015 * target.cc (process_target::supports_range_stepping): Define.
3017 Update the derived classes and callers below.
3019 * linux-low.cc (linux_target_ops): Update.
3020 (linux_supports_range_stepping): Turn into ...
3021 (linux_process_target::supports_range_stepping): ... this.
3022 * linux-low.h (class linux_process_target): Update.
3023 * lynx-low.cc (lynx_target_ops): Update.
3024 * nto-low.cc (nto_target_ops): Update.
3025 * win32-low.cc (win32_target_ops): Update.
3027 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3029 Turn process_stratum_target's btrace-related ops (enable_btrace,
3030 disable_btrace, read_btrace, read_btrace_conf) into methods of
3033 * target.h (struct process_stratum_target): Remove the target ops.
3034 (class process_target): Add the target ops.
3035 (target_enable_btrace): Update.
3036 (target_disable_btrace): Update.
3037 (target_read_btrace): Update.
3038 (target_read_btrace_conf): Update.
3039 * target.cc (process_target::enable_btrace): Define.
3040 (process_target::disable_btrace): Define.
3041 (process_target::read_btrace): Define.
3042 (process_target::read_btrace_conf): Define.
3044 Update the derived classes and callers below.
3046 * linux-low.cc (linux_target_ops): Update.
3047 (linux_process_target:enable_btrace): Define as a wrapper around
3048 linux_enable_btrace.
3049 (linux_low_disable_btrace): Turn into ...
3050 (linux_process_target::disable_btrace): ... this.
3051 (linux_low_read_btrace): Turn into ...
3052 (linux_process_target::read_btrace): ... this.
3053 (linux_low_btrace_conf): Turn into ...
3054 (linux_process_target::read_btrace_conf): ... this.
3055 * linux-low.h (class linux_process_target): Update.
3056 * lynx-low.cc (lynx_target_ops): Update.
3057 * nto-low.cc (nto_target_ops): Update.
3058 * win32-low.cc (win32_target_ops): Update.
3060 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3062 Turn process_stratum_target's supports_agent op into a method of
3065 * target.h (struct process_stratum_target): Remove the target op.
3066 (class process_target): Add the target op.
3067 (target_supports_agent): Update the macro.
3068 * target.cc (process_target::supports_agent): Define.
3070 Update the derived classes and callers below.
3072 * linux-low.cc (linux_target_ops): Update.
3073 (linux_supports_agent): Turn into ...
3074 (linux_process_target::supports_agent): ... this.
3075 * linux-low.h (class linux_process_target): Update.
3076 * lynx-low.cc (lynx_target_ops): Update.
3077 * nto-low.cc (nto_target_ops): Update.
3078 * win32-low.cc (win32_target_ops): Update.
3080 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3082 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3083 method of process_target.
3085 * target.h (struct process_stratum_target): Remove the target op.
3086 (class process_target): Add the target op. Also add
3087 'supports_qxfer_libraries_svr4'.
3088 * target.cc (process_target::qxfer_libraries_svr4): Define.
3089 (process_target::supports_qxfer_libraries_svr4): Define.
3091 Update the derived classes and callers below.
3093 * server.cc (handle_qxfer_libraries_svr4): Update.
3094 (handle_query): Update.
3095 * linux-low.cc (linux_target_ops): Update.
3096 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3097 (linux_qxfer_libraries_svr4): Turn into ...
3098 (linux_process_target::qxfer_libraries_svr4): ... this.
3099 * linux-low.h (class linux_process_target): Update.
3100 * lynx-low.cc (lynx_target_ops): Update.
3101 * nto-low.cc (nto_target_ops): Update.
3102 * win32-low.cc (win32_target_ops): Update.
3104 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3106 Turn process_stratum_target's supports_disable_randomization op
3107 into a method of process_target.
3109 * target.h (struct process_stratum_target): Remove the target op.
3110 (class process_target): Add the target op.
3111 (target_supports_disable_randomization): Update the macro.
3112 * target.cc (process_target::supports_disable_randomization): Define.
3114 Update the derived classes and callers below.
3116 * linux-low.cc (linux_target_ops): Update.
3117 (linux_supports_disable_randomization): Turn into ...
3118 (linux_process_target::supports_disable_randomization): ... this.
3119 * linux-low.h (class linux_process_target): Update.
3120 * lynx-low.cc (lynx_target_ops): Update.
3121 * nto-low.cc (nto_target_ops): Update.
3122 * win32-low.cc (win32_target_ops): Update.
3124 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3126 Turn process_stratum_target's emit_ops op into a method of
3129 * target.h (struct process_stratum_target): Remove the target op.
3130 (class process_target): Add the target op.
3131 (target_emit_ops): Update the macro.
3132 * target.cc (process_target::emit_ops): Define.
3134 Update the derived classes and callers below.
3136 * linux-low.cc (linux_target_ops): Update.
3137 (linux_emit_ops): Turn into ...
3138 (linux_process_target::emit_ops): ... this.
3139 * linux-low.h (class linux_process_target): Update.
3140 * lynx-low.cc (lynx_target_ops): Update.
3141 * nto-low.cc (nto_target_ops): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3144 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3146 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3147 and get_min_fast_tracepoint_insn_len ops into methods of
3150 * target.h (struct process_stratum_target): Remove the target ops.
3151 (class process_target): Add the target ops. Also add
3152 'supports_fast_tracepoints'.
3153 (target_supports_fast_tracepoints): Update the macro.
3154 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3155 (install_fast_tracepoint_jump_pad): Update and rename the macro
3157 (target_install_fast_tracepoint_jump_pad): ... this.
3158 * target.cc (process_target::supports_fast_tracepoints): Define.
3159 (process_target::install_fast_tracepoint_jump_pad): Define.
3160 (process_target::get_min_fast_tracepoint_insn_len): Define.
3162 Update the derived classes and callers below.
3164 * tracepoint.cc (install_fast_tracepoint): Update.
3165 * linux-low.cc (linux_target_ops): Update.
3166 (linux_process_target::supports_fast_tracepoints): Define.
3167 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3168 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3169 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3170 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3171 * linux-low.h (class linux_process_target): Update.
3172 * lynx-low.cc (lynx_target_ops): Update.
3173 * nto-low.cc (nto_target_ops): Update.
3174 * win32-low.cc (win32_target_ops): Update.
3176 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3178 Turn process_stratum_target's stabilize_threads op into a
3179 method of process_target.
3181 * target.h (struct process_stratum_target): Remove the target op.
3182 (class process_target): Add the target op.
3183 (target_stabilize_threads): Update the macro.
3184 * target.cc (process_target::stabilize_threads): Define.
3186 Update the derived classes and callers below.
3188 * server.cc (handle_status): Update.
3189 * tracepoint.cc (cmd_qtdp): Update.
3190 (cmd_qtstart): Update.
3191 * linux-low.cc (linux_target_ops): Update.
3192 (linux_stabilize_threads): Turn into ...
3193 (linux_process_target::stabilize_threads): ... this.
3194 (linux_wait_1): Update.
3195 * linux-low.h (class linux_process_target): Update.
3196 * lynx-low.cc (lynx_target_ops): Update.
3197 * nto-low.cc (nto_target_ops): Update.
3198 * win32-low.cc (win32_target_ops): Update.
3200 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3202 Turn process_stratum_target's pause_all and unpause_all ops
3203 into methods of process_target.
3205 * target.h (struct process_stratum_target): Remove the target ops.
3206 (class process_target): Add the target ops.
3207 (pause_all): Update the macro and rename to...
3208 (target_pause_all): ... this.
3209 (unpause_all): Update the macro and rename to...
3210 (target_unpause_all): ... this.
3211 * target.cc (process_target::pause_all): Define.
3212 (process_target::unpause_all): Define.
3214 Update the derived classes and callers below.
3216 * server.cc (handle_status): Update.
3217 * tracepoint.cc (clear_installed_tracepoints): Update.
3219 (cmd_qtstart): Update.
3220 (stop_tracing): Update.
3221 (cmd_qtstatus): Update.
3222 (upload_fast_traceframes): Update.
3223 (run_inferior_command): Update.
3224 * linux-low.cc (linux_target_ops): Update.
3225 (linux_pause_all): Turn into ...
3226 (linux_process_target::pause_all): ... this.
3227 (linux_unpause_all): Turn into ...
3228 (linux_process_target::unpause_all): ... this.
3229 (linux_process_target::prepare_to_access_memory): Update.
3230 (linux_process_target::done_accessing_memory): Update.
3231 * linux-low.h (class linux_process_target): Update.
3232 * lynx-low.cc (lynx_target_ops): Update.
3233 * nto-low.cc (nto_target_ops): Update.
3234 * win32-low.cc (win32_target_ops): Update.
3236 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3238 Turn process_stratum_target's get_tib_address op into a method of
3241 * target.h (struct process_stratum_target): Remove the target op.
3242 (class process_target): Add the target op. Also add
3243 'supports_get_tib_address'.
3244 * target.cc (process_target::get_tib_address): Define.
3245 (process_target::supports_get_tib_address): Define.
3247 Update the derived classes and callers below.
3249 * server.cc (handle_query): Update.
3250 * linux-low.cc (win32_target_ops): Update.
3251 * lynx-low.cc (lynx_target_ops): Update.
3252 * nto-low.cc (nto_target_ops): Update.
3253 * win32-low.cc (win32_target_ops): Update.
3254 (win32_process_target::supports_get_tib_address): Define.
3255 (win32_get_tib_address): Turn into ...
3256 (win32_process_target::get_tib_address): ... this.
3257 * win32-low.h (class win32_process_target): Update.
3259 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3261 Turn process_stratum_target's thread_stopped op into a method of
3264 * target.h (struct process_stratum_target): Remove the target op.
3265 (class process_target): Add the target op. Also add
3266 'supports_thread_stopped'.
3267 (target_thread_stopped): Update the macro.
3268 * target.cc (process_target::thread_stopped): Define.
3269 (process_target::supports_thread_stopped): Define.
3270 (prepare_to_access_memory): Update.
3272 Update the derived classes and callers below.
3274 * server.cc (queue_stop_reply_callback): Update.
3275 * linux-low.cc (linux_target_ops): Update.
3276 (linux_process_target::supports_thread_stopped): Define.
3277 (linux_thread_stopped): Turn into ...
3278 (linux_process_target::thread_stopped): ... this.
3279 * linux-low.h (class linux_process_target): Update.
3280 * lynx-low.cc (lynx_target_ops): Update.
3281 * nto-low.cc (nto_target_ops): Update.
3282 * win32-low.cc (win32_target_ops): Update.
3284 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3286 Turn process_stratum_target's read_pc and write_pc ops into
3287 methods of process_target.
3289 * target.h (struct process_stratum_target): Remove the target ops.
3290 (class process_target): Add the target ops.
3291 * target.cc (process_target::read_pc): Define.
3292 (process_target::write_pc): Define.
3294 Update the derived classes and callers below.
3296 * regcache.cc (regcache_read_pc): Update.
3297 (regcache_write_pc): Update.
3298 * linux-low.cc (linux_target_ops): Update.
3299 (linux_read_pc): Turn into ...
3300 (linux_process_target::read_pc): ... this.
3301 (linux_write_pc): Turn into ...
3302 (linux_process_target::write_pc): ... this.
3303 * linux-low.h (class linux_process_target): Update.
3304 * lynx-low.cc (lynx_target_ops): Update.
3305 * nto-low.cc (nto_target_ops): Update.
3306 * win32-low.cc (win32_target_ops): Update.
3308 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3310 Turn process_stratum_target's supports_tracepoints op into a
3311 method of process_target.
3313 * target.h (struct process_stratum_target): Remove the target op.
3314 (class process_target): Add the target op.
3315 (target_supports_tracepoints): Update the macro.
3316 * target.cc (process_target::supports_tracepoints): Define.
3318 Update the derived classes and callers below.
3320 * linux-low.cc (linux_target_ops): Update.
3321 (linux_supports_tracepoints): Turn into ...
3322 (linux_process_target::supports_tracepoints): ... this.
3323 * linux-low.h (class linux_process_target): Update.
3324 * lynx-low.cc (lynx_target_ops): Update.
3325 * nto-low.cc (nto_target_ops): Update.
3326 * win32-low.cc (win32_target_ops): Update.
3328 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3330 Turn process_stratum_target's process_qsupported op into a method
3333 * target.h (struct process_stratum_target): Remove the target op.
3334 (class process_target): Add the target op.
3335 (target_process_qsupported): Update the macro.
3336 * target.cc (process_target::process_qsupported): Define.
3338 Update the derived classes and callers below.
3340 * linux-low.cc (linux_target_ops): Update.
3341 (linux_process_qsupported): Turn into ...
3342 (linux_process_target::process_qsupported): ... this.
3343 * linux-low.h (class linux_process_target): Update.
3344 * lynx-low.cc (lynx_target_ops): Update.
3345 * nto-low.cc (nto_target_ops): Update.
3346 * win32-low.cc (win32_target_ops): Update.
3348 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3350 Turn process_stratum_target's read_loadmap op into a method of
3353 * target.h (struct process_stratum_target): Remove the target op.
3354 (class process_target): Add the target op. Also add
3355 'supports_read_loadmap'.
3356 * target.cc (process_target::read_loadmap): Define.
3357 (process_target::supports_read_loadmap): Define.
3359 Update the derived classes and callers below.
3361 * server.cc (handle_qxfer_fdpic): Update.
3362 (handle_query): Update.
3363 * linux-low.cc (linux_target_ops): Update.
3364 (linux_process_target::supports_read_loadmap): Define.
3365 (linux_read_loadmap): Turn into ...
3366 (linux_process_target::read_loadmap): ... this.
3367 * linux-low.h (class linux_process_target): Update.
3368 * lynx-low.cc (lynx_target_ops): Update.
3369 * nto-low.cc (nto_target_ops): Update.
3370 * win32-low.cc (win32_target_ops): Update.
3372 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3374 Turn process_stratum_target's core_of_thread op into a method of
3377 * target.h (struct process_stratum_target): Remove the target op.
3378 (class process_target): Add the target op.
3379 (target_core_of_thread): Update the macro.
3380 * target.cc (process_target::core_of_thread): Define.
3382 Update the derived classes and callers below.
3384 * linux-low.cc (linux_target_ops): Update.
3385 (linux_process_target::core_of_thread): Define.
3386 * linux-low.h (class linux_process_target): Update.
3387 * lynx-low.cc (lynx_target_ops): Update.
3388 * nto-low.cc (nto_target_ops): Update.
3389 * win32-low.cc (win32_target_ops): Update.
3391 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3393 Turn process_stratum_target's handle_monitor_command op into a
3394 method of process_target.
3396 * target.h (struct process_stratum_target): Remove the target op.
3397 (class process_target): Add the target op.
3398 (target_handle_monitor_command): Update the macro.
3399 * target.cc (process_target::handle_monitor_command): Define.
3401 Update the derived classes and callers below.
3403 * server.cc (handle_query): Update.
3404 * linux-low.cc (linux_target_ops): Update.
3405 (linux_process_target::handle_monitor_command): Define.
3406 * linux-low.h (class linux_process_target): Update.
3407 * lynx-low.cc (lynx_target_ops): Update.
3408 * nto-low.cc (nto_target_ops): Update.
3409 * win32-low.cc (win32_target_ops): Update.
3411 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3413 Turn process_stratum_target's handle_new_gdb_connection op into a
3414 method of process_target.
3416 * target.h (struct process_stratum_target): Remove the target op.
3417 (class process_target): Add the target op.
3418 (target_handle_new_gdb_connection): Update the macro.
3419 * target.cc (process_target::handle_new_gdb_connection): Define.
3421 Update the derived classes and callers below.
3423 * linux-low.cc (linux_target_ops): Update.
3424 (linux_handle_new_gdb_connection): Turn into ...
3425 (linux_process_target::handle_new_gdb_connection): ... this.
3426 * linux-low.h (class linux_process_target): Update.
3427 * lynx-low.cc (lynx_target_ops): Update.
3428 * nto-low.cc (nto_target_ops): Update.
3429 * win32-low.cc (win32_target_ops): Update.
3431 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3433 Turn process_stratum_target's supports_fork_events,
3434 supports_vfork_events, and supports_exec_events ops into methods
3437 * target.h (struct process_stratum_target): Remove the target ops.
3438 (class process_target): Add the target ops.
3439 (target_supports_fork_events): Update the macro.
3440 (target_supports_vfork_events): Update the macro.
3441 (target_supports_exec_events): Update the macro.
3442 * target.cc (process_target::supports_fork_events): Define.
3443 (process_target::supports_vfork_events): Define.
3444 (process_target::supports_exec_events): Define.
3446 Update the derived classes and callers below.
3448 * linux-low.cc (linux_target_ops): Update.
3449 (linux_supports_fork_events): Turn into ...
3450 (linux_process_target::supports_fork_events): ... this.
3451 (linux_supports_vfork_events): Turn into ...
3452 (linux_process_target::supports_vfork_events): ... this.
3453 (linux_supports_exec_events): Turn into ...
3454 (linux_process_target::supports_exec_events): ... this.
3455 * linux-low.h (class linux_process_target): Update.
3456 * lynx-low.cc (lynx_target_ops): Update.
3457 * nto-low.cc (nto_target_ops): Update.
3458 * win32-low.cc (win32_target_ops): Update.
3460 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3462 Turn process_stratum_target's supports_multi_process op into a
3463 method of process_target.
3465 * target.h (struct process_stratum_target): Remove the target op.
3466 (class process_target): Add the target op.
3467 * target.cc (process_target::supports_multi_process): Define.
3468 (target_supports_multi_process): Update.
3470 Update the derived classes and callers below.
3472 * linux-low.cc (linux_target_ops): Update.
3473 (linux_supports_multi_process): Turn into ...
3474 (linux_process_target::supports_multi_process): ... this.
3475 * linux-low.h (class linux_process_target): Update.
3476 * lynx-low.cc (lynx_target_ops): Update.
3477 * nto-low.cc (nto_target_ops): Update.
3478 * win32-low.cc (win32_target_ops): Update.
3480 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3482 Turn process_stratum_target's supports_non_stop, async, and
3483 start_non_stop ops into methods of process_target.
3485 * target.h (struct process_stratum_target): Remove the target ops.
3486 (class process_target): Add the target ops.
3487 (target_supports_non_stop): Update the macro.
3488 (target_async): Update the macro.
3489 (start_non_stop): Remove declaration.
3490 * target.cc (process_target::supports_non_stop): Define.
3491 (process_target::async): Define.
3492 (process_target::start_non_stop): Define.
3493 (start_non_stop): Remove.
3495 Update the derived classes and callers below.
3497 * server.cc (handle_qxfer_siginfo): Update.
3498 (handle_query): Update.
3499 * linux-low.cc (linux_target_ops): Update.
3500 (linux_supports_non_stop): Turn into ...
3501 (linux_process_target::supports_non_stop): ... this.
3502 (linux_async): Turn into ...
3503 (linux_process_target::async): ... this.
3504 (linux_start_non_stop): Turn into ...
3505 (linux_process_target::start_non_stop): ... this.
3506 * linux-low.h (class linux_process_target): Update.
3507 * lynx-low.cc (lynx_target_ops): Update.
3508 * nto-low.cc (nto_target_ops): Update.
3509 (nto_supports_non_stop): Remove; rely on the default behavior
3511 * win32-low.cc (win32_target_ops): Update.
3513 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3515 Turn process_stratum_target's qxfer_siginfo op into a method of
3518 * target.h (struct process_stratum_target): Remove the target op.
3519 (class process_target): Add the target op. Also add
3520 'supports_qxfer_siginfo'.
3521 * target.cc (process_target::qxfer_siginfo): Define.
3522 (process_target::supports_qxfer_siginfo): Define.
3524 Update the derived classes and callers below.
3526 * server.cc (handle_qxfer_siginfo): Update.
3527 (handle_query): Update.
3528 * linux-low.cc (linux_target_ops): Update.
3529 (linux_process_target::supports_qxfer_siginfo): Define.
3530 (linux_xfer_siginfo): Turn into ...
3531 (linux_process_target::qxfer_siginfo): ... this.
3532 * linux-low.h (class linux_process_target): Update.
3533 * lynx-low.cc (lynx_target_ops): Update.
3534 * nto-low.cc (nto_target_ops): Update.
3535 * win32-low.cc (win32_target_ops): Update.
3537 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3539 Turn process_stratum_target's qxfer_osdata op into a method of
3542 * target.h (struct process_stratum_target): Remove the target op.
3543 (class process_target): Add the target op. Also add
3544 'supports_qxfer_osdata'.
3545 * target.cc (process_target::qxfer_osdata): Define.
3546 (process_target::supports_qxfer_osdata): Define.
3548 Update the derived classes and callers below.
3550 * server.cc (handle_qxfer_osdata): Update.
3551 (handle_query): Update.
3552 * linux-low.cc (linux_target_ops): Update.
3553 (linux_process_target::supports_qxfer_osdata): Define.
3554 (linux_qxfer_osdata): Turn into ...
3555 (linux_process_target::qxfer_osdata): ... this.
3556 * linux-low.h (class linux_process_target): Update.
3557 * lynx-low.cc (lynx_target_ops): Update.
3558 * nto-low.cc (nto_target_ops): Update.
3559 * win32-low.cc (win32_target_ops): Update.
3561 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3563 Turn process_stratum_target's hostio_last_error op into a
3564 method of process_target.
3566 * target.h (struct process_stratum_target): Remove the target op.
3567 (class process_target): Add the target op.
3568 * target.cc: Add "hostio.h" to includes.
3569 (process_target::hostio_last_error): Define.
3571 Update the derived classes and callers below.
3573 * hostio.cc (hostio_error): Update.
3574 * linux-low.cc: Remove "hostio.h" from includes.
3575 (linux_target_ops): Update.
3576 * lynx-low.cc (lynx_target_ops): Update.
3577 * nto-low.cc (nto_target_ops): Update.
3578 * win32-low.h (class win32_process_target): Update.
3579 * win32-low.cc (win32_target_ops): Update.
3580 (wince_hostio_last_error): Turn into ...
3581 (win32_process_target::hostio_last_error): ... this.
3583 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3585 Turn process_stratum_target's get_tls_address op into a method of
3588 * target.h (struct process_stratum_target): Remove the target op.
3589 (class process_target): Add the target op. Also add
3590 'supports_get_tls_address'.
3591 * target.cc (process_target::get_tls_address): Define.
3592 (process_target::supports_get_tls_address): Define.
3594 Update the derived classes and callers below.
3596 * server.cc (handle_query): Update.
3597 * linux-low.cc (linux_target_ops): Update.
3598 (linux_process_target::supports_get_tls_address): Define.
3599 (linux_process_target::get_tls_address): Define.
3600 * linux-low.h (class linux_process_target): Update.
3601 * lynx-low.cc (lynx_target_ops): Update.
3602 * nto-low.cc (nto_target_ops): Update.
3603 * win32-low.cc (win32_target_ops): Update.
3605 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3607 Turn process_stratum_target's read_offsets op into a method of
3610 * target.h (struct process_stratum_target): Remove the target op.
3611 (class process_target): Add the target op. Also add
3612 'supports_read_offsets'.
3613 * target.cc (process_target::read_offsets): Define.
3614 (process_target::supports_read_offsets): Define.
3616 Update the derived classes and callers below.
3618 * server.cc (handle_query): Update.
3619 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3620 (linux_target_ops): Update.
3621 (linux_process_target::supports_read_offsets): Define.
3622 (linux_read_offsets): Turn into ...
3623 (linux_process_target::read_offsets): ... this.
3624 * linux-low.h (class linux_process_target): Update.
3625 * lynx-low.cc (lynx_target_ops): Update.
3626 * nto-low.cc (nto_target_ops): Update.
3627 * win32-low.cc (win32_target_ops): Update.
3629 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3631 Turn process_stratum_target's stopped_by_watchpoint and
3632 stopped_data_address ops into methods of process_target.
3634 * target.h (struct process_stratum_target): Remove the target ops.
3635 (class process_target): Add the target ops.
3636 * target.cc (process_target::stopped_by_watchpoint): Define.
3637 (process_target::stopped_data_address): Define.
3639 Update the derived classes and callers below.
3641 * remote-utils.cc (prepare_resume_reply): Update.
3642 * linux-low.cc (linux_target_ops): Update.
3643 (linux_stopped_by_watchpoint): Turn into ...
3644 (linux_process_target::stopped_by_watchpoint): ... this.
3645 (linux_stopped_data_address): Turn into ...
3646 (linux_process_target::stopped_data_address): ... this.
3647 * linux-low.h (class linux_process_target): Update.
3648 * lynx-low.cc (lynx_target_ops): Update.
3649 * nto-low.cc (nto_target_ops): Update.
3650 (nto_stopped_by_watchpoint): Turn into ...
3651 (nto_process_target::stopped_by_watchpoint): ... this.
3652 (nto_stopped_data_address): Turn into ...
3653 (nto_process_target::stopped_data_address): ... this.
3654 * nto-low.h (class nto_process_target): Update.
3655 * win32-low.cc (win32_target_ops): Update.
3656 (win32_stopped_by_watchpoint): Turn into ...
3657 (win32_process_target::stopped_by_watchpoint): ... this.
3658 (win32_stopped_data_address): Turn into ...
3659 (win32_process_target::stopped_data_address): ... this.
3660 * win32-low.h (class win32_process_target): Update.
3662 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3664 Turn process_stratum_target's supports_hardware_single_step op into
3665 a method of process_target.
3667 * target.h (struct process_stratum_target): Remove the target op.
3668 (class process_target): Add the target op.
3669 (target_supports_hardware_single_step): Update the macro.
3670 (target_can_do_hardware_single_step): Remove declaration.
3671 * target.cc (process_target::supports_hardware_single_step): Define.
3672 (target_can_do_hardware_single_step): Remove.
3674 Update the derived classes and callers below.
3676 * linux-low.h (class linux_process_target): Update.
3677 * linux-low.cc (linux_target_ops): Update.
3678 (linux_supports_hardware_single_step): Turn into ...
3679 (linux_process_target::supports_hardware_single_step): ... this.
3680 * lynx-low.h (class lynx_process_target): Update.
3681 * lynx-low.cc (lynx_target_ops): Update.
3682 (lynx_process_target::supports_hardware_single_step): Define.
3683 * nto-low.h (class nto_process_target): Update.
3684 * nto-low.cc (nto_target_ops): Update.
3685 (nto_process_target::supports_hardware_single_step): Define.
3686 * win32-low.h (class win32_process_target): Update.
3687 * win32-low.cc (win32_target_ops): Update.
3688 (win32_process_target::supports_hardware_single_step): Define.
3690 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3692 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3693 ops into methods of process_target.
3695 * target.h (struct process_stratum_target): Remove the target ops.
3696 (class process_target): Add the target ops.
3697 (target_stopped_by_hw_breakpoint): Update the macro.
3698 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3699 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3700 (process_target::supports_stopped_by_hw_breakpoint): Define.
3702 Update the derived classes and callers below.
3704 * linux-low.cc (linux_target_ops): Update.
3705 (linux_stopped_by_hw_breakpoint): Turn into ...
3706 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3707 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3708 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3709 * linux-low.h (class linux_process_target): Update.
3710 * lynx-low.cc (lynx_target_ops): Update.
3711 * nto-low.cc (nto_target_ops): Update.
3712 * win32-low.cc (win32_target_ops): Update.
3714 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3716 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3717 ops into methods of process_target.
3719 * target.h (struct process_stratum_target): Remove the target ops.
3720 (class process_target): Add the target ops.
3721 (target_stopped_by_sw_breakpoint): Update the macro.
3722 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3723 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3724 (process_target::supports_stopped_by_sw_breakpoint): Define.
3726 Update the derived classes and callers below.
3728 * linux-low.cc (linux_target_ops): Update.
3729 (linux_stopped_by_sw_breakpoint): Turn into ...
3730 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3731 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3732 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3733 * linux-low.h (class linux_process_target): Update.
3734 * lynx-low.cc (lynx_target_ops): Update.
3735 * nto-low.cc (nto_target_ops): Update.
3736 * win32-low.cc (win32_target_ops): Update.
3738 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3740 Turn process_stratum_target's insert_point and remove_point ops
3741 into methods of process_target.
3743 * target.h (struct process_stratum_target): Remove the target ops.
3744 (class process_target): Add the target ops.
3745 * target.cc (process_target::insert_point): Define.
3746 (process_target::remove_point): Define.
3748 Update the derived classes and callers below.
3750 * mem-break.cc (set_raw_breakpoint_at): Update.
3751 (delete_raw_breakpoint): Update.
3752 (uninsert_raw_breakpoint): Update.
3753 (reinsert_raw_breakpoint): Update.
3754 * linux-low.cc (linux_target_ops): Update.
3755 (linux_insert_point): Turn into ...
3756 (linux_process_target::insert_point): ... this.
3757 (linux_remove_point): Turn into ...
3758 (linux_process_target::remove_point): ... this.
3759 * linux-low.h (class linux_process_target): Update.
3760 * lynx-low.cc (lynx_target_ops): Update.
3761 * nto-low.cc (nto_target_ops): Update.
3762 (nto_insert_point): Turn into ...
3763 (nto_process_target::insert_point): ... this.
3764 (nto_remove_point): Turn into ...
3765 (nto_process_target::remove_point): ... this.
3766 * nto-low.h (class nto_process_target): Update.
3767 * win32-low.cc (win32_target_ops): Update.
3768 (win32_insert_point): Turn into ...
3769 (win32_process_target::insert_point): ... this.
3770 (win32_remove_point): Turn into ...
3771 (win32_process_target::remove_point): ... this.
3772 * win32-low.h (class win32_process_target): Update.
3774 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3776 Turn process_stratum_target's supports_z_point_type op into a
3777 method of process_target.
3779 * target.h (struct process_stratum_target): Remove the target op.
3780 (class process_target): Add the target op.
3781 * target.cc (process_target::supports_z_point_type): Define.
3783 Update the derived classes and callers below.
3785 * mem-break.cc (z_type_supported): Update.
3786 * linux-low.cc (linux_target_ops): Update.
3787 (linux_supports_z_point_type): Turn into ...
3788 (linux_process_target::supports_z_point_type): ... this.
3789 * linux-low.h (class linux_process_target): Update.
3790 * lynx-low.cc (lynx_target_ops): Update.
3791 * nto-low.cc (nto_target_ops): Update.
3792 (nto_supports_z_point_type): Turn into ...
3793 (nto_process_target::supports_z_point_type): ... this.
3794 * nto-low.h (class nto_process_target): Update.
3795 * win32-low.cc (win32_target_ops): Update.
3796 (win32_supports_z_point_type): Turn into ...
3797 (win32_process_target::supports_z_point_type): ... this.
3798 * win32-low.h (class win32_process_target): Update.
3800 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3802 Turn process_stratum_target's read_auxv op into a method of
3805 * target.h (class process_stratum_target): Remove the target op.
3806 (struct process_target): Add the target op. Also add
3807 'supports_read_auxv'.
3808 * target.cc (process_target::read_auxv): Define.
3809 (process_target::supports_read_auxv): Define.
3811 Update the derived classes and callers below.
3813 * server.cc (handle_qxfer_auxv): Update.
3814 (handle_query): Update.
3815 * linux-low.cc (linux_target_ops): Update.
3816 (linux_process_target::supports_read_auxv): Define.
3817 (linux_read_auxv): Turn into ...
3818 (linux_process_target::read_auxv): ... this.
3819 * linux-low.h (class linux_process_target): Update.
3820 * lynx-low.cc (lynx_target_ops): Update.
3821 * nto-low.cc (nto_target_ops): Update.
3822 (nto_process_target::supports_read_auxv): Define.
3823 (nto_read_auxv): Turn into ...
3824 (nto_process_target::read_auxv): ... this.
3825 * nto-low.h (class nto_process_target): Update.
3826 * win32-low.cc (win32_target_ops): Update.
3828 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3830 Turn process_stratum_target's request_interrupt op into a method of
3833 * target.h (struct process_stratum_target): Remove the target op.
3834 (class process_target): Add the target op.
3836 Update the derived classes and callers below.
3838 * remote-utils.cc (putpkt_binary_1): Update.
3839 (input_interrupt): Update.
3841 * server.cc (handle_v_requests): Update.
3842 * linux-low.cc (linux_target_ops): Update.
3843 (linux_request_interrupt): Turn into ...
3844 (linux_process_target::request_interrupt): ... this.
3845 * linux-low.h (class linux_process_target): Update.
3846 * lynx-low.cc (lynx_target_ops): Update.
3847 (lynx_request_interrupt): Turn into ...
3848 (lynx_process_target::request_interrupt): ... this.
3849 * lynx-low.h (class lynx_process_target): Update.
3850 * nto-low.cc (nto_target_ops): Update.
3851 (nto_request_interrupt): Turn into ...
3852 (nto_process_target::request_interrupt): ... this.
3853 * nto-low.h (class nto_process_target): Update.
3854 * win32-low.cc (win32_target_ops): Update.
3855 (win32_request_interrupt): Turn into ...
3856 (win32_process_target::request_interrupt): ... this.
3857 * win32-low.h (class win32_process_target): Update.
3859 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3861 Turn process_stratum_target's look_up_symbols op into a method of
3864 * target.h (struct process_stratum_target): Remove the target op.
3865 (class process_target): Add the target op.
3866 * target.cc (process_target::look_up_symbols): Define.
3868 Update the derived classes and callers below.
3870 * server.cc (handle_query): Update.
3871 * linux-low.cc (linux_target_ops): Update.
3872 (linux_look_up_symbols): Turn into ...
3873 (linux_process_target::look_up_symbols): ... this.
3874 * linux-low.h (class linux_process_target): Update.
3875 * lynx-low.cc (lynx_target_ops): Update.
3876 * nto-low.cc (nto_target_ops): Update.
3877 * win32-low.cc (win32_target_ops): Update.
3879 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3881 Turn process_stratum_target's read_memory and write_memory
3882 ops into methods of process_target.
3884 * target.h (struct process_stratum_target): Remove the target ops.
3885 (class process_target): Add the target ops.
3887 Update the derived classes and callers below.
3889 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3890 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3891 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3892 (arm_get_syscall_trapinfo): Update.
3893 * linux-cris-low.cc (cris_breakpoint_at): Update.
3894 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3895 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3896 * linux-mips-low.cc (mips_breakpoint_at): Update.
3897 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3898 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3899 * linux-sh-low.cc (sh_breakpoint_at): Update.
3900 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3901 (sparc_store_gregset_from_stack): Update.
3902 (sparc_breakpoint_at): Update.
3903 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3904 * linux-tile-low.cc (tile_breakpoint_at): Update.
3905 * linux-x86-low.cc (x86_breakpoint_at): Update.
3906 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3907 * mem-brea.cc (insert_memory_breakpoint): Update.
3908 (validate_inserted_breakpoint): Update.
3909 * target.cc (read_inferior_memory): Update.
3910 (target_write_memory): Update.
3911 * linux-low.cc (linux_target_ops): Update.
3912 (linux_read_memory): Make a wrapper around the read_memory target
3914 (linux_process_target::read_memory): Rename from linux_read_memory.
3915 (linux_write_memory): Turn into ...
3916 (linux_process_target::write_memory): ... this.
3917 * linux-low.h (class linux_process_target): Update.
3918 * lynx-low.cc (lynx_target_ops): Update.
3919 (lynx_read_memory): Turn into ...
3920 (lynx_process_target::read_memory): ... this.
3921 (lynx_write_memory): Turn into ...
3922 (lynx_process_target::write_memory): ... this.
3923 * lynx-low.h (class lynx_process_target): Update.
3924 * nto-low.cc (nto_target_ops): Update.
3925 (nto_read_memory): Turn into ...
3926 (nto_process_target::read_memory): ... this.
3927 (nto_write_memory): Turn into ...
3928 (nto_process_target::write_memory): ... this.
3929 * nto-low.h (class nto_process_target): Update.
3930 * win32-low.cc (win32_target_ops): Update.
3931 (win32_read_inferior_memory): Turn into ...
3932 (win32_process_target::read_memory): ... this.
3933 (win32_write_inferior_memory): Turn into ...
3934 (win32_process_target::write_memory): ... this.
3935 * win32-low.h (class win32_process_target): Update.
3937 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3939 Turn process_stratum_target's prepare_to_access_memory and
3940 done_accessing_memory ops into methods of process_target.
3942 * target.h (struct process_stratum_target): Remove the target ops.
3943 (class process_target): Add the target ops.
3944 * target.cc (process_target::prepare_to_access_memory): Define.
3945 (process_target::done_accessing_memory): Define.
3946 (prepare_to_access_memory): Update.
3947 (done_accessing_memory): Update.
3949 Update the derived classes and callers below.
3951 * linux-low.cc (linux_target_ops): Update.
3952 (linux_prepare_to_access_memory): Turn into ...
3953 (linux_process_target::prepare_to_access_memory): ... this.
3954 (linux_done_accessing_memory): Turn into ...
3955 (linux_process_target::done_accessing_memory): ... this.
3956 * linux-low.h (class linux_process_target): Update.
3957 * lynx-low.cc (lynx_target_ops): Update.
3958 * nto-low.cc (nto_target_ops): Update.
3959 * win32-low.cc (win32_target_ops): Update.
3961 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3963 Turn process_stratum_target's fetch_registers and store_registers
3964 ops into methods of process_target.
3966 * target.h (struct process_stratum_target): Remove the target ops.
3967 (class process_target): Add the target ops.
3968 (fetch_inferior_registers): Update the macro.
3969 (store_inferior_registers): Update the macro.
3971 Update the derived classes and callers below.
3973 * linux-low.cc (linux_target_ops): Update.
3974 (linux_fetch_registers): Turn into ...
3975 (linux_process_target::fetch_registers): ... this.
3976 (linux_store_registers): Turn into ...
3977 (linux_process_target::store_registers): ... this.
3978 * linux-low.h (class linux_process_target): Update.
3979 * lynx-low.cc (lynx_target_ops): Update.
3980 (lynx_fetch_registers): Turn into ...
3981 (lynx_process_target::fetch_registers): ... this.
3982 (lynx_store_registers): Turn into ...
3983 (lynx_process_target::store_registers): ... this.
3984 * lynx-low.h (class lynx_process_target): Update.
3985 * nto-low.cc (nto_target_ops): Update.
3986 (nto_fetch_registers): Turn into ...
3987 (nto_process_target::fetch_registers): ... this.
3988 (nto_store_registers): Turn into ...
3989 (nto_process_target::store_registers): ... this.
3990 * nto-low.h (class nto_process_target): Update.
3991 * win32-low.cc (win32_target_ops): Update.
3992 (win32_fetch_inferior_registers): Turn into ...
3993 (win32_process_target::fetch_registers): ... this.
3994 (win32_store_inferior_registers): Turn into ...
3995 (win32_process_target::store_registers): ... this.
3996 * win32-low.h (class win32_process_target): Update.
3998 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4000 Turn process_stratum_target's wait op into a method of
4003 * target.h (struct process_stratum_target): Remove the target op.
4004 (class process_target): Add the target op.
4006 Update the derived classes and callers below.
4008 * target.cc (target_wait): Update.
4009 * linux-low.cc (linux_target_ops): Update.
4010 (linux_wait): Turn into ...
4011 (linux_process_target::wait): ... this.
4012 * linux-low.h (class linux_process_target): Update.
4013 * lynx-low.cc (lynx_target_ops): Update.
4014 (lynx_wait): Turn into ...
4015 (lynx_process_target::wait): ... this.
4016 * lynx-low.h (class lynx_process_target): Update.
4017 * nto-low.cc (nto_target_ops): Update.
4018 (nto_wait): Turn into ...
4019 (nto_process_target::wait): ... this.
4020 * nto-low.h (class nto_process_target): Update.
4021 * win32-low.cc (win32_target_ops): Update.
4022 (win32_wait): Turn into ...
4023 (win32_process_target::wait): ... this.
4024 (do_initial_child_stuff): Update.
4025 * win32-low.h (class win32_process_target): Update.
4027 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4029 Turn process_stratum_target's resume op into a method of
4032 * target.h (struct process_stratum_target): Remove the target op.
4033 (class process_target): Add the target op.
4035 Update the derived classes and callers below.
4037 * server.cc (resume): Update.
4038 * target.cc (target_stop_and_wait): Update.
4039 (target_continue_no_signal): Update.
4040 (target_continue): Update.
4041 * linux-low.cc (linux_target_ops): Update.
4042 (linux_resume): Turn into ...
4043 (linux_process_target::resume): ... this.
4044 * linux-low.h (class linux_process_target): Update.
4045 * lynx-low.cc (lynx_target_ops): Update.
4046 (lynx_resume): Turn into ...
4047 (lynx_process_target::resume): ... this.
4048 * lynx-low.h (class lynx_process_target): Update.
4049 * nto-low.cc (nto_target_ops): Update.
4050 (nto_resume): Turn into ...
4051 (nto_process_target::resume): ... this.
4052 * nto-low.h (class nto_process_target): Update.
4053 * win32-low.cc (win32_target_ops): Update.
4054 (win32_resume): Turn into ...
4055 (win32_process_target::resume): ... this.
4056 (win32_process_target::detach): Update.
4057 (do_initial_child_stuff): Update.
4058 * win32-low.h (class win32_process_target): Update.
4060 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4062 Turn process_stratum_target's thread_alive op into a method of
4065 * target.h (struct process_stratum_target): Remove the target op.
4066 (class process_target): Add the target op.
4067 (mythread_alive): Update the macro.
4069 Update the derived classes and callers below.
4071 * linux-low.cc (linux_target_ops): Update.
4072 (linux_thread_alive): Turn into ...
4073 (linux_process_target::thread_alive): ... this.
4074 (wait_for_sigstop): Update.
4075 * linux-low.h (class linux_process_target): Update.
4076 * lynx-low.cc (lynx_target_ops): Update.
4077 (lynx_thread_alive): Turn into ...
4078 (lynx_process_target::thread_alive): ... this.
4079 * lynx-low.h (class lynx_process_target): Update.
4080 * nto-low.cc (nto_target_ops): Update.
4081 (nto_thread_alive): Turn into ...
4082 (nto_process_target::thread_alive): ... this.
4083 * nto-low.h (class nto_process_target): Update.
4084 * win32-low.cc (win32_target_ops): Update.
4085 (win32_thread_alive): Turn into ...
4086 (win32_process_target::thread_alive): ... this.
4087 * win32-low.h (class win32_process_target): Update.
4089 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4091 Turn process_stratum_target's join op into a method of
4094 * target.h (struct process_stratum_target): Remove the target op.
4095 (class process_target): Add the target op.
4096 (join_inferior): Update the macro.
4098 Update the derived classes and callers below.
4100 * linux-low.cc (linux_target_ops): Update.
4101 (linux_join): Turn into ...
4102 (linux_process_target::join): ... this.
4103 * linux-low.h (class linux_process_target): Update.
4104 * lynx-low.cc (lynx_target_ops): Update.
4105 (lynx_join): Turn into ...
4106 (lynx_process_target::join): ... this.
4107 * lynx-low.h (class lynx_process_target): Update.
4108 * nto-low.cc (nto_target_ops): Update.
4109 (nto_process_target::join): Define.
4110 * nto-low.h (class nto_process_target): Update.
4111 * win32-low.cc (win32_target_ops): Update.
4112 (win32_join): Turn into ...
4113 (win32_process_target::join): ... this.
4114 * win32-low.h (class win32_process_target): Update.
4116 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4118 Turn process_stratum_target's mourn op into a method of
4121 * target.h (struct process_stratum_target): Remove the target op.
4122 (class process_target): Add the target op.
4124 Update the derived classes and callers below.
4126 * target.cc (target_mourn_inferior): Update.
4127 * linux-low.cc (linux_target_ops): Update.
4128 (linux_mourn): Turn into ...
4129 (linux_process_target::mourn): ... this.
4130 (handle_extended_wait): Update.
4131 (linux_process_target::kill): Update.
4132 (linux_process_target::detach): Update.
4133 * linux-low.h (class linux_process_target): Update.
4134 * lynx-low.cc (lynx_target_ops): Update.
4135 (lynx_mourn): Turn into ...
4136 (lynx_process_target::mourn): ... this.
4137 * lynx-low.h (class lynx_process_target): Update.
4138 * nto-low.cc (nto_target_ops): Update.
4139 (nto_mourn): Turn into ...
4140 (nto_process_target::mourn): ... this.
4141 * nto-low.h (class nto_process_target): Update.
4142 * win32-low.cc (win32_target_ops): Update.
4143 (win32_mourn): Turn into ...
4144 (win32_process_target::mourn): ... this.
4145 * win32-low.h (class win32_process_target): Update.
4147 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4149 Turn process_stratum_target's detach op into a method of
4152 * target.h (struct process_stratum_target): Remove the target op.
4153 (class process_target): Add the target op.
4154 (detach_inferior): Update the macro.
4156 Update the derived classes and callers below.
4158 * linux-low.cc (linux_target_ops): Update.
4159 (linux_detach): Turn into ...
4160 (linux_process_target::detach): ... this.
4161 * linux-low.h (class linux_process_target): Update.
4162 * lynx-low.cc (lynx_target_ops): Update.
4163 (lynx_detach): Turn into ...
4164 (lynx_process_target::detach): ... this.
4165 * lynx-low.h (class lynx_process_target): Update.
4166 * nto-low.cc (nto_target_ops): Update.
4167 (nto_detach): Turn into ...
4168 (nto_process_target::detach): ... this.
4169 * nto-low.h (class nto_process_target): Update.
4170 * win32-low.cc (win32_target_ops): Update.
4171 (win32_detach): Turn into ...
4172 (win32_process_target::detach): ... this.
4173 * win32-low.h (class win32_process_target): Update.
4175 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4177 Turn process_stratum_target's kill op into a method of
4180 * target.h (struct process_stratum_target): Remove the target op.
4181 (class process_target): Add the target op.
4183 Update the derived classes and callers below.
4185 * target.cc (kill_inferior): Update.
4186 * linux-low.cc (linux_target_ops): Update.
4187 (linux_kill): Turn into ...
4188 (linux_process_target::kill): ... this.
4189 * linux-low.h (class linux_process_target): Update.
4190 * lynx-low.cc (lynx_target_ops): Update.
4191 (lynx_kill): Turn into ...
4192 (lynx_process_target::kill): ... this.
4193 * lynx-low.h (class lynx_process_target): Update.
4194 * nto-low.cc (nto_target_ops): Update.
4195 (nto_kill): Turn into ...
4196 (nto_process_target::kill): ... this.
4197 * nto-low.h (class nto_process_target): Update.
4198 * win32-low.cc (win32_target_ops): Update.
4199 (win32_kill): Turn into ...
4200 (win32_process_target::kill): ... this.
4201 * win32-low.h (class win32_process_target): Update.
4203 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4205 Turn process_stratum_target's attach op into a method of
4208 * target.h (struct process_stratum_target): Remove the target op.
4209 (class process_target): Add the target op.
4210 (myattach): Update the macro.
4212 Update the derived classes and callers below.
4214 * linux-low.cc (linux_target_ops): Update.
4215 (linux_attach): Turn into ...
4216 (linux_process_target::attach): ... this.
4217 * linux-low.h (class linux_process_target): Update.
4218 * lynx-low.cc (lynx_target_ops): Update.
4219 (lynx_attach): Turn into ...
4220 (lynx_process_target::attach): ... this.
4221 * lynx-low.h (class lynx_process_target): Update.
4222 * nto-low.cc (nto_target_ops): Update.
4223 (nto_attach): Turn into ...
4224 (nto_process_target::attach): ... this.
4225 * nto-low.h (class nto_process_target): Update.
4226 * win32-low.cc (win32_target_ops): Update.
4227 (win32_attach): Turn into ...
4228 (win32_process_target::attach): ... this.
4229 * win32-low.h (class win32_process_target): Update.
4231 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4233 Turn process_stratum_target's post_create_inferior op into a method
4236 * target.h (struct process_stratum_target): Remove the target op.
4237 (class process_target): Add the target op.
4238 (target_post_create_inferior): Update the macro.
4239 * target.cc (process_target::post_create_inferior): Define.
4241 Update the derived classes and callers below.
4243 * linux-low.cc (linux_target_ops): Update.
4244 (linux_post_create_inferior): Turn into ...
4245 (linux_process_target::post_create_inferior): ... this.
4246 * linux-low.h (class linux_process_target): Update.
4247 * lynx-low.cc (lynx_target_ops): Update.
4248 * nto-low.cc (nto_target_ops): Update.
4249 * win32-low.cc (win32_target_ops): Update.
4251 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4253 Turn process_stratum_target's create_inferior op into a method of
4256 * target.h (struct process_stratum_target): Remove the target op.
4257 (class process_target): Add the target op.
4258 (create_inferior): Rename the macro to ...
4259 (target_create_inferior): ... this.
4261 Update the derived classes and callers below.
4263 * server.cc (handle_v_run): Update.
4264 (captured_main): Update.
4265 (process_serial_event): Update.
4266 * linux-low.cc (linux_target_ops): Update.
4267 (linux_create_inferior): Turn into ...
4268 (linux_process_target::create_inferior): ... this.
4269 * linux-low.h (class linux_process_target): Update.
4270 * lynx-low.cc (lynx_target_ops): Update.
4271 (lynx_create_inferior): Turn into ...
4272 (lynx_process_target::create_inferior): ... this.
4273 * lynx-low.h (class lynx_process_target): Update.
4274 * nto-low.cc (nto_target_ops): Update.
4275 (nto_create_inferior): Turn into ...
4276 (nto_process_target::create_inferior): ... this.
4277 * nto-low.h (class nto_process_target): Update.
4278 * win32-low.cc (win32_target_ops): Update.
4279 (win32_create_inferior): Turn into ...
4280 (win32_process_target::create_inferior): ... this.
4281 * win32-low.h (class win32_process_target): Update.
4283 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4285 * target.h (class process_target): New class definition.
4286 (struct process_stratum_target) <pt>: New field with type
4288 * linux-low.h (class linux_process_target): Define as a derived
4289 class of 'process_target'.
4290 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4292 * lynx-low.h (class lynx_process_target): Define as a derived
4293 class of 'process_target'.
4294 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4296 * nto-low.h (class nto_process_target): Define as a derived
4297 class of 'process_target'.
4298 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4300 * win32-low.h (class win32_process_target): Define as a derived
4301 class of 'process_target'.
4302 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4305 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4307 * configure: Regenerate.
4309 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4310 Andrew Burgess <andrew.burgess@embecosm.com>
4312 * linux-riscv-low.cc: New file.
4313 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4314 and nat/riscv-linux-tdesc.c.
4315 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4316 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4319 2020-02-14 Tom Tromey <tom@tromey.com>
4321 * acinclude.m4: Don't include acx_configure_dir.m4.
4322 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4323 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4324 (all, install-only, uninstall, clean-info, clean)
4325 (maintainer-clean): Don't recurse.
4326 (subdir_do, all-lib): Remove.
4327 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4329 (generated_files): Update.
4330 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4331 * configure: Rebuild.
4332 * configure.ac: Don't configure gnulib or libiberty.
4335 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4337 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4338 preparing the command line for CreateProcess.
4339 (win32_create_inferior): Reflect the program name in debugging
4340 output that shows the process and its command line.
4342 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4344 * Makefile.in: Rename source files from .c to .cc.
4345 * %.c: Rename to %.cc.
4346 * configure.ac: Rename server.c to server.cc.
4347 * configure: Re-generate.
4349 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4351 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4353 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4355 * win32-low.c (win32_create_inferior): Set signal_pid.
4357 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4358 Pedro Alves <palves@redhat.com>
4360 Skip building gdbserver in a cross-configuration.
4361 * configure.srv: Set $gdbserver_host depending on whether $target
4362 is $host. Use $gdbserver_host instead of $host.
4364 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4366 * configure: Re-generate.
4368 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4370 * configure: Re-generate.
4372 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4374 * acinclude.m4: Update warning.m4 path.
4376 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4378 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4379 (handle_exception): Set siginfo_er.
4380 (win32_xfer_siginfo): New function.
4382 2020-02-07 Tom Tromey <tom@tromey.com>
4383 Pedro Alves <palves@redhat.com>
4385 * README: Update build documentation.
4386 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4388 * configure.ac: Update paths.
4389 * configure: Rebuild.
4390 * acinclude.m4: Update paths.
4391 * Makefile.in: Update include paths.
4392 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4393 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4394 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4395 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4396 (%-generated.c): Update paths.
4397 * Move entire directory from ../gdb/gdbserver.
4399 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4401 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4403 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4405 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4406 assignment instead of srv_linux_obj.
4408 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4410 * server.c (handle_qxfer_libraries): Write segment-address with
4413 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4415 * Makefile.in (install-strip): New target.
4416 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4417 * aclocal.m4: Regenerate.
4418 * configure: Regenerate.
4419 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4421 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4423 * Makefile.in (SFILES): Adjust paths to point to real files.
4424 (OBS): Move waitstatus.o to target/waitstatus.o.
4425 (TAGS): Transform paths appropriately.
4427 (nat/%.o): ... this pattern rule.
4429 (target/%.o): ... this pattern rule.
4430 * configure.srv: Adjust paths throughout to include nat/ prefix
4431 with the revant files.
4432 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4433 * configure: Regenerate.
4435 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4437 * Makefile.in (TAGS): Remove config files from the recipe.
4439 2020-01-14 Tom Tromey <tom@tromey.com>
4441 * configure: Rebuild.
4442 * configure.ac: Remove any checks that were added to common.m4.
4443 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4446 2020-01-14 Tom Tromey <tom@tromey.com>
4448 * server.h: Include config.h.
4449 * gdbreplay.c: Include config.h.
4450 * configure: Rebuild.
4451 * configure.ac: Don't source common.host.
4452 * acinclude.m4: Update path.
4453 * Makefile.in (INCSUPPORT): New variable.
4454 (INCLUDE_CFLAGS): Add INCSUPPORT.
4455 (SFILES): Update paths.
4456 (version-generated.c): Update path to create-version.sh.
4457 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4459 2020-01-14 Tom Tromey <tom@tromey.com>
4461 * configure.ac (LIBS): Use WIN32APILIBS.
4462 (USE_WIN32API): Don't define.
4463 * configure: Rebuild.
4465 2020-01-14 Tom Tromey <tom@tromey.com>
4467 * configure: Rebuild.
4469 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4471 * Makefile.in (%-generated.c): Remove rule for files from
4474 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4476 * configure: Re-generate.
4478 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4480 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4482 * tracepoint.c (stop_tracing, flush_trace_buffer,
4483 about_to_request_buffer_space, get_trace_state_variable_value,
4484 set_trace_state_variable_value, gdb_collect): Add declaration.
4486 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4488 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4489 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4490 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4491 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4492 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4495 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4497 * inferiors.c: Include gdbsupport/common-inferior.h.
4499 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4501 * hostio-errno.c: Include hostio.h.
4503 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4505 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4508 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4510 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4511 * linux-arm-tdesc.h: Include arch/arm.h.
4513 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4515 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4517 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4519 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4520 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4522 2020-01-10 Pedro Alves <palves@redhat.com>
4524 * fork-child.c (post_fork_inferior): Pass target down to
4526 * inferiors.c (switch_to_thread): Add process_stratum_target
4528 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4529 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4530 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4531 * remote-utils.c (prepare_resume_reply): Pass the target to
4533 * target.c (the_target): Now a process_stratum_target.
4534 (done_accessing_memory): Pass the target to switch_to_thread.
4535 (set_target_ops): Ajust to use process_stratum_target.
4536 * target.h (struct target_ops): Rename to ...
4537 (struct process_stratum_target): ... this.
4538 (the_target, set_target_ops): Adjust.
4539 (prepare_to_access_memory): Adjust comment.
4540 * win32-low.c (child_xfer_memory): Adjust to use
4541 process_stratum_target.
4542 (win32_target_ops): Now a process_stratum_target.
4544 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4545 Pedro Alves <palves@redhat.com>
4547 * win32-low.c (get_child_debug_event): Extract the fatal exception
4548 from the exit status and convert to the equivalent Posix signal
4550 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4551 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4553 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4555 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4557 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4559 * server.c (gdbserver_version): Change copyright year to 2020.
4560 * gdbreplay.c (gdbreplay_version): Likewise.
4562 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4564 * configure: Regenerate.
4565 * configure.ac: Quote variable arguments of test.
4567 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4569 * Makefile.in: Fix build with GNU Make 3.81
4571 2019-12-16 Tom Tromey <tromey@adacore.com>
4573 * server.c (get_exec_file): Constify result.
4575 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4577 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4578 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4579 * config.in: Regenerate.
4580 * configure: Regenerate.
4581 * configure.ac: Don't check for strerror.
4582 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4583 Call safe_strerror instead of strerror.
4584 * server.h (strerror): Remove this now-unnecessary declaration.
4585 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4587 (gdb_agent_helper_thread): Likewise.
4588 * utils.c (perror_with_name): Likewise.
4590 2019-11-26 Tom Tromey <tom@tromey.com>
4592 * configure, config.in: Rebuild.
4594 2019-11-26 Tom Tromey <tom@tromey.com>
4596 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4597 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4599 * configure, config.in: Rebuild.
4601 2019-11-26 Tom Tromey <tom@tromey.com>
4603 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4604 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4605 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4606 * acinclude.m4: Include ax_pthread.m4.
4607 * config.in, configure: Rebuild.
4609 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4611 * debug.c (debug_set_output): Call safe_strerror instead of
4613 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4614 (linux_kill_one_lwp): Likewise.
4615 (linux_detach_one_lwp): Likewise.
4616 (linux_wait_for_event_filtered): Likewise.
4617 (store_register): Likewise.
4618 * lynx-low.c (lynx_attach): Likewise.
4619 * mem-break.c (insert_memory_breakpoint): Likewise.
4620 (remove_memory_breakpoint): Likewise.
4621 (delete_fast_tracepoint_jump): Likewise.
4622 (set_fast_tracepoint_jump): Likewise.
4623 (uninsert_fast_tracepoint_jumps_at): Likewise.
4624 (reinsert_fast_tracepoint_jumps_at): Likewise.
4625 * nto-low.c (nto_xfer_memory): Likewise.
4626 (nto_resume): Likewise.
4628 2019-11-20 Luis Machado <luis.machado@linaro.org>
4630 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4631 instead of register count.
4632 * tdesc.c (tdesc_contains_feature): New function.
4633 * tdesc.h (tdesc_contains_feature): New prototype.
4635 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4637 * Makefile.in: Add safe-strerror.c.
4638 * configure: Regenerate.
4639 * configure.ac: Don't source common.host.
4641 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4643 * config.in: Regenerate.
4644 * configure: Regenerate.
4646 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4648 * ax.c (ax_printf): Handle size_t_arg.
4650 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4652 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4653 * mi/mi-main.c (output_cores): Likewise.
4654 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4655 (linux_xfer_osdata_modules): Likewise.
4656 * remote.c (register_remote_support_xml): Likewise.
4657 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4658 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4660 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4662 * configure: Regenerate.
4663 * configure.ac: Remove check for strerror_r.
4665 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4667 * config.in: Regenerate.
4668 * configure: Regenerate.
4669 * configure.ac: Also check for strerror_r.
4671 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4673 * ax.h (debug_agent): Remove duplicate declaration.
4675 2019-10-26 Tom de Vries <tdevries@suse.de>
4677 * linux-aarch64-low.c: Fix typos in comments.
4678 * linux-arm-low.c: Same.
4679 * linux-low.c: Same.
4680 * linux-ppc-low.c: Same.
4681 * proc-service.c: Same.
4684 * tracepoint.c: Same.
4685 * win32-low.c: Same.
4687 2019-10-25 Tom Tromey <tromey@adacore.com>
4689 * utils.c (xstrdup): Remove.
4691 2019-10-23 Tom Tromey <tom@tromey.com>
4693 * configure, config.in: Rebuild.
4695 2019-10-23 Tom Tromey <tom@tromey.com>
4697 * configure: Rebuild.
4698 * acinclude.m4: Use m4_include, not sinclude.
4700 2019-10-17 Tom Tromey <tromey@adacore.com>
4702 * configure: Rebuild.
4703 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4704 in AC_CONFIG_FILES invocation.
4705 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4708 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4710 * server.c: Include xml-builtin.h.
4711 (get_xml_features): Don't declare xml_builtins here.
4713 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4715 * Makefile.in: Remove references to vec-ipa.o.
4717 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4719 * Makefile.in: Remove references to vec.c.
4721 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4723 * server.c (server_waiting): Change to bool.
4724 (extended_protocol): Likewise.
4725 (response_needed): Likewise.
4726 (exit_requested): Likewise.
4727 (run_once): Likewise.
4728 (report_no_resumed): Likewise.
4729 (non_stop): Likewise.
4730 (disable_packet_vCont): Likewise.
4731 (disable_packet_Tthread): Likewise.
4732 (disable_packet_qC): Likewise.
4733 (disable_packet_qfThreadInfo): Likewise.
4734 (handle_general_set): Update.
4735 (handle_detach): Update.
4736 (handle_monitor_command): Update.
4737 (handle_query): Update.
4738 (captured_main): Update.
4739 (process_serial_event): Update.
4740 * server.h (server_waiting): Change to bool.
4741 (disable_packet_vCont): Likewise.
4742 (disable_packet_Tthread): Likewise.
4743 (disable_packet_qC): Likewise.
4744 (disable_packet_qfThreadInfo): Likewise.
4745 (run_once): Likewise.
4746 (non_stop): Likewise.
4747 * target.c (target_stop_and_wait): Update.
4749 2019-10-02 Tom Tromey <tromey@adacore.com>
4751 * Makefile.in (SFILES): Add common-inferior.c.
4752 (OBS): Add common-inferior.o.
4753 * server.c (startup_with_shell): Don't define.
4755 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4757 * linux-low.c (linux_low_read_btrace): Update for change to
4760 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4762 * debug.c (debug_threads): Remove comment in favor of the header.
4763 * debug.h (using_threads): Add declaration.
4764 (debug_threads): Add comment.
4765 * linux-aarch64-low.c: Include debug.h and remove declaration of
4767 * nto-low.c: Likewise.
4768 * remote-utils.c: Likewise.
4769 * thread-db.c: Likewise.
4771 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4773 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4774 and powerpc-cell64l-ipa.o.
4775 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4776 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4777 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4780 * spu-low.c: Remove file.
4782 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4783 (parse_spufs_run): Remove.
4784 (ppc_get_pc): Remove Cell/B.E. support.
4785 (ppc_set_pc): Likewise.
4786 (ppc_breakpoint_at): Likewise.
4787 (ppc_arch_setup): Likewise.
4788 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4789 tdesc_powerpc_cell32l.
4790 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4791 or init_registers_powerpc_cell32l.
4792 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4793 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4794 or init_registers_powerpc_cell32l.
4795 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4796 (init_registers_powerpc_cell32l): Remove prototype.
4797 (init_registers_powerpc_cell64l): Likewise.
4799 * target.h (struct target_ops): Remove qxfer_spu member.
4800 * server.c (handle_qxfer_spu): Remove.
4801 (qxfer_packets): Remove entry for "spu".
4802 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4803 * linux-low.c (SPUFS_MAGIC): Remove.
4804 (spu_enumerate_spu_ids): Remove.
4805 (linux_qxfer_spu): Remove.
4806 (linux_target_ops): Remove qxfer_spu member.
4807 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4808 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4809 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4811 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4813 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4814 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4815 * config.in: Regenerate.
4816 * configure: Regenerate.
4818 2019-08-15 Tom Tromey <tromey@adacore.com>
4820 * target.c (target_write_memory): Use gdb::byte_vector.
4822 2019-08-15 Tom Tromey <tromey@adacore.com>
4824 * tracepoint.c (write_inferior_data_pointer)
4825 (write_inferior_integer, write_inferior_int8)
4826 (write_inferior_uinteger, m_tracepoint_action_download)
4827 (r_tracepoint_action_download, x_tracepoint_action_download)
4828 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4829 (download_agent_expr, download_tracepoint_1)
4830 (download_trace_state_variables, upload_fast_traceframes): Update.
4831 * server.c (gdb_write_memory): Update.
4832 * remote-utils.c (relocate_instruction): Update.
4833 * proc-service.c (ps_pdwrite): Update.
4834 * mem-break.c (remove_memory_breakpoint)
4835 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4836 (uninsert_fast_tracepoint_jumps_at)
4837 (reinsert_fast_tracepoint_jumps_at): Update.
4838 * linux-x86-low.c (append_insns)
4839 (i386_install_fast_tracepoint_jump_pad)
4840 (amd64_write_goto_address, i386_write_goto_address): Update.
4841 * linux-s390-low.c (append_insns, s390_write_goto_address):
4843 * linux-ppc-low.c (ppc_relocate_instruction)
4844 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4845 (ppc_write_goto_address): Update.
4846 * linux-aarch64-low.c (append_insns): Update.
4847 * target.h (struct target_ops): Update.
4848 (write_inferior_memory): Don't declare.
4849 * target.c (target_write_memory): Rename from
4850 write_inferior_memory. Remove old target_write_memory.
4852 2019-08-15 Tom Tromey <tromey@adacore.com>
4854 * target.c (write_inferior_memory): Use std::vector.
4856 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4859 * configure.ac: Drop enable-libmcheck support.
4860 * configure, config.in: Rebuild.
4861 * acinclude.m4: Don't include it.
4863 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4865 * configure.srv: Remove Arm xml files.
4867 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4869 * configure.srv: Add new files. Remove xml generated files.
4870 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4872 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4873 * linux-aarch32-tdesc.c: New file.
4874 * linux-aarch32-tdesc.h: New file.
4875 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4876 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4877 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4878 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4879 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4880 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4881 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4882 (arm_read_description): Call arm_linux_read_description.
4883 (initialize_low_arch): Don't init registers.
4884 * linux-arm-tdesc.c: New file.
4885 * linux-arm-tdesc.h: New file.
4887 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4889 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4890 Move counter inside for.
4891 (arm_read_description): Check ptrace earlier.
4892 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4894 2019-07-09 Tom Tromey <tom@tromey.com>
4896 * configure: Rebuild.
4897 * configure.ac: Change common to gdbsupport.
4898 * acinclude.m4: Change common to gdbsupport.
4899 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4900 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4901 common to gdbsupport.
4902 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4903 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4904 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4905 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4906 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4907 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4908 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4909 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4910 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4911 common to gdbsupport.
4913 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4915 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4917 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4919 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4921 * configure.srv: Remove legacy xml.
4922 * linux-aarch64-low.c (initialize_low_arch): Remove
4923 initialize_low_tdesc call.
4924 * linux-aarch64-tdesc-selftest.c: Remove file.
4925 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4926 * linux-x86-low.c (initialize_low_arch): Remove
4927 initialize_low_tdesc call.
4928 * linux-x86-tdesc-selftest.c: Remove file.
4929 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4931 2019-06-20 Tom de Vries <tdevries@suse.de>
4933 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4934 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4936 2019-06-19 Tom de Vries <tdevries@suse.de>
4938 * debug.h (debug_write): Change return type to ssize_t.
4939 * debug.c (debug_write): Same.
4941 2019-06-14 Tom Tromey <tom@tromey.com>
4943 * configure.ac: Use new path to gnulib.
4944 * configure: Rebuild.
4945 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4948 2019-06-11 Tom Tromey <tom@tromey.com>
4950 * Makefile.in (SFILES): Add alloc.c.
4952 (IPA_OBJS): Add alloc-ipa.o.
4953 (alloc-ipa.o): New target.
4954 (%.o: ../%.c): New pattern rule.
4956 2019-06-10 Tom Tromey <tromey@adacore.com>
4958 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4959 end warning with a newline.
4960 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4962 * thread-db.c (attach_thread): Don't end warning with a newline.
4963 (thread_db_notice_clone): Likewise.
4964 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4966 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4967 end warning with a newline.
4969 2019-06-04 Pedro Alves <palves@redhat.com>
4971 * server.c (captured_main): Use make_unique_xstrdup.
4973 2019-06-02 Tom Tromey <tom@tromey.com>
4975 * gdbreplay.c (fromhex): Remove.
4976 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4978 2019-05-29 Tom Tromey <tromey@adacore.com>
4980 * configure: Rebuild.
4982 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4984 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4985 sign extension code on 32-bit builds.
4987 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4990 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4992 2019-04-19 Tom Tromey <tom@tromey.com>
4994 * server.c (struct vstop_notif): Derive from notif_event.
4996 (queue_stop_reply): Update.
4997 (remove_all_on_match_ptid): Change type. Rewrite.
4998 (discard_queued_stop_replies): Rewrite.
4999 (in_queued_stop_replies_ptid): Change type.
5000 (in_queued_stop_replies): Rewrite.
5001 (notif_stop): Update.
5002 (queue_stop_reply_callback): Update.
5003 (captured_main): Don't call initialize_notif.
5004 (push_stop_notification): Update.
5005 * notif.c (notif_write_event, handle_notif_ack)
5006 (notif_event_enque, notif_push): Update.
5007 (notif_event_xfree, initialize_notif): Remove.
5008 * notif.h (struct notif_event): Include <list>, not
5010 (struct notif_server) <queue>: Now a std::list.
5011 (notif_event_p): Remove typedef.
5012 (initialize_notif): Don't declare.
5013 (struct notif_event): Add virtual destructor.
5015 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5017 * ax.c (ax_vdebug): Call debug_printf.
5018 * debug.c (debug_write): New function.
5019 * debug.h (debug_write): New declaration.
5020 * linux-low.c (sigchld_handler): Call debug_write.
5022 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5024 * debug.c (debug_set_output): New function.
5025 (debug_vprintf): Send output to debug_file.
5026 (debug_flush): Likewise.
5027 * debug.h (debug_set_output): New declaration.
5028 * server.c (handle_monitor_command): Add debug-file option.
5029 (captured_main): Likewise.
5031 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5033 * debug.c (remote_debug): Add definition.
5034 * debug.h (remote_debug): Add declaration.
5035 * hostio.c (remote_debug): Remove declaration.
5036 * remote-utils.c (struct ui_file): Likewise.
5037 (remote_debug): Likewise.
5038 * remote-utils.h (remote_debug): Likewise,
5039 * server.c (remote_debug): Remove definition.
5041 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5043 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5044 when using a 64-bit gdbserver.
5046 2019-04-09 Tom Tromey <tromey@adacore.com>
5048 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5050 2019-04-08 Tom Tromey <tom@tromey.com>
5052 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5054 (linux_resume_one_lwp): Likewise.
5056 2019-04-08 Tom Tromey <tom@tromey.com>
5058 * gdbreplay.c: Update.
5059 * linux-low.c: Update.
5062 2019-04-08 Tom Tromey <tom@tromey.com>
5064 * server.c: Use C++ exception handling.
5065 * linux-low.c: Use C++ exception handling.
5066 * gdbreplay.c: Use C++ exception handling.
5068 2019-04-08 Tom Tromey <tom@tromey.com>
5070 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5071 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5072 (captured_main, main): Update.
5073 * gdbreplay.c (main): Update.
5075 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5077 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5078 value in argument pointer, return 1 if the entry is found and 0
5079 otherwise. Move comment.
5080 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5081 * linux-low.h (linux_get_auxv): Declare.
5082 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5084 2019-04-05 Tom Tromey <tromey@adacore.com>
5086 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5089 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5091 * linux-low.c (AT_HWCAP2): Add define if not already included.
5093 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5095 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5096 (aarch64_arch_setup): Call linux_get_hwcap.
5097 * linux-arm-low.c (arm_get_hwcap): Remove function.
5098 (arm_read_description): Call linux_get_hwcap.
5099 * linux-low.c (linux_get_auxv): New function.
5100 (linux_get_hwcap): Likewise.
5101 (linux_get_hwcap2): Likewise.
5102 * linux-low.h (linux_get_hwcap): New declaration.
5103 (linux_get_hwcap2): Likewise.
5104 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5105 (ppc_arch_setup): Call linux_get_hwcap.
5106 * linux-s390-low.c (s390_get_hwcap): Remove function.
5107 (s390_arch_setup): Call linux_get_hwcap.
5109 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5110 Jiong Wang <jiong.wang@arm.com>
5112 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5113 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5115 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5117 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5118 Jiong Wang <jiong.wang@arm.com>
5120 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5121 (aarch64_get_hwcap): New function.
5122 (aarch64_arch_setup): Read APIA hwcap.
5124 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5125 Jiong Wang <jiong.wang@arm.com>
5127 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5128 (initialize_low_tracepoint): Likewise.
5129 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5130 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5131 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5132 (aarch64_linux_read_description): Likewise.
5133 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5135 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5137 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5138 i386_create_target_description for 'segments' parameter.
5139 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5140 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5141 * win32-i386-low.c (i386_arch_setup): Likewise.
5143 2019-03-12 Tom Tromey <tromey@adacore.com>
5145 * linux-low.c (iterate_over_lwps): Update.
5147 2019-03-06 Tom Tromey <tom@tromey.com>
5149 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5150 (captured_main): Use SCOPE_EXIT.
5152 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5154 * configure.srv: Use '$enable_unittest' instead of '$development'
5155 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5158 2019-02-27 Tom Tromey <tromey@adacore.com>
5160 * gdbreplay.c (logchar): Handle \r\n.
5162 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5164 * linux-low.c (linux_attach): Add process before lwp.
5165 * server.c (attach_inferior): Check if already attached.
5167 2019-02-07 Tom Tromey <tom@tromey.com>
5169 * x86-tdesc.h: Rename include guard.
5170 * x86-low.h: Add include guard.
5171 * wincecompat.h: Rename include guard.
5172 * win32-low.h: Add include guard.
5173 * utils.h: Rename include guard.
5174 * tracepoint.h: Rename include guard.
5175 * tdesc.h: Rename include guard.
5176 * target.h: Rename include guard.
5177 * server.h: Rename include guard.
5178 * remote-utils.h: Rename include guard.
5179 * regcache.h: Rename include guard.
5180 * nto-low.h: Rename include guard.
5181 * notif.h: Add include guard.
5182 * mem-break.h: Rename include guard.
5183 * lynx-low.h: Add include guard.
5184 * linux-x86-tdesc.h: Add include guard.
5185 * linux-s390-tdesc.h: Add include guard.
5186 * linux-ppc-tdesc-init.h: Add include guard.
5187 * linux-low.h: Add include guard.
5188 * linux-aarch64-tdesc.h: Add include guard.
5189 * linux-aarch32-low.h: Add include guard.
5190 * inferiors.h: Rename include guard.
5191 * i387-fp.h: Rename include guard.
5192 * hostio.h: Rename include guard.
5193 * gdbthread.h: Rename include guard.
5194 * gdb_proc_service.h: Rename include guard.
5195 * event-loop.h: Rename include guard.
5196 * dll.h: Rename include guard.
5197 * debug.h: Rename include guard.
5198 * ax.h: Rename include guard.
5200 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5203 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5204 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5206 2019-01-25 Tom Tromey <tom@tromey.com>
5208 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5210 2019-01-25 Tom Tromey <tom@tromey.com>
5212 * win32-low.c: Fix common/ includes.
5213 * win32-i386-low.c: Fix common/ includes.
5214 * tracepoint.c: Fix common/ includes.
5215 * thread-db.c: Fix common/ includes.
5216 * target.h: Fix common/ includes.
5217 * symbol.c: Fix common/ includes.
5218 * spu-low.c: Fix common/ includes.
5219 * server.h: Fix common/ includes.
5220 * server.c: Fix common/ includes.
5221 * remote-utils.c: Fix common/ includes.
5222 * regcache.h: Fix common/ includes.
5223 * regcache.c: Fix common/ includes.
5224 * nto-x86-low.c: Fix common/ includes.
5225 * notif.h: Fix common/ includes.
5226 * mem-break.h: Fix common/ includes.
5227 * lynx-low.c: Fix common/ includes.
5228 * lynx-i386-low.c: Fix common/ includes.
5229 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5230 * linux-x86-low.c: Fix common/ includes.
5231 * linux-low.c: Fix common/ includes.
5232 * inferiors.h: Fix common/ includes.
5233 * i387-fp.c: Fix common/ includes.
5234 * hostio.c: Fix common/ includes.
5235 * hostio-errno.c: Fix common/ includes.
5236 * gdbthread.h: Fix common/ includes.
5237 * gdbreplay.c: Fix common/ includes.
5238 * fork-child.c: Fix common/ includes.
5239 * event-loop.c: Fix common/ includes.
5241 (enum gdb_agent_op): Fix common/ includes.
5243 2019-01-21 Tom Tromey <tom@tromey.com>
5245 * tracepoint.c: Fix includes.
5246 * remote-utils.c: Fix includes.
5247 * linux-x86-low.c: Fix includes.
5249 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5251 * gdbreplay.c (gdbreplay_version): Update copyright year in
5253 * server.c (gdbserver_version): Likewise.
5255 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5257 * linux-low.c (add_lwp): Switch ordering.
5259 2018-11-29 Tom Tromey <tom@tromey.com>
5261 * win32-low.c (win32_join): Take pid, not process.
5262 * target.h (struct target_ops) <join>: Change argument type.
5263 (join_inferior): Change argument name.
5264 * spu-low.c (spu_join): Take pid, not process.
5265 * server.c (handle_detach): Preserve pid before destroying
5267 * lynx-low.c (lynx_join): Take pid, not process.
5268 * linux-low.c (linux_join): Take pid, not process.
5270 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5272 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5273 (aarch64_cannot_fetch_register): Likewise.
5274 (struct linux_target_ops): Update references.
5276 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5278 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5280 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5282 * configure.srv (ipa_ppc_linux_regobj): Add
5283 powerpc-isa207-htm-vsx32l-ipa.o and
5284 powerpc-isa207-htm-vsx64l-ipa.o.
5285 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5286 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5287 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5288 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5289 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5290 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5291 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5292 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5293 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5294 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5295 (init_registers_powerpc_isa207_htm_vsx32l)
5296 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5297 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5298 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5299 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5300 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5301 (ppc_store_tm_ctarregset): New functions.
5302 (ppc_regsets): Add entries for HTM regsets.
5303 (ppc_arch_setup): Set htm in features struct when needed. Set
5304 sizes for the HTM regsets.
5305 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5306 (initialize_low_arch): Call
5307 init_registers_powerpc_isa207_htm_vsx32l and
5308 init_registers_powerpc_isa207_htm_vsx64l.
5309 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5310 PPC_TDESC_ISA207_HTM_VSX.
5311 (initialize_low_tracepoint): Call
5312 init_registers_powerpc_isa207_htm_vsx32l and
5313 init_registers_powerpc_isa207_htm_vsx64l.
5315 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5317 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5318 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5319 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5320 (ppc_store_pmuregset): New functions.
5321 (ppc_regsets): Add entries for ebb and pmu regsets.
5322 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5323 pmu regsets are available. Set sizes for these regsets.
5325 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5327 * configure.srv (ipa_ppc_linux_regobj): Add
5328 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5329 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5330 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5331 rs6000/powerpc-isa207-vsx32l.xml, and
5332 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5333 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5334 <PPC_TDESC_ISA207_VSX>: New enum value.
5335 (init_registers_powerpc_isa207_vsx32l): Declare.
5336 (init_registers_powerpc_isa207_vsx64l): Declare.
5337 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5338 (ppc_store_tarregset): New function.
5339 (ppc_regsets): Add entry for the TAR regset.
5340 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5341 size for the TAR regsets.
5342 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5343 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5344 and init_registers_powerpc_isa207_vsx64l.
5345 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5346 (initialize_low_tracepoint): Call
5347 init_registers_powerpc_isa207_vsx32l and
5348 init_registers_powerpc_isa207_vsx64l.
5350 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5351 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5353 * configure.srv (ipa_ppc_linux_regobj): Add
5354 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5355 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5356 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5357 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5358 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5359 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5360 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5361 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5362 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5363 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5364 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5365 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5366 (ppc_hwcap): Add comment.
5367 (ppc_hwcap2): New global.
5368 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5369 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5370 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5371 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5372 when needed. Set sizes for the the DSCR and PPR regsets.
5373 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5374 (initialize_low_arch): Call
5375 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5376 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5377 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5378 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5379 (initialize_low_tracepoint): Call
5380 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5381 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5383 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5385 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5387 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5388 Simon Marchi <simark@simark.ca>
5390 * acinclude.m4: Include "../selftest.m4".
5391 * configure: Regenerate.
5392 * configure.ac: Use "GDB_AC_SELFTEST".
5393 * configure.srv: Use "$enable_unittests" instead of
5394 "$development" when checking whether unit tests have been
5396 * server.c (captured_main): Update message informing that
5397 selftests have been disabled.
5399 2018-10-04 Tom Tromey <tom@tromey.com>
5401 * configure: Rebuild.
5403 2018-10-04 Tom Tromey <tom@tromey.com>
5405 * server.c (handle_status): Rename inner "thread".
5406 (process_serial_event): Declare "res" in 'm' case.
5407 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5408 (iterate_over_lwps): Rename inner "thread".
5409 (linux_qxfer_libraries_svr4): Rename inner "len".
5410 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5412 2018-10-01 Gary Benson <gbenson@redhat.com>
5414 * gdb_proc_service.h: Moved common code to
5415 common/gdb_proc_service.h.
5417 2018-10-01 Gary Benson <gbenson@redhat.com>
5419 * gdb_proc_service.h: Synchronize comments and whitespace with
5420 GDB's version of this file.
5422 2018-09-25 Tom Tromey <tom@tromey.com>
5424 * configure: Rebuild.
5425 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5427 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5429 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5430 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5431 ($(IPA_LIB)): Sort IPA_OBJS.
5433 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5435 * Makefile.in: Remove references to $(ADD_DEPS).
5437 2018-09-16 Tom Tromey <tom@tromey.com>
5439 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5441 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5444 2018-09-05 Tom Tromey <tom@tromey.com>
5446 * configure: Rebuild.
5448 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5451 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5453 2018-08-27 Tom Tromey <tom@tromey.com>
5456 * configure: Rebuild.
5458 2018-08-27 Tom Tromey <tom@tromey.com>
5460 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5461 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5462 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5463 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5464 (s390x_emit_stack_adjust): Add casts to unsigned char.
5466 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5470 * server.h (struct client_state) <disable_randomization>:
5473 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5475 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5477 (mips_supply_ptrace_register): Likewise.
5479 2018-07-22 Tom Tromey <tom@tromey.com>
5481 * configure: Rebuild.
5483 2018-07-22 Tom Tromey <tom@tromey.com>
5485 * win32-low.c (win32_create_inferior): Remove unused variables.
5486 * gdbreplay.c (remote_open): Remove unused variable.
5487 * remote-utils.c (remote_prepare): Remove unused variable.
5488 * x86-tdesc.h (X86_TDESC_H): Define.
5489 (amd64_expedite_regs): Define conditionally.
5490 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5491 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5492 * remote-utils.c (readchar): Remove unused variable.
5494 2018-07-13 Pedro Alves <palves@redhat.com>
5496 * linux-low.c (linux_kill): Change parameter to process_info
5497 pointer instead of pid. Adjust.
5498 * lynx-low.c (lynx_kill): Likewise.
5499 * nto-low.c (nto_kill): Likewise.
5500 * spu-low.c (spu_kill): Likewise.
5501 * win32-low.c (win32_kill): Likewise.
5502 * server.c (handle_v_kill, kill_inferior_callback)
5503 (detach_or_kill_for_exit): Adjust.
5504 * target.c (kill_inferior): Change parameter to process_info
5505 pointer instead of pid. Adjust.
5506 * target.h (struct target_ops) <kill>: Change parameter to
5507 process_info pointer instead of pid. Adjust all implementations
5509 (kill_inferior): Likewise.
5511 2018-07-13 Pedro Alves <palves@redhat.com>
5513 * linux-low.c (linux_detach, linux_join): Change parameter to
5514 process_info pointer instead of pid. Adjust.
5515 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5516 * nto-low.c (nto_detach): Likewise.
5517 * spu-low.c (spu_detach, spu_join): Likewise.
5518 * win32-low.c (win32_detach, win32_join): Likewise.
5519 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5520 * target.h (struct target_ops) <detach, join>: Change parameter to
5521 process_info pointer instead of pid. Adjust all implementations
5523 (detach_inferior, join_inferior): Rename 'pid' parameter to
5526 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5527 Jan Kratochvil <jan.kratochvil@redhat.com>
5528 Paul Fertser <fercerpav@gmail.com>
5529 Tsutomu Seki <sekiriki@gmail.com>
5531 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5532 (OBS): Add 'common/netstuff.o'.
5533 (GDBREPLAY_OBS): Likewise.
5534 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5535 (remote_open): Implement support for IPv6
5537 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5539 (handle_accept_event): Accept connections from IPv6 sources.
5540 (remote_prepare): Handle IPv6-style hostnames; implement
5541 support for IPv6 connections.
5542 (remote_open): Implement support for printing connections from
5545 2018-07-11 Pedro Alves <palves@redhat.com>
5548 * mem-break.c (any_persistent_commands): Add process_info
5549 parameter and use it instead of relying on the current process.
5550 Change return type to bool.
5551 * mem-break.h (any_persistent_commands): Add process_info
5552 parameter and change return type to bool.
5553 * server.c (handle_detach): Remove require_running_or_return call.
5554 Look up the process_info for the process we're about to detach.
5555 If not found, return back error to GDB. Adjust
5556 any_persistent_commands call to pass down a process pointer.
5558 2018-07-11 Pedro Alves <palves@redhat.com>
5560 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5561 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5562 instead of collect_register_by_name.
5563 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5564 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5566 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5567 Pedro Alves <palves@redhat.com>
5569 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5571 2018-07-03 Tom Tromey <tom@tromey.com>
5573 * linux-low.c: Update.
5574 * lynx-low.c: Update.
5575 * mem-break.c: Update.
5576 * nto-low.c: Update.
5577 * remote-utils.c: Update.
5579 * spu-low.c: Update.
5581 * win32-low.c: Update.
5583 2018-07-03 Tom Tromey <tom@tromey.com>
5587 2018-07-03 Tom Tromey <tom@tromey.com>
5589 * linux-low.c: Update.
5591 2018-07-03 Tom Tromey <tom@tromey.com>
5595 2018-07-03 Tom Tromey <tom@tromey.com>
5597 * linux-low.c: Update.
5598 * linux-mips-low.c: Update.
5599 * lynx-low.c: Update.
5600 * nto-low.c: Update.
5601 * remote-utils.c: Update.
5603 * spu-low.c: Update.
5605 * thread-db.c: Update.
5607 2018-07-03 Tom Tromey <tom@tromey.com>
5609 * linux-low.c: Update.
5610 * linux-mips-low.c: Update.
5611 * lynx-low.c: Update.
5612 * mem-break.c: Update.
5613 * nto-low.c: Update.
5614 * remote-utils.c: Update.
5616 * spu-low.c: Update.
5618 * tracepoint.c: Update.
5620 2018-07-03 Tom Tromey <tom@tromey.com>
5622 * linux-low.c: Update.
5623 * linux-ppc-low.c: Update.
5624 * linux-x86-low.c: Update.
5625 * proc-service.c: Update.
5627 * spu-low.c: Update.
5628 * thread-db.c: Update.
5629 * win32-low.c: Update.
5631 2018-07-03 Tom Tromey <tom@tromey.com>
5633 * linux-low.c: Update.
5634 * lynx-low.c: Update.
5635 * nto-low.c: Update.
5636 * remote-utils.c: Update.
5637 * spu-low.c: Update.
5638 * thread-db.c: Update.
5639 * win32-low.c: Update.
5641 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5643 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5644 parameter in call to 'amd64_create_target_description'.
5646 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5648 * x86-tdesc.h: Remove executable permission flag.
5650 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5652 * configure.ac: Remove AC_PREREQ, add missing quoting.
5653 * configure: Re-generate.
5654 * config.in: Re-generate.
5655 * aclocal.m4: Re-generate.
5657 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5659 * tracepoint.h (current_traceframe): Remove declaration.
5661 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5663 * linux-aarch64-low.c (is_sve_tdesc): New function.
5664 (aarch64_sve_regs_copy_to_regcache): Likewise.
5665 (aarch64_sve_regs_copy_from_regcache): Likewise.
5666 (aarch64_regs_info): Add SVE checks.
5667 (initialize_low_arch): Initialize SVE.
5669 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5671 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5673 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5675 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5676 (initialize_low_tracepoint): Likewise
5677 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5678 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5680 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5682 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5684 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5686 * server.h (PBUFSIZ): Increase size
5688 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5690 * regcache.c (regcache::raw_compare): New function.
5691 * regcache.h (regcache::raw_compare): New declaration.
5693 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5695 * regcache.c (new_register_cache): Use new.
5696 (free_register_cache): Use delete.
5697 (register_data): Use const.
5698 (supply_register): Move body inside regcache.
5699 (regcache::raw_supply): New override function.
5700 (collect_register): Move body inside regcache.
5701 (regcache::raw_collect): New override function.
5702 (regcache::get_register_status): New override function.
5703 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5705 2018-06-09 Tom Tromey <tom@tromey.com>
5707 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5709 (event_queue): Use std::queue.
5710 (gdb_event_xfree): Remove.
5711 (initialize_event_loop, process_event, wait_for_event): Update.
5713 2018-06-08 Stan Cox <scox@redhat.com>
5715 * win32-low.c (win32_create_inferior): last_ptid and last_status
5716 moved to client_state.
5718 2018-06-08 Pedro Alves <palves@redhat.com>
5720 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5721 common/common-exceptions.o, common/common-utils.o,
5722 common/errors.o, common/print-utils.o and utils.o.
5723 * gdbreplay.c: Include "common-defs.h" instead of the two
5724 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5725 string.h or alloca.h.
5726 (perror_with_name): Delete.
5727 (remote_open): Use xstrdup instead of strdup.
5728 (main): Rename to ...
5729 (captured_main): ... this.
5732 2018-06-08 Tom Tromey <tom@tromey.com>
5734 * linux-low.c (linux_low_read_btrace): Update.
5736 2018-06-04 Stan Cox <scox@redhat.com>
5738 * server.h (struct client_state): New.
5739 * server.c (cont_thread, general_thread, multi_process)
5740 (report_fork_events, report_vfork_events, report_exec_events)
5741 (report_thread_events, swbreak_feature, hwbreak_feature)
5742 (vCont_supported, disable_randomization, pass_signals)
5743 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5744 Moved to client_state.
5745 * remote-utils.c (remote_debug, noack_mode)
5746 (transport_is_reliable): Moved to client_state.
5747 * tracepoint.c (current_traceframe): Moved to client_state.
5750 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5751 linux-low.c, remote-utils.h, target.c: Use client_state.
5753 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5755 * configure.srv: Add new c/h file.
5757 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5759 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5762 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5764 * gdb.arch/mips-fpregset-core.exp: New test.
5765 * gdb.arch/mips-fpregset-core.c: New test source.
5767 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5770 * hostio.c (require_int): Do not report overflow for integers
5771 between 0xfffffff and 0x7fffffff.
5773 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5775 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5776 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5777 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5779 (the_low_target): Wire them.
5781 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5783 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5784 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5785 mode. Call collect_register_by_name with vscr using
5786 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5787 (ppc_store_vrregset): Add and set vscr_offset variable as in
5788 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5791 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5793 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5794 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5795 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5797 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5799 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5800 (ppc_store_vsxregset): Likewise.
5801 (ppc_fill_vrregset): Likewise.
5802 (ppc_store_vrregset): Likewise.
5803 (ppc_fill_evrregset): Likewise.
5804 (ppc_store_evrregset): Likewise.
5805 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5806 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5809 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5811 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5812 wordsize of the inferior. Call ppc_linux_target_wordsize.
5814 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5816 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5817 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5818 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5819 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5820 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5821 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5822 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5823 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5824 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5825 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5826 (tdesc_powerpc_e500l): Remove.
5827 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5828 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5829 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5830 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5832 (ppc_arch_setup): Remove target description matching code. Fill a
5833 ppc_linux_features struct and call ppc_linux_match_description
5836 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5838 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5839 width of the requested register exceeds the width of the
5841 (mips_cannot_store_register): Likewise.
5843 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5845 * linux-mips-low.c (mips_fetch_register): New function. Update
5847 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5848 (the_low_target): Wire `mips_fetch_register'.
5850 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5852 * lynx-i386-low.c (LYNXOS_178): New macro.
5853 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5854 the layout on LynxOS-178.
5855 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5856 handle floating point registers that are not supported by
5859 2018-05-10 Tom Tromey <tom@tromey.com>
5861 * configure: Rebuild.
5863 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5866 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5867 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5868 Use it to set the expedite_regs field in the given tdesc.
5869 * x86-tdesc.h: New file.
5870 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5871 Adjust following the addition of the new expedite_regs parameter
5872 to init_target_desc.
5873 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5874 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5875 (i386_linux_read_description, amd64_linux_read_description):
5876 Adjust following the addition of the new expedite_regs parameter
5877 to init_target_desc.
5878 * lynx-i386-low.c: #include "x86-tdesc.h".
5879 (lynx_i386_arch_setup): Adjust following the addition of the new
5880 expedite_regs parameter to init_target_desc.
5881 * nto-x86-low.c: #include "x86-tdesc.h".
5882 (nto_x86_arch_setup): Adjust following the addition of the new
5883 expedite_regs parameter to init_target_desc.
5884 * win32-i386-low.c: #include "x86-tdesc.h".
5885 (i386_arch_setup): Adjust following the addition of the new
5886 expedite_regs parameter to init_target_desc.
5888 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5891 * win32-low.c (win32_create_inferior): Add call to my_wait
5892 setting last_status global.
5894 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5897 * win32-low.c (create_process): Only call gdb_tilde_expand if
5898 inferior_cwd is not NULL.
5900 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5902 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5903 registers to the cache if their values have changed.
5904 (i387_xsave_to_cache): Provide default values for x87 control
5905 registers when these features are available, but disabled.
5906 * regcache.c (supply_register_by_name_zeroed): New function.
5907 * regcache.h (supply_register_by_name_zeroed): Declare new
5910 2018-05-07 Tom Tromey <tom@tromey.com>
5912 * configure: Rebuild.
5914 2018-05-04 Tom Tromey <tom@tromey.com>
5916 * configure: Rebuild.
5918 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5919 Pedro Alves <palves@redhat.com>
5921 * linux-aarch64-low.c (aarch64_stopped_data_address):
5924 2018-04-27 Tom Tromey <tom@tromey.com>
5926 * configure: Rebuild.
5928 2018-04-23 Tom Tromey <tom@tromey.com>
5930 * configure: Rebuild.
5932 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5934 * Makefile.in (depcomp): Add "..".
5935 (all_deps_files): New and use it.
5937 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5939 * configure.srv (aarch64*-*-linux*): Don't include xml.
5940 (i[34567]86-*-cygwin*): Likewise.
5941 (i[34567]86-*-linux*): Likewise.
5942 (i[34567]86-*-lynxos*): Likewise.
5943 (i[34567]86-*-mingw32ce*): Likewise.
5944 (i[34567]86-*-mingw*): Likewise.
5945 (i[34567]86-*-nto*): Likewise.
5946 (tic6x-*-uclinux): Likewise.
5947 (x86_64-*-linux*): Likewise.
5948 (x86_64-*-mingw*): Likewise.
5949 (x86_64-*-cygwin*): Likewise.
5951 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5953 * tdesc.c: Remove xml parameter.
5955 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5957 * server.c (get_features_xml): Remove cast.
5958 * tdesc.c (void target_desc::accept): Fill in function.
5959 (tdesc_get_features_xml): Remove old xml creation.
5960 (print_xml_feature::visit_pre): Add xml vistor.
5961 * tdesc.h (struct target_desc): Make xmltarget mutable.
5962 (tdesc_get_features_xml): Remove declaration.
5964 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5966 * tdesc.c (tdesc_architecture_name): Add new function.
5967 (tdesc_osabi_name): Likewise.
5968 (tdesc_get_features_xml): Use new functions.
5970 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5972 * tdesc.c (tdesc_create_flags): Remove.
5973 (tdesc_add_flag): Likewise.
5974 (tdesc_named_type): Likewise.
5975 (tdesc_create_union): Likewise.
5976 (tdesc_create_struct): Likewise.
5977 (tdesc_create_vector): Likewise.
5978 (tdesc_add_bitfield): Likewise.
5979 (tdesc_add_field): Likewise.
5980 (tdesc_set_struct_size): Likewise.
5982 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5984 * tdesc.c (~target_desc): Remove implictly deleted items.
5985 (init_target_desc): Iterate all features.
5986 (tdesc_get_features_xml): Use vector.
5987 (tdesc_create_feature): Create feature.
5988 * tdesc.h (tdesc_feature) Remove
5989 (target_desc): Add features.
5991 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5993 * Makefile.in: Add common/tdesc.c
5994 * tdesc.c (init_target_desc): init all reg_defs from register
5996 (tdesc_create_reg): Create tdesc_reg.
5997 * tdesc.h (tdesc_feature): Add register vector.
5999 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6001 * tdesc.h (struct target_desc) <features>: Change type to
6002 std::vector<std::string>.
6003 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6005 (tdesc_get_features_xml): Likewise.
6006 (tdesc_create_feature): Likewise.
6008 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6010 * regcache.c (find_register_by_number): Return a ref.
6011 (find_regno): Use references.
6012 (register_size): Likewise.
6013 (register_data): Likewise.
6014 * tdesc.c (target_desc::~target_desc): Remove free calls.
6015 (target_desc::operator==): Use std::vector compare.
6016 (init_target_desc): Use reference.
6017 (tdesc_create_reg): Use reg constructors.
6018 * tdesc.h (struct target_desc): Replace pointer with object.
6020 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6022 * regcache.c (find_register_by_number): Make static.
6023 (find_regno): Use find_register_by_number
6024 * regcache.h (struct reg): Remove declaration.
6026 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6028 * tdesc.c (target_desc::~target_desc): Move to here.
6029 (target_desc::operator==): Likewise.
6030 * tdesc.h (target_desc::~target_desc): Move from here.
6031 (target_desc::operator==): Likewise.
6033 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6035 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6037 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6039 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6041 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6042 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6043 and init_registers_s390_gs_linux64.
6045 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6047 * linux-s390-low.c (s390_fill_gs): Remove function.
6048 (s390_fill_gsbc): Remove function.
6049 (s390_regsets): Set fill functions for the guarded storage regsets
6052 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6054 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6055 the word size. Add comment.
6056 (s390_get_wordsize): New function.
6057 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6058 pswm with it. Instead, use s390_get_wordsize to determine the
6059 word size first and derive the correct tdesc from that directly.
6061 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6063 * Makefile.in: Include silent-rules.mk.
6064 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6065 (COMPILE): Add ECHO_CXX.
6066 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6067 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6068 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6069 (version-generated.c): Add ECHO_GEN.
6070 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6071 (IPAGENT_COMPILE): Add ECHO_CXX.
6072 (%-generated.c): Add ECHO_REGDAT.
6074 2018-03-14 Tom Tromey <tom@tromey.com>
6077 * ax.c (ax_printf): Special case for NULL.
6079 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6081 * linux-low.c (linux_qxfer_libraries_svr4): Use
6082 xml_escape_text_append.
6084 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6086 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6088 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6090 * server.c (handle_general_set): Remove unnecessary xstrdup.
6092 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6094 * server.c (parse_debug_format_options): Adjust to
6095 delim_string_to_char_ptr_vec changes.
6096 * thread-db.c (thread_db_load_search): Adjust to
6097 dirnames_to_char_ptr_vec changes.
6099 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6101 * target.h (target_enable_btrace, target_disable_btrace)
6102 (target_read_btrace, target_read_btrace_conf): Turn macro into
6103 inline function. Throw error if target method is not defined.
6104 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6105 check for btrace target method. Be prepared to handle exceptions
6106 from btrace target methods.
6108 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6110 * server.c (captured_main): Change order of error message printed
6111 when the current working directory cannot be found.
6113 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6115 * server.c: Include "filenames.h" and "pathstuff.h".
6116 (program_name): Delete variable.
6117 (program_path): New anonymous class.
6118 (get_exec_wrapper): Use "program_path" instead of
6120 (handle_v_run): Likewise.
6121 (captured_main): Likewise.
6122 (process_serial_event): Likewise.
6124 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6126 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6127 (OBJS): Add "pathstuff.o".
6128 * server.c (current_directory): New global variable.
6129 (captured_main): Initialize "current_directory".
6131 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6133 * tdesc.c: Use common/tdesc.h.
6134 * tdesc.h: Likewise.
6136 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6137 Simon Marchi <simon.marchi@ericsson.com>
6139 * Makefile.in: Switch order of make rules.
6141 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6143 * Makefile.in: Add common directory in build.
6144 * configure.ac: Add common reference.
6145 * configure: Regenerate.
6147 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6149 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6150 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6151 * spu-low.c (spu_target_ops): Likewise.
6152 * win32-low.c (win32_target_ops): Likewise.
6153 * server.c (supported_btrace_packets): Report packets unconditionally.
6154 * target.h (target_ops) <supports_btrace>: Remove.
6155 (target_supports_btrace): Remove.
6157 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6159 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6160 (handle_btrace_disable): Change return type to void. Use exceptions
6162 (handle_btrace_general_set): Catch exception and copy message to
6165 2018-02-08 Tom Tromey <tom@tromey.com>
6167 * linux-low.c (install_software_single_step_breakpoints): Use
6168 make_scoped_restore.
6169 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6170 (do_restore_current_thread_cleanup): Remove.
6171 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6174 2018-02-08 Tom Tromey <tom@tromey.com>
6176 * mem-break.c (set_raw_breakpoint_at): Use
6177 gdb::unique_xmalloc_ptr.
6179 2018-01-30 Pedro Alves <palves@redhat.com>
6182 * target.c (target_terminal::terminal_state): Rename to ...
6183 (target_terminal::m_terminal_state): ... this.
6185 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6187 * linux-low.c (handle_extended_wait): Surround call to
6188 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6190 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6192 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6193 linux_ptrace_attach_fail_reason_string now returning an
6195 (linux_attach): Likewise.
6196 * thread-db.c (attach_thread): Likewise.
6198 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6201 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6202 checking for fs_base/gs_base fields in struct user_regs_struct.
6203 * configure: Regenerate.
6205 2018-01-16 Yao Qi <yao.qi@linaro.org>
6208 * linux-low.c (fetch_register): Call supply_register instead of
6211 2018-01-08 Yao Qi <yao.qi@linaro.org>
6212 Simon Marchi <simon.marchi@ericsson.com>
6214 * Makefile.in (OBS): Remove selftest.o.
6215 * configure.ac: Set srv_selftest_objs if $development is true.
6216 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6217 * configure: Re-generated.
6218 * server.c (captured_main): Wrap variable selftest_filter with
6221 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6223 * server.c (parse_debug_format_options): Return std::string.
6224 (handle_monitor_command, captured_main): Adjust.
6226 2018-01-05 Pedro Alves <palves@redhat.com>
6229 * server.c (captured_main): Pass quiet=false to
6230 save_original_signals_state.
6232 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6234 * gdbreplay.c (gdbreplay_version): Update copyright year in
6236 * server.c (gdbserver_version): Likewise.
6238 2017-12-08 Tom Tromey <tom@tromey.com>
6240 * ax.c (ax_printf): Update.
6242 2017-12-07 Yao Qi <yao.qi@linaro.org>
6244 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6245 aarch64_linux_read_description.
6246 * linux-amd64-ipa.c (idx2mask): New array.
6247 (get_ipa_tdesc): Move idx2mask out.
6248 (initialize_low_tracepoint): Initialize target descriptions.
6249 * linux-i386-ipa.c (idx2mask): New array.
6250 (get_ipa_tdesc): Move idx2mask out.
6251 (initialize_low_tracepoint): Initialize target descriptions.
6253 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6255 * tdesc.c (struct tdesc_type): Change return type.
6256 (tdesc_add_flag): Change parameter type.
6257 (tdesc_add_bitfield): Likewise.
6258 (tdesc_add_field): Likewise.
6259 (tdesc_set_struct_size): Likewise.
6261 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6263 * regcache.c (registers_to_string): Remove unused variable.
6265 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6267 * inferiors.c (for_each_inferior_with_data): Remove.
6268 * inferiors.h (for_each_inferior_with_data): Remove.
6269 * server.c (handle_qxfer_threads_worker): Change parameter type.
6270 (handle_qxfer_threads_proper): Use for_each_thread.
6272 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6274 * inferiors.c (for_each_inferior): Remove.
6275 (clear_inferiors): Use for_each_thread.
6276 * inferiors.h (for_each_inferior): Remove.
6277 * linux-low.c (linux_wait_for_event_filtered): Use
6279 (linux_stabilize_threads): Likewise.
6280 * regcache.c (regcache_release): Likewise.
6281 * server.c (gdb_wants_all_threads_stopped): Likewise.
6282 (clear_pending_status_callback): Remove.
6283 (handle_status): Use for_each_thread.
6284 (captured_main): Likewise.
6285 * win32-low.c (child_init_thread_list): Likewise.
6286 (win32_clear_inferiors): Likewise.
6287 (fake_breakpoint_event): Likewise.
6289 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6291 * inferiors.h (find_inferior): Remove.
6292 * inferiors.c (find_inferior): Remove.
6294 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6296 * linux-low.c (resume_status_pending_p): Update comment.
6297 (need_step_over_p): Update comment.
6299 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6301 * linux-low.c (proceed_one_lwp): Return void, change parameter
6303 (unsuspend_and_proceed_one_lwp): Likewise.
6304 (proceed_all_lwps): Use for_each_thread.
6305 (unstop_all_lwps): Likewise.
6307 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6309 * linux-low.c (linux_resume_one_thread): Return void, take
6311 (linux_resume): Use for_each_thread.
6313 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6315 * linux-low.c (send_sigstop_callback): Return void, change
6316 parameter type. Rename to...
6317 (send_sigstop): ... this.
6318 (suspend_and_send_sigstop_callback): Return void, change parameter
6320 (suspend_and_send_sigstop): ... this.
6321 (stop_all_lwps): Use for_each_thread.
6323 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6325 * linux-low.c (lwp_running): Return bool, remove unused
6327 (linux_stabilize_threads): Use find_thread.
6329 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6331 * linux-low.c (select_singlestep_lwp_callback): Remove.
6332 (count_events_callback): Remove.
6333 (select_event_lwp_callback): Remove.
6334 (select_event_lwp): Use find_thread/for_each_thread.
6336 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6338 * linux-low.c (not_stopped_callback): Return bool, take filter
6340 (linux_wait_for_event_filtered): Use find_thread.
6341 (linux_wait_1): Likewise.
6343 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6345 * linux-low.c (same_lwp): Remove.
6346 (find_lwp_pid): Use find_thread.
6348 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6350 * linux-low.c (delete_lwp_callback): Remove.
6351 (linux_mourn): Use for_each_thread.
6353 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6355 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6356 args parameter, don't check for pid.
6357 (linux_detach): Use for_each_thread.
6359 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6361 * linux-low.c (struct counter): Remove.
6362 (second_thread_of_pid_p): Remove.
6363 (last_thread_of_process_p): Use find_thread.
6365 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6367 * inferiors.c (find_inferior_in_random): Remove.
6368 * inferiors.h (find_inferior_in_random): Remove.
6369 * linux-low.c (status_pending_p_callback): Return bool, accept
6370 parameter ptid directly.
6371 (linux_wait_for_event_filtered): Use find_thread_in_random.
6372 (linux_wait_1): Likewise.
6374 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6376 * inferiors.c (find_inferior_id): Remove.
6377 (find_thread_ptid): Move implemention from find_inferior_id to
6379 * inferiors.h (find_inferior_id): Remove.
6380 * server.c (handle_status): Use find_thread_ptid.
6381 (process_serial_event): Likewise.
6382 * thread-db.c (find_one_thread): Likewise.
6383 (thread_db_thread_handle): Likewise.
6384 * win32-low.c (thread_rec): Likewise.
6385 (child_delete_thread): Likewise.
6386 (win32_thread_alive): Likewise.
6387 (get_child_debug_event): Likewise.
6389 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6391 * linux-mips-low.c (update_watch_registers_callback): Return
6392 void, remove pid_p parameter, don't check for pid.
6393 (mips_insert_point, mips_remove_point): Use for_each_thread.
6395 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6397 * lynx.low (lynx_delete_thread_callback): Remove.
6398 (lynx_mourn): Use for_each_thread.
6400 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6402 * regcache.c (regcache_invalidate_one): Remove.
6403 (regcache_invalidate_pid): use for_each_thread.
6405 2017-11-26 Tom Tromey <tom@tromey.com>
6407 * linux-low.c (linux_create_inferior): Update.
6409 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6411 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6413 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6415 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6416 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6417 * linux-aarch64-tdesc-selftest.c: New file.
6418 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6420 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6422 * configure.srv: Add new file.
6423 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6424 * linux-aarch64-tdesc-selftest.c: New file.
6425 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6427 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6429 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6430 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6431 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6433 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6435 * configure.srv: Add new files.
6436 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6437 aarch64_linux_read_description.
6438 * linux-aarch64-low.c (aarch64_linux_read_description):
6439 Merge with aarch64_arch_setup.
6440 (aarch64_arch_setup): Call aarch64_linux_read_description.
6441 * linux-aarch64-tdesc.c: New file.
6442 * linux-aarch64-tdesc.h: New file.
6444 2017-11-24 Yao Qi <yao.qi@linaro.org>
6446 * configure.srv: Set $srv_regobj for tic6x-linux.
6447 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6448 (tic6x_read_description): Move some code to tic6x_arch_setup.
6449 (tic6x_tdesc_test): New function.
6450 (initialize_low_arch): Call selftests::register_test.
6452 2017-11-22 Yao Qi <yao.qi@linaro.org>
6454 * remote-utils.c (prepare_resume_reply): Use memcpy.
6456 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6458 * linux-low.c (kill_one_lwp_callback): Return void, take
6459 argument directly, don't filter on pid.
6460 (linux_kill): Use for_each_thread.
6462 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6464 * linux-low.c (need_step_over_p): Return bool, remove dummy
6466 (linux_resume, proceed_all_lwps): Use find_thread.
6468 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6470 * linux-low.c (resume_status_pending_p): Return bool, remove
6472 (linux_resume): Use find_thread.
6474 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6476 * linux-low.c (struct thread_resume_array): Remove.
6477 (linux_set_resume_request): Return void, take arguments
6479 (linux_resume): Use for_each_thread.
6481 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6483 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6484 return bool, remove data argument.
6485 (linux_stabilize_threads): Use find_thread.
6487 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6489 * linux-low.c (unsuspend_one_lwp): Remove.
6490 (unsuspend_all_lwps): Use for_each_thread, inline code from
6493 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6495 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6496 * linux-low.c (struct iterate_over_lwps_args): Remove.
6497 (iterate_over_lwps_filter): Remove.
6498 (iterate_over_lwps): Use find_thread.
6500 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6502 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6503 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6504 code from reset_lwp_ptrace_options_callback.
6506 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6508 * linux-arm-low.c (struct update_registers_data): Remove.
6509 (update_registers_callback): Return void, take arguments
6510 directly, don't check thread's pid.
6511 (arm_insert_point, arm_remove_point): Use for_each_thread.
6513 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6515 * win32-low.c (continue_one_thread): Return void, take argument
6517 (child_continue): Use for_each_thread.
6519 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6521 * win32-i386-low.c (update_debug_registers_callback): Rename
6523 (update_debug_registers): ... this, return void, remove pid_p arg.
6524 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6526 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6528 * inferiors.h (struct process_info): Add constructor, initialize
6530 <syscalls_to_catch>: Change type to std::vector<int>.
6531 * inferiors.c (add_process): Allocate process_info with new.
6532 (remove_process): Free process_info with delete.
6533 * linux-low.c (handle_extended_wait): Adjust.
6534 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6535 * server.c (handle_general_set): Adjust.
6537 2017-11-16 Pedro Alves <palves@redhat.com>
6539 * remote-utils.c (remote_close): Block SIGIO signals instead of
6540 uninstalling the SIGIO handler.
6542 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6544 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6546 2017-11-16 Yao Qi <yao.qi@linaro.org>
6548 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6549 (tic6x_store_gregset): Likewise.
6550 (tic6x_usrregs_info): Move it up.
6552 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6554 * Makefile.in: Update arch rules.
6555 * configure.srv: Explicitly mark arch/ files.
6557 2017-11-13 Andreas Schwab <schwab@suse.de>
6559 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6561 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6563 2017-11-06 Pedro Alves <palves@redhat.com>
6565 * config.in, configure: Regenerate.
6567 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6569 * target.c (struct thread_search): Remove.
6570 (thread_search_callback): Remove.
6571 (prepare_to_access_memory): Use for_each_thread instead of
6572 find_inferior. Inline code from thread_search_callback.
6574 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6576 * server.c (struct visit_actioned_threads_data): Remove.
6577 (visit_actioned_threads): Change prototype to take arguments
6579 (resume): Use find_thread instead of find_inferior.
6581 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6583 * server.c (queue_stop_reply_callback): Change prototype, return
6585 (find_status_pending_thread_callback): Remove.
6586 (handle_status): Replace find_inferior with find_thread and
6589 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6591 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6593 (aarch64_store_gregset): Likewise.
6594 (aarch64_fill_fpregset): Likewise.
6595 (aarch64_store_fpregset): Likewise.
6597 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6599 * gdbthread.h (find_thread, for_each_thread): New functions.
6600 * inferiors.c (thread_of_pid): Remove.
6601 (find_any_thread_of_pid): Use find_thread.
6602 * linux-low.c (num_lwps): Use for_each_thread.
6604 2017-10-17 Yao Qi <yao.qi@linaro.org>
6606 * Makefile.in: Remove one rule.
6607 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6609 2017-10-17 Yao Qi <yao.qi@linaro.org>
6611 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6612 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6614 2017-10-17 Yao Qi <yao.qi@linaro.org>
6616 * configure.srv: Rename arm.o with arch/arm.o.
6618 2017-10-17 Yao Qi <yao.qi@linaro.org>
6620 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6621 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6622 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6623 (arch-i386.o, arch-amd64.o): Remove rules.
6624 (arch/%.o): New rule.
6625 Update POSTCOMPILE and COMPILE.pre.
6626 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6627 * configure: Re-generated.
6628 * configure.srv: Replace arch-i386.o with arch/i386.o.
6629 Replace arch-amd64.o with arch/amd64.o.
6631 2017-10-16 Yao Qi <yao.qi@linaro.org>
6633 * configure: Regenerated.
6635 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6637 * inferiors.h: (struct inferior_list): Remove.
6638 (struct inferior_list_entry); Remove.
6639 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6640 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6641 get_first_inferior): Remove.
6642 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6643 find_inferior_id, find_inferior_in_random): Change signature.
6644 * inferiors.c (all_threads): Change type to
6645 std::list<thread_info *>.
6646 (get_thread): Remove macro.
6647 (find_inferior, find_inferior_id): Change signature, implement
6649 (find_inferior_in_random): Change signature, implement using
6650 find_thread_in_random.
6651 (for_each_inferior, for_each_inferior_with_data): Change
6652 signature, implement using for_each_thread.
6653 (add_inferior_to_list, remove_inferior): Remove.
6654 (add_thread, get_first_thread, thread_of_pid,
6655 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6656 (get_first_inferior, one_inferior_p, clear_inferior_list):
6658 (clear_inferiors, get_thread_process): Update.
6659 * gdbthread.h: Include <list>.
6660 (struct thread_info) <entry>: Remove field.
6662 (all_threads): Change type to std::list<thread_info *>.
6663 (get_first_inferior): Add doc.
6664 (find_thread, for_each_thread, find_thread_in_random): New
6666 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6667 * linux-arm-low.c (update_registers_callback): Update.
6668 * linux-low.c (second_thread_of_pid_p): Update.
6669 (kill_one_lwp_callback, linux_detach_lwp_callback,
6670 delete_lwp_callback, status_pending_p_callback, same_lwp,
6671 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6672 iterate_over_lwps, not_stopped_callback,
6673 resume_stopped_resumed_lwps, count_events_callback,
6674 select_singlestep_lwp_callback, select_event_lwp_callback,
6675 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6676 suspend_and_send_sigstop_callback, wait_for_sigstop,
6677 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6678 lwp_running, linux_set_resume_request, resume_status_pending_p,
6679 need_step_over_p, start_step_over, linux_resume_one_thread,
6680 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6681 reset_lwp_ptrace_options_callback): Update.
6682 * linux-mips-low.c (update_watch_registers_callback): Update.
6683 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6685 (free_register_cache_thread_one): Remove.
6686 (regcache_release): Update.
6687 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6688 handle_qxfer_threads_worker): Update.
6689 (handle_query): Update, use list iterator.
6690 (visit_actioned_threads, handle_pending_status,
6691 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6692 clear_pending_status_callback, set_pending_status_callback,
6693 find_status_pending_thread_callback, handle_status,
6694 process_serial_event): Update.
6695 * target.c (thread_search_callback): Update.
6696 * thread-db.c (thread_db_get_tls_address): Update.
6697 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6699 * win32-i386-low.c (update_debug_registers_callback): Update.
6700 * win32-low.c (delete_thread_info, child_delete_thread,
6701 continue_one_thread, suspend_one_thread,
6702 get_child_debug_event): Adjust.
6704 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6706 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6707 * inferiors.h: Include <list>.
6708 (struct process_info) <entry>: Remove field.
6710 (pid_of): Change macro to function.
6711 (ptid_of, lwpid_of): Remove macro.
6712 (all_processes): Change type to std::list<process_info *>.
6713 (ALL_PROCESSES): Remove macro.
6714 (for_each_process, find_process): New function.
6715 * inferiors.c (all_processes): Change type to
6716 std::list<process_info *>.
6717 (find_thread_process): Adjust.
6718 (add_process): Likewise.
6719 (remove_process): Likewise.
6720 (find_process_pid): Likewise.
6721 (get_first_process): Likewise.
6722 (started_inferior_callback): Remove.
6723 (have_started_inferiors_p): Adjust.
6724 (attached_inferior_callback): Remove.
6725 (have_attached_inferiors_p): Adjust.
6726 * linux-low.c (check_zombie_leaders): Likewise.
6727 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6728 (x86_linux_update_xmltarget): Adjust.
6729 * server.c (handle_query): Likewise.
6730 (gdb_reattached_process): Remove.
6731 (handle_status): Adjust.
6732 (kill_inferior_callback): Likewise.
6733 (detach_or_kill_inferior): Remove.
6734 (print_started_pid): Likewise.
6735 (print_attached_pid): Likewise.
6736 (detach_or_kill_for_exit): Update.
6737 (process_serial_event): Likewise.
6738 * linux-arm-low.c (arm_new_fork): Likewise.
6740 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6742 * dll.h: Include <list>.
6743 (struct dll_info): Add constructor.
6744 <entry>: Remove field.
6745 (all_dlls): Change type to std::list<dll_info>.
6746 * dll.c: Include <algorithm>.
6747 (get_dll): Remove macro.
6748 (all_dlls): Change type to std::list<dll_info *>.
6749 (free_one_dll): Remove.
6750 (match_dll): Likewise.
6751 (loaded_dll): Adjust.
6752 (unloaded_dll): Adjust to all_dlls type change, use
6753 std::find_if. Inline code from match_dll.
6754 (clear_dlls): Adjust to all_dlls type change.
6755 * server.c (emit_dll_description): Remove.
6756 (handle_qxfer_libraries): Adjust to all_dlls type change,
6757 integrate emit_dll_description's functionality.
6759 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6761 * linux-low.h (struct linux_target_ops) <delete_process>: New
6763 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6764 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6765 (struct linux_target_ops): Add delete_process callback.
6766 * linux-arm-low.c (arm_delete_process): New.
6767 (struct linux_target_ops): Add delete_process callback.
6768 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6769 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6770 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6771 * linux-mips-low.c (mips_linux_delete_process): New.
6772 (struct linux_target_ops): Add delete_process callback.
6773 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6774 * linux-s390-low.c (struct linux_target_ops): Likewise.
6775 * linux-sh-low.c (struct linux_target_ops): Likewise.
6776 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6777 * linux-tile-low.c (struct linux_target_ops): Likewise.
6778 * linux-x86-low.c (x86_linux_delete_process): New.
6779 (struct linux_target_ops): Add delete_process callback.
6780 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6782 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6784 * linux-aarch64-low.c (the_low_target): Add thread delete
6786 * linux-arm-low.c (arm_delete_thread): New function.
6787 (the_low_target): Add thread delete callback.
6788 * linux-bfin-low.c (the_low_target): Likewise.
6789 * linux-crisv32-low.c (the_low_target): Likewise.
6790 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6792 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6794 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6795 * linux-mips-low.c (mips_linux_delete_thread): New function.
6796 (the_low_target): Add thread delete callback.
6797 * linux-ppc-low.c (the_low_target): Likewise.
6798 * linux-s390-low.c (the_low_target): Likewise.
6799 * linux-sh-low.c (the_low_target): Likewise.
6800 * linux-tic6x-low.c (the_low_target): Likewise.
6801 * linux-tile-low.c (the_low_target): Likewise.
6802 * linux-x86-low.c (the_low_target): Likewise.
6803 * linux-xtensa-low.c (the_low_target): Likewise.
6805 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6807 * win32-low.c: Include "common-inferior.h".
6809 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6811 * inferiors.c (set_inferior_cwd): New function.
6812 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6813 (handle_query): Inform that QSetWorkingDir is supported.
6814 * win32-low.c (create_process): Pass the inferior's cwd to
6817 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6819 * inferiors.c (current_inferior_cwd): New global variable.
6820 (get_inferior_cwd): New function.
6821 * inferiors.h (struct process_info) <cwd>: New field.
6823 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6825 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6826 (OBS): Add gdb_tilde_expand.o.
6828 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6830 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6831 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6833 2017-09-29 Pedro Alves <palves@redhat.com>
6835 * ax.c (gdb_parse_agent_expr): Constify.
6836 * ax.h (gdb_parse_agent_expr): Constify.
6837 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6839 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6840 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6841 * remote-utils.h (read_ptid): Constify.
6842 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6843 (process_point_options, process_serial_event): Constify.
6844 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6845 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6846 (cmd_qtbuffer): Constify.
6848 2017-09-29 Pedro Alves <palves@redhat.com>
6850 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6853 2017-09-29 Pedro Alves <palves@redhat.com>
6855 * linux-low.c (handle_extended_wait): Pass parent thread instead
6856 of process to thread_db_notice_clone.
6857 * linux-low.h (thread_db_notice_clone): Replace parent process
6858 parameter with parent thread parameter.
6859 * thread-db.c (find_one_thread): Add comment.
6860 (thread_db_notice_clone): Replace parent process parameter with
6861 parent thread parameter. Temporarily switch to the parent thread.
6863 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6865 * gdbthread.h: Include "common-gdbthread.h".
6866 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6867 "if" when validating the ptid.
6868 * remote-utils.c: Include "gdbthread.h".
6869 (prepare_resume_reply): Use "switch_to_thread".
6870 * target.c (done_accessing_memory): Likewise.
6872 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6874 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6875 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6876 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6877 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6878 s390x-gs-linux64-ipa.o to ipa_obj.
6879 * linux-s390-low.c (HWCAP_S390_GS): New define.
6880 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6882 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6883 (s390_arch_setup): Check for guarded-storage support and choose
6885 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6886 init_registers_s390x_gs_linux64.
6887 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6889 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6890 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6892 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6894 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6896 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6898 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6899 (thread_db_thread_handle): Declare.
6900 * linux-low.c (linux_target_ops): Initialize thread_handle.
6901 * server.c (handle_qxfer_threads_worker): Add support for
6903 * target.h (struct target_ops): Add new function pointer,
6905 (target_thread_handle): Define.
6906 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6908 (thread_db_thread_handle): New function.
6910 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6912 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6913 * linux-low.h (thread_db_notice_clone): Declare.
6914 * thread-db.c (thread_db_notice_clone): New function.
6916 2017-09-21 Pedro Alves <palves@redhat.com>
6918 * server.c (gdb_read_memory, handle_status, process_serial_event)
6919 (handle_serial_event, handle_target_event): Adjust to
6920 set_desired_thread prototype change.
6921 * target.c (set_desired_thread): Remove 'use_general' parameter
6923 * target.h (set_desired_thread): Remove 'use_general' parameter.
6925 2017-09-20 Tom Tromey <tom@tromey.com>
6927 * target.c (target_terminal::terminal_state): Define.
6928 (target_terminal::init): Rename from target_terminal_init.
6929 (target_terminal::inferior): Rename from
6930 target_terminal_inferior.
6931 (target_terminal::ours): Rename from target_terminal_ours.
6932 (target_terminal::ours_for_output, target_terminal::info): New.
6934 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6936 * server.c (accumulate_file_name_length): Remove.
6937 (emit_dll_description): Adjust to std::string change.
6938 (handle_qxfer_libraries): Use std::string to hold document.
6940 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6942 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6943 return type of xml_escape_text.
6944 * server.c (emit_dll_description): Likewise.
6946 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6948 * server.c (captured_main): Accept argument for --selftest.
6949 Update run_tests call.
6950 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6951 when registering selftests.
6953 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6955 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6956 instead of "VEC" for "target_desc.reg_defs".
6957 (regcache_cpy): Likewise.
6958 (registers_to_string): Likewise.
6959 (registers_from_string): Likewise.
6960 (find_regno): Likewise.
6961 (supply_regblock): Likewise.
6962 (regcache_raw_read_unsigned): Likewise.
6963 * tdesc.c (init_target_desc): Likewise.
6964 (tdesc_create_reg): Likewise.
6965 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6966 (struct target_desc) <reg_defs>: Convert to "std::vector".
6967 (target_desc): Do not initialize "reg_defs".
6968 (~target_desc): Update code to use "std::vector" instead of "VEC"
6969 for "target_desc.reg_defs".
6970 (operator==): Likewise.
6972 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6974 * inferiors.h (thread_to_gdb_id): Remove.
6975 * inferiors.c (thread_to_gdb_id): Remove.
6976 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6977 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6978 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6980 * nto-low.c (nto_fetch_registers, nto_store_registers,
6981 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6983 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6985 * inferiors.h (gdb_id_to_thread_id): Remove.
6986 * inferiors.c (gdb_id_to_thread_id): Remove.
6987 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6988 removal. Move pid declaration closer to where it's used.
6990 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6992 * server.c (handle_detach): New function.
6993 (process_serial_event): Move code out, call handle_detach.
6995 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6997 * server.c (require_running): Rename to ...
6998 (require_running_or_return): ... this ...
6999 (require_running_or_break): ... and this.
7000 (handle_query, process_serial_event): Adjust.
7002 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7004 * linux-low.c (linux_set_resume_request): Remove unused
7007 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7009 * server.c (first_thread_of): Remove.
7010 (process_serial_event): Replace usage of first_thread_of with
7011 find_any_thread_of_pid.
7012 * tracepoint.c (same_process_p): Remove.
7013 (gdb_agent_about_to_close): Replace usage of same_process_p with
7014 find_any_thread_of_pid.
7015 * linux-x86-low.c (same_process_callback): Remove.
7016 (x86_arch_setup_process_callback): Replace usage of
7017 same_process_callback with find_any_thread_of_pid.
7018 * thread-db.c (any_thread_of): Remove.
7019 (switch_to_process): Replace usage of any_thread_of with
7020 find_any_thread_of_pid.
7021 * inferiors.c (thread_pid_matches_callback): Remove.
7022 (find_thread_process): Adjust to use find_any_thread_of_pid.
7024 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7026 * regcache.c (get_thread_regcache): Guard calls to "memset"
7029 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7031 * linux-low.c (handle_extended_wait): Use
7032 "allocate_target_description" instead of "XNEW".
7033 * linux-x86-low.c (initialize_low_arch): Likewise.
7035 2017-09-05 Yao Qi <yao.qi@linaro.org>
7037 * configure.srv (srv_i386_regobj): Remove.
7038 (srv_amd64_regobj): Remove.
7039 (srv_regobj): Set it to "" for x86 non-linux targets.
7040 * linux-x86-tdesc.c (i386_linux_read_description):
7041 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7042 (init_registers_i386): Remove the declaration.
7043 (tdesc_i386): Remove the declaration.
7044 (lynx_i386_arch_setup): Call i386_create_target_description.
7045 * nto-x86-low.c: Likewise.
7046 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7047 [!__x86_64__]: include arch/i386.h.
7048 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7050 2017-09-05 Yao Qi <yao.qi@linaro.org>
7052 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7053 i386/amd64-XXX-linux from it.
7055 2017-09-05 Yao Qi <yao.qi@linaro.org>
7057 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7059 (ipa_amd64_linux_regobj): Remove.
7060 (ipa_x32_linux_regobj): Remove.
7062 2017-09-05 Yao Qi <yao.qi@linaro.org>
7064 * Makefile.in (arch-amd64.o): New rule.
7065 * configure.srv: Append arch-amd64.o.
7066 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7067 (get_ipa_tdesc): Call amd64_linux_read_description.
7068 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7069 and init_registers_amd64_XXX.
7070 * linux-x86-low.c (x86_linux_read_description): Call
7071 amd64_linux_read_description.
7072 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7073 (initialize_low_arch): Don't call init_registers_x32_XXX and
7074 init_registers_amd64_XXX.
7075 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7076 and tdesc_amd64_XXX.
7077 [__x86_64__] (amd64_tdesc_test): New function.
7078 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7079 and init_registers_amd64_XXX.
7080 * linux-x86-tdesc.c: Include arch/amd64.h.
7081 (xcr0_to_tdesc_idx): New function.
7082 (i386_linux_read_description): New function.
7083 (amd64_get_ipa_tdesc_idx): New function.
7084 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7085 (amd64_get_ipa_tdesc): Declare.
7087 2017-09-05 Yao Qi <yao.qi@linaro.org>
7089 * configure.srv (srv_i386_linux_xmlfiles): Remove
7090 i386/i386-XXX-linux.xml from it.
7092 2017-09-05 Yao Qi <yao.qi@linaro.org>
7094 * configure.srv: Set srv_i386_linux_regobj empty if $development
7096 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7097 initialize_low_tdesc.
7098 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7099 with #if initialize_low_tdesc.
7100 * linux-x86-tdesc-selftest.c: New file.
7101 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7103 2017-09-05 Yao Qi <yao.qi@linaro.org>
7105 * Makefile.in (arch-i386.o): New rule.
7106 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7107 (x86_64-*-linux*): Likewise.
7108 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7109 include arch/i386.h.
7110 (i386_linux_read_description): Remove code and call
7111 i386_create_target_description.
7112 * tdesc.c (allocate_target_description): New function.
7113 * tdesc.h (set_tdesc_architecture): Remove declaration.
7114 (set_tdesc_osabi): Likewise.
7116 2017-09-05 Yao Qi <yao.qi@linaro.org>
7118 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7119 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7120 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7122 * server.c (get_features_xml): Call tdesc_get_features_xml.
7123 * tdesc.c (set_tdesc_architecture): New function.
7124 (set_tdesc_osabi): New function.
7125 (tdesc_get_features_xml): New function.
7126 (tdesc_create_feature): Add an argument.
7127 * tdesc.h (struct target_desc) <features>: New field.
7128 <arch, osabi>: New field.
7129 (~target_desc): xfree features, arch, and osabi.
7130 (target_desc::oerator==): Don't compare .xmltarget.
7131 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7132 (set_tdesc_osabi): Likewise.
7133 (tdesc_get_features_xml): Likewise.
7135 2017-09-05 Yao Qi <yao.qi@linaro.org>
7137 * linux-x86-tdesc.c: Include selftest.h.
7138 (i386_tdesc_test): New function.
7139 (initialize_low_tdesc): Call selftests::register_test.
7140 * tdesc.h: Include regdef.h.
7141 (target_desc): Override operator == and !=.
7143 2017-09-05 Yao Qi <yao.qi@linaro.org>
7145 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7146 (ipa_obj): Likewise.
7147 * linux-i386-ipa.c: Include common/x86-xstate.h
7148 (get_ipa_tdesc): Call i386_linux_read_description.
7149 (initialize_low_tracepoint): Don't call init_registers_XXX
7150 functions, call initialize_low_tdesc instead.
7151 * linux-x86-low.c (x86_linux_read_description): Call
7152 i386_linux_read_description.
7153 (initialize_low_arch): Don't call init_registers_i386_XXX
7154 functions, call initialize_low_tdesc.
7155 * linux-x86-tdesc.c: New file.
7156 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7157 (i386_get_ipa_tdesc_idx): Declare.
7158 (i386_get_ipa_tdesc): Declare.
7159 (initialize_low_tdesc): Declare.
7161 2017-09-05 Yao Qi <yao.qi@linaro.org>
7163 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7166 2017-09-05 Yao Qi <yao.qi@linaro.org>
7168 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7169 * regcache.c (get_thread_regcache): Use VEC_length.
7170 (init_register_cache): Likewise.
7171 (regcache_cpy): Likewise.
7172 (registers_to_string): Iterate reg_defs via VEC_iterate.
7173 (find_regno): Likewise.
7174 (find_register_by_number): Use VEC_index.
7175 (register_size): Call find_register_by_number.
7176 (register_data): Call find_register_by_number.
7177 (supply_regblock): Use VEC_length.
7178 (regcache_raw_read_unsigned): Likewise.
7179 * tdesc.c (init_target_desc): Iterate reg_defs via
7181 (default_description): Update initializer.
7182 (copy_target_description): Don't update field num_registers.
7183 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7184 <num_registers>: Remove.
7186 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7188 * Makefile.in (.SECONDARY): Define target.
7190 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7192 * linux-low.c (linux_wait_1): Adjust.
7193 * server.c (queue_stop_reply_callback): Adjust.
7195 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7197 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7198 QEnvironmentUnset and QEnvironmentReset packets.
7199 (handle_query): Inform remote that QEnvironmentHexEncoded,
7200 QEnvironmentUnset and QEnvironmentReset are supported.
7202 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7204 * inferiors.h (inferior_target_data): Rename to ...
7205 (thread_target_data): ... this.
7206 (inferior_regcache_data): Rename to ...
7207 (thread_regcache_data): ... this.
7208 (set_inferior_regcache_data): Rename to ...
7209 (set_thread_regcache_data): ... this.
7210 * inferiors.c (inferior_target_data): Rename to ...
7211 (thread_target_data): ... this.
7212 (inferior_regcache_data): Rename to ...
7213 (thread_regcache_data): ... this.
7214 (set_inferior_regcache_data): Rename to ...
7215 (set_thread_regcache_data): ... this.
7216 (free_one_thread): Update.
7217 * linux-low.h (get_thread_lwp): Update.
7218 * regcache.c (get_thread_regcache): Update.
7219 (regcache_invalidate_thread): Update.
7220 (free_register_cache_thread): Update.
7221 * win32-i386-low.c (update_debug_registers_callback): Update.
7222 (win32_get_current_dr): Update.
7223 * win32-low.c (thread_rec): Update.
7224 (delete_thread_info): Update.
7225 (continue_one_thread): Update.
7226 (suspend_one_thread): Update.
7228 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7230 * inferiors.c (set_inferior_target_data): Remove.
7231 * inferiors.h (set_inferior_target_data): Remove.
7233 2017-08-18 Yao Qi <yao.qi@linaro.org>
7235 * Makefile.in (OBS): Add selftest.o.
7236 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7237 * configure, config.in: Re-generated.
7238 * server.c: Include common/sefltest.h.
7239 (captured_main): Handle option --selftest.
7241 2017-08-09 Yao Qi <yao.qi@linaro.org>
7243 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7244 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7245 i386-avx-mpx.o and i386-mmx.o.
7246 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7247 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7248 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7249 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7250 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7251 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7252 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7253 i386/amd64-avx-mpx.xml.
7255 2017-08-09 Yao Qi <yao.qi@linaro.org>
7257 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7258 and x32-avx-avx512.o.
7259 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7260 i386/x32-avx-avx512.xml.
7262 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7264 * tracepoint.h (enum class fast_tpoint_collect_result): New
7266 (fast_tracepoint_collecting): Change return type to
7267 fast_tpoint_collect_result.
7268 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7269 * linux-low.h: Include tracepoint.h.
7270 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7271 fast_tpoint_collect_result.
7272 * linux-low.c (handle_tracepoints): Adjust.
7273 (linux_fast_tracepoint_collecting): Change return type to
7274 fast_tpoint_collect_result.
7275 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7276 linux_wait_1, stuck_in_jump_pad_callback,
7277 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7278 proceed_one_lwp): Adjust to type change.
7280 2017-07-10 Yao Qi <yao.qi@linaro.org>
7282 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7284 2017-06-29 Yao Qi <yao.qi@linaro.org>
7286 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7288 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7290 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7292 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7294 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7296 * linux-low.c (linux_create_inferior): Adjust code to access the
7297 environment information via 'gdb_environ' class.
7298 * lynx-low.c (lynx_create_inferior): Likewise.
7299 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7300 (get_environ): Return a pointer to 'our_environ'.
7301 (captured_main): Initialize 'our_environ'.
7302 * server.h (get_environ): Adjust prototype.
7303 * spu-low.c (spu_create_inferior): Adjust code to access the
7304 environment information via 'gdb_environ' class.
7306 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7308 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7309 usage of "register" keyword.
7311 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7313 * configure: Re-generate.
7315 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7317 * configure: Re-generate.
7319 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7321 * Makefile.in (COMPILE.pre): Add "-x c++".
7323 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7325 * fork-child.c: Conditionally include <signal.h>.
7327 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7329 * server.c (handle_general_set): Handle new packet
7330 "QStartupWithShell".
7331 (handle_query): Add "QStartupWithShell" to the list of supported
7333 (gdbserver_usage): Add help text explaining the
7334 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7336 (captured_main): Recognize and act upon the presence of the new
7339 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7340 Pedro Alves <palves@redhat.com>
7342 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7343 * configure: Regenerate.
7344 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7346 (i[34567]86-*-lynxos*): Likewise.
7347 (spu*-*-*): Likewise.
7348 * fork-child.c: New file.
7349 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7351 (linux_ptrace_fun): New function.
7352 (linux_create_inferior): Adjust function prototype to reflect
7353 change on "target.h". Adjust function code to use
7355 (linux_request_interrupt): Delete "signal_pid".
7356 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7357 (lynx_ptrace_fun): New function.
7358 (lynx_create_inferior): Adjust function prototype to reflect
7359 change on "target.h". Adjust function code to use
7361 * nto-low.c (nto_create_inferior): Adjust function prototype and
7362 code to reflect change on "target.h". Update comments.
7363 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7364 "common-terminal.h" and "environ.h".
7365 (terminal_fd): Moved to fork-child.c.
7366 (old_foreground_pgrp): Likewise.
7367 (restore_old_foreground_pgrp): Likewise.
7368 (last_status): Make it global.
7369 (last_ptid): Likewise.
7370 (our_environ): New variable.
7371 (startup_with_shell): Likewise.
7372 (program_name): Likewise.
7373 (program_argv): Rename to...
7374 (program_args): ...this.
7375 (wrapper_argv): New variable.
7376 (start_inferior): Delete function.
7377 (get_exec_wrapper): New function.
7378 (get_exec_file): Likewise.
7379 (get_environ): Likewise.
7380 (prefork_hook): Likewise.
7381 (post_fork_inferior): Likewise.
7382 (postfork_hook): Likewise.
7383 (postfork_child_hook): Likewise.
7384 (handle_v_run): Update code to deal with arguments coming from the
7385 remote host. Update calls from "start_inferior" to
7387 (captured_main): Likewise. Initialize environment variable. Call
7389 * server.h (post_fork_inferior): New prototype.
7390 (get_environ): Likewise.
7391 (last_status): Declare.
7392 (last_ptid): Likewise.
7393 (signal_pid): Likewise.
7394 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7395 (spu_ptrace_fun): New function.
7396 (spu_create_inferior): Adjust function prototype to reflect change
7397 on "target.h". Adjust function code to use "fork_inferior".
7398 * target.c (target_terminal_init): New function.
7399 (target_terminal_inferior): Likewise.
7400 (target_terminal_ours): Likewise.
7401 * target.h: Include <vector>.
7402 (struct target_ops) <create_inferior>: Update prototype.
7403 (create_inferior): Update macro.
7404 * utils.c (gdb_flush_out_err): New function.
7405 * win32-low.c (win32_create_inferior): Adjust function prototype
7406 and code to reflect change on "target.h".
7408 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7410 * inferiors.c (switch_to_thread): New function.
7412 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7414 * Makefile.in (SFILE): Add "common/job-control.c".
7415 (OBS): Add "job-control.o".
7417 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7419 * Makefile: Remove "@host_makefile_frag@".
7421 2017-05-05 Pedro Alves <palves@redhat.com>
7423 * configure: Regenerate.
7425 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7427 * configure: Regenerate.
7429 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7431 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7432 software_single_step change of return type to
7433 std::vector<CORE_ADDR>.
7434 * linux-low.c (install_software_single_step_breakpoints):
7436 * linux-low.h (install_software_single_step_breakpoints):
7439 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7441 * remote-utils.c: Include "gdb_termios.h" instead of
7443 * terminal.h: Delete file.
7445 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7447 * server.c: Include <vector>.
7448 <program_argv, wrapper_argv>: Convert to std::vector.
7449 (start_inferior): Rewrite function to use C++.
7450 (handle_v_run): Likewise. Update code that calculates the argv
7451 based on the vRun packet; use C++.
7452 (captured_main): Likewise.
7454 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7456 * server.c (handle_v_cont): Initialize thread_resume::thread
7459 2017-04-05 Pedro Alves <palves@redhat.com>
7461 * configure: Regenerate.
7463 2017-04-05 Pedro Alves <palves@redhat.com>
7465 * gdbreplay.c (sync_error): Constify.
7466 * linux-x86-low.c (push_opcode): Constify.
7468 2017-04-05 Pedro Alves <palves@redhat.com>
7470 * win32-low.c (get_child_debug_event)
7471 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7472 Report TARGET_WAITKIND_SPURIOUS instead.
7474 2017-04-05 Pedro Alves <palves@redhat.com>
7476 * remote-utils.c (remote_prepare, remote_open): Constify.
7477 * remote-utils.h (remote_prepare, remote_open): Constify.
7478 * server.c (captured_main): Constify 'port' handling.
7480 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7482 * Makefile.in (clean): Clear .deps.
7484 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7486 * .gitignore: Remove generated files, replace with wildcard.
7487 * (clean): Replace removal of generated files with wildcard.
7488 (version.c): Replace with...
7489 (version-generated.c): ...this.
7490 (xml-builtin.c): Replace with...
7491 (xml-builtin-generated.c): ...this.
7492 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7493 (%.c: *regformats*): Replace with...
7494 (%-generated.c: *regformats*): ...this.
7496 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7498 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7499 (xtensa_fill_gregset): Call collect_register_by_name for
7501 (xtensa_store_gregset): Call supply_register_by_name for
7504 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7506 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7507 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7508 (xtensa_store_gregset): Call supply_register for all registers in
7509 a0_regnum..a0_regnum + C0_NREGS range.
7511 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7513 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7514 (ax-ipa.o: ax.c): Remove.
7515 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7516 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7517 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7518 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7519 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7521 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7523 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7524 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7525 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7526 (errors-ipa.o: ../common/errors.c): Remove.
7527 (format-ipa.o: ../common/format.c): Remove.
7528 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7530 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7532 * Makefile.in (%-ipa.o: %.c): New rule.
7533 (tracepoint-ipa.o: tracepoint.c): Remove.
7534 (utils-ipa.o: utils.c): Remove.
7535 (remote-utils-ipa.o: remote-utils.c): Remove.
7536 (regcache-ipa.o: regcache.c): Remove.
7537 (i386-linux-ipa.o: i386-linux.c): Remove.
7538 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7539 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7540 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7541 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7542 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7543 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7544 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7545 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7546 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7547 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7548 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7549 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7550 (aarch64-ipa.o: aarch64.c): Remove.
7551 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7552 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7553 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7554 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7555 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7556 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7557 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7558 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7559 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7560 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7561 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7562 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7563 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7564 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7565 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7566 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7567 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7568 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7569 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7570 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7571 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7572 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7573 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7574 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7575 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7576 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7577 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7578 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7579 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7580 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7581 (tdesc-ipa.o: tdesc.c): Remove.
7582 (x32-linux-ipa.o: x32-linux.c): Remove.
7583 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7584 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7586 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7588 * Makefile.in (%.o: ../arch/%.c): New rule.
7589 (arm.o: ../arch/arm.c): Remove.
7590 (arm-linux.o: ../arch/arm-linux.c): Remove.
7591 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7592 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7594 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7596 * Makefile.in (%.o: ../nat/%.c): New rule.
7597 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7598 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7599 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7600 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7601 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7602 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7603 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7604 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7605 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7606 (linux-personality.o: ../nat/linux-personality.c): Remove.
7607 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7608 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7609 (x86-linux.o: ../nat/x86-linux.c): Remove.
7610 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7611 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7613 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7615 * Makefile.in (%.o: ../common/%.c): New rule.
7616 (signals.o: ../common/signals.c): Remove.
7617 (print-utils.o: ../common/print-utils.c): Remove.
7618 (rsp-low.o: ../common/rsp-low.c): Remove.
7619 (common-utils.o: ../common/common-utils.c): Remove.
7620 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7621 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7622 (vec.o: ../common/vec.c): Remove.
7623 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7624 (xml-utils.o: ../common/xml-utils.c): Remove.
7625 (ptid.o: ../common/ptid.c): Remove.
7626 (buffer.o: ../common/buffer.c): Remove.
7627 (format.o: ../common/format.c): Remove.
7628 (filestuff.o: ../common/filestuff.c): Remove.
7629 (agent.o: ../common/agent.c): Remove.
7630 (errors.o: ../common/errors.c): Remove.
7631 (environ.o: ../common/environ.c): Remove.
7632 (common-debug.o: ../common/common-debug.c): Remove.
7633 (cleanups.o: ../common/cleanups.c): Remove.
7634 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7635 (fileio.o: ../common/fileio.c): Remove.
7636 (common-regcache.o: ../common/common-regcache.c): Remove.
7637 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7638 (new-op.o: ../common/new-op.c): Remove.
7639 (btrace-common.o: ../common/btrace-common.c): Remove.
7641 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7643 * Makefile.in (%.o: ../target/%.c): New rule.
7644 (waitstatus.o: ../target/waitstatus.c): Remove.
7646 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7649 (%.c: ../regformats/%.dat,
7650 (%.c: ../regformats/arm/%.dat,
7651 (%.c: ../regformats/i386/%.dat,
7652 (%.c: ../regformats/rs6000/%.dat): New rules.
7653 (aarch64.c): Remove.
7654 (reg-arm.c): Remove.
7655 (arm-with-iwmmxt.c): Remove.
7656 (arm-with-vfpv2.c): Remove.
7657 (arm-with-vfpv3.c): Remove.
7658 (arm-with-neon.c): Remove.
7659 (reg-bfin.c): Remove.
7660 (reg-cris.c): Remove.
7661 (reg-crisv32.c): Remove.
7663 (i386-linux.c): Remove.
7664 (i386-avx.c): Remove.
7665 (i386-avx-linux.c): Remove.
7666 (i386-avx-avx512.c): Remove.
7667 (i386-avx-avx512-linux.c): Remove.
7668 (i386-mpx.c): Remove.
7669 (i386-mpx-linux.c): Remove.
7670 (i386-avx-mpx-avx512-pku.c): Remove.
7671 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7672 (i386-avx-mpx.c): Remove.
7673 (i386-avx-mpx-linux.c): Remove.
7674 (i386-mmx.c): Remove.
7675 (i386-mmx-linux.c): Remove.
7676 (reg-ia64.c): Remove.
7677 (reg-m32r.c): Remove.
7678 (reg-m68k.c): Remove.
7680 (mips-linux.c): Remove.
7681 (mips-dsp-linux.c): Remove.
7682 (mips64-linux.c): Remove.
7683 (mips64-dsp-linux.c): Remove.
7684 (nios2-linux.c): Remove.
7685 (powerpc-32.c): Remove.
7686 (powerpc-32l.c): Remove.
7687 (powerpc-altivec32l.c): Remove.
7688 (powerpc-cell32l.c): Remove.
7689 (powerpc-vsx32l.c): Remove.
7690 (powerpc-isa205-32l.c): Remove.
7691 (powerpc-isa205-altivec32l.c): Remove.
7692 (powerpc-isa205-vsx32l.c): Remove.
7693 (powerpc-e500l.c): Remove.
7694 (powerpc-64l.c): Remove.
7695 (powerpc-altivec64l.c): Remove.
7696 (powerpc-cell64l.c): Remove.
7697 (powerpc-vsx64l.c): Remove.
7698 (powerpc-isa205-64l.c): Remove.
7699 (powerpc-isa205-altivec64l.c): Remove.
7700 (powerpc-isa205-vsx64l.c): Remove.
7701 (s390-linux32.c): Remove.
7702 (s390-linux32v1.c): Remove.
7703 (s390-linux32v2.c): Remove.
7704 (s390-linux64.c): Remove.
7705 (s390-linux64v1.c): Remove.
7706 (s390-linux64v2.c): Remove.
7707 (s390-te-linux64.c): Remove.
7708 (s390-vx-linux64.c): Remove.
7709 (s390-tevx-linux64.c): Remove.
7710 (s390x-linux64.c): Remove.
7711 (s390x-linux64v1.c): Remove.
7712 (s390x-linux64v2.c): Remove.
7713 (s390x-te-linux64.c): Remove.
7714 (s390x-vx-linux64.c): Remove.
7715 (s390x-tevx-linux64.c): Remove.
7716 (tic6x-c64xp-linux.c): Remove.
7717 (tic6x-c64x-linux.c): Remove.
7718 (tic6x-c62x-linux.c): Remove.
7720 (reg-sparc64.c): Remove.
7721 (reg-spu.c): Remove.
7723 (amd64-linux.c): Remove.
7724 (amd64-avx.c): Remove.
7725 (amd64-avx-linux.c): Remove.
7726 (amd64-avx-avx512.c): Remove.
7727 (amd64-avx-avx512-linux.c): Remove.
7728 (amd64-mpx.c): Remove.
7729 (amd64-mpx-linux.c): Remove.
7730 (amd64-avx-mpx-avx512-pku.c): Remove.
7731 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7732 (amd64-avx-mpx.c): Remove.
7733 (amd64-avx-mpx-linux.c): Remove.
7735 (x32-linux.c): Remove.
7736 (x32-avx.c): Remove.
7737 (x32-avx-linux.c): Remove.
7738 (x32-avx-avx512.c): Remove.
7739 (x32-avx-avx512-linux.c): Remove.
7740 (reg-xtensa.c): Remove.
7741 (reg-tilegx.c): Remove.
7742 (reg-tilegx32.c): Remove.
7744 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7746 * Makefile.in (SFILES): Add "common/environ.c".
7747 (OBJS): Add "common/environ.h".
7749 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7751 * configure.ac: Check if the fs_base and gs_base members of
7752 `struct user_regs_struct' exist.
7753 * config.in: Regenerated.
7754 * configure: Likewise.
7756 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7758 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7760 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7761 (get_next_pcs_syscall_next_pc): Likewise.
7763 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7765 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7766 * nto-x86-low.c: Likewise.
7768 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7770 * Makefile.in: Include disable-implicit-rules.mk.
7772 2016-11-23 Pedro Alves <palves@redhat.com>
7774 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7775 (debug_vprintf): Use std::chrono::steady_clock instead of
7776 gettimeofday. Use '.' instead of ':'.
7777 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7778 (get_timestamp): Use std::chrono::steady_clock instead of
7781 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7783 * Makefile.in: Fix whitespace formatting.
7785 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7787 * Makefile.in (SFILES, OBS): Flatten list and order
7790 2016-11-23 Pedro Alves <palves@redhat.com>
7792 * event-loop.c (handle_file_event): Use warning.
7793 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7794 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7797 2016-11-23 Pedro Alves <palves@redhat.com>
7799 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7801 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7802 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7803 debug_printf and debug_flush for debug output.
7804 * server.c (handle_general_set): Likewise.
7805 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7808 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7810 * Makefile.in (.c.o): Replace rule with ...
7811 (%.o: %.c): ... this one.
7813 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7815 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7816 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7818 * configure.ac: Remove checks for the make program.
7819 * configure: Re-generate.
7821 2016-10-28 Pedro Alves <palves@redhat.com>
7823 * Makefile.in (CXX_DIALECT): Get from configure.
7824 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7825 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7826 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7827 * config.in: Regenerate.
7828 * configure: Regenerate.
7830 2016-10-27 Yao Qi <yao.qi@linaro.org>
7832 * linux-low.c (linux_supports_range_stepping): Return true if
7833 can_software_single_step return true.
7835 2016-10-27 Yao Qi <yao.qi@linaro.org>
7837 * inferiors.c (find_inferior_in_random): New function.
7838 * inferiors.h (find_inferior_in_random): Declare.
7839 * linux-low.c (linux_wait_for_event_filtered): Call
7840 find_inferior_in_random instead of find_inferior.
7842 2016-10-27 Yao Qi <yao.qi@linaro.org>
7844 * linux-low.c (linux_wait_1): If single-step breakpoints are
7845 inserted, remove them.
7847 2016-10-26 Pedro Alves <palves@redhat.com>
7849 * linux-low.c (handle_extended_wait): Link parent/child fork
7851 (linux_wait_1): Unlink them.
7852 (linux_set_resume_request): Ignore resume requests for
7853 already-resumed and unhandled fork child threads.
7854 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7855 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7857 (handle_v_requests) <vCont>: Don't call require_running.
7858 * server.h (in_queued_stop_replies): New declaration.
7860 2016-10-24 Yao Qi <yao.qi@linaro.org>
7863 * linux-aarch64-low.c (append_insns): Cast the return value to
7866 2016-10-10 Yao Qi <yao.qi@linaro.org>
7868 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7870 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7872 * target.c (target_supports_multi_process): New function, moved
7874 * target.h (target_supports_multi_process): ... here. Remove
7877 2016-10-05 Tom Tromey <tom@tromey.com>
7880 * tracepoint.c (handle_tracepoint_bkpts): Check
7881 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7883 2016-10-05 Yao Qi <yao.qi@linaro.org>
7885 * configure.srv: Update the path of arm-*.xml files.
7887 2016-10-05 Terry Guo <terry.guo@arm.com>
7888 Yao Qi <yao.qi@linaro.org>
7890 * Makefile.in: Adjust the path of rules.
7891 * configure.srv: Update the path of xml files.
7892 * regformats/arm-with-iwmmxt.dat: Regenerated.
7893 * regformats/arm-with-neon.dat: Likewise.
7894 * regformats/arm-with-vfpv2.dat: Likewise.
7895 * regformats/arm-with-vfpv3.dat Likewise.
7897 2016-09-30 Yao Qi <yao.qi@linaro.org>
7900 * target.c (target_stop_and_wait): Don't call
7901 target_continue_no_signal, use resume_stop instead.
7903 2016-09-26 Yao Qi <yao.qi@linaro.org>
7905 * linux-low.c (linux_wait_1): Call debug_exit.
7907 2016-09-23 Pedro Alves <palves@redhat.com>
7909 * Makefile.in (SFILES): Add common/new-op.c.
7910 (OBS): Add common/new-op.o.
7911 (new-op.o): New rule.
7913 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7915 * .gitinore: Ignore more files.
7917 2016-09-21 Yao Qi <yao.qi@linaro.org>
7919 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7922 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7924 * server.c (start_inferior): Call target_mourn_inferior instead of
7925 mourn_inferior; pass ptid_t argument to it.
7927 (handle_target_event): Likewise.
7928 * target.c (target_mourn_inferior): New function.
7929 * target.h (mourn_inferior): Delete macro.
7931 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7933 * linux-low.c (lwp_is_stepping): New function.
7935 2016-09-06 Carl Love <cel@us.ibm.com>
7937 * server.c (start_inferior): Fixed comment, requested comment change
7938 didn't get updated correctly. Removed reference to ptrace () call as
7939 it is only true on Linux systems.
7941 2016-09-06 Carl Love <cel@us.ibm.com>
7943 * server.c (start_inferior): Do not call
7944 function target_post_create_inferior () if the
7945 inferior process has already exited.
7947 2016-09-05 Pedro Alves <palves@redhat.com>
7949 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7950 (COMPILE.pre, CC_LD): Use CXX directly.
7951 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7952 * acinclude.m4: Don't include build-with-cxx.m4.
7953 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7954 * configure: Regenerate.
7956 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7959 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7960 call writing data to own_buf.
7962 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7964 * target.c (mywait): Call target_wait instead of
7966 (target_wait): New function.
7968 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7970 * server.c (start_inferior): New variable 'ptid'. Replace calls
7971 to the_target->resume by target_continue{,_no_signal}, depending
7973 * target.c (target_stop_and_wait): Call target_continue_no_signal
7974 instead of the_target->resume.
7975 (target_continue): New function.
7977 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7979 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7981 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7984 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7986 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7987 * linux-arm-low.c (ps_get_thread_area): Likewise.
7988 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7989 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7990 * linux-mips-low.c (ps_get_thread_area): Likewise.
7991 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7992 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7993 * linux-x86-low.c (ps_get_thread_area): Likewise.
7994 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7996 2016-08-19 Pedro Alves <palves@redhat.com>
7998 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8000 2016-08-19 Pedro Alves <palves@redhat.com>
8002 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8003 comment. Use memcpy instead of casting through unsigned long.
8005 2016-08-19 Pedro Alves <palves@redhat.com>
8007 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8008 allocating around 0x80000000.
8010 2016-08-19 Pedro Alves <palves@redhat.com>
8013 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8014 (x32-avx512-linux-ipa.o): New rules.
8015 * configure.ac (x86_64-*-linux*): New x32 check.
8016 * configure.srv (ipa_x32_linux_regobj): New.
8017 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8018 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8020 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8022 * configure: Regenerate.
8024 2016-08-09 Pedro Alves <palves@redhat.com>
8027 * Makefile.in (OBS): Add signals-state-save-restore.o.
8028 (signals-state-save-restore.o): New rule.
8029 * config.in: Regenerate.
8030 * configure: Regenerate.
8031 * linux-low.c: Include "signals-state-save-restore.h".
8032 (linux_create_inferior): Call
8033 restore_original_signals_state.
8034 * server.c: Include "dispositions-save-restore.h".
8035 (captured_main): Call save_original_signals_state.
8037 2016-08-05 Pedro Alves <palves@redhat.com>
8039 * configure: Regenerate.
8041 2016-08-04 Yao Qi <yao.qi@linaro.org>
8043 * linux-low.c (regsets_fetch_inferior_registers): Check
8044 errno is ESRCH or not.
8046 2016-08-02 Yao Qi <yao.qi@linaro.org>
8048 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8049 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8050 (thread_db_load_search): Update.
8051 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8052 td_ta_set_event and td_ta_event_getmsg.
8054 2016-07-26 Pedro Alves <palves@redhat.com>
8057 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8058 of unsigned long for 64-bit registers and use uint32_t instead of
8059 unsigned int for 32-bit registers.
8061 2016-07-26 Pedro Alves <palves@redhat.com>
8063 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8066 2016-07-21 Tom Tromey <tom@tromey.com>
8068 * configure: Rebuild.
8070 2016-07-21 Yao Qi <yao.qi@linaro.org>
8072 * mem-break.c (find_gdb_breakpoint): Cast bp to
8073 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8075 2016-07-21 Yao Qi <yao.qi@linaro.org>
8077 * server.c (handle_v_requests): Support s and S actions
8078 if target_supports_software_single_step return true.
8080 2016-07-21 Yao Qi <yao.qi@linaro.org>
8082 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8083 is resume_step, call maybe_hw_step.
8084 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8086 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8088 (proceed_one_lwp): If resume request is resume_step, install
8089 reinsert breakpoints and call maybe_hw_step.
8091 2016-07-21 Yao Qi <yao.qi@linaro.org>
8093 * linux-low.c (proceed_one_lwp): Declare.
8094 (linux_resume_one_thread): Remove local variable 'step'.
8095 Lift code enqueue signal. Call proceed_one_lwp instead of
8096 linux_resume_one_lwp.
8098 2016-07-21 Yao Qi <yao.qi@linaro.org>
8100 * linux-low.c (linux_resume_one_thread): Call
8101 enqueue_pending_signal.
8103 2016-07-21 Yao Qi <yao.qi@linaro.org>
8105 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8106 * inferiors.c (do_restore_current_thread_cleanup): New function.
8107 (make_cleanup_restore_current_thread): Likewise.
8108 * linux-low.c (install_software_single_step_breakpoints): Call
8109 make_cleanup_restore_current_thread. Switch current_thread to
8112 2016-07-21 Yao Qi <yao.qi@linaro.org>
8114 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8115 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8116 (clone_one_breakpoint): Likewise.
8117 (delete_reinsert_breakpoints): Change parameter to thread.
8119 (has_reinsert_breakpoints): Likewise.
8120 (uninsert_reinsert_breakpoints): Likewise.
8121 (reinsert_reinsert_breakpoints): Likewise.
8122 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8123 (delete_reinsert_breakpoints): Likewise.
8124 (reinsert_reinsert_breakpoints): Likewise.
8125 (uninsert_reinsert_breakpoints): Likewise.
8126 (has_reinsert_breakpoints): Likewise.
8128 2016-07-21 Yao Qi <yao.qi@linaro.org>
8130 * inferiors.c (get_thread_process): Make parameter const.
8131 * inferiors.h (get_thread_process): Update declaration.
8132 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8133 Add new parameters child_thread and parent_thread. Callers
8135 * mem-break.h (clone_all_breakpoints): Update declaration.
8137 2016-07-21 Yao Qi <yao.qi@linaro.org>
8139 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8140 <command_list, handler>: Remove.
8141 (struct gdb_breakpoint): New.
8142 (struct other_breakpoint): New.
8143 (struct reinsert_breakpoint): New.
8144 (is_gdb_breakpoint): New function.
8145 (any_persistent_commands): Update command_list if
8146 is_gdb_breakpoint returns true.
8147 (set_breakpoint): Create breakpoints according to their types.
8148 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8149 (set_gdb_breakpoint_1): Likewise.
8150 (set_gdb_breakpoint): Likewise.
8151 (clear_breakpoint_conditions): Change parameter type to
8152 'struct gdb_breakpoint *'.
8153 (clear_breakpoint_commands): Likewise.
8154 (clear_breakpoint_conditions_and_commands): Likewise.
8155 (add_condition_to_breakpoint): Likewise.
8156 (add_breakpoint_condition): Likewise.
8157 (add_commands_to_breakpoint): Likewise.
8158 (check_breakpoints): Check other_breakpoint.
8159 (clone_one_breakpoint): Clone breakpopint according to its type.
8160 * mem-break.h (struct gdb_breakpoint): Declare.
8161 (set_gdb_breakpoint): Update declaration.
8162 (clear_breakpoint_conditions_and_commands): Likewise.
8163 (add_breakpoint_condition): Likewise.
8164 (add_breakpoint_commands): Likewise.
8165 * server.c (process_point_options): Change parameter type to
8166 'struct gdb_breakpoint *'.
8168 2016-07-21 Yao Qi <yao.qi@linaro.org>
8170 * mem-break.c (set_breakpoint_at): Rename it to ...
8171 (set_breakpoint_type_at): ... it.
8172 (set_breakpoint_at): Call set_breakpoint_type_at.
8173 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8174 * mem-break.h (set_breakpoint_at): Update comments.
8176 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8178 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8180 (nios2_store_gregset): Likewise.
8182 2016-07-01 Pedro Alves <palves@redhat.com>
8183 Antoine Tremblay <antoine.tremblay@ericsson.com>
8185 * linux-low.c: Change interface to take the target lwp_info
8186 pointer directly and return void. Handle detaching from a zombie
8188 (linux_detach_lwp_callback): New function.
8189 (linux_detach): Detach from the leader thread after detaching from
8192 2016-06-28 Yao Qi <yao.qi@linaro.org>
8194 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8195 for variable new_offset.
8196 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8197 (aarch64_ftrace_insn_reloc_cb): Likewise.
8198 (aarch64_ftrace_insn_reloc_tb): Likewise.
8199 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8200 PRIx64 instead of PRIx32.
8202 2016-06-28 Yao Qi <yao.qi@linaro.org>
8204 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8205 (the_low_target): Install arm_get_syscall_trapinfo.
8207 2016-06-28 Yao Qi <yao.qi@linaro.org>
8209 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8211 (the_low_target): Install aarch64_get_syscall_trapinfo.
8213 2016-06-28 Yao Qi <yao.qi@linaro.org>
8215 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8217 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8218 Remove parameter sysno.
8219 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8222 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8224 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8225 (s390_emit_ne_goto): Likewise.
8226 (s390_emit_lt_goto): Likewise.
8227 (s390_emit_le_goto): Likewise.
8228 (s390_emit_gt_goto): Likewise.
8229 (s390_emit_ge_goto): Likewise.
8230 (s390x_emit_eq_goto): Likewise.
8231 (s390x_emit_ne_goto): Likewise.
8232 (s390x_emit_lt_goto): Likewise.
8233 (s390x_emit_le_goto): Likewise.
8234 (s390x_emit_gt_goto): Likewise.
8235 (s390x_emit_ge_goto): Likewise.
8236 (s390_emit_ops_impl): Mark variable static.
8237 (s390x_emit_ops): Likewise.
8239 2016-06-17 Yao Qi <yao.qi@linaro.org>
8241 * linux-low.c (handle_extended_wait): Call
8242 uninsert_reinsert_breakpoints for the parent process. Remove
8243 reinsert breakpoints from the child process. Reinsert them to
8244 the parent process when vfork is done.
8245 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8246 (reinsert_reinsert_breakpoints): New function.
8247 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8248 (reinsert_reinsert_breakpoints): Declare.
8250 2016-06-17 Yao Qi <yao.qi@linaro.org>
8252 * linux-low.c (handle_extended_wait): If the parent is doing
8253 step-over, remove the reinsert breakpoints from the forked child.
8255 2016-06-17 Yao Qi <yao.qi@linaro.org>
8257 * linux-low.c (unsuspend_all_lwps): Declare.
8258 (linux_low_filter_event): If thread exited, call finish_step_over.
8259 If step-over is finished, unsuspend other threads.
8261 2016-06-17 Yao Qi <yao.qi@linaro.org>
8263 * linux-low.c (linux_resume_one_lwp_throw): Assert
8264 has_reinsert_breakpoints returns false.
8265 * mem-break.c (delete_disabled_breakpoints): Assert
8266 bp type isn't reinsert_breakpoint.
8268 2016-06-17 Yao Qi <yao.qi@linaro.org>
8270 * linux-low.c (maybe_hw_step): New function.
8271 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8272 (finish_step_over): Switch current_thread to lwp temporarily,
8273 and assert has_reinsert_breakpoints returns true.
8274 (proceed_one_lwp): Call maybe_hw_step.
8275 * mem-break.c (has_reinsert_breakpoints): New function.
8276 * mem-break.h (has_reinsert_breakpoints): Declare.
8278 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8280 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8282 2016-05-17 Yao Qi <yao.qi@linaro.org>
8284 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8285 instead of find_inferior.
8287 2016-05-05 Yao Qi <yao.qi@linaro.org>
8289 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8290 Initialize res to zero.
8292 2016-05-05 Yao Qi <yao.qi@linaro.org>
8294 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8297 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8299 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8300 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8301 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8303 2016-04-28 Par Olsson <par.olsson@windriver.com>
8304 Simon Marchi <simon.marchi@ericsson.com>
8306 * tracepoint.c (write_inferior_int8): New function.
8307 (cmd_qtenable_disable): Write enable flag using
8308 write_inferior_int8.
8310 2016-04-25 Yao Qi <yao.qi@linaro.org>
8312 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8313 (need_step_over_p): Return zero if the LWP has pending signals
8314 can be delivered on software single step target.
8316 2016-04-25 Yao Qi <yao.qi@linaro.org>
8318 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8319 return instead of error.
8321 2016-04-22 Yao Qi <yao.qi@linaro.org>
8323 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8326 2016-04-22 Yao Qi <yao.qi@linaro.org>
8328 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8329 signal when stepping over breakpoint with software single
8332 2016-04-21 Pedro Alves <palves@redhat.com>
8334 * linux-s390-low.c (s390_collect_ptrace_register)
8335 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8337 (s390_check_regset): Use void * instead of gdb_byte *.
8339 2016-04-20 Pedro Alves <palves@redhat.com>
8341 * configure: Renegerate.
8343 2016-04-20 Yao Qi <yao.qi@linaro.org>
8345 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8346 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8348 (arm_store_gregset): Likewise.
8350 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8352 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8353 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8354 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8355 (amd64-avx-mpx-linux.c): New rules.
8356 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8357 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8358 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8359 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8360 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8361 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8362 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8363 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8364 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8365 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8366 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8367 * linux-x86-low.c (x86_linux_read_description): Add case for
8368 X86_XSTATE_AVX_MPX_MASK.
8369 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8370 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8371 init_registers_i386_avx_mpx_linux.
8372 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8373 (initialize_low_tracepoint): Call
8374 init_registers_i386_avx_mpx_linux.
8375 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8376 (initialize_low_tracepoint): Call
8377 init_registers_amd64_avx_mpx_linux.
8378 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8379 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8380 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8383 2016-04-18 Pedro Alves <palves@redhat.com>
8385 * configure: Regenerate.
8387 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8389 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8390 (aarch64_emit_sub): Likewise.
8392 2016-04-12 Pedro Alves <palves@redhat.com>
8394 * utils.c (prepare_to_throw_exception): Delete.
8396 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8398 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8400 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8402 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8404 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8406 * linux-aarch64-ipa.c: Add <elf.h> include.
8407 * linux-ppc-ipa.c: Add <elf.h> include.
8408 * linux-s390-ipa.c: Add <elf.h> include.
8410 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8412 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8413 (get_raw_reg_ptr): Likewise.
8414 (get_trace_state_variable_value_ptr): Likewise.
8415 (set_trace_state_variable_value_ptr): Likewise.
8416 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8419 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8420 Marcin Kościelnicki <koriakin@0x04.net>
8423 * linux-ppc-low.c (emit_insns): New function.
8424 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8425 (ppc_emit_prologue): New function.
8426 (ppc_emit_epilogue): New function.
8427 (ppc_emit_add): New function.
8428 (ppc_emit_sub): New function.
8429 (ppc_emit_mul): New function.
8430 (ppc_emit_lsh): New function.
8431 (ppc_emit_rsh_signed): New function.
8432 (ppc_emit_rsh_unsigned): New function.
8433 (ppc_emit_ext): New function.
8434 (ppc_emit_zero_ext): New function.
8435 (ppc_emit_log_not): New function.
8436 (ppc_emit_bit_and): New function.
8437 (ppc_emit_bit_or): New function.
8438 (ppc_emit_bit_xor): New function.
8439 (ppc_emit_bit_not): New function.
8440 (ppc_emit_equal): New function.
8441 (ppc_emit_less_signed): New function.
8442 (ppc_emit_less_unsigned): New function.
8443 (ppc_emit_ref): New function.
8444 (ppc_emit_const): New function.
8445 (ppc_emit_reg): New function.
8446 (ppc_emit_pop): New function.
8447 (ppc_emit_stack_flush): New function.
8448 (ppc_emit_swap): New function.
8449 (ppc_emit_stack_adjust): New function.
8450 (ppc_emit_call): New function.
8451 (ppc_emit_int_call_1): New function.
8452 (ppc_emit_void_call_2): New function.
8453 (ppc_emit_if_goto): New function.
8454 (ppc_emit_goto): New function.
8455 (ppc_emit_eq_goto): New function.
8456 (ppc_emit_ne_goto): New function.
8457 (ppc_emit_lt_goto): New function.
8458 (ppc_emit_le_goto): New function.
8459 (ppc_emit_gt_goto): New function.
8460 (ppc_emit_ge_goto): New function.
8461 (ppc_write_goto_address): New function.
8462 (ppc_emit_ops_impl): New static variable.
8463 (ppc64v1_emit_prologue): New function.
8464 (ppc64v2_emit_prologue): New function.
8465 (ppc64_emit_epilogue): New function.
8466 (ppc64_emit_add): New function.
8467 (ppc64_emit_sub): New function.
8468 (ppc64_emit_mul): New function.
8469 (ppc64_emit_lsh): New function.
8470 (ppc64_emit_rsh_signed): New function.
8471 (ppc64_emit_rsh_unsigned): New function.
8472 (ppc64_emit_ext): New function.
8473 (ppc64_emit_zero_ext): New function.
8474 (ppc64_emit_log_not): New function.
8475 (ppc64_emit_bit_and): New function.
8476 (ppc64_emit_bit_or): New function.
8477 (ppc64_emit_bit_xor): New function.
8478 (ppc64_emit_bit_not): New function.
8479 (ppc64_emit_equal): New function.
8480 (ppc64_emit_less_signed): New function.
8481 (ppc64_emit_less_unsigned): New function.
8482 (ppc64_emit_ref): New function.
8483 (ppc64_emit_const): New function.
8484 (ppc64v1_emit_reg): New function.
8485 (ppc64v2_emit_reg): New function.
8486 (ppc64_emit_pop): New function.
8487 (ppc64_emit_stack_flush): New function.
8488 (ppc64_emit_swap): New function.
8489 (ppc64v1_emit_call): New function.
8490 (ppc64v2_emit_call): New function.
8491 (ppc64v1_emit_int_call_1): New function.
8492 (ppc64v2_emit_int_call_1): New function.
8493 (ppc64v1_emit_void_call_2): New function.
8494 (ppc64v2_emit_void_call_2): New function.
8495 (ppc64_emit_if_goto): New function.
8496 (ppc64_emit_eq_goto): New function.
8497 (ppc64_emit_ne_goto): New function.
8498 (ppc64_emit_lt_goto): New function.
8499 (ppc64_emit_le_goto): New function.
8500 (ppc64_emit_gt_goto): New function.
8501 (ppc64_emit_ge_goto): New function.
8502 (ppc64v1_emit_ops_impl): New static variable.
8503 (ppc64v2_emit_ops_impl): New static variable.
8504 (ppc_emit_ops): New function.
8505 (linux_low_target): Wire in ppc_emit_ops.
8507 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8508 Marcin Kościelnicki <koriakin@0x04.net>
8511 * Makefile.in: Add powerpc-*-ipa.o
8512 * configure.srv: Add ipa_obj for powerpc*-linux.
8513 * linux-ppc-ipa.c: New file.
8514 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8516 (PPC_FIELD): New macro.
8517 (PPC_SEXT): New macro.
8518 (PPC_OP6): New macro.
8519 (PPC_BO): New macro.
8520 (PPC_LI): New macro.
8521 (PPC_BD): New macro.
8522 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8523 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8524 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8525 (ppc_get_thread_area): New function.
8526 (is_elfv2_inferior): New function.
8527 (gen_ds_form): New function.
8528 (GEN_STD): New macro.
8529 (GEN_STDU): New macro.
8530 (GEN_LD): New macro.
8531 (GEN_LDU): New macro.
8532 (gen_d_form): New function.
8533 (GEN_ADDI): New macro.
8534 (GEN_ADDIS): New macro.
8535 (GEN_LI): New macro.
8536 (GEN_LIS): New macro.
8537 (GEN_ORI): New macro.
8538 (GEN_ORIS): New macro.
8539 (GEN_LWZ): New macro.
8540 (GEN_STW): New macro.
8541 (GEN_STWU): New macro.
8542 (gen_xfx_form): New function.
8543 (GEN_MFSPR): New macro.
8544 (GEN_MTSPR): New macro.
8545 (GEN_MFCR): New macro.
8546 (GEN_MTCR): New macro.
8547 (GEN_SYNC): New macro.
8548 (GEN_LWSYNC): New macro.
8549 (gen_x_form): New function.
8550 (GEN_OR): New macro.
8551 (GEN_MR): New macro.
8552 (GEN_LWARX): New macro.
8553 (GEN_STWCX): New macro.
8554 (GEN_CMPW): New macro.
8555 (gen_md_form): New function.
8556 (GEN_RLDICL): New macro.
8557 (GEN_RLDICR): New macro.
8558 (gen_i_form): New function.
8560 (GEN_BL): New macro.
8561 (gen_b_form): New function.
8562 (GEN_BNE): New macro.
8563 (GEN_LOAD): New macro.
8564 (GEN_STORE): New macro.
8565 (gen_limm): New function.
8566 (gen_atomic_xchg): New function.
8567 (gen_call): New function.
8568 (ppc_relocate_instruction): New function.
8569 (ppc_install_fast_tracepoint_jump_pad): New function.
8570 (ppc_get_min_fast_tracepoint_insn_len): New function.
8571 (ppc_get_ipa_tdesc_idx): New function.
8572 (the_low_target): Wire in the new functions.
8573 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8575 * linux-ppc-tdesc.h: New file.
8577 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8579 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8580 (alloc_jump_pad_buffer): New function.
8581 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8582 (alloc_jump_pad_buffer): New function.
8583 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8584 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8585 (alloc_jump_pad_buffer): New function.
8586 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8587 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8588 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8589 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8591 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8593 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8594 * linux-amd64-ipa.c: Likewise.
8595 * linux-i386-ipa.c: Likewise.
8596 * linux-s390-ipa.c: Likewise.
8597 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8598 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8599 set_trace_state_variable_value_ptr.
8600 (struct ipa_sym_addresses): Likewise.
8601 (symbol_list): Likewise.
8602 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8603 accessing gdb_collect directly.
8604 (gdb_collect_ptr_type): New typedef.
8605 (get_raw_reg_ptr_type): New typedef.
8606 (get_trace_state_variable_value_ptr_type): New typedef.
8607 (set_trace_state_variable_value_ptr_type): New typedef.
8608 (gdb_collect_ptr): New global.
8609 (get_raw_reg_ptr): New global.
8610 (get_trace_state_variable_value_ptr): New global.
8611 (set_trace_state_variable_value_ptr): New global.
8612 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8613 accessing get_raw_reg directly.
8614 (get_get_tsv_func_addr): Likewise for
8615 get_trace_state_variable_value_ptr.
8616 (get_set_tsv_func_addr): Likewise for
8617 set_trace_state_variable_value_ptr.
8618 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8620 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8622 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8624 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8626 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8628 (relocate_instruction): Remove own_buf.
8629 * server.c (own_buf): Make global.
8630 (handle_v_requests): Make global.
8631 * server.h (own_buf): New declaration.
8632 (handle_v_requests): New prototype.
8634 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8637 * linux-s390-low.c (add_insns): New function.
8638 (s390_emit_prologue): New function.
8639 (s390_emit_epilogue): New function.
8640 (s390_emit_add): New function.
8641 (s390_emit_sub): New function.
8642 (s390_emit_mul): New function.
8643 (s390_emit_lsh): New function.
8644 (s390_emit_rsh_signed): New function.
8645 (s390_emit_rsh_unsigned): New function.
8646 (s390_emit_ext): New function.
8647 (s390_emit_log_not): New function.
8648 (s390_emit_bit_and): New function.
8649 (s390_emit_bit_or): New function.
8650 (s390_emit_bit_xor): New function.
8651 (s390_emit_bit_not): New function.
8652 (s390_emit_equal): New function.
8653 (s390_emit_less_signed): New function.
8654 (s390_emit_less_unsigned): New function.
8655 (s390_emit_ref): New function.
8656 (s390_emit_if_goto): New function.
8657 (s390_emit_goto): New function.
8658 (s390_write_goto_address): New function.
8659 (s390_emit_litpool): New function.
8660 (s390_emit_const): New function.
8661 (s390_emit_call): New function.
8662 (s390_emit_reg): New function.
8663 (s390_emit_pop): New function.
8664 (s390_emit_stack_flush): New function.
8665 (s390_emit_zero_ext): New function.
8666 (s390_emit_swap): New function.
8667 (s390_emit_stack_adjust): New function.
8668 (s390_emit_set_r2): New function.
8669 (s390_emit_int_call_1): New function.
8670 (s390_emit_void_call_2): New function.
8671 (s390_emit_eq_goto): New function.
8672 (s390_emit_ne_goto): New function.
8673 (s390_emit_lt_goto): New function.
8674 (s390_emit_le_goto): New function.
8675 (s390_emit_gt_goto): New function.
8676 (s390_emit_ge_goto): New function.
8677 (s390x_emit_prologue): New function.
8678 (s390x_emit_epilogue): New function.
8679 (s390x_emit_add): New function.
8680 (s390x_emit_sub): New function.
8681 (s390x_emit_mul): New function.
8682 (s390x_emit_lsh): New function.
8683 (s390x_emit_rsh_signed): New function.
8684 (s390x_emit_rsh_unsigned): New function.
8685 (s390x_emit_ext): New function.
8686 (s390x_emit_log_not): New function.
8687 (s390x_emit_bit_and): New function.
8688 (s390x_emit_bit_or): New function.
8689 (s390x_emit_bit_xor): New function.
8690 (s390x_emit_bit_not): New function.
8691 (s390x_emit_equal): New function.
8692 (s390x_emit_less_signed): New function.
8693 (s390x_emit_less_unsigned): New function.
8694 (s390x_emit_ref): New function.
8695 (s390x_emit_if_goto): New function.
8696 (s390x_emit_const): New function.
8697 (s390x_emit_call): New function.
8698 (s390x_emit_reg): New function.
8699 (s390x_emit_pop): New function.
8700 (s390x_emit_stack_flush): New function.
8701 (s390x_emit_zero_ext): New function.
8702 (s390x_emit_swap): New function.
8703 (s390x_emit_stack_adjust): New function.
8704 (s390x_emit_int_call_1): New function.
8705 (s390x_emit_void_call_2): New function.
8706 (s390x_emit_eq_goto): New function.
8707 (s390x_emit_ne_goto): New function.
8708 (s390x_emit_lt_goto): New function.
8709 (s390x_emit_le_goto): New function.
8710 (s390x_emit_gt_goto): New function.
8711 (s390x_emit_ge_goto): New function.
8712 (s390_emit_ops): New function.
8713 (struct linux_target_ops): Fill in emit_ops hook.
8715 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8718 * Makefile.in: Add s390 IPA files.
8719 * configure.srv: Build IPA for s390.
8720 * linux-s390-ipa.c: New file.
8721 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8722 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8723 (tdesc_s390_linux32): Likewise.
8724 (init_registers_s390_linux32v1): Likewise.
8725 (tdesc_s390_linux32v1): Likewise.
8726 (init_registers_s390_linux32v2): Likewise.
8727 (tdesc_s390_linux32v2): Likewise.
8728 (init_registers_s390_linux64): Likewise.
8729 (tdesc_s390_linux64): Likewise.
8730 (init_registers_s390_linux64v1): Likewise.
8731 (tdesc_s390_linux64v1): Likewise.
8732 (init_registers_s390_linux64v2): Likewise.
8733 (tdesc_s390_linux64v2): Likewise.
8734 (init_registers_s390_te_linux64): Likewise.
8735 (tdesc_s390_te_linux64): Likewise.
8736 (init_registers_s390_vx_linux64): Likewise.
8737 (tdesc_s390_vx_linux64): Likewise.
8738 (init_registers_s390_tevx_linux64): Likewise.
8739 (tdesc_s390_tevx_linux64): Likewise.
8740 (init_registers_s390x_linux64): Likewise.
8741 (tdesc_s390x_linux64): Likewise.
8742 (init_registers_s390x_linux64v1): Likewise.
8743 (tdesc_s390x_linux64v1): Likewise.
8744 (init_registers_s390x_linux64v2): Likewise.
8745 (tdesc_s390x_linux64v2): Likewise.
8746 (init_registers_s390x_te_linux64): Likewise.
8747 (tdesc_s390x_te_linux64): Likewise.
8748 (init_registers_s390x_vx_linux64): Likewise.
8749 (tdesc_s390x_vx_linux64): Likewise.
8750 (init_registers_s390x_tevx_linux64): Likewise.
8751 (tdesc_s390x_tevx_linux64): Likewise.
8752 (have_hwcap_s390_vx): New static variable.
8753 (s390_arch_setup): Fill have_hwcap_s390_vx.
8754 (s390_get_thread_area): New function.
8755 (s390_ft_entry_gpr_esa): New const.
8756 (s390_ft_entry_gpr_zarch): New const.
8757 (s390_ft_entry_misc): New const.
8758 (s390_ft_entry_fr): New const.
8759 (s390_ft_entry_vr): New const.
8760 (s390_ft_main_31): New const.
8761 (s390_ft_main_64): New const.
8762 (s390_ft_exit_fr): New const.
8763 (s390_ft_exit_vr): New const.
8764 (s390_ft_exit_misc): New const.
8765 (s390_ft_exit_gpr_esa): New const.
8766 (s390_ft_exit_gpr_zarch): New const.
8767 (append_insns): New function.
8768 (s390_relocate_instruction): New function.
8769 (s390_install_fast_tracepoint_jump_pad): New function.
8770 (s390_get_min_fast_tracepoint_insn_len): New function.
8771 (s390_get_ipa_tdesc_idx): New function.
8772 (struct linux_target_ops): Wire in the above functions.
8773 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8774 * linux-s390-tdesc.h: New file.
8776 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8778 * linux-s390-low.c (s390_supports_tracepoints): New function.
8779 (struct linux_target_ops): Fill supports_tracepoints hook.
8781 2016-03-18 Yao Qi <yao.qi@linaro.org>
8783 * linux-low.c (lwp_signal_can_be_delivered): New function.
8784 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8786 2016-03-18 Yao Qi <yao.qi@linaro.org>
8788 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8789 0 if signal is enqueued. Remove 'signal' from one debugging
8790 message. Move one debugging message to some lines below.
8791 Remove code setting 'signal' to 0.
8793 2016-03-18 Yao Qi <yao.qi@linaro.org>
8795 * linux-low.c (linux_low_filter_event): Remove redundant
8796 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8798 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8800 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8801 (struct linux_target_ops): Wire in the above.
8803 2016-03-03 Yao Qi <yao.qi@linaro.org>
8805 * linux-low.c: Update comments to start_step_over.
8807 2016-03-03 Yao Qi <yao.qi@linaro.org>
8810 * linux-low.c (handle_extended_wait): Set child suspended
8811 if event_lwp->bp_reinsert isn't zero.
8813 2016-03-02 Yao Qi <yao.qi@linaro.org>
8815 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8816 enqueue_pending_signal.
8818 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8820 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8823 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8825 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8826 (s390_regmap_3264) [!__s390x__]: New global.
8827 (s390_collect_ptrace_register): Skip map entries containing -1.
8828 (s390_supply_ptrace_register): Ditto.
8829 (s390_fill_gprs_high): New function.
8830 (s390_store_gprs_high): New function.
8831 (s390_regsets): Add NT_S390_HIGH_GPRS.
8832 (s390_get_hwcap): Enable on 31-bit.
8833 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8834 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8835 Detect NT_S390_HIGH_GPRS.
8836 (s390_usrregs_info_3264): Enable on 31-bit.
8837 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8838 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8840 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8843 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8844 * configure.srv: Ditto.
8845 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8846 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8847 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8848 (init_registers_amd64_linux): Remove prototype.
8849 (tdesc_amd64_linux): Remove declaration.
8850 (get_ipa_tdesc): New function.
8851 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8852 initialize remaining tdescs.
8853 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8854 (init_registers_i386_linux): Remove prototype.
8855 (tdesc_i386_linux): Remove declaration.
8856 (get_ipa_tdesc): New function.
8857 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8858 initialize remaining tdescs.
8859 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8860 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8861 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8862 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8863 (x86_get_ipa_tdesc_idx): New function.
8864 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8865 * linux-x86-tdesc.h: New file.
8866 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8867 (target_get_ipa_tdesc_idx): New macro.
8868 * tracepoint.c (ipa_tdesc_idx): New macro.
8869 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8870 (symbol_list): Add ipa_tdesc_idx.
8871 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8872 (ipa_tdesc): Remove.
8873 (ipa_tdesc_idx): New variable.
8874 (get_context_regcache): Use get_ipa_tdesc.
8875 (gdb_collect): Ditto.
8877 * tracepoint.h (get_ipa_tdesc): New prototype.
8878 (ipa_tdesc): Remove.
8880 2016-02-24 Pedro Alves <palves@redhat.com>
8882 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8883 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8884 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8885 Factor out common code between the USE_SIGTRAP_SIGINFO and
8886 !USE_SIGTRAP_SIGINFO blocks.
8887 (linux_low_filter_event): Call save_stop_reason instead of
8888 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8890 (linux_wait_1): Update comments.
8892 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8894 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8895 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8896 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8897 ppc_insert_point, ppc_remove_point.
8899 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8901 * linux-s390-low.c (s390_supports_z_point_type): New function.
8902 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8904 2016-02-16 Yao Qi <yao.qi@linaro.org>
8906 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8907 PC. Get pc from regcache_read_pc.
8909 2016-02-12 Yao Qi <yao.qi@linaro.org>
8911 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8912 or linux_get_pc_32bit.
8913 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8915 2016-02-12 Yao Qi <yao.qi@linaro.org>
8917 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8918 arm_linux_get_next_pcs_fixup.
8920 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8922 * tracepoint.c (x_tracepoint_action_download): Change
8923 write_inferior_data_ptr to write_inferior_data_pointer.
8924 (cmd_qtstart): Likewise.
8925 (write_inferior_data_ptr): Remove.
8926 (download_agent_expr): Change write_inferior_data_ptr to
8927 write_inferior_data_pointer.
8928 (download_tracepoint_1): Likewise.
8929 (download_tracepoint): Likewise.
8930 (download_trace_state_variables): Likewise.
8932 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8933 Marcin Kościelnicki <koriakin@0x04.net>
8935 * tracepoint.c (struct tracepoint_action_ops): Remove.
8936 (struct tracepoint_action): Remove ops.
8937 (m_tracepoint_action_download, r_tracepoint_action_download)
8938 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8939 size and offset accordingly.
8940 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8941 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8942 (tracepoint_action_send, tracepoint_action_download): New functions.
8943 Helpers for trace action handlers.
8944 (add_tracepoint_action): Remove setup actions ops.
8945 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8947 2016-02-10 Yao Qi <yao.qi@linaro.org>
8949 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8951 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8953 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8955 * configure: Regenerate.
8957 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8959 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8960 void * to gdb_byte *.
8961 * linux-low.c (siginfo_fixup): Likewise.
8962 (linux_xfer_siginfo): Likewise.
8963 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8965 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8967 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8969 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8971 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8973 * linux-x86-low.c [__x86_64__]: Include
8974 "nat/amd64-linux-siginfo.h".
8975 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8976 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8977 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8978 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8979 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8980 (cpt_si_fd, si_timerid, si_overrun): Move from
8981 nat/amd64-linux-siginfo.c.
8982 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8984 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8986 * server.c (skip_to_semicolon): Remove.
8987 (process_point_options): Use strchrnul instead of
8990 2016-01-26 Yao Qi <yao.qi@linaro.org>
8992 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8993 * linux-low.c (install_software_single_step_breakpoints): Don't
8994 call regcache_read_pc.
8995 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8998 2016-01-26 Yao Qi <yao.qi@linaro.org>
9000 * linux-low.c (install_software_single_step_breakpoints): Call
9001 regcache_read_pc instead of get_pc.
9003 2016-01-26 Yao Qi <yao.qi@linaro.org>
9005 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9006 (unblock_async_io): Rename to ...
9007 (block_unblock_async_io): ... it. New function.
9008 (enable_async_io): Don't install SIGIO handler. Unblock it
9010 (disable_async_io): Don't ignore SIGIO. Block it instead.
9011 (initialize_async_io): Install SIGIO handler. Don't call
9014 2016-01-26 Yao Qi <yao.qi@linaro.org>
9016 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9017 first character is '\003', call *the_target->request_interrupt.
9019 2016-01-25 Yao Qi <yao.qi@linaro.org>
9021 * remote-utils.c (new_thread_notify): Remove.
9022 (dead_thread_notify): Likewise.
9023 * remote-utils.h (new_thread_notify): Remove declaration.
9024 (dead_thread_notify): Likewise.
9026 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9028 * gdb.trace/pending.exp: Fix expected message on continue.
9030 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9032 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9033 it works properly on big-endian machines where sizeof (CORE_ADDR)
9036 2016-01-21 Pedro Alves <palves@redhat.com>
9038 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9039 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9040 * configure: Regenerate.
9042 2016-01-21 Yao Qi <yao.qi@linaro.org>
9044 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9045 is_thumb and set it according to CPSR saved on the stack.
9046 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9047 arm_sigreturn_next_pc.
9049 2016-01-18 Yao Qi <yao.qi@linaro.org>
9051 * linux-low.c (linux_set_pc_64bit): New function.
9052 (linux_get_pc_64bit): New function.
9053 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9055 * linux-sparc-low.c (debug_threads): Remove declaration.
9056 (sparc_get_pc): Remove.
9057 (the_low_target): Use linux_get_pc_64bit instead of
9059 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9060 (the_low_target): Use linux_get_pc_64bit and
9063 2016-01-18 Yao Qi <yao.qi@linaro.org>
9065 * linux-arm-low.c (debug_threads): Remove declaration.
9066 (arm_get_pc, arm_set_pc): Remove.
9067 (the_low_target): Use linux_get_pc_32bit and
9069 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9070 (the_low_target): Use linux_get_pc_32bit and
9072 * linux-cris-low.c (debug_threads): Remove declaration.
9073 (cris_get_pc, cris_set_pc,): Remove.
9074 (the_low_target): Use linux_get_pc_32bit and
9076 * linux-crisv32-low.c (debug_threads): Remove declaration.
9077 (cris_get_pc, cris_set_pc): Remove.
9078 (the_low_target): Use linux_get_pc_32bit and
9080 * linux-low.c: Include inttypes.h.
9081 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9082 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9083 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9084 (the_low_target): Use linux_get_pc_32bit and
9086 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9087 (the_low_target): Use linux_get_pc_32bit and
9089 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9090 (the_low_target): Use linux_get_pc_32bit and
9092 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9093 (the_low_target): Use linux_get_pc_32bit and
9095 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9096 (the_low_target): Use linux_get_pc_32bit and
9099 2016-01-18 Gary Benson <gbenson@redhat.com>
9101 * configure.ac (AC_FUNC_FORK): New check.
9102 * config.in: Regenerate.
9103 * configure: Likewise.
9105 2016-01-14 Yao Qi <yao.qi@linaro.org>
9107 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9108 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9109 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9110 arm_get_next_pcs_ctor.
9112 2016-01-12 Josh Stone <jistone@redhat.com>
9113 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9115 * inferiors.h: Include "gdb_vecs.h".
9116 (struct process_info): Add syscalls_to_catch.
9117 * inferiors.c (remove_process): Free syscalls_to_catch.
9118 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9119 syscall_return stops.
9120 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9121 * server.c (handle_general_set): Handle QCatchSyscalls.
9122 (handle_query): Report support for QCatchSyscalls.
9123 * target.h (struct target_ops): Add supports_catch_syscall.
9124 (target_supports_catch_syscall): New macro.
9125 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9126 (struct lwp_info): Add syscall_state.
9127 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9128 Maintain syscall_state and syscalls_to_catch across exec.
9129 (get_syscall_trapinfo): New function, proxy to the_low_target.
9130 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9131 (linux_low_filter_event): Toggle syscall_state entry/return for
9132 syscall traps, and set it ignored for all others.
9133 (gdb_catching_syscalls_p): New function.
9134 (gdb_catch_this_syscall_p): New function.
9135 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9136 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9137 (linux_supports_catch_syscall): New function.
9138 (linux_target_ops): Install it.
9139 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9140 (the_low_target): Install it.
9142 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9144 * acinclude.m4: Include new ../warning.m4 file.
9145 * configure: Regenerated.
9146 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9148 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9150 * ax.c (is_goto_target): Mark static.
9151 * linux-low.c (register_addr): Likewise.
9152 (linux_fetch_registers, linux_store_registers): Likewise.
9153 * mem-break.c (any_persistent_commands): Fix old prototype.
9154 (add_commands_to_breakpoint): Mark static.
9155 * regcache.c (find_register_by_name): Delete unused func.
9156 * remote-utils.c (hex_or_minus_one): Mark static.
9157 * server.c (monitor_show_help): Mark static.
9158 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9159 handle_v_requests): Likewise.
9161 2016-01-12 Pedro Alves <palves@redhat.com>
9163 Remove use of the registered trademark symbol throughout.
9165 2016-01-08 Yao Qi <yao.qi@linaro.org>
9167 * remote-utils.c (getpkt): If c is '\003', call target hook
9170 2016-01-06 Yao Qi <yao.qi@linaro.org>
9172 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9173 linux-aarch32-low.c.
9174 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9175 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9176 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9177 (thumb2_breakpoint): Declare.
9178 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9179 linux-aarch32-low.h.
9180 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9181 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9182 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9184 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9186 * gdbreplay.c (gdbreplay_version): Change copyright year in
9188 * server.c (gdbserver_version): Likewise.
9190 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9192 * server.c (crc32_table): Delete.
9193 (crc32): Use libiberty's xcrc32 function.
9195 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9197 * lynx-low.c (lynx_delete_thread_callback): New function.
9198 (lynx_mourn): Properly delete our process and all of its
9199 threads. Remove call to clear_inferiors.
9201 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9203 * target.c (thread_search_callback): Add check that
9204 the thread_stopped target callback is not NULL before
9207 2015-12-21 Yao Qi <yao.qi@linaro.org>
9209 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9212 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9214 * server.c (handle_query): Call target_supports_software_single_step.
9216 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9218 * linux-low.c (single_step): New function.
9219 (linux_resume_one_lwp_throw): Call single_step.
9220 (start_step_over): Likewise.
9222 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9224 * Makefile.in (SFILES): Append arch/arm-linux.c,
9225 arch/arm-get-next-pcs.c.
9226 (arm-linux.o): New rule.
9227 (arm-get-next-pcs.o): New rule.
9228 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9230 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9231 to linux-aarch32-low.c.
9232 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9233 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9234 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9235 (thumb2_breakpoint_len): Likewise.
9236 (arm_is_thumb_mode): Make non-static.
9237 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9238 from linux-aarch32-low.c.
9239 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9240 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9241 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9242 (thumb2_breakpoint_len): Likewise.
9243 (arm_is_thumb_mode): New declaration.
9244 * linux-arm-low.c: Include arch/arm-linux.h
9245 aarch/arm-get-next-pcs.h, sys/syscall.h.
9246 (get_next_pcs_ops): New struct.
9247 (get_next_pcs_addr_bits_remove): New function.
9248 (get_next_pcs_is_thumb): New function.
9249 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9250 (arm_sigreturn_next_pc): Likewise.
9251 (get_next_pcs_syscall_next_pc): Likewise.
9252 (arm_gdbserver_get_next_pcs): Likewise.
9253 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9255 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9256 * server.h: Include gdb_vecs.h.
9258 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9260 * Makefile.in (SFILES): Append common/common-regcache.c.
9261 (OBS): Append common-regcache.o.
9262 (common-regcache.o): New rule.
9263 * regcache.c (init_register_cache): Initialize cache to
9265 (regcache_raw_read_unsigned): New function.
9266 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9267 register_status enum.
9269 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9271 * linux-aarch64-low.c (the_low_targets): Rename
9272 breakpoint_reinsert_addr to get_next_pcs.
9273 * linux-arm-low.c (the_low_targets): Likewise.
9274 * linux-bfin-low.c (the_low_targets): Likewise.
9275 * linux-cris-low.c (the_low_targets): Likewise.
9276 * linux-crisv32-low.c (the_low_targets): Likewise.
9277 * linux-low.c (can_software_single_step): Likewise.
9278 (install_software_single_step_breakpoints): New function.
9279 (start_step_over): Use install_software_single_step_breakpoints.
9280 * linux-low.h: New CORE_ADDR vector.
9281 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9283 * linux-mips-low.c (the_low_targets): Likewise.
9284 * linux-nios2-low.c (the_low_targets): Likewise.
9285 * linux-sparc-low.c (the_low_targets): Likewise.
9287 2015-12-17 Pedro Alves <palves@redhat.com>
9289 * linux-low.c (linux_kill_one_lwp): Remove references to
9291 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9293 (linux_init_signals): Delete.
9294 (initialize_low): Adjust.
9295 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9297 2015-12-16 Pedro Alves <palves@redhat.com>
9299 * configure.ac (compiler warning flags): When testing a
9300 -Wno-foo option, check whether -Wfoo works instead.
9301 * configure: Regenerate.
9303 2015-12-11 Don Breazeal <donb@codesourcery.com>
9305 * server.c (process_serial_event): Don't exit from gdbserver
9306 in remote mode if there are still active inferiors.
9308 2015-12-11 Yao Qi <yao.qi@linaro.org>
9310 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9311 arm_breakpoint_at if the process is 32-bit.
9313 2015-12-11 Yao Qi <yao.qi@linaro.org>
9315 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9318 2015-12-07 Yao Qi <yao.qi@linaro.org>
9320 * configure.srv: Append arm.o to srv_tgtobj for
9321 aarch64*-*-linux* target.
9322 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9323 from linux-arm-low.c.
9324 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9325 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9326 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9327 (thumb2_breakpoint_len): Likewise.
9328 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9329 (arm_breakpoint_kinds): Likewise.
9330 (arm_breakpoint_kind_from_pc): Likewise.
9331 (arm_sw_breakpoint_from_kind): Likewise.
9332 (arm_breakpoint_kind_from_current_state): Likewise.
9333 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9334 (arm_sw_breakpoint_from_kind): Declare.
9335 (arm_breakpoint_kind_from_current_state): Declare.
9336 (arm_breakpoint_at): Declare.
9337 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9338 arm_sw_breakpoint_from_kind if process is 32-bit.
9339 (aarch64_breakpoint_kind_from_pc): New function.
9340 (aarch64_breakpoint_kind_from_current_state): New function.
9341 (the_low_target): Initialize fields breakpoint_kind_from_pc
9342 and breakpoint_kind_from_current_state.
9343 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9344 linux-aarch32-low.c.
9345 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9346 (arm_breakpoint, arm_breakpoint_len): Likewise.
9347 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9348 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9349 (arm_is_thumb_mode): Likewise.
9350 (arm_breakpoint_at): Likewise.
9351 (arm_breakpoint_kind_from_pc): Likewise.
9352 (arm_sw_breakpoint_from_kind): Likewise.
9353 (arm_breakpoint_kind_from_current_state): Likewise.
9356 2015-08-04 Yao Qi <yao.qi@linaro.org>
9358 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9359 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9360 * server.c (extended_protocol): Remove "static".
9361 * server.h (extended_protocol): Declare it.
9363 2015-12-04 Josh Stone <jistone@redhat.com>
9365 * target.h (struct target_ops) <arch_setup>: Rename to ...
9366 (struct target_ops) <post_create_inferior>: ... this.
9367 (target_arch_setup): Rename to ...
9368 (target_post_create_inferior): ... this, calling post_create_inferior.
9369 * server.c (start_inferior): Update target_arch_setup calls to
9370 target_post_create_inferior.
9371 * linux-low.c (linux_low_ptrace_options): Forward declare.
9372 (linux_arch_setup): Update its comment for general use.
9373 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9374 (struct linux_target_ops): Use linux_post_create_inferior.
9375 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9376 to post_create_inferior.
9377 * nto-low.c (struct nto_target_ops): Likewise.
9378 * spu-low.c (struct spu_target_ops): Likewise.
9379 * win32-low.c (struct win32_target_ops): Likewise.
9381 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9383 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9385 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9387 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9388 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9389 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9390 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9391 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9392 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9393 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9394 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9395 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9396 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9397 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9398 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9400 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9402 * linux-low.c (linux_look_up_symbols): Don't call
9403 linux_supports_traceclone.
9404 * linux-low.h (thread_db_init): Remove use_events argument.
9405 * thread-db.c (thread_db_use_event): Remove global variable.
9406 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9407 (struct thread_db) <td_create_bp>: Remove field.
9408 (thread_db_create_event): Remove function.
9409 (thread_db_enable_reporting): Likewise.
9410 (find_one_thread): Don't check for thread_db_use_events.
9411 (attach_thread): Likewise.
9412 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9413 (try_thread_db_load_1): Don't check for thread_db_use_events.
9414 (thread_db_init): Remove use_events argument and thread events
9416 (remove_thread_event_breakpoints): Remove function.
9417 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9419 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9421 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9423 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9424 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9425 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9426 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9427 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9429 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9431 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9432 * linux-low.c (can_hardware_single_step): Use
9433 supports_hardware_single_step.
9434 (can_software_single_step): New function.
9435 (start_step_over): Call can_software_single_step.
9436 (linux_supports_hardware_single_step): New function.
9437 (struct target_ops) <supports_software_single_step>: Initialize.
9438 * linux-low.h (struct linux_target_ops)
9439 <supports_hardware_single_step>: Initialize.
9440 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9441 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9442 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9443 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9444 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9445 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9446 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9447 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9448 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9449 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9451 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9452 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9454 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9455 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9456 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9458 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9459 * target.h (struct target_ops): <supports_software_single_step>:
9461 (target_supports_software_single_step): New macro.
9463 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9465 * linux-low.c (linux_wait_1): Fix pc advance condition.
9466 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9467 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9469 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9471 * linux-arm-low.c (arm_is_thumb_mode): New function.
9472 (arm_breakpoint_at): Use arm_is_thumb_mode.
9473 (arm_breakpoint_kind_from_current_state): New function.
9474 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9476 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9477 (linux_breakpoint_kind_from_current_state): New function.
9478 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9479 * linux-low.h (struct linux_target_ops)
9480 <breakpoint_kind_from_current_state>: New field.
9481 * target.h (struct target_ops): Likewise.
9482 (target_breakpoint_kind_from_current_state): New macro.
9484 2015-11-30 Pedro Alves <palves@redhat.com>
9486 * linux-low.c (linux_resume): Wake up the event loop before
9489 2015-11-30 Pedro Alves <palves@redhat.com>
9491 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9493 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9495 * target.c (struct thread_search): New structure.
9496 (thread_search_callback): New function.
9497 (prev_general_thread): New global.
9498 (prepare_to_access_memory, done_accessing_memory): New functions.
9499 * target.h (prepare_to_access_memory, done_accessing_memory):
9500 Replace macros with function declarations.
9502 2015-11-30 Pedro Alves <palves@redhat.com>
9505 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9506 report TARGET_WAITKIND_NO_RESUMED.
9507 * remote-utils.c (prepare_resume_reply): Handle
9508 TARGET_WAITKIND_NO_RESUMED.
9509 * server.c (report_no_resumed): New global.
9510 (handle_query) <qSupported>: Handle "no-resumed+". Report
9511 "no-resumed+" support.
9512 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9513 return error if the client doesn't support no-resumed events.
9514 (push_stop_notification): New function.
9515 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9516 events if the client supports them.
9518 2015-11-30 Pedro Alves <palves@redhat.com>
9520 * linux-low.c (thread_still_has_status_pending_p): Don't check
9522 (lwp_resumed): New function.
9523 (status_pending_p_callback): Return early if the LWP is not
9524 supposed to be resumed.
9526 2015-11-30 Pedro Alves <palves@redhat.com>
9528 * linux-low.c (handle_extended_wait): Assert that the LWP's
9529 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9530 thread create events, leave the new child's status pending.
9531 (linux_low_filter_event): If GDB wants to hear about thread exit
9532 events, leave the LWP marked dead and don't delete it.
9533 (linux_wait_for_event_filtered): Don't check for thread exit.
9534 (filter_exit_event): New function.
9535 (linux_wait_1): Use it, when returning an exit event.
9536 (linux_resume_one_lwp_throw): Assert that the LWP's
9537 waitstatus is TARGET_WAITKIND_IGNORE.
9538 * remote-utils.c (prepare_resume_reply): Handle
9539 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9540 * server.c (report_thread_events): New global.
9541 (handle_general_set): Handle QThreadEvents.
9542 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9543 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9544 TARGET_WAITKIND_THREAD_EXITED.
9545 * server.h (report_thread_events): Declare.
9547 2015-11-30 Pedro Alves <palves@redhat.com>
9549 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9550 the thread's last_resume_kind was resume_stop.
9552 2015-11-30 Pedro Alves <palves@redhat.com>
9554 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9557 2015-11-30 Pedro Alves <palves@redhat.com>
9559 * server.c (handle_v_requests): Handle vCtrlC.
9561 2015-11-30 Pedro Alves <palves@redhat.com>
9563 * gdbthread.h (find_any_thread_of_pid): Declare.
9564 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9566 * server.c (handle_query): If current_thread is NULL, look for
9567 another thread of the selected process.
9569 2015-11-26 Daniel Colascione <dancol@dancol.org>
9570 Simon Marchi <simon.marchi@ericsson.com>
9572 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9573 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9575 * target.h (struct target_ops) <thread_name>: New field.
9576 (target_thread_name): New macro.
9578 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9580 * regcache.h (regcache_invalidate_pid): Add declaration.
9581 * regcache.c (regcache_invalidate_pid): New function, extracted
9582 from regcache_invalidate.
9583 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9584 Add trivial documentation comment.
9585 * lynx-low.c: Use regcache_invalidate_pid instead of
9586 regcache_invalidate.
9588 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9590 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9591 and Elf64_auxv_t if the target is Android.
9593 2015-11-22 Doug Evans <xdje42@gmail.com>
9595 * target.h: #include <sys/types.h>.
9597 2015-11-19 Pedro Alves <palves@redhat.com>
9599 * linux-low.c (linux_process_qsupported): Change prototype.
9601 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9603 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9604 and adjust to loop over all features.
9605 * server.c (handle_query) <qSupported>: Adjust to call
9606 target_process_qsupported once, passing it a vector of unprocessed
9608 * target.h (struct target_ops) <process_qsupported>: Change
9610 (target_process_qsupported): Adjust.
9612 2015-11-19 Pedro Alves <palves@redhat.com>
9614 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9616 * configure: Regenerate.
9618 2015-11-19 Pedro Alves <palves@redhat.com>
9620 * configure: Regenerate.
9622 2015-11-19 Yao Qi <yao.qi@linaro.org>
9624 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9627 2015-11-19 Yao Qi <yao.qi@linaro.org>
9629 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9630 (struct aarch64_operand): Move enum out.
9632 2015-11-19 Yao Qi <yao.qi@linaro.org>
9634 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9635 struct user_fpsimd_state *.
9636 (aarch64_store_fpregset): Likewise.
9638 2015-11-19 Yao Qi <yao.qi@linaro.org>
9640 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9641 struct user_pt_regs *.
9642 (aarch64_store_gregset): Likewise.
9644 2015-11-18 Pedro Alves <palves@redhat.com>
9646 * Makefile.in (all_object_files): Add $IPA_OBJS.
9648 2015-11-17 Pedro Alves <palves@redhat.com>
9650 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9651 GDB_SIGNAL_0 and gdb_signal_to_string.
9653 2015-11-17 Pedro Alves <palves@redhat.com>
9655 * win32-low.c (handle_output_debug_string): Remove parameter.
9656 (win32_kill): Remove our_status local and adjust call to
9657 handle_output_debug_string.
9658 (get_child_debug_event): Adjust call to
9659 handle_output_debug_string.
9661 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9663 * linux-mips-low.c (mips_fill_gregset): Add cast.
9664 (mips_store_gregset): Likewise.
9665 (mips_fill_fpregset): Likewise.
9666 (mips_store_fpregset): Likewise.
9668 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9670 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9673 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9675 * linux-mips-low.c (mips_linux_new_thread): Change type of
9676 watch_type to enum target_hw_bp_type.
9678 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9680 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9681 Change return type to arm_hwbp_type.
9683 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9685 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9686 (arm_store_gregset): Likewise.
9687 * linux-arm-low.c (arm_get_hwcap): Likewise.
9688 (arm_read_description): Likewise.
9690 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9692 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9694 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9696 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9697 (ppc_fill_vsxregset): Likewise.
9698 (ppc_store_vsxregset): Likewise.
9699 (ppc_fill_vrregset): Likewise.
9700 (ppc_store_vrregset): Likewise.
9701 (ppc_fill_evrregset): Likewise.
9702 (ppc_store_evrregset): Likewise.
9704 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9706 * linux-ppc-low.c (ppc_usrregs_info): Remove
9707 forward-declaration.
9708 (ppc_arch_setup): Move lower in file.
9710 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9712 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9713 (ps_pdwrite): Likewise.
9715 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9717 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9718 to after assert checks.
9720 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9722 * proc-service.c (ps_pdread): Add/adjust casts.
9723 (ps_pdwrite): Add/adjust casts.
9725 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9727 * server.c (handle_search_memory_1): Cast return value of
9730 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9732 * server.c (write_qxfer_response): Change type of data to
9735 2015-10-29 Pedro Alves <palves@redhat.com>
9737 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9739 2015-10-29 Pedro Alves <palves@redhat.com>
9741 * tracepoint.c (clear_installed_tracepoints): Add casts.
9743 2015-10-29 Pedro Alves <palves@redhat.com>
9745 * server.c (handle_v_cont, process_serial_event): Add enum
9746 gdb_signal casts to signal parsing code.
9748 2015-10-29 Pedro Alves <palves@redhat.com>
9750 * linux-low.h (NULL_REGSET): Define.
9751 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9752 * linux-arm-low.c (arm_regsets): Likewise.
9753 * linux-crisv32-low.c (cris_regsets): Likewise.
9754 * linux-m68k-low.c (m68k_regsets): Likewise.
9755 * linux-mips-low.c (mips_regsets): Likewise.
9756 * linux-nios2-low.c (nios2_regsets): Likewise.
9757 * linux-ppc-low.c (ppc_regsets): Likewise.
9758 * linux-s390-low.c (s390_regsets): Likewise.
9759 * linux-sh-low.c (sh_regsets): Likewise.
9760 * linux-sparc-low.c (sparc_regsets): Likewise.
9761 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9762 * linux-tile-low.c (tile_regsets): Likewise.
9763 * linux-x86-low.c (x86_regsets): Likewise.
9764 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9766 2015-10-29 Pedro Alves <palves@redhat.com>
9768 * linux-low.h (NULL_REGSET): Define.
9769 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9770 * linux-arm-low.c (arm_regsets): Likewise.
9771 * linux-crisv32-low.c (cris_regsets): Likewise.
9772 * linux-m68k-low.c (m68k_regsets): Likewise.
9773 * linux-mips-low.c (mips_regsets): Likewise.
9774 * linux-nios2-low.c (nios2_regsets): Likewise.
9775 * linux-ppc-low.c (ppc_regsets): Likewise.
9776 * linux-s390-low.c (s390_regsets): Likewise.
9777 * linux-sh-low.c (sh_regsets): Likewise.
9778 * linux-sparc-low.c (sparc_regsets): Likewise.
9779 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9780 * linux-tile-low.c (tile_regsets): Likewise.
9781 * linux-x86-low.c (x86_regsets): Likewise.
9782 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9784 2015-10-26 Doug Evans <dje@google.com>
9786 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9788 2015-10-26 Doug Evans <dje@google.com>
9790 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9792 2015-10-26 Doug Evans <dje@google.com>
9794 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9796 (attach_thread, find_new_threads_callback): Ditto.
9798 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9800 * mem-break.h (set_breakpoint_data): Remove.
9802 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9804 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9805 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9806 (initialize_low): Remove set_breakpoint_data call.
9807 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9808 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9809 (initialize_low): Remove set_breakpoint_data call.
9810 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9811 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9812 (initialize_low): Remove set_breakpoint_data call.
9814 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9816 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9817 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9818 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9819 * target.h (target_breakpoint_kind_from_pc): New macro.
9821 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9823 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9824 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9825 the default breakpoint kind.
9827 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9829 * linux-arm-low.c (arm_supports_z_point_type): Add software
9832 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9834 * linux-arm-low.c: Refactor breakpoint definitions.
9835 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9836 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9838 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9840 * Makefile.in: Add arm.c/o.
9841 * configure.srv: Likewise.
9842 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9843 (arm_breakpoint_kind_from_pc): New function.
9844 (arm_sw_breakpoint_from_kind): Return proper kind.
9845 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9847 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9849 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9851 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9852 (struct raw_breakpoint) <size>: Remove.
9853 (struct raw_breakpoint) <kind>: Add.
9854 (bp_size): New function.
9855 (bp_opcode): Likewise.
9856 (find_raw_breakpoint_at): Adjust for kind.
9857 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9858 (remove_memory_breakpoint): Adjust for kind call bp_size.
9859 (set_raw_breakpoint_at): Adjust for kind.
9860 (set_breakpoint): Likewise.
9861 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9862 (delete_raw_breakpoint): Adjust for kind.
9863 (delete_breakpoint): Likewise.
9864 (find_gdb_breakpoint): Likewise.
9865 (set_gdb_breakpoint_1): Likewise.
9866 (set_gdb_breakpoint): Likewise.
9867 (delete_gdb_breakpoint_1): Likewise.
9868 (delete_gdb_breakpoint): Likewise.
9869 (uninsert_raw_breakpoint): Likewise.
9870 (reinsert_raw_breakpoint): Likewise.
9871 (set_breakpoint_data): Remove.
9872 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9873 (check_mem_read): Adjust for kind call bp_size.
9874 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9875 (clone_one_breakpoint): Adjust for kind.
9876 * mem-break.h (set_gdb_breakpoint): Likewise.
9877 (delete_gdb_breakpoint): Likewise.
9878 * server.c (process_serial_event): Likewise.
9880 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9882 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9883 (struct linux_target_ops) <breakpoint>: Remove.
9884 (struct linux_target_ops) <breakpoint_len>: Remove.
9885 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9886 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9887 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9888 (arm_sw_breakpoint_from_kind): New function.
9889 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9890 (struct linux_target_ops) <breakpoint>: Remove.
9891 (struct linux_target_ops) <breakpoint_len>: Remove.
9892 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9893 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9894 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9895 (struct linux_target_ops) <breakpoint>: Remove.
9896 (struct linux_target_ops) <breakpoint_len>: Remove.
9897 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9898 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9899 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9900 (struct linux_target_ops) <breakpoint>: Remove.
9901 (struct linux_target_ops) <breakpoint_len>: Remove.
9902 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9903 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9904 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9905 and sw_breakpoint_from_kind to increment the pc.
9906 (linux_breakpoint_kind_from_pc): New function.
9907 (linux_sw_breakpoint_from_kind): New function.
9908 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9909 (initialize_low): Call breakpoint_kind_from_pc and
9910 sw_breakpoint_from_kind to replace breakpoint_data/len.
9911 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9913 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9914 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9915 (struct linux_target_ops) <breakpoint>: Remove.
9916 (struct linux_target_ops) <breakpoint_len>: Remove.
9917 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9918 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9919 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9920 (struct linux_target_ops) <breakpoint>: Remove.
9921 (struct linux_target_ops) <breakpoint_len>: Remove.
9922 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9923 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9924 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9925 (struct linux_target_ops) <breakpoint>: Remove.
9926 (struct linux_target_ops) <breakpoint_len>: Remove.
9927 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9928 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9929 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9930 (struct linux_target_ops) <breakpoint>: Remove.
9931 (struct linux_target_ops) <breakpoint_len>: Remove.
9932 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9933 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9934 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9935 (struct linux_target_ops) <breakpoint>: Remove.
9936 (struct linux_target_ops) <breakpoint_len>: Remove.
9937 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9938 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9939 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9940 (struct linux_target_ops) <breakpoint>: Remove.
9941 (struct linux_target_ops) <breakpoint_len>: Remove.
9942 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9943 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9944 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9945 (struct linux_target_ops) <breakpoint>: Remove.
9946 (struct linux_target_ops) <breakpoint_len>: Remove.
9947 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9948 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9949 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9950 (struct linux_target_ops) <breakpoint>: Remove.
9951 (struct linux_target_ops) <breakpoint_len>: Remove.
9952 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9953 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9954 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9955 (struct linux_target_ops) <breakpoint>: Remove.
9956 (struct linux_target_ops) <breakpoint_len>: Remove.
9957 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9958 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9959 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9960 * linux-x86-low.c (x86_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-xtensa-low.c (xtensa_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.
9971 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9973 * linux-cris-low.c (cris_get_pc): Remove void arg.
9975 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9977 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9980 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9982 * inferiors.c (thread_pid_matches_callback): New function.
9983 (find_thread_process): New function.
9984 (remove_thread): Reset current_thread.
9985 (remove_process): Assert threads have been removed first.
9987 2015-10-15 Yao Qi <yao.qi@linaro.org>
9989 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9991 (aarch64_remove_point): Likewise.
9992 * regcache.c (regcache_register_size): New function.
9994 2015-10-12 Yao Qi <yao.qi@linaro.org>
9996 * linux-aarch64-low.c: Update all callers as emit_load_store
9997 is renamed to aarch64_emit_load_store.
9999 2015-10-12 Yao Qi <yao.qi@linaro.org>
10001 * linux-aarch64-low.c: Update all callers of function renaming
10002 from emit_insn to aarch64_emit_insn.
10004 2015-10-12 Yao Qi <yao.qi@linaro.org>
10006 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10007 arch/aarch64-insn.h.
10008 (struct aarch64_memory_operand): Likewise.
10009 (ENCODE): Likewise.
10010 (emit_insn): Move to arch/aarch64-insn.c.
10011 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10012 (emit_load_store): Move to arch/aarch64-insn.c.
10013 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10014 (can_encode_int32): Remove.
10016 2015-10-12 Yao Qi <yao.qi@linaro.org>
10018 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10019 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10020 (aarch64_relocate_instruction): Likewise.
10021 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10022 (struct aarch64_insn_visitor): Likewise.
10024 2015-10-12 Yao Qi <yao.qi@linaro.org>
10026 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10027 (struct aarch64_insn_visitor): New.
10028 (struct aarch64_insn_relocation_data): New.
10029 (aarch64_ftrace_insn_reloc_b): New function.
10030 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10031 (aarch64_ftrace_insn_reloc_cb): Likewise.
10032 (aarch64_ftrace_insn_reloc_tb): Likewise.
10033 (aarch64_ftrace_insn_reloc_adr): Likewise.
10034 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10035 (aarch64_ftrace_insn_reloc_others): Likewise.
10037 (aarch64_relocate_instruction): Use visitor.
10039 2015-10-12 Yao Qi <yao.qi@linaro.org>
10041 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10042 int. Add argument buf.
10043 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10044 aarch64_relocate_instruction.
10046 2015-10-12 Yao Qi <yao.qi@linaro.org>
10048 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10049 argument insn. Remove local variable insn. Don't call
10050 target_read_uint32.
10051 (aarch64_install_fast_tracepoint_jump_pad): Call
10052 target_read_uint32.
10054 2015-09-30 Yao Qi <yao.qi@linaro.org>
10056 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10057 (emit_load_store_pair): Likewise.
10059 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10061 * dll.c (match_dll): Add cast(s).
10062 (unloaded_dll): Likewise.
10063 * linux-low.c (second_thread_of_pid_p): Likewise.
10064 (delete_lwp_callback): Likewise.
10065 (count_events_callback): Likewise.
10066 (select_event_lwp_callback): Likewise.
10067 (linux_set_resume_request): Likewise.
10068 * server.c (accumulate_file_name_length): Likewise.
10069 (emit_dll_description): Likewise.
10070 (handle_qxfer_threads_worker): Likewise.
10071 (visit_actioned_threads): Likewise.
10072 * thread-db.c (any_thread_of): Likewise.
10073 * tracepoint.c (same_process_p): Likewise.
10074 (match_blocktype): Likewise.
10075 (build_traceframe_info_xml): Likewise.
10077 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10079 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10081 (gdb_unparse_agent_expr): Likewise.
10082 * hostio.c (require_data): Likewise.
10083 (handle_pread): Likewise.
10084 * linux-low.c (disable_regset): Likewise.
10085 (fetch_register): Likewise.
10086 (store_register): Likewise.
10087 (get_dynamic): Likewise.
10088 (linux_qxfer_libraries_svr4): Likewise.
10089 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10090 (set_fast_tracepoint_jump): Likewise.
10091 (uninsert_fast_tracepoint_jumps_at): Likewise.
10092 (reinsert_fast_tracepoint_jumps_at): Likewise.
10093 (validate_inserted_breakpoint): Likewise.
10094 (clone_agent_expr): Likewise.
10095 * regcache.c (init_register_cache): Likewise.
10096 * remote-utils.c (putpkt_binary_1): Likewise.
10097 (decode_M_packet): Likewise.
10098 (decode_X_packet): Likewise.
10099 (look_up_one_symbol): Likewise.
10100 (relocate_instruction): Likewise.
10101 (monitor_output): Likewise.
10102 * server.c (handle_search_memory): Likewise.
10103 (handle_qxfer_exec_file): Likewise.
10104 (handle_qxfer_libraries): Likewise.
10105 (handle_qxfer): Likewise.
10106 (handle_query): Likewise.
10107 (handle_v_cont): Likewise.
10108 (handle_v_run): Likewise.
10109 (captured_main): Likewise.
10110 * target.c (write_inferior_memory): Likewise.
10111 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10112 * tracepoint.c (init_trace_buffer): Likewise.
10113 (add_tracepoint_action): Likewise.
10114 (add_traceframe): Likewise.
10115 (add_traceframe_block): Likewise.
10116 (cmd_qtdpsrc): Likewise.
10117 (cmd_qtdv): Likewise.
10118 (cmd_qtstatus): Likewise.
10119 (response_source): Likewise.
10120 (response_tsv): Likewise.
10121 (cmd_qtnotes): Likewise.
10122 (gdb_collect): Likewise.
10123 (initialize_tracepoint): Likewise.
10125 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10127 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10128 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10129 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10131 (enum aarch64_condition_codes): New enum.
10132 (w0): New static global.
10135 (struct aarch64_memory_operand) <type>: New
10136 MEMORY_OPERAND_POSTINDEX type.
10137 (postindex_memory_operand): New helper function.
10138 (emit_ret): New function.
10139 (emit_load_store_pair): New function, factored out of emit_stp
10140 with support for MEMORY_OPERAND_POSTINDEX.
10141 (emit_stp): Rewrite using emit_load_store_pair.
10142 (emit_ldp): New function.
10143 (emit_load_store): Likewise.
10144 (emit_ldr): Mention post-index instruction in comment.
10145 (emit_ldrh): New function.
10146 (emit_ldrb): New function.
10147 (emit_ldrsw): Mention post-index instruction in comment.
10148 (emit_str): Likewise.
10149 (emit_subs): New function.
10150 (emit_cmp): Likewise.
10151 (emit_and): Likewise.
10152 (emit_orr): Likewise.
10153 (emit_orn): Likewise.
10154 (emit_eor): Likewise.
10155 (emit_mvn): Likewise.
10156 (emit_lslv): Likewise.
10157 (emit_lsrv): Likewise.
10158 (emit_asrv): Likewise.
10159 (emit_mul): Likewise.
10160 (emit_sbfm): Likewise.
10161 (emit_sbfx): Likewise.
10162 (emit_ubfm): Likewise.
10163 (emit_ubfx): Likewise.
10164 (emit_csinc): Likewise.
10165 (emit_cset): Likewise.
10166 (emit_nop): Likewise.
10167 (emit_ops_insns): New helper function.
10168 (emit_pop): Likewise.
10169 (emit_push): Likewise.
10170 (aarch64_emit_prologue): New function.
10171 (aarch64_emit_epilogue): Likewise.
10172 (aarch64_emit_add): Likewise.
10173 (aarch64_emit_sub): Likewise.
10174 (aarch64_emit_mul): Likewise.
10175 (aarch64_emit_lsh): Likewise.
10176 (aarch64_emit_rsh_signed): Likewise.
10177 (aarch64_emit_rsh_unsigned): Likewise.
10178 (aarch64_emit_ext): Likewise.
10179 (aarch64_emit_log_not): Likewise.
10180 (aarch64_emit_bit_and): Likewise.
10181 (aarch64_emit_bit_or): Likewise.
10182 (aarch64_emit_bit_xor): Likewise.
10183 (aarch64_emit_bit_not): Likewise.
10184 (aarch64_emit_equal): Likewise.
10185 (aarch64_emit_less_signed): Likewise.
10186 (aarch64_emit_less_unsigned): Likewise.
10187 (aarch64_emit_ref): Likewise.
10188 (aarch64_emit_if_goto): Likewise.
10189 (aarch64_emit_goto): Likewise.
10190 (aarch64_write_goto_address): Likewise.
10191 (aarch64_emit_const): Likewise.
10192 (aarch64_emit_call): Likewise.
10193 (aarch64_emit_reg): Likewise.
10194 (aarch64_emit_pop): Likewise.
10195 (aarch64_emit_stack_flush): Likewise.
10196 (aarch64_emit_zero_ext): Likewise.
10197 (aarch64_emit_swap): Likewise.
10198 (aarch64_emit_stack_adjust): Likewise.
10199 (aarch64_emit_int_call_1): Likewise.
10200 (aarch64_emit_void_call_2): Likewise.
10201 (aarch64_emit_eq_goto): Likewise.
10202 (aarch64_emit_ne_goto): Likewise.
10203 (aarch64_emit_lt_goto): Likewise.
10204 (aarch64_emit_le_goto): Likewise.
10205 (aarch64_emit_gt_goto): Likewise.
10206 (aarch64_emit_ge_got): Likewise.
10207 (aarch64_emit_ops_impl): New static global variable.
10208 (aarch64_emit_ops): New target function, return
10209 &aarch64_emit_ops_impl.
10210 (struct linux_target_ops): Install it.
10212 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10214 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10215 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10217 * linux-aarch64-ipa.c: New file.
10218 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10220 (aarch64_get_thread_area): New target method.
10221 (extract_signed_bitfield): New helper function.
10222 (aarch64_decode_ldr_literal): New function.
10223 (enum aarch64_opcodes): New enum.
10224 (struct aarch64_register): New struct.
10225 (struct aarch64_operand): New struct.
10226 (x0): New static global.
10235 (aarch64_register): New helper function.
10236 (register_operand): Likewise.
10237 (immediate_operand): Likewise.
10238 (struct aarch64_memory_operand): New struct.
10239 (offset_memory_operand): New helper function.
10240 (preindex_memory_operand): Likewise.
10241 (enum aarch64_system_control_registers): New enum.
10242 (ENCODE): New macro.
10243 (emit_insn): New helper function.
10244 (emit_b): New function.
10245 (emit_bcond): Likewise.
10246 (emit_cb): Likewise.
10247 (emit_tb): Likewise.
10248 (emit_blr): Likewise.
10249 (emit_stp): Likewise.
10250 (emit_ldp_q_offset): Likewise.
10251 (emit_stp_q_offset): Likewise.
10252 (emit_load_store): Likewise.
10253 (emit_ldr): Likewise.
10254 (emit_ldrsw): Likewise.
10255 (emit_str): Likewise.
10256 (emit_ldaxr): Likewise.
10257 (emit_stxr): Likewise.
10258 (emit_stlr): Likewise.
10259 (emit_data_processing_reg): Likewise.
10260 (emit_data_processing): Likewise.
10261 (emit_add): Likewise.
10262 (emit_sub): Likewise.
10263 (emit_mov): Likewise.
10264 (emit_movk): Likewise.
10265 (emit_mov_addr): Likewise.
10266 (emit_mrs): Likewise.
10267 (emit_msr): Likewise.
10268 (emit_sevl): Likewise.
10269 (emit_wfe): Likewise.
10270 (append_insns): Likewise.
10271 (can_encode_int32_in): New helper function.
10272 (aarch64_relocate_instruction): New function.
10273 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10274 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10275 (struct linux_target_ops): Install aarch64_get_thread_area,
10276 aarch64_install_fast_tracepoint_jump_pad and
10277 aarch64_get_min_fast_tracepoint_insn_len.
10279 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10281 * Makefile.in (aarch64-insn.o): New rule.
10282 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10284 2015-09-21 Yao Qi <yao.qi@linaro.org>
10286 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10288 2015-09-21 Yao Qi <yao.qi@linaro.org>
10290 * tracepoint.c (max_jump_pad_size): Remove.
10292 2015-09-18 Yao Qi <yao.qi@linaro.org>
10294 * linux-aarch64-low.c: Don't include sys/uio.h.
10295 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10297 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10299 * tracepoint.c (eval_result_type): Change prototype.
10300 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10302 2015-09-15 Pedro Alves <palves@redhat.com>
10304 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10305 Check whether to report exec events instead of checking whether
10306 multiprocess is enabled.
10308 2015-09-15 Pedro Alves <palves@redhat.com>
10311 * remote-utils.c (prepare_resume_reply): Merge
10312 TARGET_WAITKIND_VFORK_DONE switch case with the
10313 TARGET_WAITKIND_FORKED case.
10315 2015-09-15 Yao Qi <yao.qi@linaro.org>
10317 * server.c (handle_query): Check string comparison using
10318 "else if" instead of "if".
10320 2015-09-15 Yao Qi <yao.qi@linaro.org>
10322 * server.c (vCont_supported): New global variable.
10323 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10324 matches. Append ";vContSupported+" to own_buf.
10325 (handle_v_requests): Append ";s;S" to own_buf if target supports
10326 hardware single step or vCont_supported is false.
10327 (capture_main): Set vCont_supported to zero.
10329 2015-09-15 Yao Qi <yao.qi@linaro.org>
10331 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10333 (linux_supports_hardware_single_step): ... New function.
10334 (linux_target_ops): Update.
10335 * lynx-low.c (lynx_target_ops): Set field
10336 supports_hardware_single_step to target_can_do_hardware_single_step.
10337 * nto-low.c (nto_target_ops): Likewise.
10338 * spu-low.c (spu_target_ops): Likewise.
10339 * win32-low.c (win32_target_ops): Likewise.
10340 * target.c (target_can_do_hardware_single_step): New function.
10341 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10342 Remove. <supports_hardware_single_step>: New field.
10343 (target_supports_conditional_breakpoints): Remove.
10344 (target_supports_hardware_single_step): New macro.
10345 (target_can_do_hardware_single_step): Declare.
10346 * server.c (handle_query): Use target_supports_hardware_single_step
10347 instead of target_supports_conditional_breakpoints.
10349 2015-09-15 Yao Qi <yao.qi@linaro.org>
10351 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10353 (struct linux_target_ops the_low_target): Install
10354 aarch64_linux_siginfo_fixup.
10356 2015-09-11 Don Breazeal <donb@codesourcery.com>
10357 Luis Machado <lgustavo@codesourcery.com>
10359 * linux-low.c (linux_mourn): Static declaration.
10360 (linux_arch_setup): Move in front of
10361 handle_extended_wait.
10362 (linux_arch_setup_thread): New function.
10363 (handle_extended_wait): Handle exec events. Call
10364 linux_arch_setup_thread. Make event_lwp argument a
10365 pointer-to-a-pointer.
10366 (check_zombie_leaders): Do not check stopped threads.
10367 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10368 (linux_low_filter_event): Add lwp and thread for exec'ing
10369 non-leader thread if leader thread has been deleted.
10370 Refactor code into linux_arch_setup_thread and call it.
10371 Pass child lwp pointer by reference to handle_extended_wait.
10372 (linux_wait_for_event_filtered): Update comment.
10373 (linux_wait_1): Prevent clobbering exec event status.
10374 (linux_supports_exec_events): New function.
10375 (linux_target_ops) <supports_exec_events>: Initialize new member.
10376 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10378 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10379 * server.c (report_exec_events): New global variable.
10380 (handle_query): Handle qSupported query for exec-events feature.
10381 (captured_main): Initialize report_exec_events.
10382 * server.h (report_exec_events): Declare new global variable.
10383 * target.h (struct target_ops) <supports_exec_events>: New
10385 (target_supports_exec_events): New macro.
10386 * win32-low.c (win32_target_ops) <supports_exec_events>:
10387 Initialize new member.
10389 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10391 * linux-low.c (linux_low_enable_btrace): Remove.
10392 (linux_target_ops): Replace linux_low_enable_btrace with
10393 linux_enable_btrace.
10395 2015-09-03 Yao Qi <yao.qi@linaro.org>
10397 * linux-aarch64-low.c (aarch64_insert_point): Call
10398 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10401 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10403 * linux-low.c (check_stopped_by_breakpoint): Use
10404 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10406 2015-08-27 Pedro Alves <palves@redhat.com>
10408 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10410 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10412 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10413 the XNEW-family equivalent.
10414 (compile_bytecodes): Likewise.
10415 * dll.c (loaded_dll): Likewise.
10416 * event-loop.c (append_callback_event): Likewise.
10417 (create_file_handler): Likewise.
10418 (create_file_event): Likewise.
10419 * hostio.c (handle_open): Likewise.
10420 * inferiors.c (add_thread): Likewise.
10421 (add_process): Likewise.
10422 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10423 * linux-arm-low.c (arm_new_process): Likewise.
10424 (arm_new_thread): Likewise.
10425 * linux-low.c (add_to_pid_list): Likewise.
10426 (linux_add_process): Likewise.
10427 (handle_extended_wait): Likewise.
10428 (add_lwp): Likewise.
10429 (enqueue_one_deferred_signal): Likewise.
10430 (enqueue_pending_signal): Likewise.
10431 (linux_resume_one_lwp_throw): Likewise.
10432 (linux_resume_one_thread): Likewise.
10433 (linux_read_memory): Likewise.
10434 (linux_write_memory): Likewise.
10435 * linux-mips-low.c (mips_linux_new_process): Likewise.
10436 (mips_linux_new_thread): Likewise.
10437 (mips_add_watchpoint): Likewise.
10438 * linux-x86-low.c (initialize_low_arch): Likewise.
10439 * lynx-low.c (lynx_add_process): Likewise.
10440 * mem-break.c (set_raw_breakpoint_at): Likewise.
10441 (set_breakpoint): Likewise.
10442 (add_condition_to_breakpoint): Likewise.
10443 (add_commands_to_breakpoint): Likewise.
10444 (clone_agent_expr): Likewise.
10445 (clone_one_breakpoint): Likewise.
10446 * regcache.c (new_register_cache): Likewise.
10447 * remote-utils.c (look_up_one_symbol): Likewise.
10448 * server.c (queue_stop_reply): Likewise.
10449 (start_inferior): Likewise.
10450 (queue_stop_reply_callback): Likewise.
10451 (handle_target_event): Likewise.
10452 * spu-low.c (fetch_ppc_memory): Likewise.
10453 (store_ppc_memory): Likewise.
10454 * target.c (set_target_ops): Likewise.
10455 * thread-db.c (thread_db_load_search): Likewise.
10456 (try_thread_db_load_1): Likewise.
10457 * tracepoint.c (add_tracepoint): Likewise.
10458 (add_tracepoint_action): Likewise.
10459 (create_trace_state_variable): Likewise.
10460 (cmd_qtdpsrc): Likewise.
10461 (cmd_qtro): Likewise.
10462 (add_while_stepping_state): Likewise.
10463 * win32-low.c (child_add_thread): Likewise.
10464 (get_image_name): Likewise.
10466 2015-08-25 Yao Qi <yao.qi@linaro.org>
10468 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10470 2015-08-25 Yao Qi <yao.qi@linaro.org>
10472 * Makefile.in (aarch64-linux.o): New rule.
10473 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10475 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10476 (aarch64_init_debug_reg_state): Make it extern.
10477 (aarch64_linux_prepare_to_resume): Remove.
10479 2015-08-25 Yao Qi <yao.qi@linaro.org>
10481 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10482 lwp_arch_private_info and ptid_of_lwp.
10484 2015-08-25 Yao Qi <yao.qi@linaro.org>
10486 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10487 Find proc_info by find_process_pid. All callers updated.
10489 2015-08-25 Yao Qi <yao.qi@linaro.org>
10491 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10493 (debug_reg_change_callback): Remove.
10494 (aarch64_notify_debug_reg_change): Remove.
10496 2015-08-25 Yao Qi <yao.qi@linaro.org>
10498 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10499 Call current_lwp_ptid.
10501 2015-08-25 Yao Qi <yao.qi@linaro.org>
10503 * linux-aarch64-low.c (debug_reg_change_callback): Use
10506 2015-08-25 Yao Qi <yao.qi@linaro.org>
10508 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10510 2015-08-25 Yao Qi <yao.qi@linaro.org>
10512 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10514 2015-08-25 Yao Qi <yao.qi@linaro.org>
10516 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10519 2015-08-25 Yao Qi <yao.qi@linaro.org>
10521 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10523 (debug_reg_change_callback): Remove argument entry and add argument
10524 lwp. Remove local variable thread. Don't print thread id in the
10525 debugging output. Don't check whether pid of thread equals to pid.
10526 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10527 iterate_over_lwps instead find_inferior.
10529 2015-08-24 Pedro Alves <palves@redhat.com>
10531 * inferiors.c (get_first_process): New function.
10532 * inferiors.h (get_first_process): New declaration.
10533 * remote-utils.c (read_ptid): Default to the first process in the
10534 list, instead of to the current thread's process.
10536 2015-08-24 Pedro Alves <palves@redhat.com>
10538 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10539 * event-loop.c: Likewise.
10540 * remote-utils.c: Likewise.
10541 * tracepoint.c: Likewise.
10543 2015-08-24 Pedro Alves <palves@redhat.com>
10545 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10548 2015-08-21 Pedro Alves <palves@redhat.com>
10550 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10551 instead of literal 1.
10553 2015-08-21 Pedro Alves <palves@redhat.com>
10555 * tdesc.c (default_description): Explicitly zero-initialize.
10557 2015-08-21 Pedro Alves <palves@redhat.com>
10560 * inferiors.c (remove_thread): Discard any pending stop reply for
10562 * server.c (remove_all_on_match_pid): Rename to ...
10563 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10565 (discard_queued_stop_replies): Change parameter to a ptid. Now
10567 (handle_v_kill, kill_inferior_callback, captured_main)
10568 (process_serial_event): Adjust.
10569 * server.h (discard_queued_stop_replies): Declare.
10571 2015-08-21 Pedro Alves <palves@redhat.com>
10573 * linux-low.c (wait_for_sigstop): Always switch to no thread
10574 selected if the previously current thread dies.
10575 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10576 process instead of the current thread's.
10577 * remote-utils.c (input_interrupt): Don't check if there's no
10579 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10580 current thread to the general thread fails, error out.
10581 (handle_qxfer_auxv, handle_qxfer_libraries)
10582 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10583 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10584 (handle_query): Check if there's a thread selected instead of
10585 checking whether there's any thread in the thread list.
10586 (handle_qxfer_threads, handle_qxfer_btrace)
10587 (handle_qxfer_btrace_conf): Don't error out early if there's no
10588 thread in the thread list.
10589 (handle_v_cont, myresume): Don't set the current thread to the
10591 (process_serial_event) <Hg handling>: Also set thread_id if the
10592 previous general thread is still alive.
10593 (process_serial_event) <g/G handling>: If setting the current
10594 thread to the general thread fails, error out.
10595 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10596 thread's lwp instead of the current thread's.
10597 * target.c (set_desired_thread): If the desired thread was not
10598 found, leave the current thread pointing to NULL. Return an int
10599 (boolean) indicating success.
10600 * target.h (set_desired_thread): Change return type to int.
10602 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10604 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10605 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10607 (ps_get_thread_area): New function.
10609 2015-08-19 Gary Benson <gbenson@redhat.com>
10611 * hostio.c (handle_pread): Do not attempt to read more data
10612 than hostio_reply_with_data can fit in a packet.
10614 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10616 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10618 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10620 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10622 2015-08-06 Pedro Alves <palves@redhat.com>
10624 * tracepoint.c (expr_eval_result): Now an int.
10626 2015-08-06 Pedro Alves <palves@redhat.com>
10628 * gdbthread.h (struct regcache): Forward declare.
10629 (struct thread_info) <regcache_data>: Now a struct regcache
10631 * inferiors.c (inferior_regcache_data)
10632 (set_inferior_regcache_data): Now work with struct regcache
10634 * inferiors.h (struct regcache): Forward declare.
10635 (inferior_regcache_data, set_inferior_regcache_data): Now work
10636 with struct regcache pointers.
10637 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10638 (free_register_cache_thread): Remove struct regcache pointer
10641 2015-08-06 Pedro Alves <palves@redhat.com>
10643 * server.c (captured_main): On error, print the exception message
10644 to stderr, and if run_once is set, throw a quit.
10646 2015-08-06 Pedro Alves <palves@redhat.com>
10648 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10649 the current thread.
10651 2015-08-06 Pedro Alves <palves@redhat.com>
10653 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10654 reading beyond the passed in buffer length.
10656 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10658 * tracepoint.c (symbol_list) <required>: Remove.
10660 2015-08-06 Pedro Alves <palves@redhat.com>
10662 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10663 count if stopping and suspending threads.
10664 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10665 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10666 (linux_detach): Complete an ongoing step-over.
10667 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10669 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10670 (linux_wait_1): If passing a signal to the inferior after
10671 finishing a step-over, unsuspend and re-resume all lwps. If we
10672 see a single-step event but the thread should be continuing, don't
10673 pass the trap to gdb.
10674 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10675 internal_error instead of gdb_assert.
10676 (enqueue_pending_signal): New function.
10677 (check_ptrace_stopped_lwp_gone): Add debug output.
10678 (start_step_over): Use internal_error instead of gdb_assert.
10679 (complete_ongoing_step_over): New function.
10680 (linux_resume_one_thread): Don't resume a suspended thread.
10681 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10684 2015-08-06 Pedro Alves <palves@redhat.com>
10686 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10687 (linux_thread_alive): Use lwp_is_marked_dead.
10688 (extended_event_reported): Delete.
10689 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10690 instead of extended_event_reported.
10691 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10693 (lwp_is_marked_dead): New function.
10694 (lwp_running): Use lwp_is_marked_dead.
10695 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10698 2015-08-06 Pedro Alves <palves@redhat.com>
10700 * linux-low.c (linux_wait_1): Move fork event output out of the
10701 !report_to_gdb check. Pass event_child->waitstatus to
10702 target_waitstatus_to_string instead of ourstatus.
10704 2015-08-04 Yao Qi <yao.qi@linaro.org>
10706 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10707 if current_thread is 32 bit.
10709 2015-08-04 Yao Qi <yao.qi@linaro.org>
10711 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10712 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10713 * server.c (extended_protocol): Remove "static".
10714 * server.h (extended_protocol): Declare it.
10716 2015-08-04 Yao Qi <yao.qi@linaro.org>
10718 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10719 both aarch64 and aarch32.
10720 (aarch64_set_pc): Likewise.
10722 2015-08-04 Yao Qi <yao.qi@linaro.org>
10724 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10725 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10726 arm-with-neon.xml to srv_xmlfiles.
10727 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10728 (is_64bit_tdesc): New function.
10729 (aarch64_linux_read_description): New function.
10730 (aarch64_arch_setup): Call aarch64_linux_read_description.
10731 (regs_info): Rename to regs_info_aarch64.
10732 (aarch64_regs_info): Return right regs_info.
10733 (initialize_low_arch): Call initialize_low_arch_aarch32.
10735 2015-08-04 Yao Qi <yao.qi@linaro.org>
10737 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10738 * linux-aarch32-low.c: New file.
10739 * linux-aarch32-low.h: New file.
10740 * linux-arm-low.c (arm_fill_gregset): Move it to
10741 linux-aarch32-low.c.
10742 (arm_store_gregset): Likewise.
10743 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10744 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10745 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10746 (regs_info): Rename to regs_info_arm.
10747 (arm_regs_info): Return regs_info_aarch32 if
10748 have_ptrace_getregset is 1 and target description is
10749 arm_with_neon or arm_with_vfpv3.
10750 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10751 Call initialize_low_arch_aarch32 instead.
10753 2015-08-04 Yao Qi <yao.qi@linaro.org>
10755 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10756 * linux-low.c: ... here.
10757 * linux-low.h (have_ptrace_getregset): Declare it.
10759 2015-08-04 Pedro Alves <palves@redhat.com>
10761 * thread-db.c (struct thread_db): Use new typedefs.
10762 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10764 (disable_thread_event_reporting): Cast result of dlsym to
10765 destination function pointer type.
10766 (thread_db_mourn): Use td_ta_delete_ftype.
10768 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10770 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10772 (CDX_BREAKPOINT): Define for R2.
10773 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10774 (the_low_target): Add comments.
10776 2015-07-30 Yao Qi <yao.qi@linaro.org>
10778 * linux-arm-low.c (arm_hwcap): Remove it.
10779 (arm_read_description): New local variable arm_hwcap. Don't
10780 set arm_hwcap to zero.
10782 2015-07-30 Yao Qi <yao.qi@linaro.org>
10784 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10785 Use regcache->tdesc instead.
10786 (arm_store_wmmxregset): Likewise.
10787 (arm_fill_vfpregset): Likewise.
10788 (arm_store_vfpregset): Likewise.
10790 2015-07-30 Yao Qi <yao.qi@linaro.org>
10792 * linux-arm-low.c: Include arch/arm.h.
10793 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10794 (arm_store_gregset): Likewise.
10796 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10798 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10799 ptrace's 4th parameter.
10801 2015-07-27 Yao Qi <yao.qi@linaro.org>
10803 * configure.srv (case aarch64*-*-linux*): Don't set
10806 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10808 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10810 * linux-arm-low.c: Likewise.
10811 * linux-cris-low.c: Likewise.
10812 * linux-crisv32-low.c: Likewise.
10813 * linux-low.c: Likewise.
10814 * linux-m68k-low.c: Likewise.
10815 * linux-mips-low.c: Likewise.
10816 * linux-nios2-low.c: Likewise.
10817 * linux-s390-low.c: Likewise.
10818 * linux-sparc-low.c: Likewise.
10819 * linux-tic6x-low.c: Likewise.
10820 * linux-tile-low.c: Likewise.
10821 * linux-x86-low.c: Likewise.
10823 2015-07-24 Pedro Alves <palves@redhat.com>
10825 * config.in: Regenerate.
10826 * configure: Regenerate.
10828 2015-07-24 Pedro Alves <palves@redhat.com>
10830 * acinclude.m4: Include ../ptrace.m4.
10831 * configure.ac: Call GDB_AC_PTRACE.
10832 * config.in, configure: Regenerate.
10834 2015-07-24 Yao Qi <yao.qi@linaro.org>
10836 * linux-low.c (linux_create_inferior): Remove setting to
10837 proc->priv->new_inferior.
10838 (linux_attach): Likewise.
10839 (linux_low_filter_event): Likewise.
10840 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10842 2015-07-24 Yao Qi <yao.qi@linaro.org>
10844 * linux-low.c (linux_arch_setup): New function.
10845 (linux_low_filter_event): If proc->tdesc is NULL and
10846 proc->attached is true, call the_low_target.arch_setup.
10847 Otherwise, keep status pending, and return.
10848 (linux_resume_one_lwp_throw): Don't call get_pc if
10849 thread->while_stepping isn't NULL. Don't call
10850 get_thread_regcache if proc->tdesc is NULL.
10851 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10852 (linux_target_ops): Install arch_setup.
10853 * server.c (start_inferior): Call the_target->arch_setup.
10854 * target.h (struct target_ops) <arch_setup>: New field.
10855 (target_arch_setup): New marco.
10856 * lynx-low.c (lynx_target_ops): Update.
10857 * nto-low.c (nto_target_ops): Update.
10858 * spu-low.c (spu_target_ops): Update.
10859 * win32-low.c (win32_target_ops): Update.
10861 2015-07-24 Yao Qi <yao.qi@linaro.org>
10863 * linux-low.c (linux_add_process): Don't set
10864 proc->priv->new_inferior.
10865 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10866 (linux_attach): Likewise.
10868 2015-07-24 Yao Qi <yao.qi@linaro.org>
10870 * server.c (start_inferior): Code refactor.
10872 2015-07-24 Yao Qi <yao.qi@linaro.org>
10874 * server.c (process_serial_event): Set general_thread.
10876 2015-07-21 Yao Qi <yao.qi@linaro.org>
10878 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10879 aarch64_linux_get_debug_reg_capacity.
10881 2015-07-17 Yao Qi <yao.qi@linaro.org>
10883 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10884 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10885 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10886 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10887 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10888 (AARCH64_HWP_ALIGNMENT): Likewise.
10889 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10890 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10891 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10892 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10893 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10894 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10895 (struct aarch64_debug_reg_state): Likewise.
10896 (struct arch_lwp_info): Likewise.
10897 (aarch64_align_watchpoint): Likewise.
10898 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10899 (aarch64_watchpoint_length): Likewise.
10900 (aarch64_point_encode_ctrl_reg): Likewise
10901 (aarch64_point_is_aligned): Likewise.
10902 (aarch64_align_watchpoint): Likewise.
10903 (aarch64_linux_set_debug_regs):
10904 (aarch64_dr_state_insert_one_point): Likewise.
10905 (aarch64_dr_state_remove_one_point): Likewise.
10906 (aarch64_handle_breakpoint): Likewise.
10907 (aarch64_handle_aligned_watchpoint): Likewise.
10908 (aarch64_handle_unaligned_watchpoint): Likewise.
10909 (aarch64_handle_watchpoint): Likewise.
10911 2015-07-17 Yao Qi <yao.qi@linaro.org>
10913 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10914 and don't aarch64_get_debug_reg_state. All callers update.
10915 (aarch64_handle_aligned_watchpoint): Likewise.
10916 (aarch64_handle_unaligned_watchpoint): Likewise.
10917 (aarch64_handle_watchpoint): Likewise.
10918 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10919 (aarch64_remove_point): Likewise.
10921 2015-07-17 Yao Qi <yao.qi@linaro.org>
10923 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10925 (aarch64_handle_unaligned_watchpoint): Likewise.
10927 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10929 Revert the previous 3 commits:
10930 Move gdb_regex* to common/
10931 Move linux_find_memory_regions_full & co.
10932 gdbserver build-id attribute generator
10934 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10935 Jan Kratochvil <jan.kratochvil@redhat.com>
10937 gdbserver build-id attribute generator.
10938 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10939 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10940 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10942 (get_dynamic): Use find_pdhr to traverse program headers.
10943 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10944 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10945 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10946 (get_hex_build_id): New.
10947 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10948 to reply XML document.
10950 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10951 Jan Kratochvil <jan.kratochvil@redhat.com>
10953 * target.c: Include target/target-utils.h and fcntl.h.
10954 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10955 (target_fileio_read_stralloc): New functions.
10957 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10959 * Makefile.in (OBS): Add gdb_regex.o.
10960 (gdb_regex.o): New.
10961 * config.in: Rebuilt.
10962 * configure: Rebuilt.
10964 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10965 Jan Kratochvil <jan.kratochvil@redhat.com>
10967 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10968 * Makefile.in (OBS): Add target-utils.o.
10969 (linux-maps.o, target-utils.o): New.
10970 * configure.srv (srv_linux_obj): Add linux-maps.o.
10972 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10974 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10975 function, return 1.
10976 (the_low_target): Install it.
10978 2015-07-14 Pedro Alves <palves@redhat.com>
10980 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10981 Instead, ignore ECHILD, and throw an error for other errnos.
10983 2015-07-10 Pedro Alves <palves@redhat.com>
10985 * event-loop.c (struct callback_event) <data>: Change type to
10986 gdb_client_data instance instead of gdb_client_data pointer.
10987 (append_callback_event): Adjust.
10989 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10991 * linux-aarch64-low.c: Add comments for each linux_target_ops
10992 method. Remove comments already covered in target_ops and
10993 linux_target_ops definitions.
10994 (the_low_target): Add comments for each unimplemented method.
10996 2015-07-09 Yao Qi <yao.qi@linaro.org>
10998 * linux-aarch64-low.c (aarch64_regmap): Remove.
10999 (aarch64_usrregs_info): Remove.
11000 (regs_info): Set field usrregs to NULL.
11002 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11004 * linux-low.c: Include "rsp-low.h"
11005 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11006 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11007 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11008 (handle_btrace_enable_pt): New.
11009 (handle_btrace_general_set): Support "pt".
11010 (handle_btrace_conf_general_set): Support "pt:size".
11012 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11014 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11017 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11019 * linux-aarch64-low.c: Remove comment about endianness.
11020 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11021 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11024 2015-06-24 Gary Benson <gbenson@redhat.com>
11026 * linux-i386-ipa.c (stdint.h): Do not include.
11027 * lynx-i386-low.c (stdint.h): Likewise.
11028 * lynx-ppc-low.c (stdint.h): Likewise.
11029 * mem-break.c (stdint.h): Likewise.
11030 * thread-db.c (stdint.h): Likewise.
11031 * tracepoint.c (stdint.h): Likewise.
11032 * win32-low.c (stdint.h): Likewise.
11034 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11036 * server.c (write_qxfer_response): Update call to
11037 remote_escape_output.
11039 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11040 Jan Kratochvil <jan.kratochvil@redhat.com>
11042 Merge multiple hex conversions.
11043 * gdbreplay.c (tohex): Rename to 'fromhex'.
11044 (logchar): Use fromhex.
11046 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11048 * server.c (handle_qxfer_libraries): Set `version' attribute for
11051 2015-06-10 Gary Benson <gbenson@redhat.com>
11053 * target.h (struct target_ops) <multifs_open>: New field.
11054 <multifs_unlink>: Likewise.
11055 <multifs_readlink>: Likewise.
11056 * linux-low.c (nat/linux-namespaces.h): New include.
11057 (linux_target_ops): Initialize the_target->multifs_open,
11058 the_target->multifs_unlink and the_target->multifs_readlink.
11059 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11060 * hostio.c (hostio_fs_pid): New static variable.
11061 (hostio_handle_new_gdb_connection): New function.
11062 (handle_setfs): Likewise.
11063 (handle_open): Use the_target->multifs_open as appropriate.
11064 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11065 (handle_readlink): Use the_target->multifs_readlink as
11067 (handle_vFile): Handle vFile:setfs packets.
11068 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11069 after target_handle_new_gdb_connection.
11071 2015-06-10 Gary Benson <gbenson@redhat.com>
11073 * configure.ac (AC_CHECK_FUNCS): Add setns.
11074 * config.in: Regenerate.
11075 * configure: Likewise.
11076 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11077 (linux-namespaces.o): New rule.
11078 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11080 2015-06-09 Gary Benson <gbenson@redhat.com>
11082 * hostio.c (handle_open): Process mode argument with
11083 fileio_to_host_mode.
11085 2015-06-01 Yao Qi <yao.qi@linaro.org>
11087 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11088 * linux-x86-low.c: Likewise.
11090 2015-05-28 Don Breazeal <donb@codesourcery.com>
11092 * linux-low.c (handle_extended_wait): Initialize
11093 thread_info.last_resume_kind for new fork children.
11095 2015-05-15 Pedro Alves <palves@redhat.com>
11097 * target.h (target_handle_new_gdb_connection): Rewrite using if
11098 wrapped in do/while.
11100 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11102 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11103 * configure, config.in: Regenerate.
11104 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11107 2015-05-12 Don Breazeal <donb@codesourcery.com>
11109 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11110 PTRACE_EVENT_VFORK_DONE.
11111 (linux_low_ptrace_options, extended_event_reported): Add vfork
11113 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11114 and "vforkdone" for RSP 'T' Stop Reply Packet.
11115 * server.h (report_vfork_events): Declare
11118 2015-05-12 Don Breazeal <donb@codesourcery.com>
11120 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11121 (the_low_target) <new_fork>: Initialize new member.
11122 * linux-arm-low.c (arm_new_fork): New function.
11123 (the_low_target) <new_fork>: Initialize new member.
11124 * linux-low.c (handle_extended_wait): Call new target function
11126 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11127 * linux-mips-low.c (mips_add_watchpoint): New function
11128 extracted from mips_insert_point.
11129 (the_low_target) <new_fork>: Initialize new member.
11130 (mips_linux_new_fork): New function.
11131 (mips_insert_point): Call mips_add_watchpoint.
11132 * linux-x86-low.c (x86_linux_new_fork): New function.
11133 (the_low_target) <new_fork>: Initialize new member.
11135 2015-05-12 Don Breazeal <donb@codesourcery.com>
11137 * linux-low.c (handle_extended_wait): Implement return value,
11138 rename argument 'event_child' to 'event_lwp', handle
11139 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11140 (linux_low_ptrace_options): New function.
11141 (linux_low_filter_event): Call linux_low_ptrace_options,
11142 use different argument fo linux_enable_event_reporting,
11143 use return value from handle_extended_wait.
11144 (extended_event_reported): New function.
11145 (linux_wait_1): Call extended_event_reported and set
11146 status to report fork events.
11147 (linux_write_memory): Add pid to debug message.
11148 (reset_lwp_ptrace_options_callback): New function.
11149 (linux_handle_new_gdb_connection): New function.
11150 (linux_target_ops): Initialize new structure member.
11151 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11152 * lynx-low.c: Initialize new structure member.
11153 * remote-utils.c (prepare_resume_reply): Implement stop reason
11154 "fork" for "T" stop message.
11155 * server.c (handle_query): Call handle_new_gdb_connection.
11156 * server.h (report_fork_events): Declare global flag.
11157 * target.h (struct target_ops) <handle_new_gdb_connection>:
11159 (target_handle_new_gdb_connection): New macro.
11160 * win32-low.c: Initialize new structure member.
11162 2015-05-12 Don Breazeal <donb@codesourcery.com>
11164 * mem-break.c (APPEND_TO_LIST): Define macro.
11165 (clone_agent_expr): New function.
11166 (clone_one_breakpoint): New function.
11167 (clone_all_breakpoints): New function.
11168 * mem-break.h: Declare new functions.
11170 2015-05-12 Don Breazeal <donb@codesourcery.com>
11172 * linux-low.c (linux_supports_fork_events): New function.
11173 (linux_supports_vfork_events): New function.
11174 (linux_target_ops): Initialize new structure members.
11175 (initialize_low): Call linux_check_ptrace_features.
11176 * lynx-low.c (lynx_target_ops): Initialize new structure
11178 * server.c (report_fork_events, report_vfork_events):
11180 (handle_query): Add new features to qSupported packet and
11182 (captured_main): Initialize new global variables.
11183 * target.h (struct target_ops) <supports_fork_events>:
11185 <supports_vfork_events>: New member.
11186 (target_supports_fork_events): New macro.
11187 (target_supports_vfork_events): New macro.
11188 * win32-low.c (win32_target_ops): Initialize new structure
11191 2015-05-12 Gary Benson <gbenson@redhat.com>
11193 * server.c (handle_qxfer_exec_file): Use current process
11196 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11198 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11199 Remove HAVE_PTRACE_GETREGS conditionals.
11200 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11201 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11203 2015-05-08 Yao Qi <yao.qi@linaro.org>
11205 * linux-low.c (linux_supports_conditional_breakpoints): New
11207 (linux_target_ops): Install new target method.
11208 * lynx-low.c (lynx_target_ops): Install NULL hook for
11209 supports_conditional_breakpoints.
11210 * nto-low.c (nto_target_ops): Likewise.
11211 * spu-low.c (spu_target_ops): Likewise.
11212 * win32-low.c (win32_target_ops): Likewise.
11213 * server.c (handle_query): Check
11214 target_supports_conditional_breakpoints.
11215 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11217 (target_supports_conditional_breakpoints): New macro.
11219 2015-05-06 Pedro Alves <palves@redhat.com>
11222 * server.c (start_inferior): If the process exits, mourn it.
11224 2015-04-21 Gary Benson <gbenson@redhat.com>
11226 * hostio.c (fileio_open_flags_to_host): Factored out to
11227 fileio_to_host_openflags in common/fileio.c. Single use
11230 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11232 * linux-xtensa-low.c (xtensa_fill_gregset)
11233 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11236 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11238 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11239 (regs_info): Replace usrregs pointer with NULL.
11241 2015-04-17 Gary Benson <gbenson@redhat.com>
11243 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11244 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11245 * server.c (handle_qxfer_exec_file): New function.
11246 (qxfer_packets): Add exec-file entry.
11247 (handle_query): Report qXfer:exec-file:read as supported packet.
11249 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11251 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11253 2015-04-09 Gary Benson <gbenson@redhat.com>
11255 * hostio-errno.c (errno_to_fileio_error): Remove function.
11256 Update caller to use remote_fileio_to_fio_error.
11258 2015-04-09 Yao Qi <yao.qi@linaro.org>
11260 * linux-low.c (linux_insert_point): Call
11261 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11262 (linux_remove_point): Call remove_memory_breakpoint if type is
11264 * linux-x86-low.c (x86_insert_point): Don't call
11265 insert_memory_breakpoint.
11266 (x86_remove_point): Don't call remove_memory_breakpoint.
11268 2015-04-01 Pedro Alves <palves@redhat.com>
11269 Cleber Rosa <crosa@redhat.com>
11271 * server.c (gdbserver_usage): Reorganize and extend the usage
11274 2015-03-24 Pedro Alves <palves@redhat.com>
11276 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11277 output. Also dump TRAP_TRACE.
11278 (linux_low_filter_event): In debug output, distinguish a
11279 resume_stop SIGSTOP from a delayed SIGSTOP.
11281 2015-03-24 Gary Benson <gbenson@redhat.com>
11283 * linux-x86-low.c (x86_linux_new_thread): Moved to
11285 (x86_linux_prepare_to_resume): Likewise.
11287 2015-03-24 Gary Benson <gbenson@redhat.com>
11289 * Makefile.in (x86-linux-dregs.o): New rule.
11290 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11291 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11292 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11293 (x86_linux_dr_get): Likewise.
11294 (x86_linux_dr_set): Likewise.
11295 (update_debug_registers_callback): Likewise.
11296 (x86_linux_dr_set_addr): Likewise.
11297 (x86_linux_dr_get_addr): Likewise.
11298 (x86_linux_dr_set_control): Likewise.
11299 (x86_linux_dr_get_control): Likewise.
11300 (x86_linux_dr_get_status): Likewise.
11301 (x86_linux_update_debug_registers): Likewise.
11303 2015-03-24 Gary Benson <gbenson@redhat.com>
11305 * linux-x86-low.c (x86_linux_update_debug_registers):
11306 New function, factored out from...
11307 (x86_linux_prepare_to_resume): ...this.
11309 2015-03-24 Gary Benson <gbenson@redhat.com>
11311 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11312 (x86_linux_dr_set): Likewise.
11313 (update_debug_registers_callback): Likewise.
11314 (x86_linux_dr_set_addr): Likewise.
11315 (x86_linux_dr_get_addr): Likewise.
11316 (x86_linux_dr_set_control): Likewise.
11317 (x86_linux_dr_get_control): Likewise.
11318 (x86_linux_dr_get_status): Likewise.
11319 (x86_linux_prepare_to_resume): Likewise.
11321 2015-03-24 Gary Benson <gbenson@redhat.com>
11323 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11324 Use perror_with_name. Pass string through gettext.
11325 (x86_linux_dr_set): Likewise.
11327 2015-03-24 Gary Benson <gbenson@redhat.com>
11329 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11330 (x86_linux_dr_set_addr): ...this.
11331 (x86_dr_low_get_addr): Rename to...
11332 (x86_linux_dr_get_addr): ...this.
11333 (x86_dr_low_set_control): Rename to...
11334 (x86_linux_dr_set_control): ...this.
11335 (x86_dr_low_get_control): Rename to...
11336 (x86_linux_dr_get_control): ...this.
11337 (x86_dr_low_get_status): Rename to...
11338 (x86_linux_dr_get_status): ...this.
11339 (x86_dr_low): Update with new function names.
11341 2015-03-24 Gary Benson <gbenson@redhat.com>
11343 * Makefile.in (x86-linux.o): New rule.
11344 * configure.srv: Add x86-linux.o to relevant targets.
11345 * linux-low.c (lwp_set_arch_private_info): New function.
11346 (lwp_arch_private_info): Likewise.
11347 * linux-x86-low.c: Include nat/x86-linux.h.
11348 (arch_lwp_info): Removed structure.
11349 (update_debug_registers_callback):
11350 Use lwp_set_debug_registers_changed.
11351 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11352 and lwp_set_debug_registers_changed.
11353 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11355 2015-03-24 Gary Benson <gbenson@redhat.com>
11357 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11358 * linux-arm-low.c (arm_new_thread): Likewise.
11359 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11360 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11361 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11362 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11364 2015-03-24 Gary Benson <gbenson@redhat.com>
11366 * linux-low.c (ptid_of_lwp): New function.
11367 (lwp_is_stopped): Likewise.
11368 (lwp_stop_reason): Likewise.
11369 * linux-x86-low.c (update_debug_registers_callback):
11370 Use lwp_is_stopped.
11371 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11374 2015-03-24 Gary Benson <gbenson@redhat.com>
11376 * linux-low.h (linux_stop_lwp): Remove declaration.
11378 2015-03-24 Gary Benson <gbenson@redhat.com>
11380 * linux-low.h: Include nat/linux-nat.h.
11381 * linux-low.c (iterate_over_lwps_args): New structure.
11382 (iterate_over_lwps_filter): New function.
11383 (iterate_over_lwps): Likewise.
11384 * linux-x86-low.c (update_debug_registers_callback):
11385 Update signature to what iterate_over_lwps expects.
11386 Remove PID check that iterate_over_lwps now performs.
11387 (x86_dr_low_set_addr): Use iterate_over_lwps.
11388 (x86_dr_low_set_control): Likewise.
11390 2015-03-24 Gary Benson <gbenson@redhat.com>
11392 * linux-x86-low.c (x86_debug_reg_state): New function.
11393 (x86_linux_prepare_to_resume): Use the above.
11395 2015-03-24 Gary Benson <gbenson@redhat.com>
11397 * linux-low.c (current_lwp_ptid): New function.
11398 * linux-x86-low.c: Include nat/linux-nat.h.
11399 (x86_dr_low_get_addr): Use current_lwp_ptid.
11400 (x86_dr_low_get_control): Likewise.
11401 (x86_dr_low_get_status): Likewise.
11403 2015-03-20 Pedro Alves <palves@redhat.com>
11405 * tracepoint.c (cmd_qtstatus): Make "str" const.
11407 2015-03-20 Pedro Alves <palves@redhat.com>
11409 * server.c (handle_general_set): Make "req_str" const.
11411 2015-03-19 Pedro Alves <palves@redhat.com>
11413 * linux-low.c (linux_resume_one_lwp): Rename to ...
11414 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11415 instead call perror_with_name.
11416 (check_ptrace_stopped_lwp_gone): New function.
11417 (linux_resume_one_lwp): Reimplement as wrapper around
11418 linux_resume_one_lwp_throw that swallows errors if the LWP is
11421 2015-03-19 Pedro Alves <palves@redhat.com>
11423 * linux-low.c (count_events_callback, select_event_lwp_callback):
11424 No longer check whether the thread has resume_stop as last resume
11427 2015-03-19 Pedro Alves <palves@redhat.com>
11429 * linux-low.c (count_events_callback, select_event_lwp_callback):
11430 Use the lwp's status_pending_p field, not the thread's.
11432 2015-03-19 Pedro Alves <palves@redhat.com>
11434 * linux-low.c (select_event_lwp_callback): Update comments to
11435 no longer mention SIGTRAP.
11437 2015-03-18 Gary Benson <gbenson@redhat.com>
11439 * server.c (handle_query): Do not report vFile:fstat as supported.
11441 2015-03-11 Gary Benson <gbenson@redhat.com>
11443 * hostio.c (sys/types.h): New include.
11444 (sys/stat.h): Likewise.
11445 (common-remote-fileio.h): Likewise.
11446 (handle_fstat): New function.
11447 (handle_vFile): Handle vFile:fstat packets.
11449 2015-03-11 Gary Benson <gbenson@redhat.com>
11451 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11452 struct stat.st_blocks and struct stat.st_blksize.
11453 * configure: Regenerate.
11454 * config.in: Likewise.
11455 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11456 (OBS): Add common-remote-fileio.o.
11457 (common-remote-fileio.o): New rule.
11459 2015-03-09 Pedro Alves <palves@redhat.com>
11461 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11462 'struct sockaddr' pointer in 'accept' call.
11464 2015-03-09 Pedro Alves <palves@redhat.com>
11467 2015-03-07 Pedro Alves <palves@redhat.com>
11468 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11469 or <winsock2.h> here. Instead include "gdb_socket.h".
11470 (remote_open): Use union gdb_sockaddr_u.
11471 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11472 or <winsock2.h> here. Instead include "gdb_socket.h".
11473 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11474 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11476 (init_named_socket, gdb_agent_helper_thread): Use union
11479 2015-03-07 Pedro Alves <palves@redhat.com>
11481 * configure.ac (build_warnings): Move
11482 -Wdeclaration-after-statement to the C-specific set.
11483 * configure: Regenerate.
11485 2015-03-07 Pedro Alves <palves@redhat.com>
11487 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11488 or <winsock2.h> here. Instead include "gdb_socket.h".
11489 (remote_open): Use union gdb_sockaddr_u.
11490 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11491 or <winsock2.h> here. Instead include "gdb_socket.h".
11492 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11493 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11495 (init_named_socket, gdb_agent_helper_thread): Use union
11498 2015-03-07 Pedro Alves <palves@redhat.com>
11500 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11503 2015-03-06 Yao Qi <yao.qi@linaro.org>
11505 * linux-aarch64-low.c (aarch64_insert_point): Use
11506 show_debug_regs as a boolean.
11507 (aarch64_remove_point): Likewise.
11509 2015-03-05 Pedro Alves <palves@redhat.com>
11511 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11512 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11513 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11514 * nto-low.c (nto_target_ops): Likewise.
11515 * spu-low.c (spu_target_ops): Likewise.
11516 * win32-low.c (win32_target_ops): Likewise.
11518 2015-03-04 Pedro Alves <palves@redhat.com>
11520 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11521 Decide whether a breakpoint triggered based on the SIGTRAP's
11523 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11524 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11525 (linux_low_filter_event): Check for breakpoints before checking
11527 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11529 (linux_stopped_by_sw_breakpoint)
11530 (linux_supports_stopped_by_sw_breakpoint)
11531 (linux_stopped_by_hw_breakpoint)
11532 (linux_supports_stopped_by_hw_breakpoint): New functions.
11533 (linux_target_ops): Install new target methods.
11535 2015-03-04 Pedro Alves <palves@redhat.com>
11537 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11538 * server.c (swbreak_feature, hwbreak_feature): New globals.
11539 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11540 (captured_main): Clear swbreak_feature and hwbreak_feature.
11541 * server.h (swbreak_feature, hwbreak_feature): Declare.
11542 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11543 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11544 supports_stopped_by_hw_breakpoint>: New fields.
11545 (target_supports_stopped_by_sw_breakpoint)
11546 (target_stopped_by_sw_breakpoint)
11547 (target_supports_stopped_by_hw_breakpoint)
11548 (target_stopped_by_hw_breakpoint): Declare.
11550 2015-03-04 Pedro Alves <palves@redhat.com>
11552 enum lwp_stop_reason -> enum target_stop_reason
11553 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11554 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11555 (linux_wait_1, stuck_in_jump_pad_callback)
11556 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11557 (linux_stopped_by_watchpoint):
11558 * linux-low.h (enum lwp_stop_reason): Delete.
11559 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11560 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11562 2015-03-04 Yao Qi <yao.qi@linaro.org>
11564 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11566 2015-03-03 Gary Benson <gbenson@redhat.com>
11568 * hostio.c (handle_vFile): Fix prefix lengths.
11570 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11572 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11575 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11577 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11578 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11579 (clean): Add "rm -f" for above C files.
11580 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11581 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11582 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11583 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11584 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11585 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11586 (init_registers_s390x_vx_linux64)
11587 (init_registers_s390x_tevx_linux64)
11588 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11589 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11591 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11592 (s390_store_vxrs_high): New functions.
11593 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11595 (s390_arch_setup): Add logic for selecting one of the new target
11596 descriptions. Activate the new vector regsets if applicable.
11597 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11598 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11599 and init_registers_s390x_tevx_linux64.
11601 2015-03-01 Pedro Alves <palves@redhat.com>
11603 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11606 2015-02-27 Pedro Alves <palves@redhat.com>
11608 * linux-x86-low.c (u_debugreg_offset): New function.
11609 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11611 2015-02-27 Pedro Alves <palves@redhat.com>
11613 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11614 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11615 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11616 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11617 (ps_lsetfpregs, ps_getpid)
11618 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11619 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11620 (ps_lsetxregs, ps_plog): Declare.
11622 2015-02-27 Pedro Alves <palves@redhat.com>
11624 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11625 IP_AGENT_EXPORT_FUNC.
11626 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11627 IP_AGENT_EXPORT_FUNC.
11628 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11629 (IP_AGENT_EXPORT): Delete.
11630 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11631 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11632 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11633 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11634 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11635 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11636 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11637 (traceframe_read_count, traceframe_write_count)
11638 (traceframes_created, trace_state_variables, get_raw_reg)
11639 (get_trace_state_variable_value, set_trace_state_variable_value)
11640 (ust_loaded, helper_thread_id, cmd_buf): Use
11641 IPA_SYM_EXPORTED_NAME.
11642 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11643 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11644 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11645 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11646 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11647 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11648 EXTERN_C_PUSH/EXTERN_C_POP.
11649 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11650 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11651 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11652 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11653 (traceframe_write_count, traceframe_read_count)
11654 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11655 (about_to_request_buffer_space, get_trace_state_variable_value)
11656 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11657 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11658 EXTERN_C_PUSH/EXTERN_C_POP.
11659 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11660 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11661 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11662 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11663 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11664 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11665 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11666 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11668 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11669 (IP_AGENT_EXPORT_VAR_DECL): Define.
11670 (tracing): Declare.
11671 (gdb_agent_get_raw_reg): Declare.
11673 2015-02-27 Tom Tromey <tromey@redhat.com>
11674 Pedro Alves <palves@redhat.com>
11676 Rename symbols whose names are reserved C++ keywords throughout.
11678 2015-02-27 Pedro Alves <palves@redhat.com>
11680 * Makefile.in (COMPILER): New, get it from autoconf.
11681 (CXX): Get from autoconf instead.
11682 (COMPILE.pre): Use COMPILER.
11683 (CC-LD): Rename to ...
11684 (CC_LD): ... this. Use COMPILER.
11685 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11686 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11687 * acinclude.m4: Include build-with-cxx.m4.
11688 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11689 Disable -Werror by default if building in C++ mode.
11690 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11691 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11692 the C++ compiler. Save/restore CXXFLAGS too.
11693 * configure: Regenerate.
11695 2015-02-27 Pedro Alves <palves@redhat.com>
11697 * acinclude.m4: Include libiberty.m4.
11698 * configure.ac: Call libiberty_INIT.
11699 * config.in, configure: Regenerate.
11701 2015-02-26 Pedro Alves <palves@redhat.com>
11703 * linux-low.c (linux_wait_1): When incrementing the PC past a
11704 program breakpoint always use the_low_target.breakpoint_len as
11705 increment, rather than the maximum between that and
11706 the_low_target.decr_pc_after_break.
11708 2015-02-23 Pedro Alves <palves@redhat.com>
11710 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11711 thread was doing a step-over; always adjust the PC if
11712 we stepped over a permanent breakpoint.
11713 (linux_wait_1): If we stepped over breakpoint that was on top of a
11714 permanent breakpoint, manually advance the PC past it.
11716 2015-02-23 Pedro Alves <palves@redhat.com>
11718 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11720 (x86_fill_gregset, x86_store_gregset): Use it when handling
11723 2015-02-20 Pedro Alves <palves@redhat.com>
11725 * thread-db.c: Include "nat/linux-procfs.h".
11726 (thread_db_init): Skip listing new threads if the kernel supports
11727 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11729 2015-02-20 Pedro Alves <palves@redhat.com>
11731 * linux-low.c (status_pending_p_callback): Use ptid_match.
11733 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11735 PR breakpoints/16812
11736 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11737 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11738 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11740 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11742 PR breakpoints/15956
11743 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11745 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11747 * linux-low.c (linux_low_btrace_conf): Print size.
11748 * server.c (handle_btrace_conf_general_set): New.
11749 (hanle_general_set): Call handle_btrace_conf_general_set.
11750 (handle_query): Report Qbtrace-conf:bts:size as supported.
11752 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11754 * linux-low.c (linux_low_enable_btrace): Update parameters.
11755 (linux_low_btrace_conf): New.
11756 (linux_target_ops)<to_btrace_conf>: Initialize.
11757 * server.c (current_btrace_conf): New.
11758 (handle_btrace_enable): Rename to ...
11759 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11760 to target_enable_btrace. Update comment. Update users.
11761 (handle_qxfer_btrace_conf): New.
11762 (qxfer_packets): Add btrace-conf entry.
11763 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11764 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11765 (target_ops)<read_btrace_conf>: New.
11766 (target_enable_btrace): Update parameters.
11767 (target_read_btrace_conf): New.
11769 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11771 * server.c (handle_btrace_general_set): Remove call to
11772 target_supports_btrace.
11773 (supported_btrace_packets): New.
11774 (handle_query): Call supported_btrace_packets.
11775 * target.h: include btrace-common.h.
11776 (btrace_target_info): Removed.
11777 (supports_btrace, target_supports_btrace): Update parameters.
11779 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11781 * Makefile.in (SFILES): Add common/btrace-common.c.
11782 (OBS): Add common/btrace-common.o.
11783 (btrace-common.o): Add build rules.
11784 * linux-low: Include btrace-common.h.
11785 (linux_low_read_btrace): Use struct btrace_data. Call
11786 btrace_data_init and btrace_data_fini.
11788 2015-02-06 Pedro Alves <palves@redhat.com>
11790 * thread-db.c (find_new_threads_callback): Add debug output.
11792 2015-02-04 Pedro Alves <palves@redhat.com>
11794 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11795 (resume_stopped_resumed_lwps): New function.
11796 (linux_wait_for_event_filtered): Use it.
11798 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11800 * Makefile.in (SFILES): Add linux-personality.c.
11801 (linux-personality.o): New rule.
11802 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11803 list of objects to be built.
11804 * linux-low.c: Include nat/linux-personality.h.
11805 (linux_create_inferior): Remove code to disable address space
11806 randomization (moved to ../nat/linux-personality.c). Create
11807 cleanup to disable address space randomization.
11809 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11811 * Makefile.in (posix-strerror.o): New rule.
11812 (mingw-strerror.o): Likewise.
11813 * configure: Regenerated.
11814 * configure.ac: Source file ../common/common.host. Initialize new
11815 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11817 2015-01-14 Yao Qi <yao@codesourcery.com>
11819 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11820 (ppc-linux.o): New rule.
11821 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11822 * configure.ac: AC_CHECK_FUNCS(getauxval).
11823 * config.in: Re-generated.
11824 * configure: Re-generated.
11825 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11826 ppc64_64bit_inferior_p
11828 2015-01-14 Yao Qi <yao@codesourcery.com>
11830 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11831 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11832 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11833 (PT_ORIG_R3, PT_TRAP): Likewise.
11834 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11835 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11836 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11838 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11840 * i387-fp.c (i387_cache_to_xsave): In look over
11841 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11842 zmmh_low_space field by use of zmmh_high_space.
11844 2015-01-09 Pedro Alves <palves@redhat.com>
11846 * linux-low.c (step_over_bkpt): Move higher up in the file.
11847 (handle_extended_wait): Don't store the stop_pc here.
11848 (get_stop_pc): Adjust comments and rename to ...
11849 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11850 stopped for a software breakpoint or hardware breakpoint.
11851 (thread_still_has_status_pending_p): New function.
11852 (status_pending_p_callback): Use
11853 thread_still_has_status_pending_p. If the event is no longer
11854 interesting, resume the LWP.
11855 (handle_tracepoints): Add assert.
11856 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11857 (wstatus_maybe_breakpoint): New function.
11858 (cancel_breakpoint): Delete function.
11859 (check_stopped_by_watchpoint): New function, factored out from
11860 linux_low_filter_event.
11861 (lp_status_maybe_breakpoint): Delete function.
11862 (linux_low_filter_event): Remove filter_ptid argument.
11863 Leave thread group exits pending here. Store the LWP's stop PC.
11864 Always leave events pending.
11865 (linux_wait_for_event_filtered): Pull all events out of the
11866 kernel, and leave them all pending.
11867 (count_events_callback, select_event_lwp_callback): Consider all
11869 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11870 (select_event_lwp): Only give preference to the stepping LWP in
11871 all-stop mode. Adjust comments.
11872 (ignore_event): New function.
11873 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11874 references to cancel_breakpoints. Adjust to renames. Also give
11875 equal priority to all LWPs that have had events in non-stop mode.
11876 If reporting a software breakpoint event, unadjust the LWP's PC.
11877 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11878 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11880 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11881 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11882 (linux_stopped_by_watchpoint): Adjust.
11883 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11884 * linux-low.h (enum lwp_stop_reason): New.
11885 (struct lwp_info) <stop_pc>: Adjust comment.
11886 <stopped_by_watchpoint>: Delete field.
11887 <stop_reason>: New field.
11888 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11889 * mem-break.c (software_breakpoint_inserted_here)
11890 (hardware_breakpoint_inserted_here): New function.
11891 * mem-break.h (software_breakpoint_inserted_here)
11892 (hardware_breakpoint_inserted_here): Declare.
11893 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11894 (cancel_breakpoints): Delete.
11895 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11896 (upload_fast_traceframes): Remove references to
11897 cancel_breakpoints.
11899 2015-01-09 Pedro Alves <palves@redhat.com>
11901 * thread-db.c (find_new_threads_callback): Ignore thread if the
11902 kernel thread ID is -1.
11904 2015-01-09 Pedro Alves <palves@redhat.com>
11906 * linux-low.c (linux_attach_fail_reason_string): Move to
11907 nat/linux-ptrace.c, and rename.
11908 (linux_attach_lwp): Update comment.
11909 (attach_proc_task_lwp_callback): New function.
11910 (linux_attach): Adjust to rename and use
11911 linux_proc_attach_tgid_threads.
11912 (linux_attach_fail_reason_string): Delete declaration.
11914 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11916 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11917 * server.c (gdbserver_version): Likewise.
11919 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11921 * remote-utils.c: Include ctype.h.
11922 (input_interrupt): Explicitly handle the case when the char
11923 received is the NUL byte. Improve the printing of non-ASCII
11926 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11928 * linux-low.c (linux_low_filter_event): Update call to
11929 linux_enable_event_reporting following the addition of
11930 a new parameter to that function.
11932 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11935 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11936 (AARCH64_FPCR_REGNO): Likewise.
11937 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11938 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11939 (aarch64_store_fpregset): Likewise.
11941 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11943 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11944 Remove FIXME comment about assumption about N.
11946 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11948 * configure.ac: If large-file support is disabled in GDBserver,
11949 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11950 * configure: Regenerate.
11952 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11954 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11955 warning upon ENODATA from ptrace.
11956 * linux-s390-low.c (s390_store_tdb): New.
11957 (s390_regsets): Add regset for NT_S390_TDB.
11959 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11961 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11962 without a fill_function.
11963 * linux-s390-low.c (s390_fill_last_break): Remove.
11964 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11965 (s390_arch_setup): Use regset's size instead of fill_function for
11966 loop end condition.
11968 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11970 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11971 the regset's store function when ptrace returned an error.
11972 * regcache.c (get_thread_regcache): Invalidate register cache
11973 before fetching inferior's registers.
11975 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11977 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11978 while-loop as for-loop.
11979 (regsets_store_inferior_registers): Likewise.
11981 2014-11-28 Yao Qi <yao@codesourcery.com>
11983 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11984 * config.in, configure: Re-generate.
11985 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11988 2014-11-21 Yao Qi <yao@codesourcery.com>
11990 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11991 (AC_CHECK_HEADERS): Remove malloc.h.
11992 * configure: Re-generated.
11993 * config.in: Re-generated.
11994 * server.h: Don't include alloca.h and malloc.h.
11995 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11996 Don't include malloc.h.
11998 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12000 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12001 corresponding ERRNO check in same block.
12003 2014-11-12 Pedro Alves <palves@redhat.com>
12005 * server.c (cont_thread): Update comment.
12006 (start_inferior, attach_inferior): No longer clear cont_thread.
12007 (handle_v_cont): No longer set cont_thread.
12008 (captured_main): Clear cont_thread each time a GDB connects.
12010 2014-11-12 Pedro Alves <palves@redhat.com>
12012 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12013 thread, and don't resume all threads if the Hc thread has exited.
12015 2014-11-12 Pedro Alves <palves@redhat.com>
12017 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12018 the process group instead of to a specific LWP.
12020 2014-10-15 Pedro Alves <palves@redhat.com>
12023 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12025 (arm_set_thread_context): Delete.
12026 (the_low_target): Adjust.
12027 * win32-i386-low.c (debug_registers_changed)
12028 (debug_registers_used): Delete.
12029 (update_debug_registers_callback): New function.
12030 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12031 needing to update their debug registers.
12032 (win32_get_current_dr): New function.
12033 (x86_dr_low_get_addr, x86_dr_low_get_control)
12034 (x86_dr_low_get_status): Fetch the debug register from the thread
12036 (i386_initial_stuff): Adjust.
12037 (i386_get_thread_context): Remove current_event parameter. Don't
12038 clear debug_registers_changed nor copy DR values to
12040 (i386_set_thread_context): Delete.
12041 (i386_prepare_to_resume): New function.
12042 (i386_thread_added): Mark the thread as needing to update irs
12044 (the_low_target): Remove i386_set_thread_context and install
12045 i386_prepare_to_resume.
12046 * win32-low.c (win32_get_thread_context): Adjust.
12047 (win32_set_thread_context): Use SetThreadContext
12049 (win32_prepare_to_resume): New function.
12050 (win32_require_context): New function, factored out from ...
12051 (thread_rec): ... this.
12052 (continue_one_thread): Call win32_prepare_to_resume on each thread
12053 we're about to continue.
12054 (win32_resume): Call win32_prepare_to_resume on the event thread.
12055 * win32-low.h (struct win32_thread_info)
12056 <debug_registers_changed>: New field.
12057 (struct win32_target_ops): Change prototype of set_thread_context,
12058 delete set_thread_context and add prepare_to_resume.
12059 (win32_require_context): New declaration.
12061 2014-10-08 Gary Benson <gbenson@redhat.com>
12063 * server.h: Do not include common-exceptions.h.
12065 2014-10-08 Gary Benson <gbenson@redhat.com>
12067 * server.h: Do not include cleanups.h.
12069 2014-09-30 James Hogan <james.hogan@imgtec.com>
12071 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12072 mips64-dsp-linux.c.
12074 2014-09-23 Yao Qi <yao@codesourcery.com>
12076 * linux-low.c (lp_status_maybe_breakpoint): New function.
12077 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12078 (count_events_callback): Likewise.
12079 (select_event_lwp_callback): Likewise.
12080 (cancel_breakpoints_callback): Likewise.
12082 2014-09-19 Don Breazeal <donb@codesourcery.com>
12084 * linux-low.c (handle_extended_wait): Call
12085 linux_ptrace_get_extended_event.
12086 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12087 linux_is_extended_waitstatus.
12089 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12091 * Makefile.in (CPPFLAGS): Define.
12092 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12093 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12095 2014-09-16 Gary Benson <gbenson@redhat.com>
12097 * inferiors.h (current_inferior): Renamed as...
12098 (current_thread): New variable. All uses updated.
12099 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12100 (maybe_move_out_of_jump_pad): Likewise.
12101 (cancel_breakpoint): Likewise.
12102 (linux_low_filter_event): Likewise.
12103 (wait_for_sigstop): Likewise.
12104 (linux_resume_one_lwp): Likewise.
12105 (need_step_over_p): Likewise.
12106 (start_step_over): Likewise.
12107 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12108 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12109 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12110 and save_inferior as saved_thread.
12111 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12113 (regcache_invalidate_thread): Likewise.
12114 * remote-utils.c (prepare_resume_reply): Likewise.
12115 * thread-db.c (thread_db_get_tls_address): Likewise.
12116 (disable_thread_event_reporting): Likewise.
12117 (remove_thread_event_breakpoints): Likewise.
12118 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12120 * target.h (set_desired_inferior): Renamed as...
12121 (set_desired_thread): New declaration. All uses updated.
12122 * server.c (myresume): Updated comment to reference thread instead
12124 (handle_serial_event): Likewise.
12125 (handle_target_event): Likewise.
12127 2014-09-12 Tom Tromey <tromey@redhat.com>
12128 Gary Benson <gbenson@redhat.com>
12130 * regcache.h: Include common-regcache.h.
12131 (regcache_read_pc): Don't declare.
12132 * regcache.c (get_thread_regcache_for_ptid): New function.
12134 2014-09-11 Tom Tromey <tromey@redhat.com>
12135 Gary Benson <gbenson@redhat.com>
12137 * symbol.c: New file.
12138 * Makefile.in (SFILES): Add symbol.c.
12139 (OBS): Add symbol.o.
12141 2014-09-11 Gary Benson <gbenson@redhat.com>
12143 * target.c (target_stop_ptid, target_continue_ptid): New
12146 2014-09-11 Tom Tromey <tromey@redhat.com>
12147 Gary Benson <gbenson@redhat.com>
12149 * target.h: Include target/target.h.
12150 * target.c (target_read_memory, target_read_uint32)
12151 (target_write_memory): New functions.
12153 2014-09-11 Gary Benson <gbenson@redhat.com>
12155 * server.h (debug_hw_points): Don't declare.
12156 * server.c (debug_hw_points): Don't define. Replace all uses
12157 with show_debug_regs.
12158 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12159 all uses with show_debug_regs.
12161 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12163 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12164 endianness into account.
12165 (ppc_supply_ptrace_register): Likewise.
12167 2014-09-03 James Hogan <james.hogan@imgtec.com>
12169 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12170 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12172 2014-09-03 Gary Benson <gbenson@redhat.com>
12174 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12175 ALL_DEBUG_ADDRESS_REGISTERS.
12177 2014-09-02 Gary Benson <gbenson@redhat.com>
12179 * i386-low.h: Renamed as...
12180 * x86-low.h: New file. All type, function and variable name
12181 prefixes changed from "i386_" to "x86_". All references updated.
12182 * i386-low.c: Renamed as...
12183 * x86-low.c: New file. All type, function and variable name
12184 prefixes changed from "i386_" to "x86_". All references updated.
12186 2014-09-02 Gary Benson <gbenson@redhat.com>
12188 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12189 (x86_linux_new_thread): Likewise.
12191 2014-08-29 Gary Benson <gbenson@redhat.com>
12193 * server.h (setjmp.h): Do not include.
12194 (toplevel): Do not declare.
12195 (common-exceptions.h): Include.
12196 (cleanups.h): Likewise.
12197 * server.c (toplevel): Do not define.
12198 (exit_code): New static global.
12199 (detach_or_kill_for_exit_cleanup): New function.
12200 (main): New function. Original main renamed to...
12201 (captured_main): New function.
12202 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12204 2014-08-29 Gary Benson <gbenson@redhat.com>
12206 * Makefile.in (SFILES): Add common/common-exceptions.c.
12207 (OBS): Add common-exceptions.o.
12208 (common-exceptions.o): New rule.
12209 * utils.c (prepare_to_throw_exception): New function.
12211 2014-08-29 Gary Benson <gbenson@redhat.com>
12213 * config.in: Regenerate.
12214 * configure: Likewise.
12216 2014-08-29 Gary Benson <gbenson@redhat.com>
12218 * Makefile.in (SFILES): Add common/cleanups.c.
12220 (cleanups.o): New rule.
12222 2014-08-29 Gary Benson <gbenson@redhat.com>
12224 * utils.c (internal_vwarning): New function.
12226 2014-08-28 Gary Benson <gbenson@redhat.com>
12228 * utils.h (fatal): Remove declaration.
12229 * utils.c (fatal): Remove function.
12231 2014-08-28 Gary Benson <gbenson@redhat.com>
12233 * tracepoint.c (gdb_agent_init): Replace fatal with
12235 (initialize_tracepoint): Likewise.
12237 2014-08-28 Gary Benson <gbenson@redhat.com>
12239 * remote-utils.c (remote_prepare): Replace fatal with error.
12241 2014-08-28 Gary Benson <gbenson@redhat.com>
12243 * linux-low.c (linux_async): Replace fatal with warning.
12244 Tidy up and return.
12245 (linux_start_non_stop): Return -1 if linux_async failed.
12247 2014-08-28 Gary Benson <gbenson@redhat.com>
12249 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12251 (i386_dr_low_get_addr): Remove vague comment.
12252 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12255 2014-08-28 Gary Benson <gbenson@redhat.com>
12257 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12258 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12260 (linux_resume_one_lwp): Likewise.
12261 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12263 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12264 with internal_error.
12265 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12266 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12267 (find_register_by_name): Replace fatal with internal_error.
12268 (find_regno): Likewise.
12269 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12270 * thread-db.c (thread_db_create_event): Likewise.
12271 (thread_db_load_search): Likewise.
12272 (try_thread_db_load_1): Likewise.
12273 * tracepoint.c (get_jump_space_head): Replace fatal with
12275 (claim_trampoline_space): Likewise.
12276 (have_fast_tracepoint_trampoline_buffer): Likewise.
12277 (cmd_qtstart): Likewise.
12278 (stop_tracing): Likewise.
12279 (fast_tracepoint_collecting): Likewise.
12280 (target_malloc): Likewise.
12281 (download_tracepoint): Likewise.
12282 (download_trace_state_variables): Replace check with gdb_assert.
12283 (upload_fast_traceframes): Replace fatal with internal_error.
12285 2014-08-19 Tom Tromey <tromey@redhat.com>
12286 Gary Benson <gbenson@redhat.com>
12288 * Makefile.in (SFILES): Add common/common-debug.c.
12289 (OBS): Add common-debug.o.
12290 (common-debug.o): New rule.
12291 * debug.h (debug_printf): Don't declare.
12292 * debug.c (debug_printf): Renamed and rewritten as...
12293 (debug_vprintf): New function.
12295 2014-08-19 Gary Benson <gbenson@redhat.com>
12297 * utils.h: Do not include print-utils.h.
12299 2014-08-19 Tom Tromey <tromey@redhat.com>
12300 Gary Benson <gbenson@redhat.com>
12302 * server.h: Add static assertion.
12303 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12305 2014-08-19 Tom Tromey <tromey@redhat.com>
12306 Gary Benson <gbenson@redhat.com>
12308 * Makefile.in (SFILES): Add common/errors.c.
12309 (OBS): Add errors.o.
12310 (IPA_OBS): Add errors-ipa.o.
12311 (errors.o): New rule.
12312 (errors-ipa.o): Likewise.
12313 * utils.h (perror_with_name, error, warning): Don't declare.
12314 * utils.c (warning): Renamed and rewritten as...
12315 (vwarning): New function.
12316 (error): Renamed and rewritten as...
12317 (verror): New function.
12318 (internal_error): Renamed and rewritten as...
12319 (internal_verror): New function.
12321 2014-08-07 Gary Benson <gbenson@redhat.com>
12323 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12324 * configure: Regenerate.
12325 * config.in: Likewise.
12326 * server.h: Do not include errno.h.
12327 * event-loop.c: Likewise.
12328 * hostio-errno.c: Likewise.
12329 * linux-low.c: Likewise.
12330 * remote-utils.c: Likewise.
12331 * spu-low.c: Likewise.
12332 * utils.c: Likewise.
12333 * gdbreplay.c: Unconditionally include errno.h.
12335 2014-08-07 Gary Benson <gbenson@redhat.com>
12337 * server.h: Do not include string.h.
12338 * event-loop.c: Likewise.
12339 * linux-low.c: Likewise.
12340 * regcache.c: Likewise.
12341 * remote-utils.c: Likewise.
12342 * spu-low.c: Likewise.
12343 * utils.c: Likewise.
12345 2014-08-07 Gary Benson <gbenson@redhat.com>
12347 * server.h: Do not include gdb_assert.h.
12349 2014-08-07 Gary Benson <gbenson@redhat.com>
12351 * server.h: Do not include common-utils.h.
12353 2014-08-07 Gary Benson <gbenson@redhat.com>
12355 * server.h: Do not include ptid.h.
12356 * notif.h: Likewise.
12358 2014-08-07 Gary Benson <gbenson@redhat.com>
12360 * server.h: Do not include gdb_locale.h.
12362 2014-08-07 Gary Benson <gbenson@redhat.com>
12364 * server.h: Do not include gdb/signals.h.
12365 * win32-low.c: Likewise.
12367 2014-08-07 Gary Benson <gbenson@redhat.com>
12369 * server.h: Do not include pathmax.h.
12371 2014-08-07 Gary Benson <gbenson@redhat.com>
12373 * server.h: Do not include libiberty.h.
12374 * linux-bfin-low.c: Likewise.
12376 2014-08-07 Gary Benson <gbenson@redhat.com>
12378 * server.h: Do not include ansidecl.h.
12380 2014-08-07 Gary Benson <gbenson@redhat.com>
12382 * linux-x86-low.c: Do not include stddef.h.
12383 * lynx-ppc-low.c: Likewise.
12384 * tracepoint.c: Likewise.
12386 2014-08-07 Gary Benson <gbenson@redhat.com>
12388 * server.h: Do not include stdarg.h.
12389 * nto-low.c: Likewise.
12391 2014-08-07 Gary Benson <gbenson@redhat.com>
12393 * server.h: Do not include stdlib.h.
12394 * inferiors.c: Likewise.
12395 * linux-low.c: Likewise.
12396 * regcache.c: Likewise.
12397 * spu-low.c: Likewise.
12398 * tracepoint.c: Likewise.
12399 * utils.c: Likewise.
12401 2014-08-07 Gary Benson <gbenson@redhat.com>
12403 * server.h: Do not include stdio.h.
12404 * linux-low.c: Likewise.
12405 * remote-utils.c: Likewise.
12406 * spu-low.c: Likewise.
12407 * utils.c: Likewise.
12408 * wincecompat.c: Likewise.
12410 2014-08-06 Gary Benson <gbenson@redhat.com>
12412 * regcache.c (init_register_cache): Move conditionals inside if.
12414 2014-08-06 Gary Benson <gbenson@redhat.com>
12416 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12418 2014-07-31 Gary Benson <gbenson@redhat.com>
12420 * ax.h: Do not include server.h.
12421 * gdbthread.h: Likewise.
12422 * lynx-low.h: Likewise.
12423 * notif.h: Likewise.
12425 2014-07-30 Gary Benson <gbenson@redhat.com>
12427 * server.h: Include common-defs.h.
12428 Do not include config.h or build-gnulib-gdbserver/config.h.
12430 2014-07-30 Gary Benson <gbenson@redhat.com>
12432 * hostio-errno.c: Move server.h to top of includes list.
12433 * inferiors.c: Likewise.
12434 * linux-x86-low.c: Likewise.
12435 * notif.c: Include server.h.
12437 2014-07-24 Tom Tromey <tromey@redhat.com>
12438 Gary Benson <gbenson@redhat.com>
12440 * server.h (CORE_ADDR): Now unsigned.
12442 2014-07-16 Pedro Alves <palves@redhat.com>
12444 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12446 2014-07-15 Pedro Alves <palves@redhat.com>
12448 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12451 2014-07-11 Pedro Alves <palves@redhat.com>
12453 * linux-low.c (kill_wait_lwp): New function, based on
12454 kill_one_lwp_callback, but use my_waitpid directly.
12455 (kill_one_lwp_callback, linux_kill): Use it.
12457 2014-06-23 Pedro Alves <palves@redhat.com>
12459 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12460 before setting DR0..DR3.
12462 2014-06-20 Gary Benson <gbenson@redhat.com>
12464 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12465 * configure: Regenerated.
12466 * config.in: Likewise.
12468 2014-06-20 Gary Benson <gbenson@redhat.com>
12470 * Makefile.in (SFILES): Update locations for files moved
12471 from common to nat.
12472 (object file files): Reordered.
12474 2014-06-20 Gary Benson <gbenson@redhat.com>
12476 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12477 (i386_dr_low_set_addr): Likewise.
12478 (i386_dr_low_get_addr): Likewise.
12479 (i386_dr_low_can_set_control): Likewise.
12480 (i386_dr_low_set_control): Likewise.
12481 (i386_dr_low_get_control): Likewise.
12482 (i386_dr_low_get_status): Likewise.
12483 (i386_get_debug_register_length): Likewise.
12484 * linux-x86-low.c (i386_dr_low_set_addr):
12485 Changed signature. Made static.
12486 (i386_dr_low_get_addr): Likewise.
12487 (i386_dr_low_set_control): Likewise.
12488 (i386_dr_low_get_control): Likewise.
12489 (i386_dr_low_get_status): Likewise.
12490 (i386_dr_low): New global variable.
12491 * win32-i386-low.c (i386_dr_low_set_addr):
12492 Changed signature. Made static.
12493 (i386_dr_low_get_addr): Likewise.
12494 (i386_dr_low_set_control): Likewise.
12495 (i386_dr_low_get_control): Likewise.
12496 (i386_dr_low_get_status): Likewise.
12497 (i386_dr_low): New global variable.
12499 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12501 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12502 * Makefile.in (AR, AR_FLAGS): Define.
12503 * configure: Regenerate.
12505 2014-06-19 Gary Benson <gbenson@redhat.com>
12507 * Makefile.in (i386-dregs.o): New rule.
12508 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12509 * i386-low.c (target.h): Remove include.
12510 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12511 (DR_CONTROL_SHIFT): Likewise.
12512 (DR_CONTROL_SIZE): Likewise.
12513 (DR_RW_EXECUTE): Likewise.
12514 (DR_RW_WRITE): Likewise.
12515 (DR_RW_READ): Likewise.
12516 (DR_RW_IORW): Likewise.
12517 (DR_LEN_1): Likewise.
12518 (DR_LEN_2): Likewise.
12519 (DR_LEN_4): Likewise.
12520 (DR_LEN_8): Likewise.
12521 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12522 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12523 (DR_ENABLE_SIZE): Likewise.
12524 (DR_LOCAL_SLOWDOWN): Likewise.
12525 (DR_GLOBAL_SLOWDOWN): Likewise.
12526 (DR_CONTROL_RESERVED): Likewise.
12527 (I386_DR_CONTROL_MASK): Likewise.
12528 (I386_DR_VACANT): Likewise.
12529 (I386_DR_LOCAL_ENABLE): Likewise.
12530 (I386_DR_GLOBAL_ENABLE): Likewise.
12531 (I386_DR_DISABLE): Likewise.
12532 (I386_DR_SET_RW_LEN): Likewise.
12533 (I386_DR_GET_RW_LEN): Likewise.
12534 (I386_DR_WATCH_HIT): Likewise.
12535 (i386_wp_op_t): Likewise.
12536 (i386_show_dr): Likewise.
12537 (i386_length_and_rw_bits): Likewise.
12538 (i386_insert_aligned_watchpoint): Likewise.
12539 (i386_remove_aligned_watchpoint): Likewise.
12540 (i386_handle_nonaligned_watchpoint): Likewise.
12541 i386_update_inferior_debug_regs(): Likewise.
12542 (i386_dr_insert_watchpoint): Likewise.
12543 (i386_dr_remove_watchpoint): Likewise.
12544 (i386_dr_region_ok_for_watchpoint): Likewise.
12545 (i386_dr_stopped_data_address): Likewise.
12546 (i386_dr_stopped_by_watchpoint): Likewise.
12548 2014-06-19 Gary Benson <gbenson@redhat.com>
12550 * i386-low.c (i386_dr_show): Renamed to
12551 i386_show_dr and made static. All uses updated.
12552 (i386_dr_length_and_rw_bits): Renamed to
12553 i386_length_and_rw_bits and made static.
12555 (i386_dr_insert_aligned_watchpoint): Renamed to
12556 i386_insert_aligned_watchpoint and made static.
12558 (i386_dr_remove_aligned_watchpoint): Renamed to
12559 i386_remove_aligned_watchpoint and made static.
12561 (i386_dr_update_inferior_debug_regs): Renamed to
12562 i386_update_inferior_debug_regs and made static.
12565 2014-06-18 Gary Benson <gbenson@redhat.com>
12567 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12568 (i386_dr_low_can_set_control): Likewise.
12569 (i386_get_debug_register_length): Likewise.
12570 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12571 (i386_dr_low_can_set_control): Likewise.
12572 (i386_get_debug_register_length): Likewise.
12574 2014-06-17 Gary Benson <gbenson@redhat.com>
12576 * i386-low.h (i386-dregs.h): New include.
12577 (DR_FIRSTADDR): Now in i386-dregs.h.
12578 (DR_LASTADDR): Likewise.
12579 (DR_NADDR): Likewise.
12580 (DR_STATUS): Likewise.
12581 (DR_CONTROL): Likewise.
12582 (i386_debug_reg_state): Likewise.
12583 (i386_dr_insert_watchpoint): Likewise.
12584 (i386_dr_remove_watchpoint): Likewise.
12585 (i386_dr_region_ok_for_watchpoint): Likewise.
12586 (i386_dr_stopped_data_address): Likewise.
12587 (i386_dr_stopped_by_watchpoint): Likewise.
12588 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12590 2014-06-18 Gary Benson <gbenson@redhat.com>
12592 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12593 i386_dr_insert_watchpoint.
12594 (i386_low_remove_watchpoint): Renamed to
12595 i386_dr_remove_watchpoint.
12596 (i386_low_region_ok_for_watchpoint): Renamed to
12597 i386_dr_region_ok_for_watchpoint.
12598 (i386_low_stopped_data_address): Renamed to
12599 i386_dr_stopped_data_address.
12600 (i386_low_stopped_by_watchpoint): Renamed to
12601 i386_dr_stopped_by_watchpoint.
12602 * i386-low.c (i386_show_dr): Renamed to
12603 i386_dr_show and made nonstatic. All uses updated.
12604 (i386_length_and_rw_bits): Renamed to
12605 i386_dr_length_and_rw_bits and made nonstatic.
12607 (i386_insert_aligned_watchpoint): Renamed to
12608 i386_dr_insert_aligned_watchpoint and made nonstatic.
12610 (i386_remove_aligned_watchpoint): Renamed to
12611 i386_dr_remove_aligned_watchpoint and made nonstatic.
12613 (i386_update_inferior_debug_regs): Renamed to
12614 i386_dr_update_inferior_debug_regs and made nonstatic.
12616 (i386_low_insert_watchpoint): Renamed to
12617 i386_dr_insert_watchpoint. All uses updated.
12618 (i386_low_remove_watchpoint): Renamed to
12619 i386_dr_remove_watchpoint. All uses updated.
12620 (i386_low_region_ok_for_watchpoint): Renamed to
12621 i386_dr_region_ok_for_watchpoint. All uses updated.
12622 (i386_low_stopped_data_address): Renamed to
12623 i386_dr_stopped_data_address. All uses updated.
12624 (i386_low_stopped_by_watchpoint): Renamed to
12625 i386_dr_stopped_by_watchpoint. All uses updated.
12627 2014-06-18 Gary Benson <gbenson@redhat.com>
12629 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12630 (i386_dr_low_can_set_control): Likewise.
12631 (i386_insert_aligned_watchpoint): New check.
12633 2014-06-18 Gary Benson <gbenson@redhat.com>
12635 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12638 2014-06-18 Gary Benson <gbenson@redhat.com>
12640 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12641 instead of fatal and error.
12642 (i386_handle_nonaligned_watchpoint): Likewise.
12644 2014-06-18 Gary Benson <gbenson@redhat.com>
12646 * i386-low.c (i386_get_debug_register_length): New macro.
12647 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12648 (i386_show_dr): Use debug_printf instead of fprintf. Use
12649 phex to format values.
12651 2014-06-18 Gary Benson <gbenson@redhat.com>
12653 * i386-low.h: Comment changes.
12654 * i386-low.c: Likewise.
12656 2014-06-18 Gary Benson <gbenson@redhat.com>
12658 * i386-low.c: Whitespace changes.
12660 2014-06-12 Tom Tromey <tromey@redhat.com>
12662 * utils.c (freeargv): Remove.
12664 2014-06-12 Tom Tromey <tromey@redhat.com>
12666 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12667 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12668 (parse_debug_format_options): Likewise.
12669 (gdbserver_usage): Likewise.
12670 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12671 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12672 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12674 ($(LIBGNU)): Depend on libiberty.
12675 (all-lib): Recurse into all subdirs.
12676 (install-only): Invoke "install" target in subdirs.
12677 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12679 * configure: Rebuild.
12680 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12681 for vasprintf, vsnprintf, or gettimeofday.
12682 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12685 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12687 * development.sh: Delete.
12688 * Makefile.in (config.status): Adjust dependency on development.sh.
12689 * configure.ac: Adjust development.sh source call.
12690 * configure: Regenerate.
12692 2014-06-02 Pedro Alves <palves@redhat.com>
12694 * ax.c (gdb_free_agent_expr): New function.
12695 * ax.h (gdb_free_agent_expr): New declaration.
12696 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12698 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12700 (clear_breakpoint_conditions_and_commands): New function.
12701 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12702 (clear_breakpoint_conditions_and_commands): New declaration.
12704 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12706 * linux-aarch64-low.c (asm/ptrace.h): Include.
12708 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12710 Fix TLS access for -static -pthread.
12711 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12712 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12713 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12715 2014-05-20 Pedro Alves <palves@redhat.com>
12717 * linux-aarch64-low.c (aarch64_insert_point)
12718 (aarch64_remove_point): No longer check whether the type is
12719 supported here. Adjust to new interface.
12720 (the_low_target): Install aarch64_supports_z_point_type as
12721 supports_z_point_type method.
12722 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12723 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12724 instead of a Z packet char. Adjust.
12725 (arm_supports_z_point_type): New function.
12726 (arm_insert_point, arm_remove_point): Adjust to new interface.
12727 (the_low_target): Install arm_supports_z_point_type.
12728 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12729 (cris_insert_point, cris_remove_point): Adjust to new interface.
12730 Don't check whether the type is supported here.
12731 (the_low_target): Install cris_supports_z_point_type.
12732 * linux-low.c (linux_supports_z_point_type): New function.
12733 (linux_insert_point, linux_remove_point): Adjust to new interface.
12734 * linux-low.h (struct linux_target_ops) <insert_point,
12735 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12736 raw_breakpoint pointer parameter.
12737 <supports_z_point_type>: New method.
12738 * linux-mips-low.c (mips_supports_z_point_type): New function.
12739 (mips_insert_point, mips_remove_point): Adjust to new interface.
12740 Use mips_supports_z_point_type.
12741 (the_low_target): Install mips_supports_z_point_type.
12742 * linux-ppc-low.c (the_low_target): Install NULL as
12743 supports_z_point_type method.
12744 * linux-s390-low.c (the_low_target): Install NULL as
12745 supports_z_point_type method.
12746 * linux-sparc-low.c (the_low_target): Install NULL as
12747 supports_z_point_type method.
12748 * linux-x86-low.c (x86_supports_z_point_type): New function.
12749 (x86_insert_point): Adjust to new insert_point interface. Use
12750 insert_memory_breakpoint. Adjust to new
12751 i386_low_insert_watchpoint interface.
12752 (x86_remove_point): Adjust to remove_point interface. Use
12753 remove_memory_breakpoint. Adjust to new
12754 i386_low_remove_watchpoint interface.
12755 (the_low_target): Install x86_supports_z_point_type.
12756 * lynx-low.c (lynx_target_ops): Install NULL as
12757 supports_z_point_type callback.
12758 * nto-low.c (nto_supports_z_point_type): New.
12759 (nto_insert_point, nto_remove_point): Adjust to new interface.
12760 (nto_target_ops): Install nto_supports_z_point_type.
12761 * mem-break.c: Adjust intro comment.
12762 (struct raw_breakpoint) <raw_type, size>: New fields.
12763 <inserted>: Update comment.
12764 <shlib_disabled>: Delete field.
12765 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12766 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12767 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12768 (raw_bkpt_type_to_target_hw_bp_type): New function.
12769 (find_enabled_raw_code_breakpoint_at): New function.
12770 (find_raw_breakpoint_at): New type and size parameters. Use them.
12771 (insert_memory_breakpoint): New function, based off
12772 set_raw_breakpoint_at.
12773 (remove_memory_breakpoint): New function.
12774 (set_raw_breakpoint_at): Reimplement.
12775 (set_breakpoint): New, based on set_breakpoint_at.
12776 (set_breakpoint_at): Reimplement.
12777 (delete_raw_breakpoint): Go through the_target->remove_point
12778 instead of assuming memory breakpoints.
12779 (find_gdb_breakpoint_at): Delete.
12780 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12781 (find_gdb_breakpoint): New function.
12782 (set_gdb_breakpoint_at): Delete.
12783 (z_type_supported): New function.
12784 (set_gdb_breakpoint_1): New function, loosely based off
12785 set_gdb_breakpoint_at.
12786 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12787 (delete_gdb_breakpoint_at): Delete.
12788 (delete_gdb_breakpoint_1): New function, loosely based off
12789 delete_gdb_breakpoint_at.
12790 (delete_gdb_breakpoint): New function.
12791 (clear_gdb_breakpoint_conditions): Rename to ...
12792 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12794 (add_condition_to_breakpoint): Make static.
12795 (add_breakpoint_condition): Take a struct breakpoint pointer
12796 instead of an address. Adjust.
12797 (gdb_condition_true_at_breakpoint): Rename to ...
12798 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12800 (gdb_condition_true_at_breakpoint): Reimplement.
12801 (add_breakpoint_commands): Take a struct breakpoint pointer
12802 instead of an address. Adjust.
12803 (gdb_no_commands_at_breakpoint): Rename to ...
12804 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12805 parameter. Return true if no breakpoint was found. Change debug
12807 (gdb_no_commands_at_breakpoint): Reimplement.
12808 (run_breakpoint_commands): Rename to ...
12809 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12810 and change return type to boolean.
12811 (run_breakpoint_commands): New function.
12812 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12813 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12814 breakpoint. Go through the_target->remove_point instead of
12815 assuming memory breakpoint.
12816 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12817 software and hardware breakpoints.
12818 (reinsert_raw_breakpoint): Go through the_target->insert_point
12819 instead of assuming memory breakpoint.
12820 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12821 software and hardware breakpoints.
12822 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12823 Check both software and hardware breakpoints.
12824 (validate_inserted_breakpoint): Assert the breakpoint is a
12825 software breakpoint. Set the inserted flag to -1 instead of
12826 setting shlib_disabled.
12827 (delete_disabled_breakpoints): Adjust.
12828 (validate_breakpoints): Only validate software breakpoints.
12829 Adjust to inserted flag change.
12830 (check_mem_read, check_mem_write): Skip breakpoint types other
12831 than software breakpoints. Adjust to inserted flag change.
12832 * mem-break.h (enum raw_bkpt_type): New enum.
12833 (raw_breakpoint, struct process_info): Forward declare.
12834 (Z_packet_to_target_hw_bp_type): Delete declaration.
12835 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12836 (set_gdb_breakpoint, delete_gdb_breakpoint)
12837 (clear_breakpoint_conditions): New declarations.
12838 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12839 (breakpoint_inserted_here): Update comment.
12840 (add_breakpoint_condition, add_breakpoint_commands): Replace
12841 address parameter with a breakpoint pointer parameter.
12842 (gdb_breakpoint_here): Update comment.
12843 (delete_gdb_breakpoint_at): Delete.
12844 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12845 * server.c (process_point_options): Take a struct breakpoint
12846 pointer instead of an address. Adjust.
12847 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12848 delete_gdb_breakpoint.
12849 * spu-low.c (spu_target_ops): Install NULL as
12850 supports_z_point_type method.
12851 * target.h: Include mem-break.h.
12852 (struct target_ops) <prepare_to_access_memory>: Update comment.
12853 <supports_z_point_type>: New field.
12854 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12855 instead of a char. Also take a raw breakpoint pointer.
12856 * win32-arm-low.c (the_low_target): Install NULL as
12857 supports_z_point_type.
12858 * win32-i386-low.c (i386_supports_z_point_type): New function.
12859 (i386_insert_point, i386_remove_point): Adjust to new interface.
12860 (the_low_target): Install i386_supports_z_point_type.
12861 * win32-low.c (win32_supports_z_point_type): New function.
12862 (win32_insert_point, win32_remove_point): Adjust to new interface.
12863 (win32_target_ops): Install win32_supports_z_point_type.
12864 * win32-low.h (struct win32_target_ops):
12865 <supports_z_point_type>: New method.
12866 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12867 instead of a char. Also take a raw breakpoint pointer.
12869 2014-05-20 Pedro Alves <palves@redhat.com>
12871 * mem-break.h: Include break-common.h.
12872 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12873 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12874 (Z_packet_to_target_hw_bp_type): New declaration.
12875 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12876 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12877 (Z_PACKET_ACCESS_WP): Delete macros.
12878 (Z_packet_to_hw_type): Delete function.
12879 * i386-low.h: Don't include break-common.h here.
12880 (Z_packet_to_hw_type): Delete declaration.
12881 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12882 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12883 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12884 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12885 * linux-aarch64-low.c: Don't include break-common.h here.
12886 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12887 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12888 (Z_packet_to_target_hw_bp_type): Delete function.
12889 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12891 (mips_insert_point, mips_remove_point): Use
12892 Z_packet_to_target_hw_bp_type.
12894 2014-05-20 Pedro Alves <palves@redhat.com>
12896 * linux-aarch64-low.c: Include break-common.h.
12897 (enum target_point_type): Delete.
12898 (Z_packet_to_point_type): Rename to ...
12899 (Z_packet_to_target_hw_bp_type): ... this, and return a
12900 target_hw_bp_type instead.
12901 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12902 instead of an enum target_point_type.
12903 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12905 (aarch64_dr_state_insert_one_point)
12906 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12907 (aarch64_handle_aligned_watchpoint)
12908 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12909 Take an enum target_hw_bp_type instead of an enum
12911 (aarch64_supports_z_point_type): New function.
12912 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12913 use Z_packet_to_target_hw_bp_type.
12915 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12917 * configure.ac: Only use -Werror by default when DEVELOPMENT
12919 * configure: Regenerate.
12921 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12923 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12924 * linux-x86-low.c (X86_64_USER_REGS): New.
12925 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12927 2014-04-28 Yao Qi <yao@codesourcery.com>
12929 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12932 2014-04-25 Pedro Alves <palves@redhat.com>
12935 * linux-low.c (linux_attach_fail_reason_string): New function.
12936 (linux_attach_lwp): Delete.
12937 (linux_attach_lwp_1): Rename to ...
12938 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12939 argument. Remove "initial" parameter. Return int instead of
12940 void. Don't error or warn here.
12941 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12942 failure to attach to the tgid. Call warning when failing to
12944 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12945 argument. Remove "initial" parameter. Return int instead of
12946 void. Don't error or warn here.
12947 (linux_attach_fail_reason_string): New declaration.
12948 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12949 interface change. Use linux_attach_fail_reason_string.
12951 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12952 Walfred Tedeschi <walfred.tedeschi@intel.com>
12954 * Makefile.in: Added rules to handle new files
12955 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12956 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12957 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12958 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12959 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12960 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12961 x32-avx512-linux.o.
12962 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12963 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12964 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12965 i386/x32-avx512.xml.
12966 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12967 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12968 i386/x32-avx512-linux.xml.
12969 * i387-fp.c (num_avx512_k_registers): New constant for number
12971 (num_avx512_zmmh_low_registers): New constant for number of
12972 lower ZMM registers (0-15).
12973 (num_avx512_zmmh_high_registers): New constant for number of
12974 higher ZMM registers (16-31).
12975 (num_avx512_ymmh_registers): New contant for number of higher
12976 YMM registers (ymm16-31 added by avx521 on x86_64).
12977 (num_avx512_xmm_registers): New constant for number of higher
12978 XMM registers (xmm16-31 added by AVX512 on x86_64).
12979 (struct i387_xsave): Add space for AVX512 registers.
12980 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12981 Add code to handle AVX512 registers.
12982 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12983 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12984 prototypei from generated file.
12985 (tdesc_amd64_avx512_linux): Likewise.
12986 (init_registers_x32_avx512_linux): Likewise.
12987 (tdesc_x32_avx512_linux): Likewise.
12988 (init_registers_i386_avx512_linux): Likewise.
12989 (tdesc_i386_avx512_linux): Likewise.
12990 (x86_64_regmap): Add AVX512 registers.
12991 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12993 (initialize_low_arch): Add code to initialize AVX512 registers.
12995 2014-04-23 Pedro Alves <palves@redhat.com>
12997 * mem-break.c (find_gdb_breakpoint_at): Make static.
12998 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13000 2014-04-23 Pedro Alves <palves@redhat.com>
13002 * i386-low.c: Don't include break-common.h here.
13003 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13004 prototype to take target_hw_bp_type as argument instead of a Z
13006 * i386-low.h: Include break-common.h here.
13007 (Z_packet_to_hw_type): Declare.
13008 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13010 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13011 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13012 (x86_remove_point): Convert the packet number to a
13013 target_hw_bp_type before calling i386_low_remove_watchpoint.
13014 * win32-i386-low.c (i386_insert_point): Convert the packet number
13015 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13016 (i386_remove_point): Convert the packet number to a
13017 target_hw_bp_type before calling i386_low_remove_watchpoint.
13019 2014-04-23 Pedro Alves <palves@redhat.com>
13021 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13023 2014-04-10 Pedro Alves <palves@redhat.com>
13025 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13026 Check if the condition or command is NULL before checking if the
13027 breakpoint is known. On success, return true.
13028 * mem-break.h (add_breakpoint_condition): Document return.
13029 (add_breakpoint_commands): Add describing comment.
13030 * server.c (skip_to_semicolon): New function.
13031 (process_point_options): Use it.
13033 2014-04-09 Pedro Alves <palves@redhat.com>
13035 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13038 2014-02-27 Pedro Alves <palves@redhat.com>
13041 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13043 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13045 (last_thread_of_process_p): Take a PID argument instead of a
13047 (linux_wait_for_lwp): Delete.
13048 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13050 (linux_low_filter_event): New function, party factored out from
13051 linux_wait_for_event.
13052 (linux_wait_for_event): Rename to ...
13053 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13054 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13055 sigsuspend. Check for zombie leaders.
13056 (linux_wait_for_event): Reimplement as wrapper around
13057 linux_wait_for_event_filtered.
13058 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13059 a normal or signal exit is seen, it's the whole process exiting.
13060 (wait_for_sigstop): No longer a for_each_inferior callback.
13061 Rewrite on top of linux_wait_for_event_filtered.
13062 (stop_all_lwps): Call wait_for_sigstop directly.
13063 * server.c (resume, handle_target_event): Handle
13064 TARGET_WAITKIND_NO_RESUMED.
13066 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13068 * win32-low.c (psapi_get_dll_name,
13069 * win32_CreateToolhelp32Snapshot): Delete.
13070 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13071 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13073 (handle_load_dll): Add function description.
13074 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13076 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13078 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13080 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13081 base address when calling win32_add_one_solib.
13082 (handle_load_dll): Delete local variable load_addr.
13083 Remove 0x1000 offset applied to DLL base address when calling
13084 win32_add_one_solib.
13085 (handle_unload_dll): Add comment.
13087 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13089 * win32-low.c (win32_add_all_dlls): Renames
13090 win32_ensure_ntdll_loaded. Rewrite function documentation.
13091 Adjust implementation to always load all DLLs.
13092 Add 0x1000 offset to DLL base address when calling
13093 win32_add_one_solib.
13094 (child_initialization_done): New static global.
13095 (do_initial_child_stuff): Set child_initialization_done to
13096 zero during child initialization, and 1 after. Replace call
13097 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13099 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13100 (handle_unload_dll): Add function documentation.
13101 (get_child_debug_event): Ignore load and unload DLL events
13102 during child initialization.
13104 2014-02-20 Doug Evans <dje@google.com>
13106 Remove global all_lwps.
13107 * inferiors.h (ptid_of): Move here from linux-low.h.
13108 (pid_of, lwpid_of): Ditto.
13109 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13110 parameter is a struct thread_info * now.
13111 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13112 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13113 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13115 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13116 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13117 * linux-arm-low.c (update_registers_callback): Update, "entry"
13118 parameter is a struct thread_info * now.
13119 Fetch lwpid from current_inferior directly.
13120 (arm_insert_point): Pass &all_threads to find_inferior instead of
13122 (arm_remove_point): Ditto.
13123 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13124 (arm_prepare_to_resume): Fetch pid from thread.
13125 (arm_read_description): Fetch lwpid from current_inferior directly.
13126 * linux-low.c (all_lwps): Delete.
13127 (delete_lwp): Delete call to remove_inferior.
13128 (handle_extended_wait): Fetch lwpid from thread.
13129 (add_lwp): Don't set lwp->entry.id. Remove call to
13130 add_inferior_to_list.
13131 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13132 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13133 (kill_one_lwp_callback): Ditto.
13134 (linux_kill): Don't dereference NULL pointer.
13135 Fetch ptid,lwpid from thread.
13136 (get_detach_signal): Fetch ptid from thread.
13137 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13138 Simplify call to regcache_invalidate_thread.
13139 (delete_lwp_callback): Update, "entry" parameter is a
13140 struct thread_info * now. Fetch pid from thread.
13141 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13142 (status_pending_p_callback): Update, "entry" parameter is a
13143 struct thread_info * now. Fetch ptid from thread.
13144 (find_lwp_pid): Update, "entry" parameter is a
13145 struct thread_info * now.
13146 (linux_wait_for_lwp): Fetch pid from thread.
13147 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13148 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13149 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13150 (dequeue_one_deferred_signal): Ditto.
13151 (cancel_breakpoint): Fetch ptid from current_inferior.
13152 (linux_wait_for_event): Pass &all_threads to find_inferior,
13153 not &all_lwps. Fetch ptid, lwpid from thread.
13154 (count_events_callback): Update, "entry" parameter is a
13155 struct thread_info * now.
13156 (select_singlestep_lwp_callback): Ditto.
13157 (select_event_lwp_callback): Ditto.
13158 (cancel_breakpoints_callback): Ditto.
13159 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13161 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13162 (unsuspend_one_lwp): Update, "entry" parameter is a
13163 struct thread_info * now.
13164 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13166 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13167 Fetch lwpid from thread, not lwp.
13168 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13169 Pass &all_threads to find_inferior, not &all_lwps.
13170 (send_sigstop): Fetch lwpid from thread, not lwp.
13171 (send_sigstop_callback): Update, "entry" parameter is a
13172 struct thread_info * now.
13173 (suspend_and_send_sigstop_callback): Ditto.
13174 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13175 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13176 struct thread_info * now.
13177 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13179 (lwp_running): Update, "entry" parameter is a
13180 struct thread_info * now.
13181 (stop_all_lwps): Fetch ptid from thread.
13182 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13183 (linux_resume_one_lwp): Fetch lwpid from thread.
13184 (linux_set_resume_request): Update, "entry" parameter is a
13185 struct thread_info * now. Fetch pid, lwpid from thread.
13186 (resume_status_pending_p): Update, "entry" parameter is a
13187 struct thread_info * now.
13188 (need_step_over_p): Ditto. Fetch lwpid from thread.
13189 (start_step_over): Fetch lwpid from thread.
13190 (linux_resume_one_thread): Update, "entry" parameter is a
13191 struct thread_info * now. Fetch lwpid from thread.
13192 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13193 (proceed_one_lwp): Update, "entry" parameter is a
13194 struct thread_info * now. Fetch lwpid from thread.
13195 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13196 struct thread_info * now.
13197 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13198 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13199 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13201 (regsets_store_inferior_registers): Ditto.
13202 (fetch_register, store_register): Ditto.
13203 (linux_read_memory, linux_write_memory): Ditto.
13204 (linux_request_interrupt): Ditto.
13205 (linux_read_auxv): Ditto.
13206 (linux_xfer_siginfo): Ditto.
13207 (linux_qxfer_spu): Ditto.
13208 (linux_qxfer_libraries_svr4): Ditto.
13209 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13210 moved to inferiors.h.
13212 (get_thread_lwp): Update.
13213 (struct lwp_info): Delete member "entry". Simplify comment for
13215 (all_lwps): Delete.
13216 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13217 current_inferior directly.
13218 (update_watch_registers_callback): Update, "entry" parameter is a
13219 struct thread_info * now. Fetch pid from thread.
13220 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13221 (mips_insert_point): Fetch lwpid from current_inferior.
13222 Pass &all_threads to find_inferior, not &all_lwps.
13223 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13224 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13226 (mips_stopped_data_address): Ditto.
13227 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13229 * linux-tile-low.c (tile_arch_setup): Ditto.
13230 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13231 (update_debug_registers_callback): Update, "entry" parameter is a
13232 struct thread_info * now. Fetch pid from thread.
13233 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13234 Pass &all_threads to find_inferior, not &all_lwps.
13235 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13236 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13237 Pass &all_threads to find_inferior, not &all_lwps.
13238 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13239 (i386_dr_low_get_status): Ditto.
13240 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13241 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13242 (x86_linux_read_description): Ditto.
13243 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13245 2014-02-20 Doug Evans <dje@google.com>
13247 * inferiors.c (get_first_inferior): Fix buglet.
13249 2014-02-19 Doug Evans <dje@google.com>
13251 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13252 * inferiors.c (add_thread): Change result type to struct thread_info *.
13253 All callers updated.
13254 (add_lwp): Call add_thread here instead of in callers.
13255 All callers updated.
13256 * linux-low.h (get_lwp_thread): Rewrite.
13257 (struct lwp_info): New member "thread".
13259 2014-02-19 Doug Evans <dje@google.com>
13261 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13262 All callers updated.
13264 2014-02-19 Doug Evans <dje@google.com>
13266 * inferiors.c (add_thread): Fix whitespace.
13268 2014-02-19 Doug Evans <dje@google.com>
13270 * dll.c (clear_dlls): Replace accessing list implemention details
13272 * gdbthread.h (get_first_thread): Declare.
13273 * inferiors.c (for_each_inferior_with_data): New function.
13274 (get_first_thread): New function.
13275 (find_thread_ptid): Simplify.
13276 (get_first_inferior): New function.
13277 (clear_list): Delete.
13278 (one_inferior_p): New function.
13279 (clear_inferior_list): New function.
13280 (clear_inferiors): Update.
13281 * inferiors.h (for_each_inferior_with_data): Declare.
13282 (clear_inferior_list): Declare.
13283 (one_inferior_p): Declare.
13284 (get_first_inferior): Declare.
13285 * linux-low.c (linux_wait_for_event): Replace accessing list
13286 implemention details with API function.
13287 * server.c (target_running): Ditto.
13288 (accumulate_file_name_length): New function.
13289 (emit_dll_description): New function.
13290 (handle_qxfer_libraries): Replace accessing list implemention
13291 details with API function.
13292 (handle_qxfer_threads_worker): New function.
13293 (handle_qxfer_threads_proper): Replace accessing list implemention
13294 details with API function.
13295 (handle_query): Ditto.
13296 (visit_actioned_threads_callback_ftype): New typedef.
13297 (visit_actioned_threads_data): New struct.
13298 (visit_actioned_threads): Rewrite to be find_inferior callback.
13299 (resume): Call find_inferior.
13300 (handle_status): Replace accessing list implemention
13301 details with API function.
13302 (process_serial_event): Replace accessing list implemention details
13304 * target.c (set_desired_inferior): Replace accessing list implemention
13305 details with API function.
13306 * tracepoint.c (same_process_p): New function.
13307 (gdb_agent_about_to_close): Replace accessing list implemention
13308 details with API function.
13309 * win32-low.c (child_delete_thread): Replace accessing list
13310 implemention details with API function.
13311 (match_dll_by_basename): New function.
13312 (dll_is_loaded_by_basename): New function.
13313 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13314 details call to dll_is_loaded_by_basename.
13316 2014-02-19 Doug Evans <dje@google.com>
13318 * dll.h (struct dll_info): Add comment.
13319 * gdbthread.h (struct thread_info): Add comment.
13320 (current_ptid): Simplify.
13321 * inferiors.c (add_process): Update.
13322 (remove_process): Update.
13323 * inferiors.h (struct process_info): Rename member "head" to "entry".
13324 * linux-low.c (delete_lwp): Update.
13326 (last_thread_of_process_p): Update.
13327 (kill_one_lwp_callback, linux_kill): Update.
13328 (status_pending_p_callback): Update.
13329 (wait_for_sigstop): Update. Simplify read of ptid.
13330 (start_step_over): Update.
13331 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13332 (get_lwp_thread): Update.
13333 (struct lwp_info): Rename member "head" to "entry".
13334 * regcache.h (inferior_list_entry): Delete.
13335 * server.c (kill_inferior_callback): Update.
13336 (detach_or_kill_inferior_callback): Update.
13337 (print_started_pid): Update.
13338 (print_attached_pid): Update.
13339 (process_serial_event): Simplify read of ptid.
13340 * thread-db.c (thread_db_create_event): Update.
13341 (thread_db_get_tls_address): Update.
13342 * win32-low.c (current_inferior_ptid): Simplify.
13344 2014-02-19 Tom Tromey <tromey@redhat.com>
13346 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13348 (target_supports_btrace): Update.
13350 2014-02-14 Yao Qi <yao@codesourcery.com>
13352 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13353 (rsp-low-ipa.o): New target.
13355 2014-02-12 Tom Tromey <tromey@redhat.com>
13357 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13358 convert_ascii_to_int.
13359 * regcache.c (registers_to_string): Likewise.
13360 * remote-utils.c (decode_M_packet): Likewise.
13361 * server.c (process_serial_event): Likewise.
13363 2014-02-12 Tom Tromey <tromey@redhat.com>
13365 * server.c (handle_query, handle_v_run): Use hex2bin, not
13367 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13369 2014-02-12 Tom Tromey <tromey@redhat.com>
13371 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13372 convert_int_to_ascii.
13373 * regcache.c (registers_to_string, collect_register_as_string):
13375 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13377 * server.c (process_serial_event): Likewise.
13378 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13379 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13381 2014-02-12 Tom Tromey <tromey@redhat.com>
13383 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13384 bin2hex, not hexify.
13385 * tracepoint.c (cmd_qtstatus): Likewise.
13387 2014-02-12 Tom Tromey <tromey@redhat.com>
13389 * remote-utils.c (monitor_output): Pass explicit length to
13392 2014-02-12 Tom Tromey <tromey@redhat.com>
13394 * tracepoint.c: Include rsp-low.h.
13395 * server.c: Include rsp-low.h.
13396 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13397 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13399 * remote-utils.c: Include rsp-low.h.
13400 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13401 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13402 (convert_int_to_ascii, convert_ascii_to_int): Move to
13404 * regcache.c: Include rsp-low.h.
13405 * ax.c: Include rsp-low.h.
13406 * Makefile.in (SFILES): Add common/rsp-low.c.
13407 (OBS): Add rsp-low.o.
13408 (rsp-low.o): New target.
13410 2014-02-12 Tom Tromey <tromey@redhat.com>
13412 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13413 Include print-utils.h.
13414 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13415 (plongest, thirty_two, phex_nz): Remove.
13416 * Makefile.in (SFILES): Add common/print-utils.c.
13417 (OBS): Add print-utils.o.
13418 (print-utils-ipa.o): New target.
13419 (print-utils.o): New target.
13420 (IPA_OBJS): Add print-utils-ipa.o.
13422 2014-02-06 Tom Tromey <tromey@redhat.com>
13424 * Makefile.in (SFILES): Fix indentation.
13426 2014-02-05 Doug Evans <dje@google.com>
13428 * linux-low.c (linux_wait_for_event): Improve comment.
13429 (linux_wait_1): Keep current_inferior in sync with event_child.
13431 2014-01-22 Doug Evans <dje@google.com>
13433 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13435 2014-01-22 Doug Evans <dje@google.com>
13437 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13438 * configure: Regenerate.
13439 * config.in: Regenerate.
13440 * Makefile.in (SFILES): Add debug.c.
13441 (OBS): Add debug.o.
13442 * debug.c: New file.
13443 * debug.h: New file.
13444 * linux-aarch64-low.c (*): Update all debugging printfs to use
13445 debug_printf instead of fprintf.
13446 * linux-arm-low.c (*): Ditto.
13447 * linux-cris-low.c (*): Ditto.
13448 * linux-crisv32-low.c (*): Ditto.
13449 * linux-m32r-low.c (*): Ditto.
13450 * linux-sparc-low.c (*): Ditto.
13451 * linux-x86.c (*): Ditto.
13452 * linux-low.c (*): Ditto.
13453 (linux_wait_1): Add calls to debug_enter, debug_exit.
13454 (linux_wait): Remove redundant debugging printf.
13455 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13456 (linux_resume, unstop_all_lwps): Ditto.
13457 * mem-break.c (*): Update all debugging printfs to use
13458 debug_printf instead of fprintf.
13459 * remote-utils.c (*): Ditto.
13460 * thread-db.c (*): Ditto.
13461 * server.c #include <ctype.h>, "gdb_vecs.h".
13462 (debug_threads): Moved to debug.c.
13463 (*): Update all debugging printfs to use debug_printf instead of
13465 (start_inferior): Replace call to fflush with call to debug_flush.
13466 (monitor_show_help): Mention set debug-format.
13467 (parse_debug_format_options): New function.
13468 (handle_monitor_command): Handle "monitor set debug-format".
13469 (gdbserver_usage): Mention --debug-format.
13470 (main): Parse --debug-format.
13471 * server.h (debug_threads): Declaration moved to debug.h.
13472 #include "debug.h".
13473 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13474 trace_debug_1 that uses debug_printf.
13475 (tracepoint_look_up_symbols): Update all debugging printfs to use
13476 debug_printf instead of fprintf.
13478 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13480 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13483 2014-01-17 Pedro Alves <palves@redhat.com>
13486 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13487 defined after including gdb_proc_service.h.
13489 2014-01-16 Doug Evans <dje@google.com>
13491 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13492 (match_dll): Use it.
13494 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13496 * target.h (target_ops) <read_btrace>: Change parameters and
13497 return type to allow error reporting.
13498 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13499 trace reading errors on.
13500 * linux-low.c (linux_low_read_btrace): Pass trace reading
13502 (linux_low_disable_btrace): New.
13504 2014-01-15 Doug Evans <dje@google.com>
13506 * inferiors.c (thread_id_to_gdb_id): Delete.
13507 * inferiors.h (thread_id_to_gdb_id): Delete.
13509 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13511 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13512 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13515 2014-01-08 Pedro Alves <palves@redhat.com>
13517 * server.c (handle_status): Don't discard previous queued stop
13518 replies or thread's pending status here.
13519 (main) <disconnection>: Do it here instead.
13521 2014-01-08 Pedro Alves <palves@redhat.com>
13523 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13524 * server.c (visit_actioned_threads, handle_pending_status): New
13526 (handle_v_cont): Factor out parts to ...
13527 (resume): ... this new function. If in all-stop, and a thread
13528 being resumed has a pending status, report it without actually
13530 (myresume): Adjust to use the new 'resume' function.
13531 (clear_pending_status_callback, set_pending_status_callback)
13532 (find_status_pending_thread_callback): New functions.
13533 (handle_status): Handle the case of multiple threads having
13534 interesting statuses to report. Report threads' real last signal
13535 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13536 with an interesting thread to report the status for, instead of
13537 always reporting the status of the first thread.
13539 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13541 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13542 * gdbreplay.c (gdbreplay_version): Likewise.
13544 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13546 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13547 iov.iov_len with the real length in use.
13549 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13551 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13552 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13553 for all targets that use win32-low.c.
13554 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13555 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13557 2013-12-13 Pedro Alves <palves@redhat.com>
13559 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13560 if equal to TARGET_WAITKIND_LOADED.
13561 * win32-low.c (cached_status): New static global.
13562 (win32_wait): Add declaration.
13563 (do_initial_child_stuff): Flush all initial pending debug events
13564 up to the initial breakpoint.
13565 (win32_wait): If CACHED_STATUS was set, return that instead
13566 of doing a real wait. Remove the code resuming the execution
13567 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13568 during the initial phase. Also remove the code changing
13569 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13570 TARGET_WAITKIND_STOPPED.
13572 2013-12-11 Yao Qi <yao@codesourcery.com>
13574 * notif.c (handle_notif_ack): Return 0 if no notification
13577 2013-11-20 Doug Evans <dje@google.com>
13579 * linux-low.c (linux_set_resume_request): Fix comment.
13581 2013-11-20 Doug Evans <dje@google.com>
13583 * linux-low.c (resume_status_pending_p): Tweak comment.
13585 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13587 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13588 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13589 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13590 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13591 (srv_amd64_regobj): Add amd64-mpx.o.
13592 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13593 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13594 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13595 * i387-fp.c (num_pl_bnd_register) Added constant.
13596 (num_pl_bnd_cfg_registers) Added constant.
13597 (struct i387_xsave) Added reserved area and MPX fields.
13598 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13599 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13601 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13602 (init_registers_amd64_mpx_linux): Declare new function.
13603 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13604 (x86_64_regmap): Add MPX registers.
13605 (x86_linux_read_description): Add MPX case.
13606 (initialize_low_arch): Initialize MPX targets.
13608 2013-11-18 Tom Tromey <tromey@redhat.com>
13610 * configure: Rebuild.
13611 * configure.ac: Don't check for stdlib.h.
13612 * gdbreplay.c: Unconditionally include stdlib.h.
13614 2013-11-18 Tom Tromey <tromey@redhat.com>
13616 * config.in: Rebuild.
13617 * configure: Rebuild.
13618 * configure.ac: Don't use AC_HEADER_DIRENT.
13620 2013-11-18 Tom Tromey <tromey@redhat.com>
13622 * server.h: Don't check HAVE_STRING_H.
13623 * gdbreplay.c: Don't check HAVE_STRING_H.
13624 * configure: Rebuild.
13626 2013-11-18 Tom Tromey <tromey@redhat.com>
13628 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13631 2013-11-08 Tom Tromey <tromey@redhat.com>
13633 * configure, config.in: Rebuild.
13634 * configure.ac: Remove unused configury.
13636 2013-11-08 Tom Tromey <tromey@redhat.com>
13638 * acinclude.m4: Include common.m4, codeset.m4.
13639 * configure, config.in: Rebuild.
13640 * configure.ac: Use GDB_AC_COMMON.
13642 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13644 * linux-s390-low.c (HWCAP_S390_TE): New define.
13645 (s390_arch_setup): Consider the TE field in the HWCAP for
13646 determining 'have_regset_tdb'.
13648 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13651 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13654 2013-10-02 Pedro Alves <palves@redhat.com>
13656 * server.c (process_serial_event): Don't output "GDBserver
13657 exiting" if GDB is connected through stdio.
13658 * target.c (mywait): Likewise, be silent if GDB is connected
13661 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13663 * lynx-low.c (lynx_add_threads_after_attach): New function.
13664 (lynx_attach): Remove call to add_thread. Add call to
13665 lynx_add_threads_after_attach instead.
13667 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13669 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13670 * config.in, configure: Regenerated.
13672 2013-09-18 Yao Qi <yao@codesourcery.com>
13675 * server.c (start_inferior): Clear 'resume_info'.
13677 2013-09-16 Jiong Wang <jiwang@tilera.com>
13679 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13682 2013-09-16 Jiong Wang <jiwang@tilera.com>
13684 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13685 linux-tile-low.o to srv_tgtobj.
13687 2013-09-16 Will Newton <will.newton@linaro.org>
13689 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13692 2013-09-06 Pedro Alves <palves@redhat.com>
13694 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13695 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13696 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13697 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13698 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13699 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13701 2013-09-06 Pedro Alves <palves@redhat.com>
13703 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13704 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13706 2013-09-06 Pedro Alves <palves@redhat.com>
13708 * linux-amd64-ipa.c: Include tracepoint.h.
13709 * linux-i386-ipa.c: Include tracepoint.h.
13711 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13713 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13714 (ps_get_thread_area): New function.
13716 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13718 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13719 (initialize_low_arch): Call init_registers_crisv32 rather than
13720 init_register_crisv32.
13722 2013-09-05 Pedro Alves <palves@redhat.com>
13724 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13726 * hostio.h: ... this new file.
13727 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13728 win32-low.c: Include hostio.h.
13730 2013-09-05 Pedro Alves <palves@redhat.com>
13732 * server.h (gdb_client_data, handler_func, callback_handler_func)
13733 (delete_file_handler, add_file_handler, append_callback_event)
13734 (delete_callback_event, start_event_loop, initialize_event_loop):
13735 Move to event-loop.h and include it.
13736 * event-loop.h: New file.
13738 2013-09-05 Pedro Alves <palves@redhat.com>
13740 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13741 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13742 (loaded_dll, unloaded_dll): Move to ...
13743 * dll.h: ... this new file.
13744 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13746 2013-09-05 Pedro Alves <palves@redhat.com>
13748 * server.h (current_process, get_thread_process, all_processes)
13749 (add_inferior_to_list, for_each_inferior, current_inferior)
13750 (remove_inferior, add_process, remove_process, find_process_pid)
13751 (have_started_inferiors_p, have_attached_inferiors_p)
13752 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13753 (clear_inferiors, find_inferior, find_inferior_id)
13754 (inferior_target_data, set_inferior_target_data)
13755 (inferior_regcache_data, set_inferior_regcache_data): Move to
13756 inferiors.h, and include it.
13757 * inferiors.h: New file.
13759 2013-09-05 Pedro Alves <palves@redhat.com>
13761 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13765 2013-09-05 Pedro Alves <palves@redhat.com>
13767 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13769 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13770 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13771 (handle_tracepoint_general_set, handle_tracepoint_query)
13772 (tracepoint_finished_step, tracepoint_was_hit)
13773 (release_while_stepping_state_list, current_traceframe)
13774 (in_readonly_region, traceframe_read_mem)
13775 (fetch_traceframe_registers, traceframe_read_sdata)
13776 (traceframe_read_info, struct fast_tpoint_collect_status)
13777 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13778 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13779 (supply_fast_tracepoint_registers)
13780 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13781 (ipa_tdesc, claim_trampoline_space)
13782 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13783 (agent_mem_read, agent_get_trace_state_variable_value)
13784 (agent_set_trace_state_variable_value, agent_tsv_read)
13785 (agent_mem_read_string, get_raw_reg_func_addr)
13786 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13787 * tracepoint.h: ... this new file.
13789 2013-09-05 Pedro Alves <palves@redhat.com>
13791 * server.h (perror_with_name, error, fatal, warning, paddress)
13792 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13794 * utils.h: New file.
13796 2013-09-05 Pedro Alves <palves@redhat.com>
13798 * server.h (remote_debug, noack_mode, transport_is_reliable)
13799 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13800 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13801 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13802 (write_enn, initialize_async_io, enable_async_io)
13803 (disable_async_io, check_remote_input_interrupt_request)
13804 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13805 (dead_thread_notify, prepare_resume_reply)
13806 (decode_address_to_semicolon, decode_address, decode_m_packet)
13807 (decode_M_packet, decode_X_packet, decode_xfer_write)
13808 (decode_search_memory_packet, unhexify, hexify)
13809 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13810 (look_up_one_symbol, relocate_instruction)
13811 (monitor_output): Move to remote-utils.h, and include it.
13812 * remote-utils.h: New file.
13814 2013-09-05 Pedro Alves <palves@redhat.com>
13816 * server.h (_): Delete.
13818 2013-09-02 Pedro Alves <palves@redhat.com>
13820 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13821 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13823 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13825 2013-09-02 Pierre Muller <muller@sourceware.org>
13827 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13828 or WriteProcessMemory complete successfully and handle
13829 ERROR_PARTIAL_COPY error.
13831 2013-09-02 Pedro Alves <palves@redhat.com>
13833 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13834 error instead of EIO.
13836 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13839 * linux-low.c: Include filestuff.h.
13840 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13841 * lynx-low.c: Include filestuff.h.
13842 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13843 * server.c: Include filestuff.h.
13844 (main): Call notice_open_fds.
13845 * spu-low.c: Include filestuff.h.
13846 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13848 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13850 * Makefile.in: Explain why ../target and ../nat are not
13851 listed as include file search paths.
13852 (linux-waitpid.o): New object file rule.
13853 * configure.srv (srv_native_linux_obj): New variable.
13854 Replace all occurrences of linux native object files with
13855 $srv_native_linux_obj.
13856 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13857 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13858 (linux_enable_event_reporting): Remove declaration.
13859 (my_waitpid): Moved to common/linux-waitpid.c.
13860 (linux_wait_for_event): Pass ptid when calling
13861 linux_enable_event_reporting.
13862 (linux_supports_tracefork_flag): Remove.
13863 (linux_enable_event_reporting): Likewise.
13864 (linux_tracefork_grandchild): Remove.
13865 (STACK_SIZE): Moved to common/linux-ptrace.c.
13866 (linux_tracefork_child): Remove.
13867 (linux_test_for_tracefork): Remove.
13868 (linux_look_up_symbols): Call linux_supports_traceclone.
13869 (initialize_low): Remove call to linux_test_for_tracefork.
13870 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13871 common/linux-ptrace.h.
13872 (PTRACE_TYPE_ARG4): Likewise.
13873 Include linux-ptrace.h.
13875 2013-08-21 Pedro Alves <palves@redhat.com>
13877 * config.in: Renegerate.
13879 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13881 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13882 (SFILES): Remove $(srcdir)/common/target-common.c and
13883 add $(srcdir)/target/waitstatus.c.
13884 (OBS): Remove target-common.o and add waitstatus.o.
13885 (server_h): Remove $(srcdir)/../common/target-common.h and
13886 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13887 and $(srcdir)/../target/waitstatus.h.
13888 (target-common.o): Remove.
13889 (waitstatus.o): New target object file.
13890 * target.h: Do not include target-common.h and
13891 include target/resume.h, target/wait.h and
13892 target/waitstatus.h.
13894 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13896 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13897 to PTRACE_TYPE_ARG3.
13898 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13899 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13901 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13902 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13904 2013-07-27 Jie Zhang <jie@codesourcery.com>
13905 Daniel Jacobowitz <dan@codesourcery.com>
13906 Yao Qi <yao@codesourcery.com>
13908 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13909 (mips-linux-watch.o): New rule.
13910 (mips_linux_watch_h): New variable.
13911 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13913 * linux-mips-low.c: Include mips-linux-watch.h.
13914 (struct arch_process_info, struct arch_lwp_info): New.
13915 (update_watch_registers_callback): New function.
13916 (mips_linux_new_process, mips_linux_new_thread) New functions.
13917 (mips_linux_prepare_to_resume, mips_insert_point): New
13919 (mips_remove_point, mips_stopped_by_watchpoint): New
13921 (rsp_bp_type_to_target_hw_bp_type): New function.
13922 (mips_stopped_data_address): New function.
13923 (the_low_target): Add watchpoint support functions.
13925 2013-07-27 Yao Qi <yao@codesourcery.com>
13927 * i386-low.c: Include break-common.h.
13928 (enum target_hw_bp_type): Remove.
13930 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13932 * Makefile.in (SFILES): /common/target-common.c.
13933 (OBS): Add target-common.o.
13934 (server_h): Add $(srcdir)/../common/target-common.h.
13935 (target-common.o): New target.
13936 * server.c (queue_stop_reply_callback): Free
13937 status string after use.
13938 * target.c (target_waitstatus_to_string): Remove.
13939 * target.h: Include target-common.h.
13940 (resume_kind): Likewise.
13941 (target_waitkind): Likewise.
13942 (target_waitstatus): Likewise.
13943 (TARGET_WNOHANG): Likewise.
13945 2013-07-04 Yao Qi <yao@codesourcery.com>
13947 * Makefile.in (host_alias): Use @host_noncanonical@.
13948 (target_alias): Use @target_noncanonical@.
13949 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13950 ACX_NONCANONICAL_HOST.
13951 * configure: Regenerated.
13954 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13956 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13957 * configure: Rebuild.
13958 * Makefile.in (version_host, version_target): Get from configure.
13959 (version.c): Use $(version_host) and $(version_target).
13961 2013-07-03 Pedro Alves <palves@redhat.com>
13963 * Makefile.in (config.status): Depend on development.sh.
13964 * acinclude.m4: Include libmcheck.m4.
13965 * configure: Regenerate.
13967 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13969 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13970 attribute inside the parentheses.
13971 (winapi_DebugSetProcessKillOnExit): Ditto.
13972 (winapi_DebugBreakProcess): Ditto.
13973 (winapi_GenerateConsoleCtrlEvent): Ditto.
13975 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13977 * notif.h (notif_event): Add a dummy member to avoid compiler
13980 2013-07-01 Pedro Alves <palves@redhat.com>
13982 * hostio.c (HOSTIO_PATH_MAX): Define.
13983 (require_filename, handle_open, handle_unlink, handle_readlink):
13986 2013-07-01 Pedro Alves <palves@redhat.com>
13988 * server.h: Include "pathmax.h".
13989 * linux-low.c: Don't include sys/param.h.
13990 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13992 * win32-low.c: Don't include sys/param.h.
13993 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13995 2013-07-01 Pedro Alves <palves@redhat.com>
13997 * event-loop.c: Don't check HAVE_UNISTD_H before including
13999 * gdbreplay.c: Likewise.
14000 * remote-utils.c: Likewise.
14001 * server.c: Likewise.
14002 * configure.ac: Don't check for unistd.h.
14003 * configure: Regenerate.
14005 2013-06-28 Tom Tromey <tromey@redhat.com>
14007 * Makefile.in (version.c): Use version.in, not
14010 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14012 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14013 * configure: Rebuild.
14014 * Makefile.in (version_host, version_target): Get from configure.
14015 (version.c): Use $(version_host) and $(version_target).
14017 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14019 Fix trace-status to output user name without trailing colon.
14020 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14022 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14024 Fix trace-status to output proper start-time and stop-time.
14025 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14026 output start time and stop time in hex as gdb expects.
14028 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14030 * tracepoint.c (build_traceframe_info_xml): Output trace state
14031 variables present in the trace buffer.
14033 2013-06-24 Tom Tromey <tromey@redhat.com>
14035 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14037 (version.o): Remove.
14038 * gdbreplay.c: Include version.h.
14039 (version, host_name): Don't declare.
14040 * server.h: Include version.h.
14041 (version, host_name): Don't declare.
14043 2013-06-12 Pedro Alves <palves@redhat.com>
14045 * linux-x86-low.c (linux_is_elf64): Delete global.
14046 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14047 with local linux_pid_exe_is_elf_64_file use.
14049 2013-06-11 Pedro Alves <palves@redhat.com>
14051 * linux-low.c (regset_disabled, disable_regset): New functions.
14052 (regsets_fetch_inferior_registers)
14053 (regsets_store_inferior_registers): Use them.
14054 (initialize_regsets_info); Don't allocate the disabled_regsets
14056 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14059 2013-06-11 Pedro Alves <palves@redhat.com>
14061 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14064 2013-06-11 Pedro Alves <palves@redhat.com>
14066 * linux-x86-low.c (initialize_low_arch): Call
14067 init_registers_x32_avx_linux.
14069 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14071 Fix compatibility with Android Bionic.
14072 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14075 2013-06-07 Pedro Alves <palves@redhat.com>
14078 * Makefile.in (OBS): Add tdesc.o.
14079 (IPA_OBJS): Add tdesc-ipa.o.
14080 (tdesc-ipa.o): New rule.
14081 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14083 * linux-low.c (new_inferior): Delete.
14084 (disabled_regsets, num_regsets): Delete.
14085 (linux_add_process): Adjust to set the new per-process
14087 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14088 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14089 was a stop. When calling arch_setup, switch the current inferior
14090 to the thread that got an event.
14091 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14092 (regsets_fetch_inferior_registers)
14093 (regsets_store_inferior_registers): New regsets_info parameter.
14095 (linux_register_in_regsets): New regs_info parameter. Adjust to
14097 (register_addr, fetch_register, store_register): New usrregs_info
14098 parameter. Adjust to use it.
14099 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14100 parameter regs_info. Adjust to use it.
14101 (linux_fetch_registers): Get the current inferior's regs_info, and
14103 (linux_store_registers): Ditto.
14104 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14105 (initialize_low): Don't initialize the target_regsets here. Call
14106 initialize_low_arch.
14107 * linux-low.h (target_regsets): Delete declaration.
14108 (struct regsets_info): New.
14109 (struct usrregs_info): New.
14110 (struct regs_info): New.
14111 (struct process_info_private) <new_inferior>: New field.
14112 (struct linux_target_ops): Delete the num_regs, regmap, and
14113 regset_bitmap fields. New field regs_info.
14114 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14115 * i387-fp.c (num_xmm_registers): Delete.
14116 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14117 calls to new interface.
14118 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14119 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14120 Infer the number of xmm registers from the regcache's target
14122 * i387-fp.h (num_xmm_registers): Delete.
14123 * inferiors.c (add_thread): Don't install the thread's regcache
14125 * proc-service.c (gregset_info): Fetch the current inferior's
14126 regs_info. Adjust to use it.
14127 * regcache.c: Include tdesc.h.
14128 (register_bytes, reg_defs, num_registers)
14129 (gdbserver_expedite_regs): Delete.
14130 (get_thread_regcache): If the thread doesn't have a regcache yet,
14131 create one, instead of aborting gdbserver.
14132 (regcache_invalidate_one): Rename to ...
14133 (regcache_invalidate_thread): ... this.
14134 (regcache_invalidate_one): New.
14135 (regcache_invalidate): Only invalidate registers of the current
14137 (init_register_cache): Add target_desc parameter, and use it.
14138 (new_register_cache): Ditto. Assert the target description has a
14139 non zero registers_size.
14140 (regcache_cpy): Add assertions. Adjust.
14141 (realloc_register_cache, set_register_cache): Delete.
14142 (registers_to_string, registers_from_string): Adjust.
14143 (find_register_by_name, find_regno, find_register_by_number)
14144 (register_cache_size): Add target_desc parameter, and use it.
14145 (free_register_cache_thread, free_register_cache_thread_one)
14146 (regcache_release, register_cache_size): New.
14147 (register_size): Add target_desc parameter, and use it.
14148 (register_data, supply_register, supply_register_zeroed)
14149 (supply_regblock, supply_register_by_name, collect_register)
14150 (collect_register_as_string, collect_register_by_name): Adjust.
14151 * regcache.h (struct target_desc): Forward declare.
14152 (struct regcache) <tdesc>: New field.
14153 (init_register_cache, new_register_cache): Add target_desc
14155 (regcache_invalidate_thread): Declare.
14156 (regcache_invalidate_one): Delete declaration.
14157 (regcache_release): Declare.
14158 (find_register_by_number, register_cache_size, register_size)
14159 (find_regno): Add target_desc parameter.
14160 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14162 * remote-utils.c: Include tdesc.h.
14163 (outreg, prepare_resume_reply): Adjust.
14164 * server.c: Include tdesc.h.
14165 (gdbserver_xmltarget): Delete declaration.
14166 (get_features_xml, process_serial_event): Adjust.
14167 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14169 (struct process_info) <tdesc>: New field.
14170 (ipa_tdesc): Declare.
14171 * tdesc.c: New file.
14172 * tdesc.h: New file.
14173 * tracepoint.c: Include tdesc.h.
14174 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14175 (get_context_regcache): Adjust to pass ipa_tdesc down.
14176 (do_action_at_tracepoint): Adjust to get the register cache size
14177 from the context regcache's description.
14178 (traceframe_walk_blocks): Adjust to get the register cache size
14179 from the current trace frame's description.
14180 (traceframe_get_pc): Adjust to get current trace frame's
14181 description and pass it down.
14182 (gdb_collect): Adjust to get the register cache size from the
14184 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14185 (gdbserver_xmltarget): Delete.
14186 (initialize_low_tracepoint): Set the ipa's target description.
14187 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14188 (initialize_low_tracepoint): Set the ipa's target description.
14189 * linux-x86-low.c: Include tdesc.h.
14190 [__x86_64__] (is_64bit_tdesc): New.
14191 (ps_get_thread_area, x86_get_thread_area): Use it.
14192 (i386_cannot_store_register): Rename to ...
14193 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14194 (i386_cannot_fetch_register): Rename to ...
14195 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14196 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14198 (target_regsets): Rename to ...
14199 (x86_regsets): ... this.
14200 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14202 (x86_siginfo_fixup): Use is_64bit_tdesc.
14203 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14204 (tdesc_x32_avx_linux, tdesc_x32_linux)
14205 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14207 (x86_linux_update_xmltarget): Delete.
14208 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14209 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14210 (AMD64_LINUX_USER64_CS): New.
14211 (x86_linux_read_description): New, based on
14212 x86_linux_update_xmltarget.
14213 (same_process_callback): New.
14214 (x86_arch_setup_process_callback): New.
14215 (x86_linux_update_xmltarget): New.
14216 (x86_regsets_info): New.
14217 (amd64_linux_regs_info): New.
14218 (i386_linux_usrregs_info): New.
14219 (i386_linux_regs_info): New.
14220 (x86_linux_regs_info): New.
14221 (x86_arch_setup): Reimplement.
14222 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14223 (x86_emit_ops): Ditto.
14224 (the_low_target): Adjust. Install x86_linux_regs_info,
14225 x86_cannot_fetch_register, and x86_cannot_store_register.
14226 (initialize_low_arch): New.
14227 * linux-ia64-low.c (tdesc_ia64): Declare.
14228 (ia64_fetch_register): Adjust.
14229 (ia64_usrregs_info, regs_info): New globals.
14230 (ia64_regs_info): New function.
14231 (the_low_target): Adjust.
14232 (initialize_low_arch): New function.
14233 * linux-sparc-low.c (tdesc_sparc64): Declare.
14234 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14236 (sparc_arch_setup): New function.
14237 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14238 (the_low_target): Adjust.
14239 (initialize_low_arch): New function.
14240 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14241 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14242 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14243 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14244 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14245 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14246 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14247 (tdesc_powerpc_isa205_vsx64l): Declare.
14248 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14249 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14250 (ppc_set_pc, ppc_get_hwcap): Adjust.
14251 (ppc_usrregs_info): Forward declare.
14252 (!__powerpc64__) ppc_regmap_adjusted: New global.
14253 (ppc_arch_setup): Adjust to the current process'es target
14255 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14256 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14257 (ppc_store_evrregset): Adjust.
14258 (target_regsets): Rename to ...
14259 (ppc_regsets): ... this, and make static.
14260 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14261 (ppc_regs_info): New function.
14262 (the_low_target): Adjust.
14263 (initialize_low_arch): New function.
14264 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14265 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14266 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14267 (tdesc_s390x_linux64v2): Declare.
14268 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14269 (s390_fill_gregset, s390_store_last_break): Adjust.
14270 (target_regsets): Rename to ...
14271 (s390_regsets): ... this, and make static.
14272 (s390_get_pc, s390_set_pc): Adjust.
14273 (s390_get_hwcap): New target_desc parameter, and use it.
14274 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14275 (s390_arch_setup): Adjust to set the current process'es target
14276 description. Don't adjust the regmap.
14277 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14278 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14279 (regs_info_3264): New globals.
14280 (s390_regs_info): New function.
14281 (the_low_target): Adjust.
14282 (initialize_low_arch): New function.
14283 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14284 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14285 [__mips64] (init_registers_mips_linux)
14286 (init_registers_mips_dsp_linux): Delete defines.
14287 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14288 (have_dsp): New global.
14289 (mips_read_description): New, based on mips_arch_setup.
14290 (mips_arch_setup): Reimplement.
14291 (get_usrregs_info): New function.
14292 (mips_cannot_fetch_register, mips_cannot_store_register)
14293 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14294 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14295 (target_regsets): Rename to ...
14296 (mips_regsets): ... this, and make static.
14297 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14298 (dsp_regs_info, regs_info): New globals.
14299 (mips_regs_info): New function.
14300 (the_low_target): Adjust.
14301 (initialize_low_arch): New function.
14302 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14303 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14305 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14306 (arm_read_description): New, with bits factored from
14308 (arm_arch_setup): Reimplement.
14309 (target_regsets): Rename to ...
14310 (arm_regsets): ... this, and make static.
14311 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14312 (arm_regs_info): New function.
14313 (the_low_target): Adjust.
14314 (initialize_low_arch): New function.
14315 * linux-m68k-low.c (tdesc_m68k): Declare.
14316 (target_regsets): Rename to ...
14317 (m68k_regsets): ... this, and make static.
14318 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14319 (m68k_regs_info): New function.
14320 (m68k_arch_setup): New function.
14321 (the_low_target): Adjust.
14322 (initialize_low_arch): New function.
14323 * linux-sh-low.c (tdesc_sharch): Declare.
14324 (target_regsets): Rename to ...
14325 (sh_regsets): ... this, and make static.
14326 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14327 (sh_regs_info, sh_arch_setup): New functions.
14328 (the_low_target): Adjust.
14329 (initialize_low_arch): New function.
14330 * linux-bfin-low.c (tdesc_bfin): Declare.
14331 (bfin_arch_setup): New function.
14332 (bfin_usrregs_info, regs_info): New globals.
14333 (bfin_regs_info): New function.
14334 (the_low_target): Adjust.
14335 (initialize_low_arch): New function.
14336 * linux-cris-low.c (tdesc_cris): Declare.
14337 (cris_arch_setup): New function.
14338 (cris_usrregs_info, regs_info): New globals.
14339 (cris_regs_info): New function.
14340 (the_low_target): Adjust.
14341 (initialize_low_arch): New function.
14342 * linux-cris-low.c (tdesc_crisv32): Declare.
14343 (cris_arch_setup): New function.
14344 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14345 (cris_regs_info): New function.
14346 (the_low_target): Adjust.
14347 (initialize_low_arch): New function.
14348 * linux-m32r-low.c (tdesc_m32r): Declare.
14349 (m32r_arch_setup): New function.
14350 (m32r_usrregs_info, regs_info): New globals.
14351 (m32r_regs_info): Adjust.
14352 (initialize_low_arch): New function.
14353 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14354 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14355 (tic6x_usrregs_info): Forward declare.
14356 (tic6x_read_description): New function, based on ...
14357 (tic6x_arch_setup): ... this. Reimplement.
14358 (target_regsets): Rename to ...
14359 (tic6x_regsets): ... this, and make static.
14360 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14361 (tic6x_regs_info): New function.
14362 (the_low_target): Adjust.
14363 (initialize_low_arch): New function.
14364 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14365 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14366 (target_regsets): Rename to ...
14367 (xtensa_regsets): ... this, and make static.
14368 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14370 (xtensa_arch_setup, xtensa_regs_info): New functions.
14371 (the_low_target): Adjust.
14372 (initialize_low_arch): New function.
14373 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14374 (nios2_arch_setup): Set the current process'es tdesc.
14375 (target_regsets): Rename to ...
14376 (nios2_regsets): ... this.
14377 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14378 (nios2_regs_info): New function.
14379 (the_low_target): Adjust.
14380 (initialize_low_arch): New function.
14381 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14382 (aarch64_arch_setup): Set the current process'es tdesc.
14383 (target_regsets): Rename to ...
14384 (aarch64_regsets): ... this.
14385 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14386 (aarch64_regs_info): New function.
14387 (the_low_target): Adjust.
14388 (initialize_low_arch): New function.
14389 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14391 (target_regsets): Rename to ...
14392 (tile_regsets): ... this.
14393 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14394 (tile_regs_info): New function.
14395 (tile_arch_setup): Set the current process'es tdesc.
14396 (the_low_target): Adjust.
14397 (initialize_low_arch): New function.
14398 * spu-low.c (tdesc_spu): Declare.
14399 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14400 * win32-arm-low.c (tdesc_arm): Declare.
14401 (arm_arch_setup): New function.
14402 (the_low_target): Install arm_arch_setup instead of
14403 init_registers_arm.
14404 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14405 (init_windows_x86): Rename to ...
14406 (i386_arch_setup): ... this. Set `win32_tdesc'.
14407 (the_low_target): Adjust.
14408 * win32-low.c (win32_tdesc): New global.
14409 (child_add_thread): Don't create the thread cache here.
14410 (do_initial_child_stuff): Set the new process'es tdesc.
14411 * win32-low.h (struct target_desc): Forward declare.
14412 (win32_tdesc): Declare.
14413 * lynx-i386-low.c (tdesc_i386): Declare global.
14414 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14415 * lynx-low.c (lynx_tdesc): New global.
14416 (lynx_add_process): Set the new process'es tdesc.
14417 * lynx-low.h (struct target_desc): Forward declare.
14418 (lynx_tdesc): Declare global.
14419 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14420 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14421 * nto-low.c (nto_tdesc): New global.
14422 (do_attach): Set the new process'es tdesc.
14423 * nto-low.h (struct target_desc): Forward declare.
14424 (nto_tdesc): Declare.
14425 * nto-x86-low.c (tdesc_i386): Declare.
14426 (nto_x86_arch_setup): Set `nto_tdesc'.
14428 2013-06-04 Gary Benson <gbenson@redhat.com>
14430 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14431 to qSupported response when appropriate.
14432 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14433 with nonzero-length annex.
14434 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14435 arguments supplied in annex.
14437 2013-05-31 Doug Evans <dje@google.com>
14440 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14441 64 bits in 64-cross-32 environment.
14443 2013-05-28 Pedro Alves <palves@redhat.com>
14445 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14446 (aarch64-without-fpu.c): Delete rule.
14447 * configure.srv (aarch64*-*-linux*): Remove references to
14448 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14449 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14452 2013-05-24 Pedro Alves <palves@redhat.com>
14454 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14455 instead of strchr/decode_address. Error if the range isn't split
14456 with a ','. Don't assume there's be a ':' in the action.
14458 2013-05-23 Yao Qi <yao@codesourcery.com>
14459 Pedro Alves <palves@redhat.com>
14461 * linux-low.c (lwp_in_step_range): New function.
14462 (linux_wait_1): If the thread was range stepping and stopped
14463 outside the stepping range, report the stop to GDB. Otherwise,
14464 continue stepping. Add range stepping debug output.
14465 (linux_set_resume_request): Copy the step range from the resume
14466 request to the lwp.
14467 (linux_supports_range_stepping): New.
14468 (linux_target_ops) <supports_range_stepping>: Set to
14469 linux_supports_range_stepping.
14470 * linux-low.h (struct linux_target_ops)
14471 <supports_range_stepping>: New field.
14472 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14473 * linux-x86-low.c (x86_supports_range_stepping): New.
14474 (the_low_target) <supports_range_stepping>: Set to
14475 x86_supports_range_stepping.
14476 * server.c (handle_v_cont): Handle 'r' action.
14477 (handle_v_requests): Append ";r" if the target supports range
14479 * target.h (struct thread_resume) <step_range_start,
14480 step_range_end>: New fields.
14481 (struct target_ops) <supports_range_stepping>:
14483 (target_supports_range_stepping): New macro.
14485 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14487 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14488 confusion in comment.
14490 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14492 * lynx-low.c (struct process_info_private): New type.
14493 (lynx_add_process): New function.
14494 (lynx_create_inferior, lynx_attach): Replace calls to
14495 add_process by calls to lynx_add_process.
14496 (lynx_resume): If PTID is null, then try using
14497 current_process()->private->last_wait_event_ptid.
14499 (lynx_clear_inferiors): Delete. The contents of that function
14500 has been inlined in lynx_mourn;
14501 (lynx_wait_1): Save the ptid in the process's private data.
14502 (lynx_mourn): Free the process' private data. Replace call
14503 to lynx_clear_inferiors by call to clear_inferiors.
14505 2013-05-17 Yao Qi <yao@codesourcery.com>
14507 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14510 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14512 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14513 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14514 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14515 PT_TEXT_END_ADDR guards. Update comments.
14516 (linux_target_op) <read_offsets>: Conditionally define to
14517 linux_read_offsets if the target is UCLIBC and if it defines
14518 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14520 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14521 Andrew Jenner <andrew@codesourcery.com>
14523 * Makefile.in (SFILES): Add linux-nios2-low.c.
14524 (clean): Add action to delete nios2-linux.c.
14525 (nios2-linux.c): New rule.
14526 * configure.srv: Add nios2*-*-linux*.
14527 * linux-nios2-low.c: New.
14529 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14531 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14533 2013-04-25 Hui Zhu <hui@codesourcery.com>
14536 * ax.c (ax_printf): Add fflush.
14538 2013-04-22 Tom Tromey <tromey@redhat.com>
14540 * Makefile.in (SFILES): Add filestuff.c.
14541 (OBS): Add filestuff.o.
14542 (filestuff.o): New target.
14543 * config.in, configure: Rebuild.
14544 * configure.ac: Check for fdwalk, pipe2.
14546 2013-04-17 Pedro Alves <palves@redhat.com>
14548 * configure.ac (USE_THREAD_DB): Delete variable.
14549 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14550 Don't AC_SUBST USE_THREAD_DB.
14551 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14552 * config.in, configure: Regenerate.
14554 2013-04-16 Pedro Alves <palves@redhat.com>
14556 * linux-low.h (struct lwp_info) <thread_known>: Move under
14557 the USE_THREAD_DB #ifdef.
14559 2013-04-16 Pedro Alves <palves@redhat.com>
14561 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14562 (linux-low.o): Delete rule.
14563 * linux-low.h: Always include "gdb_thread_db.h" instead of
14564 conditionally including thread_db.h.
14565 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14568 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14570 * Makefile.in (install-only): Fix make install regression.
14572 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14574 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14575 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14577 * gdbserver.1: Remove.
14579 2013-03-22 Pedro Alves <palves@redhat.com>
14581 * linux-low.c (handle_extended_wait): Don't call
14582 linux_enable_event_reporting.
14584 2013-03-15 Tony Theodore <tonyt@logyst.com>
14587 * Makefile.in (SHELL): Use @SHELL@.
14589 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14591 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14594 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14596 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14597 Remove extraneous NULL element.
14599 2013-03-13 Yao Qi <yao@codesourcery.com>
14601 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14602 'V' block in trace frame.
14604 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14606 * target.h (struct target_ops): Add btrace ops.
14607 (target_supports_btrace): New macro.
14608 (target_enable_btrace): New macro.
14609 (target_disable_btrace): New macro.
14610 (target_read_btrace): New macro.
14611 * gdbthread.h (struct thread_info): Add btrace field.
14612 * server.c: Include btrace-common.h.
14613 (handle_btrace_general_set): New function.
14614 (handle_btrace_enable): New function.
14615 (handle_btrace_disable): New function.
14616 (handle_general_set): Call handle_btrace_general_set.
14617 (handle_qxfer_btrace): New function.
14618 (struct qxfer qxfer_packets[]): Add btrace entry.
14619 * inferiors.c (remove_thread): Disable btrace.
14620 * linux-low: Include linux-btrace.h.
14621 (linux_low_enable_btrace): New function.
14622 (linux_low_read_btrace): New function.
14623 (linux_target_ops): Add btrace ops.
14624 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14625 Add srv_linux_btrace=yes.
14626 (x86_64-*-linux*): Add linux-btrace.o.
14627 Add srv_linux_btrace=yes.
14628 * configure.ac: Define HAVE_LINUX_BTRACE.
14629 * config.in: Regenerated.
14630 * configure: Regenerated.
14632 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14634 * server.c (handle_qxfer): Preserve error message if -3 is
14636 (qxfer): Document the -3 return value.
14638 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14640 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14641 (linux_btrace_h): New variable.
14642 (linux-btrace.o): New rule.
14644 2013-03-08 Stan Shebs <stan@codesourcery.com>
14645 Hafiz Abid Qadeer <abidh@codesourcery.com>
14647 * tracepoint.c (trace_buffer_size): New global.
14648 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14649 (init_trace_buffer): Change to one-argument function. Allocate
14650 trace buffer memory.
14651 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14652 handle QTBuffer:size packet.
14653 (cmd_bigqtbuffer_size): New function.
14654 (initialize_tracepoint): Call init_trace_buffer with
14655 DEFAULT_TRACE_BUFFER_SIZE.
14656 * server.c (handle_query): Add QTBuffer:size in the
14659 2013-03-07 Yao Qi <yao@codesourcery.com>
14661 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14662 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14664 (cmd_qtsp): Adjust condition. Do post increment.
14665 Set cur_action and cur_step_action back to 0.
14667 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14670 * linux-low.c (linux_write_memory): Return early success if LEN is
14673 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14675 * configure.srv: Add x86_64-*-cygwin* as target.
14677 2013-02-28 Tom Tromey <tromey@redhat.com>
14679 * configure.ac: Invoke AC_SYS_LARGEFILE.
14680 * configure, config.in: Rebuild.
14682 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14684 * win32-low.c: Throughout, fix format strings and casts of
14685 printf-like functions to avoid type related warnings on all
14687 (get_child_debug_event): Print dwDebugEventCode as hex since
14688 that's how it's usually documented.
14690 2013-02-28 Yao Qi <yao@codesourcery.com>
14692 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14695 2013-02-27 Jiong Wang <jiwang@tilera.com>
14697 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14698 (reg-tilegx32.c): New rule.
14699 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14700 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14701 different register info initializer according to elf class.
14702 (init_registers_tilgx32): New function. The tilegx32 register info
14704 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14705 (tile_store_gregset): Likewise.
14707 2013-02-27 Yao Qi <yao@codesourcery.com>
14709 * server.c (process_point_options): Print debug message when
14710 debug_threads is true.
14712 2013-02-26 Yao Qi <yao@codesourcery.com>
14714 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14716 2013-02-19 Pedro Alves <palves@redhat.com>
14717 Kai Tietz <ktietz@redhat.com>
14721 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14722 instead of strtoul to extract address from packet.
14723 (process_serial_event) <'z'>: Likewise.
14725 2013-02-18 Yao Qi <yao@codesourcery.com>
14727 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14729 2013-02-14 Pedro Alves <palves@redhat.com>
14733 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14734 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14736 2013-02-14 Pedro Alves <palves@redhat.com>
14738 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14740 2013-02-14 Pedro Alves <palves@redhat.com>
14742 * tracepoint.c (save_string): Delete.
14743 (add_tracepoint_action): Use savestring instead of save_string.
14745 2013-02-12 Pedro Alves <palves@redhat.com>
14747 * linux-xtensa-low.c: Ditto.
14748 * xtensa-xtregs.c: Ditto.
14750 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14752 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14755 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14757 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14758 aarch64_num_wp_regs and aarch64_num_bp_regs to
14759 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14761 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14763 * linux-aarch64-low.c (ps_get_thread_area): Replace
14764 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14766 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14767 Marcus Shawcroft <marcus.shawcroft@arm.com>
14768 Nigel Stephens <nigel.stephens@arm.com>
14769 Yufeng Zhang <yufeng.zhang@arm.com>
14771 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14772 (aarch64.c, aarch64-without-fpu.c): New targets.
14773 * configure.srv (aarch64*-*-linux*): New.
14774 * linux-aarch64-low.c: New file.
14776 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14778 * linux-low.c (handle_extended_wait, linux_create_inferior)
14779 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14780 (dequeue_one_deferred_signal, linux_resume_one_thread)
14781 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14782 (linux_tracefork_grandchild, linux_test_for_tracefork)
14783 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14784 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14785 where the argument is 0.
14787 2013-01-25 Yao Qi <yao@codesourcery.com>
14789 * event-loop.c: Include "queue.h".
14790 (gdb_event_p): New typedef.
14791 (struct gdb_event) <next_event>: Remove.
14792 (event_queue): Change to QUEUE(gdb_event_p).
14793 (async_queue_event): Remove.
14794 (gdb_event_xfree): New.
14795 (initialize_event_loop): New.
14796 (process_event): Use API from QUEUE.
14797 (wait_for_event): Likewise.
14798 * server.c (main): Call initialize_event_loop.
14799 * server.h (initialize_event_loop): Declare.
14801 2013-01-18 Yao Qi <yao@codesourcery.com>
14803 * ax.h (struct eval_agent_expr_context): New.
14804 (gdb_eval_agent_expr): Update declaration.
14805 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14806 TFRAME. Add new argument CTX.
14807 * server.h (struct eval_agent_expr_context): Declare.
14808 (agent_mem_read, agent_tsv_read): Update declaration.
14809 (agent_mem_read_string): Likewise.
14810 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14811 (add_traceframe_block): Add new argument TPOINT.
14812 Increase TPOINT->traceframe_usage.
14813 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14814 eval_tracepoint_agent_expr.
14815 (condition_true_at_tracepoint): Likewise.
14816 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14817 (agent_mem_read_string, agent_tsv_read): Likewise.
14819 2013-01-16 Yao Qi <yao@codesourcery.com>
14821 * linux-low.c (linux_resume_one_lwp): Don't check
14822 'lwp->bp_reinsert != 0'.
14824 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14825 Pedro Alves <palves@redhat.com>
14827 * lynx-low.c (ptrace_request_to_str): Define a temporary
14828 macro and use it to simplify this function's implementation.
14830 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14832 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14835 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14837 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14839 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14841 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14843 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14845 * lynx-low.c (lynx_resume): Use the resume_info parameter
14846 to determine the ptid for the lynx_ptrace call, unless
14847 it is equal to minus_one_ptid, in which case we use the
14848 ptid of the current_inferior.
14849 (lynx_wait_1): After having received a thread create/exit
14850 event, resume the inferior's execution using the signaling
14851 thread's ptid, rather than the old ptid.
14853 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14855 * lynx-low.c (lynx_resume): Delete variable ret.
14857 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14859 * gdbreplay.c (gdbreplay_version): Update copyright year.
14860 * server.c (gdbserver_version): Likewise.
14862 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14864 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14867 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14869 * lynx-low.c (ptrace_request_to_str): Add handling for
14870 PTRACE_GETTRACESIG.
14872 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14874 * lynx-low.c (lynx_attach): Delete variable new_process.
14876 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14878 * lynx-low.c (lynx_create_inferior): Delete variable
14881 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14883 * lynx-low.c (ptrace_request_to_str): Do not handle
14884 PTRACE_GETTHREADLIST if this macro does not exist.
14886 2012-12-15 Yao Qi <yao@codesourcery.com>
14888 * Makefile.in (OBS): Add notif.o.
14889 * notif.c, notif.h: New.
14890 * server.c: Include "notif.h".
14891 (struct vstop_notif) <next>: Remove.
14893 (queue_stop_reply): Update.
14894 (push_event, send_next_stop_reply): Remove.
14895 (discard_queued_stop_replies): Update.
14896 (notif_stop): New variable.
14897 (handle_v_stopped): Remove.
14898 (handle_v_requests): Don't call handle_v_stopped. Call
14899 handle_ack_notif instead.
14900 (queue_stop_reply_callback): Call notif_event_enque instead
14901 of queue_stop_reply.
14902 (handle_status): Don't call send_next_stop_reply, call
14903 notif_write_event instead.
14904 (kill_inferior_callback): Likewise.
14905 (detach_or_kill_inferior_callback): Likewise.
14906 (main): Call initialize_notif.
14907 (process_serial_event): Call QUEUE_is_empty.
14908 (handle_target_event): Call notif_push instead of push event.
14909 * server.h (push_event): Remove declaration.
14911 2012-12-10 Tom Tromey <tromey@redhat.com>
14913 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14914 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14917 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14918 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14919 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14920 (amd64-linux-ipa.o, ax.o): Rewrite.
14921 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14922 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14923 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14924 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14925 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14926 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14927 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14928 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14929 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14930 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14931 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14932 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14933 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14934 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14935 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14936 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14937 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14938 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14939 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14940 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14941 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14942 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14943 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14944 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14945 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14946 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14947 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14948 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14949 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14950 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14951 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14952 (reg-tilegx.o): Remove.
14953 (all_object_files): New macro.
14954 Include .deps files.
14955 * aclocal.m4, configure: Rebuild.
14956 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14957 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14958 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14960 2012-12-05 Tom Tromey <tromey@redhat.com>
14963 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14965 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14967 * configure.ac: Check for linux/perf_event.h.
14968 * config.in: Regenerated.
14969 * configure: Regenerated.
14971 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14973 * hostio.c (handle_readlink): Decrease buffer size
14974 parameter passed to readlink by one byte.
14976 2012-11-26 Yao Qi <yao@codesourcery.com>
14978 * configure.ac (build_warnings): Append '-Wempty-body'.
14979 * configure: Regenerated.
14980 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14983 2012-11-15 Pierre Muller <muller@sourceware.org>
14985 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14986 * config.in: Regenerate.
14987 * configure: Regenerate.
14988 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14989 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14990 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14991 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14993 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14994 instead of <sys/wait.h> header.
14995 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14997 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14999 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15000 (various make rules): Remove -DGDBSERVER
15002 2012-11-09 Yao Qi <yao@codesourcery.com>
15004 * spu-low.c (current_ptid): Move it to ..
15005 * gdbthread.h: ... here. New.
15006 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15007 * server.c (myresume, process_serial_event): Likewise.
15008 * thread-db.c (thread_db_find_new_threads): Likewise.
15009 * tracepoint.c (run_inferior_command): Likewise.
15011 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15013 * server.c (handle_search_memory_1): Include access length in
15016 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15018 * linux-crisv32-low.c: Fix compile errors.
15020 2012-09-04 Yao Qi <yao@codesourcery.com>
15022 * tracepoint.c (cmd_qtsv): Adjust debug message.
15023 Don't check CUR_TPOINT.
15025 2012-08-28 Yao Qi <yao@codesourcery.com>
15027 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15028 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15029 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15030 Remove declarations of xmalloc, xreallloc, xstrdup and
15032 * Makefile.in (libiberty_h): New.
15033 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15034 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15036 2012-08-23 Yao Qi <yao@codesourcery.com>
15038 * server.h: Remove declaration of 'xsnprintf'.
15040 2012-08-22 Keith Seitz <keiths@redhat.com>
15042 * server.h: Include build-gnulib-gbserver/config.h.
15043 * gdbreplay.c: Likewise.
15045 2012-08-08 Doug Evans <dje@google.com>
15047 * Makefile.in (SFILES): Add gdb_vecs.c.
15048 (OBS): Add gdb_vecs.o.
15049 (gdb_vecs_h, host_defs_h): New variables.
15050 (thread-db.o): Add $(gdb_vecs_h) dependency.
15051 (gdb_vecs.o): New rule.
15052 * thread-db.c: #include "gdb_vecs.h".
15053 (thread_db_load_search): Use a vector to iterate over path elements.
15054 Handle text appearing after "$pdir".
15056 * configure.ac: Add check for strstr.
15057 * config.in: Regenerate.
15058 * configure: Regenerate.
15060 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15062 * hostio.c (handle_pread): If pread fails, fall back to attempting
15064 (handle_pwrite): Likewise for pwrite.
15066 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15068 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15069 between unsupported TYPE and unimplementable ADDR/LEN combination.
15070 (arm_insert_point): Act on new return value.
15072 2012-07-31 Pedro Alves <palves@redhat.com>
15074 * server.c (process_point_options): Only skip tokens if we find
15075 one that is unrecognized. Don't treat 'X' specially while
15076 skipping unrecognized tokens.
15078 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15080 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15081 to 4-byte-align HW breakpoint addresses for Thumb.
15083 2012-07-27 Yao Qi <yao@codesourcery.com>
15087 * server.h: Declare gdb_agent_about_to_close.
15088 * target.c (kill_inferior): Include "agent.h".
15089 New. Send command 'kill'.
15090 * target.h (kill_inferior): Removed macro.
15091 * tracepoint.c (gdb_agent_about_to_close): New.
15092 (gdb_agent_helper_thread): Handle command 'close'.
15093 Wait endlessly until the inferior stops.
15094 Install gdb_agent_remove_socket to atexit hook.
15095 (agent_socket_name): New static variable.
15096 (gdb_agent_socket_init): Replace local variable 'name' with
15097 'agent_socket_name'.
15098 (gdb_agent_remove_socket): New.
15100 2012-07-27 Yao Qi <yao@codesourcery.com>
15102 * server.c (process_point_options): Stop at 'X' when parsing.
15104 2012-07-19 Michael Eager <eager@eagercon.com>
15106 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15108 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15109 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15110 hardware breakpoint.
15112 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15114 * gdbserver/linux-low.c (initialize_low): Call
15115 linux_ptrace_init_warnings.
15117 2012-07-02 Doug Evans <dje@google.com>
15119 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15122 2012-07-02 Stan Shebs <stan@codesourcery.com>
15124 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15125 (ax.o): Add it to build rule.
15127 (OBS): Add format.o.
15128 (IPA_OBS): Add format.o.
15129 * server.c (handle_query): Claim support for breakpoint commands.
15130 (process_point_options): Add command case.
15131 (process_serial_event): Leave running if there are printfs in
15133 * mem-break.h (any_persistent_commands): Declare.
15134 (add_breakpoint_commands): Declare.
15135 (gdb_no_commands_at_breakpoint): Declare.
15136 (run_breakpoint_commands): Declare.
15137 * mem-break.c (struct point_command_list): New struct.
15138 (struct breakpoint): New field command_list.
15139 (any_persistent_commands): New function.
15140 (add_commands_to_breakpoint): New function.
15141 (add_breakpoint_commands): New function.
15142 (gdb_no_commands_at_breakpoint): New function.
15143 (run_breakpoint_commands): New function.
15144 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15146 * ax.c: Include format.h.
15147 (ax_printf): New function.
15148 (gdb_eval_agent_expr): Add printf opcode.
15150 2012-06-13 Yao Qi <yao@codesourcery.com>
15152 * server.c (start_inferior): Remove duplicated writes to fields
15153 'last_resume_kind' and 'last_status' of 'current_inferior'.
15155 2012-06-12 Yao Qi <yao@codesourcery.com>
15156 Pedro Alves <palves@redhat.com>
15158 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15160 * server.c (handle_v_cont): Extend comment.
15162 2012-06-11 Yao Qi <yao@codesourcery.com>
15164 * linux-low.c (linux_attach): Add 'static'.
15166 2012-06-06 Yao Qi <yao@codesourcery.com>
15168 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15170 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15172 Fix gcc -flto compilation warning.
15173 * server.c (main): Make variable multi_mode and attach volatile.
15175 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15177 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15178 if the platform doesn't know about it.
15180 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15182 * Makefile.in (SFILES): Add linux-tile-low.c.
15183 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15184 * configure.srv: Handle tilegx-*-linux*.
15185 * linux-tile-low.c: New file.
15187 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15189 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15191 2012-05-24 Pedro Alves <palves@redhat.com>
15195 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15197 2012-05-24 Pedro Alves <palves@redhat.com>
15201 Replace target_signal with gdb_signal throughout.
15203 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15205 * linux-low.c (linux_store_registers): Avoid the copying sequence
15206 when no data has been retrieved by ptrace.
15208 2012-05-22 Will Deacon <will.deacon@arm.com>
15210 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15211 Include asm/ptrace.h.
15212 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15215 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15217 * linux-low.c (linux_store_registers): Don't re-retrieve data
15218 with ptrace that has already been obtained from /proc. Always
15219 copy any data retrieved with ptrace to the buffer supplied.
15221 2012-05-11 Yao Qi <yao@codesourcery.com>
15222 Pedro Alves <palves@redhat.com>
15224 * linux-low.c (enum stopping_threads_kind): New.
15225 (stopping_threads): Change type to `enum stopping_threads_kind'.
15226 (handle_extended_wait): If stopping and suspending threads, leave
15227 the new_lwp suspended too.
15228 (linux_wait_for_event): Adjust.
15229 (stop_all_lwps): Set `stopping_threads' to
15230 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15231 whether we're suspending threads or just stopping them. Assert no
15234 2012-04-29 Yao Qi <yao@codesourcery.com>
15236 * server.h: Move some code to ...
15237 * gdbthread.h: ... here. New.
15238 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15239 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15240 (nto-low.o, win32-low.o): Likewise.
15241 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15242 * regcache.c, remote-utils.c, server.c: Likewise.
15243 * target.c, tracepoint.c, win32-low.c: Likewise.
15245 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15247 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15248 (PTRACE_ARG4_TYPE): Likewise.
15249 (PTRACE_XFER_TYPE): Likewise.
15250 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15251 ptrace to PTRACE_ARG3_TYPE.
15252 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15253 (PTRACE_ARG4_TYPE): Likewise.
15254 (PTRACE_XFER_TYPE): Likewise.
15255 (linux_detach_one_lwp): Cast fourth argument of
15256 ptrace to long then PTRACE_ARG4_TYPE.
15257 (regsets_fetch_inferior_registers): Cast third argument of
15258 ptrace to long then PTRACE_ARG3_TYPE.
15259 (regsets_store_inferior_registers): Likewise.
15261 2012-04-20 Pedro Alves <palves@redhat.com>
15263 * configure: Regenerate.
15265 2012-04-19 Pedro Alves <palves@redhat.com>
15267 * Makefile.in (GNULIB_BUILDDIR): New.
15268 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15269 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15270 (all, install-only, uninstall, clean-info, all-lib, clean): No
15271 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15272 (maintainer-clean realclean distclean): Use subdir_do.
15274 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15275 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15276 * acinclude.m4: Include acx_configure_dir.m4.
15277 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15278 calls. Call AC_PROG_RANLIB. Configure gnulib using
15281 (GNULIB_STDINT_H): Adjust.
15282 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15283 * gdbreplay.c: Include build-gnulib/config.h.
15284 * server.h: Likewise.
15285 * aclocal.m4: Regenerate.
15286 * config.in: Regenerate.
15287 * configure: Regenerate.
15289 2012-04-19 Pedro Alves <palves@redhat.com>
15291 * Makefile.in (LIBGNU, INCGNU): Adjust.
15292 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15293 (all, install-only, uninstall, clean-info, all-lib, clean)
15294 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15295 * configure.ac: Adjust AC_OUTPUT output.
15296 * aclocal.m4: Regenerate.
15297 * configure: Regenerate.
15299 2012-04-19 Pedro Alves <palves@redhat.com>
15301 * Makefile.in (generated_files): New.
15302 (server_h): Remove the explicit dependency on config.h, and depend
15303 on $generated_files.
15305 2012-04-19 Pedro Alves <palves@redhat.com>
15307 * Makefile.in (INCGNU): Add -Ignulib.
15309 2012-04-19 Pedro Alves <palves@redhat.com>
15311 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15312 (INCGNU): ... this, and spell out -I here.
15313 (GNULIB_LIB): Rename to ...
15314 (LIBGNU): ... this.
15315 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15317 2012-04-19 Pedro Alves <palves@redhat.com>
15319 * config.in: Regenerate.
15321 2012-04-19 Pedro Alves <palves@redhat.com>
15323 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15324 * server.h (memmem): Remove declaration.
15325 * config.in: Regenerate.
15326 * configure: Regenerate.
15328 2012-04-19 Yao Qi <yao@codesourcery.com>
15330 * Makefile.in (SFILES): Add common/vec.c.
15334 2012-04-19 Yao Qi <yao@codesourcery.com>
15336 * remote-utils.c (prepare_resume_reply): Replace with macro
15337 target_core_of_thread.
15338 * server.c (handle_qxfer_threads_proper): Likewise.
15339 * target.h (traget_core_of_thread): New macro.
15341 2012-04-18 Pedro Alves <palves@redhat.com>
15343 * aclocal.m4: Regenerate.
15344 * configure: Regenerate.
15346 2012-04-16 Yao Qi <yao@codesourcery.com>
15348 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15349 duplicated on address.
15351 2012-04-16 Yao Qi <yao@codesourcery.com>
15353 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15354 (struct tracepoint_action_ops) <send>: New field.
15355 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15356 (agent_expr_send, x_tracepoint_action_send): New.
15357 (l_tracepoint_action_send): New.
15358 (cmd_qtdp): Download and install tracepoint
15359 according to `use_agent'.
15360 (run_inferior_command): Add one more parameter `len'.
15362 (tracepoint_send_agent): New.
15363 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15365 2012-04-16 Yao Qi <yao@codesourcery.com>
15367 * tracepoint.c (download_tracepoints): Moved to ...
15368 (cmd_qtstart): ... here.
15370 2012-04-14 Yao Qi <yao@codesourcery.com>
15372 * tracepoint.c: Include inttypes.h.
15373 (struct collect_memory_action): Use sized types.
15374 (struct tracepoint): Likewise.
15375 (cmd_qtdp, stop_tracing): Update print specifiers.
15376 (cmd_qtp, response_tracepoint): Likewise.
15377 (collect_data_at_tracepoint): Likewise.
15378 (collect_data_at_step): Likewise.
15380 2012-04-14 Yao Qi <yao@codesourcery.com>
15382 Import gnulib module inttypes.
15383 * aclocal.m4, config.in, configure: Regenerated.
15385 2012-04-14 Yao Qi <yao@codesourcery.com>
15387 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15388 Makefile and config.status at last.
15390 2012-04-13 Yao Qi <yao@codesourcery.com>
15392 * tracepoint.c: Include stdint.h unconditionally.
15394 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15396 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15397 on BFD_HAVE_SYS_PROCFS_TYPE.
15398 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15399 * configure: Regenerate.
15400 * config.in: Likewise.
15402 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15404 * Makefile.in (clean): Also remove x32.c x32-linux.c
15405 x32-avx.c x32-avx-linux.c.
15406 (x32.o): New target.
15408 (x32-linux.o): Likewise.
15409 (x32-linux.c): Likewise.
15410 (x32-avx.o): Likewise.
15411 (x32-avx.c): Likewise.
15412 (x32-avx-linux.o): Likewise.
15413 (x32-avx-linux.c): Likewise.
15415 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15416 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15417 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15418 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15419 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15420 i386/x32-avx-linux.xml.
15422 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15423 (init_registers_x32_avx_linux): Likwise.
15424 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15425 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15427 2012-04-13 Pedro Alves <palves@redhat.com>
15429 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15430 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15431 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15432 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15435 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15437 * linux-x86-low.c (compat_x32_clock_t): New.
15438 (compat_x32_siginfo_t): Likewise.
15439 (compat_x32_siginfo_from_siginfo): Likewise.
15440 (siginfo_from_compat_x32_siginfo): Likewise.
15441 (linux_is_elf64): Likewise.
15442 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15443 and siginfo_from_compat_x32_siginfo for x32.
15444 (x86_arch_setup): Set linux_is_elf64.
15446 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15449 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15451 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15452 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15453 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15454 compatible with process.
15456 2012-04-12 Yao Qi <yao@codesourcery.com>
15458 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15459 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15460 (install-only, install-info, clean): Handle sub dir gnulib.
15461 (all-lib, am--refresh): New targets.
15462 (memmem.o): Remove target.
15463 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15464 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15465 (AC_REPLACE_FUNCS): Remove memmem.
15466 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15467 (AC_OUTPUT): Generate Makefile in gnulib/.
15468 * aclocal.m4, config.in, configure: Regenerated.
15470 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15472 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15474 2012-04-05 Pedro Alves <palves@redhat.com>
15476 -Werror=strict-aliasing
15478 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15481 2012-04-04 Pedro Alves <palves@redhat.com>
15483 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15484 (sparc_store_gregset_from_stack, sparc_store_gregset)
15485 (sparc_breakpoint_at): Fix formatting.
15487 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15489 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15491 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15492 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15493 * config.in: Regenerate.
15494 * configure: Likewise.
15496 2012-03-29 Pedro Alves <palves@redhat.com>
15498 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15499 Correct ptrace arguments.
15501 2012-03-28 Pedro Alves <palves@redhat.com>
15503 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15504 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15505 (IA64_FR1_REGNUM): New defines.
15506 (ia64_fetch_register): New.
15507 (the_low_target): Install it.
15508 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15510 * linux-low.c (linux_fetch_registers): Try the
15511 the_low_target.fetch_register hook first.
15513 * linux-arm-low.c (the_low_target): Adjust.
15514 * linux-bfin-low.c (the_low_target): Adjust.
15515 * linux-cris-low.c (the_low_target): Adjust.
15516 * linux-crisv32-low.c (the_low_target): Adjust.
15517 * linux-m32r-low.c (the_low_target): Adjust.
15518 * linux-m68k-low.c (the_low_target): Adjust.
15519 * linux-mips-low.c (the_low_target): Adjust.
15520 * linux-ppc-low.c (the_low_target): Adjust.
15521 * linux-s390-low.c (the_low_target): Adjust.
15522 * linux-sh-low.c (the_low_target): Adjust.
15523 * linux-sparc-low.c (the_low_target): Adjust.
15524 * linux-tic6x-low.c (the_low_target): Adjust.
15525 * linux-x86-low.c (the_low_target): Adjust.
15526 * linux-xtensa-low.c (the_low_target): Adjust.
15528 2012-03-26 Pedro Alves <palves@redhat.com>
15530 * server.c (handle_qxfer_libraries): Don't bail early if
15531 the_target->qxfer_libraries_svr4 is not NULL.
15533 2012-03-26 Pedro Alves <palves@redhat.com>
15535 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15537 2012-03-23 Pedro Alves <palves@redhat.com>
15539 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15540 "library-list-svr4" element's start tag when the the DSO list is
15543 2012-03-23 Pedro Alves <palves@redhat.com>
15545 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15546 a variable whose type size is the same as the inferior's pointer
15549 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15551 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15553 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15554 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15555 * linux-low.h: Include <signal.h>.
15556 (struct siginfo): Remove forward declaration.
15557 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15560 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15562 * .gitignore: Ignore more files.
15564 2012-03-19 Pedro Alves <palves@redhat.com>
15565 Jan Kratochvil <jan.kratochvil@redhat.com>
15567 * server.c (cont_thread, general_thread): Add describing comments.
15568 (start_inferior): Clear `cont_thread'.
15569 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15572 2012-03-15 Yao Qi <yao@codesourcery.com>
15574 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15576 (cmd_qtdp): ... here.
15578 2012-03-15 Yao Qi <yao@codesourcery.com>
15580 * tracepoint.c (struct tracepoint_action_ops): New.
15581 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15582 (m_tracepoint_action_download): New.
15583 (r_tracepoint_action_download): New.
15584 (x_tracepoint_action_download): New.
15585 (l_tracepoint_action_download): New.
15586 (add_tracepoint_action): Install `action->ops' according type.
15587 (download_tracepoint_1): Move code `download' function pointer
15588 of various tracepoint_action_ops.
15590 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15592 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15593 linux_ptrace_attach_warnings.
15595 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15597 * Makefile.in (linux-ptrace.o): New.
15598 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15599 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15600 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15601 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15602 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15604 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15606 2012-03-08 Yao Qi <yao@codesourcery.com>
15607 Pedro Alves <palves@redhat.com>
15609 Fix PR server/13392.
15610 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15611 offset of JMP insn.
15612 * tracepoint.c (remove_tracepoint): New.
15613 (cmd_qtdp): Call remove_tracepoint when failed to install.
15615 2012-03-07 Pedro Alves <palves@redhat.com>
15617 * linux-low.c (get_detach_signal): New.
15618 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15619 Pass on pending signals to PTRACE_DETACH. Check the result of the
15621 * server.c (program_signals, program_signals_p): New.
15622 (handle_general_set): Handle QProgramSignals.
15623 * server.h (program_signals, program_signals_p): Declare.
15625 2012-03-05 Pedro Alves <palves@redhat.com>
15626 Jan Kratochvil <jan.kratochvil@redhat.com>
15628 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15631 2012-03-03 Yao Qi <yao@codesourcery.com>
15633 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15634 agent_look_up_symbols.
15636 2012-03-03 Yao Qi <yao@codesourcery.com>
15638 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15639 (linux-x86-low.o): Likewise.
15640 * server.h: Remove in_process_agent_loaded.
15641 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15645 2012-03-03 Yao Qi <yao@codesourcery.com>
15647 * tracepoint.c (gdb_agent_capability): New global.
15648 (in_process_agent_loaded_ust): Renamed to
15649 `in_process_agent_supports_ust'.
15651 (in_process_agent_supports_ust): Call agent_capability_check.
15652 (clear_installed_tracepoints): Assert that agent supports
15655 2012-03-03 Yao Qi <yao@codesourcery.com>
15657 * linux-low.c (linux_supports_agent): New.
15658 (linux_target_ops): Initialize field `supports_agent' with
15659 linux_supports_agent.
15660 * target.h (struct target_ops) <supports_agent>: New.
15661 (target_supports_agent): New macro.
15662 * server.c (handle_general_set): Handle packet 'QAgent'.
15663 (handle_query): Send `QAgent+'.
15664 * Makefile.in (server.o): Depends on agent.h.
15666 2012-03-03 Yao Qi <yao@codesourcery.com>
15668 * Makefile.in (OBS): Add agent.o.
15669 Add new rule for agent.o.
15670 Track dependence of tracepoint.c on agent.h.
15671 * tracepoint.c (run_inferior_command_1):
15672 (run_inferior_command): Call agent_run_command.
15673 (gdb_ust_connect_sync_socket): Deleted. Move it to
15675 (resume_thread, stop_thread): Likewise.
15676 (gdb_ust_socket_init): Renamed to ...
15677 (gdb_agent_socket_init): ... New.
15678 (gdb_ust_thread): Renamed to ...
15679 (gdb_agent_helper_thread): ... New.
15680 (gdb_ust_init): Move some code to ...
15681 (gdb_agent_init): ... here. New.
15682 [HAVE_UST]: Call gdb_ust_init.
15683 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15684 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15685 * config.in, configure: Regenerated.
15687 2012-03-02 Pedro Alves <palves@redhat.com>
15689 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15690 * linux-low.c (struct simple_pid_list): New.
15691 (stopped_pids): New a struct simple_pid_list pointer.
15692 (add_to_pid_list, pull_pid_from_list): New.
15693 (handle_extended_wait): Don't assume the first signal new children
15694 report is SIGSTOP. Adjust call to pull_pid_from_list.
15695 (linux_wait_for_lwp): Adjust.
15697 2012-03-02 Yao Qi <yao@codesourcery.com>
15699 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15702 2012-03-02 Yao Qi <yao@codesourcery.com>
15704 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15705 `stop_pc' and `tpoint'. Update caller.
15707 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15709 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15710 * linux-low.c (use_linux_regsets): New macro.
15711 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15712 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15713 (linux_register_in_regsets): New function.
15714 (usr_fetch_inferior_registers): Skip registers covered by
15716 (usr_store_inferior_registers): Likewise.
15717 (usr_fetch_inferior_registers): New macro.
15718 (usr_store_inferior_registers): Likewise.
15719 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15720 (linux_store_registers): Likewise.
15721 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15723 (init_registers_mips64_dsp_linux): Likewise.
15724 (init_registers_mips_linux): New macro.
15725 (init_registers_mips_dsp_linux): Likewise.
15726 (mips_dsp_num_regs): Likewise.
15727 (DSP_BASE, DSP_CONTROL): New fallback macros.
15728 (mips_base_regs): New macro.
15729 (mips_regmap): Use it. Fix the size.
15730 (mips_dsp_regmap): New variable.
15731 (mips_dsp_regset_bitmap): Likewise.
15732 (mips_arch_setup): New function.
15733 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15735 (mips_cannot_store_register): Likewise.
15736 (the_low_target): Update .arch_setup, .num_regs and .regmap
15737 initializers. Add .regset_bitmap initializer.
15738 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15740 * linux-bfin-low.c (the_low_target): Likewise.
15741 * linux-cris-low.c (the_low_target): Likewise.
15742 * linux-crisv32-low.c (the_low_target): Likewise.
15743 * linux-ia64-low.c (the_low_target): Likewise.
15744 * linux-m32r-low.c (the_low_target): Likewise.
15745 * linux-m68k-low.c (the_low_target): Likewise.
15746 * linux-ppc-low.c (the_low_target): Likewise.
15747 * linux-s390-low.c (the_low_target): Likewise.
15748 * linux-sh-low.c (the_low_target): Likewise.
15749 * linux-sparc-low.c (the_low_target): Likewise.
15750 * linux-tic6x-low.c (the_low_target): Likewise.
15751 * linux-x86-low.c (the_low_target): Likewise.
15752 * linux-xtensa-low.c (the_low_target): Likewise.
15753 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15754 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15755 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15757 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15758 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15760 2012-02-29 Yao Qi <yao@codesourcery.com>
15761 Pedro Alves <palves@redhat.com>
15763 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15764 `step_over_finished' is true.
15766 2012-02-27 Pedro Alves <palves@redhat.com>
15768 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15769 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15771 2012-02-27 Pedro Alves <palves@redhat.com>
15774 * linux-low.c (pid_is_stopped): New.
15775 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15777 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15779 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15782 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15784 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15786 2012-02-24 Luis Machado <lgustavo@codesourcery>
15788 * server.c (handle_query): Advertise support for target-side
15789 breakpoint condition evaluation.
15790 (process_point_options): New function.
15791 (process_serial_event): When inserting a breakpoint, check for
15792 a target-side condition that should be evaluated.
15794 * mem-break.c: Include regcache.h and ax.h.
15795 (point_cond_list_t): New data structure.
15796 (breakpoint) <cond_list>: New field.
15797 (find_gdb_breakpoint_at): Make non-static.
15798 (delete_gdb_breakpoint_at): Clear any target-side
15800 (clear_gdb_breakpoint_conditions): New function.
15801 (add_condition_to_breakpoint): Likewise.
15802 (add_breakpoint_condition): Likewise.
15803 (gdb_condition_true_at_breakpoint): Likewise.
15804 (gdb_breakpoint_here): Return result directly instead
15805 of going through a local variable.
15807 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15808 (clear_gdb_breakpoint_conditions): Likewise.
15809 (add_breakpoint_condition): Likewise.
15810 (gdb_condition_true_at_breakpoint): Likewise.
15812 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15813 (need_step_over_p): Take target-side breakpoint condition into
15816 2012-02-24 Luis Machado <lgustavo@codesourcery>
15818 * server.h: Include tracepoint.h.
15819 (agent_mem_read, agent_get_trace_state_variable_value,
15820 agent_set_trace_state_variable_value,
15821 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15822 get_set_tsv_func_addr): New prototypes.
15824 * ax.h: New include file.
15825 * ax.c: New source file.
15827 * tracepoint.c: Include ax.h.
15828 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15829 agent_expr, eval_result_type): Move to ax.h.
15830 (parse_agent_expr): Rename to ...
15831 (gdb_parse_agent_expr): ... this, make it non-static and move
15833 (unparse_agent_expr) Rename to ...
15834 (gdb_unparse_agent_expr): ... this, make it non-static and move
15836 (eval_agent_expr): Rename to ...
15837 (eval_tracepoint_agent_expr): ... this.
15838 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15839 forward declarations.
15840 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15841 (agent_get_trace_state_variable_value): New function.
15842 (agent_set_trace_state_variable_value): New function.
15843 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15844 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15845 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15846 (condition_true_at_tracepoint): Likewise.
15847 (parse_agent_expr): Rename to ...
15848 (gdb_parse_agent_expr): ... this and move to ax.c.
15849 (unparse_agent_expr): Rename to ...
15850 (gdb_unparse_agent_expr): ... this and move to ax.c.
15851 (gdb_agent_op_name): Move to ax.c.
15852 (eval_agent_expr): Rename to ...
15853 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15855 (eval_tracepoint_agent_expr): New function.
15856 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15858 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15860 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15861 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15862 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15863 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15864 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15865 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15866 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15867 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15868 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15869 (compile_bytecodes): Remove forward declaration.
15870 (is_goto_target): Move to ax.c.
15871 (compile_bytecodes): Move to ax.c and call
15872 agent_get_trace_state_variable_value (...) and
15873 agent_set_trace_state_variable_value (...).
15875 * Makefile.in: Update ax.c and IPA dependencies.
15877 2012-02-24 Pedro Alves <palves@redhat.com>
15879 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15880 (cmd_bigqtbuffer_circular): ... this. Only handle
15881 'QTBuffer:circular:'.
15882 (handle_tracepoint_general_set): Adjust.
15884 2012-02-16 Yao Qi <yao@codesourcery.com>
15886 * inferiors.c: Move code to ...
15887 * dll.c: .... here. New.
15888 * server.h: Declare clear_dlls.
15889 * Makefile.in (SFILES): Add dll.c.
15893 2012-02-11 Yao Qi <yao@codesourcery.com>
15895 * server.c: (handle_monitor_command): Add a new parameter
15897 (handle_query): Update caller.
15899 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15901 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15902 * configure, config.in: Regenerate.
15903 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15906 2012-02-02 Pedro Alves <palves@redhat.com>
15908 Try SIGKILL first, then PTRACE_KILL.
15909 * linux-low.c (linux_kill_one_lwp): New.
15910 (linux_kill_one_lwp): Rename to ...
15911 (kill_one_lwp_callback): ... this. Use the new
15912 linux_kill_one_lwp.
15914 2012-02-02 Pedro Alves <palves@redhat.com>
15916 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15919 2012-01-27 Pedro Alves <palves@redhat.com>
15921 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15922 (elf_64_file_p): Make static.
15923 (linux_pid_exe_is_elf_64_file): New.
15924 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15925 Delete declarations.
15926 (linux_pid_exe_is_elf_64_file): Declare.
15927 * linux-x86-low.c (x86_arch_setup): Use
15928 linux_pid_exe_is_elf_64_file.
15930 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15932 * linux-low.c (linux_wait_for_event_1): Rename to ...
15933 (linux_wait_for_event): ... here and merge it with former
15934 linux_wait_for_event - new variable wait_ptid, use it.
15935 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15937 2012-01-23 Pedro Alves <palves@redhat.com>
15939 * server.c (main): Avoid yet another case of infinite loop while
15940 detaching/killing after a longjmp.
15942 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15945 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15947 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15949 * hostio.c (handle_readlink): New function.
15950 (handle_vFile): Call it to handle "vFile:readlink" packets.
15952 2012-01-20 Pedro Alves <palves@redhat.com>
15953 Ulrich Weigand <ulrich.weigand@linaro.org>
15955 * server.c (handle_v_requests): Only support vAttach and vRun to
15956 start multiple processes when in extended protocol mode.
15958 2012-01-17 Pedro Alves <palves@redhat.com>
15960 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15961 memalign plus mprotect to allocate the scratch buffer.
15963 2012-01-13 Pedro Alves <palves@redhat.com>
15965 * server.c (attach_inferior): Clear `cont_thread'.
15967 2012-01-13 Pedro Alves <palves@redhat.com>
15969 * server.c (main): Avoid infinite loop while detaching/killing
15972 2012-01-09 Doug Evans <dje@google.com>
15974 * server.c (start_inferior): Set last_ptid in --wrapper case.
15976 2012-01-06 Yao Qi <yao@codesourcery.com>
15978 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15980 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15982 2012-01-04 Yao Qi <yao@codesourcery.com>
15984 * tracepoint.c (cmd_qtdp): Print debug message
15985 for static tracepoint.
15987 2012-01-04 Yao Qi <yao@codesourcery.com>
15989 * tracepoint.c (trace_vdebug): Differentiate debug message
15990 between gdbserver and IPA.
15992 2012-01-03 Yao Qi <yao@codesourcery.com>
15994 * tracepoint.c (tracepoint_was_hit): Don't collect for
15997 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15999 * terminal.h: Reformat copyright header.
16001 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16003 * server.c (gdbserver_version): Update copyright year.
16004 * gdbreplay.c (gdbreplay_version): Likewise.
16006 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16008 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16011 2011-12-18 Hui Zhu <teawater@gmail.com>
16012 * linux-low.c (linux_create_inferior): Save return value to ret.
16014 2011-12-18 Hui Zhu <teawater@gmail.com>
16016 * linux-low.c (linux_create_inferior): Save return value to ret.
16018 2011-12-16 Doug Evans <dje@google.com>
16020 * linux-low.c (linux_create_inferior): If stdio connection,
16021 redirect stdin from /dev/null, stdout to stderr.
16022 * remote-utils.c (remote_is_stdio): New static global.
16023 (remote_connection_is_stdio): New function.
16024 (remote_prepare): Handle stdio connection.
16025 (remote_open): Ditto.
16026 (remote_close): Don't close stdin for stdio connections.
16027 (read_prim,write_prim): New functions. Replace all calls to
16028 read/write to these.
16029 * server.c (main): Watch for "-" argument. Move call to
16030 remote_prepare before start_inferior.
16031 * server.h (STDIO_CONNECTION_NAME): New macro.
16032 (remote_connection_is_stdio): Declare.
16034 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16035 in debugging output.
16037 2011-12-15 Yao Qi <yao@codesourcery.com>
16039 * tracepoint.c: Include sys/syscall.h.
16040 (gdb_ust_thread): Remove preprocessor conditional.
16042 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16044 * linux-low.c (linux_detach_one_lwp): Call
16045 the_low_target.prepare_to_resume before detaching.
16047 2011-12-14 Yao Qi <yao@codesourcery.com>
16049 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16052 2011-12-14 Yao Qi <yao@codesourcery.com>
16054 * i386-low.c (i386_low_stopped_data_address): Initialize local
16055 variable `control'.
16057 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16061 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16062 DR_CONTROL unless necessary. Extend comments.
16063 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16064 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16066 2011-12-13 Yao Qi <yao@codesourcery.com>
16068 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16070 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16072 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16074 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16075 Print new debug message for such case.
16077 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16079 Fix overlapping memcpy.
16080 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16081 the read_inferior_memory transfer.
16082 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16083 write_inferior_memory transfer.
16084 (set_fast_tracepoint_jump): New variable buf. Use it for the
16085 read_inferior_memory and write_inferior_memory transfers.
16086 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16087 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16088 Use it for the write_inferior_memory transfer.
16089 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16092 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16094 * linux-low.c (fetch_register, store_register): Make code
16095 consistent, fix formatting.
16097 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16099 * linux-low.c (usr_store_inferior_registers): Factor out code
16100 to handle individual registers into...
16101 (store_register): ... this new function.
16103 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16105 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16106 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16107 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16108 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16109 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16110 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16111 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16112 (srv_xmlfiles): Add new XML files.
16114 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16116 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16117 (init_registers_s390_linux32v1): Add prototype.
16118 (init_registers_s390_linux32v2): Likewise.
16119 (init_registers_s390_linux64v1): Likewise.
16120 (init_registers_s390_linux64v2): Likewise.
16121 (init_registers_s390x_linux64v1): Likewise.
16122 (init_registers_s390x_linux64v2): Likewise.
16123 (s390_num_regs): Increment to 52.
16124 (s390_regmap): Add orig_r2 register.
16125 (s390_num_regs_3264): Increment to 68.
16126 (s390_regmap_3264): Add orig_r2 register.
16127 (s390_collect_ptrace_register): Handle orig_r2 register.
16128 (s390_supply_ptrace_register): Likewise.
16129 (s390_fill_last_break): New function.
16130 (s390_store_last_break): Likewise.
16131 (s390_fill_system_call): New function.
16132 (s390_store_system_call): Likewise.
16133 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16135 (s390_check_regset): New function.
16136 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16137 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16138 Update target_regsets for available register sets.
16140 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16141 Jan Kratochvil <jan.kratochvil@redhat.com>
16143 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16144 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16146 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16147 * linux-low.h (struct process_info_private): New member r_debug.
16148 * server.c (handle_qxfer_libraries): Call
16149 the_target->qxfer_libraries_svr4.
16150 (handle_qxfer_libraries_svr4): New function.
16151 (qxfer_packets): New entry "libraries-svr4".
16152 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16153 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16154 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16155 PACKET_qXfer_libraries_svr4.
16157 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16159 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16160 PSW address/mask between 8-byte and 16-byte formats.
16161 (s390_supply_ptrace_register): Likewise.
16162 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16163 basic addressing mode bit.
16165 2011-11-24 Stan Shebs <stan@codesourcery.com>
16167 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16169 2011-11-17 Stan Shebs <stan@codesourcery.com>
16171 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16172 (tracing_start_time): New global.
16173 (tracing_stop_time): New global.
16174 (tracing_user_name): New global.
16175 (tracing_notes): New global.
16176 (tracing_stop_note): New global.
16177 (cmd_qtstart): Set traceframe_usage, start_time.
16178 (stop_tracing): Set stop_time.
16179 (cmd_qtstatus): Report additional status.
16180 (cmd_qtp): New function.
16181 (handle_tracepoint_query): Call it.
16182 (cmd_qtnotes): New function.
16183 (handle_tracepoint_general_set): Call it.
16184 (get_timestamp): Rename from tsv_get_timestamp.
16186 2011-11-14 Stan Shebs <stan@codesourcery.com>
16187 Kwok Cheung Yeung <kcy@codesourcery.com>
16189 * linux-x86-low.c (small_jump_insn): New.
16190 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16191 trampoline and error message, build a trampoline and issue a small
16192 jump instruction to it.
16193 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16194 trampoline and error message.
16195 (x86_get_min_fast_tracepoint_insn_len): New.
16196 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16197 * linux-low.h (struct linux_target_ops): Add arguments to
16198 install_fast_tracepoint_jump_pad operation, add new operation.
16199 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16201 (linux_get_min_fast_tracepoint_insn_len): New function.
16202 (linux_target_op): Add new operation.
16203 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16204 (gdb_trampoline_buffer_end): Ditto.
16205 (gdb_trampoline_buffer_error): Ditto.
16206 (struct ipa_sym_addresses): Add fields for new IPA variables.
16207 (symbol_list): Add entries for new IPA variables.
16208 (struct tracepoint): Add fields to hold the address range of the
16209 trampoline used by the tracepoint.
16210 (trampoline_buffer_head): New static variable.
16211 (trampoline_buffer_tail): Ditto.
16212 (claim_trampoline_space): New function.
16213 (have_fast_tracepoint_trampoline_buffer): New function.
16214 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16216 (install_fast_tracepoint): Ditto, also add error buffer argument.
16217 (cmd_qtminftpilen): New function.
16218 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16219 (fast_tracepoint_from_trampoline_address): New function.
16220 (fast_tracepoint_collecting): Handle trampoline as part of jump
16222 (set_trampoline_buffer_space): New function.
16223 (initialize_tracepoint): Initialize new IPA variables.
16224 * target.h (struct target_ops): Add arguments to
16225 install_fast_tracepoint_jump_pad operation, add new
16226 get_min_fast_tracepoint_insn_len operation.
16227 (target_get_min_fast_tracepoint_insn_len): New.
16228 (install_fast_tracepoint_jump_pad): Add arguments.
16229 * server.h (IPA_BUFSIZ): Define.
16230 * linux-i386-ipa.c: Include extra header files.
16231 (initialize_fast_tracepoint_trampoline_buffer): New function.
16232 (initialize_low_tracepoint): Call it.
16233 * server.h (set_trampoline_buffer_space): Declare.
16234 (claim_trampoline_space): Ditto.
16235 (have_fast_tracepoint_trampoline_buffer): Ditto.
16237 2011-11-14 Yao Qi <yao@codesourcery.com>
16239 * server.c (handle_query): Handle InstallInTrace for qSupported.
16240 * tracepoint.c (add_tracepoint): Sort list.
16241 (install_tracepoint, download_tracepoint): New.
16242 (cmd_qtdp): Call them to install and download tracepoints.
16243 (sort_tracepoints): Removed.
16244 (cmd_qtstart): Update.
16246 2011-11-14 Yao Qi <yao@codesourcery.com>
16248 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16249 * mem-break.h: Declare.
16250 * tracepoint.c (cmd_qtstart): Move some code to ...
16251 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16253 (download_tracepoints): Move some code to ...
16254 (download_tracepoint_1): ... here. New.
16256 2011-11-08 Yao Qi <yao@codesourcery.com>
16258 * remote-utils.c (relocate_instruction): A comment fix.
16260 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16262 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16263 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16264 dr_status_mirror and dr_control_mirror from debug_reg_state.
16265 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16266 (i386_initial_stuff): Remove use of deleted globals.
16267 (i386_get_thread_context, i386_set_thread_context,
16268 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16269 from debug_reg_state.
16271 2011-11-05 Yao Qi <yao@codesourcery.com>
16273 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16274 address as TPOINT's.
16276 2011-11-02 Stan Shebs <stan@codesourcery.com>
16278 * tracepoint.c (agent_mem_read_string): New function.
16279 (eval_agent_expr): Call it for tracenz.
16280 * server.c (handle_query): Report support for tracenz.
16282 2011-11-02 Yao Qi <yao@codesourcery.com>
16284 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16286 2011-11-02 Yao Qi <yao@codesourcery.com>
16288 * target.h: Fix a typo in comment.
16290 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16292 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16293 clobber the breakpoints' shadows with fast tracepoint jumps.
16294 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16295 * target.c (write_inferior_memory): Also pass MYADDR down to
16298 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16300 * configure.ac: Check support for personality routine.
16301 * configure: Regenerate.
16302 * config.in: Likewise.
16303 * linux-low.c: Include <sys/personality.h>.
16304 Define ADDR_NO_RANDOMIZE if necessary.
16305 (linux_create_inferior): Disable address space randomization when
16306 forking inferior, if requested.
16307 (linux_supports_disable_randomization): New function.
16308 (linux_target_ops): Install it.
16309 * server.h (disable_randomization): Declare.
16310 * server.c (disable_randomization): New global variable.
16311 (handle_general_set): Handle QDisableRandomization.
16312 (handle_query): Likewise for qSupported.
16313 (main): Support --disable-randomization and --no-disable-randomization
16314 command line arguments.
16315 * target.h (struct target_ops): Add supports_disable_randomization.
16316 (target_supports_disable_randomization): New macro.
16318 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16320 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16322 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16323 [!PT_GETDSBT] (target_loadmap): New definition.
16324 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16325 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16326 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16327 and PT_GETDSBT to LINUX_LOADMAP.
16328 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16329 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16331 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16333 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16334 (arm_linux_hwbp_cap): New static variable.
16335 (arm_linux_get_hwbp_cap): Replace by ...
16336 (arm_linux_init_hwbp_cap): ... this new function.
16337 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16338 (arm_linux_get_hw_watchpoint_count): Likewise.
16339 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16340 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16341 (arm_prepare_to_resume): Use perror_with_name instead of error.
16343 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16345 * linux-arm-low.c: Include <signal.h>.
16346 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16347 (struct arm_linux_hwbp_cap): New data type.
16348 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16349 (struct arm_linux_hw_breakpoint): New data type.
16350 (MAX_BPTS, MAX_WPTS): Define.
16351 (struct arch_process_info, struct arch_lwp_info): New data types.
16352 (arm_linux_get_hwbp_cap): New function.
16353 (arm_linux_get_hw_breakpoint_count): Likewise.
16354 (arm_linux_get_hw_watchpoint_count): Likewise.
16355 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16356 (arm_hwbp_control_initialize): Likewise.
16357 (arm_hwbp_control_is_enabled): Likewise.
16358 (arm_hwbp_control_is_initialized): Likewise.
16359 (arm_hwbp_control_disable): Likewise.
16360 (arm_linux_hw_breakpoint_equal): Likewise.
16361 (arm_linux_hw_point_initialize): Likewise.
16362 (struct update_registers_data): New data structure.
16363 (update_registers_callback: New function.
16364 (arm_insert_point): Likewise.
16365 (arm_remove_point): Likewise.
16366 (arm_stopped_by_watchpoint): Likewise.
16367 (arm_stopped_data_address): Likewise.
16368 (arm_new_process): Likewise.
16369 (arm_new_thread): Likewise.
16370 (arm_prepare_to_resume): Likewise.
16371 (the_low_target): Register arm_insert_point, arm_remove_point,
16372 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16373 arm_new_thread, and arm_prepare_to_resume.
16375 2011-09-15 Stan Shebs <stan@codesourcery.com>
16377 * server.h (struct emit_ops): Add compare-goto fields.
16378 * tracepoint.c (gdb_agent_op_sizes): New table.
16379 (emit_eq_goto): New function.
16380 (emit_ne_goto): New function.
16381 (emit_lt_goto): New function.
16382 (emit_le_goto): New function.
16383 (emit_gt_goto): New function.
16384 (emit_ge_goto): New function.
16385 (is_goto_target): New function.
16386 (compile_bytecodes): Recognize special cases of compare-goto
16387 combinations and call specialized emitters for them.
16388 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16389 (amd64_emit_ne_goto): New function.
16390 (amd64_emit_lt_goto): New function.
16391 (amd64_emit_le_goto): New function.
16392 (amd64_emit_gt_goto): New function.
16393 (amd64_emit_ge_goto): New function.
16394 (amd64_emit_ops): Add the new functions.
16395 (i386_emit_eq_goto): New function.
16396 (i386_emit_ne_goto): New function.
16397 (i386_emit_lt_goto): New function.
16398 (i386_emit_le_goto): New function.
16399 (i386_emit_gt_goto): New function.
16400 (i386_emit_ge_goto): New function.
16401 (i386_emit_ops): Add the new functions.
16403 2011-09-08 Stan Shebs <stan@codesourcery.com>
16405 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16406 (i386_emit_epilogue): Restore %ebx.
16408 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16410 * server.c (step_thread): Remove definition.
16411 (process_serial_event): Don't handle Hs.
16412 * server.h (step_thread): Remove declaration.
16413 * target.c (set_desired_inferior): Remove use of step_thread.
16415 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16417 * linux-low.c: Include linux-procfs.h.
16418 (linux_attach_lwp_1): Update comments.
16419 (linux_attach): Scan for existing threads when attaching to a
16420 process that is the tgid.
16421 * Makefile.in: Update dependencies.
16423 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16425 * configure.srv: Add linux-procfs.o dependencies.
16427 2011-08-14 Yao Qi <yao@codesourcery.com>
16429 * target.h (struct target_ops): Fix indent.
16430 * win32-low.c (win32_target_ops): Fix comment.
16432 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16433 Yao Qi <yao@codesourcery.com>
16435 * Makefile.in (clean): Remove tic6x-*.c files.
16436 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16437 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16438 (tic6x-c64xp-linux.c): Likewise.
16439 * configure.srv: Add support for tic6x-*-uclinux.
16440 * linux-tic6x-low.c: New.
16441 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16443 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16444 Yao Qi <yao@codesourcery.com>
16446 * target.h (struct target_ops): Add read_loadmap.
16447 * linux-low.c (struct target_loadseg): New type.
16448 (struct target_loadmap): New type.
16449 (linux_read_loadmap): New function.
16450 (linux_target_ops): Add linux_read_loadmap.
16451 * server.c (handle_query): Support qXfer:fdpic:read packet.
16452 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16455 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16457 * win32-low.c: Include <stdint.h>.
16459 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16461 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16462 to the inferior here.
16463 (i386_remove_aligned_watchpoint): Ditto.
16464 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16465 fit part of the watchpoint in the debug registers.
16466 (i386_update_inferior_debug_regs): New.
16467 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16468 registers, and only update the inferior on success.
16469 (i386_low_remove_watchpoint): Ditto.
16471 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16473 * linux-low.c (compare_ints, unique, list_threads, show_process,
16474 linux_core_of_thread): Delete.
16475 (linux_target_ops): Change linux_core_of_thread to
16476 linux_common_core_of_thread.
16477 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16478 * utils.c (malloc_failure): Change type of argument.
16479 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16480 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16481 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16482 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16483 (IPA_OBJS): Add common-utils-ipa.o.
16484 (ptid_h, linux_osdata_h): New macros.
16485 (server_h): Add common/common-utils.h, common/xml-utils.h,
16486 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16488 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16489 ptid.o, buffer.o): New rules.
16490 (linux-low.o): Add common/linux-osdata.h as a dependency.
16491 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16492 * configure.ac: Add AC_HEADER_DIRENT check.
16493 * config.in: Regenerate.
16494 * configure: Regenerate.
16495 * remote-utils.c (xml_escape_text): Delete.
16496 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16497 buffer_xml_printf): Move to common/buffer.c.
16498 * server.c (main): Remove call to initialize_inferiors.
16499 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16500 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16501 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16502 internal_error, gdb_assert, gdb_assert_fail): Delete.
16503 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16504 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16506 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16507 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16508 initialize_inferiors): Delete.
16510 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16512 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16515 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16517 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16519 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16521 2011-05-26 Yao Qi <yao@codesourcery.com>
16523 * Makefile.in (thread-db.o): Track dependence to
16524 common/gdb_thread_db.h.
16525 * thread-db.c: include gdb_thread_db.h from right place.
16527 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16529 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16530 __FILE__ and __LINE__ to internal_error.
16532 2011-05-13 Doug Evans <dje@google.com>
16534 * thread-db.c (try_thread_db_load_from_sdir): New function.
16535 (try_thread_db_load_from_dir): New function.
16536 (thread_db_load_search): Handle $sdir, ignore $pdir.
16537 Remove trying of system directories if search of
16538 libthread-db-search-path fails, that is now done via $sdir.
16540 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16542 * server.c (handle_query): Add EnableDisableTracepoints to the list
16543 of supported features.
16544 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16546 (cmd_qtenable_disable): New.
16547 (cmd_qtstart): Install tracepoints even if disabled.
16548 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16549 receiving a QTEnable or QTDisable packet.
16550 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16551 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16553 (gdb_probe): Skip data collection if static tracepoint is disabled.
16555 2011-05-10 Doug Evans <dje@google.com>
16557 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16559 2011-05-04 Doug Evans <dje@google.com>
16561 * linux-low.c (linux_join): Skip process lookup.
16562 * spu-low.c (spu_join): Ditto.
16563 * server.c (join_inferiors_callback): Delete.
16564 (process_serial_event): For 'D' packet (detach) call join_inferior
16567 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16569 * README: Don't mention xscale*-*-linux*.
16570 * configure.srv (xscale*-*-linux*): Don't handle target.
16572 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16574 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16576 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16577 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16578 (i386_emit_void_call_2): Likewise.
16580 2011-04-26 Yao Qi <yao@codesourcery.com>
16582 * linux-low.c: Move common macros to linux-ptrace.h.
16583 Include linux-ptrace.h.
16584 * Makefile.in (linux_ptrace_h): New.
16585 (linux-low.o): Depends on linux-ptrace.h.
16587 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16589 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16590 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16591 (remote_prepare): New function with most of the TCP code from ...
16592 (remote_open): ... here. Detect PORT here unconditionally. Move also
16593 setting transport_is_reliable.
16594 * server.c (run_once): New variable.
16595 (gdbserver_usage): Document it.
16596 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16597 the first run if RUN_ONCE.
16598 * server.h (run_once, remote_prepare): New declarations.
16600 2011-04-19 Tom Tromey <tromey@redhat.com>
16602 * win32-low.c (handle_load_dll): Remove duplicate "the".
16604 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16606 Remove support for old Cygwin 1.5 versions.
16607 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16608 function to avoid warning.
16609 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16612 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16614 * gdbserver/server.h (Macro _): Define it if not available.
16616 2011-03-14 Michael Snyder <msnyder@vmware.com>
16618 * hostio.c (handle_close): Remove unnecessary null test.
16620 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16622 * Makefile.in (maintainer-clean realclean distclean): Remove
16623 "make ... subdir_do" command.
16625 2011-03-10 Michael Snyder <msnyder@vmware.com>
16627 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16629 * server.c (handle_v_run): Free alloced buffer on early return.
16631 2011-03-09 Yao Qi <yao@codesourcery.com>
16634 2011-03-04 Yao Qi <yao@codesourcery.com>
16636 * Makefile.in: Remove GNU make feature --directory.
16638 2011-03-05 Yao Qi <yao@codesourcery.com>
16640 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16641 (subdir_do): New make target. Copied from gdb/Makefile.
16642 (maintainer-clean, realclean, distclean, clean): Call corresponding
16643 make targets in common/Makefile.
16645 2011-02-11 Yao Qi <yao@codesourcery.com>
16647 * configure.ac: Call AC_PROG_RANLIB.
16648 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16649 * configure: Regenerate.
16651 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16653 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16655 2011-03-06 Yao Qi <yao@codesourcery.com>
16657 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
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-03-04 Yao Qi <yao@codesourcery.com>
16668 * Makefile.in: Remove GNU make feature --directory.
16670 2011-03-04 Michael Snyder <msnyder@vmware.com>
16672 * server.c (queue_stop_reply): Call xmalloc not malloc.
16674 2011-03-02 Michael Snyder <msnyder@vmware.com>
16676 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16678 2011-02-28 Michael Snyder <msnyder@vmware.com>
16680 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16681 (cmd_qtframe): Ditto.
16682 (cmd_qtbuffer): Ditto.
16683 (cmd_bigqtbuffer): Ditto.
16685 * utils.c (decimal2str): Initialize 'width' to nine, then
16686 don't mess with it.
16688 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16690 * hostio.c (require_data): Free *data, not data.
16692 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16694 * hostio.c (require_data): Use free, not xfree.
16696 2011-02-27 Michael Snyder <msnyder@vmware.com>
16698 * server.c (handle_query): Discard unused value.
16700 * hostio.c (require_data): Free malloc memory before returning
16703 2011-02-26 Michael Snyder <msnyder@vmware.com>
16705 * linux-low.c (list_threads): Call closedir for dirent.
16707 2011-02-27 Michael Snyder <msnyder@vmware.com>
16709 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16710 a case statement falls through.
16712 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16714 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16717 2011-02-26 Michael Snyder <msnyder@vmware.com>
16719 * utils.c (decimal2str): Eliminate dead code and dead param.
16720 (pulongest): Drop dead param from call to decimal2str.
16723 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16725 Revert the following patch (not approved yet):
16726 2011-02-21 Hui Zhu <teawater@gmail.com>
16727 * tracepoint.c (tp_printf): New function.
16728 (eval_agent_expr): Handle gdb_agent_op_printf.
16730 2011-02-21 Hui Zhu <teawater@gmail.com>
16732 * tracepoint.c (tp_printf): New function.
16733 (eval_agent_expr): Handle gdb_agent_op_printf.
16735 2011-02-18 Tom Tromey <tromey@redhat.com>
16737 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16738 (tracepoint.o): Likewise.
16739 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16740 (gdb_agent_op_names): Likewise.
16742 2011-02-18 Tom Tromey <tromey@redhat.com>
16744 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16745 gdb_agent_op_rot>: New constants.
16746 (gdb_agent_op_names): Add pick and roll.
16747 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16750 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16752 * aclocal.m4: Regenerated with aclocal-1.11.1.
16754 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16756 * server.c (handle_qxfer_traceframe_info): New.
16757 (qxfer_packets): Register "traceframe-info".
16758 (handle_query): Report support for qXfer:traceframe-info:read+.
16759 * tracepoint.c (match_blocktype): New.
16760 (traceframe_find_block_type): Rename to ...
16761 (traceframe_walk_blocks): ... this. Add callback filter argument,
16763 (traceframe_find_block_type): New, reimplemented on top of
16764 traceframe_walk_blocks.
16765 (build_traceframe_info_xml): New.
16766 (traceframe_read_info): New.
16767 * server.h (traceframe_read_info): Declare.
16769 2011-02-11 Yao Qi <yao@codesourcery.com>
16771 * configure.ac: Call AC_PROG_RANLIB.
16772 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16773 * configure: Regenerate.
16775 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16777 * server.c (gdb_read_memory): Change return semantics to allow
16779 (handle_search_memory_1): Adjust.
16780 (process_serial_event) <'m' packet>: Handle partial transfers.
16781 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16783 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16785 * regcache.c (init_register_cache): Initialize
16786 regcache->register_status.
16787 (free_register_cache): Release regcache->register_status.
16788 (regcache_cpy): Copy register_status.
16789 (registers_to_string): Print 'x's for unavailable registers.
16790 (supply_register): Mark the register's status valid or
16791 unavailable, depending on whether a buffer was passed in or not.
16792 (supply_register_zeroed): New.
16793 (supply_regblock): Mark the registers' status valid or
16794 unavailable, depending on whether a buffer was passed in or not.
16795 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16796 (struct regcache): New `register_status' field.
16797 (supply_register_zeroed): Declare.
16798 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16799 supply_register_zeroed, rather than passing a NULL buffer to
16801 * tracepoint.c (fetch_traceframe_registers): Update comment.
16803 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16805 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16808 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16810 * server.h (decode_xfer_write): Change prototype.
16811 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16812 and don't extract the annex here.
16813 * server.c (decode_xfer_read): Remove `annex' parameter,
16814 and don't extract the annex here.
16815 (decode_xfer): New.
16816 (struct qxfer): New.
16817 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16818 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16819 (handle_qxfer_statictrace): New functions, abstracted out from
16820 handle_query, and made to use the struct qxfer interface.
16821 (handle_threads_qxfer_proper): Rename to ...
16822 (handle_qxfer_threads_proper): ... this.
16823 (handle_threads_qxfer): Rename to ...
16824 (handle_qxfer_threads): ... this. Adjust.
16825 (qxfer_packets): New array.
16826 (handle_qxfer): New function.
16827 (handle_query): Use handle_qxfer.
16829 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16831 * gdbreplay.c: Shorten lines of >= 80 columns.
16832 * linux-low.c: Ditto.
16833 * linux-ppc-low.c: Ditto.
16834 * linux-s390-low.c: Ditto.
16835 * linux-sparc-low.c: Ditto.
16836 * linux-x86-low.c: Ditto.
16837 * linux-xtensa-low.c: Ditto.
16838 * mem-break.c: Ditto.
16839 * nto-low.c: Ditto.
16840 * regcache.h: Ditto.
16841 * remote-utils.c: Ditto.
16844 * thread-db.c: Ditto.
16845 * tracepoint.c: Ditto.
16847 * win32-low.h: Ditto.
16849 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16851 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16854 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16856 * server.c (gdbserver_version): Update copyright year in version
16858 * gdbreplay.c (gdbreplay_version): Ditto.
16860 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16862 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16863 * linux-bfin-low.c: New file.
16864 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16865 PT_DATA_ADDR for BFIN targets.
16866 * Makefile.in (SFILES): Add linux-bfin-low.c.
16867 (clean): Remove reg-bfin.c.
16868 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16869 * README: Mention supported Blackfin targets.
16871 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16873 * .gitignore: New file.
16875 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16877 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16879 2010-10-22 Jie Zhang <jie@codesourcery.com>
16881 * Makefile.in: Add FLAGS_TO_PASS variable.
16882 (install): Remove dependency of install-only and recursively
16883 invoke make for install-only.
16885 2010-10-04 Doug Evans <dje@google.com>
16887 * Makefile.in (uninstall): Use $(DESTDIR).
16889 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16893 * linux-x86-low.c (compat_siginfo_from_siginfo)
16894 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16895 si_code is < 0. Check for si_code == SI_TIMER before checking for
16898 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16900 * lynx-i386-low.c: New file.
16901 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16903 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16905 * lynx-low.c (ptrace_request_to_str): Remove handling for
16906 request values that have been removed in LynxOS 5.x.
16908 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16910 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16913 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16915 * configure.ac: Add --enable-inprocess-agent option.
16916 * configure: Rebuilt.
16918 2010-09-06 Yao Qi <yao@codesourcery.com>
16920 * linux-low.c (linux_kill): Remove unused variable.
16921 (linux_stabilize_threads): Likewise.
16922 * server.c (start_inferior): Likewise.
16923 (queue_stop_reply_callback): Likewise.
16924 * tracepoint.c (do_action_at_tracepoint): Likewise.
16926 2010-09-06 Yao Qi <yao@codesourcery.com>
16928 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16931 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16933 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16935 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16937 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16940 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16942 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16943 gdbserver/lynx-ppc-low.c: New files.
16944 * Makefile.in (lynx_low_h): New variable.
16945 (lynx-low.o, lynx-ppc-low.o): New rules.
16946 * configure.ac: On LynxOS, link with -lnetinet.
16947 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16948 * configure: regenerate.
16950 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16952 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16953 * configure.ac: Add check for vasprintf and vsnprintf.
16954 * configure, config.in: Regenerate.
16955 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16957 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16959 * gdbreplay.c: Move include of alloca.h up, next to include of
16961 * server.h: Add include of malloc.h.
16962 * mem-break.c: Remove include of malloc.h.
16963 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16965 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16967 * Makefile.in (memmem.o): Build with -Wno-error.
16969 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16971 * utils.c (xsnprintf): Make non-static.
16972 * server.h: Add xsnprintf declaration.
16973 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16974 replace calls to snprintf by calls to xsnprintf throughout.
16976 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16978 * configure.ac: Add configure check for alloca.
16979 * configure, config.in: Regenerate.
16980 * server.h: Include alloca.h if it exists.
16981 * gdbreplay.c: Include alloca.h if it exists.
16983 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16985 * linux-low.c (__SIGRTMIN): Define if not already defined.
16986 (linux_create_inferior): Check for __ANDROID__ rather than
16988 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16989 are already deferred.
16990 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16991 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16992 stopped and already has a pending signal to report.
16993 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16994 a pending signal to report or is moving out of a jump pad.
16995 (linux_init_signals): Check for __ANDROID__ rather than
16998 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17000 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17001 debug_threads check. Avoid a linear search when not doing debug
17004 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17006 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17007 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17008 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17009 (process_event): Change local fd's type to gdb_fildes_t.
17010 (create_file_handler): Adjust prototype.
17011 (delete_file_handler): Adjust prototype.
17012 (handle_file_event): Adjust prototype. Use pfildes.
17013 (create_file_event): Adjsut prototype.
17014 * remote-utils.c (remote_desc, listen_desc): Change type to
17016 * server.h: New gdb_fildes_t typedef.
17017 [USE_WIN32API]: Include winsock2.h.
17018 (delete_file_handler, add_file_handler): Adjust prototypes.
17019 (pfildes): Declare.
17020 * utils.c (pfildes): New.
17022 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17024 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17025 * configure: Regenerate.
17027 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17029 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17030 (linux_done_accessing_memory): ... this.
17031 (linux_target_ops): Adjust.
17032 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17033 * nto-low.c (nto_target_ops): Adjust comment.
17034 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17035 * spu-low.c (spu_target_ops): Adjust comment.
17036 * target.h (target_ops): Rename unprepare_to_access_memory field
17037 to done_accessing_memory.
17038 (unprepare_to_access_memory): Rename to ...
17039 (done_accessing_memory): ... this.
17041 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17043 * linux-low.c (linux_prepare_to_access_memory): New.
17044 (linux_unprepare_to_access_memory): New.
17045 (linux_target_ops): Install them.
17046 * server.c (read_memory): Rename to ...
17047 (gdb_read_memory): ... this. Use
17048 prepare_to_access_memory/prepare_to_access_memory.
17049 (write_memory): Rename to ...
17050 (gdb_write_memory): ... this. Use
17051 prepare_to_access_memory/prepare_to_access_memory.
17052 (handle_search_memory_1): Adjust.
17053 (process_serial_event): Adjust.
17054 * target.h (struct target_ops): New fields
17055 prepare_to_access_memory and unprepare_to_access_memory.
17056 (prepare_to_access_memory, unprepare_to_access_memory): New.
17057 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17058 prepare_to_access_memory/prepare_to_access_memory.
17059 * nto-low.c (nto_target_ops): Adjust.
17060 * spu-low.c (spu_target_ops): Adjust.
17061 * win32-low.c (win32_target_ops): Adjust.
17063 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17065 * Makefile.in (WARN_CFLAGS): Get it from configure.
17066 (WERROR_CFLAGS): New.
17067 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17068 * configure.ac: Introduce --enable-werror, which adds -Werror to
17069 the compiler command line. Enabled by default. Disable with
17070 --disable-werror. Add -Wdeclaration-after-statement
17071 Wpointer-arith and -Wformat-nonliteral to warning flags.
17072 * configure: Regenerate.
17074 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17076 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17078 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17080 * gdbreplay.c (remote_error): New.
17082 (expect): Use gdbchar. Check for error reading from GDB.
17083 Clarify sync error output.
17084 (play): Check for errors writing to GDB.
17085 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17086 * remote-utils.c (getpkt): Check for errors writing to the remote
17089 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17091 * linux-low.c (linux_wait_1): Move non-debugging code out of
17092 `debug_threads' control.
17094 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17096 * linux-low.c (linux_wait_1): Don't set last_status here.
17097 * server.c (push_event, queue_stop_reply_callback): Assert we're
17098 not pushing a TARGET_WAITKIND_IGNORE event.
17099 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17100 (myresume, handle_target_event): Set the thread's last_resume_kind
17101 and last_status from the target returned status.
17103 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17107 * linux-x86-low.c (update_debug_registers_callback): New.
17108 (i386_dr_low_set_addr): Use it.
17109 (i386_dr_low_get_addr): New.
17110 (i386_dr_low_set_control): Use update_debug_registers_callback.
17111 (i386_dr_low_get_control): New.
17112 (i386_dr_low_get_status): Adjust.
17113 * linux-low.c (linux_stop_lwp): New.
17114 * linux-low.h (linux_stop_lwp): Declare.
17116 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17117 argument instead of a i386_debug_reg_state.
17118 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17119 a i386_debug_reg_state.
17120 (i386_insert_aligned_watchpoint): Adjust.
17121 (i386_remove_aligned_watchpoint): Adjust.
17122 (i386_low_stopped_data_address): Read the debug registers from the
17123 inferior instead of from the mirrors.
17124 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17125 (i386_dr_low_get_addr): Declare.
17126 (i386_dr_low_get_control): Declare.
17127 (i386_dr_low_get_status): Change prototype.
17129 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17130 (i386_dr_low_get_addr): New.
17131 (i386_dr_low_get_control): New.
17132 (i386_dr_low_get_status): Adjust prototype. Return
17134 (i386_initial_stuff): Clear dr_status_mirror and
17136 (i386_get_thread_context): Adjust.
17137 (i386_set_thread_context): Adjust.
17138 (i386_thread_added): Adjust.
17140 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17142 * linux-low.h (linux_thread_area): Delete declaration.
17144 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17146 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17147 after its termination.
17149 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17151 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17152 (gdb_wants_all_stopped): Delete.
17153 (linux_wait_1): Don't call them.
17154 * server.c (handle_v_cont): Tag all threads as want-stopped.
17155 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17156 stopped as "client-wants-stopped".
17158 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17160 * Makefile.in (signals_h): New.
17161 (server_h): Depend on it.
17162 (server.o): Don't depend on $(signals_def).
17163 (signals.o): Depend on $(signals_def).
17165 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17167 * Makefile.in (signals_def): New.
17168 (server_h): Append include/gdb/signals.h and signals_def.
17169 (server.o): Append signals_def.
17171 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17173 * server.c (handle_target_event): Use target_signal_to_host for
17174 resume_info.sig initialization.
17175 * target.h (struct thread_resume) <sig>: New comment.
17177 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17179 * server.c (handle_query): strcpy() the returned string from paddress()
17180 instead of sprintf().
17181 * utils.c (paddress): Return phex_nz().
17183 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17185 * server.c (handle_v_cont): Call mourn_inferior if process
17187 (myresume): Likewise.
17189 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17191 Static tracepoints, and integration with UST.
17193 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17194 * mem-break.c (uninsert_all_breakpoints)
17195 (reinsert_all_breakpoints): New.
17196 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17197 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17198 (gdb_agent_ust_loaded, helper_thread_id)
17199 (gdb_agent_helper_thread_id): New macros.
17200 (struct ipa_sym_addresses): Add addr_ust_loaded,
17201 addr_helper_thread_id, addr_cmd_buf.
17202 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17203 (in_process_agent_loaded_ust): New.
17204 (write_e_ust_not_loaded): New.
17205 (maybe_write_ipa_ust_not_loaded): New.
17206 (struct collect_static_trace_data_action): New.
17207 (enum tracepoint_type) <static_tracepoint>: New.
17208 (struct tracepoint) <handle>: Mention static tracepoints.
17209 (struct static_tracepoint_ctx): New.
17210 (CMD_BUF_SIZE): New.
17211 (add_tracepoint_action): Handle static tracepoint actions.
17212 (unprobe_marker_at): New.
17213 (clear_installed_tracepoints): Handle static tracepoints.
17214 (cmd_qtdp): Handle static tracepoints.
17215 (probe_marker_at): New.
17216 (cmd_qtstart): Handle static tracepoints.
17217 (response_tracepoint): Handle static tracepoints.
17218 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17219 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17220 (get_context_regcache): Handle static tracepoints.
17221 (do_action_at_tracepoint): Handle static tracepoint actions.
17222 (traceframe_find_block_type): Handle static trace data blocks.
17223 (traceframe_read_sdata): New.
17224 (download_tracepoints): Download static tracepoint actions.
17225 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17226 (GDB_PROBE_NAME): New.
17228 (GET_UST_SYM): New.
17231 (ust_marker_to_static_tracepoint): New.
17233 (collect_ust_data_at_tracepoint): New.
17234 (gdb_ust_probe): New.
17235 (UNIX_PATH_MAX, SOCK_DIR): New.
17236 (gdb_ust_connect_sync_socket): New.
17237 (resume_thread, stop_thread): New.
17238 (run_inferior_command): New.
17239 (init_named_socket): New.
17240 (gdb_ust_socket_init): New.
17241 (cstr_to_hexstr): New.
17243 (first_marker, next_marker): New.
17244 (response_ust_marker): New.
17245 (cmd_qtfstm, cmd_qtsstm): New.
17246 (unprobe_marker_at, probe_marker_at): New.
17247 (cmd_qtstmat, gdb_ust_thread): New.
17248 (gdb_ust_init): New.
17249 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17250 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17251 (ST_REGENTRY): New.
17252 (x86_64_st_collect_regmap): New.
17253 (X86_64_NUM_ST_COLLECT_GREGS): New.
17254 (AMD64_RIP_REGNUM): New.
17255 (supply_static_tracepoint_registers): New.
17256 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17257 (ST_REGENTRY): New.
17258 (i386_st_collect_regmap): New.
17259 (i386_NUM_ST_COLLECT_GREGS): New.
17260 (supply_static_tracepoint_registers): New.
17261 * server.c (handle_query): Handle qXfer:statictrace:read.
17262 <qSupported>: Report support for StaticTracepoints, and
17263 qXfer:statictrace:read features.
17264 * server.h (traceframe_read_sdata)
17265 (supply_static_tracepoint_registers): Declare.
17266 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17267 (unpack_varlen_hex): Include in IPA build.
17268 * Makefile.in (ustlibs, ustinc): New.
17269 (IPA_OBJS): Add remote-utils-ipa.o.
17270 ($(IPA_LIB)): Link -ldl and -lpthread.
17272 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17273 * config.in, configure: Regenerate.
17275 2010-06-20 Ian Lance Taylor <iant@google.com>
17276 Pedro Alves <pedro@codesourcery.com>
17278 * linux-x86-low.c (always_true): Delete.
17279 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17280 trying to fool the compiler with always_true.
17282 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17284 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17285 conditions in gdbserver.
17287 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17289 * spu-low.c (spu_read_memory): Wrap around local store limit.
17290 (spu_write_memory): Likewise.
17292 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17294 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17295 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17297 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17299 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17300 uses with LONGEST uses.
17302 2010-06-14 Stan Shebs <stan@codesourcery.com>
17303 Pedro Alves <pedro@codesourcery.com>
17307 * linux-x86-low.c: Include limits.h.
17309 (always_true): New.
17312 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17313 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17314 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17315 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17316 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17317 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17318 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17319 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17320 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17321 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17322 (amd64_emit_void_call_2): New.
17323 (amd64_emit_ops): New.
17324 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17325 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17326 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17327 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17328 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17329 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17330 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17331 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17332 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17333 (i386_emit_stack_adjust, i386_emit_int_call_1)
17334 (i386_emit_void_call_2): New.
17335 (i386_emit_ops): New.
17336 (x86_emit_ops): New.
17337 (the_low_target): Install x86_emit_ops.
17338 * server.h (struct emit_ops): New.
17339 (get_raw_reg_func_addr): Declare.
17340 (current_insn_ptr, emit_error): Declare.
17341 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17342 (set_trace_state_variable_value): New defines.
17343 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17344 addr_get_trace_state_variable_value and
17345 addr_set_trace_state_variable_value.
17346 (symbol_list): New fields for get_raw_reg,
17347 get_trace_state_variable_value and set_trace_state_variable_value.
17348 (condfn): New typedef.
17349 (struct tracepoint): New field `compiled_cond'.
17350 (do_action_at_tracepoint): Clear compiled_cond.
17351 (get_trace_state_variable_value, set_trace_state_variable_value):
17353 (condition_true_at_tracepoint): If there's a compiled condition,
17355 (current_insn_ptr, emit_error): New globals.
17356 (struct bytecode_address): New.
17357 (get_raw_reg_func_addr): New.
17358 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17359 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17360 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17361 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17362 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17363 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17364 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17365 (compile_tracepoint_condition, compile_bytecodes): New.
17366 * target.h (emit_ops): Forward declare.
17367 (struct target_ops): New field emit_ops.
17368 (target_emit_ops): New.
17369 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17370 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17371 * linux-low.c (linux_emit_ops): New.
17372 (linux_target_ops): Install it.
17373 * linux-low.h (struct linux_target_ops): New field emit_ops.
17375 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17377 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17378 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17380 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17381 Stan Shebs <stan@codesourcery.com>
17383 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17384 (all): Depend on $(extra_libraries).
17385 (install-only): Install the IPA.
17386 (IPA_OBJS, IPA_LIB): New.
17387 (clean): Remove the IPA lib.
17388 (IPAGENT_CFLAGS): New.
17389 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17390 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17391 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17392 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17393 * configure.ac: Check for atomic builtins support in the compiler.
17394 (IPA_DEPFILES, extra_libraries): Define.
17395 * configure.srv (ipa_obj): Add description.
17396 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17397 (i[34567]86-*-linux*): Set ipa_obj.
17398 (x86_64-*-linux*): Set ipa_obj.
17399 * linux-low.c (stabilizing_threads): New.
17400 (supports_fast_tracepoints): New.
17401 (linux_detach): Stabilize threads before detaching.
17402 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17403 the lwp is either not stabilizing, or is moving out of a jump pad.
17404 (linux_fast_tracepoint_collecting): New.
17405 (maybe_move_out_of_jump_pad): New.
17406 (enqueue_one_deferred_signal): New.
17407 (dequeue_one_deferred_signal): New.
17408 (linux_wait_for_event_1): If moving out of a jump pad, defer
17409 pending signals to later.
17410 (linux_stabilize_threads): New.
17411 (linux_wait_1): Check if threads need moving out of jump pads, and
17413 (stuck_in_jump_pad_callback): New.
17414 (move_out_of_jump_pad_callback): New.
17415 (lwp_running): New.
17416 (linux_resume_one_lwp): Handle moving out of jump pads.
17417 (linux_set_resume_request): Dequeue deferred signals.
17418 (need_step_over_p): Also step over fast tracepoint jumps.
17419 (start_step_over): Also uninsert fast tracepoint jumps.
17420 (finish_step_over): Also reinsert fast tracepoint jumps.
17421 (linux_install_fast_tracepoint_jump): New.
17422 (linux_target_ops): Install linux_stabilize_threads and
17423 linux_install_fast_tracepoint_jump_pad.
17424 * linux-low.h (linux_target_ops) <get_thread_area,
17425 install_fast_tracepoint_jump_pad>: New fields.
17426 (struct lwp_info) <collecting_fast_tracepoint,
17427 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17428 (linux_get_thread_area): Declare.
17429 * linux-x86-low.c (jump_insn): New.
17430 (x86_get_thread_area): New.
17431 (append_insns): New.
17432 (push_opcode): New.
17433 (amd64_install_fast_tracepoint_jump_pad): New.
17434 (i386_install_fast_tracepoint_jump_pad): New.
17435 (x86_install_fast_tracepoint_jump_pad): New.
17436 (the_low_target): Install x86_get_thread_area and
17437 x86_install_fast_tracepoint_jump_pad.
17438 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17439 (struct fast_tracepoint_jump): New.
17440 (fast_tracepoint_jump_insn): New.
17441 (fast_tracepoint_jump_shadow): New.
17442 (find_fast_tracepoint_jump_at): New.
17443 (fast_tracepoint_jump_here): New.
17444 (delete_fast_tracepoint_jump): New.
17445 (set_fast_tracepoint_jump): New.
17446 (uninsert_fast_tracepoint_jumps_at): New.
17447 (reinsert_fast_tracepoint_jumps_at): New.
17448 (set_breakpoint_at): Use write_inferior_memory.
17449 (uninsert_raw_breakpoint): Use write_inferior_memory.
17450 (check_mem_read): Mask out fast tracepoint jumps.
17451 (check_mem_write): Mask out fast tracepoint jumps.
17452 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17453 (set_fast_tracepoint_jump): Declare.
17454 (delete_fast_tracepoint_jump)
17455 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17456 (reinsert_fast_tracepoint_jumps_at): Declare.
17457 * regcache.c: Don't compile many functions when building the
17458 in-process agent library.
17459 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17460 the register buffer in the heap.
17461 (free_register_cache): If the register buffer isn't owned by the
17462 regcache, don't free it.
17463 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17464 pre-existing register caches.
17465 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17467 (convert_ascii_to_int): : Constify `from' parameter type.
17468 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17469 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17470 the needed buffer in-place.
17471 (relocate_instruction): New.
17472 * server.c (handle_query) <qSymbols>: If the target supports
17473 tracepoints, give it a chance of looking up symbols. Report
17474 support for fast tracepoints.
17475 (handle_status): Stabilize threads.
17476 (process_serial_event): Adjust.
17477 * server.h (struct fast_tracepoint_jump): Forward declare.
17478 (struct process_info) <fast_tracepoint_jumps>: New field.
17479 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17480 (decode_X_packet, decode_M_packet): Adjust.
17481 (relocate_instruction): Declare.
17482 (in_process_agent_loaded): Declare.
17483 (tracepoint_look_up_symbols): Declare.
17484 (struct fast_tpoint_collect_status): Declare.
17485 (fast_tracepoint_collecting): Declare.
17486 (force_unlock_trace_buffer): Declare.
17487 (handle_tracepoint_bkpts): Declare.
17488 (initialize_low_tracepoint)
17489 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17490 * target.h (struct target_ops) <stabilize_threads,
17491 install_fast_tracepoint_jump_pad>: New fields.
17492 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17493 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17494 [HAVE_STDINT_H]: Include stdint.h.
17495 (trace_debug_1): Rename to ...
17496 (trace_vdebug): ... this.
17497 (trace_debug): Rename to ...
17498 (trace_debug_1): ... this. Add `level' parameter.
17499 (trace_debug): New.
17500 (ATTR_USED, ATTR_NOINLINE): New.
17501 (IP_AGENT_EXPORT): New.
17502 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17503 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17504 (about_to_request_buffer_space, trace_buffer_is_full)
17505 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17506 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17507 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17508 (traceframe_write_count, traceframes_created)
17509 (trace_state_variables)
17510 New renaming defines.
17511 (struct ipa_sym_addresses): New.
17512 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17513 (symbol_list): New.
17514 (ipa_sym_addrs): New.
17515 (all_tracepoint_symbols_looked_up): New.
17516 (in_process_agent_loaded): New.
17517 (write_e_ipa_not_loaded): New.
17518 (maybe_write_ipa_not_loaded): New.
17519 (tracepoint_look_up_symbols): New.
17520 (debug_threads) [IN_PROCESS_AGENT]: New.
17521 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17522 (UNKNOWN_SIDE_EFFECTS): New.
17523 (stop_tracing): New.
17524 (flush_trace_buffer): New.
17525 (stop_tracing_bkpt): New.
17526 (flush_trace_buffer_bkpt): New.
17527 (read_inferior_integer): New.
17528 (read_inferior_uinteger): New.
17529 (read_inferior_data_pointer): New.
17530 (write_inferior_data_pointer): New.
17531 (write_inferior_integer): New.
17532 (write_inferior_uinteger): New.
17533 (struct collect_static_trace_data_action): Delete.
17534 (enum tracepoint_type): New.
17535 (struct tracepoint) <type>: New field `type'.
17536 <actions_str, step_actions, step_actions_str>: Only include in
17538 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17539 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17540 (tracepoints): Use IP_AGENT_EXPORT.
17541 (last_tracepoint): Don't include in the IPA.
17542 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17543 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17544 (alloced_trace_state_variables): New.
17545 (trace_state_variables): Use IP_AGENT_EXPORT.
17546 (traceframe_t): Delete unused variable.
17547 (circular_trace_buffer): Don't include in the IPA.
17548 (trace_buffer_start): Delete.
17549 (struct trace_buffer_control): New.
17550 (trace_buffer_free): Delete.
17551 (struct ipa_trace_buffer_control): New.
17552 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17553 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17555 (trace_buffer_ctrl): New.
17556 (TRACE_BUFFER_CTRL_CURR): New.
17557 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17558 Reimplement as macros.
17559 (trace_buffer_wrap): Delete.
17560 (traceframe_write_count, traceframe_read_count)
17561 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17562 (struct tracepoint_hit_ctx) <type>: New field.
17563 (struct fast_tracepoint_ctx): New.
17564 (memory_barrier): New.
17566 (record_tracepoint_error): Update atomically in the IPA.
17567 (clear_inferior_trace_buffer): New.
17568 (about_to_request_buffer_space): New.
17569 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17570 updating the same buffer.
17571 (add_tracepoint): Default the tracepoint's type to trap
17572 tracepoint, and orig_size to -1.
17573 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17574 internal variables.
17575 (create_trace_state_variable): New parameter `gdb'. Handle it.
17576 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17577 (cmd_qtdp): Handle fast tracepoints.
17578 (cmd_qtdv): Adjust.
17579 (max_jump_pad_size): New.
17580 (gdb_jump_pad_head): New.
17581 (get_jump_space_head): New.
17582 (claim_jump_space): New.
17583 (sort_tracepoints): New.
17584 (MAX_JUMP_SIZE): New.
17585 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17587 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17588 support. Upload fast traceframes, and delete internal IPA
17590 (stop_tracing_handler): New.
17591 (flush_trace_buffer_handler): New.
17592 (cmd_qtstop): Upload fast tracepoints.
17593 (response_tracepoint): Handle fast tracepoints.
17594 (tracepoint_finished_step): Upload fast traceframes. Set the
17595 tracepoint hit context's tracepoint type.
17596 (handle_tracepoint_bkpts): New.
17597 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17598 type. Add comment about fast tracepoints.
17599 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17600 non-existing action_str field.
17601 (get_context_regcache): Handle fast tracepoints.
17602 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17604 (fast_tracepoint_from_jump_pad_address): New.
17605 (fast_tracepoint_from_ipa_tpoint_address): New.
17606 (collecting_t): New.
17607 (force_unlock_trace_buffer): New.
17608 (fast_tracepoint_collecting): New.
17610 (gdb_collect): New.
17611 (write_inferior_data_ptr): New.
17612 (target_tp_heap): New.
17613 (target_malloc): New.
17614 (download_agent_expr): New.
17616 (download_tracepoints): New.
17617 (download_trace_state_variables): New.
17618 (upload_fast_traceframes): New.
17619 (IPA_FIRST_TRACEFRAME): New.
17620 (IPA_NEXT_TRACEFRAME_1): New.
17621 (IPA_NEXT_TRACEFRAME): New.
17622 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17623 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17624 (gdb_jump_pad_buffer_end): New.
17625 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17626 (initialize_tracepoint): Adjust.
17627 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17628 buffer. Initialize the low module.
17629 * utils.c (PREFIX, TOOLNAME): New.
17630 (malloc_failure): Use PREFIX.
17631 (error): In the IPA, an error causes an exit.
17632 (fatal, warning): Use PREFIX.
17633 (internal_error): Use TOOLNAME.
17634 (NUMCELLS): Increase to 10.
17635 * configure, config.in: Regenerate.
17637 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17639 * server.c (handle_query) <qSupported>: Do two passes over the
17640 qSupported string to avoid nesting strtok.
17642 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17644 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17646 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17647 -Wl,--dynamic-list.
17648 * configure: Regenerate.
17649 * proc-service.list: New.
17651 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17653 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17656 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17658 * gdbreplay.c (remote_open): Check error return from socket() call by
17659 its equality to -1 not by it being negative.
17660 * remote-utils.c (remote_open): Likewise.
17662 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17664 * config.h: Regenerate.
17666 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17668 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17669 doesn't provide PTRACE_GET_THREAD_AREA.
17671 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17673 * linux-m68k-low.c: Include <asm/ptrace.h>
17674 (ps_get_thread_area): Implement.
17676 2010-05-03 Doug Evans <dje@google.com>
17678 * event-loop.c (struct callback_event): New struct.
17679 (callback_list): New global.
17680 (append_callback_event, delete_callback_event): New functions.
17681 (process_callback): New function.
17682 (start_event_loop): Call it.
17683 * remote-utils.c (NOT_SCHEDULED): Define.
17684 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17685 moved out of readchar.
17686 (readchar): Rewrite. Call reschedule before returning.
17687 (reset_readchar): New function.
17688 (remote_close): Call it.
17689 (process_remaining, reschedule): New functions.
17690 * server.h (callback_handler_func): New typedef.
17691 (append_callback_event, delete_callback_event): Declare.
17693 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17695 * proc-service.c (ps_pglobal_lookup): Use
17696 thread_db_look_up_one_symbol.
17697 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17698 parameter. Use it instead of all_symbols_looked_up.
17699 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17701 (all_symbols_looked_up): Don't declare.
17702 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17703 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17705 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17706 Set all_symbols_looked_up here.
17707 (thread_db_look_up_one_symbol): New.
17708 (thread_db_get_tls_address): Adjust.
17709 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17710 thread_db object on the heap, and tentatively set it in the
17712 (thread_db_init): Don't set all_symbols_looked_up here.
17713 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17715 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17717 * linux-low.c (linux_kill, linux_detach): Adjust.
17718 (status_pending_p_callback): Remove redundant statement. Check
17719 for !TARGET_WAITIKIND_IGNORE, instead of
17720 TARGET_WAITKIND_STOPPED.
17721 (handle_tracepoints): Make sure LWP is locked. Adjust.
17722 (linux_wait_for_event_1): Adjust.
17723 (linux_cancel_breakpoints): New.
17724 (unsuspend_one_lwp): New.
17725 (unsuspend_all_lwps): New.
17726 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17727 (send_sigstop_callback): Change return type to int, add new
17728 `except' parameter and handle it.
17729 (suspend_and_send_sigstop_callback): New.
17730 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17731 pass them down. If SUSPEND, also increment the lwp's suspend
17733 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17734 (need_step_over_p): Don't consider suspended LWPs.
17735 (start_step_over): Adjust.
17736 (proceed_one_lwp): Change return type to int, add new `except'
17737 parameter and handle it.
17738 (unsuspend_and_proceed_one_lwp): New.
17739 (proceed_all_lwps): Use find_inferior instead of
17741 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17742 also decrement the suspend count of LWPs. Pass `except' down,
17743 instead of hacking its suspend count.
17744 (linux_pause_all): Add `freeze' parameter. Adjust.
17745 (linux_unpause_all): New.
17746 (linux_target_ops): Install linux_unpause_all.
17747 * server.c (handle_status): Adjust.
17748 * target.h (struct target_ops): New fields `unpause_all' and
17749 `cancel_breakpoints'. Add new parameter to `pause_all'.
17750 (pause_all): Add new `freeze' parameter.
17751 (unpause_all): New.
17752 (cancel_breakpoints): New.
17753 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17754 cancel breakpoints.
17755 (cmd_qtstart): Pause threads.
17756 (stop_tracing): Pause threads, and cancel breakpoints.
17757 * win32-low.c (win32_target_ops): Adjust.
17759 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17761 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17762 the inferior right away from here...
17763 (linux_wait_1): ... to here, and adjust to check the thread's
17764 last_resume_kind instead of the lwp's step or stop_expected flags.
17766 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17768 * README: Use consistent `GDB' and `GDBserver' spellings.
17770 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17772 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17773 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17774 (linux_detach_one_lwp): Assume the lwp is stopped.
17775 (any_thread_of): Delete.
17776 (linux_detach): Stop all lwps here. Don't blindly delete all
17778 (delete_lwp_callback): New.
17779 (linux_mourn): Delete all lwps of the process that is gone.
17780 (linux_wait_1): Don't delete the last lwp of the process here.
17781 * mem-break.h (mark_breakpoints_out): Declare.
17782 * mem-break.c (mark_breakpoints_out): New.
17783 (free_all_breakpoints): Use it.
17784 * server.c (handle_target_event): If the process is gone, mark
17786 * thread-db.c (struct thread_db) <create_bp>: New field.
17787 (thread_db_enable_reporting): Fix prototype. Store a thread event
17788 breakpoint reference in the thread_db struct.
17789 (thread_db_load_search): Clear the thread_db object.
17790 (try_thread_db_load_1): Ditto.
17791 (switch_to_process): New.
17792 (disable_thread_event_reporting): Use it.
17793 (remove_thread_event_breakpoints): New.
17794 (thread_db_detach, thread_db_mourn): Use it.
17796 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17798 * linux-low.c (linux_enable_event_reporting): New.
17799 (linux_wait_for_event_1, handle_extended_wait): Use it.
17801 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17803 * linux-low.c (linux_kill_one_lwp, linux_kill)
17804 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17805 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17806 SIGSTOP even if the LWP is stopped.
17807 (send_sigstop_callback): New.
17808 (stop_all_lwps): Use send_sigstop_callback instead.
17809 (linux_resume_one_thread): Adjust.
17810 (proceed_one_lwp): Still proceed an LWP that the client has
17811 requested to stop, if we haven't reported it as stopped yet. Make
17812 sure that LWPs the client want stopped, have a pending SIGSTOP.
17814 2010-04-26 Doug Evans <dje@google.com>
17816 * server.c (handle_general_set): Make static.
17818 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17819 Print received char after testing for error/eof instead of before.
17820 (input_interrupt): Tweak comment.
17822 2010-04-23 Doug Evans <dje@google.com>
17824 * server.c (start_inferior): Print inferior argv if --debug.
17826 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17828 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17829 * nto-x86-low.c: Include server.h
17831 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17833 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17834 be consistent with other sources of this directory.
17835 (init_registers_amd64): Correct name of source file of this function
17838 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17840 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17841 64-bit executables.
17843 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17845 * win32-i386-low.c: Add 64-bit support.
17846 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17847 (init_registers_amd64): Declare.
17848 (mappings): Add 64-bit version of array.
17849 (init_windows_x86): New function.
17850 (the_low_target): Change init_arch field to init_windows_x86.
17852 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17854 * win32-low.c: Adapt to support also 64-bit architecture.
17855 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17856 (get_image_name): Use SIZE_T type for local variable `done'.
17857 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17858 (toolhelp_get_dll_name): Idem.
17859 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17860 Use uintptr_t typecast to avoid warning.
17861 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17862 (handle_exception): Use phex_nz to avoid warning.
17863 (win32_wait): Remove unused local variable `process'.
17865 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17867 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17870 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17872 * configure.ac: Use `ws2_32' library for srv_mingw.
17873 * configure: Regenerate.
17874 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17875 * remote-utils.c: Likewise.
17877 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17879 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17880 if __x86_64__ is defined.
17882 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17884 * configure: Regenerate.
17886 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17888 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17889 * target.h (target_ops): New get_tib_address field.
17890 * win32-low.h (win32_thread_info): Add thread_local_base field.
17891 * win32-low.c (child_add_thread): Add tlb argument.
17892 Set thread_local_base field to TLB.
17893 (get_child_debug_event): Adapt to child_add_thread change.
17894 (win32_get_tib_address): New function.
17895 (win32_target_ops): Set get_tib_address field to
17896 win32_get_tib_address.
17897 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17899 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17901 * linux-low.c (linux_mourn): Also remove the process.
17902 * server.c (handle_target_event): Don't remove the process here.
17903 * nto-low.c (nto_mourn): New.
17904 (nto_target_ops): Install it.
17905 * spu-low.c (spu_mourn): New.
17906 (spu_target_ops): Install it.
17907 * win32-low.c (win32_mourn): New.
17908 (win32_target_ops): Install it.
17910 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17912 * server.h (buffer_xml_printf): Remove redundant `;'.
17914 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17916 * regcache.c (set_register_cache): Invalidate regcaches before
17917 changing the register cache layout.
17918 (regcache_invalidate_one): Allow a NULL regcache.
17919 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17920 regcaches before changing the register cache layout or the target
17923 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17925 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17926 variable warning on Linux/x86-64.
17928 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17930 GDBserver disconnected tracing support.
17932 * linux-low.c (linux_remove_process): Delete.
17933 (add_lwp): Don't set last_resume_kind here.
17934 (linux_kill): Use `mourn'.
17935 (linux_detach): Use `thread_db_detach', and `mourn'.
17936 (linux_mourn): New.
17937 (linux_attach_lwp_1): Adjust comment.
17938 (linux_attach): last_resume_kind moved the thread_info; adjust.
17939 (status_pending_p_callback): Adjust.
17940 (linux_wait_for_event_1): Adjust.
17941 (count_events_callback, select_singlestep_lwp_callback)
17942 (select_event_lwp_callback, cancel_breakpoints_callback)
17943 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17944 (proceed_one_lwp): Adjust.
17945 (linux_async): Add debug output.
17946 (linux_thread_stopped): New.
17947 (linux_pause_all): New.
17948 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17950 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17951 (thread_db_free): Delete declaration.
17952 (thread_db_detach, thread_db_mourn): Declare.
17953 * thread-db.c (thread_db_init): Use thread_db_mourn.
17954 (thread_db_free): Delete, split in two.
17955 (disable_thread_event_reporting): New.
17956 (thread_db_detach): New.
17957 (thread_db_mourn): New.
17959 * server.h (struct thread_info) <last_resume_kind>: New field.
17960 <attached>: Add comment.
17961 <gdb_detached>: New field.
17962 (handler_func): Change return type to int.
17963 (handle_serial_event, handle_target_event): Ditto.
17964 (gdb_connected): Declare.
17966 (disconnected_tracing): Declare.
17967 (stop_tracing): Declare.
17969 * server.c (handle_query) <qSupported>: Report support for
17970 disconnected tracing.
17971 (queue_stop_reply_callback): Account for running threads.
17972 (gdb_wants_thread_stopped): New.
17973 (gdb_wants_all_threads_stopped): New.
17974 (gdb_reattached_process): New.
17975 (handle_status): Clear the `gdb_detached' flag of all processes.
17976 In all-stop, stop all threads.
17977 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17978 (process_serial_event): If the remote connection breaks, or if an
17979 exit was forced with "monitor exit", force an event loop exit.
17980 Handle disconnected tracing on detach.
17981 (handle_serial_event): Adjust.
17982 (handle_target_event): If GDB isn't connected, forward events back
17983 to the inferior, unless the last process exited, in which case,
17984 exit gdbserver. Adjust interface.
17986 * remote-utils.c (remote_open): Don't block in accept. Instead
17987 register an event loop source on the listen socket file
17988 descriptor. Refactor bits into ...
17989 (listen_desc): ... this new global.
17990 (gdb_connected): ... this new function.
17991 (enable_async_notification): ... this new function.
17992 (handle_accept_event): ... this new function.
17993 (remote_close): Clear remote_desc.
17995 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17997 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17999 (mourn_inferior): Define.
18000 (target_process_qsupported): Avoid the dangling else problem.
18001 (thread_stopped): Define.
18002 (pause_all): Define.
18003 (target_waitstatus_to_string): Declare.
18004 * target.c (target_waitstatus_to_string): New.
18006 * tracepoint.c (tracing): Make extern.
18007 (disconnected_tracing): New.
18008 (stop_tracing): Make extern. Handle tracing stops due to GDB
18010 (cmd_qtdisconnected): New.
18011 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18012 (handle_tracepoint_general_set): Handle QTDisconnected.
18014 * event-loop.c (event_handler_func): Change return type to int.
18015 (process_event): Bail out if the event handler wants the event
18017 (handle_file_event): Ditto.
18018 (start_event_loop): Bail out if the event handler wants the event
18021 * nto-low.c (nto_target_ops): Adjust.
18022 * spu-low.c (spu_wait): Don't remove the process here.
18023 (spu_target_ops): Adjust.
18024 * win32-low.c (win32_wait): Don't remove the process here.
18025 (win32_target_ops): Adjust.
18027 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18029 * regcache.c (realloc_register_cache): Invalidate inferior's
18030 regcache before recreating it.
18032 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18034 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18036 2010-04-09 Stan Shebs <stan@codesourcery.com>
18037 Pedro Alves <pedro@codesourcery.com>
18039 * server.h (LONGEST): New.
18040 (struct thread_info) <while_stepping>: New field.
18041 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18043 (initialize_tracepoint, handle_tracepoint_general_set)
18044 (handle_tracepoint_query, tracepoint_finished_step)
18045 (tracepoint_was_hit, release_while_stepping_state_list):
18046 (current_traceframe): Declare.
18047 * server.c (handle_general_set): Handle tracepoint packets.
18048 (read_memory): New.
18049 (write_memory): New.
18050 (handle_search_memory_1): Use read_memory.
18051 (handle_query): Report support for conditional tracepoints, trace
18052 state variables, and tracepoint sources. Handle tracepoint
18054 (main): Initialize the tracepoints module.
18055 (process_serial_event): Handle traceframe reads/writes.
18057 * linux-low.c (handle_tracepoints): New.
18058 (linux_wait_1): Call it.
18059 (linux_resume_one_lwp): Handle while-stepping.
18060 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18061 (linux_target_ops): Install them.
18062 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18064 * linux-x86-low.c (x86_supports_tracepoints): New.
18065 (the_low_target). Install it.
18067 * mem-break.h (delete_breakpoint): Declare.
18068 * mem-break.c (delete_breakpoint): Make external.
18070 * target.h (struct target_ops): Add `supports_tracepoints',
18071 `read_pc', and `write_pc' fields.
18072 (target_supports_tracepoints): Define.
18073 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18076 * regcache.h (struct regcache) <registers_owned>: New field.
18077 (init_register_cache, regcache_cpy): Declare.
18078 (regcache_read_pc, regcache_write_pc): Declare.
18079 (register_cache_size): Declare.
18080 (supply_regblock): Declare.
18081 * regcache.c (init_register_cache): New.
18082 (new_register_cache): Use it.
18083 (regcache_cpy): New.
18084 (register_cache_size): New.
18085 (supply_regblock): New.
18086 (regcache_read_pc, regcache_write_pc): New.
18088 * tracepoint.c: New.
18090 * Makefile.in (OBS): Add tracepoint.o.
18091 (tracepoint.o): New rule.
18093 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18095 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18097 (i386-mmx.c): Likewise.
18098 (i386-mmx-linux.o): Likewise.
18099 (i386-mmx-linux.c): Likewise.
18101 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18102 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18103 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18104 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18106 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18107 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18108 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18110 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18112 * Makefile.in (clean): Updated.
18114 (i386-avx.c): Likewise.
18115 (i386-avx-linux.o): Likewise.
18116 (i386-avx-linux.c): Likewise.
18117 (amd64-avx.o): Likewise.
18118 (amd64-avx.c): Likewise.
18119 (amd64-avx-linux.o): Likewise.
18120 (amd64-avx-linux.c): Likewise.
18122 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18123 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18124 (srv_amd64_regobj): Add amd64-avx.o.
18125 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18126 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18127 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18128 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18129 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18130 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18131 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18133 * i387-fp.c: Include "i386-xstate.h".
18135 (i387_cache_to_xsave): Likewise.
18136 (i387_xsave_to_cache): Likewise.
18137 (x86_xcr0): Likewise.
18139 * i387-fp.h (i387_cache_to_xsave): Likewise.
18140 (i387_xsave_to_cache): Likewise.
18141 (x86_xcr0): Likewise.
18143 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18144 * linux-crisv32-low.c (target_regsets): Likewise.
18145 * linux-m68k-low.c (target_regsets): Likewise.
18146 * linux-mips-low.c (target_regsets): Likewise.
18147 * linux-ppc-low.c (target_regsets): Likewise.
18148 * linux-s390-low.c (target_regsets): Likewise.
18149 * linux-sh-low.c (target_regsets): Likewise.
18150 * linux-sparc-low.c (target_regsets): Likewise.
18151 * linux-xtensa-low.c (target_regsets): Likewise.
18153 * linux-low.c: Include <sys/uio.h>.
18154 (regsets_fetch_inferior_registers): Support nt_type.
18155 (regsets_store_inferior_registers): Likewise.
18156 (linux_process_qsupported): New.
18157 (linux_target_ops): Add linux_process_qsupported.
18159 * linux-low.h (regset_info): Add nt_type.
18160 (linux_target_ops): Add process_qsupported.
18162 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18164 (init_registers_i386_avx_linux): New.
18165 (init_registers_amd64_avx_linux): Likewise.
18166 (xmltarget_i386_linux_no_xml): Likewise.
18167 (xmltarget_amd64_linux_no_xml): Likewise.
18168 (PTRACE_GETREGSET): Likewise.
18169 (PTRACE_SETREGSET): Likewise.
18170 (x86_fill_xstateregset): Likewise.
18171 (x86_store_xstateregset): Likewise.
18172 (use_xml): Likewise.
18173 (x86_linux_update_xmltarget): Likewise.
18174 (x86_linux_process_qsupported): Likewise.
18175 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18176 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18177 init_registers_i386_linux here. Call
18178 x86_linux_update_xmltarget.
18179 (the_low_target): Add x86_linux_process_qsupported.
18181 * server.c (handle_query): Call target_process_qsupported.
18183 * target.h (target_ops): Add process_qsupported.
18184 (target_process_qsupported): New.
18186 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18188 * inferiors.c (add_thread): Set last_status kind to
18189 TARGET_WAITKIND_IGNORE.
18190 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18191 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18192 (linux_wait_1): Move `thread' local definition to block that uses
18193 it. Don't NULL initialize `event_child'.
18194 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18195 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18196 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18198 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18200 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18201 an extended waitstatus, or by a watchpoint.
18202 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18203 thread was stepping or has been stopped by a watchpoint.
18205 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18207 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18208 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18209 of another, then delete the previous, and validate all
18211 (validate_inserted_breakpoint): New.
18212 (delete_disabled_breakpoints): New.
18213 (validate_breakpoints): New.
18214 (check_mem_read): Validate breakpoints before trusting their
18215 shadow. Delete disabled breakpoints.
18216 (check_mem_write): Validate breakpoints before trusting they
18217 should be inserted. Delete disabled breakpoints.
18218 * mem-break.h (validate_breakpoints):
18219 * server.c (handle_query): Validate breakpoints when we see a
18222 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18224 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18225 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18226 if we could tell there's a GDB breakpoint at stop_pc.
18227 (need_step_over_p): Don't do a step over if we find a GDB
18228 breakpoint at the resume PC.
18230 * mem-break.c (struct raw_breakpoint): New.
18231 (enum bkpt_type): New type `gdb_breakpoint'.
18232 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18233 fields. New field `raw'.
18234 (find_raw_breakpoint_at): New.
18235 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18236 breakpoint instead.
18237 (set_breakpoint_at): Adjust.
18238 (delete_raw_breakpoint): New.
18239 (release_breakpoint): New.
18240 (delete_breakpoint): Rename to...
18241 (delete_breakpoint_1): ... this. Add proc parameter. Use
18242 release_breakpoint. Return ENOENT.
18243 (delete_breakpoint): Reimplement.
18244 (find_breakpoint_at): Delete.
18245 (find_gdb_breakpoint_at): New.
18246 (delete_breakpoint_at): Delete.
18247 (set_gdb_breakpoint_at): New.
18248 (delete_gdb_breakpoint_at): New.
18249 (gdb_breakpoint_here): New.
18250 (set_reinsert_breakpoint): Use release_breakpoint.
18251 (uninsert_breakpoint): Rename to ...
18252 (uninsert_raw_breakpoint): ... this.
18253 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18254 (reinsert_raw_breakpoint): Change parameter type to
18256 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18258 (check_breakpoints): Adjust. Use release_breakpoint.
18259 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18260 (breakpoint_inserted_here): Ditto.
18261 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18262 Don't trust the breakpoint's shadow if it is not inserted.
18263 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18264 (delete_all_breakpoints): Adjust.
18265 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18266 use delete_breakpoint_1.
18268 * mem-break.h (breakpoints_supported): Delete declaration.
18269 (set_gdb_breakpoint_at): Declare.
18270 (gdb_breakpoint_here): Declare.
18271 (delete_breakpoint_at): Delete.
18272 (delete_gdb_breakpoint_at): Declare.
18274 * server.h (struct raw_breakpoint): Forward declare.
18275 (struct process_info): New field `raw_breakpoints'.
18277 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18280 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18282 * linux-low.c (status_pending_p_callback): Fix comment.
18283 (linux_wait_for_event_1): Move most of the internal breakpoint
18284 handling from here...
18285 (linux_wait_1): ... to here.
18286 (count_events_callback): New.
18287 (select_singlestep_lwp_callback): New.
18288 (select_event_lwp_callback): New.
18289 (cancel_breakpoints_callback): New.
18290 (select_event_lwp): New.
18291 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18292 priority to all LWPs that have had events that should be reported
18293 to the client. Cancel breakpoints when about to reporting the
18294 event to the client, not while stopping lwps. No longer cancel
18295 finished single-steps here.
18296 (cancel_finished_single_step): Delete.
18297 (cancel_finished_single_steps): Delete.
18299 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18301 * mem-break.c (enum bkpt_type): New.
18302 (struct breakpoint): New field `type'.
18303 (set_breakpoint_at): Change return type to struct breakpoint
18304 pointer. Set type to `other_breakpoint' by default.
18305 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18306 in the breakpoint list.
18307 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18308 (reinsert_breakpoint): Rename to ...
18309 (reinsert_raw_breakpoint): ... this.
18310 (reinsert_breakpoints_at): Adjust.
18311 * mem-break.h (struct breakpoint): Declare.
18312 (set_breakpoint_at): Change return type to struct breakpoint
18315 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18317 * server.c (handle_query): Assign, not compare.
18319 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18321 Teach linux gdbserver to step-over-breakpoints.
18323 * linux-low.c (can_hardware_single_step): New.
18324 (supports_breakpoints): New.
18325 (handle_extended_wait): If stopping threads, read the stop pc of
18326 the new cloned LWP.
18328 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18329 low target doesn't support retrieving the PC.
18330 (add_lwp): Set last_resume_kind to resume_continue.
18331 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18332 (linux_attach): Don't clear stop_expected. Set the lwp's
18333 last_resume_kind to resume_stop.
18334 (linux_detach_one_lwp): Don't check for removed breakpoints.
18335 (check_removed_breakpoint): Delete.
18336 (status_pending_p): Rename to ...
18337 (status_pending_p_callback): ... this. Don't check for removed
18338 breakpoints. Don't consider threads that are stopped from GDB's
18340 (linux_wait_for_lwp): Always read the stop_pc here.
18341 (cancel_breakpoint): New.
18342 (step_over_bkpt): New global.
18343 (linux_wait_for_event_1): Implement stepping over breakpoints.
18344 (gdb_wants_lwp_stopped): New.
18345 (gdb_wants_all_stopped): New.
18346 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18347 single-step traps here. Store the thread's last reported target
18349 (send_sigstop): Don't clear stop_expected. Always set it,
18351 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18352 (cancel_finished_single_step): New.
18353 (cancel_finished_single_steps): New.
18354 (wait_for_sigstop): Don't cancel finished single-step traps here.
18355 (linux_resume_one_lwp): Don't check for removed breakpoints.
18356 Don't set `step' on non-hardware step archs.
18357 (linux_set_resume_request): Ignore resume_stop requests if already
18358 stopping or stopped. Set the lwp's last_resume_kind.
18359 (resume_status_pending_p): Don't check for removed breakpoints.
18360 (need_step_over_p): New.
18361 (start_step_over): New.
18362 (finish_step_over): New.
18363 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18364 requests. Clear the thread's last reported target waitstatus.
18365 Don't use the `suspended' flag. Don't consider pending breakpoints.
18366 (linux_resume): Start a step-over if necessary.
18367 (proceed_one_lwp): New.
18368 (proceed_all_lwps): New.
18369 (unstop_all_lwps): New.
18370 * linux-low.h (struct lwp_info): Rewrite comment for the
18371 `suspended' flag. Add the `stop_pc' field. Delete the
18372 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18373 Add `'last_resume_kind' and `need_step_over' fields.
18374 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18375 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18376 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18377 (set_raw_breakpoint_at): New.
18378 (set_breakpoint_at): Rewrite to use it.
18379 (reinsert_breakpoint_handler): Delete.
18380 (set_reinsert_breakpoint): New.
18381 (reinsert_breakpoint_by_bp): Delete.
18382 (delete_reinsert_breakpoints): New.
18383 (uninsert_breakpoint): Rewrite.
18384 (uninsert_breakpoints_at): New.
18385 (reinsert_breakpoint): Rewrite.
18386 (reinsert_breakpoints_at): New.
18387 (check_breakpoints): Rewrite.
18388 (breakpoint_here): New.
18389 (breakpoint_inserted_here): New.
18390 (check_mem_read): Adjust.
18391 * mem-break.h (breakpoints_supported, breakpoint_here)
18392 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18393 (reinsert_breakpoint_by_bp): Delete declaration.
18394 (delete_reinsert_breakpoints): Declare.
18395 (reinsert_breakpoint): Delete declaration.
18396 (reinsert_breakpoints_at): Declare.
18397 (uninsert_breakpoint): Delete declaration.
18398 (uninsert_breakpoints_at): Declare.
18399 (check_breakpoints): Adjust prototype.
18400 * server.h: Adjust include order.
18401 (struct thread_info): Declare here. Add a `last_status' field.
18403 2010-03-23 Michael Snyder <msnyder@vmware.com>
18405 * server.c (crc32): New function.
18406 (handle_query): Add handling for 'qCRC:' request.
18408 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18410 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18411 lwp had been stopped by a watchpoint.
18413 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18415 * server.h (internal_error): Declare.
18416 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18417 * utils.c (internal_error): New function.
18419 2010-03-15 Andreas Schwab <schwab@redhat.com>
18421 * configure.srv: Fix typo setting srv_regobj.
18423 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18425 * linux-low.c (fetch_register): Avoid passing a non string literal
18427 (usr_store_inferior_registers): Ditto.
18429 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18431 * linux-low.c (linux_write_memory): Bail out early if peeking
18434 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18436 * linux-low.h (struct lwp_info): New fields
18437 `stopped_by_watchpoint' and `stopped_data_address'.
18438 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18439 here, and cache them in the lwp object.
18440 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18442 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18444 (linux_stopped_by_watchpoint): Rewrite.
18445 (linux_stopped_data_address): Rewrite.
18447 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18449 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18450 switching the current inferior, not before.
18452 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18454 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18455 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18456 i386-linux.c and amd64-linux.c.
18457 (reg-i386.o): Removed.
18458 (reg-i386.c): Likewise.
18459 (reg-i386-linux.o): Likewise.
18460 (reg-i386-linux.c): Likewise.
18461 (reg-x86-64.o): Likewise.
18462 (reg-x86-64.c): Likewise.
18463 (reg-x86-64-linux.o): Likewise.
18464 (reg-x86-64-linux.c): Likewise.
18466 (i386.c): Likewise.
18467 (i386-linux.o): Likewise.
18468 (i386-linux.c): Likewise.
18469 (amd64.o): Likewise.
18470 (amd64.c): Likewise.
18471 (amd64-linux.o): Likewise.
18472 (amd64-linux.c): Likewise.
18474 * configure.srv (srv_i386_regobj): New.
18475 (srv_i386_linux_regobj): Likewise.
18476 (srv_amd64_regobj): Likewise.
18477 (srv_amd64_linux_regobj): Likewise.
18478 (srv_i386_32bit_xmlfiles): Likewise.
18479 (srv_i386_64bit_xmlfiles): Likewise.
18480 (srv_i386_xmlfiles): Likewise.
18481 (srv_amd64_xmlfiles): Likewise.
18482 (srv_i386_linux_xmlfiles): Likewise.
18483 (srv_amd64_linux_xmlfiles): Likewise.
18484 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18485 srv_xmlfiles to $srv_i386_xmlfiles.
18486 (i[34567]86-*-mingw32ce*): Likewise.
18487 (i[34567]86-*-mingw*): Likewise.
18488 (i[34567]86-*-nto*): Likewise.
18489 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18490 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18491 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18492 (x86_64-*-linux*): Likewise.
18494 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18495 (init_registers_amd64_linux): New.
18496 (x86_arch_setup): Replace init_registers_x86_64_linux with
18497 init_registers_amd64_linux.
18499 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18501 * configure.ac: Check for libdl. If it is not available link against
18502 static libthread_db.
18503 * configure: Regenerate.
18505 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18509 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18510 handing a read watchpoint.
18511 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18513 2010-02-12 Doug Evans <dje@google.com>
18515 * linux-low.c (linux_supports_tracefork_flag): Document.
18516 (linux_look_up_symbols): Add comment.
18518 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18520 * regcache.c (supply_register): Clear regcache if buf is NULL.
18522 2010-02-02 Nicolas Roche <roche@sourceware.org>
18523 Joel Brobecker <brobecker@adacore.com>
18525 * inferiors.c (find_inferior): Add function documentation.
18526 (unloaded_dll): Handle the case where the unloaded dll has not
18527 been previously registered in the dll list.
18529 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18531 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18532 (thumb2_breakpoint): New.
18533 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18535 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18537 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18538 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18541 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18543 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18545 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18547 * linux-s390-low.c (s390_collect_ptrace_register)
18548 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18550 2010-01-21 Doug Evans <dje@google.com>
18552 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18553 (PTRACE_ARG4_TYPE): New macro.
18554 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18555 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18556 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18557 (usr_store_inferior_registers): Ditto.
18558 (linux_read_memory, linux_write_memory): Ditto.
18559 (linux_test_for_tracefork): Ditto.
18561 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18562 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18564 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18566 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18569 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18571 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18572 prototype to take a regcache. Adjust.
18574 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18576 * regcache.h (struct thread_info): Forward declare.
18577 (struct regcache): New.
18578 (new_register_cache): Adjust prototype.
18579 (get_thread_regcache): Declare.
18580 (free_register_cache): Adjust prototype.
18581 (registers_to_string, registers_from_string): Ditto.
18582 (supply_register, supply_register_by_name, collect_register)
18583 (collect_register_as_string, collect_register_by_name): Ditto.
18584 * regcache.c (struct inferior_regcache_data): Delete.
18585 (get_regcache): Rename to ...
18586 (get_thread_regcache): ... this. Adjust. Switch inferior before
18587 fetching registers.
18588 (regcache_invalidate_one): Adjust.
18589 (regcache_invalidate): Fix prototype.
18590 (new_register_cache): Return the new register cache.
18591 (free_register_cache): Change prototype.
18592 (realloc_register_cache): Adjust.
18593 (registers_to_string): Change prototype to take a regcache. Adjust.
18594 (registers_from_string): Ditto.
18595 (register_data): Ditto.
18596 (supply_register): Ditto.
18597 (supply_register_by_name): Ditto.
18598 (collect_register): Ditto.
18599 (collect_register_as_string): Ditto.
18600 (collect_register_by_name): Ditto.
18601 * server.c (process_serial_event): Adjust.
18602 * linux-low.h (regset_fill_func, regset_store_func): Change
18604 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18606 * linux-low.c (get_stop_pc): Adjust.
18607 (check_removed_breakpoint): Adjust.
18608 (linux_wait_for_event): Adjust.
18609 (linux_resume_one_lwp): Adjust.
18610 (fetch_register): Add regcache parameter. Adjust.
18611 (usr_store_inferior_registers): Ditto.
18612 (regsets_fetch_inferior_registers): Ditto.
18613 (regsets_store_inferior_registers): Ditto.
18614 (linux_fetch_registers, linux_store_registers): Ditto.
18615 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18617 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18619 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18620 prototype to take a regcache.
18621 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18622 * remote-utils.c (convert_ascii_to_int, outreg)
18623 (prepare_resume_reply): Change prototype to take a regcache.
18625 * target.h (struct target_ops) <fetch_registers, store_registers>:
18626 Change prototype to take a regcache.
18627 (fetch_inferior_registers, store_inferior_registers): Change
18628 prototype to take a regcache. Adjust.
18629 * proc-service.c (ps_lgetregs): Adjust.
18630 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18631 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18632 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18633 take a regcache. Adjust.
18634 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18635 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18636 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18637 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18638 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18639 (cris_cannot_fetch_register):
18640 (cris_breakpoint_at): Change prototype to take a regcache.
18642 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18643 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18644 to take a regcache. Adjust.
18645 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18647 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18648 take a regcache. Adjust.
18649 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18650 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18651 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18652 * linux-mips-low.c (mips_get_pc):
18653 (mips_set_pc): Change prototype to take a regcache. Adjust.
18654 (mips_reinsert_addr): Adjust.
18655 (mips_collect_register): Change prototype to take a regcache.
18657 (mips_supply_register):
18658 (mips_collect_register_32bit, mips_supply_register_32bit)
18659 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18660 (mips_store_fpregset): Ditto.
18661 * linux-ppc-low.c (ppc_supply_ptrace_register)
18662 (ppc_supply_ptrace_register): Ditto.
18663 (parse_spufs_run): Adjust.
18664 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18665 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18666 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18667 take a regcache. Adjust.
18668 * linux-s390-low.c (s390_collect_ptrace_register)
18669 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18670 (s390_set_pc): Change prototype to take a regcache. Adjust.
18671 (s390_arch_setup): Adjust.
18672 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18673 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18674 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18675 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18676 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18678 (sparc_breakpoint_at): Adjust.
18679 * linux-xtensa-low.c (xtensa_fill_gregset):
18680 (xtensa_store_gregset):
18681 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18682 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18683 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18684 prototype to take a regcache. Adjust.
18685 * win32-arm-low.c (arm_fetch_inferior_register)
18686 (arm_store_inferior_register): Change prototype to take a
18688 * win32-i386-low.c (i386_fetch_inferior_register)
18689 (i386_store_inferior_register): Change prototype to take a
18691 * win32-low.c (child_fetch_inferior_registers)
18692 (child_store_inferior_registers): Change prototype to take a
18694 (win32_wait): Adjust.
18695 (win32_fetch_inferior_registers): Change prototype to take a
18697 (win32_store_inferior_registers): Adjust.
18698 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18699 store_inferior_register>: Change prototype to take a regcache.
18701 2010-01-20 Doug Evans <dje@google.com>
18703 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18705 (linux_wait_for_event1, linux_init_signals): Ditto.
18706 (W_STOPCODE): Provide definition if missing.
18708 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18710 * linux-low.c (linux_core_of_thread): New.
18711 (compare_ints, show_process, list_threads): New.
18712 (linux_qxfer_osdata): Report threads and cores.
18713 (linux_target_op): Register linux_core_of_thread.
18714 * remote-utils.c (prepare_resume_reply): Report the core.
18715 (buffer_xml_printf): Support %d specifier.
18716 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18718 (handle_query): Handle qXfer:threads. Announce availability
18720 * target.h (struct target_ops): New field core_of_thread.
18722 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18724 * Makefile.in (clean): Remove new generated files.
18725 (reg-s390.o, reg-s390.c): Remove rules.
18726 (reg-s390x.o, reg-s390x.c): Likewise.
18727 (s390-linux32.o, s390-linux32.c): Add rules.
18728 (s390-linux64.o, s390-linux64.c): Likewise.
18729 (s390x-linux64.o, s390x-linux64.c): Likewise.
18730 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18731 * linux-s390-low.c: Include <elf.h>.
18732 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18733 (init_registers_s390): Remove prototype.
18734 (init_registers_s390x): Likewise.
18735 (init_registers_s390_linux32): Add prototype.
18736 (init_registers_s390_linux64): Likewise.
18737 (init_registers_s390x_linux64): Likewise.
18738 (s390_num_regs_3264): New define.
18739 (s390_regmap_3264): New global variable.
18740 (s390_cannot_fetch_register): Remove obsolete check.
18741 (s390_cannot_store_register): Likewise.
18742 (s390_collect_ptrace_register): Handle upper/lower register halves.
18743 (s390_supply_ptrace_register): Likewise.
18744 (s390_fill_gregset): Update to register number changes.
18745 (s390_get_hwcap): New routine.
18746 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18747 Install appropriate regmap and register set.
18749 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18751 * server.c (gdbserver_version): Update copyright year to 2010.
18752 * gdbreplay.c (gdbreplay_version): Likewise.
18754 2009-12-28 Doug Evans <dje@google.com>
18756 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18757 elf/external.h. Include <elf.h> instead but only if necessary.
18759 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18761 * linux-low.c (linux_remove_process): Remove `detaching'
18762 parameter. Don't release/detach from thread_db here.
18763 (linux_kill): Release/detach from thread_db here, ...
18764 (linux_detach): ... and here, before actually detaching.
18765 (linux_wait_1): ... and here, when a process exits.
18766 * thread-db.c (any_thread_of): New.
18767 (thread_db_free): Switch the current inferior to a thread of the
18770 2009-12-21 Doug Evans <dje@google.com>
18772 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18774 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18775 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18776 warning ifndef __NR_tkill. Move setting of errno there too.
18777 Delete unnecessary resetting of errno after syscall.
18778 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18780 * configure.ac: Check for dladdr.
18781 * config.in: Regenerate.
18782 * configure: Regenerate.
18783 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18784 (try_thread_db_load): Update.
18786 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18788 2009-12-18 Doug Evans <dje@google.com>
18790 * event-loop.c: Include unistd.h if it exists.
18792 * linux-low.c (my_waitpid): Move definition away from being in
18793 between linux_tracefork_child/linux_test_for_tracefork.
18795 * gdb_proc_service.h (psaddr_t): Fix type.
18796 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18797 signature to match glibc.
18799 2009-12-16 Doug Evans <dje@google.com>
18801 * linux-low.c (linux_read_memory): Fix argument to read.
18803 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18805 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18806 events, don't leave current_inferior pointing at null.
18808 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18810 * win32-low.c (LOG): Delete.
18811 (OUTMSG): Output to stderr.
18812 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18813 on compile time LOG macro.
18814 (win32_wait): Fix debug output.
18816 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18818 * win32-low.c (win32_add_one_solib): If the dll name is
18819 "ntdll.dll", prepend the system directory to the dll path.
18821 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18823 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18825 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18826 Vladimir Prus <vladimir@codesourcery.com>
18828 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18829 * configure.ac: Check for __mcoldfire__ and set
18830 gdb_cv_m68k_is_coldfire.
18831 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18832 reg-cf.o and reg-m68k.o.
18833 * configure: Regenerated.
18835 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18837 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18838 Pass it to thread_db_free.
18839 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18840 proper `detaching' argument to linux_remove_process.
18841 * linux-low.h (thread_db_free): Add `detaching' parameter.
18842 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18844 (thread_db_free): Add `detaching' parameter. Only
18845 call td_ta_clear_event if detaching from process.
18847 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18849 * thread-db.c (thread_db_free): Fix typo.
18851 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18854 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18856 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18858 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18859 with an i686 compiler.
18860 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18862 * configure: Rebuilt.
18864 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18868 * server.c (handle_search_memory_1): Correct read_addr initialization
18869 in loop for searching subsequent chunks.
18871 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18873 * configure.ac: New --with-libthread-db option.
18874 * thread-db.c: Allow direct dependence on libthread_db.
18875 (thread_db_free): Adjust.
18876 * config.in: Regenerate.
18877 * configure: Likewise.
18879 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18882 * thread-db.c (attach_thread): New function.
18883 (maybe_attach_thread): Return success/failure.
18884 (find_new_threads_callback): Adjust.
18885 (thread_db_find_new_threads): Loop until no new threads.
18887 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18889 * proc-service.c (ps_lgetregs): Formatting.
18891 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18893 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18894 * configure.ac: Adjust.
18895 * linux-low.h (struct process_info_private): Move members to struct
18897 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18898 * linux-low.c (linux_remove_process): Adjust.
18899 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18900 * server.c (handle_query): Move code ...
18901 (handle_monitor_command): ... here. New function.
18902 * target.h (struct target_ops): New member.
18903 * thread-db.c (struct thread_db): New.
18904 (libthread_db_search_path): New variable.
18905 (thread_db_create_event, thread_db_enable_reporting)
18906 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18907 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18908 (try_thread_db_load_1, dladdr_to_soname): New functions.
18909 (try_thread_db_load, thread_db_load_search): New functions.
18910 (thread_db_init): Search for libthread_db.
18911 (thread_db_free): New function.
18912 (thread_db_handle_monitor_command): Likewise.
18913 * config.in: Regenerate.
18914 * configure: Regenerate.
18916 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18918 * spu-low.c (spu_kill): Wait for inferior to terminate.
18919 Call clear_inferiors.
18920 (spu_detach): Call clear_inferiors.
18922 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18924 * aclocal.m4: Regenerate.
18925 * config.in: Likewise.
18926 * configure: Likewise.
18928 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18930 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18931 (parse_spufs_run): New function.
18932 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18933 (ppc_breakpoint_at): Handle SPU breakpoints.
18935 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18937 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18938 (SPUFS_MAGIC): Define.
18939 (spu_enumerate_spu_ids): New function.
18940 (linux_qxfer_spu): New function.
18941 (linux_target_ops): Install linux_qxfer_spu.
18943 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18945 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18946 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18947 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18948 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18949 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18950 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18951 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18952 (init_registers_powerpc_cell32l): Add prototype.
18953 (init_registers_powerpc_cell64l): Likewise.
18954 (ppc_arch_setup): Detect Cell/B.E. architecture.
18956 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18958 * Makefile.in (datarootdir): New variable.
18960 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18962 * linux-low.c (linux_write_memory): Update debugging output.
18963 * Makefile.in (clean): Add new descriptions.
18964 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18965 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18966 * configure.srv: Add new files for arm*-*-linux*.
18967 * linux-arm-low.c: Add new declarations.
18968 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18969 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18970 (HWCAP_VFPv3D16): New.
18971 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18972 instead of __IWMMXT__.
18973 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18974 (arm_arch_setup): New.
18975 (target_regsets): Remove #ifdef. Add VFP regset.
18976 (the_low_target): Use arm_arch_setup.
18978 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18980 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18981 the main thread again.
18983 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18985 Adding Neutrino gdbserver.
18986 * configure: Regenerated.
18987 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18988 * configure.srv (i[34567]86-*-nto*): New target.
18989 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18990 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18991 (nto_comctrl) [__QNX__]: New function.
18992 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18994 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18996 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18999 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19000 Pedro Alves <pedro@codesourcery.com>
19002 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19003 don't support CONTEXT_EXTENDED_REGISTERS.
19004 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19005 (the_low_target): Install them.
19006 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19007 failing with ERROR_PIPE_NOT_CONNECTED.
19009 2009-06-30 Doug Evans <dje@google.com>
19010 Pierre Muller <muller@ics.u-strasbg.fr>
19012 Add h/w watchpoint support to x86-linux, win32-i386.
19013 * Makefile.in (SFILES): Add i386-low.c
19014 (i386_low_h): Define.
19015 (i386-low.o): Add dependencies.
19016 (linux-x86-low.o): Add i386-low.h dependency.
19017 (win32-i386-low.o): Ditto.
19018 * i386-low.c: New file.
19019 * i386-low.h: New file.
19020 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19021 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19022 * linux-low.c (linux_add_process): Initialize arch_private.
19023 (linux_remove_process): Free arch_private.
19024 (add_lwp): Initialize arch_private.
19025 (delete_lwp): Free arch_private.
19026 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19028 * linux-low.h (process_info_private): New member arch_private.
19029 (lwp_info): New member arch_private.
19030 (linux_target_ops): New members new_process, new_thread,
19032 (ptid_of): New macro.
19033 * linux-x86-low.c: Include stddef.h, i386-low.h.
19034 (arch_process_info): New struct.
19035 (arch_lwp_info): New struct.
19036 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19037 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19038 (i386_dr_low_get_status): New function.
19039 (x86_insert_point, x86_remove_point): New functions.
19040 (x86_stopped_by_watchpoint): New function.
19041 (x86_stopped_data_address): New function.
19042 (x86_linux_new_process, x86_linux_new_thread): New functions.
19043 (x86_linux_prepare_to_resume): New function.
19044 (the_low_target): Add entries for insert_point, remove_point,
19045 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19047 * server.c (debug_hw_points): New global.
19048 (monitor_show_help): Document set debug-hw-points.
19049 (handle_query): Process "set debug-hw-points".
19050 * server.h (debug_hw_points): Declare.
19051 (paddress): Declare.
19052 * utils.c (NUMCELLS, CELLSIZE): New macros.
19053 (get_sell, xsnprintf, paddress): New functions.
19054 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19055 remove_point, stopped_by_watchpoint, stopped_data_address.
19056 * win32-i386-low.c: Include i386-low.h.
19057 (debug_reg_state): Replaces dr.
19058 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19059 (i386_dr_low_get_status): New function.
19060 (i386_insert_point, i386_remove_point): New functions.
19061 (i386_stopped_by_watchpoint): New function.
19062 (i386_stopped_data_address): New function.
19063 (i386_initial_stuff): Update.
19064 (get_thread_context,set_thread_context,i386_thread_added): Update.
19065 (the_low_target): Add entries for insert_point,
19066 remove_point, stopped_by_watchpoint, stopped_data_address.
19067 * win32-low.c (win32_insert_watchpoint): New function.
19068 (win32_remove_watchpoint): New function.
19069 (win32_stopped_by_watchpoint): New function.
19070 (win32_stopped_data_address): New function.
19071 (win32_target_ops): Add entries for insert_watchpoint,
19072 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19073 * win32-low.h (win32_target_ops): New members insert_point,
19074 remove_point, stopped_by_watchpoint, stopped_data_address.
19076 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19078 * server.c (process_serial_event): Re-return unsupported, not
19079 error, if the type isn't recognized. Re-allow supporting only
19080 insert or remove packets. Also call require_running for
19081 breakpoints. Add missing break statement to default case. Tidy.
19082 * target.h (struct target_ops): Rename insert_watchpoint to
19083 insert_point, and remove_watchpoint to remove_point.
19085 * linux-low.h (struct linux_target_ops): Likewise.
19086 * linux-low.c (linux_insert_watchpoint): Rename to ...
19087 (linux_insert_point): ... this. Adjust.
19088 (linux_remove_watchpoint): Rename to ...
19089 (linux_remove_point): ... this. Adjust.
19090 (linux_target_ops): Adjust.
19091 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19092 (cris_insert_point): ... this.
19093 (cris_remove_watchpoint): Rename to ...
19094 (cris_remove_point): ... this.
19095 (the_low_target): Adjust.
19097 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19099 * server.c (handle_v_kill): Pass signal_pid to
19100 kill_inferior if multi_process is zero.
19102 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19104 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19105 * target.h (target_ops): Comment for *_watchpoint to make it clear
19106 the functions can get types '0' and '1'.
19108 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19110 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19111 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19112 * regcache.c (get_regcache): Likewise.
19113 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19114 * win32-low.c (child_fetch_inferior_registers): Remove check for
19117 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19118 Pedro Alves <pedro@codesourcery.com>
19120 * target.h (struct target_ops) <supports_multi_process>: New
19122 (target_supports_multi_process): New.
19123 * server.c (handle_query): Even if GDB reports support, only
19124 enable multi-process if the target also supports it. Report
19125 multi-process support only if the target backend supports it.
19126 * linux-low.c (linux_supports_multi_process): New function.
19127 (linux_target_ops): Install it as target_supports_multi_process
19130 2009-05-24 Doug Evans <dje@google.com>
19132 Global renaming of find_thread_pid to find_thread_ptid.
19133 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19134 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19135 All callers updated.
19137 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19138 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19141 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19142 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19143 (linux_resume_one_lwp): Ditto.
19145 2009-05-23 Doug Evans <dje@google.com>
19147 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19148 from struct inferior_list_entry * to struct lwp_info *.
19149 All callers updated.
19151 2009-05-13 Doug Evans <dje@google.com>
19153 * linux-x86-low.c: Don't include assert.h.
19154 (x86_siginfo_fixup): Use fatal, not assert.
19155 (x86_arch_setup): Fix comment.
19157 2009-05-12 Doug Evans <dje@google.com>
19159 Biarch support for i386/amd64 gdbserver.
19160 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19161 Add linux-x86-low.c.
19162 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19163 (linux-x86-low.o): Add.
19164 * linux-x86-64-low.c: Delete.
19165 * linux-i386-low.c: Delete.
19166 * linux-x86-low.c: New file.
19167 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19169 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19171 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19172 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19173 (linux_child_pid_to_exec_file): New function.
19174 (elf_64_header_p, elf_64_file_p): New functions.
19175 (siginfo_fixup): New function.
19176 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19177 give target a chance to convert layout.
19178 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19179 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19181 2009-05-07 Doug Evans <dje@google.com>
19183 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19184 (regsets_store_inferior_registers): Ditto.
19186 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19190 * linux-low.c (must_set_ptrace_flags): Delete.
19191 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19193 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19194 `lwp->must_set_ptrace_flags' instead.
19195 (linux_wait_for_event_1): Set ptrace options here.
19196 (linux_wait_1): ... not here.
19198 2009-04-30 Doug Evans <dje@google.com>
19200 * inferiors.c (started_inferior_callback): New function.
19201 (attached_inferior_callback): New function.
19202 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19203 * server.c (print_started_pid, print_attached_pid): New functions.
19204 (detach_or_kill_for_exit): New function.
19205 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19206 * server.h (have_started_inferiors_p): Declare.
19207 (have_attached_inferiors_p): Declare.
19209 * inferiors.c (remove_process): Fix memory leak, free process.
19210 * linux-low.c (linux_remove_process): New function.
19211 (linux_kill): Call it instead of remove_process.
19212 (linux_detach, linux_wait_1): Ditto.
19214 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19216 * configure.srv: Add x86 Windows CE target.
19218 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19220 * inferiors.c (get_thread_process): Make global.
19221 * server.h (get_thread_process): Add prototype.
19222 * thread-db.c (find_one_thread): Use get_thread_process
19223 instead of current_process.
19224 (thread_db_get_tls_address): Do not crash if called when
19225 thread layer is not yet initialized.
19227 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19229 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19230 * spu-low.c (current_tid): Rename to ...
19231 (current_ptid): ... this.
19232 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19233 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19234 ptid_get_lwp (current_ptid) instead of current_tid.
19235 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19236 instead of current_tid. Use find_process_pid to verify pid
19237 argument is valid. Pass proper argument to remove_process.
19238 (spu_thread_alive): Compare current_ptid instead of current_tid.
19239 (spu_resume): Likewise.
19241 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19243 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19246 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19248 Implement the multiprocess extensions, and add linux multiprocess
19251 * server.h (ULONGEST): Declare.
19252 (struct ptid, ptid_t): New.
19253 (minus_one_ptid, null_ptid): Declare.
19254 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19255 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19256 (struct inferior_list_entry): Change `id' type from unsigned from
19258 (struct sym_cache, struct breakpoint, struct
19259 process_info_private): Forward declare.
19260 (struct process_info): Declare.
19261 (current_process): Declare.
19262 (all_processes): Declare.
19263 (initialize_inferiors): Declare.
19264 (add_thread): Adjust to use ptid_t.
19265 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19266 (add_process, remove_process, find_thread_pid): Declare.
19267 (find_inferior_id): Adjust to use ptid_t.
19268 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19269 (multi_process): Declare.
19270 (push_event): Adjust to use ptid_t.
19271 (read_ptid, write_ptid): Declare.
19272 (prepare_resume_reply): Adjust to use ptid_t.
19273 (clear_symbol_cache): Declare.
19274 * inferiors.c (all_processes): New.
19275 (null_ptid, minus_one_ptid): New.
19276 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19277 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19278 (add_thread): Change unsigned long to ptid. Remove gdb_id
19280 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19281 (gdb_id_to_thread): Rename to ...
19282 (find_thread_pid): ... this. Change unsigned long to ptid.
19283 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19284 (loaded_dll, pull_pid_from_list): Adjust.
19285 (add_process, remove_process, find_process_pid)
19286 (get_thread_process, current_process, initialize_inferiors): New.
19287 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19288 (struct target_waitstatus) <related_pid>: Ditto.
19289 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19290 return type to int.
19291 (struct target_ops) <join>: Add `pid' argument.
19292 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19293 (struct target_ops) <wait>: Add `ptid' field. Change return type
19295 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19296 (mywait): Add `ptid' argument. Change return type to ptid_t.
19297 (target_pid_to_str): Declare.
19298 * target.c (set_desired_inferior): Adjust to use ptids.
19299 (mywait): Add new `ptid' argument. Adjust.
19300 (target_pid_to_str): New.
19301 * mem-break.h (free_all_breakpoints): Declare.
19302 * mem-break.c (breakpoints): Delelete.
19303 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19304 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19305 to use per-process breakpoint list.
19306 (free_all_breakpoints): New.
19307 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19308 (symbol_cache, all_symbols_looked_up): Delete.
19310 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19312 (prepare_resume_reply): Change ptid argument's type from unsigned
19313 long to ptid_t. Adjust. Implement W;process and X;process.
19314 (free_sym_cache, clear_symbol_cache): New.
19315 (look_up_one_symbol): Adjust to per-process symbol cache. *
19316 * server.c (cont_thread, general_thread, step_thread): Change type
19318 (attached): Delete.
19319 (multi_process): New.
19320 (last_ptid): Change type to ptid_t.
19321 (struct vstop_notif) <ptid>: Change type to ptid_t.
19322 (queue_stop_reply, push_event): Change `ptid' argument's type to
19324 (discard_queued_stop_replies): Add `pid' argument.
19325 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19326 changes. Don't reference the `attached' global.
19327 (attach_inferior): Adjust to mywait interface changes.
19328 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19329 features. Handle and report "multiprocess+". Handle
19331 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19333 (handle_v_kill): New.
19334 (handle_v_stopped): Adjust to use target_pid_to_str.
19335 (handle_v_requests): Allow multiple attaches and runs when
19336 multiprocess extensions are in effect. Handle "vKill".
19337 (myresume): Adjust to use ptids.
19338 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19339 (handle_status): Adjust to discard_queued_stop_replies interface
19341 (first_thread_of, kill_inferior_callback)
19342 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19343 (main): Call initialize_inferiors. Adjust to use ptids, killing
19344 and detaching from all inferiors. Handle multiprocess packet
19346 * linux-low.h: Include gdb_proc_service.h.
19347 (struct process_info_private): New.
19348 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19349 <lwpid_of>: Use ptid_get_lwp.
19350 (get_lwp_thread): Adjust.
19351 (struct lwp_info): Add `dead' member.
19352 (find_lwp_pid): Declare.
19353 * linux-low.c (thread_db_active): Delete.
19354 (new_inferior): Adjust comment.
19355 (inferior_pid): Delete.
19356 (linux_add_process): New.
19357 (handle_extended_wait): Adjust.
19358 (add_lwp): Change unsigned long to ptid.
19359 (linux_create_inferior): Add process to processes table. Adjust
19360 to use ptids. Don't set new_inferior here.
19361 (linux_attach_lwp): Rename to ...
19362 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19363 it. Adjust to use ptids.
19364 (linux_attach_lwp): New.
19365 (linux_attach): Add process to processes table. Don't set
19367 (struct counter): New.
19368 (second_thread_of_pid_p, last_thread_of_process_p): New.
19369 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19370 multiple processes.
19371 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19372 processes. Remove process from process table.
19373 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19374 to multiple processes.
19375 (any_thread_of): New.
19376 (linux_detach): Add `pid' argument, and handle it. Remove process
19377 from processes table.
19378 (linux_join): Add `pid' argument. Handle it.
19379 (linux_thread_alive): Change unsighed long argument to ptid_t.
19380 Consider dead lwps as not being alive.
19381 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19382 threads we're not interested in.
19383 (same_lwp, find_lwp_pid): New.
19384 (linux_wait_for_lwp): Change `pid' argument's type from int to
19386 (linux_wait_for_event): Rename to ...
19387 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19388 from int to ptid_t. Adjust.
19389 (linux_wait_for_event): New.
19390 (linux_wait_1): Add `ptid' argument. Change return type to
19391 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19392 that exit from the process table.
19393 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19395 (mark_lwp_dead): New.
19396 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19397 stopping all threads, mark its main lwp as dead.
19398 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19400 (fetch_register, usr_store_inferior_registers)
19401 (regsets_fetch_inferior_registers)
19402 (regsets_store_inferior_registers, linux_read_memory)
19403 (linux_write_memory): Inline `inferior_pid'.
19404 (linux_look_up_symbols): Adjust to use per-process
19405 `thread_db_active'.
19406 (linux_request_interrupt): Adjust to use ptids.
19407 (linux_read_auxv): Inline `inferior_pid'.
19408 (initialize_low): Don't reference thread_db_active.
19409 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19410 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19411 (ps_getpid): Return the pid of the current inferior.
19412 * thread-db.c (proc_handle, thread_agent): Delete.
19413 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19415 (find_one_thread): Change argument type to ptid_t. Adjust to
19417 (maybe_attach_thread): Adjust to per-process data and ptids.
19418 (thread_db_find_new_threads): Ditto.
19419 (thread_db_init): Ditto.
19420 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19421 processes table. Adjust to use ptids.
19422 (spu_kill, spu_detach): Adjust interface. Remove process from
19424 (spu_join, spu_thread_alive): Adjust interface.
19425 (spu_wait): Adjust interface. Remove process from processes
19426 table. Adjust to use ptids.
19427 * win32-low.c (current_inferior_tid): Delete.
19428 (current_inferior_ptid): New.
19429 (debug_event_ptid): New.
19430 (thread_rec): Take a ptid. Adjust.
19431 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19432 (child_delete_thread): Ditto.
19433 (do_initial_child_stuff): Add `attached' argument. Add process to
19435 (child_fetch_inferior_registers, child_store_inferior_registers):
19437 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19438 (win32_attach): Pass 1 to do_initial_child_stuff.
19439 (win32_kill): Adjust interface. Remove process from processes
19441 (win32_detach): Ditto.
19442 (win32_join): Adjust interface.
19443 (win32_thread_alive): Take a ptid.
19444 (win32_resume): Adjust to use ptids.
19445 (get_child_debug_event): Ditto.
19446 (win32_wait): Adjust interface. Remove exiting process from
19449 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19451 Non-stop mode support.
19453 * server.h (non_stop): Declare.
19454 (gdb_client_data, handler_func): Declare.
19455 (delete_file_handler, add_file_handler, start_event_loop):
19457 (handle_serial_event, handle_target_event, push_event)
19458 (putpkt_notif): Declare.
19459 * target.h (enum resume_kind): New.
19460 (struct thread_resume): Replace `step' field by `kind' field.
19461 (TARGET_WNOHANG): Define.
19462 (struct target_ops) <wait>: Add `options' argument.
19463 <supports_non_stop, async, start_non_stop>: New fields.
19464 (target_supports_non_stop, target_async): New.
19465 (start_non_stop): Declare.
19466 (mywait): Add `options' argument.
19467 * target.c (mywait): Add `options' argument. Print child exit
19468 notifications here.
19469 (start_non_stop): New.
19470 * server.c (non_stop, own_buf, mem_buf): New globals.
19471 (struct vstop_notif): New.
19472 (notif_queue): New global.
19473 (queue_stop_reply, push_event, discard_queued_stop_replies)
19474 (send_next_stop_reply): New.
19475 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19477 (attach_inferior): In non-stop mode, don't wait for the target
19479 (handle_general_set): Handle QNonStop.
19480 (handle_query): When handling qC, return the current general
19481 thread, instead of the first thread of the list.
19482 (handle_query): If the backend supports non-stop mode, include
19483 QNonStop+ in the qSupported query response.
19484 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19486 (handle_v_attach, handle_v_run): Handle non-stop mode.
19487 (handle_v_stopped): New.
19488 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19489 (myresume): Adjust to use resume_kind. Handle non-stop.
19490 (queue_stop_reply_callback): New.
19491 (handle_status): Handle non-stop mode.
19492 (main): Clear non_stop flag on reconnection. Use the event-loop.
19493 Refactor serial protocol handling from here ...
19494 (process_serial_event): ... to this new function. When GDB
19495 selects any thread, select one here. In non-stop mode, wait until
19496 GDB acks all pending events before exiting.
19497 (handle_serial_event, handle_target_event): New.
19498 * remote-utils.c (remote_open): Install remote_desc in the event
19500 (remote_close): Remove remote_desc from the event loop.
19501 (putpkt_binary): Rename to...
19502 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19503 (putpkt_binary): New as wrapper around putpkt_binary_1.
19504 (putpkt_notif): New.
19505 (prepare_resume_reply): In non-stop mode, don't change the
19507 * event-loop.c: New.
19508 * Makefile.in (OBJ): Add event-loop.o.
19509 (event-loop.o): New rule.
19511 * linux-low.h (pid_of): Moved here.
19513 (get_lwp_thread): Use lwpid_of.
19514 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19515 * linux-low.c (pid_of): Delete.
19516 (inferior_pid): Use lwpid_of.
19517 (linux_event_pipe): New.
19518 (target_is_async_p): New.
19520 (handle_extended_wait): Use lwpid_of.
19521 (add_lwp): Don't set lwpid field.
19522 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19523 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19524 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19525 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19526 first. Adjust to linux_wait_for_event interface changes. Use
19528 (linux_detach): Don't delete the main lwp here.
19529 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19530 (status_pending_p): Don't consider explicitly suspended lwps.
19531 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19532 pointer. Add OPTIONS argument. Change return type to int. Use
19533 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19534 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19535 pointer. Add status pointer argument. Return a pid instead of a
19536 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19537 changes. In non-stop mode, don't switch to a random thread.
19538 (linux_wait): Rename to...
19539 (linux_wait_1): ... this. Add target_options argument, and handle
19540 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19541 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19542 clean exit and signal exit code. Don't stop all threads in
19543 non-stop mode. In all-stop mode, only stop all threads when
19544 reporting a stop to GDB. Handle explicit thread stop requests.
19545 (async_file_flush, async_file_mark): New.
19547 (send_sigstop): Use lwpid_of.
19548 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19549 interface changes. In non-stop mode, don't switch to a random
19551 (linux_resume_one_lwp): Use lwpid_of.
19552 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19553 (linux_resume_one_thread): ... this. Handle resume_stop. In
19554 non-stop mode, don't look for pending flag in all threads.
19555 (resume_status_pending_p): Don't consider explicitly suspended
19557 (my_waitpid): Reimplement. Emulate __WALL.
19558 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19560 (sigchld_handler, linux_supports_non_stop, linux_async)
19561 (linux_start_non_stop): New.
19562 (linux_target_ops): Register linux_supports_non_stop, linux_async
19563 and linux_start_non_stop.
19564 (initialize_low): Install SIGCHLD handler.
19565 * thread-db.c (thread_db_create_event, find_one_thread)
19566 (thread_db_get_tls_address): Use lwpid_of.
19567 * win32-low.c (win32_detach): Adjust to use resume_kind.
19568 (win32_wait): Add `options' argument.
19569 * spu-low.c (spu_resume): Adjust to use resume_kind.
19570 (spu_wait): Add `options' argument.
19572 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19574 Decouple target code from remote protocol.
19576 * target.h (enum target_waitkind): New.
19577 (struct target_waitstatus): New.
19578 (struct target_ops) <wait>: Return an unsigned long. Take a
19579 target_waitstatus pointer instead of a char pointer.
19580 (mywait): Likewise.
19581 * target.c (mywait): Change prototype to return an unsigned long.
19582 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19583 * server.h (thread_from_wait, old_thread_from_wait): Delete
19585 (prepare_resume_reply): Change prototype to take a
19587 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19588 (last_status, last_ptid): New.
19589 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19590 pid instead of a signal.
19591 (attach_inferior): Remove "status" and "signal" parameters.
19593 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19595 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19596 (handle_v_requests, myresume): Remove "status" and "signal"
19597 parameters. Adjust.
19598 (handle_status): New.
19599 (main): Delete local `status'. Adjust.
19600 * remote-utils.c: Include target.h.
19601 (prepare_resume_reply): Change prototype to take a
19602 target_waitstatus. Adjust.
19604 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19606 * spu-low.c (spu_wait): Adjust.
19607 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19609 (win32_wait): Adjust.
19611 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19613 * target.h (struct thread_resume): Delete leave_stopped member.
19614 (struct target_ops): Add a `n' argument to the `resume' callback.
19615 * server.c (start_inferior): Adjust.
19616 (handle_v_cont, myresume): Adjust.
19617 * linux-low.c (check_removed_breakpoint): Adjust to resume
19618 interface change, and to removed leave_stopped field.
19619 (resume_ptr): Delete.
19620 (struct thread_resume_array): New.
19621 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19622 resume interface change.
19623 (linux_continue_one_thread, linux_queue_one_thread)
19624 (resume_status_pending_p): Check if the resume field is NULL
19625 instead of checking the leave_stopped member.
19626 (linux_resume): Adjust to the target resume interface change.
19627 * spu-low.c (spu_resume): Adjust to the target resume interface
19629 * win32-low.c (win32_detach, win32_resume): Ditto.
19631 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19633 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19635 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19637 (linux_continue_one_thread): Only preserve the stepping flag if
19638 there's a pending breakpoint.
19640 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19642 * server.c (main): After the inferior having exited, call
19643 remote_close before exiting gdbserver.
19645 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19647 Fix size of FPSCR in Power 7 processors.
19648 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19649 (PPC_FEATURE_HAS_DFP): New #define.
19650 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19653 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19655 * server.c (handle_query) Whitespace and formatting.
19657 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19659 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19660 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19661 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19662 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19663 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19664 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19665 Makefile.in, configure.ac: Fix whitespace throughout.
19666 * configure: Regenerate.
19668 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19670 * inferiors.c (find_inferior): Make it safe for the callback
19671 function to delete the currently iterated inferior.
19673 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19675 * Makefile.in (linuw_low_h): Move higher.
19676 (thread-db.o): Depend on $(linux_low_h).
19678 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19680 Rename "process" to "lwp" throughout.
19682 * linux-low.c (all_processes): Rename to...
19683 (all_lwps): ... this.
19684 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19685 (add_process): Rename to ...
19686 (add_lwp): ... this. Adjust.
19687 (linux_create_inferior): Adjust.
19688 (linux_attach_lwp): Adjust.
19689 (linux_attach): Adjust.
19690 (linux_kill_one_process): Rename to ...
19691 (linux_kill_one_lwp): ... this. Adjust.
19692 (linux_kill): Adjust.
19693 (linux_detach_one_process): Rename to ...
19694 (linux_detach_one_lwp): ... this. Adjust.
19695 (linux_detach): Adjust.
19696 (check_removed_breakpoint): Adjust.
19697 (status_pending_p): Adjust.
19698 (linux_wait_for_process): Rename to ...
19699 (linux_wait_for_lwp): ... this. Adjust.
19700 (linux_wait_for_event): Adjust.
19701 (send_sigstop): Adjust.
19702 (wait_for_sigstop): Adjust.
19703 (stop_all_processes): Rename to ...
19704 (stop_all_lwps): ... this.
19705 (linux_resume_one_process): Rename to ...
19706 (linux_resume_one_lwp): ... this. Adjust.
19707 (linux_set_resume_request, linux_continue_one_thread)
19708 (linux_queue_one_thread, resume_status_pending_p)
19709 (usr_store_inferior_registers, regsets_store_inferior_registers)
19710 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19712 * linux-low.h (get_process): Rename to ...
19713 (get_lwp): ... this. Adjust.
19714 (get_thread_process): Rename to ...
19715 (get_thread_lwp): ... this. Adjust.
19716 (get_process_thread): Rename to ...
19717 (get_lwp_thread): ... this. Adjust.
19718 (struct process_info): Rename to ...
19719 (struct lwp_info): ... this.
19720 (all_processes): Rename to ...
19721 (all_lwps): ... this.
19722 * proc-service.c (ps_lgetregs): Adjust.
19723 * thread-db.c (thread_db_create_event, find_one_thread)
19724 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19726 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19728 * server.c (handle_query): Handle "qAttached".
19730 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19732 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19733 GPLv3, update license URL.
19735 2009-03-01 Doug Evans <dje@google.com>
19737 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19738 (server_h): Add gdb_signals.h.
19739 (signals.o): Update.
19740 * server.h (target_signal_from_host,target_signal_to_host_p)
19741 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19743 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19745 * remote-utils.c (getpkt): Also generate remote-debug
19746 information if noack_mode is set.
19748 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19750 * server.c (handle_query): Report qXfer:siginfo:read and
19751 qXfer:siginfo:write as supported and handle them.
19752 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19753 * linux-low.c (linux_xfer_siginfo): New.
19754 (linux_target_ops): Set it.
19756 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19758 * server.c (gdbserver_usage): Mention --remote-debug.
19759 (main): Accept '--remote-debug' switch.
19761 2009-01-18 Doug Evans <dje@google.com>
19763 * regcache.c (new_register_cache): No need to check result of xcalloc.
19764 * server.c (handle_search_memory): Back out calls to xmalloc,
19765 result is checked and error is returned to user upon failure.
19766 (handle_query): Ditto. Add more checks for result of malloc.
19767 (handle_v_cont): Check result of malloc, report error back to
19769 (handle_v_run): Ditto. Call freeargv.
19770 * server.h (freeargv): Declare.
19771 * utils.c (freeargv): New fn.
19773 2009-01-15 Doug Evans <dje@google.com>
19775 * gdbreplay.c (perror_with_name): Make arg const char *.
19776 * server.h (target_signal_to_name): Make return type const char *.
19777 * thread-db.c (thread_db_err_str): Make return type const char *.
19778 * utils.c (perror_with_name): Make arg const char *.
19780 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19782 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19783 when handling a EXIT_PROCESS_DEBUG_EVENT.
19785 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19787 * gdbreplay.c (gdbreplay_version): Update copyright year.
19788 * server.c (gdbserver_version): Likewise.
19790 2009-01-05 Doug Evans <dje@google.com>
19792 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19793 (handle_extended_wait): Improve comment.
19795 2008-12-13 Doug Evans <dje@google.com>
19797 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19798 * server.h (ATTR_MALLOC): New macro.
19799 (xmalloc,xcalloc,xstrdup): Declare.
19800 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19801 * inferiors.c: Ditto.
19802 * linux-low.c: Ditto.
19803 * mem-break.c: Ditto.
19804 * regcache.c: Ditto.
19805 * remote-utils.c: Ditto.
19808 * win32-low.c: Ditto.
19810 2008-12-12 Doug Evans <dje@google.com>
19812 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19813 in debugging printf.
19815 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19817 2008-12-09 Doug Evans <dje@google.com>
19819 * linux-low.h (struct process_info): Delete member tid, unused.
19820 * thread-db.c (find_one_thread): Update.
19821 (maybe_attach_thread): Update.
19823 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19825 * target.h (struct target_ops): Add qxfer_osdata member.
19826 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19828 (linux_qxfer_osdata): New functions.
19829 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19831 * server.c (handle_query): Handle "qXfer:osdata:read:".
19832 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19833 (buffer_xml_printf): New functions.
19834 * server.h (struct buffer): New.
19835 (buffer_grow_str, buffer_grow_str0): New macros.
19836 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19837 (buffer_xml_printf): Declare.
19839 2008-11-24 Doug Evans <dje@google.com>
19841 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19843 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19845 * server.c (handle_v_run): Always use the supplied argument list.
19847 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19849 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19850 (xtensa_regmap_table): Add entry for scompare1.
19852 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19854 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19855 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19856 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19857 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19858 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19859 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19860 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19861 XML target descriptions.
19862 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19863 when inferior is running on an ISA 2.05 or later processor. Add
19864 special case to return offset for full 64-bit slot of FPSCR when
19867 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19869 * Makefile.in (SFILES, clean): Added sparc64 files.
19870 (reg-sparc64.o, reg-sparc64.c): New.
19871 * configure.srv (sparc*-*-linux*): New configuration.
19872 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19873 syscall arguments for SPARC.
19874 (regsets_store_inferior_registers): Likewise.
19875 * linux-sparc-low.c: New file.
19877 2008-10-21 Doug Evans <dje@google.com>
19879 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19880 (READLINE_DIR,READLINE_DEP): Delete.
19881 (INTERNAL_CFLAGS): Update.
19882 (LINTFLAGS): Update.
19884 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19886 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19887 whole argv from the last run, not just argv[0].
19889 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19891 * regcache.c (new_register_cache): Return NULL if the register
19892 cache size isn't known yet.
19893 (free_register_cache): Avoid dereferencing a NULL regcache.
19895 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19897 * configure.srv: Merge MIPS and MIPS64.
19899 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19901 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19903 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19905 * Makefile.in: Add required vsx dependencies.
19907 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19908 Declare init_registers_powerpc_vsx32l.
19909 Declare init_registers_powerpc_vsx64l.
19910 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19911 (ppc_arch_setup): Check for VSX in hwcap.
19912 (ppc_fill_vsxregset): New function.
19913 (ppc_store_vsxregset): New function.
19914 Add new VSX entry in regset_info target_regsets.
19916 * configure.srv: Add new VSX dependencies.
19918 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19920 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19921 (remote_open): Set or clear transport_is_reliable.
19922 (putpkt_binary): Don't expect acks in noack mode.
19923 (getpkt): Don't send ack/nac in noack mode.
19924 * server.c (handle_general_set): Handle QStartNoAckMode.
19925 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19927 (main): Reset noack_mode on every connection.
19928 * server.h (noack_mode): Declare.
19930 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19932 * Makefile.in (GDBREPLAY_OBS): New variable.
19933 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19935 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19936 Daniel Jacobowitz <dan@codesourcery.com>
19938 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19939 (usr_store_inferior_registers): Likewise.
19940 (regsets_store_inferior_registers): Likewise.
19942 2008-07-31 Rolf Jansen <rj@surtec.com>
19943 Pedro Alves <pedro@codesourcery.com>
19945 * configure.ac: Check for memmem declaration.
19946 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19947 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19948 (disable_packet_qfThreadInfo): Unconditionally compile.
19949 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19950 * configure, config.in: Regenerate.
19952 2008-07-28 Doug Kwan <dougkwan@google.com>
19954 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19955 (linux_write_memory): Remove declaration of errno.
19957 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19959 * linux-low.c (handle_extended_wait): Do not use "status"
19960 variable uninitialized.
19962 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19964 * server.c (handle_v_attach): Inhibit reporting dll changes.
19966 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19968 * remote-utils.c (prepare_resume_reply): If requested, don't
19969 output "thread:TID" in the T stop reply.
19971 * server.c (disable_packet_vCont, disable_packet_Tthread)
19972 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19973 (handle_query): If requested, disable support for qC, qfThreadInfo
19975 (handle_v_requests): If requested, disable support for vCont.
19976 (gdbserver_show_disableable): New.
19977 (main): Handle --disable-packet and --disable-packet=LIST.
19979 * server.h (disable_packet_vCont, disable_packet_Tthread)
19980 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19982 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19984 * server.c (gdbserver_usage): Mention --version.
19986 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19988 * Makefile.in (gdbreplay.o): New rule.
19990 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19992 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19993 message, not gdbserver.
19995 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19996 Nathan Sidwell <nathan@codesourcery.com>
19997 Joseph Myers <joseph@codesourcery.com>
19999 * acinclude.m4: Include ../../config/acx.m4.
20000 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20001 * configure, config.in: Regenerate.
20002 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20003 * server.c (gdbserver_version): Print PKGVERSION.
20004 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20005 (main): Adjust gdbserver_usage calls.
20006 * gdbreplay.c (version, host_name): Add declarations.
20007 (gdbreplay_version, gdbreplay_usage): New.
20008 (main): Accept --version and --help options.
20010 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20012 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20013 (arm_breakpoint_at): Handle Thumb.
20014 (the_low_target): Add comment.
20016 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20018 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20020 2008-05-09 Doug Evans <dje@google.com>
20022 * server.h (decode_search_memory_packet): Declare.
20023 * remote-utils.c (decode_search_memory_packet): New fn.
20024 * server.c (handle_search_memory_1): New fn.
20025 (handle_search_memory): New fn.
20026 (handle_query): Process qSearch:memory packets.
20028 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20030 * regcache.c (registers_length): Remove.
20031 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20032 full register packet.
20033 * regcache.h (registers_length): Remove prototype.
20034 * server.h (PBUFSIZ): Define to 16384.
20036 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20038 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20039 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20040 powerpc-64l.o, and powerpc-altivec64l.o.
20041 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20042 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20043 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20044 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20045 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20048 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20049 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20050 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20051 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20052 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20053 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20054 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20055 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20056 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20057 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20060 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20061 (init_registers_powerpc_32l): ... this new prototype.
20062 (init_registers_powerpc_32): Remove, replace by ...
20063 (init_registers_powerpc_altivec32l): ... this new prototype.
20064 (init_registers_powerpc_e500): Remove, replace by ...
20065 (init_registers_powerpc_e500l): ... this new prototype.
20066 (init_registers_ppc64): Remove, replace by ...
20067 (init_registers_powerpc_64l): ... this new prototype.
20068 (init_registers_powerpc_64): Remove, replace by ...
20069 (init_registers_powerpc_altivec64l): ... this new prototype.
20070 (ppc_num_regs): Set to 73.
20071 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20072 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20073 (ppc_cannot_store_register): Handle orig_r3 and trap.
20074 (ppc_arch_setup): Update init_registers_... calls.
20075 (ppc_fill_gregset): Handle orig_r3 and trap.
20077 * inferiors.c (clear_inferiors): Reset current_inferior.
20079 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20081 * acinclude.m4: Add override.m4.
20082 * configure: Regenerate.
20084 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20086 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20087 initial call to init_register_ppc64.
20089 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20091 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20092 single powerpc*-*-linux* case.
20093 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20095 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20097 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20098 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20100 * linux-ppc-low.c: Include <elf.h>.
20101 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20102 (ppc_hwcap): New global variable.
20103 (ppc_regmap): Remove __SPE__ #ifdef sections.
20104 (ppc_regmap_e500): New global variable.
20105 (ppc_cannot_store_register): Update __SPE__ special case.
20106 (ppc_get_hwcap): New function.
20107 (ppc_arch_setup): Use it to determine whether inferior supports
20108 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20109 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20110 Do not access registers if target does not support AltiVec.
20111 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20112 Do not access registers if target does not support SPE.
20113 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20115 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20117 * linux-low.c (disabled_regsets, num_regsets): New.
20118 (use_regsets_p): Delete.
20119 (linux_wait_for_process): Clear disabled_regsets.
20120 (regsets_fetch_inferior_registers): Check and set it.
20121 (regsets_store_inferior_registers): Likewise.
20122 (linux_fetch_registers, linux_store_registers): Do not use
20124 (initialize_low): Allocate disabled_regsets.
20126 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20128 * Makefile.in (LIBOBJS): New.
20129 (OBS): Use LIBOBJS.
20130 (memmem.o): New rule.
20131 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20132 * configure: Regenerated.
20134 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20136 * server.c (handle_query): Never return "unsupported" for
20137 qXfer:features:read queries.
20139 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20141 * server.c (get_features_xml): Fix inverted condition.
20142 (handle_query): Always support qXfer:feature:read.
20144 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20146 * server.c (wrapper_argv): New.
20147 (start_inferior): Handle wrapper_argv. If set, expect an extra
20149 (gdbserver_usage): Document --wrapper.
20150 (main): Parse --wrapper.
20152 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20154 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20155 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20156 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20157 (ppc_set_pc): Likewise.
20158 (ppc_arch_setup): New function.
20159 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20160 of collect_register.
20161 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20163 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20165 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20166 instead of linux-ppc64-low.o.
20167 * linux-ppc64-low.c: Remove file.
20168 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20169 (linux-ppc64-low.o): Remove rule.
20171 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20172 (init_registers_powerpc_64): Likewise.
20173 (ppc_regmap): Conditionally define depending on __powerpc64__.
20174 (ppc_cannot_store_register): Do not special-case "fpscr" when
20175 compiled on __powerpc64__.
20176 (ppc_collect_ptrace_register): New function.
20177 (ppc_supply_ptrace_register): New function.
20178 (ppc_breakpoint): Change type to "unsigned int".
20179 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20180 (the_low_target): Conditionally provide initializers for the
20181 arch_setup member depending on __powerpc64__. Install
20182 collect_ptrace_register and supply_ptrace_register members.
20184 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20186 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20187 * server.c (gdbserver_xmltarget): Define.
20188 (get_features_xml): Use it to replace "target.xml" and arch_string.
20190 * configure.srv: Remove srv_xmltarget. Add XML files that were
20191 mentioned there to srv_xmlfiles instead. Remove conditional tests
20192 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20193 srv_xmlfiles and srv_regobj to include all possible choices.
20194 * configure.ac (srv_xmltarget): Remove.
20195 (srv_xmlfiles): Do not add "target.xml".
20196 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20197 checks for supplementary target information.
20198 * configure: Regenerate.
20199 * Makefile.in (XML_TARGET): Remove.
20200 (target.xml): Remove rule.
20201 (clean): Do not clean up target.xml.
20202 (.PRECIOUS): Do not mention target.xml.
20204 * target.h (struct target_ops): Remove arch_string member.
20205 * linux-low.c (linux_arch_string): Remove.
20206 (linux_target_ops): Remove arch_string initializer.
20207 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20208 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20209 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20210 * spu-low.c (spu_arch_string): Remove.
20211 (spu_target_ops): Remove arch_string initializer.
20212 * win32-low.c (win32_arch_string): Remove.
20213 (win32_target_ops): Remove arch_string initializer.
20214 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20215 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20216 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20218 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20220 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20221 by collect_ptrace_register and supply_ptrace_register hooks.
20222 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20223 instead of checking for the_low_target.left_pad_xfer.
20224 (usr_store_inferior_registers): Use collect_ptrace_register callback
20225 instead of checking for the_low_target.left_pad_xfer.
20227 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20228 (s390_supply_ptrace_register): Likewise.
20229 (s390_fill_gregset): Call s390_collect_ptrace_register.
20230 (the_low_target): Update.
20232 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20233 (ppc_supply_ptrace_register): Likewise.
20234 (the_low_target): Update.
20236 * linux-i386-low.c (the_low_target): Update.
20237 * linux-x86-64-low.c (the_low_target): Update.
20239 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20241 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20242 reg-s390.o and reg-s390x.o.
20244 * linux-low.c (new_inferior): New global variable.
20245 (linux_create_inferior, linux_attach): Set it.
20246 (linux_wait_for_process): Call the_low_target.arch_setup after the
20247 target has stopped for the first time.
20248 (initialize_low): Do not call the_low_target.arch_setup.
20250 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20251 (s390_set_pc): Likewise.
20252 (s390_arch_setup): New function.
20253 (the_low_target): Use s390_arch_setup as arch_setup routine.
20255 * regcache.c (realloc_register_cache): New function.
20256 (set_register_cache): Call it for each existing regcache.
20258 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20260 * server.h (init_registers): Remove prototype.
20262 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20263 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20264 instead of init_registers ().
20265 * linux-arm-low.c (init_registers_arm): Add prototype.
20266 (init_registers_arm_with_iwmmxt): Likewise.
20267 (the_low_target): Add initializer for arch_setup field.
20268 * linux-cris-low.c (init_registers_cris): Add prototype.
20269 (the_low_target): Add initializer for arch_setup field.
20270 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20271 (the_low_target): Add initializer for arch_setup field.
20272 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20273 (the_low_target): Add initializer for arch_setup field.
20274 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20275 (the_low_target): Add initializer for arch_setup field.
20276 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20277 (the_low_target): Add initializer for arch_setup field.
20278 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20279 (the_low_target): Add initializer for arch_setup field.
20280 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20281 (init_registers_mips64_linux): Likewise.
20282 (the_low_target): Add initializer for arch_setup field.
20283 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20284 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20285 (the_low_target): Add initializer for arch_setup field.
20286 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20287 (init_registers_powerpc_64): Likewise.
20288 (the_low_target): Add initializer for arch_setup field.
20289 * linux-s390-low.c (init_registers_s390): Add prototype.
20290 (init_registers_s390x): Likewise.
20291 (the_low_target): Add initializer for arch_setup field.
20292 * linux-sh-low.c (init_registers_sh): Add prototype.
20293 (the_low_target): Add initializer for arch_setup field.
20294 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20295 (the_low_target): Add initializer for arch_setup field.
20296 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20297 (the_low_target): Add initializer for arch_setup field.
20299 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20300 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20301 instead of init_registers ().
20302 * win32-arm-low.c (init_registers_arm): Add prototype.
20303 (the_low_target): Add initializer for arch_setup field.
20304 * win32-i386-low.c (init_registers_i386): Add prototype.
20305 (the_low_target): Add initializer for arch_setup field.
20307 * spu-low.c (init_registers_spu): Add prototype.
20308 (initialize_low): Call initialie_registers_spu () instead of
20309 initialize_registers ().
20311 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20313 * server.c (handle_v_requests): When handling the vRun and vAttach
20314 packets, if already debugging a process, don't kill it. Return an
20317 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20319 * server.c (handle_query): Correct length check.
20321 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20323 * win32-low.c (do_initial_child_stuff): Add process handle
20324 parameter. Set current_process_handle and current_process_id from the
20325 parameters. Clear globals.
20326 (win32_create_inferior): Don't set current_process_handle and
20327 current_process_id here. Instead pass them on the call to
20328 do_initial_child_stuff.
20329 (win32_attach): Likewise.
20330 (win32_clear_inferiors): New.
20331 (win32_kill): Don't close the current process handle or the
20332 current thread handle here. Instead call win32_clear_inferiors.
20333 (win32_detach): Don't open a new handle to the process. Call
20334 win32_clear_inferiors.
20335 (win32_join): Don't rely on current_process_handle; open a new
20336 handle using the process id.
20337 (win32_wait): Call win32_clear_inferiors when the inferior process
20340 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20342 * server.c (monitor_show_help): Add "exit".
20344 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20346 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20347 (clean): Add reg-xtensa.c.
20348 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20349 * configure.srv (xtensa*-*-linux*) New target.
20350 * linux-xtensa-low.c: New.
20351 * xtensa-xtregs.c: New.
20353 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20355 * hostio.c: Don't include errno.h.
20356 (errno_to_fileio_errno): Move to hostio-errno.
20357 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20358 error number outputting to the target->hostio_last_error callback.
20359 (hostio_packet_error): Use FILEIO_EINVAL directly.
20360 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20361 calls to hostio_error.
20362 * hostio-errno.c: New.
20363 * server.h (hostio_last_error_from_errno): Declare.
20364 * target.h (target_ops): Add hostio_last_error member.
20365 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20366 as hostio_last_error handler.
20367 * spu-low.c (spu_target_ops): Likewise.
20368 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20369 (wince_hostio_last_error): New functions.
20370 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20371 as hostio_last_error handler.
20372 (win32_target_ops) [!_WIN32_WCE]: Register
20373 hostio_last_error_from_errno as hostio_last_error handler.
20374 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20375 (hostio-errno.o): New rule.
20376 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20377 * configure.srv (srv_hostio_err_objs): New variable. Default to
20379 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20380 * configure: Regenerate.
20382 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20384 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20385 (linux_kill, linux_detach): Clean up the process list.
20386 * remote-utils.c (remote_open): Improve port number parsing.
20387 (putpkt_binary, input_interrupt): Only send interrupts if the target
20389 * server.c (extended_protocol): Make static.
20390 (attached): Define earlier.
20391 (exit_requested, response_needed, program_argv): New variables.
20392 (target_running): New.
20393 (start_inferior): Clear attached here.
20394 (attach_inferior): Set attached here.
20395 (require_running): Define.
20396 (handle_query): Use require_running and target_running. Implement
20398 (handle_v_attach, handle_v_run): New.
20399 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20400 (gdbserver_usage): Update.
20401 (main): Redo argument parsing. Handle --debug and --multi. Handle
20402 --attach along with other options or after the port. Save
20403 program_argv. Support no initial program. Resynchronize
20404 communication with GDB after an error. Handle "monitor exit".
20405 Use require_running and target_running. Always allow the extended
20406 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20407 restart in extended mode.
20408 * README: Refer to the GDB manual. Update --attach usage.
20410 2007-12-20 Andreas Schwab <schwab@suse.de>
20412 * linux-low.c (STACK_SIZE): Define.
20413 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20414 (linux_test_for_tracefork): Likewise.
20416 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20418 * linux-low.c (linux_wait_for_event): Update messages. Do not
20419 reinsert auto-delete breakpoints.
20420 * mem-break.c (struct breakpoint): Change return type of handler to
20422 (set_breakpoint_at): Update handler type.
20423 (reinsert_breakpoint_handler): Return 1 instead of calling
20425 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20427 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20428 * mem-break.h (set_breakpoint_at): Update handler type.
20429 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20430 * win32-low.c (auto_delete_breakpoint): New.
20431 (get_child_debug_event): Use it.
20433 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20435 * configure.ac: Check for pread and pwrite.
20436 * hostio.c (handle_pread): Fall back to lseek and read.
20437 (handle_pwrite): Fall back to lseek and write.
20438 * config.in, configure: Regenerated.
20440 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20442 * server.c (myresume): Add own_buf argument.
20443 (main): Update calls.
20445 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20447 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20448 * remote-utils.c (remote_open): Do not call disable_async_io.
20449 (block_async_io): Delete.
20450 (unblock_async_io): Make static.
20451 (initialize_async_io): New.
20452 * server.c (handle_v_cont): Handle async I/O here.
20453 (myresume): Likewise. Move other common resume tasks here...
20454 (main): ... from here. Call initialize_async_io. Disable async
20455 I/O before the main loop.
20456 * server.h (initialize_async_io): Declare.
20457 (block_async_io, unblock_async_io): Delete prototypes.
20458 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20460 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20462 * remote-utils.c (readchar): Allow binary data in received messages.
20464 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20466 * win32-low.c (attaching): New global.
20467 (win32_create_inferior): Clear the `attaching' global.
20468 (win32_attach): Set the `attaching' global.
20469 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20470 attaching. Only set a breakpoint at the entry point if not
20473 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20475 * server.c (main): Don't report dll events on the initial
20476 connection on attaches.
20478 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20480 * server.c (main): Relax numerical bases supported for the pid of
20481 the --attach command line argument.
20483 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20485 * win32-low.c (win32_attach): Call OpenProcess before
20486 DebugActiveProcess, not after. Add last error output to error
20489 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20491 * win32-low.c (win32_get_thread_context)
20492 (win32_set_thread_context): New functions.
20493 (thread_rec): Use win32_get_thread_context.
20494 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20495 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20498 2007-12-03 Leo Zayas
20499 Pedro Alves <pedro_alves@portugalmail.pt>
20501 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20503 (child_add_thread): Minor cleanup.
20504 (child_continue): Resume artificially suspended threads before
20505 calling ContinueDebugEvent.
20506 (suspend_one_thread): New.
20507 (fake_breakpoint_event): New.
20508 (get_child_debug_event): Change return type to int. Check here if
20509 gdb sent an interrupt request. If a soft interrupt was requested,
20510 fake a breakpoint event. Return 0 if there is no event to handle,
20512 (win32_wait): Don't check here if gdb sent an interrupt request.
20513 Ensure there is a valid event to handle.
20514 (win32_request_interrupt): Add soft interruption method as last
20517 2007-12-03 Leo Zayas
20518 Pedro Alves <pedro_alves@portugalmail.pt>
20520 * win32-low.h (win32_thread_info): Add descriptions to the
20521 structure members. Replace `suspend_count' counter by a
20523 * win32-low.c (thread_rec): Update condition of when to get the
20524 context from the inferior. Rely on ContextFlags being set if it
20525 has already been retrieved. Only suspend the inferior thread if
20526 we haven't already. Warn if that fails.
20527 (continue_one_thread): s/suspend_count/suspended/. Only call
20528 ResumeThread once. Warn if that fails.
20530 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20532 * win32-low.c (win32_wait): Don't read from the inferior when it
20533 has already exited.
20535 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20537 * Makefile.in (win32_low_h): New variable.
20538 (win32-low.o): Add dependency on $(win32_low_h).
20539 (win32-arm-low.o, win32-i386-low.o): New rules.
20541 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20543 * hostio.c: Correct copyright year.
20545 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20547 * Makefile.in (OBS): Add hostio.o.
20548 (hostio.o): New rule.
20549 * server.h (handle_vFile): Declare.
20550 * hostio.c: New file.
20551 * server.c (handle_v_requests): Take packet_len and new_packet_len
20552 for binary packets. Call handle_vFile.
20553 (main): Update call to handle_v_requests.
20555 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20557 * linux-low.c: Include <sched.h>.
20559 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20561 * linux-low.c (linux_tracefork_grandchild): New.
20562 (linux_tracefork_child): Use clone.
20563 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20565 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20567 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20569 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20571 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20573 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20575 * inferiors.c (change_inferior_id): Delete.
20576 (add_pid_to_list, pull_pid_from_list): New.
20577 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20578 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20579 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20580 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20581 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20582 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20583 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20584 (using_threads): Always set to 1.
20585 (handle_extended_wait): New.
20586 (add_process): Do not set TID.
20587 (linux_create_inferior): Set must_set_ptrace_flags.
20588 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20589 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20590 (linux_thread_alive): Rename TID argument to LWPID.
20591 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20592 (linux_wait_for_event): Do not use TID or check using_threads. Update
20593 call to dead_thread_notify. Call handle_extended_wait.
20594 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20595 (send_sigstop): Delete sigstop_sent.
20596 (wait_for_sigstop): Avoid TID.
20597 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20598 (linux_test_for_tracefork): New.
20599 (linux_lookup_signals): Use thread_db_active and
20600 linux_supports_tracefork_flag.
20601 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20602 * linux-low.h (get_process_thread): Avoid TID.
20603 (struct process_ifo): Move thread_known and tid to the end. Remove
20605 (linux_attach_lwp, thread_db_init): Update prototypes.
20606 * server.h (change_inferior_id): Delete prototype.
20607 (add_pid_to_list, pull_pid_from_list): New prototypes.
20608 * thread-db.c (thread_db_use_events): New.
20609 (find_first_thread): Rename to...
20610 (find_one_thread): ...this. Update callers and messages. Do not
20611 call fatal. Check thread_db_use_events. Do not call
20612 change_inferior_id or new_thread_notify.
20613 (maybe_attach_thread): Update. Do not call new_thread_notify.
20614 (thread_db_init): Set thread_db_use_events. Check use_events.
20615 * utils.c (fatal, warning): Correct message prefix.
20617 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20619 * Makefile.in (clean): Remove new files.
20620 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20621 (powerpc-64.o, powerpc-64.c): New rules.
20622 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20623 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20625 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20627 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20628 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20629 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20630 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20631 (target_regsets): Add AltiVec and SPE register sets.
20632 * configure.ac: Check for AltiVec and SPE.
20633 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20634 (ppc_fill_vrregset, ppc_store_vrregset): New.
20635 (target_regsets): Add AltiVec register set.
20636 * configure: Regenerated.
20638 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20640 * linux-low.c (O_LARGEFILE): Define.
20641 (linux_read_memory): Use /proc/PID/mem.
20642 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20643 * configure, config.in: Regenerated.
20645 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20647 * linux-low.c (linux_wait_for_event): Do not pass signals while
20650 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20652 * win32-low.c (create_process): New.
20653 (win32_create_inferior): Use create_process instead of
20654 CreateProcess. If create_process failed retry appending an ".exe"
20655 suffix. Store the GetLastError result immediatelly after
20656 create_process calls and use it on the call to error.
20658 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20660 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20662 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20664 * configure.ac: Switch license to GPLv3.
20666 2007-08-01 Michael Snyder <msnyder@access-company.com>
20668 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20670 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20672 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20674 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20675 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20676 CloseToolhelp32Snapshot.
20677 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20678 CloseToolhelp32Snapshot.
20680 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20682 * server.c (main): Check for inferior exit before main loop.
20684 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20686 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20687 instead of on tmp_desc.
20689 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20690 Daniel Jacobowitz <dan@codesourcery.com>
20692 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20693 (add_thread): Minor cleanups.
20694 (clear_inferiors): Move lower in the file. Clear the DLL
20696 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20697 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20698 (xml_escape_text): New.
20699 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20701 (handle_v_cont): Report errors.
20702 (gdbserver_version): Update.
20703 (main): Correct size of own_buf. Do not report initial DLL events.
20704 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20705 (unloaded_dll, xml_escape_text): New.
20706 * win32-low.c (enum target_waitkind): Update comments.
20707 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20708 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20709 (win32_EnumProcessModules, win32_GetModuleInformation)
20710 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20711 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20712 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20713 (win32_Module32First, win32_Module32Next, load_toolhelp)
20714 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20715 (get_child_debug_event): Handle DLL events.
20716 (win32_wait): Likewise.
20718 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20720 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20721 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20723 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20725 * win32-low.c (handle_output_debug_string): Ignore event if not
20728 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20730 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20732 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20734 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20736 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20738 * inferiors.c (change_inferior_id): Add comment.
20739 * linux-low.c (check_removed_breakpoint): Add an early
20740 prototype. Improve debug output.
20741 (linux_attach): Doc update.
20742 (linux_detach_one_process, linux_detach): Clean up before releasing
20744 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20745 * linux-low.h (struct process_info): Doc improvement.
20746 * mem-break.c (delete_all_breakpoints): New.
20747 * mem-break.h (delete_all_breakpoints): New prototype.
20748 * thread-db.c (find_first_thread): New.
20749 (thread_db_create_event): Call it instead of
20750 thread_db_find_new_threads. Clean up unused variables.
20751 (maybe_attach_thread): Remove first thread handling.
20752 (thread_db_find_new_threads): Use find_first_thread.
20753 (thread_db_get_tls_address): Likewise.
20755 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20757 * thread-db.c (thread_db_find_new_threads): Add prototype.
20758 (thread_db_create_event): Check for the main thread before adding
20760 (maybe_attach_thread): Only enable event reporting if TID == 0.
20761 (thread_db_get_tls_address): Check for new threads.
20763 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20765 * linux-low.c (linux_create_inferior): Try execv before execvp.
20766 * spu-low.c (spu_create_inferior): Likewise.
20768 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20770 * linux-low.c (linux_create_inferior): Change execv to execvp.
20771 * spu-low.c (spu_create_inferior): Likewies.
20773 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20775 * Makefile.in (clean): Clean new files instead of deleted ones.
20776 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20777 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20779 * configure.srv: Specify XML files and new regformats for MIPS and
20781 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20782 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20783 an entry for the restart register.
20784 (mips_cannot_fetch_register, mips_cannot_store_register)
20785 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20786 register names to match the XML descriptions.
20787 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20788 restart register instead of $0.
20790 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20791 Markus Deuling <deuling@de.ibm.com>
20793 * remote-utils.c (decode_xfer_write): New function.
20794 * server.h (decode_xfer_write): Add prototype.
20795 * server.c (handle_query): Add PACKET_LEN argument. Support
20796 qXfer:spu:read and qXfer:spu:write packets.
20797 (main): Pass packet_len to handle_query.
20798 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20799 * target.h (target_ops): Add qxfer_spu.
20801 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20803 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20804 accessing non-seekable spufs files.
20806 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20808 * server.c (handle_query): Add reply for qC packet.
20810 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20811 Leo Zayas <lerele@champenstudios@com>
20813 * server.h (check_remote_input_interrupt_request): New function.
20814 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20815 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20816 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20817 (check_remote_input_interrupt_request): New function.
20818 * server.h (check_remote_input_interrupt_request): Declare.
20819 * win32-low.c (winapi_DebugBreakProcess,
20820 winapi_GenerateConsoleCtrlEvent): New typedefs.
20821 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20823 (win32_wait): Check for remote interrupt request
20824 with check_remote_input_interrupt_request.
20825 (win32_request_interrupt): New function.
20826 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20828 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20830 * win32-low.c (debug_registers_changed,
20831 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20832 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20833 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20834 (thread_rec): Get context using the low target.
20835 (child_add_thread): Call thread_added on the low target,
20836 which does the same thing.
20838 (do_initial_child_stuff): Remove debug registers references.
20839 Set context using the low target. Resume threads after
20840 setting the contexts.
20841 (child_continue): Remove dead variable. Remove debug
20842 registers references.
20843 (child_fetch_inferior_registers): Go through the low target.
20844 (do_child_store_inferior_registers): Remove.
20845 (child_store_inferior_registers): Go through the low target.
20846 (win32_resume): Remove debug registers references.
20847 Set context using the low target.
20848 (handle_exception): Change return type to void. Don't record
20849 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20850 first chance exception.
20851 (get_child_debug_event): Change return type to void. Remove
20852 goto loop. Always return after waiting for debug event.
20853 (win32_wait): Convert to switch statement. Handle spurious
20856 * win32-i386-low.c (debug_registers_changed,
20857 debug_registers_used): New.
20858 (initial_stuff): Rename to ...
20859 (i386_initial_stuff): ... this. Clear debug registers
20861 (store_debug_registers): Delete.
20862 (i386_get_thread_context): New.
20863 (load_debug_registers): Delete.
20864 (i386_set_thread_context): New.
20865 (i386_thread_added): New.
20866 (single_step): Rename to ...
20867 (i386_single_step): ... this.
20868 (do_fetch_inferior_registers): Rename to ...
20869 (i386_fetch_inferior_register): ... this.
20870 (i386_store_inferior_register): New.
20871 (the_low_target): Adapt to new interface.
20873 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20874 (arm_get_thread_context): New.
20875 (arm_set_thread_context): New.
20877 (do_fetch_inferior_registers): Rename to ...
20878 (arm_fetch_inferior_register): ... this.
20879 (arm_store_inferior_register): New.
20880 (arm_wince_breakpoint): Reimplement as unsigned long.
20881 (arm_wince_breakpoint_len): Define.
20882 (the_low_target): Adapt to new interface.
20884 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20885 load_debug_registers. Add get_thread_context, set_thread_context,
20886 thread_added and store_inferior_register. Rename
20887 fetch_inferior_registers to fetch_inferior_register.
20888 (regptr): Remove declaration.
20890 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20892 * linux-low.c (linux_detach): Change return type to int. Return 0.
20893 * spu-low.c (spu_detach): Likewise.
20895 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20897 * target.h (target_ops): Change return type of detach to int.
20899 (join_inferior): New.
20900 * server.c (main): Don't skip detach support on mingw32.
20901 If the inferior doesn't support detaching return error.
20902 Call join_inferior instead of using waitpid.
20903 * linux-low.c (linux_join): New.
20904 (linux_target_op): Add linux_join.
20905 * spu-low.c (spu_join): New.
20906 (spu_target_ops): Add spu_join.
20907 * win32-low.c (win32_detach): Adapt to new interface.
20908 Reopen current_process_handle before detaching. Issue a child
20909 resume before detaching.
20911 (win32_target_op): Add win32_join.
20913 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20915 * win32-low.c (win32-attach): Fix return value.
20916 * target.h (target_ops): Describe ATTACH return values.
20918 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20920 * win32-low.c (GETPROCADDRESS): Define.
20921 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20922 (winapi_DebugSetProcessKillOnExit): Likewise.
20923 (win32_create_inferior): Force usage of ansi CreateProcessA.
20924 (win32_attach): Use GETPROCADDRESS.
20925 (win32_detach): Likewise.
20927 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20929 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20931 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20933 * win32-low.c: Commit leftover changes from 2007-03-29.
20935 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20937 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20938 fields short instead of int. Add explicit padding.
20939 (i387_cache_to_fsave): Remove unnecessary casts.
20940 (i387_fsave_to_cache): Doc fix.
20941 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20943 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20945 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20946 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20948 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20950 * configure.srv (arm*-*-mingw32ce*): Move near the other
20953 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20955 * configure.ac: Add errno checking.
20956 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20957 sys/file.h and malloc.h.
20958 (AC_CHECK_DECLS): Add perror.
20959 (srv_mingwce): Handle.
20960 * configure.srv (i[34567]86-*-cygwin*): Add
20961 win32-i386-low.o to srv_tgtobj.
20962 (i[34567]86-*-mingw*): Likewise.
20963 (arm*-*-mingw32ce*): Add case.
20964 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20965 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20966 [__MINGW32CE__] (strerror): New function.
20967 [__MINGW32CE__] (errno): Define to GetLastError.
20968 [__MINGW32CE__] (COUNTOF): New macro.
20969 (remote_open): Remove extra close call.
20970 * mem-break.c (delete_breakpoint_at): New function.
20971 * mem-break.h (delete_breakpoint_at): Declare.
20972 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20973 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20974 [USE_WIN32API] (read, write): Add char* casts.
20975 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20976 * server.h: Include wincecompat.h on Windows CE.
20977 [HAVE_ERRNO_H]: Check.
20978 (perror): Declare if not declared.
20979 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20980 (perror_with_name): Remove errno declaration.
20981 * wincecompat.h: New.
20982 * wincecompat.c: New.
20983 * win32-low.h: New.
20984 * win32-arm-low.c: New.
20985 * win32-i386-low.c: New.
20986 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20987 (OUTMSG2): Make it safe.
20989 (COUNTOF): New macro.
20990 (NUM_REGS): Get it from the low target.
20991 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20992 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20993 (thread_rec): Let low target handle debug registers.
20994 (child_add_thread): Likewise.
20995 (child_init_thread_list): Likewise.
20996 (continue_one_thread): Likewise.
20998 (do_child_fetch_inferior_registers): Move to ...
20999 * win32-i386-low.c: ... here, and rename to ...
21000 (do_fetch_inferior_registers): ... this.
21001 * win32-low.c (child_fetch_inferior_registers):
21002 Go through the low target.
21003 (do_child_store_inferior_registers): Use regptr.
21004 (strwinerror): New function.
21005 (win32_create_inferior): Handle Windows CE.
21006 Use strwinerror instead of strerror on Windows error
21007 codes. Add program to the error output.
21008 Don't close the main thread handle on Windows CE.
21009 (win32_attach): Use coredll.dll on Windows CE.
21010 (win32_kill): Close current process and current
21012 (win32_detach): Use coredll.dll on Windows CE.
21013 (win32_resume): Let low target handle debug registers, and
21015 (handle_exception): Add/Remove initial breakpoint. Avoid
21016 non-existant WSTOPSIG on Windows CE.
21017 (win32_read_inferior_memory): Cast to remove warning.
21018 (win32_arch_string): Go through the low target.
21019 (initialize_low): Call set_breakpoint_data with the low
21020 target's breakpoint.
21021 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21022 FOP_REGNUM, mappings): Move to ...
21023 * win32-i386-low.c: ... here.
21024 * win32-low.c (win32_thread_info): Move to ...
21025 * win32-low.h: ... here.
21026 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21027 win32-arm-low.c and wincecompat.c.
21028 (all:): Add $EXEEXT.
21029 (install-only:): Likewise.
21030 (gdbserver:): Likewise.
21031 (gdbreplay:): Likewise.
21032 * config.in: Regenerate.
21033 * configure: Regenerate.
21035 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21037 * win32-low.c: Rename typedef thread_info to
21038 win32_thread_info throughout.
21040 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21042 * win32-i386-low.c: Rename to ...
21043 * win32-low.c: ... this.
21044 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21045 * Makefile.in: Likewise.
21047 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21049 * remote-utils.c (monitor_output): Constify msg parameter.
21050 * server.h (monitor_output): Likewise.
21051 * win32-i386-low.c (handle_output_debug_string): New.
21052 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21053 handle_output_debug_string.
21054 (get_child_debug_event): Likewise.
21056 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21058 * server.c (main): Correct strtoul check.
21060 2007-03-27 Jon Ringle <jon@ringle.org>
21062 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21064 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21066 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21068 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21070 * terminal.h: Check HAVE_SGTTY_H.
21072 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21074 * remote-utils.c (remote_open): Print out the assigned port number.
21076 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21078 * remote-utils.c (monitor_output): New function.
21079 * server.c (debug_threads): Define here.
21080 (monitor_show_help): New function.
21081 (handle_query): Handle qRcmd.
21082 (main): Do not handle 'd' packet.
21083 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21084 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21087 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21089 * Makefile.in (EXEEXT): New.
21090 (clean): Use $(EXEEXT).
21092 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21094 * target.h (target_ops): Rename send_signal to request_interrupt,
21095 and remove enum target_signal parameter.
21096 * linux-low.c (linux_request_interrupt): Rename from
21097 linux_send_signal, and always send SIGINT.
21098 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21099 and always send SIGINT.
21100 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21102 (input_interrupt): Likewise.
21104 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21106 * server.c (get_features_xml): Check if target implemented
21108 * win32-i386-low.c (win32_arch_string): New.
21109 (win32_target_ops): Add win32_arch_string as arch_string member.
21111 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21113 * spu-low.c (spu_arch_string): New.
21114 (spu_target_ops): Add spu_arch_string.
21116 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21118 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21119 * configure.ac: Do not check for terminal.h.
21120 * configure, config.in: Regenerated.
21122 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21124 * Makefile.in (OBS): Add $(XML_BUILTIN).
21125 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21127 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21128 (arm-with-iwmmxt.c): New.
21129 * config.in, configure: Regenerate.
21130 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21131 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21132 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21133 (arm*-*-linux*): Add iWMMXt and regset support.
21134 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21135 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21136 (arm_store_wmmxregset, target_regsets): New.
21137 * server.c (get_features_xml): Take annex argument. Check builtin
21139 (handle_query): Handle multiple annexes.
21141 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21143 * remote-utils.c [USE_WIN32API] (read, write): Define.
21144 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21147 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21149 * linux-i386-low.c (the_low_target): Set arch_string.
21150 * linux-x86-64-low.c (the_low_target): Likewise.
21151 * linux-low.c (linux_arch_string): New.
21152 (linux_target_ops): Add it.
21153 * linux-low.h (struct linux_target_ops): Add arch_string.
21154 * server.c (write_qxfer_response): Use const void * for DATA.
21155 (get_features_xml): New.
21156 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21157 * target.h (struct target_ops): Add arch_string method.
21159 2007-01-03 Denis Pilat <denis.pilat@st.com>
21160 Daniel Jacobowitz <dan@codesourcery.com>
21162 * linux-low.c (linux_kill): Handle being called with no threads.
21163 * win32-i386-low.c (win32_kill): Likewise.
21164 (get_child_debug_event): Clear current_process_handle.
21166 2006-12-30 Denis PILAT <denis.pilat@st.com>
21167 Daniel Jacobowitz <dan@codesourcery.com>
21169 * remote-utils.c (remote_open): Check the type of specified
21170 serial port devices before opening them.
21171 * server.c (main): Kill the inferior if an error occurs during
21172 the first remote_open.
21174 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21176 * README: Update supported targets.
21178 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21180 * Makefile.in (clean): Remove reg-mips64.c.
21181 (reg-mips64.c, reg-mips64.o): New rules.
21182 * configure.srv: Handle mips64. Include regset support for mips.
21183 * linux-mips-low.c (union mips_register): New.
21184 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21185 (mips_breakpoint, mips_breakpoint_at): Use int.
21186 (mips_collect_register, mips_supply_register)
21187 (mips_collect_register_32bit, mips_supply_register_32bit)
21188 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21189 (mips_store_fpregset, target_regsets): New.
21190 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21192 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21194 * configure.srv: Add target "spu*-*-*".
21195 * Makefile.in (clean): Remove reg-spu.c.
21196 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21197 * spu-low.c: New file.
21199 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21201 * configure.ac: Correct td_thr_tls_get_addr test.
21202 * configure: Regenerated.
21204 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21206 * linux-low.c (linux_wait_for_event): Reformat. Use the
21207 pass_signals array.
21208 * remote-utils.c (decode_address_to_semicolon): New.
21209 * server.c (pass_signals, handle_general_set): New.
21210 (handle_query): Mention QPassSignals for qSupported.
21211 (main): Call handle_general_set.
21212 * server.h (pass_signals, decode_address_to_semicolon): New.
21214 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21216 * server.c (handle_query): Correct error handling for read_auxv.
21218 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21220 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21221 and srv_linux_thread_db to yes.
21222 * linux-s390-low.c (s390_fill_gregset): New function.
21223 (target_regsets): Define data structure.
21225 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21227 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21228 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21229 * config.in, configure: Regenerated.
21230 * inferiors.c (gdb_id_to_thread): New function.
21231 (gdb_id_to_thread_id): Use it.
21232 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21233 * linux-low.h (struct process_info): Add th member.
21234 (thread_db_get_tls_address): New prototype.
21235 * remote-utils.c (decode_address): Make non-static.
21236 * server.c (handle_query): Handle qGetTLSAddr.
21237 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21238 * target.h (struct target_ops): Add get_tls_address.
21239 * thread-db.c (maybe_attach_thread): Save the thread handle.
21240 (thread_db_get_tls_address): New.
21242 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21244 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21245 (linux_resume_one_process): Take a siginfo_t *. Update all
21246 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21247 (struct pending_signals): Add a siginfo_t.
21248 (linux_wait_for_process): Always set last_status.
21249 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21250 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21251 * linux-low.h (struct process_info): Add last_status.
21253 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21255 * remote-utils.c (try_rle): New function.
21256 (putpkt_binary): Use it.
21258 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21260 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21261 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21262 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21263 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21264 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21267 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21269 * server.c (terminal_fd): New variable.
21270 (old_foreground_pgrp): Likewise.
21271 (restore_old_foreground_pgrp): New function.
21272 (start_inferior): Record the terminal file descriptor in terminal_fd
21273 and its original foreground group in old_foreground_pgrp. Register
21274 restore_old_foreground_pgrp with atexit().
21276 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21278 * server.c (handle_query): Correct qPart to qXfer.
21280 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21282 * configure.ac: Check for more headers which are missing on
21283 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21284 * configure.srv: Add Cygwin and mingw32.
21285 * remote-utils.c: Don't include headers unconditionally which
21286 are missing on mingw32. Include <winsock.h> for mingw32.
21287 (remote_open): Adjust for mingw32 support. Flush
21288 standard error after writing to it.
21289 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21290 (unblock_async_io, enable_async_io, disable_async_io)
21291 (readchar, getpkt): Update for Winsock support.
21292 (prepare_resume_reply): Expect a protocol signal number.
21293 * server.c: Disable <sys/wait.h> on mingw32.
21294 (start_inferior): Adjust for mingw32 support. Flush
21295 standard error after writing to it.
21296 (attach_inferior): Likewise. Use protocol signal
21298 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21300 * win32-i386-low.c: New file.
21301 * Makefile.in (XM_CLIBS): Set.
21302 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21303 (win32-i386-low.o): New dependency rule.
21304 * linux-low.c (linux_wait): Use target signal numbers.
21305 * target.h (struct target_ops): Doc fix.
21306 * server.h (target_signal_to_name): New prototype.
21307 * gdbreplay.c: Don't include headers unconditionally which
21308 are missing on mingw32. Include <winsock.h> for mingw32.
21309 (remote_close, remote_open): Adjust for Winsock support.
21310 * configure, config.in: Regenerated.
21312 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21314 * server.c (decode_xfer_read, write_qxfer_response): New.
21315 (handle_query): Take a packet length argument. Handle
21316 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21317 the qSupported response.
21318 (main): Update call to handle_query.
21320 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21322 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21323 (putpkt_binary): Renamed from putpkt and adjusted for binary
21325 (putpkt): New wrapper for putpkt_binary.
21326 (readchar): Don't mask off the high bit.
21327 (decode_X_packet): New function.
21328 * server.c (main): Call putpkt_binary if a handler sets the packet
21329 length. Save the length of the incoming packet. Handle 'X'.
21330 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21332 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21334 * server.c (handle_query): Handle qSupported.
21336 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21338 * remote-utils.c (all_symbols_looked_up): New variable.
21339 (look_up_one_symbol): Check it.
21340 * server.h (look_up_one_symbol): New declaration.
21341 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21343 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21345 * Makefile.in (linux-arm-low.o): Update dependencies.
21346 * linux-arm-low.c: Include "gdb_proc_service.h".
21347 (PTRACE_GET_THREAD_AREA): Define.
21348 (ps_get_thread_area): New function.
21350 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21352 * configure.srv (m68k*-*-uclinux*): New target.
21353 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21354 (linux_resume_one_process): Remove extraneous cast.
21355 (linux_read_offsets): New.
21356 (linux_target_op): Add linux_read_offsets on mmuless systems.
21357 * server.c (handle_query): Add qOffsets logic.
21358 * target.h (struct target_ops): Add read_offsets.
21360 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21362 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21363 (PTRACE_GET_THREAD_AREA): Define.
21364 (ps_get_thread_area): New function.
21365 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21366 (linux-x86-64-low.o): Update.
21368 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21370 * configure.ac: Remove checks for prfpregset_t.
21371 * gdb_proc_service.h: New file.
21372 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21373 new "gdb_proc_service.h".
21374 * proc-service.c: Likewise.
21375 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21376 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21377 * Makefile.in (gdb_proc_service_h): Updated.
21378 * configure, config.in: Regenerated.
21380 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21382 * remote-utils.c (prepare_resume_reply): Move declaration
21383 of gdb_id_from_wait to the top of the block.
21385 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21387 * linux-low.c (regsets_store_inferior_registers): Read the regset
21388 from the target before filling it.
21390 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21392 * server.c (attach_inferior): Return SIGTRAP for a successful
21395 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21397 * Makefile.in (OBS): Add version.o.
21398 (STAGESTUFF): Delete.
21399 (version.o): Add dependencies.
21400 (version.c): Replace rule.
21401 (clean): Remove version.c.
21402 * server.c (gdbserver_version): New.
21403 (gdbserver_usage): Use printf.
21404 (main): Handle --version and --help.
21405 * server.h (version, host_name): Add declarations.
21407 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21419 * linux-x86-64-low.c:
21421 * linux-s390-low.c:
21422 * linux-ppc64-low.c:
21424 * linux-mips-low.c:
21425 * linux-m68k-low.c:
21426 * linux-m32r-low.c:
21429 * linux-ia64-low.c:
21430 * linux-i386-low.c:
21431 * linux-crisv32-low.c:
21443 * gdbserver.1: Add (C) after Copyright. Update the FSF
21446 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21448 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21449 (arm_breakpoint_at): Recognize both breakpoints.
21450 (the_low_target): Use the correct breakpoint instruction.
21452 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21454 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21455 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21456 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21457 (the_low_target): Update.
21459 2005-10-25 Andreas Schwab <schwab@suse.de>
21461 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21463 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21464 (ia64_num_regs): Reduce to 462.
21466 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21468 * acinclude.m4: Correct quoting.
21469 * aclocal.m4: Regenerated.
21471 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21472 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21473 (thread_db_init): Call thread_db_err_str.
21474 * configure.ac: Check for TD_VERSION.
21475 * config.in, configure: Regenerated.
21477 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21479 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21481 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21483 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21484 is not available. Define HAVE_PTRACE_GETREGS if it is.
21485 * config.in, configure: Regenerated.
21486 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21487 * linux-i386-low.c, linux-m68k-low.c: Update to use
21488 HAVE_PTRACE_GETREGS.
21489 * linux-low.c (regsets_fetch_inferior_registers)
21490 (regsets_store_inferior_registers): Only return 0 if we processed
21492 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21493 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21495 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21497 * inferiors.c (struct thread_info): Add gdb_id.
21498 (add_thread): Add gdb_id argument.
21499 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21500 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21501 calls to add_thread.
21502 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21503 * server.c (handle_query): Use thread_to_gdb_id.
21504 (handle_v_cont, main): Use gdb_id_to_thread_id.
21505 * server.h (add_thread): Update prototype.
21506 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21509 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21511 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21512 left-padded registers.
21513 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21514 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21516 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21518 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21519 * configure: Regenerate.
21520 * config.in: Regenerate.
21521 * server.h (NEED_DECLARATION_STRERROR):
21522 Replace with !HAVE_DECL_STRERROR.
21524 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21526 * linux-low.c (linux_wait, linux_send_signal): Don't test
21527 an unsigned long variable for > 0 if it could be MAX_ULONG.
21528 * server.c (myresume): Likewise.
21529 * target.c (set_desired_inferior): Likewise.
21531 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21533 * configure.ac: Simplify and improve check for socklen_t.
21534 * configure, config.in: Regenerate.
21536 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21538 * acconfig.h: Remove.
21539 * configure.ac: Add a test for socklen_t. Use three-argument
21540 AC_DEFINE throughout.
21541 * config.in: Regenerated using autoheader 2.59.
21542 * configure: Regenerated.
21544 * gdbreplay.c (socklen_t): Provide a default.
21545 (remote_open): Use socklen_t.
21546 * remote-utils.c (socklen_t): Provide a default.
21547 (remote_open): Use socklen_t.
21548 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21551 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21553 * linux-low.c (linux_read_memory, linux_write_memory)
21554 (linux_read_auxv): Likewise.
21555 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21556 (check_mem_write): Likewise.
21557 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21559 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21560 (registers_from_string, register_data): Likewise.
21561 * server.c (handle_query, main): Likewise.
21562 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21563 (decode_M_packet): Likewise.
21564 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21565 * target.h (struct target_ops): Update read_memory, write_memory,
21567 (read_inferior_memory, write_inferior_memory): Update.
21568 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21569 to unsigned char *.
21570 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21571 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21572 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21573 linux-s390-low.c, linux-sh-low.c: Update for changes in
21574 read_inferior_memory and the_low_target->breakpoint.
21576 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21578 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21579 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21580 * configure.srv: Add powerpc64-*-linux*.
21581 * linux-ppc64-low.c: New file.
21583 2005-05-23 Orjan Friberg <orjanf@axis.com>
21585 * linux-cris-low.c: New file with support for CRIS.
21586 * linux-crisv32-low.c: Ditto for CRISv32.
21587 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21588 (clean): Add reg-cris.c and reg-crisv32.c.
21589 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21590 reg-crisv32.o, and reg-crisv32.c to make rules.
21591 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21592 recognized targets.
21594 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21596 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21597 of sizeof (PTRACE_XFER_TYPE).
21598 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21600 2005-05-12 Orjan Friberg <orjanf@axis.com>
21602 * target.h (struct target_ops): Add insert_watchpoint,
21603 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21604 pointers for hardware watchpoint support.
21605 * linux-low.h (struct linux_target_ops): Ditto.
21606 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21607 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21608 to linux_target_ops.
21609 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21611 * server.c (main): Recognize 'Z' and 'z' packets.
21613 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21615 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21616 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21617 (the_low_target): Add new members.
21619 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21621 * proc-service.c (ps_lgetregs): Search all_processes instead of
21624 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21626 * server.c (start_inferior): Change return type to int.
21627 (attach_inferior): Change sigptr to int *.
21628 (handle_v_cont, handle_v_requests): Change signal to int *.
21629 (main): Change signal to int.
21631 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21633 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21634 * configure.srv: Add m32r*-*-linux*.
21635 * linux-m32r-low.c: New file.
21637 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21639 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21641 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21643 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21644 Take unsigned long arguments for PIDs.
21645 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21646 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21647 (wait_for_sigstop, linux_resume_one_process)
21648 (regsets_fetch_inferior_registers, linux_send_signal)
21649 (linux_read_auxv): Likewise. Update the types of variables holding
21650 PIDs. Update format string specifiers.
21651 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21652 * remote-utils.c (prepare_resume_reply): Likewise.
21653 * server.c (cont_thread, general_thread, step_thread)
21654 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21656 (handle_query): Update format specifiers.
21657 (handle_v_cont, main): Use strtoul for thread IDs.
21658 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21659 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21660 (general_thread, step_thread, thread_from_wait)
21661 (old_thread_from_wait): Update.
21662 * target.h (struct thread_resume): Use unsigned long for THREAD.
21663 (struct target_ops): Use unsigned long for arguments to attach and
21666 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21668 * acinclude.m4: Include bfd/bfd.m4 directly.
21669 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21670 <agriffis@toolchain.org>.
21671 * aclocal.m4, configure: Regenerated.
21673 2005-01-07 Andrew Cagney <cagney@gnu.org>
21675 * configure.ac: Rename configure.in, require autoconf 2.59.
21676 * configure: Re-generate.
21678 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21680 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21681 LIBS when finished.
21682 * aclocal.m4: Regenerated.
21683 * configure: Regenerated.
21685 2004-11-21 Andreas Schwab <schwab@suse.de>
21687 * linux-m68k-low.c (m68k_num_gregs): Define.
21688 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21689 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21690 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21691 (m68k_breakpoint_at): New. Add to the_low_target.
21693 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21694 srv_linux_thread_db to yes.
21696 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21698 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21699 (ARCH_SET_FS): Likewise.
21700 (ARCH_GET_FS): Likewise.
21701 (ARCH_GET_GS): Likewise.
21703 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21705 * linux-i386-low.c (ps_get_thread_area): New.
21706 * linux-x86-64-low.c (ps_get_thread_area): New.
21707 * linux-low.c: Include <sys/syscall.h>.
21708 (linux_kill_one_process): Don't kill the first thread here.
21709 (linux_kill): Kill the first thread here.
21710 (kill_lwp): New function.
21711 (send_sigstop, linux_send_signal): Use it.
21712 * proc-service.c: Clean up #ifdefs.
21713 (fpregset_info): Delete.
21714 (ps_lgetregs): Update and enable implementation.
21715 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21717 * remote-utils.c (struct sym_cache, symbol_cache): New.
21718 (input_interrupt): Print a clearer message.
21719 (async_io_enabled): New variable.
21720 (enable_async_io, disable_async_io): Use it. Update comments.
21721 (look_up_one_symbol): Use the symbol cache.
21722 * thread-db.c (thread_db_look_up_symbols): New function.
21723 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21725 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21727 * configure.in: Test for -rdynamic.
21728 * configure: Regenerated.
21729 * Makefile (INTERNAL_LDFLAGS): New.
21730 (gdbserver, gdbreplay): Use it.
21732 2004-09-02 Andrew Cagney <cagney@gnu.org>
21734 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21736 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21738 * linux-low.c (linux_wait): Clear all_processes list also.
21740 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21742 * linux-low.c: Include <errno.h>. Remove extern declaration of
21745 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21747 * gdbreplay.c, server.h, utils.c: Update copyright years.
21749 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21751 * server.c (main): Print child status or termination signal from
21752 variable 'signal', not 'sig'.
21754 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21756 * linux-low.c (linux_read_memory): Change return type to
21757 int. Check for and return error from ptrace().
21758 * target.c (read_inferior_memory): Change return type to int. Pass
21759 back return status from the_target->read_memory().
21760 * target.h (struct target_ops): Adapt *read_memory() prototype.
21762 (read_inferior_memory): Adapt prototype.
21763 * server.c (main): Return an error packet if
21764 read_inferior_memory() returns an error.
21766 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21768 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21769 Unify with other clean targets.
21771 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21773 * server.c (handle_v_cont): Call set_desired_inferior.
21775 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21777 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21779 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21781 * linux-low.c (linux_wait): Unblock async I/O.
21782 (linux_resume): Block and enable async I/O.
21783 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21784 * server.h (block_async_io, unblock_async_io): Add prototypes.
21786 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21788 * remote-utils.c (remote_open): Print a status notice after
21789 opening a TCP port.
21790 * server.c (attach_inferior): Print a status notice after
21793 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21795 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21797 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21799 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21801 * server.c, target.h: Update copyright years.
21803 2004-02-25 Roland McGrath <roland@redhat.com>
21805 * target.h (struct target_ops): New member `read_auxv'.
21806 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21807 * linux-low.c (linux_read_auxv): New function.
21808 (linux_target_ops): Initialize `read_auxv' member to that.
21810 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21812 Committed by Jim Blandy <jimb@redhat.com>.
21814 * linux-s390-low.c (s390_num_regs): Update.
21815 (s390_regmap): Remove control registers. Use __s390x__ predefine
21816 instead of GPR_SIZE to distiguish s390 and s390x targets.
21818 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21820 * linux-low.c: Update copyright year.
21821 (check_removed_breakpoint): Clear pending_is_breakpoint.
21822 (linux_set_resume_request, linux_queue_one_thread)
21823 (resume_status_pending_p): New functions.
21824 (linux_continue_one_thread): Use process->resume.
21825 (linux_resume): Only resume threads if there are no pending events.
21826 * linux-low.h (struct process_info): Add resume request
21829 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21831 * regcache.c (new_register_cache): Clear the allocated register
21832 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21834 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21836 * linux-low.c (linux_resume): Take a struct thread_resume *
21838 (linux_wait): Update call.
21839 (resume_ptr): New static variable.
21840 (linux_continue_one_thread): Renamed from
21841 linux_continue_one_process. Use resume_ptr.
21842 (linux_resume): Use linux_continue_one_thread.
21843 * server.c (handle_v_cont, handle_v_requests): New functions.
21844 (myresume): New function.
21845 (main): Handle 'v' case.
21846 * target.h (struct thread_resume): New type.
21847 (struct target_ops): Change argument of "resume" to struct
21849 (myresume): Delete macro.
21851 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21853 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21854 (uninstall): Support DESTDIR.
21856 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21858 * configure.srv: Add xscale*linux copy of arm*linux entry.
21860 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21862 * linux-arm-low.c (arm_reinsert_addr): New function.
21863 (the_low_target): Add arm_reinsert_addr.
21865 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21867 * mem-break.c: Remove whitespace at end of file.
21869 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21871 * configure.in: Check whether we need to prototype strerror.
21872 * server.h: Optionally prototype strerror.
21873 * gdbreplay.c (perror_with_name): Use strerror.
21874 * linux-low.c (linux_attach_lwp): Use strerror.
21875 * utils.c (perror_with_name): Use strerror.
21876 * config.in, configure: Regenerated.
21878 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21880 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21881 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21883 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21885 * Makefile.in (SFILES): Update.
21886 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21887 low-sun3.c: Remove files.
21889 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21891 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21892 (linux_detach_one_process, linux_detach): New functions.
21893 (linux_target_ops): Add linux_detach.
21894 * server.c (main): Handle 'D' packet.
21895 * target.h (struct target_ops): Add "detach" member.
21896 (detach_inferior): Define.
21898 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21900 From Kelley Cook <kelleycook@wideopenwest.com>:
21901 * configure.srv: Accept i[34567]86 variants.
21903 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21905 * linux-low.c (linux_wait_for_event): Correct comment typos.
21906 (linux_resume_one_process): Call check_removed_breakpoint.
21907 (linux_send_signal): New function.
21908 (linux_target_ops): Add linux_send_signal.
21909 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21911 * target.h (struct target_ops): Add send_signal.
21913 2003-05-29 Jim Blandy <jimb@redhat.com>
21915 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21916 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21917 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21918 away part of the register's value.
21920 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21922 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21923 (linux_wait_for_event, linux_init_signals): Likewise.
21925 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21927 * configure.in: Check for stdlib.h.
21928 * configure: Regenerated.
21929 * config.in: Regenerated.
21931 2003-01-04 Andreas Schwab <schwab@suse.de>
21933 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21935 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21937 * Makefile.in: Remove obsolete code.
21939 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21941 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21942 defined(PT_FPR0_HI).
21944 2002-11-17 Stuart Hughes <seh@zee2.com>
21946 * linux-arm-low.c (arm_num_regs): Increase.
21947 (arm_regmap): Include status register.
21949 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21951 * linux-low.c (register_addr): Remove incorrect -1 check.
21953 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21955 * linux-low.c (linux_create_inferior): Call setpgid. Return
21957 (unstopped_p, linux_signal_pid): Remove.
21958 (linux_target_ops): Remove linux_signal_pid.
21959 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21960 global instead of target method.
21961 * target.h (struct target_ops): Remove signal_pid. Update comment
21962 for create_inferior.
21963 * server.c (signal_pid): New variable.
21964 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21965 gdbserver. Set the child to be the foreground process group.
21966 (attach_inferior): Set signal_pid.
21968 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21970 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21972 2002-08-20 Jim Blandy <jimb@redhat.com>
21974 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21977 2002-08-01 Andrew Cagney <cagney@redhat.com>
21979 * Makefile.in: Make chill references obsolete.
21981 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21983 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21984 * configure: Regenerate.
21985 * config.in: Regenerate.
21987 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21989 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21990 (perror_with_name, remote_close, remote_open, expect, play): Static.
21992 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21994 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21995 byte offsets instead of an array of indexes.
21996 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21998 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22000 * regcache.c: Add comment.
22002 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22004 * thread-db.c: New file.
22005 * proc-service.c: New file.
22006 * acinclude.m4: New file.
22007 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22008 proc-service.o, and thread-db.o.
22009 (linux-low.o): Add USE_THREAD_DB.
22010 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22011 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22012 * aclocal.m4: Regenerated.
22013 * config.in: Regenerated.
22014 * configure: Regenerated.
22015 * configure.in: Check for proc_service.h, sys/procfs.h,
22016 thread_db.h, and linux/elf.h headrs.
22017 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22018 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22019 Check for -lthread_db and thread support.
22020 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22021 PowerPC, and SuperH.
22022 * i387-fp.c: Constify arguments.
22023 * i387-fp.h: Likewise.
22024 * inferiors.c: (struct thread_info): Renamed from
22025 `struct inferior_info'. Remove PID member. Use generic inferior
22026 list header. All uses updated.
22027 (inferiors, signal_pid): Removed.
22028 (all_threads): New variable.
22029 (get_thread): Define.
22030 (add_inferior_to_list): New function.
22031 (for_each_inferior): New function.
22032 (change_inferior_id): New function.
22033 (add_inferior): Removed.
22034 (remove_inferior): New function.
22035 (add_thread): New function.
22036 (free_one_thread): New function.
22037 (remove_thread): New function.
22038 (clear_inferiors): Use for_each_inferior and free_one_thread.
22039 (find_inferior): New function.
22040 (find_inferior_id): New function.
22041 (inferior_target_data): Update argument type.
22042 (set_inferior_target_data): Likewise.
22043 (inferior_regcache_data): Likewise.
22044 (set_inferior_regcache_data): Likewise.
22045 * linux-low.c (linux_bp_reinsert): Remove.
22046 (all_processes, stopping_threads, using_thrads)
22047 (struct pending_signals, debug_threads, pid_of): New.
22048 (inferior_pid): Replace with macro.
22049 (struct inferior_linux_data): Remove.
22050 (get_stop_pc, add_process): New functions.
22051 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22052 Use add_process and add_thread.
22053 (linux_attach_lwp): New function, based on old linux_attach. Use
22054 add_process and add_thread. Set stop_expected for new threads.
22055 (linux_attach): New function.
22056 (linux_kill_one_process): New function.
22057 (linux_kill): Kill all LWPs.
22058 (linux_thread_alive): Use find_inferior_id.
22059 (check_removed_breakpoints, status_pending_p): New functions.
22060 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22061 Update. Use WNOHANG. Wait for cloned processes also. Update process
22062 struct for the found process.
22063 (linux_wait_for_event): New function.
22064 (linux_wait): Use it. Support LWPs.
22065 (send_sigstop, wait_for_sigstop, stop_all_processes)
22066 (linux_resume_one_process, linux_continue_one_process): New functions.
22067 (linux_resume): Support LWPs.
22068 (REGISTER_RAW_SIZE): Remove.
22069 (fetch_register): Use register_size instead. Call supply_register.
22070 (usr_store_inferior_registers): Likewise. Call collect_register.
22071 Fix recursive case.
22072 (regsets_fetch_inferior_registers): Improve error message.
22073 (regsets_store_inferior_registers): Add debugging.
22074 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22075 (unstopped_p, linux_signal_pid): New functions.
22076 (linux_target_ops): Add linux_signal_pid.
22077 (linux_init_signals): New function.
22078 (initialize_low): Call it. Initialize using_threads.
22079 * regcache.c (inferior_regcache_data): Add valid
22081 (get_regcache): Fetch registers lazily. Add fetch argument
22082 and update all callers.
22083 (regcache_invalidate_one, regcache_invalidate): New
22085 (new_register_cache): Renamed from create_register_cache.
22086 Return the new regcache.
22087 (free_register_cache): Change argument to a void *.
22088 (registers_to_string, registers_from_string): Call get_regcache
22089 with fetch flag set.
22090 (register_data): Make static. Pass fetch flag to get_regcache.
22091 (supply_register): Call get_regcache with fetch flag clear.
22092 (collect_register): Call get_regcache with fetch flag set.
22093 (collect_register_as_string): New function.
22094 * regcache.h: Update.
22095 * remote-utils.c (putpkt): Flush after debug output and use
22097 Handle input interrupts while waiting for an ACK.
22098 (input_interrupt): Use signal_pid method.
22099 (getpkt): Flush after debug output and use stderr.
22100 (outreg): Use collect_register_as_string.
22101 (new_thread_notify, dead_thread_notify): New functions.
22102 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22103 and general_thread.
22104 (look_up_one_symbol): Flush after debug output.
22105 * server.c (step_thread, server_waiting): New variables.
22106 (start_inferior): Don't use signal_pid. Update call to mywait.
22107 (attach_inferior): Update call to mywait.
22108 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22109 (main): Don't fetch/store registers explicitly. Use
22110 set_desired_inferior. Support proposed ``Hs'' packet. Update
22112 * server.h: Update.
22113 (struct inferior_list, struct_inferior_list_entry): New.
22114 * target.c (set_desired_inferior): New.
22115 (write_inferior_memory): Constify.
22116 (mywait): New function.
22117 * target.h: Update.
22118 (struct target_ops): New signal_pid method.
22119 (mywait): Removed macro, added prototype.
22121 * linux-low.h (regset_func): Removed.
22122 (regset_fill_func, regset_store_func): New.
22123 (enum regset_type): New.
22124 (struct regset_info): Add type field. Use new operation types.
22125 (struct linux_target_ops): stop_pc renamed to get_pc.
22126 Add decr_pc_after_break and breakpoint_at.
22127 (get_process, get_thread_proess, get_process_thread)
22128 (strut process_info, all_processes, linux_attach_lwp)
22129 (thread_db_init): New.
22131 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22132 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22133 (the_low_target): Add new members.
22134 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22135 (i386_store_fpxregset): Constify.
22136 (target_regsets): Add new kind identifier.
22137 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22138 (i386_set_pc): Add debugging.
22139 (i386_breakpoint_at): New function.
22140 (the_low_target): Add new members.
22141 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22142 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22143 (mips_breakpoint_at): New.
22144 (the_low_target): Add new members.
22145 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22146 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22147 (the_low_target): Add new members.
22148 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22149 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22150 (the_low_target): Add new members.
22151 * linux-x86-64-low.c (target_regsets): Add new kind
22154 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22156 From Martin Pool <mbp@samba.org>:
22157 * server.c (gdbserver_usage): New function.
22160 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22162 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22163 stop_at -> stop_pc.
22165 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22167 * Makefile.in: Remove obsolete code.
22169 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22171 * linux-low.c (regsets_fetch_inferior_registers),
22172 (regsets_store_inferior_registers): Removed cast to int from
22174 * regcache.h: Added declaration of struct inferior_info.
22176 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22178 * inferiors.c (struct inferior_info): Add regcache_data.
22179 (add_inferior): Call create_register_cache.
22180 (clear_inferiors): Call free_register_cache.
22181 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22182 * regcache.c (struct inferior_regcache_data): New.
22183 (registers): Remove.
22184 (get_regcache): New function.
22185 (create_register_cache, free_register_cache): New functions.
22186 (set_register_cache): Don't initialize the register cache here.
22187 (registers_to_string, registers_from_string, register_data): Call
22189 * regcache.h: Add prototypes.
22190 * server.h: Likewise.
22192 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22194 * mem-break.c: New file.
22195 * mem-break.h: New file.
22196 * Makefile.in: Add mem-break.o rule; update server.h
22198 * inferiors.c (struct inferior_info): Add target_data
22200 (clear_inferiors): Free target_data member if set.
22201 (inferior_target_data, set_inferior_target_data): New functions.
22202 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22203 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22204 * linux-low.c (linux_bp_reinsert): New variable.
22205 (struct inferior_linux_data): New.
22206 (linux_create_inferior): Use set_inferior_target_data.
22207 (linux_attach): Likewise. Call add_inferior.
22208 (linux_wait_for_one_inferior): New function.
22209 (linux_wait): Call it.
22210 (linux_write_memory): Add const.
22211 (initialize_low): Call set_breakpoint_data.
22212 * linux-low.h (struct linux_target_ops): Add breakpoint
22214 * server.c (attach_inferior): Remove extra add_inferior
22216 * server.h: Include mem-break.h. Update inferior.c
22218 * target.c (read_inferior_memory)
22219 (write_inferior_memory): New functions.
22220 * target.h (read_inferior_memory)
22221 (write_inferior_memory): Change macros to prototypes.
22222 (struct target_ops): Update comments. Add const to write_memory
22225 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22227 * linux-low.c (usr_store_inferior_registers): Support
22228 registers which are allowed to fail to store.
22229 * linux-low.h (linux_target_ops): Likewise.
22230 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22231 (ppc_cannot_store_register): FPSCR may not be storable.
22233 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22235 * server.h: Include <string.h> if HAVE_STRING_H.
22236 * ChangeLog: Correct paths in last ChangeLog entry.
22238 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22240 * linux-low.h: Remove obsolete prototypes.
22241 (struct linux_target_ops): New.
22242 (extern the_low_target): New.
22243 * linux-low.c (num_regs, regmap): Remove declarations.
22244 (register_addr): Use the_low_target explicitly.
22245 (fetch_register): Likewise.
22246 (usr_fetch_inferior_registers): Likewise.
22247 (usr_store_inferior_registers): Likewise.
22248 * linux-arm-low.c (num_regs): Remove.
22249 (arm_num_regs): Define.
22250 (arm_regmap): Renamed from regmap, made static.
22251 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22253 (arm_cannot_store_register): Renamed from cannot_store_register,
22255 (the_low_target): New.
22256 * linux-i386-low.c (num_regs): Remove.
22257 (i386_num_regs): Define.
22258 (i386_regmap): Renamed from regmap, made static.
22259 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22261 (i386_cannot_store_register): Renamed from cannot_store_register,
22263 (the_low_target): New.
22264 * linux-ia64-low.c (num_regs): Remove.
22265 (ia64_num_regs): Define.
22266 (ia64_regmap): Renamed from regmap, made static.
22267 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22269 (ia64_cannot_store_register): Renamed from cannot_store_register,
22271 (the_low_target): New.
22272 * linux-m68k-low.c (num_regs): Remove.
22273 (m68k_num_regs): Define.
22274 (m68k_regmap): Renamed from regmap, made static.
22275 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22277 (m68k_cannot_store_register): Renamed from cannot_store_register,
22279 (the_low_target): New.
22280 * linux-mips-low.c (num_regs): Remove.
22281 (mips_num_regs): Define.
22282 (mips_regmap): Renamed from regmap, made static.
22283 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22285 (mips_cannot_store_register): Renamed from cannot_store_register,
22287 (the_low_target): New.
22288 * linux-ppc-low.c (num_regs): Remove.
22289 (ppc_num_regs): Define.
22290 (ppc_regmap): Renamed from regmap, made static.
22291 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22293 (ppc_cannot_store_register): Renamed from cannot_store_register,
22295 (the_low_target): New.
22296 * linux-s390-low.c (num_regs): Remove.
22297 (s390_num_regs): Define.
22298 (s390_regmap): Renamed from regmap, made static.
22299 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22301 (s390_cannot_store_register): Renamed from cannot_store_register,
22303 (the_low_target): New.
22304 * linux-sh-low.c (num_regs): Remove.
22305 (sh_num_regs): Define.
22306 (sh_regmap): Renamed from regmap, made static.
22307 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22309 (sh_cannot_store_register): Renamed from cannot_store_register,
22311 (the_low_target): New.
22312 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22313 (the_low_target): New.
22315 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22317 * Makefile.in: Add stamp-h target.
22318 * configure.in: Create stamp-h.
22319 * configure: Regenerated.
22321 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22323 * inferiors.c: New file.
22324 * target.c: New file.
22325 * target.h: New file.
22326 * Makefile.in: Add target.o and inferiors.o. Update
22328 * linux-low.c (inferior_pid): New static variable,
22329 moved from server.c.
22330 (linux_create_inferior): Renamed from create_inferior.
22331 Call add_inferior. Return 0 on success instead of a PID.
22332 (linux_attach): Renamed from myattach.
22333 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22334 (linux_thread_alive): Renamed from mythread_alive.
22335 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22337 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22338 (regsets_store_inferior_registers): Correct error message.
22339 Add missing ``return 0''.
22340 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22341 (linux_store_registers): Renamed from store_inferior_registers.
22342 (linux_read_memory): Renamed from read_inferior_memory.
22343 (linux_write_memory): Renamed from write_inferior_memory.
22344 (linux_target_ops): New structure.
22345 (initialize_low): Call set_target_ops ().
22346 * remote-utils.c (unhexify): New function.
22347 (hexify): New function.
22348 (input_interrupt): Send signals to ``signal_pid''.
22349 * server.c (inferior_pid): Remove.
22350 (start_inferior): Update create_inferior call.
22351 (attach_inferior): Call add_inferior.
22352 (handle_query): New function.
22353 (main): Call handle_query for `q' packets.
22354 * server.h: Include "target.h". Remove obsolete prototypes.
22355 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22357 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22359 * Makefile.in: Add WARN_CFLAGS. Update configury
22361 * configure.in: Check for <string.h>
22362 * configure: Regenerate.
22363 * config.in: Regenerate.
22364 * gdbreplay.c: Include needed system headers.
22365 (remote_open): Remove strchr prototype.
22366 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22367 * regcache.c (supply_register): Change buf argument to const void *.
22368 (supply_register_by_name): Likewise.
22369 (collect_register): Change buf argument to void *.
22370 (collect_register_by_name): Likewise.
22371 * regcache.h: Add missing prototypes.
22372 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22373 * server.c (handle_query): New function.
22374 (attached): New static variable, moved out of main.
22375 (main): Quiet longjmp clobber warnings.
22376 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22377 * utils.c (error): Remove NORETURN.